diff --git a/404.html b/404.html index 1a20758..40c657c 100644 --- a/404.html +++ b/404.html @@ -34,14 +34,12 @@ - - - + diff --git a/index.html b/index.html index 1a20758..40c657c 100644 --- a/index.html +++ b/index.html @@ -34,14 +34,12 @@ - - - + diff --git a/main.d08380e51a8b0d9a.js b/main.d08380e51a8b0d9a.js deleted file mode 100644 index 9d9d2b5..0000000 --- a/main.d08380e51a8b0d9a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkburp_http_history_browser=self.webpackChunkburp_http_history_browser||[]).push([[179],{7729:(oe,ce,x)=>{"use strict";function v(n){return"function"==typeof n}function k(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const V=k(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function W(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class G{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(v(i))try{i()}catch(o){t=o instanceof V?o.errors:[o]}const{_teardowns:r}=this;if(r){this._teardowns=null;for(const o of r)try{E(o)}catch(s){t=null!=t?t:[],s instanceof V?t=[...t,...s.errors]:t.push(s)}}if(t)throw new V(t)}}add(t){var e;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof G){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&W(e,t)}remove(t){const{_teardowns:e}=this;e&&W(e,t),t instanceof G&&t._removeParent(this)}}G.EMPTY=(()=>{const n=new G;return n.closed=!0,n})();const b=G.EMPTY;function _(n){return n instanceof G||n&&"closed"in n&&v(n.remove)&&v(n.add)&&v(n.unsubscribe)}function E(n){v(n)?n():n.unsubscribe()}const F={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},O={setTimeout(...n){const{delegate:t}=O;return((null==t?void 0:t.setTimeout)||setTimeout)(...n)},clearTimeout(n){const{delegate:t}=O;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function J(n){O.setTimeout(()=>{const{onUnhandledError:t}=F;if(!t)throw n;t(n)})}function q(){}const S=X("C",void 0,void 0);function X(n,t,e){return{kind:n,value:t,error:e}}let Q=null;function w(n){if(F.useDeprecatedSynchronousErrorHandling){const t=!Q;if(t&&(Q={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=Q;if(Q=null,e)throw i}}else n()}class y extends G{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_(t)&&t.add(this)):this.destination=P}static create(t,e,i){return new g(t,e,i)}next(t){this.isStopped?K(function M(n){return X("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?K(function I(n){return X("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?K(S,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class g extends y{constructor(t,e,i){let r;if(super(),v(t))r=t;else if(t){let o;({next:r,error:e,complete:i}=t),this&&F.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe()):o=t,r=null==r?void 0:r.bind(o),e=null==e?void 0:e.bind(o),i=null==i?void 0:i.bind(o)}this.destination={next:r?m(r):q,error:m(null!=e?e:T),complete:i?m(i):q}}}function m(n,t){return(...e)=>{try{n(...e)}catch(i){F.useDeprecatedSynchronousErrorHandling?function B(n){F.useDeprecatedSynchronousErrorHandling&&Q&&(Q.errorThrown=!0,Q.error=n)}(i):J(i)}}}function T(n){throw n}function K(n,t){const{onStoppedNotification:e}=F;e&&O.setTimeout(()=>e(n,t))}const P={closed:!0,next:q,error:T,complete:q},ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function H(n){return n}let pe=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function Ae(n){return n&&n instanceof y||function Je(n){return n&&v(n.next)&&v(n.error)&&v(n.complete)}(n)&&_(n)}(e)?e:new g(e,i,r);return w(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Le(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),null==s||s.unsubscribe()}},o,r)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ne](){return this}pipe(...e){return function he(n){return 0===n.length?H:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Le(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function Le(n){var t;return null!==(t=null!=n?n:F.Promise)&&void 0!==t?t:Promise}const Et=k(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _e=(()=>{class n extends pe{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new ln(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Et}next(e){w(()=>{if(this._throwIfClosed(),!this.isStopped){const i=this.observers.slice();for(const r of i)r.next(e)}})}error(e){w(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){w(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?b:(o.push(e),new G(()=>W(o,e)))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new pe;return e.source=this,e}}return n.create=(t,e)=>new ln(t,e),n})();class ln extends _e{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:b}}function Ze(n){return v(null==n?void 0:n.lift)}function qe(n){return t=>{if(Ze(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}class pt extends y{constructor(t,e,i,r,o){super(t),this.onFinalize=o,this._next=e?function(s){try{e(s)}catch(a){t.error(a)}}:super._next,this._error=r?function(s){try{r(s)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}function it(n,t){return qe((e,i)=>{let r=0;e.subscribe(new pt(i,o=>{i.next(n.call(t,o,r++))}))})}function de(n){return this instanceof de?(this.v=n,this):new de(n)}function ve(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(D){i[D]&&(r[D]=function(R){return new Promise(function(Y,ee){o.push([D,R,Y,ee])>1||a(D,R)})})}function a(D,R){try{!function l(D){D.value instanceof de?Promise.resolve(D.value.v).then(c,u):h(o[0][2],D)}(i[D](R))}catch(Y){h(o[0][3],Y)}}function c(D){a("next",D)}function u(D){a("throw",D)}function h(D,R){D(R),o.shift(),o.length&&a(o[0][0],o[0][1])}}function ct(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function C(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[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=n[o](s)).done,s.value)})}}}const Su=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function yg(n){return v(null==n?void 0:n.then)}function vg(n){return v(n[ne])}function bg(n){return Symbol.asyncIterator&&v(null==n?void 0:n[Symbol.asyncIterator])}function wg(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Dg=function EC(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Eg(n){return v(null==n?void 0:n[Dg])}function Cg(n){return ve(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield de(e.read());if(r)return yield de(void 0);yield yield de(i)}}finally{e.releaseLock()}})}function Sg(n){return v(null==n?void 0:n.getReader)}function Wn(n){if(n instanceof pe)return n;if(null!=n){if(vg(n))return function CC(n){return new pe(t=>{const e=n[ne]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Su(n))return function SC(n){return new pe(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,J)})}(n);if(bg(n))return Tg(n);if(Eg(n))return function MC(n){return new pe(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(Sg(n))return function AC(n){return Tg(Cg(n))}(n)}throw wg(n)}function Tg(n){return new pe(t=>{(function IC(n,t){var e,i,r,o;return function Re(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(h){s(h)}}function l(u){try{c(i.throw(u))}catch(h){s(h)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=ct(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function er(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function mo(n,t,e=1/0){return v(t)?mo((i,r)=>it((o,s)=>t(i,o,r,s))(Wn(n(i,r))),e):("number"==typeof t&&(e=t),qe((i,r)=>function xC(n,t,e,i,r,o,s,a){const l=[];let c=0,u=0,h=!1;const D=()=>{h&&!l.length&&!c&&t.complete()},R=ee=>c{o&&t.next(ee),c++;let re=!1;Wn(e(ee,u++)).subscribe(new pt(t,ue=>{null==r||r(ue),o?R(ue):t.next(ue)},()=>{re=!0},void 0,()=>{if(re)try{for(c--;l.length&&cY(ue)):Y(ue)}D()}catch(ue){t.error(ue)}}))};return n.subscribe(new pt(t,R,()=>{h=!0,D()})),()=>{null==a||a()}}(i,r,n,e)))}function Mg(n=1/0){return mo(H,n)}const Tu=new pe(n=>n.complete());function Ag(n){return n&&v(n.schedule)}function Mu(n){return n[n.length-1]}function Ig(n){return v(Mu(n))?n.pop():void 0}function As(n){return Ag(Mu(n))?n.pop():void 0}function xg(n,t=0){return qe((e,i)=>{e.subscribe(new pt(i,r=>er(i,n,()=>i.next(r),t),()=>er(i,n,()=>i.complete(),t),r=>er(i,n,()=>i.error(r),t)))})}function Rg(n,t=0){return qe((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function Og(n,t){if(!n)throw new Error("Iterable cannot be null");return new pe(e=>{er(e,t,()=>{const i=n[Symbol.asyncIterator]();er(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Dr(n,t){return t?function BC(n,t){if(null!=n){if(vg(n))return function PC(n,t){return Wn(n).pipe(Rg(t),xg(t))}(n,t);if(Su(n))return function NC(n,t){return new pe(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(yg(n))return function kC(n,t){return Wn(n).pipe(Rg(t),xg(t))}(n,t);if(bg(n))return Og(n,t);if(Eg(n))return function FC(n,t){return new pe(e=>{let i;return er(e,t,()=>{i=n[Dg](),er(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>v(null==i?void 0:i.return)&&i.return()})}(n,t);if(Sg(n))return function LC(n,t){return Og(Cg(n),t)}(n,t)}throw wg(n)}(n,t):Wn(n)}function Fi(...n){const t=As(n),e=function OC(n,t){return"number"==typeof Mu(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Wn(i[0]):Mg(e)(Dr(i,t)):Tu}function zt(n){return n<=0?()=>Tu:qe((t,e)=>{let i=0;t.subscribe(new pt(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function Pg(n={}){const{connector:t=(()=>new _e),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s=null,a=null,l=null,c=0,u=!1,h=!1;const D=()=>{null==a||a.unsubscribe(),a=null},R=()=>{D(),s=l=null,u=h=!1},Y=()=>{const ee=s;R(),null==ee||ee.unsubscribe()};return qe((ee,re)=>{c++,!h&&!u&&D();const ue=l=null!=l?l:t();re.add(()=>{c--,0===c&&!h&&!u&&(a=Au(Y,r))}),ue.subscribe(re),s||(s=new g({next:be=>ue.next(be),error:be=>{h=!0,D(),a=Au(R,e,be),ue.error(be)},complete:()=>{u=!0,D(),a=Au(R,i),ue.complete()}}),Dr(ee).subscribe(s))})(o)}}function Au(n,t,...e){return!0===t?(n(),null):!1===t?null:t(...e).pipe(zt(1)).subscribe(()=>n())}function St(n){for(let t in n)if(n[t]===St)return t;throw Error("Could not find renamed property on target object.")}function Iu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Tt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Tt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function xu(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const VC=St({__forward_ref__:St});function Ru(n){return n.__forward_ref__=Ru,n.toString=function(){return Tt(this())},n}function je(n){return Ou(n)?n():n}function Ou(n){return"function"==typeof n&&n.hasOwnProperty(VC)&&n.__forward_ref__===Ru}class Se extends Error{constructor(t,e){super(function Za(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function We(n){return"string"==typeof n?n:null==n?"":String(n)}function Qa(n,t){throw new Se(-201,!1)}function Xn(n,t){null==n&&function gt(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Ie(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function mt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pu(n){return kg(n,Ja)||kg(n,Fg)}function kg(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ng(n){return n&&(n.hasOwnProperty(ku)||n.hasOwnProperty(XC))?n[ku]:null}const Ja=St({\u0275prov:St}),ku=St({\u0275inj:St}),Fg=St({ngInjectableDef:St}),XC=St({ngInjectorDef:St});var Ue=(()=>((Ue=Ue||{})[Ue.Default=0]="Default",Ue[Ue.Host=1]="Host",Ue[Ue.Self=2]="Self",Ue[Ue.SkipSelf=4]="SkipSelf",Ue[Ue.Optional=8]="Optional",Ue))();let Nu;function ai(n){const t=Nu;return Nu=n,t}function Lg(n,t,e){const i=Pu(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ue.Optional?null:void 0!==t?t:void Qa(Tt(n))}function Er(n){return{toString:n}.toString()}var vi=(()=>((vi=vi||{})[vi.OnPush=0]="OnPush",vi[vi.Default=1]="Default",vi))(),bi=(()=>{return(n=bi||(bi={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",bi;var n})();const Dt=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),_o={},ht=[],el=St({\u0275cmp:St}),Fu=St({\u0275dir:St}),Lu=St({\u0275pipe:St}),Bg=St({\u0275mod:St}),nr=St({\u0275fac:St}),Is=St({__NG_ELEMENT_ID__:St});let YC=0;function Mt(n){return Er(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===vi.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ht,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||bi.Emulated,id:"c"+YC++,styles:n.styles||ht,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Hg(n.inputs,i),r.outputs=Hg(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vg).filter(jg):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Sn).filter(jg):null,r})}function Vg(n){return bt(n)||Cn(n)}function jg(n){return null!==n}function vt(n){return Er(()=>({type:n.type,bootstrap:n.bootstrap||ht,declarations:n.declarations||ht,imports:n.imports||ht,exports:n.exports||ht,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Hg(n,t){if(null==n)return _o;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const Pe=Mt;function Nn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function bt(n){return n[el]||null}function Cn(n){return n[Fu]||null}function Sn(n){return n[Lu]||null}function Fn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Di(n){return Array.isArray(n)&&!0===n[1]}function ju(n){return 0!=(8&n.flags)}function rl(n){return 2==(2&n.flags)}function ol(n){return 1==(1&n.flags)}function Ei(n){return null!==n.template}function tS(n){return 0!=(256&n[2])}function Kr(n,t){return n.hasOwnProperty(nr)?n[nr]:null}class rS{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Li(){return $g}function $g(n){return n.type.prototype.ngOnChanges&&(n.setInput=sS),oS}function oS(){const n=Gg(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===_o)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function sS(n,t,e,i){const r=Gg(n)||function aS(n,t){return n[Wg]=t}(n,{previous:_o,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new rS(l&&l.currentValue,t,s===_o),n[i]=t}Li.ngInherit=!0;const Wg="__ngSimpleChanges__";function Gg(n){return n[Wg]||null}function Gt(n){for(;Array.isArray(n);)n=n[0];return n}function sl(n,t){return Gt(t[n])}function ui(n,t){return Gt(t[n.index])}function Wu(n,t){return n.data[t]}function Do(n,t){return n[t]}function Kn(n,t){const e=t[n];return Fn(e)?e:e[0]}function Xg(n){return 4==(4&n[2])}function al(n){return 64==(64&n[2])}function Cr(n,t){return null==t?null:n[t]}function qg(n){n[18]=0}function Gu(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const ze={lFrame:im(null),bindingsEnabled:!0};function Kg(){return ze.bindingsEnabled}function ge(){return ze.lFrame.lView}function ot(){return ze.lFrame.tView}function Ln(n){return ze.lFrame.contextLView=n,n[8]}function Bn(n){return ze.lFrame.contextLView=null,n}function Zt(){let n=Zg();for(;null!==n&&64===n.type;)n=n.parent;return n}function Zg(){return ze.lFrame.currentTNode}function Bi(n,t){const e=ze.lFrame;e.currentTNode=n,e.isParent=t}function Xu(){return ze.lFrame.isParent}function qu(){ze.lFrame.isParent=!1}function Eo(){return ze.lFrame.bindingIndex++}function wS(n,t){const e=ze.lFrame;e.bindingIndex=e.bindingRootIndex=n,Yu(t)}function Yu(n){ze.lFrame.currentDirectiveIndex=n}function Ku(n){const t=ze.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function em(){return ze.lFrame.currentQueryIndex}function Zu(n){ze.lFrame.currentQueryIndex=n}function ES(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function tm(n,t,e){if(e&Ue.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&Ue.Host||(r=ES(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=ze.lFrame=nm();return i.currentTNode=t,i.lView=n,!0}function Qu(n){const t=nm(),e=n[1];ze.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function nm(){const n=ze.lFrame,t=null===n?null:n.child;return null===t?im(n):t}function im(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function rm(){const n=ze.lFrame;return ze.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const om=rm;function Ju(){const n=rm();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Mn(){return ze.lFrame.selectedIndex}function Sr(n){ze.lFrame.selectedIndex=n}function Bt(){const n=ze.lFrame;return Wu(n.tView,n.selectedIndex)}function di(){ze.lFrame.currentNamespace="svg"}function Ci(){!function MS(){ze.lFrame.currentNamespace=null}()}function cl(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class ks{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function hl(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let nd=!0;function pl(n){const t=nd;return nd=n,t}let FS=0;const Vi={};function Fs(n,t){const e=rd(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,id(i.data,n),id(t,null),id(i.blueprint,null));const r=gl(n,t),o=n.injectorIndex;if(um(r)){const s=Co(r),a=So(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function id(n,t){n.push(0,0,0,0,0,0,0,0,t)}function rd(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function gl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=vm(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ml(n,t,e){!function LS(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Is)&&(i=e[Is]),null==i&&(i=e[Is]=FS++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:HS:t}(e);if("function"==typeof o){if(!tm(t,n,i))return i&Ue.Host?fm(r,0,i):pm(t,e,i,r);try{const s=o(i);if(null!=s||i&Ue.Optional)return s;Qa()}finally{om()}}else if("number"==typeof o){let s=null,a=rd(n,t),l=-1,c=i&Ue.Host?t[16][6]:null;for((-1===a||i&Ue.SkipSelf)&&(l=-1===a?gl(n,t):t[a+8],-1!==l&&ym(i,!1)?(s=t[1],a=Co(l),t=So(l,t)):a=-1);-1!==a;){const u=t[1];if(_m(o,a,u.data)){const h=VS(a,t,e,s,i,c);if(h!==Vi)return h}l=t[a+8],-1!==l&&ym(i,t[1].data[a+8]===c)&&_m(o,a,t)?(s=u,a=Co(l),t=So(l,t)):a=-1}}return r}function VS(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=_l(a,s,e,null==i?rl(a)&&nd:i!=s&&0!=(3&a.type),r&Ue.Host&&o===a);return null!==u?Ls(t,s,u,a):Vi}function _l(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,D=r?a+u:n.directiveEnd;for(let R=i?a:a+u;R=l&&Y.type===e)return R}if(r){const R=s[l];if(R&&Ei(R)&&R.type===e)return l}return null}function Ls(n,t,e,i){let r=n[e];const o=t.data;if(function RS(n){return n instanceof ks}(r)){const s=r;s.resolving&&function jC(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Se(-200,`Circular dependency in DI detected for ${n}${e}`)}(function dt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():We(n)}(o[e]));const a=pl(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ai(s.injectImpl):null;tm(n,i,Ue.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function IS(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=$g(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&ai(l),pl(a),s.resolving=!1,om()}}return r}function _m(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[nr]||od(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[nr]||od(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function od(n){return Ou(n)?()=>{const t=od(je(n));return t&&t()}:Kr(n)}function vm(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Bs(n){return function BS(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function sd(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const h=l.hasOwnProperty(Ao)?l[Ao]:Object.defineProperty(l,Ao,{value:[]})[Ao];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class Ce{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Ie({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zn(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?or(e,t):t(e))}function wm(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function yl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Hs(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function GS(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function ld(n,t){const e=Ro(n,t);if(e>=0)return n[1|e]}function Ro(n,t){return function Cm(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return El}())||void 0===t?void 0:t.createHTML(n))||n}class Zr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yT extends Zr{getTypeName(){return"HTML"}}class vT extends Zr{getTypeName(){return"Style"}}class bT extends Zr{getTypeName(){return"Script"}}class wT extends Zr{getTypeName(){return"URL"}}class DT extends Zr{getTypeName(){return"ResourceURL"}}function Jn(n){return n instanceof Zr?n.changingThisBreaksApplicationSecurity:n}function ji(n,t){const e=function ET(n){return n instanceof Zr&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class IT{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(No(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class xT{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=No(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=No(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Xs(t.trim())).join(", ")),this.buf.push(" ",s,'="',$m(l),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();md.hasOwnProperty(e)&&!jm.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push($m(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const FT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LT=/([^\#-~ |!])/g;function $m(n){return n.replace(/&/g,"&").replace(FT,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(LT,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Sl;function Wm(n,t){let e=null;try{Sl=Sl||function Bm(n){const t=new xT(n);return function RT(){try{return!!(new window.DOMParser).parseFromString(No(""),"text/html")}catch(n){return!1}}()?new IT(t):t}(n);let i=t?String(t):"";e=Sl.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Sl.getInertBodyElement(i)}while(i!==o);return No((new NT).sanitizeChildren(vd(e)||e))}finally{if(e){const i=vd(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function vd(n){return"content"in n&&function BT(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ft=(()=>((ft=ft||{})[ft.NONE=0]="NONE",ft[ft.HTML=1]="HTML",ft[ft.STYLE=2]="STYLE",ft[ft.SCRIPT=3]="SCRIPT",ft[ft.URL=4]="URL",ft[ft.RESOURCE_URL=5]="RESOURCE_URL",ft))();const qm=new Ce("ENVIRONMENT_INITIALIZER"),Ym=new Ce("INJECTOR",-1),Km=new Ce("INJECTOR_DEF_TYPES");class Zm{get(t,e=Us){if(e===Us){const i=new Error(`NullInjectorError: No provider for ${Tt(t)}!`);throw i.name="NullInjectorError",i}return e}}function GT(...n){return{\u0275providers:Qm(0,n)}}function Qm(n,...t){const e=[],i=new Set;let r;return or(t,o=>{const s=o;bd(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Jm(r,e),e}function Jm(n,t){for(let e=0;e{t.push(o)})}}function bd(n,t,e,i){if(!(n=je(n)))return!1;let r=null,o=Ng(n);const s=!o&&bt(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Ng(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)bd(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{or(o.imports,u=>{bd(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Jm(c,t)}if(!a){const c=Kr(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:ht},{provide:Km,useValue:r,multi:!0},{provide:qm,useValue:()=>ae(r),multi:!0})}const l=o.providers;null==l||a||or(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const XT=St({provide:String,useValue:St});function wd(n){return null!==n&&"object"==typeof n&&XT in n}function Qr(n){return"function"==typeof n}const Dd=new Ce("Set Injector scope."),Tl={},YT={};let Ed;function Ml(){return void 0===Ed&&(Ed=new Zm),Ed}class Fo{}class n_ extends Fo{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Sd(t,s=>this.processProvider(s)),this.records.set(Ym,Lo(void 0,this)),r.has("environment")&&this.records.set(Fo,Lo(void 0,this));const o=this.records.get(Dd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Km.multi,ht,Ue.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Oo(this),i=ai(void 0);try{return t()}finally{Oo(e),ai(i)}}get(t,e=Us,i=Ue.Default){this.assertNotDestroyed();const r=Oo(this),o=ai(void 0);try{if(!(i&Ue.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function eM(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ce}(t)&&Pu(t);a=l&&this.injectableDefInScope(l)?Lo(Cd(t),Tl):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Ue.Self?Ml():this.parent).get(t,e=i&Ue.Optional&&e===Us?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[bl]=s[bl]||[]).unshift(Tt(t)),r)throw s;return function rT(n,t,e,i){const r=n[bl];throw t[Sm]&&r.unshift(t[Sm]),n.message=function oT(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=Tt(t);if(Array.isArray(t))r=t.map(Tt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Tt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(eT,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[bl]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{ai(o),Oo(r)}}resolveInjectorInitializers(){const t=Oo(this),e=ai(void 0);try{const i=this.get(qm.multi,ht,Ue.Self);for(const r of i)r()}finally{Oo(t),ai(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(Tt(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Se(205,!1)}processProvider(t){let e=Qr(t=je(t))?t:je(t&&t.provide);const i=function ZT(n){return wd(n)?Lo(void 0,n.useValue):Lo(i_(n),Tl)}(t);if(Qr(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Lo(void 0,Tl,!0),r.factory=()=>dd(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Tl&&(e.value=YT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function JT(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=je(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Cd(n){const t=Pu(n),e=null!==t?t.factory:Kr(n);if(null!==e)return e;if(n instanceof Ce)throw new Se(204,!1);if(n instanceof Function)return function KT(n){const t=n.length;if(t>0)throw Hs(t,"?"),new Se(204,!1);const e=function WC(n){const t=n&&(n[Ja]||n[Fg]);if(t){const e=function GC(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Se(204,!1)}function i_(n,t,e){let i;if(Qr(n)){const r=je(n);return Kr(r)||Cd(r)}if(wd(n))i=()=>je(n.useValue);else if(function t_(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...dd(n.deps||[]));else if(function e_(n){return!(!n||!n.useExisting)}(n))i=()=>ae(je(n.useExisting));else{const r=je(n&&(n.useClass||n.provide));if(!function QT(n){return!!n.deps}(n))return Kr(r)||Cd(r);i=()=>new r(...dd(n.deps))}return i}function Lo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function tM(n){return!!n.\u0275providers}function Sd(n,t){for(const e of n)Array.isArray(e)?Sd(e,t):tM(e)?Sd(e.\u0275providers,t):t(e)}class r_{}class rM{resolveComponentFactory(t){throw function iM(n){const t=Error(`No component factory found for ${Tt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Bo=(()=>{class n{}return n.NULL=new rM,n})();function oM(){return Vo(Zt(),ge())}function Vo(n,t){return new lt(ui(n,t))}let lt=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=oM,n})();function sM(n){return n instanceof lt?n.nativeElement:n}class Ks{}let Al=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function aM(){const n=ge(),e=Kn(Zt().index,n);return(Fn(e)?e:n)[11]}(),n})(),lM=(()=>{class n{}return n.\u0275prov=Ie({token:n,providedIn:"root",factory:()=>null}),n})();class Zs{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const cM=new Zs("14.1.3"),Td={};function Rd(n){return n.ngOriginalError}class ar{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Rd(t);for(;e&&Rd(e);)e=Rd(e);return e||null}}const Od=new Map;let wM=0;const kd="__ngContext__";function yn(n,t){Fn(t)?(n[kd]=t[20],function EM(n){Od.set(n[20],n)}(t)):n[kd]=t}function Qs(n){const t=n[kd];return"number"==typeof t?function d_(n){return Od.get(n)||null}(t):t||null}function Nd(n){const t=Qs(n);return t?Fn(t)?t:t.lView:null}const OM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Dt))();function m_(n){return n.ownerDocument.defaultView}var Vn=(()=>((Vn=Vn||{})[Vn.Important=1]="Important",Vn[Vn.DashCase=2]="DashCase",Vn))();function Ld(n,t){return undefined(n,t)}function Js(n){const t=n[3];return Di(t)?t[3]:t}function Bd(n){return b_(n[13])}function Vd(n){return b_(n[4])}function b_(n){for(;null!==n&&!Di(n);)n=n[4];return n}function Ho(n,t,e,i,r){if(null!=i){let o,s=!1;Di(i)?o=i:Fn(i)&&(s=!0,i=i[0]);const a=Gt(i);0===n&&null!==e?null==r?T_(t,e,a):Jr(t,e,a,r||null,!0):1===n&&null!==e?Jr(t,e,a,r||null,!0):2===n?function P_(n,t,e){const i=Il(n,t);i&&function YM(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function QM(n,t,e,i,r){const o=e[7];o!==Gt(e)&&Ho(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=yl(n,10+t);!function HM(n,t){ea(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function E_(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&ea(n,t,e,3,null,null),function $M(n){let t=n[13];if(!t)return zd(n[1],n);for(;t;){let e=null;if(Fn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Fn(t)&&zd(t[1],t),t=t[3];null===t&&(t=n),Fn(t)&&zd(t[1],t),e=t&&t[4]}t=e}}(t)}}function zd(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function qM(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[h+1].toLowerCase();const R=8&i?D:null;if(R&&-1!==F_(R,c,0)||2&i&&c!==D){if(Si(i))return!1;s=!0}}}}else{if(!s&&!Si(i)&&!Si(l))return!1;if(s&&Si(l))continue;s=!1,i=l|1&i}}return Si(i)||s}function Si(n){return 0==(1&n)}function r1(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Si(s)&&(t+=j_(o,r),r=""),i=s,o=o||!Si(i);e++}return""!==r&&(t+=j_(o,r)),t}const Ge={};function Oe(n){H_(ot(),ge(),Mn()+n,!1)}function H_(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&ul(t,o,e)}else{const o=n.preOrderHooks;null!==o&&dl(t,o,0,e)}Sr(e)}function W_(n,t=null,e=null,i){const r=G_(n,t,e,i);return r.resolveInjectorInitializers(),r}function G_(n,t=null,e=null,i,r=new Set){const o=[e||ht,GT(n)];return i=i||("object"==typeof n?void 0:Tt(n)),new n_(o,t||Ml(),i||null,r)}let In=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return W_({name:""},i,e,"");{const o=null!==(r=e.name)&&void 0!==r?r:"";return W_({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=Us,n.NULL=new Zm,n.\u0275prov=Ie({token:n,providedIn:"any",factory:()=>ae(Ym)}),n.__NG_ELEMENT_ID__=-1,n})();function te(n,t=Ue.Default){const e=ge();return null===e?ae(n,t):gm(Zt(),e,je(n),t)}function Qd(){throw new Error("invalid")}function Pl(n,t){return n<<17|t<<2}function Ti(n){return n>>17&32767}function Jd(n){return 2|n}function cr(n){return(131068&n)>>2}function eh(n,t){return-131069&n|t<<2}function th(n){return 1|n}function cy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&H_(n,t,22,!1),e(i,r)}finally{Sr(o)}}function dy(n,t,e){if(ju(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function yy(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function vy(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function tA(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&mh(e)}}function mh(n){for(let i=Bd(n);null!==i;i=Vd(i))for(let r=10;r0&&mh(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&mh(r)}}function lA(n,t){const e=Kn(t,n),i=e[1];(function cA(n,t){for(let e=t.length;ePromise.resolve(null))();function Sy(n){return n[7]||(n[7]=[])}function Ty(n){return n.cleanup||(n.cleanup=[])}function My(n,t,e){return(null===n||Ei(n))&&(e=function dS(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function Ay(n,t){const e=n[9],i=e?e.get(ar,null):null;i&&i.handleError(t)}function bh(n,t,e,i,r){for(let o=0;o-1&&(Ud(t,i),yl(e,i))}this._attachedToViewContainer=!1}E_(this._lView[1],this._lView)}onDestroy(t){fy(this._lView[1],this._lView,null,t)}markForCheck(){_h(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function yh(n,t,e){const i=t[10];i.begin&&i.begin();try{ta(n,t,n.template,e)}catch(r){throw Ay(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zM(n,t){ea(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Se(902,!1);this._appRef=t}}class hA extends na{constructor(t){super(t),this._view=t}detectChanges(){Cy(this._view)}checkNoChanges(){}get context(){return null}}class wh extends Bo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=bt(t);return new ia(e,this.ngModule)}}function Iy(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class pA{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,Td,i);return r!==Td||e===Td?r:this.parentInjector.get(t,e,i)}}class ia extends r_{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function u1(n){return n.map(c1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Iy(this.componentDef.inputs)}get outputs(){return Iy(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Fo?r:null==r?void 0:r.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pA(t,o):t,a=s.get(Ks,null);if(null===a)throw new Se(407,!1);const l=s.get(lM,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=i?function W1(n,t,e){return n.selectRootElement(t,e===bi.ShadowDom)}(c,i,this.componentDef.encapsulation):Hd(a.createRenderer(null,this.componentDef),u,function fA(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),D=this.componentDef.onPush?288:272,R=function vA(n,t){return{components:[],scheduler:n||OM,clean:dA,playerHandler:t||null,flags:0}}(),Y=fh(0,null,null,1,0,null,null,null,null,null),ee=Fl(null,Y,R,D,null,null,a,c,l,s,null);let re,ue;Qu(ee);try{const be=function _A(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=zo(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Vl(l,c,!0),null!==n&&(hl(r,n,c),null!==l.classes&&Xd(r,n,l.classes),null!==l.styles&&N_(r,n,l.styles)));const u=i.createRenderer(n,t),h=Fl(e,hy(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(ml(Fs(l,e),s,t.type),vy(s,l),by(l,e.length,1)),Bl(e,h),e[22]=h}(h,this.componentDef,ee,a,c);if(h)if(i)hl(c,h,["ng-version",cM.full]);else{const{attrs:le,classes:we}=function d1(n){const t=[],e=[];let i=1,r=2;for(;i0&&Xd(c,h,we.join(" "))}if(ue=Wu(Y,22),void 0!==e){const le=ue.projection=[];for(let we=0;we=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=fl(r.hostAttrs,e=fl(e,r.hostAttrs))}}(i)}function Dh(n){return n===_o?{}:n===ht?[]:n}function DA(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function EA(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function CA(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let Hl=null;function eo(){if(!Hl){const n=Dt.Symbol;if(n&&n.iterator)Hl=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Gt(Be[i.index])):i.index;let we=null;if(!a&&l&&(we=function BA(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==we)(we.__ngLastListenerFn__||we).__ngNextListenerFn__=o,we.__ngLastListenerFn__=o,R=!1;else{o=$y(i,t,h,o,!1);const Be=e.listen(ue,r,o);D.push(o,Be),u&&u.push(r,le,be,be+1)}}else o=$y(i,t,h,o,!1);const Y=i.outputs;let ee;if(R&&null!==Y&&(ee=Y[r])){const re=ee.length;if(re)for(let ue=0;ue0;)t=t[15],n--;return t}(n,ze.lFrame.contextLView))[8]}(n)}function VA(n,t){let e=null;const i=function o1(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}function Rr(n,t,e){return Ai(n,t,e,!1),Rr}function $t(n,t){return Ai(n,t,null,!0),$t}function Ai(n,t,e,i){const r=ge(),o=ot(),s=function rr(n){const t=ze.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);o.firstUpdatePass&&function av(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Mn()],s=function sv(n,t){return t>=n.expandoStartIndex}(n,e);(function dv(n,t){return 0!=(n.flags&(t?16:32))})(o,i)&&null===t&&!s&&(t=!1),t=function ZA(n,t,e,i){const r=Ku(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=sa(e=Ah(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=Ah(r,n,t,e,i),null===o){let l=function QA(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==cr(i))return n[Ti(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Ah(null,n,t,l[1],i),l=sa(l,t.attrs,i),function JA(n,t,e,i){n[Ti(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function eI(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const D=Ti(n[a+1]);n[i+1]=Pl(D,a),0!==D&&(n[D+1]=eh(n[D+1],i)),n[a+1]=function x1(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Pl(a,0),0!==a&&(n[a+1]=eh(n[a+1],i)),a=i;else n[i+1]=Pl(l,0),0===a?a=i:n[l+1]=eh(n[l+1],i),l=i;c&&(n[i+1]=Jd(n[i+1])),Jy(n,u,i,!0),Jy(n,u,i,!1),function HA(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Ro(o,t)>=0&&(e[i+1]=th(e[i+1]))}(t,u,n,i,o),s=Pl(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}(o,n,s,i),t!==Ge&&vn(r,s,t)&&function cv(n,t,e,i,r,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];zl(function ty(n){return 1==(1&n)}(c)?uv(l,t,e,r,cr(c),s):void 0)||(zl(o)||function ey(n){return 2==(2&n)}(c)&&(o=uv(l,null,e,r,a,s)),function JM(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:Vn.DashCase;null==r?n.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Vn.Important),n.setStyle(e,i,r,o))}}(i,s,sl(Mn(),e),r,o))}(o,o.data[Mn()],r,r[11],n,r[s+1]=function iI(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Tt(Jn(n)))),n}(t,e),i,s)}function Ah(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let D=e[r+1];D===Ge&&(D=h?ht:void 0);let R=h?ld(D,i):u===i?D:void 0;if(c&&!zl(R)&&(R=ld(l,i)),zl(R)&&(a=R,s))return a;const Y=n[r+1];r=s?Ti(Y):cr(Y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=ld(l,i))}return a}function zl(n){return void 0!==n}function Ee(n,t=""){const e=ge(),i=ot(),r=n+22,o=i.firstCreatePass?zo(i,r,1,t,null):i.data[r],s=e[r]=function jd(n,t){return n.createText(t)}(e[11],t);xl(i,e,s,o),Bi(o,!1)}function Xi(n){return Vt("",n,""),Xi}function Vt(n,t,e){const i=ge(),r=Go(i,n,t,e);return r!==Ge&&function ur(n,t,e){const i=sl(t,n);!function w_(n,t,e){n.setValue(t,e)}(n[11],i,e)}(i,Mn(),r),Vt}function $l(n,t,e){const i=ge();return vn(i,Eo(),t)&&ei(ot(),Bt(),i,n,t,i[11],e,!0),$l}function Ih(n,t,e){const i=ge();if(vn(i,Eo(),t)){const o=ot(),s=Bt();ei(o,s,i,n,t,My(Ku(o.data),s,i),e,!0)}return Ih}const ns="en-US";let Rv=ns;function Oh(n,t,e,i,r){if(n=je(n),Array.isArray(n))for(let o=0;o>20;if(Qr(n)||!n.multi){const R=new ks(l,r,te),Y=kh(a,t,r?u:u+D,h);-1===Y?(ml(Fs(c,s),o,a),Ph(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(R),s.push(R)):(e[Y]=R,s[Y]=R)}else{const R=kh(a,t,u+D,h),Y=kh(a,t,u,u+D),ee=R>=0&&e[R],re=Y>=0&&e[Y];if(r&&!re||!r&&!ee){ml(Fs(c,s),o,a);const ue=function wx(n,t,e,i,r){const o=new ks(n,e,te);return o.multi=[],o.index=t,o.componentProviders=0,nb(o,r,i&&!e),o}(r?bx:vx,e.length,r,i,l);!r&&re&&(e[Y].providerFactory=ue),Ph(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(ue),s.push(ue)}else Ph(o,n,R>-1?R:Y,nb(e[r?Y:R],l,!r&&i));!r&&i&&re&&e[Y].componentProviders++}}}function Ph(n,t,e,i){const r=Qr(t),o=function qT(n){return!!n.useClass}(t);if(r||o){const l=(o?je(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function nb(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function kh(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function yx(n,t,e){const i=ot();if(i.firstCreatePass){const r=Ei(n);Oh(e,i.data,i.blueprint,r,!0),Oh(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class rs{}class ib extends rs{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new wh(this);const i=function qn(n,t){const e=n[Bg]||null;if(!e&&!0===t)throw new Error(`Type ${Tt(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function lr(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=G_(t,e,[{provide:rs,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver}],Tt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Fh extends class Dx{}{constructor(t){super(),this.moduleType=t}create(t){return new ib(this.moduleType,t)}}function db(n,t,e,i,r,o){const s=t+e;return vn(n,s,r)?function zi(n,t,e){return n[t]=e}(n,s+1,o?i.call(o,r):i(r)):function da(n,t){const e=n[t];return e===Ge?void 0:e}(n,s+1)}function _b(n,t,e){const i=n+22,r=ge(),o=Do(r,i);return function ha(n,t){return n[1].data[t].pure}(r,i)?db(r,function Tn(){const n=ze.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,o.transform,e,o):o.transform(e)}function Bh(n){return t=>{setTimeout(n,void 0,t)}}const _t=class Kx extends _e{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,o,s;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const h=t;a=null===(r=h.next)||void 0===r?void 0:r.bind(h),l=null===(o=h.error)||void 0===o?void 0:o.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=Bh(l),a&&(a=Bh(a)),c&&(c=Bh(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof G&&t.add(u),u}};function Zx(){return this._results[eo()]()}class Vh{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=eo(),i=Vh.prototype;i[e]||(i[e]=Zx)}get changes(){return this._changes||(this._changes=new _t)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Zn(t);(this._changesDetected=!function $S(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=eR,n})();const Qx=sn,Jx=class extends Qx{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Fl(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Ll(i,r,t),new na(r)}};function eR(){return Yl(Zt(),ge())}function Yl(n,t){return 4&n.type?new Jx(t,n,Vo(n,t)):null}let an=(()=>{class n{}return n.__NG_ELEMENT_ID__=tR,n})();function tR(){return bb(Zt(),ge())}const nR=an,yb=class extends nR{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new To(this._hostTNode,this._hostLView)}get parentInjector(){const t=gl(this._hostTNode,this._hostLView);if(um(t)){const e=So(t,this._hostLView),i=Co(t);return new To(e[1].data[i+8],e)}return new To(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=vb(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function js(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const h=e||{};a=h.index,i=h.injector,r=h.projectableNodes,o=h.environmentInjector||h.ngModuleRef}const l=s?t:new ia(bt(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const D=(s?c:this.parentInjector).get(Fo,null);D&&(o=D)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function fS(n){return Di(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const h=i[3],D=new yb(h,h[6],h[3]);D.detach(D.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function WM(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let h=10;h{class n{constructor(e){this.appInits=e,this.resolve=Zl,this.reject=Zl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(ae(Kh,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const as=new Ce("AppId",{providedIn:"root",factory:function $b(){return`${Zh()}${Zh()}${Zh()}`}});function Zh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Wb=new Ce("Platform Initializer"),ga=new Ce("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),RR=new Ce("appBootstrapListener"),dr=new Ce("AnimationModuleType"),qi=new Ce("LocaleId",{providedIn:"root",factory:()=>sr(qi,Ue.Optional|Ue.SkipSelf)||function OR(){return"undefined"!=typeof $localize&&$localize.locale||ns}()}),LR=(()=>Promise.resolve(0))();function Qh(n){"undefined"==typeof Zone?LR.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Xe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _t(!1),this.onMicrotaskEmpty=new _t(!1),this.onStable=new _t(!1),this.onError=new _t(!1),"undefined"==typeof Zone)throw new Se(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function BR(){let n=Dt.requestAnimationFrame,t=Dt.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function HR(n){const t=()=>{!function jR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Dt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,ef(n),n.isCheckStableRunning=!0,Jh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),ef(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return qb(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Yb(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return qb(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Yb(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,ef(n),Jh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xe.isInAngularZone())throw new Se(909,!1)}static assertNotInAngularZone(){if(Xe.isInAngularZone())throw new Se(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,VR,Zl,Zl);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const VR={};function Jh(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function ef(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function qb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Yb(n){n._nesting--,Jh(n)}class UR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _t,this.onMicrotaskEmpty=new _t,this.onStable=new _t,this.onError=new _t}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const Kb=new Ce(""),Jl=new Ce("");let ma,tf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ma||(function zR(n){ma=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xe.assertNotInAngularZone(),Qh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Qh(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(ae(Xe),ae(nf),ae(Jl))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),nf=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){var r;return null!==(r=null==ma?void 0:ma.findTestabilityInTree(this,e,i))&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Yi=null;const Zb=new Ce("AllowMultipleToken"),rf=new Ce("PlatformDestroyListeners");function Jb(n,t,e=[]){const i=`Platform: ${t}`,r=new Ce(i);return(o=[])=>{let s=sf();if(!s||s.injector.get(Zb,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function GR(n){if(Yi&&!Yi.get(Zb,!1))throw new Se(400,!1);Yi=n;const t=n.get(t0);(function Qb(n){const t=n.get(Wb,null);t&&t.forEach(e=>e())})(n)}(function e0(n=[],t){return In.create({name:t,providers:[{provide:Dd,useValue:"platform"},{provide:rf,useValue:new Set([()=>Yi=null])},...n]})}(a,i))}return function qR(n){const t=sf();if(!t)throw new Se(401,!1);return t}()}}function sf(){var n;return null!==(n=null==Yi?void 0:Yi.get(t0))&&void 0!==n?n:null}let t0=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function YR(n,t){let e;return e="noop"===n?new UR:("zone.js"===n?void 0:n)||new Xe(t),e}(null==i?void 0:i.ngZone,function n0(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Xe,useValue:r}];return r.run(()=>{const s=In.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ar,null);if(!l)throw new Se(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{ec(this._modules,a),c.unsubscribe()})}),function r0(n,t,e){try{const i=e();return Sh(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Ql);return c.runInitializers(),c.donePromise.then(()=>(function Ov(n){Xn(n,"Expected localeId to be defined"),"string"==typeof n&&(Rv=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(qi,ns)||ns),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=o0({},i);return function $R(n,t,e){const i=new Fh(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(ls);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Se(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Se(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(rf,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(ae(In))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function o0(n,t){return Array.isArray(t)?t.reduce(o0,n):Object.assign(Object.assign({},n),t)}let ls=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new pe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new pe(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Xe.assertNotInAngularZone(),Qh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Xe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Fi(o,s.pipe(Pg()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof r_;if(!this._injector.get(Ql).done)throw!r&&function pa(n){const t=bt(n)||Cn(n)||Sn(n);return null!==t&&t.standalone}(e),new Se(405,false);let s;s=r?e:this._injector.get(Bo).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function WR(n){return n.isBoundToModule}(s)?void 0:this._injector.get(rs),c=s.create(In.NULL,[],i||s.selector,a),u=c.location.nativeElement,h=c.injector.get(Kb,null);return null==h||h.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),ec(this.components,c),null==h||h.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Se(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;ec(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(RR,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>ec(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Se(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(ae(Xe),ae(Fo),ae(ar))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ec(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let a0=!0,Ki=(()=>{class n{}return n.__NG_ELEMENT_ID__=QR,n})();function QR(n){return function JR(n,t,e){if(rl(n)&&!e){const i=Kn(n.index,t);return new na(i,i)}return 47&n.type?new na(t[16],t):null}(Zt(),ge(),16==(16&n))}class h0{constructor(){}supports(t){return ra(t)}create(t){return new oO(t)}}const rO=(n,t)=>t;class oO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||rO}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new sO(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new f0),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new f0),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class sO{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class f0{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new aO,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function p0(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new cO(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class cO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function m0(){return new fr([new h0])}let fr=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||m0()),deps:[[n,new Po,new Mr]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Se(901,!1)}}return n.\u0275prov=Ie({token:n,providedIn:"root",factory:m0}),n})();function _0(){return new _a([new g0])}let _a=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||_0()),deps:[[n,new Po,new Mr]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Se(901,!1)}}return n.\u0275prov=Ie({token:n,providedIn:"root",factory:_0}),n})();const hO=Jb(null,"core",[]);let fO=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(ae(ls))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})(),ic=null;function Or(){return ic}const $e=new Ce("DocumentToken");let y0=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:function(){return function _O(){return ae(v0)}()},providedIn:"platform"}),n})(),v0=(()=>{class n extends y0{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Or().getBaseHref(this._doc)}onPopState(e){const i=Or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){b0()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){b0()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:function(){return function yO(){return new v0(ae($e))}()},providedIn:"platform"}),n})();function b0(){return!!window.history.pushState}function w0(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function D0(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function oo(n){return n&&"?"!==n[0]?"?"+n:n}let df=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:function(){return sr(bO)},providedIn:"root"}),n})();const vO=new Ce("appBaseHref");let bO=(()=>{class n extends df{constructor(e,i){var r,o,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(r=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==r?r:null===(o=sr($e).location)||void 0===o?void 0:o.origin)&&void 0!==s?s:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return w0(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+oo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+oo(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+oo(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ae(y0),ae(vO,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hf=(()=>{class n{constructor(e){this._subject=new _t,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=D0(E0(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){var e;null===(e=this._urlChangeSubscription)||void 0===e||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+oo(i))}normalize(e){return n.stripTrailingSlash(function DO(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,E0(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+oo(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+oo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._locationStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var i;const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=oo,n.joinWithSlash=w0,n.stripTrailingSlash=D0,n.\u0275fac=function(e){return new(e||n)(ae(df))},n.\u0275prov=Ie({token:n,factory:function(){return function wO(){return new hf(ae(df))}()},providedIn:"root"}),n})();function E0(n){return n.replace(/\/index.html$/,"")}let O0=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ra(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Tt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(te(fr),te(_a),te(lt),te(Al))},n.\u0275dir=Pe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class aP{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,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 Df=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new aP(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),N0(a,r)}});for(let r=0,o=i.length;r{N0(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(sn),te(fr))},n.\u0275dir=Pe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function N0(n,t){n.context.$implicit=t.item}let cs=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new cP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){F0("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){F0("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class cP{constructor(){this.$implicit=null,this.ngIf=null}}function F0(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Tt(t)}'.`)}let B0=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Vn.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(_a),te(Al))},n.\u0275dir=Pe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})();class pP{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class gP{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const mP=new gP,_P=new pP;let V0=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Sh(e))return mP;if(Hy(e))return _P;throw function Oi(n,t){return new Se(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(te(Ki,16))},n.\u0275pipe=Nn({name:"async",type:n,pure:!1,standalone:!0}),n})(),us=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})();const H0="browser";function Mf(n){return n===H0}class Af extends class VP extends class mO{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function gO(n){ic||(ic=n)}(new Af)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function jP(){return ba=ba||document.querySelector("base"),ba?ba.getAttribute("href"):null}();return null==e?null:function HP(n){fc=fc||document.createElement("a"),fc.setAttribute("href",n);const t=fc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ba=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function oP(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let fc,ba=null;const z0=new Ce("TRANSITION_ID"),zP=[{provide:Kh,useFactory:function UP(n,t,e){return()=>{e.get(Ql).donePromise.then(()=>{const i=Or(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const pc=new Ce("EventManagerPlugins");let gc=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),wa=(()=>{class n extends W0{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(G0),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(G0))}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();function G0(n){Or().remove(n)}const If={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},xf=/%COMP%/g;function mc(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let _c=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Rf(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case bi.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new ZP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case bi.ShadowDom:return new QP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=mc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(ae(gc),ae(wa),ae(as))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class Rf{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(If[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(Z0(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(Z0(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=If[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=If[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Vn.DashCase|Vn.Important)?t.style.setProperty(e,i,r&Vn.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Vn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Y0(i)):this.eventManager.addEventListener(t,e,Y0(i))}}function Z0(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ZP extends Rf{constructor(t,e,i,r){super(t),this.component=i;const o=mc(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function qP(n){return"_ngcontent-%COMP%".replace(xf,n)}(r+"-"+i.id),this.hostAttr=function YP(n){return"_nghost-%COMP%".replace(xf,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class QP extends Rf{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=mc(r.id,r.styles,[]);for(let s=0;s{class n extends $0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const Q0=["alt","control","meta","shift"],tk={"\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"},J0={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},nk={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let ik=(()=>{class n extends $0{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Or().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(Q0.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function rk(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&J0.hasOwnProperty(t)&&(t=J0[t]))}return tk[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Q0.forEach(o=>{o!=r&&(0,nk[o])(e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const lk=Jb(hO,"browser",[{provide:ga,useValue:H0},{provide:Wb,useValue:function ok(){Af.makeCurrent()},multi:!0},{provide:$e,useFactory:function ak(){return function gT(n){fd=n}(document),document},deps:[]}]),tw=new Ce(""),nw=[{provide:Jl,useClass:class $P{addToWindow(t){Dt.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Dt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Dt.getAllAngularRootElements=()=>t.getAllRootElements(),Dt.frameworkStabilizers||(Dt.frameworkStabilizers=[]),Dt.frameworkStabilizers.push(i=>{const r=Dt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Or().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},deps:[]},{provide:Kb,useClass:tf,deps:[Xe,nf,Jl]},{provide:tf,useClass:tf,deps:[Xe,nf,Jl]}],iw=[{provide:Dd,useValue:"root"},{provide:ar,useFactory:function sk(){return new ar},deps:[]},{provide:pc,useClass:JP,multi:!0,deps:[$e,Xe,ga]},{provide:pc,useClass:ik,multi:!0,deps:[$e]},{provide:_c,useClass:_c,deps:[gc,wa,as]},{provide:Ks,useExisting:_c},{provide:W0,useExisting:wa},{provide:wa,useClass:wa,deps:[$e]},{provide:gc,useClass:gc,deps:[pc,Xe]},{provide:class BP{},useClass:WP,deps:[]},[]];let rw=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:as,useValue:e.appId},{provide:z0,useExisting:as},zP]}}}return n.\u0275fac=function(e){return new(e||n)(ae(tw,12))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[...iw,...nw],imports:[us,fO]}),n})();"undefined"!=typeof window&&window;let kf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:function(e){let i=null;return i=e?new(e||n):ae(aw),i},providedIn:"root"}),n})(),aw=(()=>{class n extends kf{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ft.NONE:return i;case ft.HTML:return ji(i,"HTML")?Jn(i):Wm(this._doc,String(i)).toString();case ft.STYLE:return ji(i,"Style")?Jn(i):i;case ft.SCRIPT:if(ji(i,"Script"))return Jn(i);throw new Error("unsafe value used in a script context");case ft.URL:return ji(i,"URL")?Jn(i):Xs(String(i));case ft.RESOURCE_URL:if(ji(i,"ResourceURL"))return Jn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function CT(n){return new yT(n)}(e)}bypassSecurityTrustStyle(e){return function ST(n){return new vT(n)}(e)}bypassSecurityTrustScript(e){return function TT(n){return new bT(n)}(e)}bypassSecurityTrustUrl(e){return function MT(n){return new wT(n)}(e)}bypassSecurityTrustResourceUrl(e){return function AT(n){return new DT(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:function(e){let i=null;return i=e?new e:function _k(n){return new aw(n.get($e))}(ae(In)),i},providedIn:"root"}),n})();function lw(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function cw(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){lw(o,i,r,s,a,"next",l)}function a(l){lw(o,i,r,s,a,"throw",l)}s(void 0)})}}var yk=x(5452);let Ff,Nf=(()=>{class n{constructor(){this.selectedFileData=new _e}getselectedFileDataListener(){return this.selectedFileData.asObservable()}fileChange(e){var i=this;return cw(function*(){const o=e.target.files;if(o){if(!o.length)return;i.selectedFileName=o[0].name;let s=new FileReader;s.readAsText(o[0]),s.onload=a=>{yk.parseStringPromise(s.result).then(l=>{i.selectedFileContent=l,i.selectedFileData.next({selectedFileName:i.selectedFileName,selectedFileContent:i.selectedFileContent})}).catch(l=>{console.log(l)})}}})()}fileClear(){var e=this;return cw(function*(){e.selectedFileName=void 0,e.selectedFileContent=void 0,e.selectedFileData.next({selectedFileName:e.selectedFileName,selectedFileContent:e.selectedFileContent})})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();try{Ff="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Ff=!1}let Da,ao,Lf,On=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Mf(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&&!Ff)&&"undefined"!=typeof CSS&&!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}}return n.\u0275fac=function(e){return new(e||n)(ae(ga))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function so(n){return function vk(){if(null==Da&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Da=!0}))}finally{Da=Da||!1}return Da}()?n:!!n.capture}function bk(){if(null==ao){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ao=!1,ao;if("scrollBehavior"in document.documentElement.style)ao=!0;else{const n=Element.prototype.scrollTo;ao=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ao}function Bf(n){if(function wk(){if(null==Lf){const n="undefined"!=typeof document?document.head:null;Lf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Lf}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Vf(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Pi(n){return n.composedPath?n.composedPath()[0]:n.target}function jf(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class Hf{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class vc extends Hf{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class dw extends Hf{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Dk extends Hf{constructor(t){super(),this.element=t instanceof lt?t.nativeElement:t}}class Uf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof vc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof dw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Dk?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ek extends Uf{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,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(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||In.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let zf=(()=>{class n extends Uf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new _t,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(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(te(Bo),te(an),te($e))},n.\u0275dir=Pe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[et]}),n})(),bc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})();class Ea extends _e{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function bn(...n){return Dr(n,As(n))}function Wf(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function zn(n,t){return qe((e,i)=>{let r=0;e.subscribe(new pt(i,o=>n.call(t,o,r++)&&i.next(o)))})}function hw(n){return zn((t,e)=>n<=e)}function Ok(n,t){return n===t}function Yt(n){return qe((t,e)=>{Wn(n).subscribe(new pt(e,()=>e.complete(),q)),!e.closed&&t.subscribe(e)})}function Pn(n){return null!=n&&"false"!=`${n}`}function Ca(n,t=0){return fw(n)?Number(n):t}function fw(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Sa(n){return Array.isArray(n)?n:[n]}function Kt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function rn(n){return n instanceof lt?n.nativeElement:n}let Pk=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[Pk]}),n})();const{isArray:Nk}=Array,{getPrototypeOf:Fk,prototype:Lk,keys:Bk}=Object;function pw(n){if(1===n.length){const t=n[0];if(Nk(t))return{args:t,keys:null};if(function Vk(n){return n&&"object"==typeof n&&Fk(n)===Lk}(t)){const e=Bk(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:jk}=Array;function Gf(n){return it(t=>function Hk(n,t){return jk(t)?n(...t):n(t)}(n,t))}function gw(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function wc(...n){const t=As(n),e=Ig(n),{args:i,keys:r}=pw(n);if(0===i.length)return Dr([],t);const o=new pe(function Uk(n,t,e=H){return i=>{mw(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Dr(n[l],t);let u=!1;c.subscribe(new pt(i,h=>{o[l]=h,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>gw(r,s):H));return e?o.pipe(Gf(e)):o}function mw(n,t,e){n?er(e,n,t):t()}function Ta(...n){return function zk(){return Mg(1)}()(Dr(n,As(n)))}class $k extends G{constructor(t,e){super()}schedule(t,e=0){return this}}const Dc={setInterval(...n){const{delegate:t}=Dc;return((null==t?void 0:t.setInterval)||setInterval)(...n)},clearInterval(n){const{delegate:t}=Dc;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class Xf extends $k{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return Dc.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;Dc.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,W(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const _w={now:()=>(_w.delegate||Date).now(),delegate:void 0};class Ma{constructor(t,e=Ma.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Ma.now=_w.now;class qf extends Ma{constructor(t,e=Ma.now){super(t,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Ec=new qf(Xf),yw=Ec;function vw(n,t=Ec){return qe((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=t.now();if(u{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function hs(...n){const t=As(n);return qe((e,i)=>{(t?Ta(n,e,t):Ta(n,e)).subscribe(i)})}const bw=new Set;let fs,Wk=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Xk}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Gk(n){if(!bw.has(n))try{fs||(fs=document.createElement("style"),fs.setAttribute("type","text/css"),document.head.appendChild(fs)),fs.sheet&&(fs.sheet.insertRule(`@media ${n} {body{ }}`,0),bw.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(On))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Xk(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let ww=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new _e}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Dw(Sa(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=wc(Dw(Sa(e)).map(s=>this._registerQuery(s).observable));return o=Ta(o.pipe(zt(1)),o.pipe(hw(1),vw(0))),o.pipe(it(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new pe(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(hs(i),it(({matches:s})=>({query:e,matches:s})),Yt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(ae(Wk),ae(Xe))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Dw(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Cc(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const Cw="cdk-describedby-message",Sc="cdk-describedby-host";let Yf=0,Sw=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Yf++,this._document=e,this._id=sr(as)+"-"+Yf++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=Kf(i,r);"string"!=typeof i?(Tw(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){var o;if(!i||!this._isElementNode(e))return;const s=Kf(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===(null===(o=this._messagesContainer)||void 0===o?void 0:o.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${Sc}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Cw));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function Yk(n,t,e){const i=Cc(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Sc,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function Kk(n,t,e){const r=Cc(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Sc)}_isElementDescribedByMessage(e,i){const r=Cc(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(On))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kf(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function Tw(n,t){n.id||(n.id=`${Cw}-${t}-${Yf++}`)}let Tc=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Qk(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function Zk(n){try{return n.frameElement}catch(t){return null}}(function sN(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===Aw(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=Aw(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function rN(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function oN(n){return!function eN(n){return function nN(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function Jk(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function tN(n){return function iN(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Mw(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(ae(On))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Mw(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function Aw(n){if(!Mw(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class aN{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(zt(1)).subscribe(t)}}let Zf=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new aN(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(ae(Tc),ae(Xe),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qf(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Jf(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const lN=new Ce("cdk-input-modality-detector-options"),cN={ignoreKeys:[18,17,224,91,16]},ps=so({passive:!0,capture:!0});let uN=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Ea(null),this._lastTouchMs=0,this._onKeydown=s=>{var a,l;null!==(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)&&void 0!==l&&l.some(c=>c===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Pi(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qf(s)?"keyboard":"mouse"),this._mostRecentTarget=Pi(s))},this._onTouchstart=s=>{Jf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Pi(s))},this._options=Object.assign(Object.assign({},cN),o),this.modalityDetected=this._modality.pipe(hw(1)),this.modalityChanged=this.modalityDetected.pipe(function Rk(n,t=H){return n=null!=n?n:Ok,qe((e,i)=>{let r,o=!0;e.subscribe(new pt(i,s=>{const a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ps),r.addEventListener("mousedown",this._onMousedown,ps),r.addEventListener("touchstart",this._onTouchstart,ps)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ps),document.removeEventListener("mousedown",this._onMousedown,ps),document.removeEventListener("touchstart",this._onTouchstart,ps))}}return n.\u0275fac=function(e){return new(e||n)(ae(On),ae(Xe),ae($e),ae(lN,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hN=new Ce("cdk-focus-monitor-default-options"),Mc=so({passive:!0,capture:!0});let gs=(()=>{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,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 _e,this._rootNodeFocusAndBlurListener=a=>{for(let c=Pi(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const r=rn(e);if(!this._platform.isBrowser||1!==r.nodeType)return bn(null);const o=Bf(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new _e,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=rn(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=rn(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Pi(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Mc),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Mc)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Yt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Mc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Mc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=sr(ww).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ep,xw,Rw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(ep,xw):2===i&&e.add(ep,Rw)}}}return n.\u0275fac=function(e){return new(e||n)(ae(On),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pw=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(ae(Ow))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[kk]}),n})();const fN=["addListener","removeListener"],pN=["addEventListener","removeEventListener"],gN=["on","off"];function ms(n,t,e,i){if(v(e)&&(i=e,e=void 0),i)return ms(n,t,e).pipe(Gf(i));const[r,o]=function yN(n){return v(n.addEventListener)&&v(n.removeEventListener)}(n)?pN.map(s=>a=>n[s](t,a,e)):function mN(n){return v(n.addListener)&&v(n.removeListener)}(n)?fN.map(kw(n,t)):function _N(n){return v(n.on)&&v(n.off)}(n)?gN.map(kw(n,t)):[];if(!r&&Su(n))return mo(s=>ms(s,t,e))(Wn(n));if(!r)throw new TypeError("Invalid event target");return new pe(s=>{const a=(...l)=>s.next(1o(a)})}function kw(n,t){return e=>i=>n[e](t,i)}const Aa={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Aa;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new G(()=>null==e?void 0:e(r))},requestAnimationFrame(...n){const{delegate:t}=Aa;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Aa;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...n)},delegate:void 0},Nw=new class bN extends qf{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let i,r=-1;t=t||e.shift();const o=e.length;do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Aa.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Aa.cancelAnimationFrame(e),t._scheduled=void 0)}});let tp,wN=1;const Ac={};function Fw(n){return n in Ac&&(delete Ac[n],!0)}const DN={setImmediate(n){const t=wN++;return Ac[t]=!0,tp||(tp=Promise.resolve()),tp.then(()=>Fw(t)&&n()),t},clearImmediate(n){Fw(n)}},{setImmediate:EN,clearImmediate:CN}=DN,Ic={setImmediate(...n){const{delegate:t}=Ic;return((null==t?void 0:t.setImmediate)||EN)(...n)},clearImmediate(n){const{delegate:t}=Ic;return((null==t?void 0:t.clearImmediate)||CN)(n)},delegate:void 0};new class TN extends qf{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let i,r=-1;t=t||e.shift();const o=e.length;do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Ic.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Ic.clearImmediate(e),t._scheduled=void 0)}});function np(n=0,t,e=yw){let i=-1;return null!=t&&(Ag(t)?e=t:i=t),new pe(r=>{let o=function IN(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Lw(n,t=yw){return function AN(n){return qe((t,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(null==o||o.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(new pt(e,c=>{i=!0,r=c,o||Wn(n(c)).subscribe(o=new pt(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>np(n,t))}const xN=new Ce("cdk-dir-doc",{providedIn:"root",factory:function RN(){return sr($e)}}),ON=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let lo=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new _t,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function PN(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ON.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(ae(xN,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})(),ip=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new _e,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new pe(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Lw(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):bn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(zn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=rn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ms(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(ae(Xe),ae(On),ae($e,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xc=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new _e,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.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 e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Lw(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(ae(On),ae(Xe),ae($e,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})(),rp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[Ia,Rc,Ia,Rc]}),n})();const Bw=bk();class FN{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Kt(-this._previousScrollPosition.left),t.style.top=Kt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Bw&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Bw&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class LN{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Vw{enable(){}disable(){}attach(){}}function op(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function jw(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class BN{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();op(e,[{width:i,height:r,bottom:r,right:i,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 VN=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Vw,this.close=s=>new LN(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new FN(this._viewportRuler,this._document),this.reposition=s=>new BN(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(ae(ip),ae(xc),ae(Xe),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Hw{constructor(t){if(this.scrollStrategy=new Vw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class jN{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class xa{constructor(t,e,i,r,o,s,a,l,c,u=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new _e,this._attachments=new _e,this._detachments=new _e,this._locationChanges=G.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new _e,this._outsidePointerEvents=new _e,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(zt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),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(null==e?void 0:e.onDestroy)&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;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),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Kt(this._config.width),t.height=Kt(this._config.height),t.minWidth=Kt(this._config.minWidth),t.minHeight=Kt(this._config.minHeight),t.maxWidth=Kt(this._config.maxWidth),t.maxHeight=Kt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(t):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})})}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=Sa(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Yt(Fi(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Oc=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||jf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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 t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,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&&co(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Uw),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=$w(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let D=0-a,R=a+o.height-i.height,Y=this._subtractOverflows(o.width,0-s,s+o.width-i.width),ee=this._subtractOverflows(o.height,D,R),re=Y*ee;return{visibleArea:re,isCompletelyWithinViewport:o.width*o.height===re,fitsInViewportVertically:ee===o.height,fitsInViewportHorizontally:Y==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=zw(this._overlayRef.getConfig().minHeight),a=zw(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=$w(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,h=0;return u=r.width<=o.width?c||-s:t.xY&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-Y/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)D=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=t.x,u=i.right-t.x;else{const R=Math.min(i.right-t.x+i.left,t.x),Y=this._lastBoundingBoxSize.width;u=2*R,h=t.x-R,u>Y&&!this._isInitialRender&&!this._growAfterOpen&&(h=t.x-Y/2)}return{top:s,left:h,bottom:a,right:D,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.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=Kt(i.height),r.top=Kt(i.top),r.bottom=Kt(i.bottom),r.width=Kt(i.width),r.left=Kt(i.left),r.right=Kt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Kt(o)),s&&(r.maxWidth=Kt(s))}this._lastBoundingBoxSize=i,co(this._boundingBox.style,r)}_resetBoundingBoxStyles(){co(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){co(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();co(i,this._getExactOverlayY(e,t,u)),co(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Kt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Kt(s.maxWidth):o&&(i.maxWidth="")),co(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Kt(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Kt(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:jw(t,i),isOriginOutsideView:op(t,i),isOverlayClipped:jw(e,i),isOverlayOutsideView:op(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Sa(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof lt)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function co(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function zw(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(HN);return e&&"px"!==e?null:parseFloat(t)}return n||null}function $w(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Ww="cdk-global-overlay-wrapper";class zN{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Ww),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,h=this._xOffset,D="rtl"===this._overlayRef.getConfig().direction;let R="",Y="",ee="";l?ee="flex-start":"center"===u?(ee="center",D?Y=h:R=h):D?"left"===u||"end"===u?(ee="flex-end",R=h):("right"===u||"start"===u)&&(ee="flex-start",Y=h):"left"===u||"start"===u?(ee="flex-start",R=h):("right"===u||"end"===u)&&(ee="flex-end",Y=h),t.position=this._cssPosition,t.marginLeft=l?"0":R,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":Y,e.justifyContent=ee,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Ww),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let $N=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new zN}flexibleConnectedTo(e){return new UN(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(ae(xc),ae($e),ae(On),ae(Oc))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gw=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WN=(()=>{class n extends Gw{constructor(e,i){super(e),this._ngZone=i,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(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(Xe,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GN=(()=>{class n extends Gw{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Pi(o)},this._clickListener=o=>{const s=Pi(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 u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(On),ae(Xe,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XN=0,kr=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D,R){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=D,this._animationsModuleType=R}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Hw(e);return s.direction=s.direction||this._directionality.value,new xa(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+XN++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ls)),new Ek(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(ae(VN),ae(Oc),ae(Bo),ae($N),ae(WN),ae(In),ae(Xe),ae($e),ae(lo),ae(hf),ae(GN),ae(dr,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const KN={provide:new Ce("cdk-connected-overlay-scroll-strategy"),deps:[kr],useFactory:function YN(n){return()=>n.scrollStrategies.reposition()}};let sp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[kr,KN],imports:[Ia,bc,rp,rp]}),n})();function Pc(n){return new pe(t=>{Wn(n()).subscribe(t)})}function ZN(n,t){}class kc{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}}let Xw=(()=>{class n extends Uf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||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 e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Vf(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Vf();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Vf())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Zf),te($e,8),te(kc),te(Tc),te(Xe),te(xa),te(gs))},n.\u0275cmp=Mt({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Hn(zf,7),2&e){let r;It(r=xt())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&ti("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[et],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&He(0,ZN,0,0,"ng-template",0)},dependencies:[zf],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class ap{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new _e,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Wf(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=(null==e?void 0:e.focusOrigin)||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const qw=new Ce("DialogScrollStrategy"),QN=new Ce("DialogData"),JN=new Ce("DefaultDialogConfig"),tF={provide:qw,deps:[kr],useFactory:function eF(n){return()=>n.scrollStrategies.block()}};let nF=0,Yw=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _e,this._afterOpenedAtThisLevel=new _e,this._ariaHiddenElements=new Map,this.afterAllClosed=Pc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hs(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){const r=this._defaultOptions||new kc;(i=Object.assign(Object.assign({},r),i)).id=i.id||"cdk-dialog-"+nF++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new ap(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){lp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){lp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),lp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Hw({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){var o;const s=r.injector||(null===(o=r.viewContainerRef)||void 0===o?void 0:o.injector),a=[{provide:kc,useValue:r},{provide:ap,useValue:i},{provide:xa,useValue:e}];let l;r.container?"function"==typeof r.container?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=Xw;const c=new vc(l,r.viewContainerRef,In.create({parent:s||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof sn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=Object.assign(Object.assign({},a),"function"==typeof o.templateContext?o.templateContext():o.templateContext)),r.attachTemplatePortal(new dw(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new vc(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){var s;const a=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),l=[{provide:QN,useValue:e.data},{provide:ap,useValue:i}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(i,e,r)):l.push(...e.providers)),e.direction&&(!a||!a.get(lo,null,Ue.Optional))&&l.push({provide:lo,useValue:{value:e.direction,change:bn()}}),In.create({parent:a||o,providers:l})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"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 e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(ae(kr),ae(In),ae(JN,8),ae(n,12),ae(Oc),ae(qw))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();function lp(n,t){let e=n.length;for(;e--;)t(n[e])}let iF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[Yw,tF],imports:[sp,bc,Pw,bc]}),n})(),rF=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),oF=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const aF=new Ce("mat-sanity-checks",{providedIn:"root",factory:function sF(){return!0}});let fn=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!jf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(ae(Ow),ae(aF,8),ae($e))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[Ia,Ia]}),n})();function cp(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Pn(t)}}}function Nc(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function lF(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Pn(t)}}}function cF(n){return class extends n{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new pe(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}class dF{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Qw={enterDuration:225,exitDuration:150},up=so({passive:!0}),Jw=["mousedown","touchstart"],eD=["mouseup","mouseleave","touchend","touchcancel"];class fF{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=rn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Qw),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function pF(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),R=h.transitionDuration,Y="none"===h.transitionProperty||"0s"===R||"0s, 0s"===R,ee=new dF(this,u,i,Y);u.style.transform="scale3d(1, 1, 1)",ee.state=0,i.persistent||(this._mostRecentTransientRipple=ee);let re=null;return!Y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ue=()=>this._finishRippleTransition(ee),be=()=>this._destroyRipple(ee);u.addEventListener("transitionend",ue),u.addEventListener("transitioncancel",be),re={onTransitionEnd:ue,onTransitionCancel:be}}),this._activeRipples.set(ee,re),(Y||!c)&&this._finishRippleTransition(ee),ee}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i=Object.assign(Object.assign({},Qw),t.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=rn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Jw))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(eD),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){var e;const i=null!==(e=this._activeRipples.get(t))&&void 0!==e?e:null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==i&&(t.element.removeEventListener("transitionend",i.onTransitionEnd),t.element.removeEventListener("transitioncancel",i.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=Qf(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,up)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Jw.forEach(t=>{this._triggerElement.removeEventListener(t,this,up)}),this._pointerUpEventsRegistered&&eD.forEach(t=>{this._triggerElement.removeEventListener(t,this,up)}))}}const gF=new Ce("mat-ripple-global-options");let tD=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new fF(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Xe),te(On),te(gF,8),te(dr,8))},n.\u0275dir=Pe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&$t("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),mF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[fn,fn]}),n})();class nD{}const gr="*";function Nr(n,t){return{type:7,name:n,definitions:t,options:{}}}function ii(n,t=null){return{type:4,styles:t,timings:n}}function iD(n,t=null){return{type:3,steps:n,options:t}}function rD(n,t=null){return{type:2,steps:n,options:t}}function ut(n){return{type:6,styles:n,offset:null}}function wn(n,t,e){return{type:0,name:n,styles:t,options:e}}function Oa(n){return{type:5,steps:n}}function $n(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function dp(n=null){return{type:9,options:n}}function hp(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function oD(n){Promise.resolve(null).then(n)}class Pa{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){oD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class sD{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?oD(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function yF(n,t){}const _s={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vF={dialogContainer:Nr("dialogContainer",[wn("void, exit",ut({opacity:0,transform:"scale(0.7)"})),wn("enter",ut({transform:"none"})),$n("* => enter",iD([ii("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",ut({transform:"none",opacity:1})),hp("@*",dp(),{optional:!0})]),_s),$n("* => void, * => exit",iD([ii("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",ut({opacity:0})),hp("@*",dp(),{optional:!0})]),_s)])};class Fc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",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,this.enterAnimationDuration=_s.params.enterAnimationDuration,this.exitAnimationDuration=_s.params.exitAnimationDuration}}let bF=(()=>{class n extends Xw{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new _t}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Zf),te($e,8),te(Fc),te(Tc),te(Xe),te(xa),te(gs))},n.\u0275cmp=Mt({type:n,selectors:[["ng-component"]],features:[et],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),wF=(()=>{class n extends bF{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||_s.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||_s.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Zf),te($e,8),te(Fc),te(Tc),te(Xe),te(xa),te(Ki),te(gs))},n.\u0275cmp=Mt({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&Th("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&($l("id",i._config.id),ti("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Ih("@dialogContainer",i._getAnimationState()))},features:[et],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&He(0,yF,0,0,"ng-template",0)},dependencies:[zf],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[vF.dialogContainer]}}),n})();class pp{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new _e,this._beforeClosed=new _e,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(zn(r=>"opened"===r.state),zt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(zn(r=>"closed"===r.state),zt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Fi(this.backdropClick(),this.keydownEvents().pipe(zn(r=>27===r.keyCode&&!this.disableClose&&!Wf(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),aD(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(zn(e=>"closing"===e.state),zt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function aD(n,t,e){return n._closeInteractionType=t,n.close(e)}const DF=new Ce("MatDialogData"),EF=new Ce("mat-dialog-default-options"),lD=new Ce("mat-dialog-scroll-strategy"),SF={provide:lD,deps:[kr],useFactory:function CF(n){return()=>n.scrollStrategies.block()}};let TF=0,MF=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _e,this._afterOpenedAtThisLevel=new _e,this._idPrefix="mat-dialog-",this.afterAllClosed=Pc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hs(void 0))),this._scrollStrategy=a,this._dialog=i.get(Yw)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i=Object.assign(Object.assign({},this._defaultOptions||new Fc),i)).id=i.id||`${this._idPrefix}${TF++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Fc,useValue:i},{provide:kc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(null==i?void 0:i.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return 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(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Qd()},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),Lc=(()=>{class n extends MF{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,pp,wF,DF,c)}}return n.\u0275fac=function(e){return new(e||n)(ae(kr),ae(In),ae(hf,8),ae(EF,8),ae(lD),ae(n,12),ae(Oc),ae(dr,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),AF=0,IF=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=cD(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){aD(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(te(pp,8),te(lt),te(Lc))},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&Jt("click",function(o){return i._onButtonClick(o)}),2&e&&ti("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Li]}),n})(),xF=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+AF++}ngOnInit(){this._dialogRef||(this._dialogRef=cD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(te(pp,8),te(lt),te(Lc))},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&$l("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),RF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),OF=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&$t("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),n})();function cD(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let PF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[Lc,SF],imports:[iF,sp,bc,fn,fn]}),n})();const kF=["*",[["mat-toolbar-row"]]],NF=["*","mat-toolbar-row"],FF=Nc(class{constructor(n){this._elementRef=n}});let LF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Pe({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),BF=(()=>{class n extends FF{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(On),te($e))},n.\u0275cmp=Mt({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&ni(r,LF,5),2&e){let o;It(o=xt())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&$t("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[et],ngContentSelectors:NF,decls:2,vars:0,template:function(e,i){1&e&&(xr(kF),Mi(0),Mi(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.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}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),VF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[fn,fn]}),n})();function uD(n,t){const e=v(n)?n:()=>n,i=r=>r.error(e());return new pe(t?r=>t.schedule(i,0,r):i)}function ka(n,t,e){const i=v(n)||t||e?{next:n,error:t,complete:e}:n;return i?qe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(new pt(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):H}function dD(n){return qe((t,e)=>{let o,i=null,r=!1;i=t.subscribe(new pt(e,void 0,void 0,s=>{o=Wn(n(s,dD(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}class zF{}class Fr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Fr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Fr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Fr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class $F{encodeKey(t){return hD(t)}encodeValue(t){return hD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const GF=/%(\d[a-f0-9])/gi,XF={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hD(n){return encodeURIComponent(n).replace(GF,(t,e)=>{var i;return null!==(i=XF[e])&&void 0!==i?i:t})}function Bc(n){return`${n}`}class Lr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new $F,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function WF(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Bc):[Bc(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Lr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Bc(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Bc(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class qF{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function fD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function pD(n){return"undefined"!=typeof Blob&&n instanceof Blob}function gD(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Na{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function YF(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,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.headers||(this.headers=new Fr),this.context||(this.context=new qF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":aD.set(R,t.setHeaders[R]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((D,R)=>D.set(R,t.setParams[R]),u)),new Na(i,r,s,{params:u,headers:c,context:h,reportProgress:l,responseType:o,withCredentials:a})}}var pn=(()=>((pn=pn||{})[pn.Sent=0]="Sent",pn[pn.UploadProgress=1]="UploadProgress",pn[pn.ResponseHeader=2]="ResponseHeader",pn[pn.DownloadProgress=3]="DownloadProgress",pn[pn.Response=4]="Response",pn[pn.User=5]="User",pn))();class gp extends class ZF{constructor(t,e=200,i="OK"){this.headers=t.headers||new Fr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=pn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new gp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function mp(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let _D=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Na)o=e;else{let l,c;l=r.headers instanceof Fr?r.headers:new Fr(r.headers),r.params&&(c=r.params instanceof Lr?r.params:new Lr({fromObject:r.params})),o=new Na(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=bn(o).pipe(function UF(n,t){return v(t)?mo(n,t,1):mo(n,1)}(l=>this.handler.handle(l)));if(e instanceof Na||"events"===r.observe)return s;const a=s.pipe(zn(l=>l instanceof gp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(it(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(it(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(it(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(it(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Lr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,mp(r,i))}post(e,i,r={}){return this.request("POST",e,mp(r,i))}put(e,i,r={}){return this.request("PUT",e,mp(r,i))}}return n.\u0275fac=function(e){return new(e||n)(ae(zF))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const JF=["*"];let Vc;function Fa(n){var t;return(null===(t=function e2(){if(void 0===Vc&&(Vc=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Vc=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Vc}())||void 0===t?void 0:t.createHTML(n))||n}function yD(n){return Error(`Unable to find icon with the name "${n}"`)}function vD(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function bD(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class uo{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let jc=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,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(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new uo(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(ft.HTML,r);if(!s)throw bD(r);const a=Fa(s);return this._addSvgIconConfig(e,i,new uo("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new uo(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(ft.HTML,i);if(!o)throw bD(i);const s=Fa(o);return this._addSvgIconSetConfig(e,new uo("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(ft.RESOURCE_URL,e);if(!i)throw vD(e);const r=this._cachedIconsByUrl.get(i);return r?bn(Hc(r)):this._loadSvgIconFromConfig(new uo(e,null)).pipe(ka(o=>this._cachedIconsByUrl.set(i,o)),it(o=>Hc(o)))}getNamedSvgIcon(e,i=""){const r=wD(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):uD(yD(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?bn(Hc(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(it(i=>Hc(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?bn(r):function jF(...n){const t=Ig(n),{args:e,keys:i}=pw(n),r=new pe(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{h||(h=!0,c--),a[u]=D},()=>l--,void 0,()=>{(!l||!h)&&(c||o.next(i?gw(i,a):a),o.complete())}))}});return t?r.pipe(Gf(t)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(dD(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ft.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),bn(null)})))).pipe(it(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw yD(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ka(i=>e.svgText=i),it(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?bn(null):this._fetchIcon(e).pipe(ka(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);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(Fa(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Fa("")),r=e.attributes;for(let o=0;oFa(u)),function HF(n){return qe((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(a)),Pg());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(wD(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),DD=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],c2=DD.map(n=>`[${n}]`).join(", "),u2=/^url\(['"]?#(.*?)['"]?\)$/;let d2=(()=>{class n extends o2{constructor(e,i,r,o,s,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=G.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Pn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(c2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(u2):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(zt(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(jc),Bs("aria-hidden"),te(a2),te(ar),te(s2,8))},n.\u0275cmp=Mt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(ti("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),$t("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[et],ngContentSelectors:JF,decls:1,vars:0,template:function(e,i){1&e&&(xr(),Mi(0))},styles:[".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}),n})(),h2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[fn,fn]}),n})();const f2=["mat-button",""],p2=["*"],m2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],_2=Nc(cp(lF(class{constructor(n){this._elementRef=n}})));let ED=(()=>{class n extends _2{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of m2)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(gs),te(dr,8))},n.\u0275cmp=Mt({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Hn(tD,5),2&e){let r;It(r=xt())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(ti("disabled",i.disabled||null),$t("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[et],attrs:f2,ngContentSelectors:p2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(xr(),me(0,"span",0),Mi(1),ye(),Ot(2,"span",1)(3,"span",2)),2&e&&(Oe(2),$t("mat-button-ripple-round",i.isRoundButton||i.isIconButton),st("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[tD],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),y2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[mF,fn,fn]}),n})();const v2=["tooltip"],CD="tooltip-panel",SD=so({passive:!0}),TD=new Ce("mat-tooltip-scroll-strategy"),E2={provide:TD,deps:[kr],useFactory:function D2(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},C2=new Ce("mat-tooltip-default-options",{providedIn:"root",factory:function S2(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let T2=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D,R){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=h,this._defaultOptions=D,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new _e,this._scrollStrategy=u,this._document=R,D&&(D.position&&(this.position=D.position),D.touchGestures&&(this.touchGestures=D.touchGestures)),h.change.pipe(Yt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Pn(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ca(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ca(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Yt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,SD)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){var i;if(this.disabled||!this.message||this._isTooltipVisible())return void(null===(i=this._tooltipInstance)||void 0===i||i._cancelPendingAnimations());const r=this._createOverlay();this._detach(),this._portal=this._portal||new vc(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(Yt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Yt(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}-${CD}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Yt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Yt(this._destroyed)).subscribe(()=>{var o;return null===(o=this._tooltipInstance)||void 0===o?void 0:o._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Yt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Wf(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),!(null===(e=this._defaultOptions)||void 0===e)&&e.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(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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 e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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(),this._ngZone.onMicrotaskEmpty.pipe(zt(1),Yt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${CD}-`;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",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var r;const o=i.relatedTarget;(!o||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,SD)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Qd()},n.\u0275dir=Pe({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),M2=(()=>{class n extends T2{constructor(e,i,r,o,s,a,l,c,u,h,D,R){super(e,i,r,o,s,a,l,c,u,h,D,R),this._tooltipComponent=I2}}return n.\u0275fac=function(e){return new(e||n)(te(kr),te(lt),te(ip),te(an),te(Xe),te(On),te(Sw),te(gs),te(TD),te(lo,8),te(C2,8),te($e))},n.\u0275dir=Pe({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[et]}),n})(),A2=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new _e,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(te(Ki),te(dr,8))},n.\u0275dir=Pe({type:n}),n})(),I2=(()=>{class n extends A2{constructor(e,i,r){super(e,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(te(Ki),te(ww),te(dr,8))},n.\u0275cmp=Mt({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Hn(v2,7),2&e){let r;It(r=xt())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&Jt("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&Rr("zoom",i.isVisible()?1:null)},features:[et],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(me(0,"div",0,1),Jt("animationend",function(o){return i._handleAnimationEnd(o)}),function mb(n,t){const e=ot();let i;const r=n+22;e.firstCreatePass?(i=function Wx(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Kr(i.type)),s=ai(te);try{const a=pl(!1),l=o();return pl(a),function kA(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,ge(),r,l),l}finally{ai(s)}}(2,"async"),Ee(3),ye()),2&e){let r;$t("mat-tooltip-handset",null==(r=_b(2,4,i._isHandset))?null:r.matches),st("ngClass",i.tooltipClass),Oe(3),Xi(i.message)}},dependencies:[O0,V0],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),x2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[E2],imports:[Pw,us,sp,fn,fn,Rc]}),n})();const R2=["primaryValueBar"],O2=Nc(class{constructor(n){this._elementRef=n}},"primary"),P2=new Ce("mat-progress-bar-location",{providedIn:"root",factory:function k2(){const n=sr($e),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),N2=new Ce("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let F2=0,L2=(()=>{class n extends O2{constructor(e,i,r,o,s,a){super(e),this._ngZone=i,this._animationMode=r,this._changeDetectorRef=a,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new _t,this._animationEndSubscription=G.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+F2++;const l=o?o.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${l}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===r,s&&(s.color&&(this.color=this.defaultColor=s.color),this.mode=s.mode||this.mode)}get value(){return this._value}set value(e){var i;this._value=MD(Ca(e)||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){var i;this._bufferValue=MD(e||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=ms(e,"transitionend").pipe(zn(i=>i.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Xe),te(dr,8),te(P2,8),te(N2,8),te(Ki))},n.\u0275cmp=Mt({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&Hn(R2,5),2&e){let r;It(r=xt())&&(i._primaryValueBar=r.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(ti("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),$t("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[et],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(me(0,"div",0),di(),me(1,"svg",1)(2,"defs")(3,"pattern",2),Ot(4,"circle",3),ye()(),Ot(5,"rect",4),ye(),Ci(),Ot(6,"div",5)(7,"div",6,7)(9,"div",8),ye()),2&e&&(Oe(3),st("id",i.progressbarId),Oe(2),ti("fill",i._rectangleFillValue),Oe(1),st("ngStyle",i._bufferTransform()),Oe(1),st("ngStyle",i._primaryTransform()))},dependencies:[B0],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),n})();function MD(n,t=0,e=100){return Math.max(t,Math.min(e,n))}let B2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[us,fn,fn]}),n})();function V2(n,t){if(1&n){const e=no();me(0,"button",9),Jt("click",function(){return Ln(e),Bn(function jy(n){return Do(function vS(){return ze.lFrame.contextLView}(),22+n)}(4).click())}),me(1,"mat-icon",10),Ee(2," file_open "),ye(),me(3,"input",11,12),Jt("change",function(r){return Ln(e),Bn(wt().fileChanged(r))}),ye()()}}function j2(n,t){if(1&n){const e=no();me(0,"button",13),Jt("click",function(){return Ln(e),Bn(wt().fileRemoved())}),me(1,"mat-icon",14),Ee(2," clear "),ye()()}}function H2(n,t){1&n&&Ot(0,"mat-progress-bar",15)}let U2=(()=>{class n{constructor(e,i){this.FileHandleService=e,this.dialog=i,this.isLoading=!1}ngOnInit(){"true"!=localStorage.getItem("gotIt")&&this.infoDialog(),this.fileSub=this.FileHandleService.getselectedFileDataListener().subscribe(e=>{this.selectedFileName=e.selectedFileName,this.isLoading=!1})}fileChanged(e){this.isLoading=!0,this.FileHandleService.fileChange(e).then(()=>{}).catch(i=>{this.isLoading=!1})}fileRemoved(){this.isLoading=!0,this.FileHandleService.fileClear().then(()=>{this.isLoading=!1}).catch(()=>{})}infoDialog(){0==this.dialog.openDialogs.length&&this.dialog.open(z2,{width:"900px"})}}return n.\u0275fac=function(e){return new(e||n)(te(Nf),te(Lc))},n.\u0275cmp=Mt({type:n,selectors:[["app-header"]],decls:14,vars:4,consts:[[1,"navbar-header"],["version","1.1","height","22","viewBox","0 0 221.4425 104.90778","xmlns","http://www.w3.org/2000/svg",0,"xmlns","svg","http://www.w3.org/2000/svg"],["transform","translate(-166.91913,-320.14911)"],["d","m 257.60475,422.65594 c -3.68024,-4.67867 -3.80059,-7.33629 -1.60802,-35.50885 0.42924,-5.5154 0.29715,-7.10308 -0.49919,-6 -1.84631,2.55747 -7.18057,20.04786 -8.99699,29.5 -1.68726,8.78003 -1.82548,9.05459 -5.65547,11.23355 -5.50742,3.13328 -8.70282,2.91455 -11.83706,-0.81028 l -2.58889,-3.07672 v -44.72401 -44.72401 l 4.39164,-2.13362 c 5.98073,-2.90567 10.89945,-3.71467 13.64648,-2.24451 2.46876,1.32124 2.44494,-1.0775 0.39713,39.9796 l -0.52371,10.5 2.45673,-4.5 c 3.65244,-6.69019 6.20832,-9 9.9588,-9 4.65732,0 11.76898,3.92213 14.50567,8 2.326,3.4659 2.34206,3.68134 1.64788,22.10985 -0.74866,19.8751 -0.58958,20.86303 4.18508,25.99029 l 2.42134,2.60014 -6.2233,2.26913 c -10.0018,3.64684 -13.14867,3.75512 -15.67812,0.53944 z m 53.23721,0.0137 c -2.7879,-4.25487 -3.31738,-9.38051 -2.2931,-22.19808 0.54361,-6.80259 0.84931,-14.04597 0.67933,-16.09642 l -0.30906,-3.72805 -2.34123,6 c -2.09921,5.37976 -5.58874,18.25249 -7.83533,28.90417 -1.05164,4.98614 -4.81606,7.8858 -10.39367,8.00605 -3.45337,0.0745 -4.52807,-0.3919 -6.29691,-2.73248 -2.09304,-2.76958 -2.13808,-3.65849 -2.41223,-47.61423 l -0.27937,-44.79195 4.77937,-2.02705 c 6.87905,-2.91758 10.81355,-3.56418 13.36823,-2.19696 2.19399,1.17419 2.20248,1.28623 1.54049,20.31658 -0.36611,10.52473 -0.91409,21.83587 -1.21773,25.13587 l -0.55207,6 3.0861,-5.4388 c 1.69736,-2.99135 3.82371,-6.25385 4.72522,-7.25 2.31381,-2.55675 7.04111,-2.25736 13.25567,0.83948 4.36026,2.17281 5.68193,3.47063 7.33105,7.19874 1.92241,4.34592 1.95825,5.26146 0.80638,20.59932 -1.33915,17.83153 -1.00676,19.90931 4.01861,25.12078 l 2.95991,3.06953 -7.77125,2.69215 c -9.77471,3.38621 -12.73011,3.4243 -14.84841,0.19137 z m -120.8071,-0.88406 c -3.58973,-2.17295 -4.10615,-2.24057 -6.81009,-0.89166 -5.54205,2.76473 -10.12372,2.74447 -13.37497,-0.0591 l -2.93067,-2.52717 0.23036,-45.24491 0.23037,-45.24491 2.26963,-2.46423 c 4.58878,-4.98222 14.02737,-6.90901 16.9319,-3.45648 1.22862,1.46043 1.35048,4.23207 0.73644,16.75 -0.40468,8.25 -1.02359,18.34391 -1.37534,22.43091 l -0.63955,7.43091 4.46746,-4.11796 c 8.26975,-7.62279 17.16025,-7.92424 24.30542,-0.82412 5.45846,5.42405 7.68013,12.73447 7.77394,25.58026 0.0832,11.39519 -2.06925,19.45142 -7.01959,26.27288 -6.22272,8.57478 -16.70155,11.26498 -24.79531,6.36563 z m 11.13622,-18.38849 c 3.37204,-7.34077 4.3353,-20.71207 1.91021,-26.51613 -0.85806,-2.05363 -1.98071,-3.73387 -2.49477,-3.73387 -3.14468,0 -11.6017,13.27473 -13.53787,21.25 -0.62862,2.58932 -0.47011,2.75 2.71276,2.75 3.03868,0 3.33352,0.24514 2.91678,2.42512 -0.25497,1.33382 0.0673,4.03382 0.71623,6 1.84287,5.58397 4.5618,4.82349 7.77666,-2.17512 z m 157.26861,19.68798 c -1.36369,-0.5738 -3.20194,-1.69714 -4.085,-2.4963 -1.4065,-1.27287 -2.00542,-1.25354 -4.83065,0.15587 -9.54793,4.76314 -15.38372,2.0228 -16.61101,-7.80011 -0.37595,-3.009 -0.30338,-23.60846 0.16128,-45.77658 l 0.84482,-40.30567 3.71063,-3.0006 c 4.2914,-3.47025 12.10396,-4.79537 14.9983,-2.54393 1.55713,1.21126 1.62779,2.795 0.79541,17.82934 -0.50244,9.075 -1.20303,19.38953 -1.55686,22.92118 l -0.64333,6.42119 4.73768,-4.17027 c 8.22668,-7.24142 16.59052,-7.75764 23.56723,-1.4546 10.28648,9.29321 11.93664,35.90579 3.11183,50.18514 -4.43737,7.18005 -9.24203,10.41856 -15.98624,10.77529 -3.15406,0.16683 -6.8504,-0.16615 -8.21409,-0.73995 z m 8.20786,-17.58938 c 3.19736,-5.47465 5.05501,-16.95271 3.85045,-23.79115 -1.44393,-8.19728 -2.87009,-9.44545 -6.90914,-6.04682 -3.03917,2.5573 -9.50057,14.36188 -10.69852,19.54555 -0.56037,2.42478 -0.40775,2.53481 2.96903,2.14059 l 3.55976,-0.41558 v 4.9094 c 0,7.7699 3.72577,9.65536 7.22842,3.65801 z"],["mat-icon-button","","aria-label","info","matTooltip","Info",3,"click"],[1,"toolbar-spacer"],["mat-icon-button","","aria-label","Open File","matTooltip","Open File",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Clear selected File","matTooltip","Clear selected File",3,"click",4,"ngIf"],["mode","indeterminate",4,"ngIf"],["mat-icon-button","","aria-label","Open File","matTooltip","Open File",3,"click"],["aria-hidden","false","aria-label","Open File"],["type","file","accept","*",1,"hidden",3,"change"],["fileInput",""],["mat-icon-button","","aria-label","Clear selected File","matTooltip","Clear selected File",3,"click"],["aria-hidden","false","aria-label","Clear selected File"],["mode","indeterminate"]],template:function(e,i){1&e&&(me(0,"mat-toolbar")(1,"nav",0),di(),me(2,"svg",1)(3,"g",2),Ot(4,"path",3),ye()(),Ci(),me(5,"button",4),Jt("click",function(){return i.infoDialog()}),me(6,"mat-icon"),Ee(7,"help"),ye()(),Ot(8,"span",5),me(9,"span"),Ee(10),ye(),He(11,V2,5,0,"button",6),He(12,j2,3,0,"button",7),ye()(),He(13,H2,1,0,"mat-progress-bar",8)),2&e&&(Oe(10),Xi(i.selectedFileName),Oe(1),st("ngIf",!i.selectedFileName),Oe(1),st("ngIf",i.selectedFileName),Oe(1),st("ngIf",i.isLoading))},dependencies:[cs,BF,d2,ED,M2,L2],styles:[".navbar-header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;width:100%}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{height:40px;background:rgb(255,255,255);color:inherit}svg[_ngcontent-%COMP%]{fill:currentColor}.hidden[_ngcontent-%COMP%]{display:none} .mat-progress-bar-fill:after{background-color:currentColor} .mat-progress-bar-background, .mat-progress-bar-buffer{background-color:#e2e1df}@media (prefers-color-scheme: dark){mat-toolbar[_ngcontent-%COMP%]{background:rgb(29,30,32)} .mat-progress-bar-fill:after{background-color:currentColor} .mat-progress-bar-background, .mat-progress-bar-buffer{background-color:#1d1e20}}"]}),n})(),z2=(()=>{class n{gotIt(){localStorage.setItem("gotIt","true")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["ng-component"]],decls:78,vars:1,consts:[["mat-dialog-title","","align","center"],["version","1.1","height","18","viewBox","0 0 221.4425 104.90778","xmlns","http://www.w3.org/2000/svg",0,"xmlns","svg","http://www.w3.org/2000/svg"],["transform","translate(-166.91913,-320.14911)"],["d","m 257.60475,422.65594 c -3.68024,-4.67867 -3.80059,-7.33629 -1.60802,-35.50885 0.42924,-5.5154 0.29715,-7.10308 -0.49919,-6 -1.84631,2.55747 -7.18057,20.04786 -8.99699,29.5 -1.68726,8.78003 -1.82548,9.05459 -5.65547,11.23355 -5.50742,3.13328 -8.70282,2.91455 -11.83706,-0.81028 l -2.58889,-3.07672 v -44.72401 -44.72401 l 4.39164,-2.13362 c 5.98073,-2.90567 10.89945,-3.71467 13.64648,-2.24451 2.46876,1.32124 2.44494,-1.0775 0.39713,39.9796 l -0.52371,10.5 2.45673,-4.5 c 3.65244,-6.69019 6.20832,-9 9.9588,-9 4.65732,0 11.76898,3.92213 14.50567,8 2.326,3.4659 2.34206,3.68134 1.64788,22.10985 -0.74866,19.8751 -0.58958,20.86303 4.18508,25.99029 l 2.42134,2.60014 -6.2233,2.26913 c -10.0018,3.64684 -13.14867,3.75512 -15.67812,0.53944 z m 53.23721,0.0137 c -2.7879,-4.25487 -3.31738,-9.38051 -2.2931,-22.19808 0.54361,-6.80259 0.84931,-14.04597 0.67933,-16.09642 l -0.30906,-3.72805 -2.34123,6 c -2.09921,5.37976 -5.58874,18.25249 -7.83533,28.90417 -1.05164,4.98614 -4.81606,7.8858 -10.39367,8.00605 -3.45337,0.0745 -4.52807,-0.3919 -6.29691,-2.73248 -2.09304,-2.76958 -2.13808,-3.65849 -2.41223,-47.61423 l -0.27937,-44.79195 4.77937,-2.02705 c 6.87905,-2.91758 10.81355,-3.56418 13.36823,-2.19696 2.19399,1.17419 2.20248,1.28623 1.54049,20.31658 -0.36611,10.52473 -0.91409,21.83587 -1.21773,25.13587 l -0.55207,6 3.0861,-5.4388 c 1.69736,-2.99135 3.82371,-6.25385 4.72522,-7.25 2.31381,-2.55675 7.04111,-2.25736 13.25567,0.83948 4.36026,2.17281 5.68193,3.47063 7.33105,7.19874 1.92241,4.34592 1.95825,5.26146 0.80638,20.59932 -1.33915,17.83153 -1.00676,19.90931 4.01861,25.12078 l 2.95991,3.06953 -7.77125,2.69215 c -9.77471,3.38621 -12.73011,3.4243 -14.84841,0.19137 z m -120.8071,-0.88406 c -3.58973,-2.17295 -4.10615,-2.24057 -6.81009,-0.89166 -5.54205,2.76473 -10.12372,2.74447 -13.37497,-0.0591 l -2.93067,-2.52717 0.23036,-45.24491 0.23037,-45.24491 2.26963,-2.46423 c 4.58878,-4.98222 14.02737,-6.90901 16.9319,-3.45648 1.22862,1.46043 1.35048,4.23207 0.73644,16.75 -0.40468,8.25 -1.02359,18.34391 -1.37534,22.43091 l -0.63955,7.43091 4.46746,-4.11796 c 8.26975,-7.62279 17.16025,-7.92424 24.30542,-0.82412 5.45846,5.42405 7.68013,12.73447 7.77394,25.58026 0.0832,11.39519 -2.06925,19.45142 -7.01959,26.27288 -6.22272,8.57478 -16.70155,11.26498 -24.79531,6.36563 z m 11.13622,-18.38849 c 3.37204,-7.34077 4.3353,-20.71207 1.91021,-26.51613 -0.85806,-2.05363 -1.98071,-3.73387 -2.49477,-3.73387 -3.14468,0 -11.6017,13.27473 -13.53787,21.25 -0.62862,2.58932 -0.47011,2.75 2.71276,2.75 3.03868,0 3.33352,0.24514 2.91678,2.42512 -0.25497,1.33382 0.0673,4.03382 0.71623,6 1.84287,5.58397 4.5618,4.82349 7.77666,-2.17512 z m 157.26861,19.68798 c -1.36369,-0.5738 -3.20194,-1.69714 -4.085,-2.4963 -1.4065,-1.27287 -2.00542,-1.25354 -4.83065,0.15587 -9.54793,4.76314 -15.38372,2.0228 -16.61101,-7.80011 -0.37595,-3.009 -0.30338,-23.60846 0.16128,-45.77658 l 0.84482,-40.30567 3.71063,-3.0006 c 4.2914,-3.47025 12.10396,-4.79537 14.9983,-2.54393 1.55713,1.21126 1.62779,2.795 0.79541,17.82934 -0.50244,9.075 -1.20303,19.38953 -1.55686,22.92118 l -0.64333,6.42119 4.73768,-4.17027 c 8.22668,-7.24142 16.59052,-7.75764 23.56723,-1.4546 10.28648,9.29321 11.93664,35.90579 3.11183,50.18514 -4.43737,7.18005 -9.24203,10.41856 -15.98624,10.77529 -3.15406,0.16683 -6.8504,-0.16615 -8.21409,-0.73995 z m 8.20786,-17.58938 c 3.19736,-5.47465 5.05501,-16.95271 3.85045,-23.79115 -1.44393,-8.19728 -2.87009,-9.44545 -6.90914,-6.04682 -3.03917,2.5573 -9.50057,14.36188 -10.69852,19.54555 -0.56037,2.42478 -0.40775,2.53481 2.96903,2.14059 l 3.55976,-0.41558 v 4.9094 c 0,7.7699 3.72577,9.65536 7.22842,3.65801 z"],[1,"mat-typography"],["align","center"],["version","1.1","height","15","viewBox","0 0 221.4425 104.90778","xmlns","http://www.w3.org/2000/svg",0,"xmlns","svg","http://www.w3.org/2000/svg"],[1,"ext"],["href","https://github.com/adityatelange/bhhb",1,"btn"],["mat-button",""],["role","img","viewBox","0 0 24 24","height","30","xmlns","http://www.w3.org/2000/svg","fill","currentColor",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"],["d","M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 \n 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 \n 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 \n 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 \n 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 \n 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 \n 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 \n 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"],["aria-label","Sponsor @adityatelange","href","https://github.com/sponsors/adityatelange?o=esb",1,"btn"],["aria-hidden","true","height","20","viewBox","0 0 16 16","version","1.1","width","20","data-view-component","true","color","#db61a2","fill","currentColor"],["fill-rule","evenodd","d","M4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.565 20.565 0 008 13.393a20.561 20.561 0 003.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.75.75 0 01-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5zM8 14.25l-.345.666-.002-.001-.006-.003-.018-.01a7.643 7.643 0 01-.31-.17 22.075 22.075 0 01-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.08 22.08 0 01-3.744 2.584l-.018.01-.006.003h-.002L8 14.25zm0 0l.345.666a.752.752 0 01-.69 0L8 14.25z"],["href","https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps"],["href","https://forum.portswigger.net/thread/how-do-i-view-items-export-from-burp-s-proxy-s-history-0ae0f99e"],["width","100%","src","assets/bhhb.png","alt",""],["align","end"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close","click"]],template:function(e,i){1&e&&(me(0,"h2",0)(1,"b"),Ee(2,"About Burp HTTP History Browser - "),di(),me(3,"svg",1)(4,"g",2),Ot(5,"path",3),ye()()()(),Ci(),me(6,"mat-dialog-content",4)(7,"p",5),di(),me(8,"svg",6)(9,"g",2),Ot(10,"path",3),ye()(),Ee(11," is a tool to view HTTP history exported from Burp Suite Community Edition(CE). "),ye(),Ci(),me(12,"div",7)(13,"a",8)(14,"button",9),di(),me(15,"svg",10),Ot(16,"path",11),ye(),Ci(),me(17,"span"),Ee(18,"View Source on Github"),ye()()(),me(19,"a",12)(20,"button",9),di(),me(21,"svg",13),Ot(22,"path",14),ye(),Ci(),me(23,"span"),Ee(24,"Support me on Github"),ye()()()(),Ot(25,"hr"),me(26,"ul")(27,"li")(28,"code"),Ee(29,"Burp Suite Community Edition"),ye(),Ee(30," has one BIG feature paywalled - Disk-based projects \u{1f4be}."),ye(),me(31,"li"),Ee(32,"Because of which Community Edition users cannot save their "),me(33,"code"),Ee(34,"HTTP history"),ye(),Ee(35," and Sitemap info, which are destroyed after the temporary session is closed \u{1f5d1}\ufe0f."),ye(),me(36,"li"),Ee(37,"Although this is a thing, users can export their Burp CE's HTTP history by "),me(38,"em"),Ee(39,"selecting the records"),ye(),Ee(40," (Ctrl+A) and using "),me(41,"strong")(42,"code"),Ee(43,"Save items"),ye()(),Ee(44," \u{1f4be} option in context menu of "),me(45,"code"),Ee(46,"Proxy->HTTP history"),ye(),Ee(47," or "),me(48,"code"),Ee(49,"Target->Sitemap"),ye(),Ee(50," or "),me(51,"code"),Ee(52,"Logger"),ye(),Ee(53,". "),ye(),me(54,"li"),Ee(55,"Using that Burp will export the HTTP history along with Requests and Responses into a "),me(56,"em"),Ee(57,"XML file"),ye(),Ee(58,"."),ye(),me(59,"li")(60,"strong")(61,"code"),Ee(62,"BHHB"),ye()(),Ee(63," can open these exported items, parse it and display them in a well-formatted manner. \u{1f4cb}"),ye(),me(64,"li"),Ee(65,"This application is a "),me(66,"a",15)(67,"code"),Ee(68,"PWA"),ye()(),Ee(69,", which can be installed in any chromium based browser and could run offline, with all of the processing done on device itself \u2699\ufe0f."),ye(),me(70,"li"),Ee(71,"Linked Forum thread - "),me(72,"a",16),Ee(73,"How do I view items export from Burp's proxy's history?"),ye()()(),Ot(74,"img",17),ye(),me(75,"mat-dialog-actions",18)(76,"button",19),Jt("click",function(){return i.gotIt()}),Ee(77,"Got it!"),ye()()),2&e&&(Oe(76),st("mat-dialog-close",!0))},dependencies:[ED,IF,xF,RF,OF],styles:[".mat-dialog-container{box-shadow:unset;border:1px solid rgba(255,255,255,.12)} .mat-dialog-container button{border:1px solid rgba(0,0,0,.12)!important}svg[_ngcontent-%COMP%]{fill:currentColor}a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited{color:inherit}ul[_ngcontent-%COMP%]{padding:0 15px}.ext[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:center}.ext[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:4px;display:inline-block}.btn[_ngcontent-%COMP%]{word-wrap:break-word;padding:5px 16px;font-size:14px;font-weight:500;border-radius:6px;appearance:none;text-align:center;box-shadow:none}.btn[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{transform:scale(1.1)}.btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:transform .15s cubic-bezier(.2,0,.13,2);transform:scale(1);margin-right:8px!important;display:inline-block;overflow:visible!important}@media (prefers-color-scheme: dark){ .mat-dialog-container{background-color:#1d1e20;color:inherit} .mat-dialog-container button{border:1px solid rgba(255,255,255,.12)!important}}"]}),n})();const $2=["mat-sort-header",""];function W2(n,t){if(1&n){const e=no();me(0,"div",3),Jt("@arrowPosition.start",function(){return Ln(e),Bn(wt()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return Ln(e),Bn(wt()._disableViewStateAnimation=!1)}),Ot(1,"div",4),me(2,"div",5),Ot(3,"div",6)(4,"div",7)(5,"div",8),ye()()}if(2&n){const e=wt();st("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),Oe(2),st("@indicator",e._getArrowDirectionState()),Oe(1),st("@leftPointer",e._getArrowDirectionState()),Oe(1),st("@rightPointer",e._getArrowDirectionState())}}const G2=["*"],AD=new Ce("MAT_SORT_DEFAULT_OPTIONS"),X2=cF(cp(class{}));let _p=(()=>{class n extends X2{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new _e,this.start="asc",this._direction="",this.sortChange=new _t}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Pn(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,r,o;if(!e)return"";const s=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!(null===(o=this._defaultOptions)||void 0===o||!o.disableClear);let a=function q2(n,t){let e=["asc","desc"];return"desc"==n&&e.reverse(),t||e.push(""),e}(e.start||this.start,s),l=a.indexOf(this.direction)+1;return l>=a.length&&(l=0),a[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(te(AD,8))},n.\u0275dir=Pe({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[et,Li]}),n})();const Br=oF.ENTERING+" "+rF.STANDARD_CURVE,ys={indicator:Nr("indicator",[wn("active-asc, asc",ut({transform:"translateY(0px)"})),wn("active-desc, desc",ut({transform:"translateY(10px)"})),$n("active-asc <=> active-desc",ii(Br))]),leftPointer:Nr("leftPointer",[wn("active-asc, asc",ut({transform:"rotate(-45deg)"})),wn("active-desc, desc",ut({transform:"rotate(45deg)"})),$n("active-asc <=> active-desc",ii(Br))]),rightPointer:Nr("rightPointer",[wn("active-asc, asc",ut({transform:"rotate(45deg)"})),wn("active-desc, desc",ut({transform:"rotate(-45deg)"})),$n("active-asc <=> active-desc",ii(Br))]),arrowOpacity:Nr("arrowOpacity",[wn("desc-to-active, asc-to-active, active",ut({opacity:1})),wn("desc-to-hint, asc-to-hint, hint",ut({opacity:.54})),wn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ut({opacity:0})),$n("* => asc, * => desc, * => active, * => hint, * => void",ii("0ms")),$n("* <=> *",ii(Br))]),arrowPosition:Nr("arrowPosition",[$n("* => desc-to-hint, * => desc-to-active",ii(Br,Oa([ut({transform:"translateY(-25%)"}),ut({transform:"translateY(0)"})]))),$n("* => hint-to-desc, * => active-to-desc",ii(Br,Oa([ut({transform:"translateY(0)"}),ut({transform:"translateY(25%)"})]))),$n("* => asc-to-hint, * => asc-to-active",ii(Br,Oa([ut({transform:"translateY(25%)"}),ut({transform:"translateY(0)"})]))),$n("* => hint-to-asc, * => active-to-asc",ii(Br,Oa([ut({transform:"translateY(0)"}),ut({transform:"translateY(-25%)"})]))),wn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ut({transform:"translateY(0)"})),wn("hint-to-desc, active-to-desc, desc",ut({transform:"translateY(-25%)"})),wn("hint-to-asc, active-to-asc, asc",ut({transform:"translateY(25%)"}))]),allowChildren:Nr("allowChildren",[$n("* <=> *",[hp("@*",dp(),{optional:!0})])])};let Uc=(()=>{class n{constructor(){this.changes=new _e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const K2={provide:Uc,deps:[[new Mr,new Po,Uc]],useFactory:function Y2(n){return n||new Uc}},Z2=cp(class{});let Q2=(()=>{class n extends Z2{constructor(e,i,r,o,s,a,l,c){super(),this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=o,this._focusMonitor=s,this._elementRef=a,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=c&&c.arrowPosition&&(this.arrowPosition=null==c?void 0:c.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Pn(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,r;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Fi(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(te(Uc),te(Ki),te(_p,8),te("MAT_SORT_HEADER_COLUMN_DEF",8),te(gs),te(lt),te(Sw,8),te(AD,8))},n.\u0275cmp=Mt({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&Jt("click",function(){return i._handleClick()})("keydown",function(o){return i._handleKeydown(o)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(ti("aria-sort",i._getAriaSortAttribute()),$t("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[et],attrs:$2,ngContentSelectors:G2,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(xr(),me(0,"div",0)(1,"div",1),Mi(2),ye(),He(3,W2,6,6,"div",2),ye()),2&e&&($t("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"===i.arrowPosition),ti("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),Oe(3),st("ngIf",i._renderArrow()))},dependencies:[cs],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[ys.indicator,ys.leftPointer,ys.rightPointer,ys.arrowOpacity,ys.arrowPosition,ys.allowChildren]},changeDetection:0}),n})(),J2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[K2],imports:[us,fn]}),n})();class ID extends pe{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Ze(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new G;const e=this.getSubject();t.add(this.source.subscribe(new pt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=G.EMPTY)}return t}refCount(){return function eL(){return qe((n,t)=>{let e=null;n._refCount++;const i=new pt(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}()(this)}}function yp(n){return n&&"function"==typeof n.connect&&!(n instanceof ID)}class xD{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const h=i(s,a,l);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:null==c?void 0:c.context,operation:u,record:s})})}detach(){}}const La=new Ce("_ViewRepeater"),iL=[[["caption"]],[["colgroup"],["col"]]],rL=["caption","colgroup, col"];function vp(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Pn(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const vs=new Ce("CDK_TABLE");let bs=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),ws=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),zc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class lL{}const cL=vp(lL);let mr=(()=>{class n extends cL{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=Pn(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,bs,5),ni(r,ws,5),ni(r,zc,5)),2&e){let o;It(o=xt())&&(i.cell=o.first),It(o=xt())&&(i.headerCell=o.first),It(o=xt())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[tn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),et]}),n})();class bp{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}let wp=(()=>{class n extends bp{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(te(mr),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[et]}),n})(),Dp=(()=>{class n extends bp{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(te(mr),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[et]}),n})();class PD{constructor(){this.tasks=[],this.endTasks=[]}}const Ep=new Ce("_COALESCED_STYLE_SCHEDULER");let kD=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new _e}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new PD,this._getScheduleObservable().pipe(Yt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new PD;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Dr(Promise.resolve(void 0)):this._ngZone.onStable.pipe(zt(1))}}return n.\u0275fac=function(e){return new(e||n)(ae(Xe))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),Cp=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Ba?e.headerCell.template:this instanceof Va?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr))},n.\u0275dir=Pe({type:n,features:[Li]}),n})();class uL extends Cp{}const dL=vp(uL);let Ba=(()=>{class n extends dL{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr),te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[et,Li]}),n})();class hL extends Cp{}const fL=vp(hL);let Va=(()=>{class n extends fL{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr),te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[et,Li]}),n})(),$c=(()=>{class n extends Cp{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr),te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[et]}),n})(),_r=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(te(an))},n.\u0275dir=Pe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Sp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),Mp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),Wc=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const ND=["top","bottom","left","right"];class pL{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(D=>D)&&!i.some(D=>D))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const D="rtl"===this.direction,R=D?"right":"left",Y=D?"left":"right";for(const ee of t)for(let re=0;ree[re]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:a.slice(h).map((ee,re)=>i[re+h]?ee:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,h=0;u{var u,h;for(let D=0;D{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);ND.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of ND)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const Ap=new Ce("CDK_SPL");let Gc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","rowOutlet",""]]}),n})(),Xc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),qc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),Yc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Kc=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D,R){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=D,this._ngZone=R,this._onDestroy=new _e,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new _t,this.viewChange=new Ea({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Pn(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Pn(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Yt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),yp(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&Xe.isInAngularZone()?this._ngZone.onStable.pipe(zt(1),Yt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Zc(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Zc(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Zc(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Zc(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],yp(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;yp(this.dataSource)?e=this.dataSource.connect(this):function nL(n){return!!n&&(n instanceof pe||v(n.lift)&&v(n.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=bn(this.dataSource)),this._renderChangeSubscription=e.pipe(Yt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))_r.mostRecentCellOutlet&&_r.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new pL(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:bn()).pipe(Yt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&(null==s?void 0:s.nodeType)===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(te(fr),te(Ki),te(lt),Bs("role"),te(lo,8),te($e),te(On),te(La),te(Ep),te(xc),te(Ap,12),te(Xe,8))},n.\u0275cmp=Mt({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,Wc,5),ni(r,mr,5),ni(r,$c,5),ni(r,Ba,5),ni(r,Va,5)),2&e){let o;It(o=xt())&&(i._noDataRow=o.first),It(o=xt())&&(i._contentColumnDefs=o),It(o=xt())&&(i._contentRowDefs=o),It(o=xt())&&(i._contentHeaderRowDefs=o),It(o=xt())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(Hn(Gc,7),Hn(Xc,7),Hn(qc,7),Hn(Yc,7)),2&e){let r;It(r=xt())&&(i._rowOutlet=r.first),It(r=xt())&&(i._headerRowOutlet=r.first),It(r=xt())&&(i._footerRowOutlet=r.first),It(r=xt())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&$t("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[tn([{provide:vs,useExisting:n},{provide:La,useClass:xD},{provide:Ep,useClass:kD},{provide:Ap,useValue:null}])],ngContentSelectors:rL,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(xr(iL),Mi(0),Mi(1,1),$i(2,0)(3,1)(4,2)(5,3))},dependencies:[Gc,Xc,qc,Yc],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function Zc(n,t){return n.concat(Array.from(t))}let mL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[rp]}),n})();const _L=[[["caption"]],[["colgroup"],["col"]]],yL=["caption","colgroup, col"];let LD=(()=>{class n extends Kc{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Mt({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&$t("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[tn([{provide:La,useClass:xD},{provide:Kc,useExisting:n},{provide:vs,useExisting:n},{provide:Ep,useClass:kD},{provide:Ap,useValue:null}]),et],ngContentSelectors:yL,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(xr(_L),Mi(0),Mi(1,1),$i(2,0)(3,1)(4,2)(5,3))},dependencies:[Gc,Xc,qc,Yc],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Ip=(()=>{class n extends bs{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matCellDef",""]],features:[tn([{provide:bs,useExisting:n}]),et]}),n})(),xp=(()=>{class n extends ws{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matHeaderCellDef",""]],features:[tn([{provide:ws,useExisting:n}]),et]}),n})(),Rp=(()=>{class n extends mr{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[tn([{provide:mr,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),et]}),n})(),Op=(()=>{class n extends wp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[et]}),n})(),Pp=(()=>{class n extends Dp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[et]}),n})(),BD=(()=>{class n extends Ba{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[tn([{provide:Ba,useExisting:n}]),et]}),n})(),VD=(()=>{class n extends $c{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[tn([{provide:$c,useExisting:n}]),et]}),n})(),jD=(()=>{class n extends Sp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Mt({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[tn([{provide:Sp,useExisting:n}]),et],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),HD=(()=>{class n extends Mp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Mt({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[tn([{provide:Mp,useExisting:n}]),et],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),AL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[mL,fn,fn]}),n})();class kp extends class xL extends class tL{}{constructor(t=[]){super(),this._renderData=new Ea([]),this._filter=new Ea(""),this._internalPageChanges=new _e,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(fw(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,i)=>{const r=i.active,o=i.direction;return r&&""!=o?e.sort((s,a)=>{let l=this.sortingDataAccessor(s,r),c=this.sortingDataAccessor(a,r);const u=typeof l,h=typeof c;u!==h&&("number"===u&&(l+=""),"number"===h&&(c+=""));let D=0;return null!=l&&null!=c?l>c?D=1:l{const r=Object.keys(e).reduce((s,a)=>s+e[a]+"\u25ec","").toLowerCase(),o=i.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new Ea(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){t=Array.isArray(t)?t:[],this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Fi(this._sort.sortChange,this._sort.initialized):bn(null),i=this._paginator?Fi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):bn(null),o=wc([this._data,this._filter]).pipe(it(([l])=>this._filterData(l))),s=wc([o,e]).pipe(it(([l])=>this._orderData(l))),a=wc([s,i]).pipe(it(([l])=>this._pageData(l)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=a.subscribe(l=>this._renderData.next(l))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function ja(n,t){return qe((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(new pt(i,l=>{null==r||r.unsubscribe();let c=0;const u=o++;Wn(n(l,u)).subscribe(r=new pt(i,h=>i.next(t?t(l,h,u,c++):h),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Np(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,null!=e&&e.has(i)?"important":""):n.removeProperty(i)}return n}function Ds(n,t){const e=t?"":"none";Np(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function UD(n,t,e){Np(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Qc(n,t){return t&&"none"!=t?n+" "+t:n}function zD(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function Fp(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function Lp(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Bp(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function Ha(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function $D(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,h=c*t;return i>r-h&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Lp(e)})})}handleScroll(t){const e=Pi(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Ha(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function GD(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const R=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),Y=this._dropContainer;if(!R)return void this._endDragSequence(a);(!Y||!Y.isDragging()&&!Y.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=c.x-u.x+this._passiveTransform.x,h.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new WD(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Pn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Ds(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>rn(i)),this._handles.forEach(i=>Ds(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=rn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Jc),e.addEventListener("touchstart",this._pointerDown,KD),e.addEventListener("dragstart",this._nativeDragStart,Jc)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?rn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){var t,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(t=this._rootElement)||void 0===t||t.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Ds(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Ds(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var t,e;null===(t=this._preview)||void 0===t||t.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var t,e;null===(t=this._placeholder)||void 0===t||t.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Ua(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),UD(i,!1,Vp),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Ua(e),o=!r&&0!==e.button,s=this._rootElement,a=Pi(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Jf(e):Qf(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const D=s.style;this._rootElementTapHighlight=D.webkitTapHighlightColor||"",D.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(D=>this._updateOnScroll(D)),this._boundaryElement&&(this._boundaryRect=Lp(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){UD(this._rootElement,!0,Vp),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=QD(s,this._document),this._previewRef=s,t.matchSize?JD(r,o):r.style.transform=eu(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=GD(this._rootElement),JD(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Np(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Vp),Ds(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function OL(n){const t=getComputedStyle(n),e=Fp(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=Fp(t,"transition-duration"),s=Fp(t,"transition-delay");return zD(o[r])+zD(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{var a;(!s||Pi(s)===this._preview&&"transform"===s.propertyName)&&(null===(a=this._preview)||void 0===a||a.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=QD(this._placeholderRef,this._document)):i=GD(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Ua(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Ua(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,h=a.bottom-(c-s);i=ZD(i,a.left+o,a.right-(l-o)),r=ZD(r,u,h)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Ds(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Jc),t.removeEventListener("touchstart",this._pointerDown,KD),t.removeEventListener("dragstart",this._nativeDragStart,Jc)}_applyRootElementTransform(t,e){const i=eu(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Qc(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const r=null!==(i=this._previewTemplate)&&void 0!==i&&i.template?void 0:this._initialTransform,o=eu(t,e);this._preview.style.transform=Qc(o,r)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Ua(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Pi(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Ha(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var t;return(null===(t=this._parentPositions.positions.get(this._document))||void 0===t?void 0:t.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Bf(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return rn(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function eu(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function ZD(n,t,e){return Math.max(t,Math.min(e,n))}function Ua(n){return"t"===n.type[0]}function QD(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function JD(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=eu(t.left,t.top)}function eE(n,t,e){const i=za(t,n.length-1),r=za(e,n.length-1);if(i===r)return;const o=n[i],s=r0)return null;const a="horizontal"===this.orientation,l=o.findIndex(re=>re.drag===t),c=o[s],h=c.clientRect,D=l>s?1:-1,R=this._getItemOffsetPx(o[l].clientRect,h,D),Y=this._getSiblingOffsetPx(l,o,D),ee=o.slice();return eE(o,l,s),o.forEach((re,ue)=>{if(ee[ue]===re)return;const be=re.drag===t,le=be?R:Y,we=be?t.getPlaceholderElement():re.drag.getRootElement();re.offset+=le,a?(we.style.transform=Qc(`translate3d(${Math.round(re.offset)}px, 0, 0)`,re.initialTransform),Ha(re.clientRect,0,le)):(we.style.transform=Qc(`translate3d(0, ${Math.round(re.offset)}px, 0)`,re.initialTransform),Ha(re.clientRect,le,0))}),this._previousSwap.overlaps=Bp(h,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else rn(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const r=null===(e=this._itemPositions.find(o=>o.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{Ha(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Lp(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new _e,this.entered=new _e,this.exited=new _e,this.dropped=new _e,this.sorted=new _e,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=G.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new _e,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function RL(n=0,t=Ec){return n<0&&(n=0),np(n,n,t)}(0,Nw).pipe(Yt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=rn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new WD(i),this._sortStrategy=new FL(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=rn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!$D(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||$D(s.clientRect,.05,t,e)&&([r,o]=function BL(n,t,e,i){const r=iE(t,i),o=rE(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=iE(l,e),o=rE(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=rn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=rn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=rn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&Bp(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!Bp(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=rn(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Bf(rn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function iE(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function rE(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const tu=so({passive:!1,capture:!0});let VL=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new _e,this.pointerUp=new _e,this.scroll=new _e,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tu)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tu)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tu}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:tu}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new pe(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Fi(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(ae(Xe),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jL={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let jp=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=jL){return new NL(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new LL(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(Xe),ae(xc),ae(VL))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oE=new Ce("CDK_DRAG_PARENT"),sE=new Ce("CdkDropListGroup"),aE=new Ce("CDK_DRAG_CONFIG");let HL=0;const lE=new Ce("CdkDropList");let UL=(()=>{class n{constructor(e,i,r,o,s,a,l){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=s,this._group=a,this._destroyed=new _e,this.connectedTo=[],this.id="cdk-drop-list-"+HL++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new _t,this.entered=new _t,this.exited=new _t,this.sorted=new _t,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,h)=>this.sortPredicate(c,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Pn(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(hs(this._dir.value),Yt(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=Sa(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(s=>s.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Pn(this.sortingDisabled),e.autoScrollDisabled=Pn(this.autoScrollDisabled),e.autoScrollStep=Ca(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=null!=r&&r,this.sortingDisabled=null!=o&&o,this.autoScrollDisabled=null!=s&&s,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(te(lt),te(jp),te(Ki),te(ip),te(lo,8),te(sE,12),te(aE,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&(ti("id",i.id),$t("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[tn([{provide:sE,useValue:void 0},{provide:lE,useExisting:n}])]}),n})();const cE=new Ce("CdkDragHandle"),zL=new Ce("CdkDragPlaceholder"),$L=new Ce("CdkDragPreview");let GL=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=s,this._dir=l,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=D,this._destroyed=new _e,this.started=new _t,this.released=new _t,this.ended=new _t,this.entered=new _t,this.exited=new _t,this.dropped=new _t,this.moved=new pe(R=>{const Y=this._dragRef.moved.pipe(it(ee=>({source:this,pointerPosition:ee.pointerPosition,event:ee.event,delta:ee.delta,distance:ee.distance}))).subscribe(R);return()=>{Y.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Pn(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(zt(1),Yt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const i=this.element.nativeElement;let r=i;this.rootElementSelector&&(r=void 0!==i.closest?i.closest(this.rootElementSelector):null===(e=i.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||i)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):rn(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Ca(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(zt(1)).subscribe(()=>{var i;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){e.withParent((null===(i=n._dragInstances.find(o=>o.element.nativeElement===r))||void 0===i?void 0:i._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:u}=e;this.disabled=null!=l&&l,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(hs(this._handles),ka(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),ja(e=>Fi(...e.map(i=>i._stateChanges.pipe(hs(i))))),Yt(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(te(lt),te(lE,12),te($e),te(Xe),te(an),te(aE,8),te(lo,8),te(jp),te(Ki),te(cE,10),te(oE,12))},n.\u0275dir=Pe({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(ni(r,$L,5),ni(r,zL,5),ni(r,cE,5)),2&e){let o;It(o=xt())&&(i._previewTemplate=o.first),It(o=xt())&&(i._placeholderTemplate=o.first),It(o=xt())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&$t("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[tn([{provide:oE,useExisting:n}]),Li]}),n})(),XL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[jp],imports:[Rc]}),n})();const Es="function"==typeof Buffer,dE="function"==typeof TextDecoder?new TextDecoder:void 0,$a=("function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),nu=(n=>{let t={};return n.forEach((e,i)=>t[e]=i),t})($a),KL=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,gn=String.fromCharCode.bind(String),fE="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):n=>new Uint8Array(Array.prototype.slice.call(n,0)),gE=n=>n.replace(/[^A-Za-z0-9\+\/]/g,""),JL=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,e3=n=>{switch(n.length){case 4:var e=((7&n.charCodeAt(0))<<18|(63&n.charCodeAt(1))<<12|(63&n.charCodeAt(2))<<6|63&n.charCodeAt(3))-65536;return gn(55296+(e>>>10))+gn(56320+(1023&e));case 3:return gn((15&n.charCodeAt(0))<<12|(63&n.charCodeAt(1))<<6|63&n.charCodeAt(2));default:return gn((31&n.charCodeAt(0))<<6|63&n.charCodeAt(1))}},zp="function"==typeof atob?n=>atob(gE(n)):Es?n=>Buffer.from(n,"base64").toString("binary"):n=>{if(n=n.replace(/\s+/g,""),!KL.test(n))throw new TypeError("malformed base64.");n+="==".slice(2-(3&n.length));let t,i,r,e="";for(let o=0;o>16&255):64===r?gn(t>>16&255,t>>8&255):gn(t>>16&255,t>>8&255,255&t);return e},DE=Es?n=>fE(Buffer.from(n,"base64")):n=>fE(zp(n).split("").map(t=>t.charCodeAt(0))),t3=Es?n=>Buffer.from(n,"base64").toString("utf8"):dE?n=>dE.decode(DE(n)):n=>(n=>n.replace(JL,e3))(zp(n)),r3_decode=n=>t3((n=>gE(n.replace(/[-_]/g,t=>"-"==t?"+":"/")))(n)),o3=["gutterEls"];function s3(n,t){if(1&n){const e=no();me(0,"div",2,3),Jt("keydown",function(r){Ln(e);const o=wt().index;return Bn(wt().startKeyboardDrag(r,2*o+1,o+1))})("mousedown",function(r){Ln(e);const o=wt().index;return Bn(wt().startMouseDrag(r,2*o+1,o+1))})("touchstart",function(r){Ln(e);const o=wt().index;return Bn(wt().startMouseDrag(r,2*o+1,o+1))})("mouseup",function(r){Ln(e);const o=wt().index;return Bn(wt().clickGutter(r,o+1))})("touchend",function(r){Ln(e);const o=wt().index;return Bn(wt().clickGutter(r,o+1))}),Ot(2,"div",4),ye()}if(2&n){const e=wt(),i=e.index,r=e.$implicit,o=wt();Rr("flex-basis",o.gutterSize,"px")("order",2*i+1),ti("aria-label",o.gutterAriaLabel)("aria-orientation",o.direction)("aria-valuemin",r.minSize)("aria-valuemax",r.maxSize)("aria-valuenow",r.size)("aria-valuetext",o.getAriaAreaSizeText(r.size))}}function a3(n,t){1&n&&He(0,s3,3,10,"div",1),2&n&&st("ngIf",!1===t.last)}const l3=["*"];function Wa(n){if(void 0!==n.changedTouches&&n.changedTouches.length>0)return{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY};if(void 0!==n.clientX&&void 0!==n.clientY)return{x:n.clientX,y:n.clientY};if(void 0!==n.currentTarget){const t=n.currentTarget;return{x:t.offsetLeft,y:t.offsetTop}}return null}function AE(n,t,e){return Math.abs(n.x-t.x)<=e&&Math.abs(n.y-t.y)<=e}function IE(n,t){const e=n.nativeElement.getBoundingClientRect();return"horizontal"===t?e.width:e.height}function Ga(n){return"boolean"==typeof n?n:"false"!==n}function Vr(n,t){return null==n?t:(n=Number(n),!isNaN(n)&&n>=0?n:t)}function xE(n,t){if("percent"===n){const e=t.reduce((i,r)=>null!==r?i+r:i,0);return t.every(i=>null!==i)&&e>99.9&&e<100.1}if("pixel"===n)return 1===t.filter(e=>null===e).length}function ru(n){return null===n.size?null:!0===n.component.lockSize?n.size:null===n.component.minSize?null:n.component.minSize>n.size?n.size:n.component.minSize}function ou(n){return null===n.size?null:!0===n.component.lockSize?n.size:null===n.component.maxSize?null:n.component.maxSize{const s=function u3(n,t,e,i){return 0===e?{areaSnapshot:t,pixelAbsorb:0,percentAfterAbsorption:t.sizePercentAtStart,pixelRemain:0}:0===t.sizePixelAtStart&&e<0?{areaSnapshot:t,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===n?function d3(n,t,e){const r=(n.sizePixelAtStart+t)/e*100;if(t>0){if(null!==n.area.maxSize&&r>n.area.maxSize){const o=n.area.maxSize/100*e;return{areaSnapshot:n,pixelAbsorb:o,percentAfterAbsorption:n.area.maxSize,pixelRemain:n.sizePixelAtStart+t-o}}return{areaSnapshot:n,pixelAbsorb:t,percentAfterAbsorption:r>100?100:r,pixelRemain:0}}if(t<0){if(null!==n.area.minSize&&r0?null!==n.area.maxSize&&i>n.area.maxSize?{areaSnapshot:n,pixelAbsorb:n.area.maxSize-n.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:i-n.area.maxSize}:{areaSnapshot:n,pixelAbsorb:t,percentAfterAbsorption:-1,pixelRemain:0}:t<0?null!==n.area.minSize&&i{class n{constructor(e,i,r,o,s){this.ngZone=e,this.elRef=i,this.cdRef=r,this.renderer=o,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new _t(!1),this.dragEnd=new _t(!1),this.gutterClick=new _t(!1),this.gutterDblClick=new _t(!1),this.dragProgressSubject=new _e,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=s?Object.assign(this._config,s):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=Vr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=Vr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=Ga(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=Ga(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=Ga(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=Vr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new pe(e=>this.transitionEndSubscriber=e).pipe(vw(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const i={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(i),this.build(!0,!0)):this.hiddenAreas.push(i)}removeArea(e){if(this.displayedAreas.some(i=>i.component===e)){const i=this.displayedAreas.find(r=>r.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(i),1),this.build(!0,!0)}else if(this.hiddenAreas.some(i=>i.component===e)){const i=this.hiddenAreas.find(r=>r.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(i),1)}}updateArea(e,i,r){!0===e.visible&&this.build(i,r)}showArea(e){const i=this.hiddenAreas.find(o=>o.component===e);if(void 0===i)return;const r=this.hiddenAreas.splice(this.hiddenAreas.indexOf(i),1);this.displayedAreas.push(...r),this.build(!0,!0)}hideArea(e){const i=this.displayedAreas.find(o=>o.component===e);if(void 0===i)return;const r=this.displayedAreas.splice(this.displayedAreas.indexOf(i),1);r.forEach(o=>{o.order=0,o.size=0}),this.hiddenAreas.push(...r),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const i=e.map(o=>Vr(o,null));return!1!==xE(this.unit,i)&&(this.displayedAreas.forEach((o,s)=>o.component._size=i[s]),this.build(!1,!0),!0)}build(e,i){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(r=>null!==r.component.order)&&this.displayedAreas.sort((r,o)=>r.component.order-o.component.order),this.displayedAreas.forEach((r,o)=>{r.order=2*o,r.component.setStyleOrder(r.order)})),!0===i){const r=xE(this.unit,this.displayedAreas.map(o=>o.component.size));switch(this.unit){case"percent":{const o=100/this.displayedAreas.length;this.displayedAreas.forEach(s=>{s.size=r?s.component.size:o,s.minSize=ru(s),s.maxSize=ou(s)});break}case"pixel":if(r)this.displayedAreas.forEach(o=>{o.size=o.component.size,o.minSize=ru(o),o.maxSize=ou(o)});else{const o=this.displayedAreas.filter(s=>null===s.component.size);if(0===o.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((s,a)=>{s.size=0===a?null:s.component.size,s.minSize=0===a?null:ru(s),s.maxSize=0===a?null:ou(s)});else if(o.length>1){let s=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===s?(a.size=null,a.minSize=null,a.maxSize=null,s=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=ru(a),a.maxSize=ou(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(i=>{i.component.setStyleFlex(0,0,`calc( ${i.size}% - ${i.size/100*e}px )`,null!==i.minSize&&i.minSize===i.size,null!==i.maxSize&&i.maxSize===i.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,i){const r=Wa(e);this.startPoint&&AE(this.startPoint,r,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",i),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",i),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,i,r){if(!0===this.disabled||!0===this.isWaitingClear)return;const o=function c3(n,t){if("horizontal"===t)switch(n.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===t)switch(n.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=n.currentTarget,i="PageUp"===n.key||"PageDown"===n.key?500:50;let r=e.offsetLeft,o=e.offsetTop;switch(n.key){case"ArrowLeft":r-=i;break;case"ArrowRight":r+=i;break;case"ArrowUp":o-=i;break;case"ArrowDown":o+=i;break;case"PageUp":"vertical"===t?o-=i:r+=i;break;case"PageDown":"vertical"===t?o+=i:r-=i;break;default:return null}return{x:r,y:o}}(e,this.direction);null!==o&&(this.endPoint=o,this.startPoint=Wa(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(i,r),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,i,r){e.preventDefault(),e.stopPropagation(),this.startPoint=Wa(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(i,r),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,i){this.snapshot={gutterNum:i,lastSteppedOffset:0,allAreasSizePixel:IE(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(r=>{const o={area:r,sizePixelAtStart:IE(r.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?r.size:-1};r.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[o]):this.snapshot.areasAfterGutter.push(o))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((r,o)=>r+o.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const i=Wa(e);null!==this._clickTimeout&&!AE(this.startPoint,i,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=Wa(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(e=-e);const i=Math.round(e/this.gutterStep)*this.gutterStep;if(i===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=i;let r=Ss(this.unit,this.snapshot.areasBeforeGutter,-i,this.snapshot.allAreasSizePixel),o=Ss(this.unit,this.snapshot.areasAfterGutter,i,this.snapshot.allAreasSizePixel);if(0!==r.remain&&0!==o.remain?Math.abs(r.remain)===Math.abs(o.remain)||(Math.abs(r.remain)>Math.abs(o.remain)?o=Ss(this.unit,this.snapshot.areasAfterGutter,i+r.remain,this.snapshot.allAreasSizePixel):r=Ss(this.unit,this.snapshot.areasBeforeGutter,-(i-o.remain),this.snapshot.allAreasSizePixel)):0!==r.remain?o=Ss(this.unit,this.snapshot.areasAfterGutter,i+r.remain,this.snapshot.allAreasSizePixel):0!==o.remain&&(r=Ss(this.unit,this.snapshot.areasBeforeGutter,-(i-o.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const s=[...r.list,...o.list],a=s.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-s.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}r.list.forEach(s=>RE(this.unit,s)),o.list.forEach(s=>RE(this.unit,s)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(i=>i.component.unlockEvents());this.dragListeners.length>0;){const i=this.dragListeners.pop();i&&i()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,i){const r=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:i,sizes:r}):"end"===e?this.dragEnd.emit({gutterNum:i,sizes:r}):"click"===e?this.gutterClick.emit({gutterNum:i,sizes:r}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:i,sizes:r}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(r)):"progress"===e&&this.dragProgressSubject.next({gutterNum:i,sizes:r})}ngOnDestroy(){this.stopDragging()}collapseArea(e,i,r){const o=this.displayedAreas.find(l=>l.component===e);if(void 0===o)return;const s="right"===r?1:-1;o.sizeBeforeCollapse||(o.sizeBeforeCollapse=o.size,o.gutterBeforeCollapse=s),o.size=i;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${o.order+s}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const i=this.displayedAreas.find(o=>o.component===e);if(void 0===i||!i.sizeBeforeCollapse)return;i.size=i.sizeBeforeCollapse,i.sizeBeforeCollapse=null;const r=this.gutterEls.find(o=>o.nativeElement.style.order===`${i.order+i.gutterBeforeCollapse}`);r&&this.renderer.removeClass(r.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}}return n.\u0275fac=function(e){return new(e||n)(te(Xe),te(lt),te(Ki),te(Al),te(f3,8))},n.\u0275cmp=Mt({type:n,selectors:[["as-split"]],viewQuery:function(e,i){if(1&e&&Hn(o3,5),2&e){let r;It(r=xt())&&(i.gutterEls=r)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:l3,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","slider","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","slider","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(e,i){1&e&&(xr(),Mi(0),He(1,a3,1,1,"ng-template",0)),2&e&&(Oe(1),st("ngForOf",i.displayedAreas))},dependencies:[Df,cs],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),n})(),p3=(()=>{class n{constructor(e,i,r,o){this.ngZone=e,this.elRef=i,this.renderer=r,this.split=o,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(e){this._order=Vr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=Vr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=Vr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=Vr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=Ga(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=Ga(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",e=>{"flex-basis"===e.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,i,r,o,s){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",i),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",r),!0===o?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(e=0,i="right"){this.split.collapseArea(this,e,i)}expand(){this.split.expandArea(this)}}return n.\u0275fac=function(e){return new(e||n)(te(Xe),te(lt),te(Al),te(OE))},n.\u0275dir=Pe({type:n,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),n})(),g3=(()=>{class n{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:n,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[[us]]}),n})();function m3(n,t){1&n&&(me(0,"th",21),Ee(1," # "),ye())}function _3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.position),Oe(1),Vt(" ",e.position," ")}}function y3(n,t){1&n&&(me(0,"th",21),Ee(1," Host "),ye())}function v3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.host),Oe(1),Vt(" ",e.host," ")}}function b3(n,t){1&n&&(me(0,"th",21),Ee(1," Method "),ye())}function w3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.method),Oe(1),Vt(" ",e.method," ")}}function D3(n,t){1&n&&(me(0,"th",21),Ee(1," URL "),ye())}function E3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.path),Oe(1),Vt(" ",e.path," ")}}function C3(n,t){1&n&&(me(0,"th",21),Ee(1," Status "),ye())}function S3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.status),Oe(1),Vt(" ",e.status," ")}}function T3(n,t){1&n&&(me(0,"th",21),Ee(1," Length "),ye())}function M3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.responselength),Oe(1),Vt(" ",e.responselength," ")}}function A3(n,t){1&n&&(me(0,"th",21),Ee(1," MIME type "),ye())}function I3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.mimetype),Oe(1),Vt(" ",e.mimetype," ")}}function x3(n,t){1&n&&(me(0,"th",21),Ee(1," Extension "),ye())}function R3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.extension),Oe(1),Vt(" ",e.extension," ")}}function O3(n,t){1&n&&(me(0,"th",21),Ee(1," Title "),ye())}function P3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.title),Oe(1),Vt(" ",e.title," ")}}function k3(n,t){1&n&&(me(0,"th",21),Ee(1," Comment "),ye())}function N3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.comment),Oe(1),Vt(" ",e.comment," ")}}function F3(n,t){1&n&&(me(0,"th",21),Ee(1," IP "),ye())}function L3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.ip),Oe(1),Vt(" ",e.ip," ")}}function B3(n,t){1&n&&(me(0,"th",21),Ee(1," Time "),ye())}function V3(n,t){if(1&n&&(me(0,"td",22),Ee(1),ye()),2&n){const e=t.$implicit;jn("title",e.time),Oe(1),Vt(" ",e.time," ")}}function j3(n,t){1&n&&Ot(0,"tr",23)}function H3(n,t){if(1&n){const e=no();me(0,"tr",24),Jt("click",function(){const o=Ln(e).$implicit;return Bn(wt().clickedRow=o)}),ye()}if(2&n){const e=t.$implicit;$t("row-is-clicked",wt().clickedRow==e)}}function U3(n,t){1&n&&(me(0,"span"),Ee(1,":\xa0"),ye())}function z3(n,t){if(1&n&&(me(0,"div")(1,"span",35),Ee(2),ye(),He(3,U3,2,0,"span",36),me(4,"span",37),Ee(5),ye()()),2&n){const e=t.$implicit;Oe(2),Xi(e[0]),Oe(1),st("ngIf",e[1]),Oe(2),Xi(e[1])}}function $3(n,t){1&n&&(me(0,"span"),Ee(1,":\xa0"),ye())}function W3(n,t){if(1&n&&(me(0,"div",38)(1,"span",35),Ee(2),ye(),He(3,$3,2,0,"span",36),me(4,"span",37),Ee(5),ye()()),2&n){const e=t.$implicit;Oe(2),Xi(e[0]),Oe(1),st("ngIf",e[1]),Oe(2),Xi(e[1])}}function G3(n,t){if(1&n){const e=no();me(0,"as-split-area",1)(1,"as-split",25)(2,"as-split-area")(3,"div",26)(4,"span"),Ee(5),ye(),Ot(6,"span",27),me(7,"button",28),Jt("click",function(){Ln(e);const r=wt();return Bn(r.wrapRequest=!r.wrapRequest)}),Ee(8,"Wrap"),ye()(),me(9,"div",29)(10,"div",30),He(11,z3,6,3,"div",31),ye(),Ot(12,"br")(13,"br"),me(14,"div",32),Ee(15),ye()()(),me(16,"as-split-area")(17,"div",26)(18,"span"),Ee(19,"Response"),ye(),Ot(20,"span",27),me(21,"button",28),Jt("click",function(){Ln(e);const r=wt();return Bn(r.wrapResponse=!r.wrapResponse)}),Ee(22,"Wrap"),ye()(),me(23,"div",29)(24,"div",30),He(25,W3,6,3,"div",33),ye(),Ot(26,"br")(27,"br"),me(28,"div",34),Ee(29),ye()()()()()}if(2&n){const e=wt();st("size",40),Oe(1),st("gutterSize",7),Oe(4),Vt("Request #",e.clickedRow.position,""),Oe(2),$t("active",e.wrapRequest),Oe(2),$t("wrapy",e.wrapRequest),Oe(2),st("ngForOf",e.clickedRow.request[0]),Oe(4),Xi(e.clickedRow.request[1]),Oe(6),$t("active",e.wrapResponse),Oe(2),$t("wrapy",e.wrapResponse),Oe(2),st("ngForOf",e.clickedRow.response[0]),Oe(4),Xi(e.clickedRow.response[1])}}let X3=(()=>{class n{constructor(e){this.FileHandleService=e,this.displayedColumns=["position","host","method","path","status","responselength","mimetype","extension","title","comment","ip","time"],this.dataSource=new kp,this.ELEMENT_DATA=[],this.wrapRequest=!1,this.wrapResponse=!1}ngOnInit(){this.fileSub=this.FileHandleService.getselectedFileDataListener().subscribe(e=>{if(!e.selectedFileContent)return this.dataSource=new kp,this.selectedFileContent=e.selectedFileContent,void(this.clickedRow=void 0);this.selectedFileContent=e.selectedFileContent,this.elementDataGen(this.selectedFileContent),this.dataSource=new kp(this.ELEMENT_DATA),this.dataSource.sort=this.sort})}elementDataGen(e){this.ELEMENT_DATA=[];let i=1;e.items.item.forEach(r=>{this.ELEMENT_DATA.push({position:i,ip:r.host[0].$.ip,host:r.protocol+"://"+r.host[0]._+this.portAssign(r.protocol,r.port),port:r.port,protocol:r.protocol,method:r.method,status:r.status,path:r.path,responselength:r.responselength,comment:r.comment,url:r.url,time:r.time,mimetype:r.mimetype,extension:"null"!=r.extension?r.extension:"",request:this.splitHeaderBody(this.atobReqRes(r.request)),response:this.splitHeaderBody(this.atobReqRes(r.response)),title:this.extractTitleFromHttpResponse(this.atobReqRes(r.response))}),i+=1})}drop(e){eE(this.displayedColumns,e.previousIndex,e.currentIndex)}splitHeaderBody(e){let[i,...r]=e.split(/\n\s*\n/);return i=i.split(/\r\n/),i.forEach((o,s)=>{let[a,...l]=o.split(": ");i[s]=[a,l.join("")]},i),[i,r.join("")]}atobReqRes(e){var i,r;try{return"true"===e[0].$.base64?r3_decode(null!==(i=e[0]._)&&void 0!==i?i:""):null!==(r=e[0]._)&&void 0!==r?r:""}catch(o){console.log(o),console.log(e)}return""}portAssign(e,i){return"https"===e[0]&&"443"===i[0]||"http"===e[0]&&"80"===i[0]?"":":"+i}extractTitleFromHttpResponse(e){const r=e.match(/(.*?)<\/title>/i);return r&&r.length>1?r[1]:""}applyFilter(e){this.dataSource.filter=(e.target.value?e.target.value:"").trim()}clearclickedRow(e){e.preventDefault(),this.clickedRow?this.clickedRow=void 0:(document.getElementById("search").value="",this.applyFilter(e))}}return n.\u0275fac=function(e){return new(e||n)(te(Nf))},n.\u0275cmp=Mt({type:n,selectors:[["app-main"]],viewQuery:function(e,i){if(1&e&&Hn(_p,5),2&e){let r;It(r=xt())&&(i.sort=r.first)}},hostBindings:function(e,i){1&e&&Jt("keydown.esc",function(o){return i.clearclickedRow(o)},0,m_)},decls:43,vars:6,consts:[["direction","vertical",3,"gutterSize"],[3,"size"],["matInput","","type","search","placeholder","Search","id","search",1,"search",3,"input"],["mat-table","","matSort","","cdkDropList","","cdkDropListOrientation","horizontal",3,"dataSource","cdkDropListDropped"],["matColumnDef","position"],["mat-header-cell","","mat-sort-header","","cdkDrag","",4,"matHeaderCellDef"],["mat-cell","",3,"title",4,"matCellDef"],["matColumnDef","host"],["matColumnDef","method"],["matColumnDef","path"],["matColumnDef","status"],["matColumnDef","responselength"],["matColumnDef","mimetype"],["matColumnDef","extension"],["matColumnDef","title"],["matColumnDef","comment"],["matColumnDef","ip"],["matColumnDef","time"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"row-is-clicked","click",4,"matRowDef","matRowDefColumns"],[3,"size",4,"ngIf"],["mat-header-cell","","mat-sort-header","","cdkDrag",""],["mat-cell","",3,"title"],["mat-header-row",""],["mat-row","",3,"click"],["direction","horizontal",3,"gutterSize"],[1,"label"],[1,"toolbar-spacer"],[3,"click"],[1,"content"],["id","res_headers"],[4,"ngFor","ngForOf"],["id","req_body"],["class","header_inner",4,"ngFor","ngForOf"],["id","res_body"],[1,"header_key"],[4,"ngIf"],[1,"header_val"],[1,"header_inner"]],template:function(e,i){1&e&&(me(0,"as-split",0)(1,"as-split-area",1)(2,"input",2),Jt("input",function(o){return i.applyFilter(o)}),ye(),me(3,"table",3),Jt("cdkDropListDropped",function(o){return i.drop(o)}),dn(4,4),He(5,m3,2,0,"th",5),He(6,_3,2,2,"td",6),hn(),dn(7,7),He(8,y3,2,0,"th",5),He(9,v3,2,2,"td",6),hn(),dn(10,8),He(11,b3,2,0,"th",5),He(12,w3,2,2,"td",6),hn(),dn(13,9),He(14,D3,2,0,"th",5),He(15,E3,2,2,"td",6),hn(),dn(16,10),He(17,C3,2,0,"th",5),He(18,S3,2,2,"td",6),hn(),dn(19,11),He(20,T3,2,0,"th",5),He(21,M3,2,2,"td",6),hn(),dn(22,12),He(23,A3,2,0,"th",5),He(24,I3,2,2,"td",6),hn(),dn(25,13),He(26,x3,2,0,"th",5),He(27,R3,2,2,"td",6),hn(),dn(28,14),He(29,O3,2,0,"th",5),He(30,P3,2,2,"td",6),hn(),dn(31,15),He(32,k3,2,0,"th",5),He(33,N3,2,2,"td",6),hn(),dn(34,16),He(35,F3,2,0,"th",5),He(36,L3,2,2,"td",6),hn(),dn(37,17),He(38,B3,2,0,"th",5),He(39,V3,2,2,"td",6),hn(),He(40,j3,1,0,"tr",18),He(41,H3,1,2,"tr",19),ye()(),He(42,G3,30,15,"as-split-area",20),ye()),2&e&&(st("gutterSize",7),Oe(1),st("size",60),Oe(2),st("dataSource",i.dataSource),Oe(37),st("matHeaderRowDef",i.displayedColumns),Oe(1),st("matRowDefColumns",i.displayedColumns),Oe(1),st("ngIf",i.clickedRow))},dependencies:[Df,cs,LD,xp,BD,Rp,Ip,VD,Op,Pp,jD,HD,_p,Q2,UL,GL,OE,p3],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-row[_ngcontent-%COMP%]:hover{background-color:#0000000d}tr.mat-row[_ngcontent-%COMP%], tr.mat-footer-row[_ngcontent-%COMP%]{height:25px}tr.mat-header-row[_ngcontent-%COMP%]{height:30px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{border-right:1px solid rgba(0,0,0,.12)}.row-is-clicked[_ngcontent-%COMP%], .row-is-clicked[_ngcontent-%COMP%]:hover{background-color:#00000025}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:0;padding:2px;overflow:auto;height:calc(100% - 42px);font-family:monospace;white-space:pre}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{background-color:#c3c3c3;padding:10px;display:flex;max-height:18px}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .content.wrapy[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] div.label[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{font-weight:700;color:#ffffffde;background-color:#1d1e20}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;-webkit-user-select:none;user-select:none;cursor:pointer;border:none;-webkit-tap-highlight-color:transparent;border-radius:4px;color:#1d1e20;background-color:#ebebeb}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}*[_ngcontent-%COMP%] > .as-split-area[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-time[_ngcontent-%COMP%]{white-space:nowrap}.mat-column-path[_ngcontent-%COMP%]{max-width:25rem;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .as-split-gutter{background-color:#0000001f!important}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:not(:nth-child(1)), .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:not(:nth-child(1)){padding:0 10px}.table-container[_ngcontent-%COMP%]{height:100%;overflow:auto}.header_key[_ngcontent-%COMP%]{color:#00008b}.search[_ngcontent-%COMP%]{width:100%;border:0;border-bottom:1px solid rgba(0,0,0,.12);height:30px;padding-inline-start:10px;font-size:15px}.search[_ngcontent-%COMP%]:focus{outline-offset:-2px}@media (prefers-color-scheme: dark){.mat-table[_ngcontent-%COMP%], .search[_ngcontent-%COMP%]{background:0}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{color:#ffffffde}mat-row[_ngcontent-%COMP%]{border-bottom-color:#e0e0e0}mat-row[_ngcontent-%COMP%], mat-header-row[_ngcontent-%COMP%], mat-footer-row[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom-color:#ffffff1f}.mat-header-cell[_ngcontent-%COMP%]{color:#ffffff8a}.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{border-right:1px solid rgba(255,255,255,.12)}[_nghost-%COMP%] .as-split-gutter{background-color:#ffffff1f!important}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{background-color:#3c3c3c}.header_key[_ngcontent-%COMP%]{color:#add8e6}.search[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.12)}}"]}),n})();function q3(n,t){if(1&n&&(di(),Ci(),me(0,"span"),Ee(1),ye()),2&n){const e=wt();Oe(1),Vt("Burp Version: ",e.burpVersion,"")}}function Y3(n,t){1&n&&(di(),Ci(),me(0,"span"),Ee(1,"\xa0|\xa0"),ye())}function K3(n,t){if(1&n&&(di(),Ci(),me(0,"span"),Ee(1),ye()),2&n){const e=wt();Oe(1),Vt("Exported at: ",e.exportTime,"")}}function Z3(n,t){1&n&&(di(),Ci(),me(0,"span"),Ee(1,"Details about the export will be available here."),ye())}let Q3=(()=>{class n{constructor(e){this.FileHandleService=e}ngOnInit(){this.fileSub=this.FileHandleService.getselectedFileDataListener().subscribe(e=>{e.selectedFileContent?(this.burpVersion=e.selectedFileContent.items.$.burpVersion,this.exportTime=e.selectedFileContent.items.$.exportTime):this.burpVersion=this.exportTime=""})}}return n.\u0275fac=function(e){return new(e||n)(te(Nf))},n.\u0275cmp=Mt({type:n,selectors:[["app-footer"]],decls:7,vars:4,consts:[[1,"navbar-footer"],["fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","20px","height","20px"],["d","M 12 2 C 6.4889971 2 2 6.4889971 2 12 C 2 17.511003 6.4889971 \n 22 12 22 C 17.511003 22 22 17.511003 22 12 C 22 6.4889971 17.511003 \n 2 12 2 z M 12 4 C 16.430123 4 20 7.5698774 20 12 C 20 16.430123 16.430123 \n 20 12 20 C 7.5698774 20 4 16.430123 4 12 C 4 7.5698774 7.5698774 4 \n 12 4 z M 11 7 L 11 9 L 13 9 L 13 7 L 11 7 z M 11 11 L 11 17 L 13 17 L \n 13 11 L 11 11 z"],[4,"ngIf"]],template:function(e,i){1&e&&(me(0,"nav",0),di(),me(1,"svg",1),Ot(2,"path",2),ye(),He(3,q3,2,1,"span",3),He(4,Y3,2,0,"span",3),He(5,K3,2,1,"span",3),He(6,Z3,2,0,"span",3),ye()),2&e&&(Oe(3),st("ngIf",i.burpVersion),Oe(1),st("ngIf",i.exportTime&&i.burpVersion),Oe(1),st("ngIf",i.exportTime),Oe(1),st("ngIf",!i.burpVersion||!i.exportTime))},dependencies:[cs],styles:[".navbar-footer[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;height:20px;background:rgb(255,255,255);color:inherit;margin:0 16px}.navbar-footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 2px;height:20px;font-size:15px}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.hidden[_ngcontent-%COMP%]{display:none}@media (prefers-color-scheme: dark){.navbar-footer[_ngcontent-%COMP%]{background:rgb(29,30,32)}}"]}),n})(),J3=(()=>{class n{constructor(){this.title="burp-http-history-browser"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Mt({type:n,selectors:[["app-root"]],decls:3,vars:0,template:function(e,i){1&e&&Ot(0,"app-header")(1,"app-main")(2,"app-footer")},dependencies:[U2,X3,Q3],styles:["app-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:2;border-bottom:1px solid rgba(0,0,0,.12)}app-main[_ngcontent-%COMP%]{height:calc(100vh - 60px);margin:40px 0 20px}app-footer[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;z-index:2;border-top:1px solid rgba(0,0,0,.12)}@media (prefers-color-scheme: dark){app-header[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.12)}app-footer[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.12)}}"]}),n})();function PE(n){return new Se(3e3,!1)}function kB(){return"undefined"!=typeof window&&void 0!==window.document}function Wp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function jr(n){switch(n.length){case 0:return new Pa;case 1:return n[0];default:return new sD(n)}}function kE(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const h=u.get("offset"),D=h==l,R=D&&c||new Map;u.forEach((Y,ee)=>{let re=ee,ue=Y;if("offset"!==ee)switch(re=t.normalizePropertyName(re,s),ue){case"!":ue=r.get(ee);break;case gr:ue=o.get(ee);break;default:ue=t.normalizeStyleValue(ee,re,ue,s)}R.set(re,ue)}),D||a.push(R),c=R,l=h}),s.length)throw function DB(n){return new Se(3502,!1)}();return a}function Gp(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Xp(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Xp(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Xp(e,"destroy",n)))}}function Xp(n,t,e){const i=e.totalTime,o=qp(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function qp(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function ri(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function NE(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Yp=(n,t)=>!1,FE=(n,t,e)=>[],LE=null;function Kp(n){const t=n.parentNode||n.host;return t===LE?null:t}(Wp()||"undefined"!=typeof Element)&&(kB()?(LE=(()=>document.documentElement)(),Yp=(n,t)=>{for(;t;){if(t===n)return!0;t=Kp(t)}return!1}):Yp=(n,t)=>n.contains(t),FE=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let ho=null,BE=!1;const VE=Yp,jE=FE;let HE=(()=>{class n{validateStyleProperty(e){return function FB(n){ho||(ho=function LB(){return"undefined"!=typeof document?document.body:null}()||{},BE=!!ho.style&&"WebkitAppearance"in ho.style);let t=!0;return ho.style&&!function NB(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in ho.style,!t&&BE&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ho.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return VE(e,i)}getParentElement(e){return Kp(e)}query(e,i,r){return jE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Pa(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),Zp=(()=>{class n{}return n.NOOP=new HE,n})();const Qp="ng-enter",su="ng-leave",au="ng-trigger",lu=".ng-trigger",zE="ng-animating",Jp=".ng-animating";function Hr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:eg(parseFloat(t[1]),t[2])}function eg(n,t){return"s"===t?1e3*n:n}function cu(n,t,e){return n.hasOwnProperty("duration")?n:function jB(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(PE()),{duration:0,delay:0,easing:""};r=eg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=eg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function eB(){return new Se(3100,!1)}()),a=!0),o<0&&(t.push(function tB(){return new Se(3101,!1)}()),a=!0),a&&t.splice(l,0,PE())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Xa(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function $E(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Ur(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function GE(n,t,e){return e?t+":"+e+";":""}function XE(n){let t="";for(let e=0;e{const o=ng(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),Wp()&&XE(n))}function fo(n,t){n.style&&(t.forEach((e,i)=>{const r=ng(i);n.style[r]=""}),Wp()&&XE(n))}function qa(n){return Array.isArray(n)?1==n.length?n[0]:rD(n):n}const tg=new RegExp("{{\\s*(.+?)\\s*}}","g");function qE(n){let t=[];if("string"==typeof n){let e;for(;e=tg.exec(n);)t.push(e[1]);tg.lastIndex=0}return t}function uu(n,t,e){const i=n.toString(),r=i.replace(tg,(o,s)=>{let a=t[s];return null==a&&(e.push(function iB(n){return new Se(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function du(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const zB=/-+([a-z0-9])/g;function ng(n){return n.replace(zB,(...t)=>t[1].toUpperCase())}function $B(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oi(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function rB(n){return new Se(3004,!1)}()}}function YE(n,t){return window.getComputedStyle(n)[t]}function KB(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function ZB(n,t,e){if(":"==n[0]){const l=function QB(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function _B(n){return new Se(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(KE(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(KE(s,r))}(i,e,t)):e.push(n),e}const gu=new Set(["true","1"]),mu=new Set(["false","0"]);function KE(n,t){const e=gu.has(n)||mu.has(n),i=gu.has(t)||mu.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?gu.has(n):mu.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?gu.has(t):mu.has(t)),s&&a}}const JB=new RegExp("s*:selfs*,?","g");function ig(n,t,e,i){return new e8(n).build(t,e,i)}class e8{constructor(t){this._driver=t}build(t,e,i){const r=new i8(e);return this._resetContextStyleTimingState(r),oi(this,qa(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function sB(){return new Se(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function aB(){return new Se(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{qE(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(du(o.values()),e.errors.push(function lB(n,t){return new Se(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=oi(this,qa(t.animation),e);return{type:1,matchers:KB(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:po(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>oi(this,i,e)),options:po(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=oi(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:po(t.options)}}visitAnimate(t,e){const i=function o8(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return rg(cu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=rg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=cu(e,t);return rg(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:ut({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=ut(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===gr?i.push(a):e.errors.push(new Se(3002,!1)):i.push($E(a));let o=!1,s=null;return i.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:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let h=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function uB(n,t,e,i,r){return new Se(3010,!1)}()),h=!1),o=u.startTime),h&&c.set(l,{startTime:o,endTime:r}),e.options&&function UB(n,t,e){const i=t.params||{},r=qE(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function nB(n){return new Se(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function dB(){return new Se(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(ue=>{const be=this._makeStyleAst(ue,e);let le=null!=be.offset?be.offset:function r8(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(be.styles),we=0;return null!=le&&(o++,we=be.offset=le),l=l||we<0||we>1,a=a||we0&&o{const le=D>0?be==R?1:D*be:s[be],we=le*re;e.currentTime=Y+ee.delay+we,ee.duration=we,this._validateStyleAst(ue,e),ue.offset=le,i.styles.push(ue)}),i}visitReference(t,e){return{type:8,animation:oi(this,qa(t.animation),e),options:po(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:po(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:po(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function t8(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(JB,"")),n=n.replace(/@\*/g,lu).replace(/@\w+/g,e=>lu+"-"+e.slice(1)).replace(/:animating/g,Jp),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,ri(e.collectedStyles,e.currentQuerySelector,new Map);const a=oi(this,qa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:po(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function gB(){return new Se(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:cu(t.timings,e.errors,!0);return{type:12,animation:oi(this,qa(t.animation),e),timings:i,options:null}}}class i8{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function po(n){return n?(n=Xa(n)).params&&(n.params=function n8(n){return n?Xa(n):null}(n.params)):n={},n}function rg(n,t,e){return{duration:n,delay:t,easing:e}}function og(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class _u{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const l8=new RegExp(":enter","g"),u8=new RegExp(":leave","g");function sg(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new d8).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class d8{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new _u;const h=new ag(t,e,c,r,o,u,[]);h.options=l;const D=l.delay?Hr(l.delay):0;h.currentTimeline.delayNextStep(D),h.currentTimeline.setStyles([s],null,h.errors,l),oi(this,i,h);const R=h.timelines.filter(Y=>Y.containsAnimation());if(R.length&&a.size){let Y;for(let ee=R.length-1;ee>=0;ee--){const re=R[ee];if(re.element===e){Y=re;break}}Y&&!Y.allowOnlyTimelineStyles()&&Y.setStyles([a],null,h.errors,l)}return R.length?R.map(Y=>Y.buildKeyframes()):[og(e,[],[],[],0,D,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Hr(i.duration):null,a=null!=i.delay?Hr(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),oi(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=yu);const s=Hr(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>oi(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Hr(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),oi(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return cu(e.params?uu(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Hr(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yu);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(t.options,c);o&&h.delayNextStep(o),c===e.element&&(l=h.currentTimeline),oi(this,t.animation,h),h.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const h=u.currentTime;oi(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-h+(r.startTime-i.currentTimeline.startTime)}}const yu={};class ag{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new vu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Hr(i.duration)),null!=i.delay&&(r.delay=Hr(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=uu(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new ag(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=yu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new h8(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(l8,"."+this._enterClassName)).replace(u8,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function mB(n){return new Se(3014,!1)}()),a}}class vu{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vu(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||gr),this._currentKeyframe.set(e,gr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){var o;e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},a=function f8(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,gr)}else Ur(r,e)}),e}(t,this._globalTimelineStyles);for(let[l,c]of a){const u=uu(c,s,i);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(o=this._globalTimelineStyles.get(l))&&void 0!==o?o:gr),this._updateStyle(l,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ur(a,new Map,this._backFill);c.forEach((u,h)=>{"!"===u?t.add(h):u===gr&&e.add(h)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?du(t.values()):[],s=e.size?du(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return og(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class h8 extends vu{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Ur(t[0]);l.set("offset",0),o.push(l);const c=Ur(t[0]);c.set("offset",JE(a)),o.push(c);const u=t.length-1;for(let h=1;h<=u;h++){let D=Ur(t[h]);const R=D.get("offset");D.set("offset",JE((e+R*i)/s)),o.push(D)}i=s,e=0,r="",t=o}return og(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function JE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class lg{}const p8=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 g8 extends lg{normalizePropertyName(t,e){return ng(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(p8.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function oB(n,t){return new Se(3005,!1)}())}return s+o}}function eC(n,t,e,i,r,o,s,a,l,c,u,h,D){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:D}}const cg={};class tC{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function m8(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(null==t?void 0:t.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){var h;const D=[],R=this.ast.options&&this.ast.options.params||cg,ee=this.buildStyles(i,a&&a.params||cg,D),re=l&&l.params||cg,ue=this.buildStyles(r,re,D),be=new Set,le=new Map,we=new Map,Be="void"===r,at={params:_8(re,R),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},Ht=u?[]:sg(t,e,this.ast.animation,o,s,ee,ue,at,c,D);let Dn=0;if(Ht.forEach(kn=>{Dn=Math.max(kn.duration+kn.delay,Dn)}),D.length)return eC(e,this._triggerName,i,r,Be,ee,ue,[],[],le,we,Dn,D);Ht.forEach(kn=>{const yr=kn.element,vr=ri(le,yr,new Set);kn.preStyleProps.forEach(Qi=>vr.add(Qi));const br=ri(we,yr,new Set);kn.postStyleProps.forEach(Qi=>br.add(Qi)),yr!==e&&be.add(yr)});const $r=du(be.values());return eC(e,this._triggerName,i,r,Be,ee,ue,Ht,$r,le,we,Dn)}}function _8(n,t){const e=Xa(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class y8{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Xa(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=uu(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class b8{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new y8(r.style,r.options&&r.options.params||{},i))}),nC(this.states,"true","1"),nC(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new tC(t,r,this.states))}),this.fallbackTransition=function w8(n,t,e){return new tC(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function nC(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const D8=new _u;class E8{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=ig(this._driver,e,i,[]);if(i.length)throw function EB(n){return new Se(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=kE(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=sg(this._driver,e,o,Qp,su,new Map,new Map,i,D8,r),s.forEach(u=>{const h=ri(a,u.element,new Map);u.postStyleProps.forEach(D=>h.set(D,null))})):(r.push(function CB(){return new Se(3300,!1)}()),s=[]),r.length)throw function SB(n){return new Se(3504,!1)}();a.forEach((u,h)=>{u.forEach((D,R)=>{u.set(R,this._driver.computeStyle(h,R,gr))})});const c=jr(s.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function TB(n){return new Se(3301,!1)}();return e}listen(t,e,i,r){const o=qp(e,"","","");return Gp(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const iC="ng-animate-queued",ug="ng-animate-disabled",A8=[],rC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},I8={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},gi="__ng_removed";class dg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function P8(n){return null!=n?n:null}(i?t.value:t),i){const o=Xa(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Ya="void",hg=new dg(Ya);class x8{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,mi(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function MB(n,t){return new Se(3302,!1)}();if(null==i||0==i.length)throw function AB(n){return new Se(3303,!1)}();if(!function k8(n){return"start"==n||"done"==n}(i))throw function IB(n,t){return new Se(3400,!1)}();const o=ri(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=ri(this._engine.statesByElement,t,new Map);return a.has(e)||(mi(t,au),mi(t,au+"-"+e),a.set(e,hg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function xB(n){return new Se(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new fg(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(mi(t,au),mi(t,au+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new dg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=hg),c.value!==Ya&&l.value===c.value){if(!function L8(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{fo(t,re),Zi(t,ue)})}return}const D=ri(this._engine.playersByElement,t,[]);D.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let R=o.matchTransition(l.value,c.value,t,c.params),Y=!1;if(!R){if(!r)return;R=o.fallbackTransition,Y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:R,fromState:l,toState:c,player:s,isFallbackTransition:Y}),Y||(mi(t,iC),s.onStart(()=>{Ts(t,iC)})),s.onDone(()=>{let ee=this.players.indexOf(s);ee>=0&&this.players.splice(ee,1);const re=this._engine.playersByElement.get(t);if(re){let ue=re.indexOf(s);ue>=0&&re.splice(ue,1)}}),this.players.push(s),D.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,lu,!0);i.forEach(r=>{if(r[gi])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Ya,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&jr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||hg,u=new dg(Ya),h=new fg(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[gi];(!o||o===rC)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){mi(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=qp(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Gp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class R8{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new x8(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(bu(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!bu(e))return;const o=e[gi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),mi(t,ug)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ts(t,ug))}removeNode(t,e,i,r){if(bu(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[gi]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return bu(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,lu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Jp,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return jr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[gi];if(i&&i.setForRemoval){if(t[gi]=rC,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}!(null===(e=t.classList)||void 0===e)&&e.contains(ug)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?jr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function RB(n){return new Se(3402,!1)}()}_flushAnimations(t,e){const i=new _u,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(xe=>{u.add(xe);const ke=this.driver.query(xe,".ng-animate-queued",!0);for(let Fe=0;Fe{const Fe=Qp+ee++;Y.set(ke,Fe),xe.forEach(nt=>mi(nt,Fe))});const re=[],ue=new Set,be=new Set;for(let xe=0;xeue.add(nt)):be.add(ke))}const le=new Map,we=aC(D,Array.from(ue));we.forEach((xe,ke)=>{const Fe=su+ee++;le.set(ke,Fe),xe.forEach(nt=>mi(nt,Fe))}),t.push(()=>{R.forEach((xe,ke)=>{const Fe=Y.get(ke);xe.forEach(nt=>Ts(nt,Fe))}),we.forEach((xe,ke)=>{const Fe=le.get(ke);xe.forEach(nt=>Ts(nt,Fe))}),re.forEach(xe=>{this.processLeaveNode(xe)})});const Be=[],at=[];for(let xe=this._namespaceList.length-1;xe>=0;xe--)this._namespaceList[xe].drainQueuedTransitions(e).forEach(Fe=>{const nt=Fe.player,Ut=Fe.element;if(Be.push(nt),this.collectedEnterElements.length){const En=Ut[gi];if(En&&En.setForMove){if(En.previousTriggersValues&&En.previousTriggersValues.has(Fe.triggerName)){const go=En.previousTriggersValues.get(Fe.triggerName),_i=this.statesByElement.get(Fe.element);if(_i&&_i.has(Fe.triggerName)){const Cu=_i.get(Fe.triggerName);Cu.value=go,_i.set(Fe.triggerName,Cu)}}return void nt.destroy()}}const Ji=!h||!this.driver.containsElement(h,Ut),si=le.get(Ut),Wr=Y.get(Ut),Nt=this._buildInstruction(Fe,i,Wr,si,Ji);if(Nt.errors&&Nt.errors.length)return void at.push(Nt);if(Ji)return nt.onStart(()=>fo(Ut,Nt.fromStyles)),nt.onDestroy(()=>Zi(Ut,Nt.toStyles)),void r.push(nt);if(Fe.isFallbackTransition)return nt.onStart(()=>fo(Ut,Nt.fromStyles)),nt.onDestroy(()=>Zi(Ut,Nt.toStyles)),void r.push(nt);const DC=[];Nt.timelines.forEach(En=>{En.stretchStartingKeyframe=!0,this.disabledNodes.has(En.element)||DC.push(En)}),Nt.timelines=DC,i.append(Ut,Nt.timelines),s.push({instruction:Nt,player:nt,element:Ut}),Nt.queriedElements.forEach(En=>ri(a,En,[]).push(nt)),Nt.preStyleProps.forEach((En,go)=>{if(En.size){let _i=l.get(go);_i||l.set(go,_i=new Set),En.forEach((Cu,_g)=>_i.add(_g))}}),Nt.postStyleProps.forEach((En,go)=>{let _i=c.get(go);_i||c.set(go,_i=new Set),En.forEach((Cu,_g)=>_i.add(_g))})});if(at.length){const xe=[];at.forEach(ke=>{xe.push(function OB(n,t){return new Se(3505,!1)}())}),Be.forEach(ke=>ke.destroy()),this.reportError(xe)}const Ht=new Map,Dn=new Map;s.forEach(xe=>{const ke=xe.element;i.has(ke)&&(Dn.set(ke,ke),this._beforeAnimationBuild(xe.player.namespaceId,xe.instruction,Ht))}),r.forEach(xe=>{const ke=xe.element;this._getPreviousPlayers(ke,!1,xe.namespaceId,xe.triggerName,null).forEach(nt=>{ri(Ht,ke,[]).push(nt),nt.destroy()})});const $r=re.filter(xe=>cC(xe,l,c)),kn=new Map;sC(kn,this.driver,be,c,gr).forEach(xe=>{cC(xe,l,c)&&$r.push(xe)});const vr=new Map;R.forEach((xe,ke)=>{sC(vr,this.driver,new Set(xe),l,"!")}),$r.forEach(xe=>{var ke,Fe;const nt=kn.get(xe),Ut=vr.get(xe);kn.set(xe,new Map([...Array.from(null!==(ke=null==nt?void 0:nt.entries())&&void 0!==ke?ke:[]),...Array.from(null!==(Fe=null==Ut?void 0:Ut.entries())&&void 0!==Fe?Fe:[])]))});const br=[],Qi=[],Ms={};s.forEach(xe=>{const{element:ke,player:Fe,instruction:nt}=xe;if(i.has(ke)){if(u.has(ke))return Fe.onDestroy(()=>Zi(ke,nt.toStyles)),Fe.disabled=!0,Fe.overrideTotalTime(nt.totalTime),void r.push(Fe);let Ut=Ms;if(Dn.size>1){let si=ke;const Wr=[];for(;si=si.parentNode;){const Nt=Dn.get(si);if(Nt){Ut=Nt;break}Wr.push(si)}Wr.forEach(Nt=>Dn.set(Nt,Ut))}const Ji=this._buildAnimation(Fe.namespaceId,nt,Ht,o,vr,kn);if(Fe.setRealPlayer(Ji),Ut===Ms)br.push(Fe);else{const si=this.playersByElement.get(Ut);si&&si.length&&(Fe.parentPlayer=jr(si)),r.push(Fe)}}else fo(ke,nt.fromStyles),Fe.onDestroy(()=>Zi(ke,nt.toStyles)),Qi.push(Fe),u.has(ke)&&r.push(Fe)}),Qi.forEach(xe=>{const ke=o.get(xe.element);if(ke&&ke.length){const Fe=jr(ke);xe.setRealPlayer(Fe)}}),r.forEach(xe=>{xe.parentPlayer?xe.syncPlayerEvents(xe.parentPlayer):xe.destroy()});for(let xe=0;xe!Ji.destroyed);Ut.length?N8(this,ke,Ut):this.processLeaveNode(ke)}return re.length=0,br.forEach(xe=>{this.players.push(xe),xe.onDone(()=>{xe.destroy();const ke=this.players.indexOf(xe);this.players.splice(ke,1)}),xe.play()}),br}elementContainsData(t,e){let i=!1;const r=e[gi];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Ya;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,h=ri(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(R=>{const Y=R.getRealPlayer();Y.beforeDestroy&&Y.beforeDestroy(),R.destroy(),h.push(R)})}fo(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,D=e.timelines.map(Y=>{const ee=Y.element;u.add(ee);const re=ee[gi];if(re&&re.removedBeforeQueried)return new Pa(Y.duration,Y.delay);const ue=ee!==l,be=function F8(n){const t=[];return lC(n,t),t}((i.get(ee)||A8).map(Ht=>Ht.getRealPlayer())).filter(Ht=>!!Ht.element&&Ht.element===ee),le=o.get(ee),we=s.get(ee),Be=kE(0,this._normalizer,0,Y.keyframes,le,we),at=this._buildPlayer(Y,Be,be);if(Y.subTimeline&&r&&h.add(ee),ue){const Ht=new fg(t,a,ee);Ht.setRealPlayer(at),c.push(Ht)}return at});c.forEach(Y=>{ri(this.playersByQueriedElement,Y.element,[]).push(Y),Y.onDone(()=>function O8(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,Y.element,Y))}),u.forEach(Y=>mi(Y,zE));const R=jr(D);return R.onDestroy(()=>{u.forEach(Y=>Ts(Y,zE)),Zi(l,e.toStyles)}),h.forEach(Y=>{ri(r,Y,[]).push(R)}),R}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Pa(t.duration,t.delay)}}class fg{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Pa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Gp(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ri(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function bu(n){return n&&1===n.nodeType}function oC(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function sC(n,t,e,i,r){const o=[];e.forEach(l=>o.push(oC(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(h=>{const D=t.computeStyle(c,h,r);u.set(h,D),(!D||0==D.length)&&(c[gi]=I8,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>oC(l,o[a++])),s}function aC(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),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=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function mi(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Ts(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function N8(n,t,e){jr(e).onDone(()=>n.processLeaveNode(t))}function lC(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class wu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new R8(t,e,i),this._timelineEngine=new E8(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=ig(this._driver,o,l,[]);if(l.length)throw function wB(n,t){return new Se(3404,!1)}();a=function v8(n,t,e){return new b8(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=NE(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=NE(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let V8=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Zi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Zi(this._element,this._initialStyles),this._endStyles&&(Zi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(fo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fo(this._element,this._endStyles),this._endStyles=null),Zi(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function pg(n){let t=null;return n.forEach((e,i)=>{(function j8(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class uC{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:YE(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class H8{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return VE(t,e)}getParentElement(t){return Kp(t)}query(t,e,i){return jE(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(R=>R instanceof uC);(function WB(n,t){return 0===n||0===t})(i,r)&&u.forEach(R=>{R.currentSnapshot.forEach((Y,ee)=>c.set(ee,Y))});let h=function HB(n){return n.length?n[0]instanceof Map?n:n.map(t=>$E(t)):[]}(e).map(R=>Ur(R));h=function GB(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,YE(n,a)))}}return t}(t,h,c);const D=function B8(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=pg(t[0]),t.length>1&&(i=pg(t[t.length-1]))):t instanceof Map&&(e=pg(t)),e||i?new V8(n,e,i):null}(t,h);return new uC(t,h,l,D)}}let U8=(()=>{class n extends nD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:bi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?rD(e):e;return dC(this._renderer,null,i,"register",[r]),new z8(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(ae(Ks),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class z8 extends class _F{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new $8(this._id,t,e||{},this._renderer)}}class $8{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return dC(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function dC(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const hC="@.disabled";let W8=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=null==s?void 0:s.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new fC("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new G8(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(ae(Ks),ae(wu),ae(Xe))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class fC{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==hC?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class G8 extends fC{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hC?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function X8(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function q8(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const pC=[{provide:nD,useClass:U8},{provide:lg,useFactory:function K8(){return new g8}},{provide:wu,useClass:(()=>{class n extends wu{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(Zp),ae(lg),ae(ls))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})()},{provide:Ks,useFactory:function Z8(n,t,e){return new W8(n,t,e)},deps:[_c,wu,Xe]}],gg=[{provide:Zp,useFactory:()=>new H8},{provide:dr,useValue:"BrowserAnimations"},...pC],gC=[{provide:Zp,useClass:HE},{provide:dr,useValue:"NoopAnimations"},...pC];let Q8=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?gC:gg}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:gg,imports:[rw]}),n})(),J8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[us,VF,h2,y2,x2,AL,J2,XL,g3,B2,PF]}),n})();const zr=new pe(q),t4={connector:()=>new _e};function mC(n,t=t4){const{connector:e}=t;return qe((i,r)=>{const o=e();Dr(n(function e4(n){return new pe(t=>n.subscribe(t))}(o))).subscribe(r),r.add(i.subscribe(o))})}function _C(n,t){return t?e=>Ta(t.pipe(zt(1),function r4(){return qe((n,t)=>{n.subscribe(new pt(t,q))})}()),e.pipe(_C(n))):mo((e,i)=>n(e,i).pipe(zt(1),function o4(n){return it(()=>n)}(e)))}const Ka="Service workers are disabled or not supported by this browser";class Eu{constructor(t){if(this.serviceWorker=t,t){const i=ms(t,"controllerchange").pipe(it(()=>t.controller)),o=Ta(Pc(()=>bn(t.controller)),i);this.worker=o.pipe(zn(u=>!!u)),this.registration=this.worker.pipe(ja(()=>t.getRegistration()));const c=ms(t,"message").pipe(it(u=>u.data)).pipe(zn(u=>u&&u.type)).pipe(function i4(n){return n?t=>mC(n)(t):t=>function n4(n,t){const e=v(n)?n:()=>n;return v(t)?mC(t,{connector:e}):i=>new ID(i,e)}(new _e)(t)}());c.connect(),this.events=c}else this.worker=this.events=this.registration=function a4(n){return Pc(()=>uD(new Error(n)))}(Ka)}postMessage(t,e){return this.worker.pipe(zt(1),ka(i=>{i.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithOperation(t,e,i){const r=this.waitForOperationCompleted(i),o=this.postMessage(t,e);return Promise.all([o,r]).then(([,s])=>s)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){let e;return e="string"==typeof t?i=>i.type===t:i=>t.includes(i.type),this.events.pipe(zn(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(zt(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(zn(e=>e.nonce===t),zt(1),it(e=>{if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let l4=(()=>{class n{constructor(e){if(this.sw=e,this.subscriptionChanges=new _e,!e.isEnabled)return this.messages=zr,this.notificationClicks=zr,void(this.subscription=zr);this.messages=this.sw.eventsOfType("PUSH").pipe(it(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(it(r=>r.data)),this.pushManager=this.sw.registration.pipe(it(r=>r.pushManager));const i=this.pushManager.pipe(ja(r=>r.getSubscription()));this.subscription=Fi(i,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(e){if(!this.sw.isEnabled)return Promise.reject(new Error(Ka));const i={userVisibleOnly:!0};let r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(r.length));for(let s=0;ss.subscribe(i)),zt(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(zt(1),ja(i=>{if(null===i)throw new Error("Not subscribed to push notifications.");return i.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Ka))}decodeBase64(e){return atob(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(Eu))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),c4=(()=>{class n{constructor(e){if(this.sw=e,!e.isEnabled)return this.versionUpdates=zr,this.available=zr,this.activated=zr,void(this.unrecoverable=zr);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe(zn(i=>"VERSION_READY"===i.type),it(i=>({type:"UPDATE_AVAILABLE",current:i.currentVersion,available:i.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ka));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ka));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}}return n.\u0275fac=function(e){return new(e||n)(ae(Eu))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class mg{}const yC=new Ce("NGSW_REGISTER_SCRIPT");function u4(n,t,e,i){return()=>{if(!Mf(i)||!("serviceWorker"in navigator)||!1===e.enabled)return;let o;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof e.registrationStrategy)o=e.registrationStrategy();else{const[a,...l]=(e.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":o=bn(null);break;case"registerWithDelay":o=vC(+l[0]||0);break;case"registerWhenStable":o=l[0]?Fi(bC(n),vC(+l[0])):bC(n);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${e.registrationStrategy}`)}}n.get(Xe).runOutsideAngular(()=>o.pipe(zt(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:e.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function vC(n){return bn(null).pipe(function s4(n,t=Ec){const e=np(n,t);return _C(()=>e)}(n))}function bC(n){return n.get(ls).isStable.pipe(zn(e=>e))}function d4(n,t){return new Eu(Mf(t)&&!1!==n.enabled?navigator.serviceWorker:void 0)}let h4=(()=>{class n{static register(e,i={}){return{ngModule:n,providers:[{provide:yC,useValue:e},{provide:mg,useValue:i},{provide:Eu,useFactory:d4,deps:[mg,ga]},{provide:Kh,useFactory:u4,deps:[In,yC,mg,ga],multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[l4,c4]}),n})();let f4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n,bootstrap:[J3]}),n.\u0275inj=mt({imports:[rw,Q8,J8,h4.register("ngsw-worker.js",{enabled:true,registrationStrategy:"registerWhenStable:30000"})]}),n})();(function ZR(){a0=!1})(),lk().bootstrapModule(f4).catch(n=>console.error(n))},5343:(oe,ce)=>{"use strict";ce.byteLength=function _(S){var I=b(S),X=I[1];return 3*(I[0]+X)/4-X},ce.toByteArray=function F(S){var I,g,M=b(S),X=M[0],Q=M[1],w=new k(function E(S,I,M){return 3*(I+M)/4-M}(0,X,Q)),B=0,y=Q>0?X-4:X;for(g=0;g>16&255,w[B++]=I>>8&255,w[B++]=255&I;return 2===Q&&(I=v[S.charCodeAt(g)]<<2|v[S.charCodeAt(g+1)]>>4,w[B++]=255&I),1===Q&&(I=v[S.charCodeAt(g)]<<10|v[S.charCodeAt(g+1)]<<4|v[S.charCodeAt(g+2)]>>2,w[B++]=I>>8&255,w[B++]=255&I),w},ce.fromByteArray=function q(S){for(var I,M=S.length,X=M%3,Q=[],w=16383,B=0,y=M-X;By?y:B+w));return 1===X?Q.push(x[(I=S[M-1])>>2]+x[I<<4&63]+"=="):2===X&&Q.push(x[(I=(S[M-2]<<8)+S[M-1])>>10]+x[I>>4&63]+x[I<<2&63]+"="),Q.join("")};for(var x=[],v=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W=0,G=V.length;W0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");return-1===M&&(M=I),[M,M===I?0:4-M%4]}function O(S){return x[S>>18&63]+x[S>>12&63]+x[S>>6&63]+x[63&S]}function J(S,I,M){for(var Q=[],w=I;w{"use strict";var v=x(5343),k=x(8461),V="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ce.Buffer=_,ce.SlowBuffer=function w(C){return+C!=C&&(C=0),_.alloc(+C)},ce.INSPECT_MAX_BYTES=50;var W=2147483647;function b(C){if(C>W)throw new RangeError('The value "'+C+'" is invalid for option "size"');var d=new Uint8Array(C);return Object.setPrototypeOf(d,_.prototype),d}function _(C,d,f){if("number"==typeof C){if("string"==typeof d)throw new TypeError('The "string" argument must be of type string. Received type number');return J(C)}return E(C,d,f)}function E(C,d,f){if("string"==typeof C)return function q(C,d){if(("string"!=typeof d||""===d)&&(d="utf8"),!_.isEncoding(d))throw new TypeError("Unknown encoding: "+d);var f=0|B(C,d),j=b(f),ie=j.write(C,d);return ie!==f&&(j=j.slice(0,ie)),j}(C,d);if(ArrayBuffer.isView(C))return function I(C){if(L(C,Uint8Array)){var d=new Uint8Array(C);return M(d.buffer,d.byteOffset,d.byteLength)}return S(C)}(C);if(null==C)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(L(C,ArrayBuffer)||C&&L(C.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(C,SharedArrayBuffer)||C&&L(C.buffer,SharedArrayBuffer)))return M(C,d,f);if("number"==typeof C)throw new TypeError('The "value" argument must not be of type number. Received type number');var j=C.valueOf&&C.valueOf();if(null!=j&&j!==C)return _.from(j,d,f);var ie=function X(C){if(_.isBuffer(C)){var d=0|Q(C.length),f=b(d);return 0===f.length||C.copy(f,0,0,d),f}return void 0!==C.length?"number"!=typeof C.length||U(C.length)?b(0):S(C):"Buffer"===C.type&&Array.isArray(C.data)?S(C.data):void 0}(C);if(ie)return ie;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof C[Symbol.toPrimitive])return _.from(C[Symbol.toPrimitive]("string"),d,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}function F(C){if("number"!=typeof C)throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function J(C){return F(C),b(C<0?0:0|Q(C))}function S(C){for(var d=C.length<0?0:0|Q(C.length),f=b(d),j=0;j=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return 0|C}function B(C,d){if(_.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||L(C,ArrayBuffer))return C.byteLength;if("string"!=typeof C)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);var f=C.length,j=arguments.length>2&&!0===arguments[2];if(!j&&0===f)return 0;for(var ie=!1;;)switch(d){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return p(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return De(C).length;default:if(ie)return j?-1:p(C).length;d=(""+d).toLowerCase(),ie=!0}}function y(C,d,f){var j=!1;if((void 0===d||d<0)&&(d=0),d>this.length||((void 0===f||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(d>>>=0))return"";for(C||(C="utf8");;)switch(C){case"hex":return _e(this,d,f);case"utf8":case"utf-8":return pe(this,d,f);case"ascii":return Ae(this,d,f);case"latin1":case"binary":return Et(this,d,f);case"base64":return he(this,d,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ln(this,d,f);default:if(j)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),j=!0}}function g(C,d,f){var j=C[d];C[d]=C[f],C[f]=j}function m(C,d,f,j,ie){if(0===C.length)return-1;if("string"==typeof f?(j=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),U(f=+f)&&(f=ie?0:C.length-1),f<0&&(f=C.length+f),f>=C.length){if(ie)return-1;f=C.length-1}else if(f<0){if(!ie)return-1;f=0}if("string"==typeof d&&(d=_.from(d,j)),_.isBuffer(d))return 0===d.length?-1:T(C,d,f,j,ie);if("number"==typeof d)return d&=255,"function"==typeof Uint8Array.prototype.indexOf?ie?Uint8Array.prototype.indexOf.call(C,d,f):Uint8Array.prototype.lastIndexOf.call(C,d,f):T(C,[d],f,j,ie);throw new TypeError("val must be string, number or Buffer")}function T(C,d,f,j,ie){var yt,de=1,ve=C.length,rt=d.length;if(void 0!==j&&("ucs2"===(j=String(j).toLowerCase())||"ucs-2"===j||"utf16le"===j||"utf-16le"===j)){if(C.length<2||d.length<2)return-1;de=2,ve/=2,rt/=2,f/=2}function ct(ki,Ni){return 1===de?ki[Ni]:ki.readUInt16BE(Ni*de)}if(ie){var Ft=-1;for(yt=f;ytve&&(f=ve-rt),yt=f;yt>=0;yt--){for(var Ct=!0,yi=0;yiie&&(j=ie):j=ie;var de=d.length;j>de/2&&(j=de/2);for(var ve=0;ve>8,de.push(f%256),de.push(j);return de}(d,C.length-f),C,f,j)}function he(C,d,f){return v.fromByteArray(0===d&&f===C.length?C:C.slice(d,f))}function pe(C,d,f){f=Math.min(C.length,f);for(var j=[],ie=d;ie239?4:de>223?3:de>191?2:1;if(ie+rt<=f)switch(rt){case 1:de<128&&(ve=de);break;case 2:128==(192&(ct=C[ie+1]))&&(Ct=(31&de)<<6|63&ct)>127&&(ve=Ct);break;case 3:yt=C[ie+2],128==(192&(ct=C[ie+1]))&&128==(192&yt)&&(Ct=(15&de)<<12|(63&ct)<<6|63&yt)>2047&&(Ct<55296||Ct>57343)&&(ve=Ct);break;case 4:yt=C[ie+2],Ft=C[ie+3],128==(192&(ct=C[ie+1]))&&128==(192&yt)&&128==(192&Ft)&&(Ct=(15&de)<<18|(63&ct)<<12|(63&yt)<<6|63&Ft)>65535&&Ct<1114112&&(ve=Ct)}null===ve?(ve=65533,rt=1):ve>65535&&(j.push((ve-=65536)>>>10&1023|55296),ve=56320|1023&ve),j.push(ve),ie+=rt}return function Je(C){var d=C.length;if(d<=4096)return String.fromCharCode.apply(String,C);for(var f="",j=0;jj)&&(f=j);for(var ie="",de=d;def)throw new RangeError("Trying to access beyond buffer length")}function qe(C,d,f,j,ie,de){if(!_.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>ie||dC.length)throw new RangeError("Index out of range")}function pt(C,d,f,j,ie,de){if(f+j>C.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function it(C,d,f,j,ie){return d=+d,f>>>=0,ie||pt(C,0,f,4),k.write(C,d,f,j,23,4),f+4}function cn(C,d,f,j,ie){return d=+d,f>>>=0,ie||pt(C,0,f,8),k.write(C,d,f,j,52,8),f+8}ce.kMaxLength=W,!(_.TYPED_ARRAY_SUPPORT=function G(){try{var C=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(C,d),42===C.foo()}catch(f){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.buffer}}),Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.byteOffset}}),_.poolSize=8192,_.from=function(C,d,f){return E(C,d,f)},Object.setPrototypeOf(_.prototype,Uint8Array.prototype),Object.setPrototypeOf(_,Uint8Array),_.alloc=function(C,d,f){return function O(C,d,f){return F(C),C<=0?b(C):void 0!==d?"string"==typeof f?b(C).fill(d,f):b(C).fill(d):b(C)}(C,d,f)},_.allocUnsafe=function(C){return J(C)},_.allocUnsafeSlow=function(C){return J(C)},_.isBuffer=function(d){return null!=d&&!0===d._isBuffer&&d!==_.prototype},_.compare=function(d,f){if(L(d,Uint8Array)&&(d=_.from(d,d.offset,d.byteLength)),L(f,Uint8Array)&&(f=_.from(f,f.offset,f.byteLength)),!_.isBuffer(d)||!_.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===f)return 0;for(var j=d.length,ie=f.length,de=0,ve=Math.min(j,ie);deie.length?_.from(ve).copy(ie,de):Uint8Array.prototype.set.call(ie,ve,de);else{if(!_.isBuffer(ve))throw new TypeError('"list" argument must be an Array of Buffers');ve.copy(ie,de)}de+=ve.length}return ie},_.byteLength=B,_.prototype._isBuffer=!0,_.prototype.swap16=function(){var d=this.length;if(d%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;ff&&(d+=" ... "),""},V&&(_.prototype[V]=_.prototype.inspect),_.prototype.compare=function(d,f,j,ie,de){if(L(d,Uint8Array)&&(d=_.from(d,d.offset,d.byteLength)),!_.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(void 0===f&&(f=0),void 0===j&&(j=d?d.length:0),void 0===ie&&(ie=0),void 0===de&&(de=this.length),f<0||j>d.length||ie<0||de>this.length)throw new RangeError("out of range index");if(ie>=de&&f>=j)return 0;if(ie>=de)return-1;if(f>=j)return 1;if(this===d)return 0;for(var ve=(de>>>=0)-(ie>>>=0),rt=(j>>>=0)-(f>>>=0),ct=Math.min(ve,rt),yt=this.slice(ie,de),Ft=d.slice(f,j),Ct=0;Ct>>=0,isFinite(j)?(j>>>=0,void 0===ie&&(ie="utf8")):(ie=j,j=void 0)}var de=this.length-f;if((void 0===j||j>de)&&(j=de),d.length>0&&(j<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");for(var ve=!1;;)switch(ie){case"hex":return K(this,d,f,j);case"utf8":case"utf-8":return P(this,d,f,j);case"ascii":case"latin1":case"binary":return ne(this,d,f,j);case"base64":return H(this,d,f,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,d,f,j);default:if(ve)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),ve=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},_.prototype.slice=function(d,f){var j=this.length;(d=~~d)<0?(d+=j)<0&&(d=0):d>j&&(d=j),(f=void 0===f?j:~~f)<0?(f+=j)<0&&(f=0):f>j&&(f=j),f>>=0,f>>>=0,j||Ze(d,f,this.length);for(var ie=this[d],de=1,ve=0;++ve>>=0,f>>>=0,j||Ze(d,f,this.length);for(var ie=this[d+--f],de=1;f>0&&(de*=256);)ie+=this[d+--f]*de;return ie},_.prototype.readUint8=_.prototype.readUInt8=function(d,f){return d>>>=0,f||Ze(d,1,this.length),this[d]},_.prototype.readUint16LE=_.prototype.readUInt16LE=function(d,f){return d>>>=0,f||Ze(d,2,this.length),this[d]|this[d+1]<<8},_.prototype.readUint16BE=_.prototype.readUInt16BE=function(d,f){return d>>>=0,f||Ze(d,2,this.length),this[d]<<8|this[d+1]},_.prototype.readUint32LE=_.prototype.readUInt32LE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+16777216*this[d+3]},_.prototype.readUint32BE=_.prototype.readUInt32BE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),16777216*this[d]+(this[d+1]<<16|this[d+2]<<8|this[d+3])},_.prototype.readIntLE=function(d,f,j){d>>>=0,f>>>=0,j||Ze(d,f,this.length);for(var ie=this[d],de=1,ve=0;++ve=(de*=128)&&(ie-=Math.pow(2,8*f)),ie},_.prototype.readIntBE=function(d,f,j){d>>>=0,f>>>=0,j||Ze(d,f,this.length);for(var ie=f,de=1,ve=this[d+--ie];ie>0&&(de*=256);)ve+=this[d+--ie]*de;return ve>=(de*=128)&&(ve-=Math.pow(2,8*f)),ve},_.prototype.readInt8=function(d,f){return d>>>=0,f||Ze(d,1,this.length),128&this[d]?-1*(255-this[d]+1):this[d]},_.prototype.readInt16LE=function(d,f){d>>>=0,f||Ze(d,2,this.length);var j=this[d]|this[d+1]<<8;return 32768&j?4294901760|j:j},_.prototype.readInt16BE=function(d,f){d>>>=0,f||Ze(d,2,this.length);var j=this[d+1]|this[d]<<8;return 32768&j?4294901760|j:j},_.prototype.readInt32LE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},_.prototype.readInt32BE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},_.prototype.readFloatLE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),k.read(this,d,!0,23,4)},_.prototype.readFloatBE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),k.read(this,d,!1,23,4)},_.prototype.readDoubleLE=function(d,f){return d>>>=0,f||Ze(d,8,this.length),k.read(this,d,!0,52,8)},_.prototype.readDoubleBE=function(d,f){return d>>>=0,f||Ze(d,8,this.length),k.read(this,d,!1,52,8)},_.prototype.writeUintLE=_.prototype.writeUIntLE=function(d,f,j,ie){d=+d,f>>>=0,j>>>=0,ie||qe(this,d,f,j,Math.pow(2,8*j)-1,0);var ve=1,rt=0;for(this[f]=255&d;++rt>>=0,j>>>=0,ie||qe(this,d,f,j,Math.pow(2,8*j)-1,0);var ve=j-1,rt=1;for(this[f+ve]=255&d;--ve>=0&&(rt*=256);)this[f+ve]=d/rt&255;return f+j},_.prototype.writeUint8=_.prototype.writeUInt8=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,1,255,0),this[f]=255&d,f+1},_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,2,65535,0),this[f]=255&d,this[f+1]=d>>>8,f+2},_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,2,65535,0),this[f]=d>>>8,this[f+1]=255&d,f+2},_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,4,4294967295,0),this[f+3]=d>>>24,this[f+2]=d>>>16,this[f+1]=d>>>8,this[f]=255&d,f+4},_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,4,4294967295,0),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=255&d,f+4},_.prototype.writeIntLE=function(d,f,j,ie){if(d=+d,f>>>=0,!ie){var de=Math.pow(2,8*j-1);qe(this,d,f,j,de-1,-de)}var ve=0,rt=1,ct=0;for(this[f]=255&d;++ve>0)-ct&255;return f+j},_.prototype.writeIntBE=function(d,f,j,ie){if(d=+d,f>>>=0,!ie){var de=Math.pow(2,8*j-1);qe(this,d,f,j,de-1,-de)}var ve=j-1,rt=1,ct=0;for(this[f+ve]=255&d;--ve>=0&&(rt*=256);)d<0&&0===ct&&0!==this[f+ve+1]&&(ct=1),this[f+ve]=(d/rt>>0)-ct&255;return f+j},_.prototype.writeInt8=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,1,127,-128),d<0&&(d=255+d+1),this[f]=255&d,f+1},_.prototype.writeInt16LE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,2,32767,-32768),this[f]=255&d,this[f+1]=d>>>8,f+2},_.prototype.writeInt16BE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,2,32767,-32768),this[f]=d>>>8,this[f+1]=255&d,f+2},_.prototype.writeInt32LE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,4,2147483647,-2147483648),this[f]=255&d,this[f+1]=d>>>8,this[f+2]=d>>>16,this[f+3]=d>>>24,f+4},_.prototype.writeInt32BE=function(d,f,j){return d=+d,f>>>=0,j||qe(this,d,f,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=255&d,f+4},_.prototype.writeFloatLE=function(d,f,j){return it(this,d,f,!0,j)},_.prototype.writeFloatBE=function(d,f,j){return it(this,d,f,!1,j)},_.prototype.writeDoubleLE=function(d,f,j){return cn(this,d,f,!0,j)},_.prototype.writeDoubleBE=function(d,f,j){return cn(this,d,f,!1,j)},_.prototype.copy=function(d,f,j,ie){if(!_.isBuffer(d))throw new TypeError("argument should be a Buffer");if(j||(j=0),!ie&&0!==ie&&(ie=this.length),f>=d.length&&(f=d.length),f||(f=0),ie>0&&ie=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),d.length-f>>=0,j=void 0===j?this.length:j>>>0,d||(d=0),"number"==typeof d)for(ve=f;ve55295&&f<57344){if(!ie){if(f>56319){(d-=3)>-1&&de.push(239,191,189);continue}if(ve+1===j){(d-=3)>-1&&de.push(239,191,189);continue}ie=f;continue}if(f<56320){(d-=3)>-1&&de.push(239,191,189),ie=f;continue}f=65536+(ie-55296<<10|f-56320)}else ie&&(d-=3)>-1&&de.push(239,191,189);if(ie=null,f<128){if((d-=1)<0)break;de.push(f)}else if(f<2048){if((d-=2)<0)break;de.push(f>>6|192,63&f|128)}else if(f<65536){if((d-=3)<0)break;de.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((d-=4)<0)break;de.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return de}function De(C){return v.toByteArray(function N(C){if((C=(C=C.split("=")[0]).trim().replace(wr,"")).length<2)return"";for(;C.length%4!=0;)C+="=";return C}(C))}function Re(C,d,f,j){for(var ie=0;ie=d.length||ie>=C.length);++ie)d[ie+f]=C[ie];return ie}function L(C,d){return C instanceof d||null!=C&&null!=C.constructor&&null!=C.constructor.name&&C.constructor.name===d.name}function U(C){return C!=C}var fe=function(){for(var C="0123456789abcdef",d=new Array(256),f=0;f<16;++f)for(var j=16*f,ie=0;ie<16;++ie)d[j+ie]=C[f]+C[ie];return d}()},9069:oe=>{"use strict";var v,ce="object"==typeof Reflect?Reflect:null,x=ce&&"function"==typeof ce.apply?ce.apply:function(y,g,m){return Function.prototype.apply.call(y,g,m)};v=ce&&"function"==typeof ce.ownKeys?ce.ownKeys:Object.getOwnPropertySymbols?function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:function(y){return Object.getOwnPropertyNames(y)};var V=Number.isNaN||function(y){return y!=y};function W(){W.init.call(this)}oe.exports=W,oe.exports.once=function X(B,y){return new Promise(function(g,m){function T(P){B.removeListener(y,K),m(P)}function K(){"function"==typeof B.removeListener&&B.removeListener("error",T),g([].slice.call(arguments))}w(B,y,K,{once:!0}),"error"!==y&&function Q(B,y,g){"function"==typeof B.on&&w(B,"error",y,g)}(B,T,{once:!0})})},W.EventEmitter=W,W.prototype._events=void 0,W.prototype._eventsCount=0,W.prototype._maxListeners=void 0;var G=10;function b(B){if("function"!=typeof B)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}function _(B){return void 0===B._maxListeners?W.defaultMaxListeners:B._maxListeners}function E(B,y,g,m){var T,K,P;if(b(g),void 0===(K=B._events)?(K=B._events=Object.create(null),B._eventsCount=0):(void 0!==K.newListener&&(B.emit("newListener",y,g.listener?g.listener:g),K=B._events),P=K[y]),void 0===P)P=K[y]=g,++B._eventsCount;else if("function"==typeof P?P=K[y]=m?[g,P]:[P,g]:m?P.unshift(g):P.push(g),(T=_(B))>0&&P.length>T&&!P.warned){P.warned=!0;var ne=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(y)+" listeners added. Use emitter.setMaxListeners() to increase limit");ne.name="MaxListenersExceededWarning",ne.emitter=B,ne.type=y,ne.count=P.length,function k(B){console&&console.warn&&console.warn(B)}(ne)}return B}function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function O(B,y,g){var m={fired:!1,wrapFn:void 0,target:B,type:y,listener:g},T=F.bind(m);return T.listener=g,m.wrapFn=T,T}function J(B,y,g){var m=B._events;if(void 0===m)return[];var T=m[y];return void 0===T?[]:"function"==typeof T?g?[T.listener||T]:[T]:g?function M(B){for(var y=new Array(B.length),g=0;g0&&(P=g[0]),P instanceof Error)throw P;var ne=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw ne.context=P,ne}var H=K[y];if(void 0===H)return!1;if("function"==typeof H)x(H,this,g);else{var se=H.length,he=S(H,se);for(m=0;m=0;P--)if(m[P]===g||m[P].listener===g){ne=m[P].listener,K=P;break}if(K<0)return this;0===K?m.shift():function I(B,y){for(;y+1=0;T--)this.removeListener(y,g[T]);return this},W.prototype.listeners=function(y){return J(this,y,!0)},W.prototype.rawListeners=function(y){return J(this,y,!1)},W.listenerCount=function(B,y){return"function"==typeof B.listenerCount?B.listenerCount(y):q.call(B,y)},W.prototype.listenerCount=q,W.prototype.eventNames=function(){return this._eventsCount>0?v(this._events):[]}},8461:(oe,ce)=>{ce.read=function(x,v,k,V,W){var G,b,_=8*W-V-1,E=(1<<_)-1,F=E>>1,O=-7,J=k?W-1:0,q=k?-1:1,S=x[v+J];for(J+=q,G=S&(1<<-O)-1,S>>=-O,O+=_;O>0;G=256*G+x[v+J],J+=q,O-=8);for(b=G&(1<<-O)-1,G>>=-O,O+=V;O>0;b=256*b+x[v+J],J+=q,O-=8);if(0===G)G=1-F;else{if(G===E)return b?NaN:1/0*(S?-1:1);b+=Math.pow(2,V),G-=F}return(S?-1:1)*b*Math.pow(2,G-V)},ce.write=function(x,v,k,V,W,G){var b,_,E,F=8*G-W-1,O=(1<>1,q=23===W?Math.pow(2,-24)-Math.pow(2,-77):0,S=V?0:G-1,I=V?1:-1,M=v<0||0===v&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(_=isNaN(v)?1:0,b=O):(b=Math.floor(Math.log(v)/Math.LN2),v*(E=Math.pow(2,-b))<1&&(b--,E*=2),(v+=b+J>=1?q/E:q*Math.pow(2,1-J))*E>=2&&(b++,E/=2),b+J>=O?(_=0,b=O):b+J>=1?(_=(v*E-1)*Math.pow(2,W),b+=J):(_=v*Math.pow(2,J-1)*Math.pow(2,W),b=0));W>=8;x[k+S]=255&_,S+=I,_/=256,W-=8);for(b=b<0;x[k+S]=255&b,S+=I,b/=256,F-=8);x[k+S-I]|=128*M}},3894:oe=>{oe.exports="function"==typeof Object.create?function(x,v){v&&(x.super_=v,x.prototype=Object.create(v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:function(x,v){if(v){x.super_=v;var k=function(){};k.prototype=v.prototype,x.prototype=new k,x.prototype.constructor=x}}},891:oe=>{"use strict";var x={};function v(b,_,E){E||(E=Error);var O=function(J){function q(S,I,M){return J.call(this,function F(J,q,S){return"string"==typeof _?_:_(J,q,S)}(S,I,M))||this}return function ce(b,_){b.prototype=Object.create(_.prototype),b.prototype.constructor=b,b.__proto__=_}(q,J),q}(E);O.prototype.name=E.name,O.prototype.code=b,x[b]=O}function k(b,_){if(Array.isArray(b)){var E=b.length;return b=b.map(function(F){return String(F)}),E>2?"one of ".concat(_," ").concat(b.slice(0,E-1).join(", "),", or ")+b[E-1]:2===E?"one of ".concat(_," ").concat(b[0]," or ").concat(b[1]):"of ".concat(_," ").concat(b[0])}return"of ".concat(_," ").concat(String(b))}v("ERR_INVALID_OPT_VALUE",function(b,_){return'The value "'+_+'" is invalid for option "'+b+'"'},TypeError),v("ERR_INVALID_ARG_TYPE",function(b,_,E){var F,O;if("string"==typeof _&&function V(b,_,E){return b.substr(!E||E<0?0:+E,_.length)===_}(_,"not ")?(F="must not be",_=_.replace(/^not /,"")):F="must be",function W(b,_,E){return(void 0===E||E>b.length)&&(E=b.length),b.substring(E-_.length,E)===_}(b," argument"))O="The ".concat(b," ").concat(F," ").concat(k(_,"type"));else{var J=function G(b,_,E){return"number"!=typeof E&&(E=0),!(E+_.length>b.length)&&-1!==b.indexOf(_,E)}(b,".")?"property":"argument";O='The "'.concat(b,'" ').concat(J," ").concat(F," ").concat(k(_,"type"))}return O+". Received type ".concat(typeof E)},TypeError),v("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),v("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),v("ERR_STREAM_PREMATURE_CLOSE","Premature close"),v("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),v("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),v("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),v("ERR_STREAM_WRITE_AFTER_END","write after end"),v("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),v("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),v("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),oe.exports.q=x},1339:(oe,ce,x)=>{"use strict";var v=Object.keys||function(O){var J=[];for(var q in O)J.push(q);return J};oe.exports=_;var k=x(3154),V=x(520);x(3894)(_,k);for(var W=v(V.prototype),G=0;G{"use strict";oe.exports=k;var v=x(6025);function k(V){if(!(this instanceof k))return new k(V);v.call(this,V)}x(3894)(k,v),k.prototype._transform=function(V,W,G){G(null,V)}},3154:(oe,ce,x)=>{"use strict";var v;oe.exports=H,H.ReadableState=ne,x(9069);var O,V=function(U,fe){return U.listeners(fe).length},W=x(4970),G=x(3172).Buffer,b=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},F=x(4616);O=F&&F.debuglog?F.debuglog("stream"):function(){};var y,g,m,J=x(5019),q=x(1920),I=x(7102).getHighWaterMark,M=x(891).q,X=M.ERR_INVALID_ARG_TYPE,Q=M.ERR_STREAM_PUSH_AFTER_EOF,w=M.ERR_METHOD_NOT_IMPLEMENTED,B=M.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;x(3894)(H,W);var T=q.errorOrDestroy,K=["error","close","destroy","pause","resume"];function ne(L,U,fe){v=v||x(1339),"boolean"!=typeof fe&&(fe=U instanceof v),this.objectMode=!!(L=L||{}).objectMode,fe&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=I(this,L,"readableHighWaterMark",fe),this.buffer=new J,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==L.emitClose,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(y||(y=x(3054).s),this.decoder=new y(L.encoding),this.encoding=L.encoding)}function H(L){if(v=v||x(1339),!(this instanceof H))return new H(L);this._readableState=new ne(L,this,this instanceof v),this.readable=!0,L&&("function"==typeof L.read&&(this._read=L.read),"function"==typeof L.destroy&&(this._destroy=L.destroy)),W.call(this)}function se(L,U,fe,C,d){O("readableAddChunk",U);var j,f=L._readableState;if(null===U)f.reading=!1,function Et(L,U){if(O("onEofChunk"),!U.ended){if(U.decoder){var fe=U.decoder.end();fe&&fe.length&&(U.buffer.push(fe),U.length+=U.objectMode?1:fe.length)}U.ended=!0,U.sync?_e(L):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,ln(L)))}}(L,f);else if(d||(j=function pe(L,U){var fe;return!function E(L){return G.isBuffer(L)||L instanceof b}(U)&&"string"!=typeof U&&void 0!==U&&!L.objectMode&&(fe=new X("chunk",["string","Buffer","Uint8Array"],U)),fe}(f,U)),j)T(L,j);else if(f.objectMode||U&&U.length>0)if("string"!=typeof U&&!f.objectMode&&Object.getPrototypeOf(U)!==G.prototype&&(U=function _(L){return G.from(L)}(U)),C)f.endEmitted?T(L,new B):he(L,f,U,!0);else if(f.ended)T(L,new Q);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!fe?(U=f.decoder.write(U),f.objectMode||0!==U.length?he(L,f,U,!1):Ze(L,f)):he(L,f,U,!1)}else C||(f.reading=!1,Ze(L,f));return!f.ended&&(f.lengthU.highWaterMark&&(U.highWaterMark=function Je(L){return L>=Le?L=Le:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}(L)),L<=U.length?L:U.ended?U.length:(U.needReadable=!0,0))}function _e(L){var U=L._readableState;O("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(O("emitReadable",U.flowing),U.emittedReadable=!0,process.nextTick(ln,L))}function ln(L){var U=L._readableState;O("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(L.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,p(L)}function Ze(L,U){U.readingMore||(U.readingMore=!0,process.nextTick(qe,L,U))}function qe(L,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:L.listenerCount("data")>0&&L.resume()}function cn(L){O("readable nexttick read 0"),L.read(0)}function N(L,U){O("resume",U.reading),U.reading||L.read(0),U.resumeScheduled=!1,L.emit("resume"),p(L),U.flowing&&!U.reading&&L.read(0)}function p(L){var U=L._readableState;for(O("flow",U.flowing);U.flowing&&null!==L.read(););}function z(L,U){return 0===U.length?null:(U.objectMode?fe=U.buffer.shift():!L||L>=U.length?(fe=U.decoder?U.buffer.join(""):1===U.buffer.length?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):fe=U.buffer.consume(L,U.decoder),fe);var fe}function $(L){var U=L._readableState;O("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,process.nextTick(De,U,L))}function De(L,U){if(O("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&0===L.length&&(L.endEmitted=!0,U.readable=!1,U.emit("end"),L.autoDestroy)){var fe=U._writableState;(!fe||fe.autoDestroy&&fe.finished)&&U.destroy()}}function Re(L,U){for(var fe=0,C=L.length;fe=U.highWaterMark:U.length>0)||U.ended))return O("read: emitReadable",U.length,U.ended),0===U.length&&U.ended?$(this):_e(this),null;if(0===(L=Ae(L,U))&&U.ended)return 0===U.length&&$(this),null;var d,C=U.needReadable;return O("need readable",C),(0===U.length||U.length-L0?z(L,U):null)?(U.needReadable=U.length<=U.highWaterMark,L=0):(U.length-=L,U.awaitDrain=0),0===U.length&&(U.ended||(U.needReadable=!0),fe!==L&&U.ended&&$(this)),null!==d&&this.emit("data",d),d},H.prototype._read=function(L){T(this,new w("_read()"))},H.prototype.pipe=function(L,U){var fe=this,C=this._readableState;switch(C.pipesCount){case 0:C.pipes=L;break;case 1:C.pipes=[C.pipes,L];break;default:C.pipes.push(L)}C.pipesCount+=1,O("pipe count=%d opts=%j",C.pipesCount,U);var f=U&&!1===U.end||L===process.stdout||L===process.stderr?yi:ie;function ie(){O("onend"),L.end()}C.endEmitted?process.nextTick(f):fe.once("end",f),L.on("unpipe",function j(ki,Ni){O("onunpipe"),ki===fe&&Ni&&!1===Ni.hasUnpiped&&(Ni.hasUnpiped=!0,function rt(){O("cleanup"),L.removeListener("close",Ft),L.removeListener("finish",Ct),L.removeListener("drain",de),L.removeListener("error",yt),L.removeListener("unpipe",j),fe.removeListener("end",ie),fe.removeListener("end",yi),fe.removeListener("data",ct),ve=!0,C.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&de()}())});var de=function pt(L){return function(){var fe=L._readableState;O("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,0===fe.awaitDrain&&V(L,"data")&&(fe.flowing=!0,p(L))}}(fe);L.on("drain",de);var ve=!1;function ct(ki){O("ondata");var Ni=L.write(ki);O("dest.write",Ni),!1===Ni&&((1===C.pipesCount&&C.pipes===L||C.pipesCount>1&&-1!==Re(C.pipes,L))&&!ve&&(O("false write response, pause",C.awaitDrain),C.awaitDrain++),fe.pause())}function yt(ki){O("onerror",ki),yi(),L.removeListener("error",yt),0===V(L,"error")&&T(L,ki)}function Ft(){L.removeListener("finish",Ct),yi()}function Ct(){O("onfinish"),L.removeListener("close",Ft),yi()}function yi(){O("unpipe"),fe.unpipe(L)}return fe.on("data",ct),function P(L,U,fe){if("function"==typeof L.prependListener)return L.prependListener(U,fe);L._events&&L._events[U]?Array.isArray(L._events[U])?L._events[U].unshift(fe):L._events[U]=[fe,L._events[U]]:L.on(U,fe)}(L,"error",yt),L.once("close",Ft),L.once("finish",Ct),L.emit("pipe",fe),C.flowing||(O("pipe resume"),fe.resume()),L},H.prototype.unpipe=function(L){var U=this._readableState,fe={hasUnpiped:!1};if(0===U.pipesCount)return this;if(1===U.pipesCount)return L&&L!==U.pipes||(L||(L=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,L&&L.emit("unpipe",this,fe)),this;if(!L){var C=U.pipes,d=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var f=0;f0,!1!==C.flowing&&this.resume()):"readable"===L&&!C.endEmitted&&!C.readableListening&&(C.readableListening=C.needReadable=!0,C.flowing=!1,C.emittedReadable=!1,O("on readable",C.length,C.reading),C.length?_e(this):C.reading||process.nextTick(cn,this)),fe},H.prototype.removeListener=function(L,U){var fe=W.prototype.removeListener.call(this,L,U);return"readable"===L&&process.nextTick(it,this),fe},H.prototype.removeAllListeners=function(L){var U=W.prototype.removeAllListeners.apply(this,arguments);return("readable"===L||void 0===L)&&process.nextTick(it,this),U},H.prototype.resume=function(){var L=this._readableState;return L.flowing||(O("resume"),L.flowing=!L.readableListening,function wr(L,U){U.resumeScheduled||(U.resumeScheduled=!0,process.nextTick(N,L,U))}(this,L)),L.paused=!1,this},H.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},H.prototype.wrap=function(L){var U=this,fe=this._readableState,C=!1;for(var d in L.on("end",function(){if(O("wrapped end"),fe.decoder&&!fe.ended){var j=fe.decoder.end();j&&j.length&&U.push(j)}U.push(null)}),L.on("data",function(j){O("wrapped data"),fe.decoder&&(j=fe.decoder.write(j)),fe.objectMode&&null==j||!(fe.objectMode||j&&j.length)||U.push(j)||(C=!0,L.pause())}),L)void 0===this[d]&&"function"==typeof L[d]&&(this[d]=function(ie){return function(){return L[ie].apply(L,arguments)}}(d));for(var f=0;f{"use strict";oe.exports=E;var v=x(891).q,k=v.ERR_METHOD_NOT_IMPLEMENTED,V=v.ERR_MULTIPLE_CALLBACK,W=v.ERR_TRANSFORM_ALREADY_TRANSFORMING,G=v.ERR_TRANSFORM_WITH_LENGTH_0,b=x(1339);function _(J,q){var S=this._transformState;S.transforming=!1;var I=S.writecb;if(null===I)return this.emit("error",new V);S.writechunk=null,S.writecb=null,null!=q&&this.push(q),I(J);var M=this._readableState;M.reading=!1,(M.needReadable||M.length{"use strict";function k(p){var z=this;this.next=null,this.entry=null,this.finish=function(){!function N(p,z,$){var De=p.entry;for(p.entry=null;De;){var Re=De.callback;z.pendingcb--,Re($),De=De.next}z.corkedRequestsFree.next=p}(z,p)}}var V;oe.exports=ne,ne.WritableState=K;var P,W={deprecate:x(3532)},G=x(4970),b=x(3172).Buffer,_=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},O=x(1920),q=x(7102).getHighWaterMark,S=x(891).q,I=S.ERR_INVALID_ARG_TYPE,M=S.ERR_METHOD_NOT_IMPLEMENTED,X=S.ERR_MULTIPLE_CALLBACK,Q=S.ERR_STREAM_CANNOT_PIPE,w=S.ERR_STREAM_DESTROYED,B=S.ERR_STREAM_NULL_VALUES,y=S.ERR_STREAM_WRITE_AFTER_END,g=S.ERR_UNKNOWN_ENCODING,m=O.errorOrDestroy;function T(){}function K(p,z,$){V=V||x(1339),"boolean"!=typeof $&&($=z instanceof V),this.objectMode=!!(p=p||{}).objectMode,$&&(this.objectMode=this.objectMode||!!p.writableObjectMode),this.highWaterMark=q(this,p,"writableHighWaterMark",$),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===p.decodeStrings),this.defaultEncoding=p.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Re){!function Et(p,z){var $=p._writableState,De=$.sync,Re=$.writecb;if("function"!=typeof Re)throw new X;if(function Ae(p){p.writing=!1,p.writecb=null,p.length-=p.writelen,p.writelen=0}($),z)!function Je(p,z,$,De,Re){--z.pendingcb,$?(process.nextTick(Re,De),process.nextTick(cn,p,z),p._writableState.errorEmitted=!0,m(p,De)):(Re(De),p._writableState.errorEmitted=!0,m(p,De),cn(p,z))}(p,$,De,z,Re);else{var L=qe($)||p.destroyed;!L&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&Ze(p,$),De?process.nextTick(_e,p,$,L,Re):_e(p,$,L,Re)}}(z,Re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==p.emitClose,this.autoDestroy=!!p.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new k(this)}function ne(p){var z=this instanceof(V=V||x(1339));if(!z&&!P.call(ne,this))return new ne(p);this._writableState=new K(p,this,z),this.writable=!0,p&&("function"==typeof p.write&&(this._write=p.write),"function"==typeof p.writev&&(this._writev=p.writev),"function"==typeof p.destroy&&(this._destroy=p.destroy),"function"==typeof p.final&&(this._final=p.final)),G.call(this)}function Le(p,z,$,De,Re,L,U){z.writelen=De,z.writecb=U,z.writing=!0,z.sync=!0,z.destroyed?z.onwrite(new w("write")):$?p._writev(Re,z.onwrite):p._write(Re,L,z.onwrite),z.sync=!1}function _e(p,z,$,De){$||function ln(p,z){0===z.length&&z.needDrain&&(z.needDrain=!1,p.emit("drain"))}(p,z),z.pendingcb--,De(),cn(p,z)}function Ze(p,z){z.bufferProcessing=!0;var $=z.bufferedRequest;if(p._writev&&$&&$.next){var Re=new Array(z.bufferedRequestCount),L=z.corkedRequestsFree;L.entry=$;for(var U=0,fe=!0;$;)Re[U]=$,$.isBuf||(fe=!1),$=$.next,U+=1;Re.allBuffers=fe,Le(p,z,!0,z.length,Re,"",L.finish),z.pendingcb++,z.lastBufferedRequest=null,L.next?(z.corkedRequestsFree=L.next,L.next=null):z.corkedRequestsFree=new k(z),z.bufferedRequestCount=0}else{for(;$;){var C=$.chunk;if(Le(p,z,!1,z.objectMode?1:C.length,C,$.encoding,$.callback),$=$.next,z.bufferedRequestCount--,z.writing)break}null===$&&(z.lastBufferedRequest=null)}z.bufferedRequest=$,z.bufferProcessing=!1}function qe(p){return p.ending&&0===p.length&&null===p.bufferedRequest&&!p.finished&&!p.writing}function pt(p,z){p._final(function($){z.pendingcb--,$&&m(p,$),z.prefinished=!0,p.emit("prefinish"),cn(p,z)})}function cn(p,z){var $=qe(z);if($&&(function it(p,z){!z.prefinished&&!z.finalCalled&&("function"!=typeof p._final||z.destroyed?(z.prefinished=!0,p.emit("prefinish")):(z.pendingcb++,z.finalCalled=!0,process.nextTick(pt,p,z)))}(p,z),0===z.pendingcb&&(z.finished=!0,p.emit("finish"),z.autoDestroy))){var De=p._readableState;(!De||De.autoDestroy&&De.endEmitted)&&p.destroy()}return $}x(3894)(ne,G),K.prototype.getBuffer=function(){for(var z=this.bufferedRequest,$=[];z;)$.push(z),z=z.next;return $},function(){try{Object.defineProperty(K.prototype,"buffer",{get:W.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(p){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(ne,Symbol.hasInstance,{value:function(z){return!!P.call(this,z)||this===ne&&z&&z._writableState instanceof K}})):P=function(z){return z instanceof this},ne.prototype.pipe=function(){m(this,new Q)},ne.prototype.write=function(p,z,$){var De=this._writableState,Re=!1,L=!De.objectMode&&function F(p){return b.isBuffer(p)||p instanceof _}(p);return L&&!b.isBuffer(p)&&(p=function E(p){return b.from(p)}(p)),"function"==typeof z&&($=z,z=null),L?z="buffer":z||(z=De.defaultEncoding),"function"!=typeof $&&($=T),De.ending?function H(p,z){var $=new y;m(p,$),process.nextTick(z,$)}(this,$):(L||function se(p,z,$,De){var Re;return null===$?Re=new B:"string"!=typeof $&&!z.objectMode&&(Re=new I("chunk",["string","Buffer"],$)),!Re||(m(p,Re),process.nextTick(De,Re),!1)}(this,De,p,$))&&(De.pendingcb++,Re=function pe(p,z,$,De,Re,L){if(!$){var U=function he(p,z,$){return!p.objectMode&&!1!==p.decodeStrings&&"string"==typeof z&&(z=b.from(z,$)),z}(z,De,Re);De!==U&&($=!0,Re="buffer",De=U)}var fe=z.objectMode?1:De.length;z.length+=fe;var C=z.length-1))throw new g(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ne.prototype._write=function(p,z,$){$(new M("_write()"))},ne.prototype._writev=null,ne.prototype.end=function(p,z,$){var De=this._writableState;return"function"==typeof p?($=p,p=null,z=null):"function"==typeof z&&($=z,z=null),null!=p&&this.write(p,z),De.corked&&(De.corked=1,this.uncork()),De.ending||function wr(p,z,$){z.ending=!0,cn(p,z),$&&(z.finished?process.nextTick($):p.once("finish",$)),z.ended=!0,p.writable=!1}(this,De,$),this},Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(z){!this._writableState||(this._writableState.destroyed=z)}}),ne.prototype.destroy=O.destroy,ne.prototype._undestroy=O.undestroy,ne.prototype._destroy=function(p,z){z(p)}},3872:(oe,ce,x)=>{"use strict";var v;function k(y,g,m){return g=function V(y){var g=function W(y,g){if("object"!=typeof y||null===y)return y;var m=y[Symbol.toPrimitive];if(void 0!==m){var T=m.call(y,g||"default");if("object"!=typeof T)return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(y)}(y,"string");return"symbol"==typeof g?g:String(g)}(g),g in y?Object.defineProperty(y,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[g]=m,y}var G=x(7542),b=Symbol("lastResolve"),_=Symbol("lastReject"),E=Symbol("error"),F=Symbol("ended"),O=Symbol("lastPromise"),J=Symbol("handlePromise"),q=Symbol("stream");function S(y,g){return{value:y,done:g}}function I(y){var g=y[b];if(null!==g){var m=y[q].read();null!==m&&(y[O]=null,y[b]=null,y[_]=null,g(S(m,!1)))}}function M(y){process.nextTick(I,y)}var Q=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((k(v={get stream(){return this[q]},next:function(){var g=this,m=this[E];if(null!==m)return Promise.reject(m);if(this[F])return Promise.resolve(S(void 0,!0));if(this[q].destroyed)return new Promise(function(ne,H){process.nextTick(function(){g[E]?H(g[E]):ne(S(void 0,!0))})});var K,T=this[O];if(T)K=new Promise(function X(y,g){return function(m,T){y.then(function(){g[F]?m(S(void 0,!0)):g[J](m,T)},T)}}(T,this));else{var P=this[q].read();if(null!==P)return Promise.resolve(S(P,!1));K=new Promise(this[J])}return this[O]=K,K}},Symbol.asyncIterator,function(){return this}),k(v,"return",function(){var g=this;return new Promise(function(m,T){g[q].destroy(null,function(K){K?T(K):m(S(void 0,!0))})})}),v),Q);oe.exports=function(g){var m,T=Object.create(w,(k(m={},q,{value:g,writable:!0}),k(m,b,{value:null,writable:!0}),k(m,_,{value:null,writable:!0}),k(m,E,{value:null,writable:!0}),k(m,F,{value:g._readableState.endEmitted,writable:!0}),k(m,J,{value:function(P,ne){var H=T[q].read();H?(T[O]=null,T[b]=null,T[_]=null,P(S(H,!1))):(T[b]=P,T[_]=ne)},writable:!0}),m));return T[O]=null,G(g,function(K){if(K&&"ERR_STREAM_PREMATURE_CLOSE"!==K.code){var P=T[_];return null!==P&&(T[O]=null,T[b]=null,T[_]=null,P(K)),void(T[E]=K)}var ne=T[b];null!==ne&&(T[O]=null,T[b]=null,T[_]=null,ne(S(void 0,!0))),T[F]=!0}),g.on("readable",M.bind(null,T)),T}},5019:(oe,ce,x)=>{"use strict";function v(M,X){var Q=Object.keys(M);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(M);X&&(w=w.filter(function(B){return Object.getOwnPropertyDescriptor(M,B).enumerable})),Q.push.apply(Q,w)}return Q}function k(M){for(var X=1;X0?this.tail.next=w:this.head=w,this.tail=w,++this.length}},{key:"unshift",value:function(Q){var w={data:Q,next:this.head};0===this.length&&(this.tail=w),this.head=w,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var w=this.head,B=""+w.data;w=w.next;)B+=Q+w.data;return B}},{key:"concat",value:function(Q){if(0===this.length)return O.alloc(0);for(var w=O.allocUnsafe(Q>>>0),B=this.head,y=0;B;)I(B.data,w,y),y+=B.data.length,B=B.next;return w}},{key:"consume",value:function(Q,w){var B;return Qg.length?g.length:Q;if(y+=m===g.length?g:g.slice(0,Q),0==(Q-=m)){m===g.length?(++B,this.head=w.next?w.next:this.tail=null):(this.head=w,w.data=g.slice(m));break}++B}return this.length-=B,y}},{key:"_getBuffer",value:function(Q){var w=O.allocUnsafe(Q),B=this.head,y=1;for(B.data.copy(w),Q-=B.data.length;B=B.next;){var g=B.data,m=Q>g.length?g.length:Q;if(g.copy(w,w.length-Q,0,m),0==(Q-=m)){m===g.length?(++y,this.head=B.next?B.next:this.tail=null):(this.head=B,B.data=g.slice(m));break}++y}return this.length-=y,w}},{key:S,value:function(Q,w){return q(this,k(k({},w),{},{depth:0,customInspect:!1}))}}]),M}()},1920:oe=>{"use strict";function x(G,b){V(G,b),v(G)}function v(G){G._writableState&&!G._writableState.emitClose||G._readableState&&!G._readableState.emitClose||G.emit("close")}function V(G,b){G.emit("error",b)}oe.exports={destroy:function ce(G,b){var _=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(b?b(G):G&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(V,this,G)):process.nextTick(V,this,G)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(G||null,function(O){!b&&O?_._writableState?_._writableState.errorEmitted?process.nextTick(v,_):(_._writableState.errorEmitted=!0,process.nextTick(x,_,O)):process.nextTick(x,_,O):b?(process.nextTick(v,_),b(O)):process.nextTick(v,_)}),this)},undestroy:function k(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function W(G,b){var _=G._readableState,E=G._writableState;_&&_.autoDestroy||E&&E.autoDestroy?G.destroy(b):G.emit("error",b)}}},7542:(oe,ce,x)=>{"use strict";var v=x(891).q.ERR_STREAM_PREMATURE_CLOSE;function V(){}oe.exports=function G(b,_,E){if("function"==typeof _)return G(b,null,_);_||(_={}),E=function k(b){var _=!1;return function(){if(!_){_=!0;for(var E=arguments.length,F=new Array(E),O=0;O{oe.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(oe,ce,x)=>{"use strict";var v,V=x(891).q,W=V.ERR_MISSING_ARGS,G=V.ERR_STREAM_DESTROYED;function b(S){if(S)throw S}function E(S,I,M,X){X=function k(S){var I=!1;return function(){I||(I=!0,S.apply(void 0,arguments))}}(X);var Q=!1;S.on("close",function(){Q=!0}),void 0===v&&(v=x(7542)),v(S,{readable:I,writable:M},function(B){if(B)return X(B);Q=!0,X()});var w=!1;return function(B){if(!Q&&!w){if(w=!0,function _(S){return S.setHeader&&"function"==typeof S.abort}(S))return S.abort();if("function"==typeof S.destroy)return S.destroy();X(B||new G("pipe"))}}}function F(S){S()}function O(S,I){return S.pipe(I)}function J(S){return S.length&&"function"==typeof S[S.length-1]?S.pop():b}oe.exports=function q(){for(var S=arguments.length,I=new Array(S),M=0;M0,function(T){Q||(Q=T),T&&w.forEach(F),!g&&(w.forEach(F),X(Q))})});return I.reduce(O)}},7102:(oe,ce,x)=>{"use strict";var v=x(891).q.ERR_INVALID_OPT_VALUE;oe.exports={getHighWaterMark:function V(W,G,b,_){var E=function k(W,G,b){return null!=W.highWaterMark?W.highWaterMark:G?W[b]:null}(G,_,b);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new v(_?b:"highWaterMark",E);return Math.floor(E)}return W.objectMode?16:16384}}},4970:(oe,ce,x)=>{oe.exports=x(9069).EventEmitter},3502:(oe,ce,x)=>{var v=x(3172),k=v.Buffer;function V(G,b){for(var _ in G)b[_]=G[_]}function W(G,b,_){return k(G,b,_)}k.from&&k.alloc&&k.allocUnsafe&&k.allocUnsafeSlow?oe.exports=v:(V(v,ce),ce.Buffer=W),W.prototype=Object.create(k.prototype),V(k,W),W.from=function(G,b,_){if("number"==typeof G)throw new TypeError("Argument must not be a number");return k(G,b,_)},W.alloc=function(G,b,_){if("number"!=typeof G)throw new TypeError("Argument must be a number");var E=k(G);return void 0!==b?"string"==typeof _?E.fill(b,_):E.fill(b):E.fill(0),E},W.allocUnsafe=function(G){if("number"!=typeof G)throw new TypeError("Argument must be a number");return k(G)},W.allocUnsafeSlow=function(G){if("number"!=typeof G)throw new TypeError("Argument must be a number");return v.SlowBuffer(G)}},1503:(oe,ce,x)=>{!function(v){v.parser=function(N,p){return new V(N,p)},v.SAXParser=V,v.SAXStream=O,v.createStream=function F(N,p){return new O(N,p)},v.MAX_BUFFER_LENGTH=65536;var _,k=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function V(N,p){if(!(this instanceof V))return new V(N,p);var z=this;(function G(N){for(var p=0,z=k.length;p"===$?(se(p,"onsgmldeclaration",p.sgmlDecl),p.sgmlDecl="",p.state=P.TEXT):(g($)&&(p.state=P.SGML_DECL_QUOTED),p.sgmlDecl+=$);continue;case P.SGML_DECL_QUOTED:$===p.q&&(p.state=P.SGML_DECL,p.q=""),p.sgmlDecl+=$;continue;case P.DOCTYPE:">"===$?(p.state=P.TEXT,se(p,"ondoctype",p.doctype),p.doctype=!0):(p.doctype+=$,"["===$?p.state=P.DOCTYPE_DTD:g($)&&(p.state=P.DOCTYPE_QUOTED,p.q=$));continue;case P.DOCTYPE_QUOTED:p.doctype+=$,$===p.q&&(p.q="",p.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:p.doctype+=$,"]"===$?p.state=P.DOCTYPE:g($)&&(p.state=P.DOCTYPE_DTD_QUOTED,p.q=$);continue;case P.DOCTYPE_DTD_QUOTED:p.doctype+=$,$===p.q&&(p.state=P.DOCTYPE_DTD,p.q="");continue;case P.COMMENT:"-"===$?p.state=P.COMMENT_ENDING:p.comment+=$;continue;case P.COMMENT_ENDING:"-"===$?(p.state=P.COMMENT_ENDED,p.comment=pe(p.opt,p.comment),p.comment&&se(p,"oncomment",p.comment),p.comment=""):(p.comment+="-"+$,p.state=P.COMMENT);continue;case P.COMMENT_ENDED:">"!==$?(Ae(p,"Malformed comment"),p.comment+="--"+$,p.state=P.COMMENT):p.state=P.TEXT;continue;case P.CDATA:"]"===$?p.state=P.CDATA_ENDING:p.cdata+=$;continue;case P.CDATA_ENDING:"]"===$?p.state=P.CDATA_ENDING_2:(p.cdata+="]"+$,p.state=P.CDATA);continue;case P.CDATA_ENDING_2:">"===$?(p.cdata&&se(p,"oncdata",p.cdata),se(p,"onclosecdata"),p.cdata="",p.state=P.TEXT):"]"===$?p.cdata+="]":(p.cdata+="]]"+$,p.state=P.CDATA);continue;case P.PROC_INST:"?"===$?p.state=P.PROC_INST_ENDING:y($)?p.state=P.PROC_INST_BODY:p.procInstName+=$;continue;case P.PROC_INST_BODY:if(!p.procInstBody&&y($))continue;"?"===$?p.state=P.PROC_INST_ENDING:p.procInstBody+=$;continue;case P.PROC_INST_ENDING:">"===$?(se(p,"onprocessinginstruction",{name:p.procInstName,body:p.procInstBody}),p.procInstName=p.procInstBody="",p.state=P.TEXT):(p.procInstBody+="?"+$,p.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:T(Q,$)?p.tagName+=$:(Et(p),">"===$?Ze(p):"/"===$?p.state=P.OPEN_TAG_SLASH:(y($)||Ae(p,"Invalid character in tag name"),p.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:">"===$?(Ze(p,!0),qe(p)):(Ae(p,"Forward-slash in opening tag not followed by >"),p.state=P.ATTRIB);continue;case P.ATTRIB:if(y($))continue;">"===$?Ze(p):"/"===$?p.state=P.OPEN_TAG_SLASH:T(X,$)?(p.attribName=$,p.attribValue="",p.state=P.ATTRIB_NAME):Ae(p,"Invalid attribute name");continue;case P.ATTRIB_NAME:"="===$?p.state=P.ATTRIB_VALUE:">"===$?(Ae(p,"Attribute without value"),p.attribValue=p.attribName,ln(p),Ze(p)):y($)?p.state=P.ATTRIB_NAME_SAW_WHITE:T(Q,$)?p.attribName+=$:Ae(p,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if("="===$)p.state=P.ATTRIB_VALUE;else{if(y($))continue;Ae(p,"Attribute without value"),p.tag.attributes[p.attribName]="",p.attribValue="",se(p,"onattribute",{name:p.attribName,value:""}),p.attribName="",">"===$?Ze(p):T(X,$)?(p.attribName=$,p.state=P.ATTRIB_NAME):(Ae(p,"Invalid attribute name"),p.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(y($))continue;g($)?(p.q=$,p.state=P.ATTRIB_VALUE_QUOTED):(Ae(p,"Unquoted attribute value"),p.state=P.ATTRIB_VALUE_UNQUOTED,p.attribValue=$);continue;case P.ATTRIB_VALUE_QUOTED:if($!==p.q){"&"===$?p.state=P.ATTRIB_VALUE_ENTITY_Q:p.attribValue+=$;continue}ln(p),p.q="",p.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:y($)?p.state=P.ATTRIB:">"===$?Ze(p):"/"===$?p.state=P.OPEN_TAG_SLASH:T(X,$)?(Ae(p,"No whitespace between attributes"),p.attribName=$,p.attribValue="",p.state=P.ATTRIB_NAME):Ae(p,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!m($)){"&"===$?p.state=P.ATTRIB_VALUE_ENTITY_U:p.attribValue+=$;continue}ln(p),">"===$?Ze(p):p.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(p.tagName)">"===$?qe(p):T(Q,$)?p.tagName+=$:p.script?(p.script+=""===$?qe(p):Ae(p,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var L,U;switch(p.state){case P.TEXT_ENTITY:L=P.TEXT,U="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:L=P.ATTRIB_VALUE_QUOTED,U="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:L=P.ATTRIB_VALUE_UNQUOTED,U="attribValue"}if(";"===$)if(p.opt.unparsedEntities){var fe=pt(p);p.entity="",p.state=L,p.write(fe)}else p[U]+=pt(p),p.entity="",p.state=L;else T(p.entity.length?B:w,$)?p.entity+=$:(Ae(p,"Invalid character in entity name"),p[U]+="&"+p.entity+$,p.entity="",p.state=L);continue;default:throw new Error(p,"Unknown state: "+p.state)}return p.position>=p.bufferCheckPosition&&function W(N){for(var p=Math.max(v.MAX_BUFFER_LENGTH,10),z=0,$=0,De=k.length;$p)switch(k[$]){case"textNode":he(N);break;case"cdata":se(N,"oncdata",N.cdata),N.cdata="";break;case"script":se(N,"onscript",N.script),N.script="";break;default:Le(N,"Max buffer length exceeded: "+k[$])}z=Math.max(z,Re)}N.bufferCheckPosition=v.MAX_BUFFER_LENGTH-z+N.position}(p),p},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function b(N){he(N),""!==N.cdata&&(se(N,"oncdata",N.cdata),N.cdata=""),""!==N.script&&(se(N,"onscript",N.script),N.script="")}(this)}};try{_=x(295).Stream}catch(N){_=function(){}}_||(_=function(){});var E=v.EVENTS.filter(function(N){return"error"!==N&&"end"!==N});function O(N,p){if(!(this instanceof O))return new O(N,p);_.apply(this),this._parser=new V(N,p),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function($){z.emit("error",$),z._parser.error=null},this._decoder=null,E.forEach(function($){Object.defineProperty(z,"on"+$,{get:function(){return z._parser["on"+$]},set:function(De){if(!De)return z.removeAllListeners($),z._parser["on"+$]=De,De;z.on($,De)},enumerable:!0,configurable:!1})})}(O.prototype=Object.create(_.prototype,{constructor:{value:O}})).write=function(N){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(N)){if(!this._decoder){var p=x(3054).s;this._decoder=new p("utf8")}N=this._decoder.write(N)}return this._parser.write(N.toString()),this.emit("data",N),!0},O.prototype.end=function(N){return N&&N.length&&this.write(N),this._parser.end(),!0},O.prototype.on=function(N,p){var z=this;return!z._parser["on"+N]&&-1!==E.indexOf(N)&&(z._parser["on"+N]=function(){var $=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,N),z.emit.apply(z,$)}),_.prototype.on.call(z,N,p)};var S="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",M={xml:S,xmlns:I},X=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,w=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,B=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(N){return" "===N||"\n"===N||"\r"===N||"\t"===N}function g(N){return'"'===N||"'"===N}function m(N){return">"===N||y(N)}function T(N,p){return N.test(p)}function K(N,p){return!T(N,p)}var N,p,z,P=0;for(var ne in v.STATE={BEGIN:P++,BEGIN_WHITESPACE:P++,TEXT:P++,TEXT_ENTITY:P++,OPEN_WAKA:P++,SGML_DECL:P++,SGML_DECL_QUOTED:P++,DOCTYPE:P++,DOCTYPE_QUOTED:P++,DOCTYPE_DTD:P++,DOCTYPE_DTD_QUOTED:P++,COMMENT_STARTING:P++,COMMENT:P++,COMMENT_ENDING:P++,COMMENT_ENDED:P++,CDATA:P++,CDATA_ENDING:P++,CDATA_ENDING_2:P++,PROC_INST:P++,PROC_INST_BODY:P++,PROC_INST_ENDING:P++,OPEN_TAG:P++,OPEN_TAG_SLASH:P++,ATTRIB:P++,ATTRIB_NAME:P++,ATTRIB_NAME_SAW_WHITE:P++,ATTRIB_VALUE:P++,ATTRIB_VALUE_QUOTED:P++,ATTRIB_VALUE_CLOSED:P++,ATTRIB_VALUE_UNQUOTED:P++,ATTRIB_VALUE_ENTITY_Q:P++,ATTRIB_VALUE_ENTITY_U:P++,CLOSE_TAG:P++,CLOSE_TAG_SAW_WHITE:P++,SCRIPT:P++,SCRIPT_ENDING:P++},v.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(v.ENTITIES).forEach(function(N){var p=v.ENTITIES[N],z="number"==typeof p?String.fromCharCode(p):p;v.ENTITIES[N]=z}),v.STATE)v.STATE[v.STATE[ne]]=ne;function H(N,p,z){N[p]&&N[p](z)}function se(N,p,z){N.textNode&&he(N),H(N,p,z)}function he(N){N.textNode=pe(N.opt,N.textNode),N.textNode&&H(N,"ontext",N.textNode),N.textNode=""}function pe(N,p){return N.trim&&(p=p.trim()),N.normalize&&(p=p.replace(/\s+/g," ")),p}function Le(N,p){return he(N),N.trackPosition&&(p+="\nLine: "+N.line+"\nColumn: "+N.column+"\nChar: "+N.c),p=new Error(p),N.error=p,H(N,"onerror",p),N}function Je(N){return N.sawRoot&&!N.closedRoot&&Ae(N,"Unclosed root tag"),N.state!==P.BEGIN&&N.state!==P.BEGIN_WHITESPACE&&N.state!==P.TEXT&&Le(N,"Unexpected end"),he(N),N.c="",N.closed=!0,H(N,"onend"),V.call(N,N.strict,N.opt),N}function Ae(N,p){if("object"!=typeof N||!(N instanceof V))throw new Error("bad call to strictFail");N.strict&&Le(N,p)}function Et(N){N.strict||(N.tagName=N.tagName[N.looseCase]());var p=N.tags[N.tags.length-1]||N,z=N.tag={name:N.tagName,attributes:{}};N.opt.xmlns&&(z.ns=p.ns),N.attribList.length=0,se(N,"onopentagstart",z)}function _e(N,p){var $=N.indexOf(":")<0?["",N]:N.split(":"),De=$[0],Re=$[1];return p&&"xmlns"===N&&(De="xmlns",Re=""),{prefix:De,local:Re}}function ln(N){if(N.strict||(N.attribName=N.attribName[N.looseCase]()),-1!==N.attribList.indexOf(N.attribName)||N.tag.attributes.hasOwnProperty(N.attribName))N.attribName=N.attribValue="";else{if(N.opt.xmlns){var p=_e(N.attribName,!0),$=p.local;if("xmlns"===p.prefix)if("xml"===$&&N.attribValue!==S)Ae(N,"xml: prefix must be bound to "+S+"\nActual: "+N.attribValue);else if("xmlns"===$&&N.attribValue!==I)Ae(N,"xmlns: prefix must be bound to "+I+"\nActual: "+N.attribValue);else{var De=N.tag,Re=N.tags[N.tags.length-1]||N;De.ns===Re.ns&&(De.ns=Object.create(Re.ns)),De.ns[$]=N.attribValue}N.attribList.push([N.attribName,N.attribValue])}else N.tag.attributes[N.attribName]=N.attribValue,se(N,"onattribute",{name:N.attribName,value:N.attribValue});N.attribName=N.attribValue=""}}function Ze(N,p){if(N.opt.xmlns){var z=N.tag,$=_e(N.tagName);z.prefix=$.prefix,z.local=$.local,z.uri=z.ns[$.prefix]||"",z.prefix&&!z.uri&&(Ae(N,"Unbound namespace prefix: "+JSON.stringify(N.tagName)),z.uri=$.prefix),z.ns&&(N.tags[N.tags.length-1]||N).ns!==z.ns&&Object.keys(z.ns).forEach(function(ve){se(N,"onopennamespace",{prefix:ve,uri:z.ns[ve]})});for(var Re=0,L=N.attribList.length;Re",N.tagName="",void(N.state=P.SCRIPT);se(N,"onscript",N.script),N.script=""}var p=N.tags.length,z=N.tagName;N.strict||(z=z[N.looseCase]());for(var $=z;p--&&N.tags[p].name!==$;)Ae(N,"Unexpected close tag");if(p<0)return Ae(N,"Unmatched closing tag: "+N.tagName),N.textNode+="",void(N.state=P.TEXT);N.tagName=z;for(var Re=N.tags.length;Re-- >p;){var L=N.tag=N.tags.pop();N.tagName=N.tag.name,se(N,"onclosetag",N.tagName);var U={};for(var fe in L.ns)U[fe]=L.ns[fe];N.opt.xmlns&&L.ns!==(N.tags[N.tags.length-1]||N).ns&&Object.keys(L.ns).forEach(function(d){se(N,"onclosenamespace",{prefix:d,uri:L.ns[d]})})}0===p&&(N.closedRoot=!0),N.tagName=N.attribValue=N.attribName="",N.attribList.length=0,N.state=P.TEXT}function pt(N){var $,p=N.entity,z=p.toLowerCase(),De="";return N.ENTITIES[p]?N.ENTITIES[p]:N.ENTITIES[z]?N.ENTITIES[z]:("#"===(p=z).charAt(0)&&("x"===p.charAt(1)?(p=p.slice(2),De=($=parseInt(p,16)).toString(16)):(p=p.slice(1),De=($=parseInt(p,10)).toString(10))),p=p.replace(/^0+/,""),isNaN($)||De.toLowerCase()!==p?(Ae(N,"Invalid character entity"),"&"+N.entity+";"):String.fromCodePoint($))}function it(N,p){"<"===p?(N.state=P.OPEN_WAKA,N.startTagPosition=N.position):y(p)||(Ae(N,"Non-whitespace before first tag."),N.textNode=p,N.state=P.TEXT)}function cn(N,p){var z="";return p1114111||p(d)!==d)throw RangeError("Invalid code point: "+d);d<=65535?De.push(d):De.push(55296+((d-=65536)>>10),d%1024+56320),(U+1===fe||De.length>$)&&(C+=N.apply(null,De),De.length=0)}return C},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z)}(ce)},6563:function(){!function(oe,ce){"use strict";if(!oe.setImmediate){var W,x=1,v={},k=!1,V=oe.document,M=Object.getPrototypeOf&&Object.getPrototypeOf(oe);M=M&&M.setTimeout?M:oe,"[object process]"==={}.toString.call(oe.process)?function F(){W=function(X){process.nextTick(function(){E(X)})}}():function O(){if(oe.postMessage&&!oe.importScripts){var X=!0,Q=oe.onmessage;return oe.onmessage=function(){X=!1},oe.postMessage("","*"),oe.onmessage=Q,X}}()?function J(){var X="setImmediate$"+Math.random()+"$",Q=function(w){w.source===oe&&"string"==typeof w.data&&0===w.data.indexOf(X)&&E(+w.data.slice(X.length))};oe.addEventListener?oe.addEventListener("message",Q,!1):oe.attachEvent("onmessage",Q),W=function(w){oe.postMessage(X+w,"*")}}():oe.MessageChannel?function q(){var X=new MessageChannel;X.port1.onmessage=function(Q){E(Q.data)},W=function(Q){X.port2.postMessage(Q)}}():V&&"onreadystatechange"in V.createElement("script")?function S(){var X=V.documentElement;W=function(Q){var w=V.createElement("script");w.onreadystatechange=function(){E(Q),w.onreadystatechange=null,X.removeChild(w),w=null},X.appendChild(w)}}():function I(){W=function(X){setTimeout(E,0,X)}}(),M.setImmediate=function G(X){"function"!=typeof X&&(X=new Function(""+X));for(var Q=new Array(arguments.length-1),w=0;w{oe.exports=V;var v=x(9069).EventEmitter;function V(){v.call(this)}x(3894)(V,v),V.Readable=x(3154),V.Writable=x(520),V.Duplex=x(1339),V.Transform=x(6025),V.PassThrough=x(6071),V.finished=x(7542),V.pipeline=x(954),V.Stream=V,V.prototype.pipe=function(W,G){var b=this;function _(I){W.writable&&!1===W.write(I)&&b.pause&&b.pause()}function E(){b.readable&&b.resume&&b.resume()}b.on("data",_),W.on("drain",E),!W._isStdio&&(!G||!1!==G.end)&&(b.on("end",O),b.on("close",J));var F=!1;function O(){F||(F=!0,W.end())}function J(){F||(F=!0,"function"==typeof W.destroy&&W.destroy())}function q(I){if(S(),0===v.listenerCount(this,"error"))throw I}function S(){b.removeListener("data",_),W.removeListener("drain",E),b.removeListener("end",O),b.removeListener("close",J),b.removeListener("error",q),W.removeListener("error",q),b.removeListener("end",S),b.removeListener("close",S),W.removeListener("close",S)}return b.on("error",q),W.on("error",q),b.on("end",S),b.on("close",S),W.on("close",S),W.emit("pipe",b),W}},3054:(oe,ce,x)=>{"use strict";var v=x(3502).Buffer,k=v.isEncoding||function(w){switch((w=""+w)&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function G(w){var B;switch(this.encoding=function W(w){var B=function V(w){if(!w)return"utf8";for(var B;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(B)return;w=(""+w).toLowerCase(),B=!0}}(w);if("string"!=typeof B&&(v.isEncoding===k||!k(w)))throw new Error("Unknown encoding: "+w);return B||w}(w),this.encoding){case"utf16le":this.text=q,this.end=S,B=4;break;case"utf8":this.fillLast=F,B=4;break;case"base64":this.text=I,this.end=M,B=3;break;default:return this.write=X,void(this.end=Q)}this.lastNeed=0,this.lastTotal=0,this.lastChar=v.allocUnsafe(B)}function b(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function F(w){var B=this.lastTotal-this.lastNeed,y=function E(w,B,y){if(128!=(192&B[0]))return w.lastNeed=0,"\ufffd";if(w.lastNeed>1&&B.length>1){if(128!=(192&B[1]))return w.lastNeed=1,"\ufffd";if(w.lastNeed>2&&B.length>2&&128!=(192&B[2]))return w.lastNeed=2,"\ufffd"}}(this,w);return void 0!==y?y:this.lastNeed<=w.length?(w.copy(this.lastChar,B,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,B,0,w.length),void(this.lastNeed-=w.length))}function q(w,B){if((w.length-B)%2==0){var y=w.toString("utf16le",B);if(y){var g=y.charCodeAt(y.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",B,w.length-1)}function S(w){var B=w&&w.length?this.write(w):"";return this.lastNeed?B+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):B}function I(w,B){var y=(w.length-B)%3;return 0===y?w.toString("base64",B):(this.lastNeed=3-y,this.lastTotal=3,1===y?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",B,w.length-y))}function M(w){var B=w&&w.length?this.write(w):"";return this.lastNeed?B+this.lastChar.toString("base64",0,3-this.lastNeed):B}function X(w){return w.toString(this.encoding)}function Q(w){return w&&w.length?this.write(w):""}ce.s=G,G.prototype.write=function(w){if(0===w.length)return"";var B,y;if(this.lastNeed){if(void 0===(B=this.fillLast(w)))return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y=0?(m>0&&(w.lastNeed=m-1),m):--g=0?(m>0&&(w.lastNeed=m-2),m):--g=0?(m>0&&(2===m?m=0:w.lastNeed=m-3),m):0}(this,w,B);if(!this.lastNeed)return w.toString("utf8",B);this.lastTotal=y;var g=w.length-(y-this.lastNeed);return w.copy(this.lastChar,0,g),w.toString("utf8",B,g)},G.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},2944:function(oe,ce,x){var v="undefined"!=typeof global&&global||"undefined"!=typeof self&&self||window,k=Function.prototype.apply;function V(W,G){this._id=W,this._clearFn=G}ce.setTimeout=function(){return new V(k.call(setTimeout,v,arguments),clearTimeout)},ce.setInterval=function(){return new V(k.call(setInterval,v,arguments),clearInterval)},ce.clearTimeout=ce.clearInterval=function(W){W&&W.close()},V.prototype.unref=V.prototype.ref=function(){},V.prototype.close=function(){this._clearFn.call(v,this._id)},ce.enroll=function(W,G){clearTimeout(W._idleTimeoutId),W._idleTimeout=G},ce.unenroll=function(W){clearTimeout(W._idleTimeoutId),W._idleTimeout=-1},ce._unrefActive=ce.active=function(W){clearTimeout(W._idleTimeoutId);var G=W._idleTimeout;G>=0&&(W._idleTimeoutId=setTimeout(function(){W._onTimeout&&W._onTimeout()},G))},x(6563),ce.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,ce.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate},3532:oe=>{function x(v){try{if(!global.localStorage)return!1}catch(V){return!1}var k=global.localStorage[v];return null!=k&&"true"===String(k).toLowerCase()}oe.exports=function ce(v,k){if(x("noDeprecation"))return v;var V=!1;return function W(){if(!V){if(x("throwDeprecation"))throw new Error(k);x("traceDeprecation")?console.trace(k):console.warn(k),V=!0}return v.apply(this,arguments)}}},4922:function(oe,ce){(function(){"use strict";ce.stripBOM=function(x){return"\ufeff"===x[0]?x.substring(1):x}}).call(this)},4032:function(oe,ce,x){(function(){"use strict";var v,k,V,W,G,b={}.hasOwnProperty;v=x(7904),k=x(7067).defaults,W=function(_){return"string"==typeof _&&(_.indexOf("&")>=0||_.indexOf(">")>=0||_.indexOf("<")>=0)},G=function(_){return""},V=function(_){return _.replace("]]>","]]]]>")},ce.Builder=function(){function _(E){var F,O;for(F in this.options={},O=k[.2])!b.call(O,F)||(this.options[F]=O[F]);for(F in E)!b.call(E,F)||(this.options[F]=E[F])}return _.prototype.buildObject=function(E){var F,O,J,q,S,I;return F=this.options.attrkey,O=this.options.charkey,1===Object.keys(E).length&&this.options.rootName===k[.2].rootName?E=E[S=Object.keys(E)[0]]:S=this.options.rootName,I=this,J=function(M,X){var Q,w,B,y,g;if("object"!=typeof X)I.options.cdata&&W(X)?M.raw(G(X)):M.txt(X);else if(Array.isArray(X)){for(y in X)if(b.call(X,y))for(g in w=X[y])B=w[g],M=J(M.ele(g),B).up()}else for(g in X)if(b.call(X,g))if(w=X[g],g===F){if("object"==typeof w)for(Q in w)M=M.att(Q,w[Q])}else if(g===O)M=I.options.cdata&&W(w)?M.raw(G(w)):M.txt(w);else if(Array.isArray(w))for(y in w)!b.call(w,y)||(M="string"==typeof(B=w[y])?I.options.cdata&&W(B)?M.ele(g).raw(G(B)).up():M.ele(g,B).up():J(M.ele(g),B).up());else"object"==typeof w?M=J(M.ele(g),w).up():"string"==typeof w&&I.options.cdata&&W(w)?M=M.ele(g).raw(G(w)).up():(null==w&&(w=""),M=M.ele(g,w.toString()).up());return M},q=v.create(S,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),J(q,E).end(this.options.renderOpts)},_}()}).call(this)},7067:function(oe,ce){(function(){ce.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},2238:function(oe,ce,x){(function(){"use strict";var v,k,V,W,G,b,_,E,F=function(q,S){return function(){return q.apply(S,arguments)}},J={}.hasOwnProperty;_=x(1503),V=x(9069),v=x(4922),b=x(3749),E=x(2944).setImmediate,k=x(7067).defaults,W=function(q){return"object"==typeof q&&null!=q&&0===Object.keys(q).length},G=function(q,S,I){var M,X;for(M=0,X=q.length;M0&&(m[w.options.childkey]=K),K=m;return Q.length>0?w.assignOrPush(H,T,K):(w.options.explicitRoot&&(ne=K,(K=Object.create(null))[T]=ne),w.resultObject=K,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),X=function(w){return function(B){var y,g;if(g=Q[Q.length-1])return g[M]+=B,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||""!==B.replace(/\\n/g,"").trim())&&(g[w.options.childkey]=g[w.options.childkey]||[],(y={"#name":"__text__"})[M]=B,w.options.normalize&&(y[M]=y[M].replace(/\s{2,}/g," ").trim()),g[w.options.childkey].push(y)),g}}(this),this.saxParser.ontext=X,this.saxParser.oncdata=function(B){var y;if(y=X(B))return y.cdata=!0}},S.prototype.parseString=function(I,M){var X;null!=M&&"function"==typeof M&&(this.on("end",function(Q){return this.reset(),M(null,Q)}),this.on("error",function(Q){return this.reset(),M(Q)}));try{return""===(I=I.toString()).trim()?(this.emit("end",null),!0):(I=v.stripBOM(I),this.options.async?(this.remaining=I,E(this.processAsync),this.saxParser):this.saxParser.write(I).close())}catch(Q){if(X=Q,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",X),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw X}},S.prototype.parseStringPromise=function(I){return new Promise((M=this,function(X,Q){return M.parseString(I,function(w,B){return w?Q(w):X(B)})}));var M},S}(V),ce.parseString=function(q,S,I){var M,X;return null!=I?("function"==typeof I&&(M=I),"object"==typeof S&&(X=S)):("function"==typeof S&&(M=S),X={}),new ce.Parser(X).parseString(q,M)},ce.parseStringPromise=function(q,S){var I;return"object"==typeof S&&(I=S),new ce.Parser(I).parseStringPromise(q)}}).call(this)},3749:function(oe,ce){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),ce.normalize=function(v){return v.toLowerCase()},ce.firstCharLowerCase=function(v){return v.charAt(0).toLowerCase()+v.slice(1)},ce.stripPrefix=function(v){return v.replace(x,"")},ce.parseNumbers=function(v){return isNaN(v)||(v=v%1==0?parseInt(v,10):parseFloat(v)),v},ce.parseBooleans=function(v){return/^(?:true|false)$/i.test(v)&&(v="true"===v.toLowerCase()),v}}).call(this)},5452:function(oe,ce,x){(function(){"use strict";var v,k,V,W,b={}.hasOwnProperty;k=x(7067),v=x(4032),V=x(2238),W=x(3749),ce.defaults=k.defaults,ce.processors=W,ce.ValidationError=function(_){function E(F){this.message=F}return function(_,E){for(var F in E)b.call(E,F)&&(_[F]=E[F]);function O(){this.constructor=_}O.prototype=E.prototype,_.prototype=new O,_.__super__=E.prototype}(E,Error),E}(),ce.Builder=v.Builder,ce.Parser=V.Parser,ce.parseString=V.parseString,ce.parseStringPromise=V.parseStringPromise}).call(this)},599:function(oe){(function(){oe.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},2269:function(oe){(function(){oe.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},3452:function(oe){(function(){var ce,x,v,k,V,W,G,b=[].slice,_={}.hasOwnProperty;ce=function(){var E,F,O,J,q,S;if(S=arguments[0],q=2<=arguments.length?b.call(arguments,1):[],V(Object.assign))Object.assign.apply(null,arguments);else for(E=0,O=q.length;E":"attribute: {"+G+"}, parent: <"+this.parent.name+">"},W.prototype.isEqualNode=function(G){return!(G.namespaceURI!==this.namespaceURI||G.prefix!==this.prefix||G.localName!==this.localName||G.value!==this.value)},W}()}).call(this)},1361:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;v=x(2269),V=x(2182),oe.exports=function(b){function _(E,F){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(F)}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.clone=function(){return Object.create(this)},_.prototype.toString=function(E){return this.options.writer.cdata(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},2182:function(oe,ce,x){(function(){var k,W={}.hasOwnProperty;k=x(8563),oe.exports=function(G){function b(_){b.__super__.constructor.call(this,_),this.value=""}return function(G,b){for(var _ in b)W.call(b,_)&&(G[_]=b[_]);function E(){this.constructor=G}E.prototype=b.prototype,G.prototype=new E,G.__super__=b.prototype}(b,G),Object.defineProperty(b.prototype,"data",{get:function(){return this.value},set:function(_){return this.value=_||""}}),Object.defineProperty(b.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(b.prototype,"textContent",{get:function(){return this.value},set:function(_){return this.value=_||""}}),b.prototype.clone=function(){return Object.create(this)},b.prototype.substringData=function(_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendData=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.insertData=function(_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.deleteData=function(_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.replaceData=function(_,E,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(_){return!(!b.__super__.isEqualNode.apply(this,arguments).isEqualNode(_)||_.data!==this.data)},b}(k)}).call(this)},2516:function(oe,ce,x){(function(){var v,k,G={}.hasOwnProperty;v=x(2269),k=x(2182),oe.exports=function(b){function _(E,F){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(F)}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.clone=function(){return Object.create(this)},_.prototype.toString=function(E){return this.options.writer.comment(this,this.options.writer.filterOptions(E))},_}(k)}).call(this)},5806:function(oe,ce,x){(function(){var k,V;k=x(9276),V=x(3735),oe.exports=function(){function W(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new k,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(W.prototype,"parameterNames",{get:function(){return new V(Object.keys(this.defaultParams))}}),W.prototype.getParameter=function(G){return this.params.hasOwnProperty(G)?this.params[G]:null},W.prototype.canSetParameter=function(G,b){return!0},W.prototype.setParameter=function(G,b){return null!=b?this.params[G]=b:delete this.params[G]},W}()}).call(this)},9276:function(oe){(function(){oe.exports=function(){function x(){}return x.prototype.handleError=function(v){throw new Error(v)},x}()}).call(this)},9906:function(oe){(function(){oe.exports=function(){function x(){}return x.prototype.hasFeature=function(v,k){return!0},x.prototype.createDocumentType=function(v,k,V){throw new Error("This DOM method is not implemented.")},x.prototype.createDocument=function(v,k,V){throw new Error("This DOM method is not implemented.")},x.prototype.createHTMLDocument=function(v){throw new Error("This DOM method is not implemented.")},x.prototype.getFeature=function(v,k){throw new Error("This DOM method is not implemented.")},x}()}).call(this)},3735:function(oe){(function(){oe.exports=function(){function x(v){this.arr=v||[]}return Object.defineProperty(x.prototype,"length",{get:function(){return this.arr.length}}),x.prototype.item=function(v){return this.arr[v]||null},x.prototype.contains=function(v){return-1!==this.arr.indexOf(v)},x}()}).call(this)},7274:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E,F,O,J,q,S){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==O)throw new Error("Missing DTD attribute name. "+this.debugInfo(F));if(!J)throw new Error("Missing DTD attribute type. "+this.debugInfo(F));if(!q)throw new Error("Missing DTD attribute default. "+this.debugInfo(F));if(0!==q.indexOf("#")&&(q="#"+q),!q.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(F));if(S&&!q.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(F));this.elementName=this.stringify.name(F),this.type=v.AttributeDeclaration,this.attributeName=this.stringify.name(O),this.attributeType=this.stringify.dtdAttType(J),S&&(this.defaultValue=this.stringify.dtdAttDefault(S)),this.defaultValueType=q}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.toString=function(E){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},2068:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E,F,O){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing DTD element name. "+this.debugInfo());O||(O="(#PCDATA)"),Array.isArray(O)&&(O="("+O.join(",")+")"),this.name=this.stringify.name(F),this.type=v.ElementDeclaration,this.value=this.stringify.dtdElementValue(O)}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.toString=function(E){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},8349:function(oe,ce,x){(function(){var v,V,W,b={}.hasOwnProperty;W=x(3452).isObject,V=x(8563),v=x(2269),oe.exports=function(_){function E(F,O,J,q){if(E.__super__.constructor.call(this,F),null==J)throw new Error("Missing DTD entity name. "+this.debugInfo(J));if(null==q)throw new Error("Missing DTD entity value. "+this.debugInfo(J));if(this.pe=!!O,this.name=this.stringify.name(J),this.type=v.EntityDeclaration,W(q)){if(!q.pubID&&!q.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(J));if(q.pubID&&!q.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(J));if(this.internal=!1,null!=q.pubID&&(this.pubID=this.stringify.dtdPubID(q.pubID)),null!=q.sysID&&(this.sysID=this.stringify.dtdSysID(q.sysID)),null!=q.nData&&(this.nData=this.stringify.dtdNData(q.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(J))}else this.value=this.stringify.dtdEntityValue(q),this.internal=!0}return function(_,E){for(var F in E)b.call(E,F)&&(_[F]=E[F]);function O(){this.constructor=_}O.prototype=E.prototype,_.prototype=new O,_.__super__=E.prototype}(E,_),Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(E.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(E.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"xmlVersion",{get:function(){return null}}),E.prototype.toString=function(F){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(F))},E}(V)}).call(this)},3087:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E,F,O){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing DTD notation name. "+this.debugInfo(F));if(!O.pubID&&!O.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(F));this.name=this.stringify.name(F),this.type=v.NotationDeclaration,null!=O.pubID&&(this.pubID=this.stringify.dtdPubID(O.pubID)),null!=O.sysID&&(this.sysID=this.stringify.dtdSysID(O.sysID))}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),Object.defineProperty(_.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(_.prototype,"systemId",{get:function(){return this.sysID}}),_.prototype.toString=function(E){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},4789:function(oe,ce,x){(function(){var v,V,W,b={}.hasOwnProperty;W=x(3452).isObject,V=x(8563),v=x(2269),oe.exports=function(_){function E(F,O,J,q){var S;E.__super__.constructor.call(this,F),W(O)&&(O=(S=O).version,J=S.encoding,q=S.standalone),O||(O="1.0"),this.type=v.Declaration,this.version=this.stringify.xmlVersion(O),null!=J&&(this.encoding=this.stringify.xmlEncoding(J)),null!=q&&(this.standalone=this.stringify.xmlStandalone(q))}return function(_,E){for(var F in E)b.call(E,F)&&(_[F]=E[F]);function O(){this.constructor=_}O.prototype=E.prototype,_.prototype=new O,_.__super__=E.prototype}(E,_),E.prototype.toString=function(F){return this.options.writer.declaration(this,this.options.writer.filterOptions(F))},E}(V)}).call(this)},9195:function(oe,ce,x){(function(){var v,k,V,W,G,_,E,F,J={}.hasOwnProperty;F=x(3452).isObject,E=x(8563),v=x(2269),k=x(7274),W=x(8349),V=x(2068),G=x(3087),_=x(5264),oe.exports=function(q){function S(I,M,X){var Q,w,B,y,g,m;if(S.__super__.constructor.call(this,I),this.type=v.DocType,I.children)for(w=0,B=(y=I.children).length;w=0;)this.up();return this.onEnd()},ne.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ne.prototype.openNode=function(H){var he,pe,Le;if(!H.isOpen){if(!this.root&&0===this.currentLevel&&H.type===v.Element&&(this.root=H),he="",H.type===v.Element){for(pe in this.writerOptions.state=k.OpenTag,he=this.writer.indent(H,this.writerOptions,this.currentLevel)+"<"+H.name,Le=H.attribs)!P.call(Le,pe)||(he+=this.writer.attribute(Le[pe],this.writerOptions,this.currentLevel));he+=(H.children?">":"/>")+this.writer.endline(H,this.writerOptions,this.currentLevel),this.writerOptions.state=k.InsideTag}else this.writerOptions.state=k.OpenTag,he=this.writer.indent(H,this.writerOptions,this.currentLevel)+""),he+=this.writer.endline(H,this.writerOptions,this.currentLevel);return this.onData(he,this.currentLevel),H.isOpen=!0}},ne.prototype.closeNode=function(H){var se;if(!H.isClosed)return"",this.writerOptions.state=k.CloseTag,se=H.type===v.Element?this.writer.indent(H,this.writerOptions,this.currentLevel)+""+this.writer.endline(H,this.writerOptions,this.currentLevel):this.writer.indent(H,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(H,this.writerOptions,this.currentLevel),this.writerOptions.state=k.None,this.onData(se,this.currentLevel),H.isClosed=!0},ne.prototype.onData=function(H,se){return this.documentStarted=!0,this.onDataCallback(H,se+1)},ne.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ne.prototype.debugInfo=function(H){return null==H?"":"node: <"+H+">"},ne.prototype.ele=function(){return this.element.apply(this,arguments)},ne.prototype.nod=function(H,se,he){return this.node(H,se,he)},ne.prototype.txt=function(H){return this.text(H)},ne.prototype.dat=function(H){return this.cdata(H)},ne.prototype.com=function(H){return this.comment(H)},ne.prototype.ins=function(H,se){return this.instruction(H,se)},ne.prototype.dec=function(H,se,he){return this.declaration(H,se,he)},ne.prototype.dtd=function(H,se,he){return this.doctype(H,se,he)},ne.prototype.e=function(H,se,he){return this.element(H,se,he)},ne.prototype.n=function(H,se,he){return this.node(H,se,he)},ne.prototype.t=function(H){return this.text(H)},ne.prototype.d=function(H){return this.cdata(H)},ne.prototype.c=function(H){return this.comment(H)},ne.prototype.r=function(H){return this.raw(H)},ne.prototype.i=function(H,se){return this.instruction(H,se)},ne.prototype.att=function(){return this.currentNode&&this.currentNode.type===v.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ne.prototype.a=function(){return this.currentNode&&this.currentNode.type===v.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ne.prototype.ent=function(H,se){return this.entity(H,se)},ne.prototype.pent=function(H,se){return this.pEntity(H,se)},ne.prototype.not=function(H,se){return this.notation(H,se)},ne}()}).call(this)},4173:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E){_.__super__.constructor.call(this,E),this.type=v.Dummy}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.clone=function(){return Object.create(this)},_.prototype.toString=function(E){return""},_}(V)}).call(this)},3352:function(oe,ce,x){(function(){var v,k,W,G,b,_,E,F,J={}.hasOwnProperty;F=x(3452),E=F.isObject,_=F.isFunction,b=F.getValue,G=x(8563),v=x(2269),k=x(5968),W=x(5264),oe.exports=function(q){function S(I,M,X){var Q,w,B,y;if(S.__super__.constructor.call(this,I),null==M)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(M),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,null!=X&&this.attribute(X),I.type===v.Document&&(this.isRoot=!0,this.documentObject=I,I.rootObject=this,I.children))for(w=0,B=(y=I.children).length;w=Q;M=0<=Q?++X:--X)if(!this.attribs[M].isEqualNode(I.attribs[M]))return!1;return!0},S}(G)}).call(this)},5264:function(oe){(function(){oe.exports=function(){function x(v){this.nodes=v}return Object.defineProperty(x.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),x.prototype.clone=function(){return this.nodes=null},x.prototype.getNamedItem=function(v){return this.nodes[v]},x.prototype.setNamedItem=function(v){var k;return k=this.nodes[v.nodeName],this.nodes[v.nodeName]=v,k||null},x.prototype.removeNamedItem=function(v){var k;return k=this.nodes[v],delete this.nodes[v],k||null},x.prototype.item=function(v){return this.nodes[Object.keys(this.nodes)[v]]||null},x.prototype.getNamedItemNS=function(v,k){throw new Error("This DOM method is not implemented.")},x.prototype.setNamedItemNS=function(v){throw new Error("This DOM method is not implemented.")},x.prototype.removeNamedItemNS=function(v,k){throw new Error("This DOM method is not implemented.")},x}()}).call(this)},8563:function(oe,ce,x){(function(){var v,k,V,W,G,b,_,E,J,q,S,I,M,X,Q,w,B,y={}.hasOwnProperty;B=x(3452),w=B.isObject,Q=B.isFunction,X=B.isEmpty,M=B.getValue,E=null,V=null,W=null,G=null,b=null,S=null,I=null,q=null,_=null,k=null,J=null,v=null,oe.exports=function(){function g(m){this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,E||(E=x(3352),V=x(1361),W=x(2516),G=x(4789),b=x(9195),S=x(9942),I=x(474),q=x(4666),_=x(4173),k=x(2269),J=x(5112),x(5264),v=x(599))}return Object.defineProperty(g.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(g.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(g.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(g.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new J(this.children)),this.childNodeList}}),Object.defineProperty(g.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(g.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(g.prototype,"previousSibling",{get:function(){var m;return m=this.parent.children.indexOf(this),this.parent.children[m-1]||null}}),Object.defineProperty(g.prototype,"nextSibling",{get:function(){var m;return m=this.parent.children.indexOf(this),this.parent.children[m+1]||null}}),Object.defineProperty(g.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(g.prototype,"textContent",{get:function(){var m,T,K,P,ne;if(this.nodeType===k.Element||this.nodeType===k.DocumentFragment){for(ne="",T=0,K=(P=this.children).length;T":null!=(K=this.parent)&&K.name?"node: <"+m+">, parent: <"+this.parent.name+">":"node: <"+m+">":""},g.prototype.ele=function(m,T,K){return this.element(m,T,K)},g.prototype.nod=function(m,T,K){return this.node(m,T,K)},g.prototype.txt=function(m){return this.text(m)},g.prototype.dat=function(m){return this.cdata(m)},g.prototype.com=function(m){return this.comment(m)},g.prototype.ins=function(m,T){return this.instruction(m,T)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(m,T,K){return this.declaration(m,T,K)},g.prototype.e=function(m,T,K){return this.element(m,T,K)},g.prototype.n=function(m,T,K){return this.node(m,T,K)},g.prototype.t=function(m){return this.text(m)},g.prototype.d=function(m){return this.cdata(m)},g.prototype.c=function(m){return this.comment(m)},g.prototype.r=function(m){return this.raw(m)},g.prototype.i=function(m,T){return this.instruction(m,T)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(m){return this.importDocument(m)},g.prototype.replaceChild=function(m,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return 0!==this.children.length},g.prototype.cloneNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(m,T){return!0},g.prototype.hasAttributes=function(){return 0!==this.attribs.length},g.prototype.compareDocumentPosition=function(m){var T,K;return(T=this)===m?0:this.document()!==m.document()?(K=v.Disconnected|v.ImplementationSpecific,Math.random()<.5?K|=v.Preceding:K|=v.Following,K):T.isAncestor(m)?v.Contains|v.Preceding:T.isDescendant(m)?v.Contains|v.Following:T.isPreceding(m)?v.Preceding:v.Following},g.prototype.isSameNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(m){var T,K,P;if(m.nodeType!==this.nodeType||m.children.length!==this.children.length)return!1;for(T=K=0,P=this.children.length-1;0<=P?K<=P:K>=P;T=0<=P?++K:--K)if(!this.children[T].isEqualNode(m.children[T]))return!1;return!0},g.prototype.getFeature=function(m,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(m,T,K){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(m){return!!m&&(m===this||this.isDescendant(m))},g.prototype.isDescendant=function(m){var T,P,ne,H;for(P=0,ne=(H=this.children).length;PK},g.prototype.treePosition=function(m){var T,K;return K=0,T=!1,this.foreachTreeNode(this.document(),function(P){if(K++,!T&&P===m)return T=!0}),T?K:-1},g.prototype.foreachTreeNode=function(m,T){var K,P,ne,H,se;for(m||(m=this.document()),P=0,ne=(H=m.children).length;P0){for(this.stream.write(" ["),this.stream.write(this.endline(F,O,J)),O.state=k.InsideTag,S=0,I=(M=F.children).length;S"),this.stream.write(this.endline(F,O,J)),O.state=k.None,this.closeNode(F,O,J)},E.prototype.element=function(F,O,J){var I,M,X,Q,w,y,g;for(w in J||(J=0),this.openNode(F,O,J),O.state=k.OpenTag,this.stream.write(this.indent(F,O,J)+"<"+F.name),y=F.attribs)!b.call(y,w)||this.attribute(y[w],O,J);if(M=0===(I=F.children.length)?null:F.children[0],0===I||F.children.every(function(m){return(m.type===v.Text||m.type===v.Raw)&&""===m.value}))O.allowEmpty?(this.stream.write(">"),O.state=k.CloseTag,this.stream.write("")):(O.state=k.CloseTag,this.stream.write(O.spaceBeforeSlash+"/>"));else if(!O.pretty||1!==I||M.type!==v.Text&&M.type!==v.Raw||null==M.value){for(this.stream.write(">"+this.endline(F,O,J)),O.state=k.InsideTag,X=0,Q=(g=F.children).length;X")}else this.stream.write(">"),O.state=k.InsideTag,O.suppressPrettyCount++,this.writeChildNode(M,O,J+1),O.suppressPrettyCount--,O.state=k.CloseTag,this.stream.write("");return this.stream.write(this.endline(F,O,J)),O.state=k.None,this.closeNode(F,O,J)},E.prototype.processingInstruction=function(F,O,J){return this.stream.write(E.__super__.processingInstruction.call(this,F,O,J))},E.prototype.raw=function(F,O,J){return this.stream.write(E.__super__.raw.call(this,F,O,J))},E.prototype.text=function(F,O,J){return this.stream.write(E.__super__.text.call(this,F,O,J))},E.prototype.dtdAttList=function(F,O,J){return this.stream.write(E.__super__.dtdAttList.call(this,F,O,J))},E.prototype.dtdElement=function(F,O,J){return this.stream.write(E.__super__.dtdElement.call(this,F,O,J))},E.prototype.dtdEntity=function(F,O,J){return this.stream.write(E.__super__.dtdEntity.call(this,F,O,J))},E.prototype.dtdNotation=function(F,O,J){return this.stream.write(E.__super__.dtdNotation.call(this,F,O,J))},E}(W)}).call(this)},4354:function(oe,ce,x){(function(){var k,W={}.hasOwnProperty;k=x(3576),oe.exports=function(G){function b(_){b.__super__.constructor.call(this,_)}return function(G,b){for(var _ in b)W.call(b,_)&&(G[_]=b[_]);function E(){this.constructor=G}E.prototype=b.prototype,G.prototype=new E,G.__super__=b.prototype}(b,G),b.prototype.document=function(_,E){var O,J,q,S;for(E=this.filterOptions(E),q="",O=0,J=(S=_.children).length;O","]]]]>"),this.assertLegalChar(V))},k.prototype.comment=function(V){if(this.options.noValidation)return V;if((V=""+V||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+V);return this.assertLegalChar(V)},k.prototype.raw=function(V){return this.options.noValidation?V:""+V||""},k.prototype.attValue=function(V){return this.options.noValidation?V:this.assertLegalChar(this.attEscape(V=""+V||""))},k.prototype.insTarget=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.insValue=function(V){if(this.options.noValidation)return V;if((V=""+V||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+V);return this.assertLegalChar(V)},k.prototype.xmlVersion=function(V){if(this.options.noValidation)return V;if(!(V=""+V||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+V);return V},k.prototype.xmlEncoding=function(V){if(this.options.noValidation)return V;if(!(V=""+V||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+V);return this.assertLegalChar(V)},k.prototype.xmlStandalone=function(V){return this.options.noValidation?V:V?"yes":"no"},k.prototype.dtdPubID=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdSysID=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdElementValue=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdAttType=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdAttDefault=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdEntityValue=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdNData=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(V){var G;if(this.options.noValidation)return V;if("1.0"===this.options.version){if(G=V.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+V+" at index "+G.index)}else if("1.1"===this.options.version&&(G=V.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+V+" at index "+G.index);return V},k.prototype.assertLegalName=function(V){if(this.options.noValidation)return V;if(this.assertLegalChar(V),!V.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw new Error("Invalid character in name");return V},k.prototype.textEscape=function(V){return this.options.noValidation?V:V.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(//g,">").replace(/\r/g," ")},k.prototype.attEscape=function(V){return this.options.noValidation?V:V.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(/0?new Array(T).join(g.indent):""},B.prototype.endline=function(y,g,m){return!g.pretty||g.suppressPrettyCount?"":g.newline},B.prototype.attribute=function(y,g,m){var T;return this.openAttribute(y,g,m),T=" "+y.name+'="'+y.value+'"',this.closeAttribute(y,g,m),T},B.prototype.cdata=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.comment=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+"\x3c!-- ",g.state=k.InsideTag,T+=y.value,g.state=k.CloseTag,T+=" --\x3e"+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.declaration=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+"",T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.docType=function(y,g,m){var K,P,ne,H;if(m||(m=0),this.openNode(y,g,m),g.state=k.OpenTag,ne=this.indent(y,g,m),ne+="0){for(ne+=" [",ne+=this.endline(y,g,m),g.state=k.InsideTag,K=0,P=(H=y.children).length;K",ne+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),ne},B.prototype.element=function(y,g,m){var K,P,ne,H,se,he,pe,Le,Je,Ae,Et,_e,ln;for(Le in m||(m=0),Je=!1,Ae="",this.openNode(y,g,m),g.state=k.OpenTag,Ae+=this.indent(y,g,m)+"<"+y.name,Et=y.attribs)!w.call(Et,Le)||(Ae+=this.attribute(Et[Le],g,m));if(ne=0===(P=y.children.length)?null:y.children[0],0===P||y.children.every(function(Ze){return(Ze.type===v.Text||Ze.type===v.Raw)&&""===Ze.value}))g.allowEmpty?(Ae+=">",g.state=k.CloseTag,Ae+=""+this.endline(y,g,m)):(g.state=k.CloseTag,Ae+=g.spaceBeforeSlash+"/>"+this.endline(y,g,m));else if(!g.pretty||1!==P||ne.type!==v.Text&&ne.type!==v.Raw||null==ne.value){if(g.dontPrettyTextNodes)for(H=0,he=(_e=y.children).length;H"+this.endline(y,g,m),g.state=k.InsideTag,se=0,pe=(ln=y.children).length;se",Je&&g.suppressPrettyCount--,Ae+=this.endline(y,g,m),g.state=k.None}else Ae+=">",g.state=k.InsideTag,g.suppressPrettyCount++,Je=!0,Ae+=this.writeChildNode(ne,g,m+1),g.suppressPrettyCount--,Je=!1,g.state=k.CloseTag,Ae+=""+this.endline(y,g,m);return this.closeNode(y,g,m),Ae},B.prototype.writeChildNode=function(y,g,m){switch(y.type){case v.CData:return this.cdata(y,g,m);case v.Comment:return this.comment(y,g,m);case v.Element:return this.element(y,g,m);case v.Raw:return this.raw(y,g,m);case v.Text:return this.text(y,g,m);case v.ProcessingInstruction:return this.processingInstruction(y,g,m);case v.Dummy:return"";case v.Declaration:return this.declaration(y,g,m);case v.DocType:return this.docType(y,g,m);case v.AttributeDeclaration:return this.dtdAttList(y,g,m);case v.ElementDeclaration:return this.dtdElement(y,g,m);case v.EntityDeclaration:return this.dtdEntity(y,g,m);case v.NotationDeclaration:return this.dtdNotation(y,g,m);default:throw new Error("Unknown XML node type: "+y.constructor.name)}},B.prototype.processingInstruction=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+"",T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.raw=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m),g.state=k.InsideTag,T+=y.value,g.state=k.CloseTag,T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.text=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m),g.state=k.InsideTag,T+=y.value,g.state=k.CloseTag,T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdAttList=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdElement=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdEntity=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdNotation=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.openNode=function(y,g,m){},B.prototype.closeNode=function(y,g,m){},B.prototype.openAttribute=function(y,g,m){},B.prototype.closeAttribute=function(y,g,m){},B}()}).call(this)},7904:function(oe,ce,x){(function(){var v,k,V,W,G,b,_,E,F,O;O=x(3452),E=O.assign,F=O.isFunction,V=x(9906),W=x(519),G=x(1105),_=x(4354),b=x(7647),v=x(2269),k=x(6316),oe.exports.create=function(J,q,S,I){var M,X;if(null==J)throw new Error("Root element needs a name.");return I=E({},q,S,I),X=(M=new W(I)).element(J),I.headless||(M.declaration(I),(null!=I.pubID||null!=I.sysID)&&M.dtd(I)),X},oe.exports.begin=function(J,q,S){var I;return F(J)&&(q=(I=[J,q])[0],S=I[1],J={}),q?new G(J,q,S):new W(J)},oe.exports.stringWriter=function(J){return new _(J)},oe.exports.streamWriter=function(J,q){return new b(J,q)},oe.exports.implementation=new V,oe.exports.nodeType=v,oe.exports.writerState=k}).call(this)},2361:()=>{},4616:()=>{}},oe=>{oe(oe.s=7729)}]); \ No newline at end of file diff --git a/main.d6c8130e7a96353c.js b/main.d6c8130e7a96353c.js new file mode 100644 index 0000000..6870e15 --- /dev/null +++ b/main.d6c8130e7a96353c.js @@ -0,0 +1 @@ +(self.webpackChunkburp_http_history_browser=self.webpackChunkburp_http_history_browser||[]).push([[179],{7729:(oe,ce,x)=>{"use strict";function v(n){return"function"==typeof n}function k(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const V=k(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function W(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class G{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(v(i))try{i()}catch(o){t=o instanceof V?o.errors:[o]}const{_teardowns:r}=this;if(r){this._teardowns=null;for(const o of r)try{E(o)}catch(s){t=null!=t?t:[],s instanceof V?t=[...t,...s.errors]:t.push(s)}}if(t)throw new V(t)}}add(t){var e;if(t&&t!==this)if(this.closed)E(t);else{if(t instanceof G){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&W(e,t)}remove(t){const{_teardowns:e}=this;e&&W(e,t),t instanceof G&&t._removeParent(this)}}G.EMPTY=(()=>{const n=new G;return n.closed=!0,n})();const b=G.EMPTY;function _(n){return n instanceof G||n&&"closed"in n&&v(n.remove)&&v(n.add)&&v(n.unsubscribe)}function E(n){v(n)?n():n.unsubscribe()}const F={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},O={setTimeout(...n){const{delegate:t}=O;return((null==t?void 0:t.setTimeout)||setTimeout)(...n)},clearTimeout(n){const{delegate:t}=O;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function J(n){O.setTimeout(()=>{const{onUnhandledError:t}=F;if(!t)throw n;t(n)})}function X(){}const S=q("C",void 0,void 0);function q(n,t,e){return{kind:n,value:t,error:e}}let Q=null;function w(n){if(F.useDeprecatedSynchronousErrorHandling){const t=!Q;if(t&&(Q={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=Q;if(Q=null,e)throw i}}else n()}class y extends G{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_(t)&&t.add(this)):this.destination=P}static create(t,e,i){return new g(t,e,i)}next(t){this.isStopped?K(function M(n){return q("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?K(function I(n){return q("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?K(S,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class g extends y{constructor(t,e,i){let r;if(super(),v(t))r=t;else if(t){let o;({next:r,error:e,complete:i}=t),this&&F.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe()):o=t,r=null==r?void 0:r.bind(o),e=null==e?void 0:e.bind(o),i=null==i?void 0:i.bind(o)}this.destination={next:r?m(r):X,error:m(null!=e?e:T),complete:i?m(i):X}}}function m(n,t){return(...e)=>{try{n(...e)}catch(i){F.useDeprecatedSynchronousErrorHandling?function B(n){F.useDeprecatedSynchronousErrorHandling&&Q&&(Q.errorThrown=!0,Q.error=n)}(i):J(i)}}}function T(n){throw n}function K(n,t){const{onStoppedNotification:e}=F;e&&O.setTimeout(()=>e(n,t))}const P={closed:!0,next:X,error:T,complete:X},ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function j(n){return n}let pe=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function Ae(n){return n&&n instanceof y||function Je(n){return n&&v(n.next)&&v(n.error)&&v(n.complete)}(n)&&_(n)}(e)?e:new g(e,i,r);return w(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Le(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),null==s||s.unsubscribe()}},o,r)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ne](){return this}pipe(...e){return function he(n){return 0===n.length?j:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Le(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function Le(n){var t;return null!==(t=null!=n?n:F.Promise)&&void 0!==t?t:Promise}const Ct=k(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _e=(()=>{class n extends pe{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new ln(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ct}next(e){w(()=>{if(this._throwIfClosed(),!this.isStopped){const i=this.observers.slice();for(const r of i)r.next(e)}})}error(e){w(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){w(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?b:(o.push(e),new G(()=>W(o,e)))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new pe;return e.source=this,e}}return n.create=(t,e)=>new ln(t,e),n})();class ln extends _e{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:b}}function Ze(n){return v(null==n?void 0:n.lift)}function Xe(n){return t=>{if(Ze(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}class pt extends y{constructor(t,e,i,r,o){super(t),this.onFinalize=o,this._next=e?function(s){try{e(s)}catch(a){t.error(a)}}:super._next,this._error=r?function(s){try{r(s)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}function it(n,t){return Xe((e,i)=>{let r=0;e.subscribe(new pt(i,o=>{i.next(n.call(t,o,r++))}))})}function de(n){return this instanceof de?(this.v=n,this):new de(n)}function ve(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(D){i[D]&&(r[D]=function(R){return new Promise(function(Y,ee){o.push([D,R,Y,ee])>1||a(D,R)})})}function a(D,R){try{!function l(D){D.value instanceof de?Promise.resolve(D.value.v).then(c,u):h(o[0][2],D)}(i[D](R))}catch(Y){h(o[0][3],Y)}}function c(D){a("next",D)}function u(D){a("throw",D)}function h(D,R){D(R),o.shift(),o.length&&a(o[0][0],o[0][1])}}function ct(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function C(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[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=n[o](s)).done,s.value)})}}}const Su=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function yg(n){return v(null==n?void 0:n.then)}function vg(n){return v(n[ne])}function bg(n){return Symbol.asyncIterator&&v(null==n?void 0:n[Symbol.asyncIterator])}function wg(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Dg=function EC(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Eg(n){return v(null==n?void 0:n[Dg])}function Cg(n){return ve(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield de(e.read());if(r)return yield de(void 0);yield yield de(i)}}finally{e.releaseLock()}})}function Sg(n){return v(null==n?void 0:n.getReader)}function Gn(n){if(n instanceof pe)return n;if(null!=n){if(vg(n))return function CC(n){return new pe(t=>{const e=n[ne]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Su(n))return function SC(n){return new pe(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,J)})}(n);if(bg(n))return Tg(n);if(Eg(n))return function MC(n){return new pe(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(Sg(n))return function AC(n){return Tg(Cg(n))}(n)}throw wg(n)}function Tg(n){return new pe(t=>{(function IC(n,t){var e,i,r,o;return function Re(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(h){s(h)}}function l(u){try{c(i.throw(u))}catch(h){s(h)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=ct(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function er(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function mo(n,t,e=1/0){return v(t)?mo((i,r)=>it((o,s)=>t(i,o,r,s))(Gn(n(i,r))),e):("number"==typeof t&&(e=t),Xe((i,r)=>function xC(n,t,e,i,r,o,s,a){const l=[];let c=0,u=0,h=!1;const D=()=>{h&&!l.length&&!c&&t.complete()},R=ee=>c{o&&t.next(ee),c++;let re=!1;Gn(e(ee,u++)).subscribe(new pt(t,ue=>{null==r||r(ue),o?R(ue):t.next(ue)},()=>{re=!0},void 0,()=>{if(re)try{for(c--;l.length&&cY(ue)):Y(ue)}D()}catch(ue){t.error(ue)}}))};return n.subscribe(new pt(t,R,()=>{h=!0,D()})),()=>{null==a||a()}}(i,r,n,e)))}function Mg(n=1/0){return mo(j,n)}const Tu=new pe(n=>n.complete());function Ag(n){return n&&v(n.schedule)}function Mu(n){return n[n.length-1]}function Ig(n){return v(Mu(n))?n.pop():void 0}function As(n){return Ag(Mu(n))?n.pop():void 0}function xg(n,t=0){return Xe((e,i)=>{e.subscribe(new pt(i,r=>er(i,n,()=>i.next(r),t),()=>er(i,n,()=>i.complete(),t),r=>er(i,n,()=>i.error(r),t)))})}function Rg(n,t=0){return Xe((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function Og(n,t){if(!n)throw new Error("Iterable cannot be null");return new pe(e=>{er(e,t,()=>{const i=n[Symbol.asyncIterator]();er(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Dr(n,t){return t?function BC(n,t){if(null!=n){if(vg(n))return function PC(n,t){return Gn(n).pipe(Rg(t),xg(t))}(n,t);if(Su(n))return function NC(n,t){return new pe(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(yg(n))return function kC(n,t){return Gn(n).pipe(Rg(t),xg(t))}(n,t);if(bg(n))return Og(n,t);if(Eg(n))return function FC(n,t){return new pe(e=>{let i;return er(e,t,()=>{i=n[Dg](),er(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>v(null==i?void 0:i.return)&&i.return()})}(n,t);if(Sg(n))return function LC(n,t){return Og(Cg(n),t)}(n,t)}throw wg(n)}(n,t):Gn(n)}function Fi(...n){const t=As(n),e=function OC(n,t){return"number"==typeof Mu(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Gn(i[0]):Mg(e)(Dr(i,t)):Tu}function zt(n){return n<=0?()=>Tu:Xe((t,e)=>{let i=0;t.subscribe(new pt(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function Pg(n={}){const{connector:t=(()=>new _e),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s=null,a=null,l=null,c=0,u=!1,h=!1;const D=()=>{null==a||a.unsubscribe(),a=null},R=()=>{D(),s=l=null,u=h=!1},Y=()=>{const ee=s;R(),null==ee||ee.unsubscribe()};return Xe((ee,re)=>{c++,!h&&!u&&D();const ue=l=null!=l?l:t();re.add(()=>{c--,0===c&&!h&&!u&&(a=Au(Y,r))}),ue.subscribe(re),s||(s=new g({next:be=>ue.next(be),error:be=>{h=!0,D(),a=Au(R,e,be),ue.error(be)},complete:()=>{u=!0,D(),a=Au(R,i),ue.complete()}}),Dr(ee).subscribe(s))})(o)}}function Au(n,t,...e){return!0===t?(n(),null):!1===t?null:t(...e).pipe(zt(1)).subscribe(()=>n())}function Tt(n){for(let t in n)if(n[t]===Tt)return t;throw Error("Could not find renamed property on target object.")}function Iu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Mt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Mt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function xu(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const VC=Tt({__forward_ref__:Tt});function Ru(n){return n.__forward_ref__=Ru,n.toString=function(){return Mt(this())},n}function He(n){return Ou(n)?n():n}function Ou(n){return"function"==typeof n&&n.hasOwnProperty(VC)&&n.__forward_ref__===Ru}class Ce extends Error{constructor(t,e){super(function Za(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function We(n){return"string"==typeof n?n:null==n?"":String(n)}function Qa(n,t){throw new Ce(-201,!1)}function Xn(n,t){null==n&&function gt(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Ie(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function mt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pu(n){return kg(n,Ja)||kg(n,Fg)}function kg(n,t){return n.hasOwnProperty(t)?n[t]:null}function Ng(n){return n&&(n.hasOwnProperty(ku)||n.hasOwnProperty(qC))?n[ku]:null}const Ja=Tt({\u0275prov:Tt}),ku=Tt({\u0275inj:Tt}),Fg=Tt({ngInjectableDef:Tt}),qC=Tt({ngInjectorDef:Tt});var Ue=(()=>((Ue=Ue||{})[Ue.Default=0]="Default",Ue[Ue.Host=1]="Host",Ue[Ue.Self=2]="Self",Ue[Ue.SkipSelf=4]="SkipSelf",Ue[Ue.Optional=8]="Optional",Ue))();let Nu;function ci(n){const t=Nu;return Nu=n,t}function Lg(n,t,e){const i=Pu(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ue.Optional?null:void 0!==t?t:void Qa(Mt(n))}function Er(n){return{toString:n}.toString()}var bi=(()=>((bi=bi||{})[bi.OnPush=0]="OnPush",bi[bi.Default=1]="Default",bi))(),wi=(()=>{return(n=wi||(wi={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",wi;var n})();const Dt=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),_o={},ht=[],el=Tt({\u0275cmp:Tt}),Fu=Tt({\u0275dir:Tt}),Lu=Tt({\u0275pipe:Tt}),Bg=Tt({\u0275mod:Tt}),nr=Tt({\u0275fac:Tt}),Is=Tt({__NG_ELEMENT_ID__:Tt});let YC=0;function At(n){return Er(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===bi.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ht,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||wi.Emulated,id:"c"+YC++,styles:n.styles||ht,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=jg(n.inputs,i),r.outputs=jg(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vg).filter(Hg):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Sn).filter(Hg):null,r})}function Vg(n){return bt(n)||Cn(n)}function Hg(n){return null!==n}function vt(n){return Er(()=>({type:n.type,bootstrap:n.bootstrap||ht,declarations:n.declarations||ht,imports:n.imports||ht,exports:n.exports||ht,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function jg(n,t){if(null==n)return _o;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const Pe=At;function Fn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function bt(n){return n[el]||null}function Cn(n){return n[Fu]||null}function Sn(n){return n[Lu]||null}function Ln(n){return Array.isArray(n)&&"object"==typeof n[1]}function Ei(n){return Array.isArray(n)&&!0===n[1]}function Hu(n){return 0!=(8&n.flags)}function rl(n){return 2==(2&n.flags)}function ol(n){return 1==(1&n.flags)}function Ci(n){return null!==n.template}function tS(n){return 0!=(256&n[2])}function Kr(n,t){return n.hasOwnProperty(nr)?n[nr]:null}class rS{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Li(){return $g}function $g(n){return n.type.prototype.ngOnChanges&&(n.setInput=sS),oS}function oS(){const n=Gg(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===_o)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function sS(n,t,e,i){const r=Gg(n)||function aS(n,t){return n[Wg]=t}(n,{previous:_o,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new rS(l&&l.currentValue,t,s===_o),n[i]=t}Li.ngInherit=!0;const Wg="__ngSimpleChanges__";function Gg(n){return n[Wg]||null}function Gt(n){for(;Array.isArray(n);)n=n[0];return n}function sl(n,t){return Gt(t[n])}function hi(n,t){return Gt(t[n.index])}function Wu(n,t){return n.data[t]}function Do(n,t){return n[t]}function Zn(n,t){const e=t[n];return Ln(e)?e:e[0]}function qg(n){return 4==(4&n[2])}function al(n){return 64==(64&n[2])}function Cr(n,t){return null==t?null:n[t]}function Xg(n){n[18]=0}function Gu(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const ze={lFrame:im(null),bindingsEnabled:!0};function Kg(){return ze.bindingsEnabled}function ge(){return ze.lFrame.lView}function ot(){return ze.lFrame.tView}function Bn(n){return ze.lFrame.contextLView=n,n[8]}function Vn(n){return ze.lFrame.contextLView=null,n}function Zt(){let n=Zg();for(;null!==n&&64===n.type;)n=n.parent;return n}function Zg(){return ze.lFrame.currentTNode}function Bi(n,t){const e=ze.lFrame;e.currentTNode=n,e.isParent=t}function qu(){return ze.lFrame.isParent}function Xu(){ze.lFrame.isParent=!1}function Eo(){return ze.lFrame.bindingIndex++}function wS(n,t){const e=ze.lFrame;e.bindingIndex=e.bindingRootIndex=n,Yu(t)}function Yu(n){ze.lFrame.currentDirectiveIndex=n}function Ku(n){const t=ze.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function em(){return ze.lFrame.currentQueryIndex}function Zu(n){ze.lFrame.currentQueryIndex=n}function ES(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function tm(n,t,e){if(e&Ue.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&Ue.Host||(r=ES(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=ze.lFrame=nm();return i.currentTNode=t,i.lView=n,!0}function Qu(n){const t=nm(),e=n[1];ze.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function nm(){const n=ze.lFrame,t=null===n?null:n.child;return null===t?im(n):t}function im(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function rm(){const n=ze.lFrame;return ze.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const om=rm;function Ju(){const n=rm();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Mn(){return ze.lFrame.selectedIndex}function Sr(n){ze.lFrame.selectedIndex=n}function Bt(){const n=ze.lFrame;return Wu(n.tView,n.selectedIndex)}function An(){ze.lFrame.currentNamespace="svg"}function Qn(){!function MS(){ze.lFrame.currentNamespace=null}()}function cl(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class ks{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function hl(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let nd=!0;function pl(n){const t=nd;return nd=n,t}let FS=0;const Vi={};function Fs(n,t){const e=rd(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,id(i.data,n),id(t,null),id(i.blueprint,null));const r=gl(n,t),o=n.injectorIndex;if(um(r)){const s=Co(r),a=So(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function id(n,t){n.push(0,0,0,0,0,0,0,0,t)}function rd(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function gl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=vm(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ml(n,t,e){!function LS(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Is)&&(i=e[Is]),null==i&&(i=e[Is]=FS++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:jS:t}(e);if("function"==typeof o){if(!tm(t,n,i))return i&Ue.Host?fm(r,0,i):pm(t,e,i,r);try{const s=o(i);if(null!=s||i&Ue.Optional)return s;Qa()}finally{om()}}else if("number"==typeof o){let s=null,a=rd(n,t),l=-1,c=i&Ue.Host?t[16][6]:null;for((-1===a||i&Ue.SkipSelf)&&(l=-1===a?gl(n,t):t[a+8],-1!==l&&ym(i,!1)?(s=t[1],a=Co(l),t=So(l,t)):a=-1);-1!==a;){const u=t[1];if(_m(o,a,u.data)){const h=VS(a,t,e,s,i,c);if(h!==Vi)return h}l=t[a+8],-1!==l&&ym(i,t[1].data[a+8]===c)&&_m(o,a,t)?(s=u,a=Co(l),t=So(l,t)):a=-1}}return r}function VS(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=_l(a,s,e,null==i?rl(a)&&nd:i!=s&&0!=(3&a.type),r&Ue.Host&&o===a);return null!==u?Ls(t,s,u,a):Vi}function _l(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,D=r?a+u:n.directiveEnd;for(let R=i?a:a+u;R=l&&Y.type===e)return R}if(r){const R=s[l];if(R&&Ci(R)&&R.type===e)return l}return null}function Ls(n,t,e,i){let r=n[e];const o=t.data;if(function RS(n){return n instanceof ks}(r)){const s=r;s.resolving&&function HC(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Ce(-200,`Circular dependency in DI detected for ${n}${e}`)}(function dt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():We(n)}(o[e]));const a=pl(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ci(s.injectImpl):null;tm(n,i,Ue.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function IS(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=$g(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&ci(l),pl(a),s.resolving=!1,om()}}return r}function _m(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[nr]||od(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[nr]||od(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function od(n){return Ou(n)?()=>{const t=od(He(n));return t&&t()}:Kr(n)}function vm(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Bs(n){return function BS(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function sd(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const h=l.hasOwnProperty(Ao)?l[Ao]:Object.defineProperty(l,Ao,{value:[]})[Ao];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class Ee{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Ie({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Jn(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?or(e,t):t(e))}function wm(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function yl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function js(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function GS(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function ld(n,t){const e=Ro(n,t);if(e>=0)return n[1|e]}function Ro(n,t){return function Cm(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return El}())||void 0===t?void 0:t.createHTML(n))||n}class Zr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yT extends Zr{getTypeName(){return"HTML"}}class vT extends Zr{getTypeName(){return"Style"}}class bT extends Zr{getTypeName(){return"Script"}}class wT extends Zr{getTypeName(){return"URL"}}class DT extends Zr{getTypeName(){return"ResourceURL"}}function ti(n){return n instanceof Zr?n.changingThisBreaksApplicationSecurity:n}function Hi(n,t){const e=function ET(n){return n instanceof Zr&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class IT{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(No(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class xT{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=No(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=No(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0qs(t.trim())).join(", ")),this.buf.push(" ",s,'="',$m(l),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();md.hasOwnProperty(e)&&!Hm.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push($m(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const FT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LT=/([^\#-~ |!])/g;function $m(n){return n.replace(/&/g,"&").replace(FT,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(LT,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Sl;function Wm(n,t){let e=null;try{Sl=Sl||function Bm(n){const t=new xT(n);return function RT(){try{return!!(new window.DOMParser).parseFromString(No(""),"text/html")}catch(n){return!1}}()?new IT(t):t}(n);let i=t?String(t):"";e=Sl.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Sl.getInertBodyElement(i)}while(i!==o);return No((new NT).sanitizeChildren(vd(e)||e))}finally{if(e){const i=vd(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function vd(n){return"content"in n&&function BT(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ft=(()=>((ft=ft||{})[ft.NONE=0]="NONE",ft[ft.HTML=1]="HTML",ft[ft.STYLE=2]="STYLE",ft[ft.SCRIPT=3]="SCRIPT",ft[ft.URL=4]="URL",ft[ft.RESOURCE_URL=5]="RESOURCE_URL",ft))();const Xm=new Ee("ENVIRONMENT_INITIALIZER"),Ym=new Ee("INJECTOR",-1),Km=new Ee("INJECTOR_DEF_TYPES");class Zm{get(t,e=Us){if(e===Us){const i=new Error(`NullInjectorError: No provider for ${Mt(t)}!`);throw i.name="NullInjectorError",i}return e}}function GT(...n){return{\u0275providers:Qm(0,n)}}function Qm(n,...t){const e=[],i=new Set;let r;return or(t,o=>{const s=o;bd(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Jm(r,e),e}function Jm(n,t){for(let e=0;e{t.push(o)})}}function bd(n,t,e,i){if(!(n=He(n)))return!1;let r=null,o=Ng(n);const s=!o&&bt(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Ng(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)bd(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{or(o.imports,u=>{bd(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Jm(c,t)}if(!a){const c=Kr(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:ht},{provide:Km,useValue:r,multi:!0},{provide:Xm,useValue:()=>ae(r),multi:!0})}const l=o.providers;null==l||a||or(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const qT=Tt({provide:String,useValue:Tt});function wd(n){return null!==n&&"object"==typeof n&&qT in n}function Qr(n){return"function"==typeof n}const Dd=new Ee("Set Injector scope."),Tl={},YT={};let Ed;function Ml(){return void 0===Ed&&(Ed=new Zm),Ed}class Fo{}class n_ extends Fo{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Sd(t,s=>this.processProvider(s)),this.records.set(Ym,Lo(void 0,this)),r.has("environment")&&this.records.set(Fo,Lo(void 0,this));const o=this.records.get(Dd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Km.multi,ht,Ue.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Oo(this),i=ci(void 0);try{return t()}finally{Oo(e),ci(i)}}get(t,e=Us,i=Ue.Default){this.assertNotDestroyed();const r=Oo(this),o=ci(void 0);try{if(!(i&Ue.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function eM(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ee}(t)&&Pu(t);a=l&&this.injectableDefInScope(l)?Lo(Cd(t),Tl):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Ue.Self?Ml():this.parent).get(t,e=i&Ue.Optional&&e===Us?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[bl]=s[bl]||[]).unshift(Mt(t)),r)throw s;return function rT(n,t,e,i){const r=n[bl];throw t[Sm]&&r.unshift(t[Sm]),n.message=function oT(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=Mt(t);if(Array.isArray(t))r=t.map(Mt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Mt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(eT,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[bl]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{ci(o),Oo(r)}}resolveInjectorInitializers(){const t=Oo(this),e=ci(void 0);try{const i=this.get(Xm.multi,ht,Ue.Self);for(const r of i)r()}finally{Oo(t),ci(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(Mt(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ce(205,!1)}processProvider(t){let e=Qr(t=He(t))?t:He(t&&t.provide);const i=function ZT(n){return wd(n)?Lo(void 0,n.useValue):Lo(i_(n),Tl)}(t);if(Qr(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Lo(void 0,Tl,!0),r.factory=()=>dd(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Tl&&(e.value=YT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function JT(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=He(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Cd(n){const t=Pu(n),e=null!==t?t.factory:Kr(n);if(null!==e)return e;if(n instanceof Ee)throw new Ce(204,!1);if(n instanceof Function)return function KT(n){const t=n.length;if(t>0)throw js(t,"?"),new Ce(204,!1);const e=function WC(n){const t=n&&(n[Ja]||n[Fg]);if(t){const e=function GC(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Ce(204,!1)}function i_(n,t,e){let i;if(Qr(n)){const r=He(n);return Kr(r)||Cd(r)}if(wd(n))i=()=>He(n.useValue);else if(function t_(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...dd(n.deps||[]));else if(function e_(n){return!(!n||!n.useExisting)}(n))i=()=>ae(He(n.useExisting));else{const r=He(n&&(n.useClass||n.provide));if(!function QT(n){return!!n.deps}(n))return Kr(r)||Cd(r);i=()=>new r(...dd(n.deps))}return i}function Lo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function tM(n){return!!n.\u0275providers}function Sd(n,t){for(const e of n)Array.isArray(e)?Sd(e,t):tM(e)?Sd(e.\u0275providers,t):t(e)}class r_{}class rM{resolveComponentFactory(t){throw function iM(n){const t=Error(`No component factory found for ${Mt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Bo=(()=>{class n{}return n.NULL=new rM,n})();function oM(){return Vo(Zt(),ge())}function Vo(n,t){return new lt(hi(n,t))}let lt=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=oM,n})();function sM(n){return n instanceof lt?n.nativeElement:n}class Ks{}let Al=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function aM(){const n=ge(),e=Zn(Zt().index,n);return(Ln(e)?e:n)[11]}(),n})(),lM=(()=>{class n{}return n.\u0275prov=Ie({token:n,providedIn:"root",factory:()=>null}),n})();class Zs{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const cM=new Zs("14.1.3"),Td={};function Rd(n){return n.ngOriginalError}class ar{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Rd(t);for(;e&&Rd(e);)e=Rd(e);return e||null}}const Od=new Map;let wM=0;const kd="__ngContext__";function yn(n,t){Ln(t)?(n[kd]=t[20],function EM(n){Od.set(n[20],n)}(t)):n[kd]=t}function Qs(n){const t=n[kd];return"number"==typeof t?function d_(n){return Od.get(n)||null}(t):t||null}function Nd(n){const t=Qs(n);return t?Ln(t)?t:t.lView:null}const OM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Dt))();function m_(n){return n.ownerDocument.defaultView}var Hn=(()=>((Hn=Hn||{})[Hn.Important=1]="Important",Hn[Hn.DashCase=2]="DashCase",Hn))();function Ld(n,t){return undefined(n,t)}function Js(n){const t=n[3];return Ei(t)?t[3]:t}function Bd(n){return b_(n[13])}function Vd(n){return b_(n[4])}function b_(n){for(;null!==n&&!Ei(n);)n=n[4];return n}function jo(n,t,e,i,r){if(null!=i){let o,s=!1;Ei(i)?o=i:Ln(i)&&(s=!0,i=i[0]);const a=Gt(i);0===n&&null!==e?null==r?T_(t,e,a):Jr(t,e,a,r||null,!0):1===n&&null!==e?Jr(t,e,a,r||null,!0):2===n?function P_(n,t,e){const i=Il(n,t);i&&function YM(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function QM(n,t,e,i,r){const o=e[7];o!==Gt(e)&&jo(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=yl(n,10+t);!function jM(n,t){ea(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function E_(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&ea(n,t,e,3,null,null),function $M(n){let t=n[13];if(!t)return zd(n[1],n);for(;t;){let e=null;if(Ln(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Ln(t)&&zd(t[1],t),t=t[3];null===t&&(t=n),Ln(t)&&zd(t[1],t),e=t&&t[4]}t=e}}(t)}}function zd(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function XM(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[h+1].toLowerCase();const R=8&i?D:null;if(R&&-1!==F_(R,c,0)||2&i&&c!==D){if(Si(i))return!1;s=!0}}}}else{if(!s&&!Si(i)&&!Si(l))return!1;if(s&&Si(l))continue;s=!1,i=l|1&i}}return Si(i)||s}function Si(n){return 0==(1&n)}function r1(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Si(s)&&(t+=H_(o,r),r=""),i=s,o=o||!Si(i);e++}return""!==r&&(t+=H_(o,r)),t}const Ge={};function Oe(n){j_(ot(),ge(),Mn()+n,!1)}function j_(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&ul(t,o,e)}else{const o=n.preOrderHooks;null!==o&&dl(t,o,0,e)}Sr(e)}function W_(n,t=null,e=null,i){const r=G_(n,t,e,i);return r.resolveInjectorInitializers(),r}function G_(n,t=null,e=null,i,r=new Set){const o=[e||ht,GT(n)];return i=i||("object"==typeof n?void 0:Mt(n)),new n_(o,t||Ml(),i||null,r)}let xn=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return W_({name:""},i,e,"");{const o=null!==(r=e.name)&&void 0!==r?r:"";return W_({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=Us,n.NULL=new Zm,n.\u0275prov=Ie({token:n,providedIn:"any",factory:()=>ae(Ym)}),n.__NG_ELEMENT_ID__=-1,n})();function te(n,t=Ue.Default){const e=ge();return null===e?ae(n,t):gm(Zt(),e,He(n),t)}function Qd(){throw new Error("invalid")}function Pl(n,t){return n<<17|t<<2}function Ti(n){return n>>17&32767}function Jd(n){return 2|n}function cr(n){return(131068&n)>>2}function eh(n,t){return-131069&n|t<<2}function th(n){return 1|n}function cy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&j_(n,t,22,!1),e(i,r)}finally{Sr(o)}}function dy(n,t,e){if(Hu(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function yy(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function vy(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function tA(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&mh(e)}}function mh(n){for(let i=Bd(n);null!==i;i=Vd(i))for(let r=10;r0&&mh(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&mh(r)}}function lA(n,t){const e=Zn(t,n),i=e[1];(function cA(n,t){for(let e=t.length;ePromise.resolve(null))();function Sy(n){return n[7]||(n[7]=[])}function Ty(n){return n.cleanup||(n.cleanup=[])}function My(n,t,e){return(null===n||Ci(n))&&(e=function dS(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function Ay(n,t){const e=n[9],i=e?e.get(ar,null):null;i&&i.handleError(t)}function bh(n,t,e,i,r){for(let o=0;o-1&&(Ud(t,i),yl(e,i))}this._attachedToViewContainer=!1}E_(this._lView[1],this._lView)}onDestroy(t){fy(this._lView[1],this._lView,null,t)}markForCheck(){_h(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function yh(n,t,e){const i=t[10];i.begin&&i.begin();try{ta(n,t,n.template,e)}catch(r){throw Ay(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zM(n,t){ea(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ce(902,!1);this._appRef=t}}class hA extends na{constructor(t){super(t),this._view=t}detectChanges(){Cy(this._view)}checkNoChanges(){}get context(){return null}}class wh extends Bo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=bt(t);return new ia(e,this.ngModule)}}function Iy(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class pA{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,Td,i);return r!==Td||e===Td?r:this.parentInjector.get(t,e,i)}}class ia extends r_{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function u1(n){return n.map(c1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Iy(this.componentDef.inputs)}get outputs(){return Iy(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Fo?r:null==r?void 0:r.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pA(t,o):t,a=s.get(Ks,null);if(null===a)throw new Ce(407,!1);const l=s.get(lM,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=i?function W1(n,t,e){return n.selectRootElement(t,e===wi.ShadowDom)}(c,i,this.componentDef.encapsulation):jd(a.createRenderer(null,this.componentDef),u,function fA(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),D=this.componentDef.onPush?288:272,R=function vA(n,t){return{components:[],scheduler:n||OM,clean:dA,playerHandler:t||null,flags:0}}(),Y=fh(0,null,null,1,0,null,null,null,null,null),ee=Fl(null,Y,R,D,null,null,a,c,l,s,null);let re,ue;Qu(ee);try{const be=function _A(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=zo(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Vl(l,c,!0),null!==n&&(hl(r,n,c),null!==l.classes&&qd(r,n,l.classes),null!==l.styles&&N_(r,n,l.styles)));const u=i.createRenderer(n,t),h=Fl(e,hy(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(ml(Fs(l,e),s,t.type),vy(s,l),by(l,e.length,1)),Bl(e,h),e[22]=h}(h,this.componentDef,ee,a,c);if(h)if(i)hl(c,h,["ng-version",cM.full]);else{const{attrs:le,classes:we}=function d1(n){const t=[],e=[];let i=1,r=2;for(;i0&&qd(c,h,we.join(" "))}if(ue=Wu(Y,22),void 0!==e){const le=ue.projection=[];for(let we=0;we=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=fl(r.hostAttrs,e=fl(e,r.hostAttrs))}}(i)}function Dh(n){return n===_o?{}:n===ht?[]:n}function DA(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function EA(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function CA(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let jl=null;function eo(){if(!jl){const n=Dt.Symbol;if(n&&n.iterator)jl=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Gt(Be[i.index])):i.index;let we=null;if(!a&&l&&(we=function BA(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==we)(we.__ngLastListenerFn__||we).__ngNextListenerFn__=o,we.__ngLastListenerFn__=o,R=!1;else{o=$y(i,t,h,o,!1);const Be=e.listen(ue,r,o);D.push(o,Be),u&&u.push(r,le,be,be+1)}}else o=$y(i,t,h,o,!1);const Y=i.outputs;let ee;if(R&&null!==Y&&(ee=Y[r])){const re=ee.length;if(re)for(let ue=0;ue0;)t=t[15],n--;return t}(n,ze.lFrame.contextLView))[8]}(n)}function VA(n,t){let e=null;const i=function o1(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}function Rr(n,t,e){return Ai(n,t,e,!1),Rr}function $t(n,t){return Ai(n,t,null,!0),$t}function Ai(n,t,e,i){const r=ge(),o=ot(),s=function rr(n){const t=ze.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);o.firstUpdatePass&&function av(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Mn()],s=function sv(n,t){return t>=n.expandoStartIndex}(n,e);(function dv(n,t){return 0!=(n.flags&(t?16:32))})(o,i)&&null===t&&!s&&(t=!1),t=function ZA(n,t,e,i){const r=Ku(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=sa(e=Ah(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=Ah(r,n,t,e,i),null===o){let l=function QA(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==cr(i))return n[Ti(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Ah(null,n,t,l[1],i),l=sa(l,t.attrs,i),function JA(n,t,e,i){n[Ti(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function eI(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const D=Ti(n[a+1]);n[i+1]=Pl(D,a),0!==D&&(n[D+1]=eh(n[D+1],i)),n[a+1]=function x1(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Pl(a,0),0!==a&&(n[a+1]=eh(n[a+1],i)),a=i;else n[i+1]=Pl(l,0),0===a?a=i:n[l+1]=eh(n[l+1],i),l=i;c&&(n[i+1]=Jd(n[i+1])),Jy(n,u,i,!0),Jy(n,u,i,!1),function jA(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Ro(o,t)>=0&&(e[i+1]=th(e[i+1]))}(t,u,n,i,o),s=Pl(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}(o,n,s,i),t!==Ge&&vn(r,s,t)&&function cv(n,t,e,i,r,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];zl(function ty(n){return 1==(1&n)}(c)?uv(l,t,e,r,cr(c),s):void 0)||(zl(o)||function ey(n){return 2==(2&n)}(c)&&(o=uv(l,null,e,r,a,s)),function JM(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:Hn.DashCase;null==r?n.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Hn.Important),n.setStyle(e,i,r,o))}}(i,s,sl(Mn(),e),r,o))}(o,o.data[Mn()],r,r[11],n,r[s+1]=function iI(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Mt(ti(n)))),n}(t,e),i,s)}function Ah(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let D=e[r+1];D===Ge&&(D=h?ht:void 0);let R=h?ld(D,i):u===i?D:void 0;if(c&&!zl(R)&&(R=ld(l,i)),zl(R)&&(a=R,s))return a;const Y=n[r+1];r=s?Ti(Y):cr(Y)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=ld(l,i))}return a}function zl(n){return void 0!==n}function Se(n,t=""){const e=ge(),i=ot(),r=n+22,o=i.firstCreatePass?zo(i,r,1,t,null):i.data[r],s=e[r]=function Hd(n,t){return n.createText(t)}(e[11],t);xl(i,e,s,o),Bi(o,!1)}function qi(n){return Vt("",n,""),qi}function Vt(n,t,e){const i=ge(),r=Go(i,n,t,e);return r!==Ge&&function ur(n,t,e){const i=sl(t,n);!function w_(n,t,e){n.setValue(t,e)}(n[11],i,e)}(i,Mn(),r),Vt}function $l(n,t,e){const i=ge();return vn(i,Eo(),t)&&ni(ot(),Bt(),i,n,t,i[11],e,!0),$l}function Ih(n,t,e){const i=ge();if(vn(i,Eo(),t)){const o=ot(),s=Bt();ni(o,s,i,n,t,My(Ku(o.data),s,i),e,!0)}return Ih}const ns="en-US";let Rv=ns;function Oh(n,t,e,i,r){if(n=He(n),Array.isArray(n))for(let o=0;o>20;if(Qr(n)||!n.multi){const R=new ks(l,r,te),Y=kh(a,t,r?u:u+D,h);-1===Y?(ml(Fs(c,s),o,a),Ph(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(R),s.push(R)):(e[Y]=R,s[Y]=R)}else{const R=kh(a,t,u+D,h),Y=kh(a,t,u,u+D),ee=R>=0&&e[R],re=Y>=0&&e[Y];if(r&&!re||!r&&!ee){ml(Fs(c,s),o,a);const ue=function wx(n,t,e,i,r){const o=new ks(n,e,te);return o.multi=[],o.index=t,o.componentProviders=0,nb(o,r,i&&!e),o}(r?bx:vx,e.length,r,i,l);!r&&re&&(e[Y].providerFactory=ue),Ph(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(ue),s.push(ue)}else Ph(o,n,R>-1?R:Y,nb(e[r?Y:R],l,!r&&i));!r&&i&&re&&e[Y].componentProviders++}}}function Ph(n,t,e,i){const r=Qr(t),o=function XT(n){return!!n.useClass}(t);if(r||o){const l=(o?He(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function nb(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function kh(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function yx(n,t,e){const i=ot();if(i.firstCreatePass){const r=Ci(n);Oh(e,i.data,i.blueprint,r,!0),Oh(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class rs{}class ib extends rs{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new wh(this);const i=function Yn(n,t){const e=n[Bg]||null;if(!e&&!0===t)throw new Error(`Type ${Mt(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function lr(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=G_(t,e,[{provide:rs,useValue:this},{provide:Bo,useValue:this.componentFactoryResolver}],Mt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Fh extends class Dx{}{constructor(t){super(),this.moduleType=t}create(t){return new ib(this.moduleType,t)}}function db(n,t,e,i,r,o){const s=t+e;return vn(n,s,r)?function zi(n,t,e){return n[t]=e}(n,s+1,o?i.call(o,r):i(r)):function da(n,t){const e=n[t];return e===Ge?void 0:e}(n,s+1)}function _b(n,t,e){const i=n+22,r=ge(),o=Do(r,i);return function ha(n,t){return n[1].data[t].pure}(r,i)?db(r,function Tn(){const n=ze.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),t,o.transform,e,o):o.transform(e)}function Bh(n){return t=>{setTimeout(n,void 0,t)}}const _t=class Kx extends _e{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,o,s;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const h=t;a=null===(r=h.next)||void 0===r?void 0:r.bind(h),l=null===(o=h.error)||void 0===o?void 0:o.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=Bh(l),a&&(a=Bh(a)),c&&(c=Bh(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof G&&t.add(u),u}};function Zx(){return this._results[eo()]()}class Vh{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=eo(),i=Vh.prototype;i[e]||(i[e]=Zx)}get changes(){return this._changes||(this._changes=new _t)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Jn(t);(this._changesDetected=!function $S(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=eR,n})();const Qx=sn,Jx=class extends Qx{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Fl(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Ll(i,r,t),new na(r)}};function eR(){return Yl(Zt(),ge())}function Yl(n,t){return 4&n.type?new Jx(t,n,Vo(n,t)):null}let an=(()=>{class n{}return n.__NG_ELEMENT_ID__=tR,n})();function tR(){return bb(Zt(),ge())}const nR=an,yb=class extends nR{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new To(this._hostTNode,this._hostLView)}get parentInjector(){const t=gl(this._hostTNode,this._hostLView);if(um(t)){const e=So(t,this._hostLView),i=Co(t);return new To(e[1].data[i+8],e)}return new To(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=vb(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Hs(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const h=e||{};a=h.index,i=h.injector,r=h.projectableNodes,o=h.environmentInjector||h.ngModuleRef}const l=s?t:new ia(bt(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const D=(s?c:this.parentInjector).get(Fo,null);D&&(o=D)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function fS(n){return Ei(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const h=i[3],D=new yb(h,h[6],h[3]);D.detach(D.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function WM(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let h=10;h{class n{constructor(e){this.appInits=e,this.resolve=Zl,this.reject=Zl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(ae(Kh,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const as=new Ee("AppId",{providedIn:"root",factory:function $b(){return`${Zh()}${Zh()}${Zh()}`}});function Zh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Wb=new Ee("Platform Initializer"),ga=new Ee("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),RR=new Ee("appBootstrapListener"),dr=new Ee("AnimationModuleType"),Xi=new Ee("LocaleId",{providedIn:"root",factory:()=>sr(Xi,Ue.Optional|Ue.SkipSelf)||function OR(){return"undefined"!=typeof $localize&&$localize.locale||ns}()}),LR=(()=>Promise.resolve(0))();function Qh(n){"undefined"==typeof Zone?LR.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class qe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _t(!1),this.onMicrotaskEmpty=new _t(!1),this.onStable=new _t(!1),this.onError=new _t(!1),"undefined"==typeof Zone)throw new Ce(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function BR(){let n=Dt.requestAnimationFrame,t=Dt.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function jR(n){const t=()=>{!function HR(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Dt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,ef(n),n.isCheckStableRunning=!0,Jh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),ef(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return Xb(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Yb(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return Xb(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Yb(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,ef(n),Jh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qe.isInAngularZone())throw new Ce(909,!1)}static assertNotInAngularZone(){if(qe.isInAngularZone())throw new Ce(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,VR,Zl,Zl);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const VR={};function Jh(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function ef(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Xb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Yb(n){n._nesting--,Jh(n)}class UR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _t,this.onMicrotaskEmpty=new _t,this.onStable=new _t,this.onError=new _t}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const Kb=new Ee(""),Jl=new Ee("");let ma,tf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ma||(function zR(n){ma=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{qe.assertNotInAngularZone(),Qh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Qh(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(ae(qe),ae(nf),ae(Jl))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),nf=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){var r;return null!==(r=null==ma?void 0:ma.findTestabilityInTree(this,e,i))&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Yi=null;const Zb=new Ee("AllowMultipleToken"),rf=new Ee("PlatformDestroyListeners");function Jb(n,t,e=[]){const i=`Platform: ${t}`,r=new Ee(i);return(o=[])=>{let s=sf();if(!s||s.injector.get(Zb,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function GR(n){if(Yi&&!Yi.get(Zb,!1))throw new Ce(400,!1);Yi=n;const t=n.get(t0);(function Qb(n){const t=n.get(Wb,null);t&&t.forEach(e=>e())})(n)}(function e0(n=[],t){return xn.create({name:t,providers:[{provide:Dd,useValue:"platform"},{provide:rf,useValue:new Set([()=>Yi=null])},...n]})}(a,i))}return function XR(n){const t=sf();if(!t)throw new Ce(401,!1);return t}()}}function sf(){var n;return null!==(n=null==Yi?void 0:Yi.get(t0))&&void 0!==n?n:null}let t0=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function YR(n,t){let e;return e="noop"===n?new UR:("zone.js"===n?void 0:n)||new qe(t),e}(null==i?void 0:i.ngZone,function n0(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:qe,useValue:r}];return r.run(()=>{const s=xn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ar,null);if(!l)throw new Ce(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{ec(this._modules,a),c.unsubscribe()})}),function r0(n,t,e){try{const i=e();return Sh(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Ql);return c.runInitializers(),c.donePromise.then(()=>(function Ov(n){Xn(n,"Expected localeId to be defined"),"string"==typeof n&&(Rv=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Xi,ns)||ns),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=o0({},i);return function $R(n,t,e){const i=new Fh(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(ls);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ce(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(rf,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(ae(xn))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function o0(n,t){return Array.isArray(t)?t.reduce(o0,n):Object.assign(Object.assign({},n),t)}let ls=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new pe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new pe(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{qe.assertNotInAngularZone(),Qh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{qe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Fi(o,s.pipe(Pg()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof r_;if(!this._injector.get(Ql).done)throw!r&&function pa(n){const t=bt(n)||Cn(n)||Sn(n);return null!==t&&t.standalone}(e),new Ce(405,false);let s;s=r?e:this._injector.get(Bo).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function WR(n){return n.isBoundToModule}(s)?void 0:this._injector.get(rs),c=s.create(xn.NULL,[],i||s.selector,a),u=c.location.nativeElement,h=c.injector.get(Kb,null);return null==h||h.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),ec(this.components,c),null==h||h.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ce(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;ec(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(RR,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>ec(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ce(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(ae(qe),ae(Fo),ae(ar))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ec(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let a0=!0,Ki=(()=>{class n{}return n.__NG_ELEMENT_ID__=QR,n})();function QR(n){return function JR(n,t,e){if(rl(n)&&!e){const i=Zn(n.index,t);return new na(i,i)}return 47&n.type?new na(t[16],t):null}(Zt(),ge(),16==(16&n))}class h0{constructor(){}supports(t){return ra(t)}create(t){return new oO(t)}}const rO=(n,t)=>t;class oO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||rO}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new sO(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new f0),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new f0),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class sO{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class f0{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new aO,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function p0(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new cO(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class cO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function m0(){return new fr([new h0])}let fr=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||m0()),deps:[[n,new Po,new Mr]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ce(901,!1)}}return n.\u0275prov=Ie({token:n,providedIn:"root",factory:m0}),n})();function _0(){return new _a([new g0])}let _a=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||_0()),deps:[[n,new Po,new Mr]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ce(901,!1)}}return n.\u0275prov=Ie({token:n,providedIn:"root",factory:_0}),n})();const hO=Jb(null,"core",[]);let fO=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(ae(ls))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})(),ic=null;function Or(){return ic}const $e=new Ee("DocumentToken");let y0=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:function(){return function _O(){return ae(v0)}()},providedIn:"platform"}),n})(),v0=(()=>{class n extends y0{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Or().getBaseHref(this._doc)}onPopState(e){const i=Or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){b0()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){b0()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:function(){return function yO(){return new v0(ae($e))}()},providedIn:"platform"}),n})();function b0(){return!!window.history.pushState}function w0(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function D0(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function oo(n){return n&&"?"!==n[0]?"?"+n:n}let df=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:function(){return sr(bO)},providedIn:"root"}),n})();const vO=new Ee("appBaseHref");let bO=(()=>{class n extends df{constructor(e,i){var r,o,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(r=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==r?r:null===(o=sr($e).location)||void 0===o?void 0:o.origin)&&void 0!==s?s:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return w0(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+oo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+oo(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+oo(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ae(y0),ae(vO,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hf=(()=>{class n{constructor(e){this._subject=new _t,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=D0(E0(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){var e;null===(e=this._urlChangeSubscription)||void 0===e||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+oo(i))}normalize(e){return n.stripTrailingSlash(function DO(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,E0(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+oo(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+oo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._locationStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var i;const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=oo,n.joinWithSlash=w0,n.stripTrailingSlash=D0,n.\u0275fac=function(e){return new(e||n)(ae(df))},n.\u0275prov=Ie({token:n,factory:function(){return function wO(){return new hf(ae(df))}()},providedIn:"root"}),n})();function E0(n){return n.replace(/\/index.html$/,"")}let O0=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ra(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Mt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(te(fr),te(_a),te(lt),te(Al))},n.\u0275dir=Pe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class aP{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,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 Df=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new aP(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),N0(a,r)}});for(let r=0,o=i.length;r{N0(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(sn),te(fr))},n.\u0275dir=Pe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function N0(n,t){n.context.$implicit=t.item}let cs=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new cP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){F0("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){F0("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class cP{constructor(){this.$implicit=null,this.ngIf=null}}function F0(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Mt(t)}'.`)}let B0=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Hn.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(_a),te(Al))},n.\u0275dir=Pe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})();class pP{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class gP{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const mP=new gP,_P=new pP;let V0=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Sh(e))return mP;if(jy(e))return _P;throw function Oi(n,t){return new Ce(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(te(Ki,16))},n.\u0275pipe=Fn({name:"async",type:n,pure:!1,standalone:!0}),n})(),us=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})();const j0="browser";function Mf(n){return n===j0}class Af extends class VP extends class mO{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function gO(n){ic||(ic=n)}(new Af)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function HP(){return ba=ba||document.querySelector("base"),ba?ba.getAttribute("href"):null}();return null==e?null:function jP(n){fc=fc||document.createElement("a"),fc.setAttribute("href",n);const t=fc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ba=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function oP(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let fc,ba=null;const z0=new Ee("TRANSITION_ID"),zP=[{provide:Kh,useFactory:function UP(n,t,e){return()=>{e.get(Ql).donePromise.then(()=>{const i=Or(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const pc=new Ee("EventManagerPlugins");let gc=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),wa=(()=>{class n extends W0{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(G0),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(G0))}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();function G0(n){Or().remove(n)}const If={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},xf=/%COMP%/g;function mc(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let _c=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Rf(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case wi.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new ZP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case wi.ShadowDom:return new QP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=mc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(ae(gc),ae(wa),ae(as))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class Rf{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(If[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(Z0(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(Z0(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=If[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=If[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Hn.DashCase|Hn.Important)?t.style.setProperty(e,i,r&Hn.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Hn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Y0(i)):this.eventManager.addEventListener(t,e,Y0(i))}}function Z0(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ZP extends Rf{constructor(t,e,i,r){super(t),this.component=i;const o=mc(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function XP(n){return"_ngcontent-%COMP%".replace(xf,n)}(r+"-"+i.id),this.hostAttr=function YP(n){return"_nghost-%COMP%".replace(xf,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class QP extends Rf{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=mc(r.id,r.styles,[]);for(let s=0;s{class n extends $0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const Q0=["alt","control","meta","shift"],tk={"\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"},J0={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},nk={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let ik=(()=>{class n extends $0{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Or().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(Q0.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function rk(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&J0.hasOwnProperty(t)&&(t=J0[t]))}return tk[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Q0.forEach(o=>{o!=r&&(0,nk[o])(e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const lk=Jb(hO,"browser",[{provide:ga,useValue:j0},{provide:Wb,useValue:function ok(){Af.makeCurrent()},multi:!0},{provide:$e,useFactory:function ak(){return function gT(n){fd=n}(document),document},deps:[]}]),tw=new Ee(""),nw=[{provide:Jl,useClass:class $P{addToWindow(t){Dt.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Dt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Dt.getAllAngularRootElements=()=>t.getAllRootElements(),Dt.frameworkStabilizers||(Dt.frameworkStabilizers=[]),Dt.frameworkStabilizers.push(i=>{const r=Dt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Or().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},deps:[]},{provide:Kb,useClass:tf,deps:[qe,nf,Jl]},{provide:tf,useClass:tf,deps:[qe,nf,Jl]}],iw=[{provide:Dd,useValue:"root"},{provide:ar,useFactory:function sk(){return new ar},deps:[]},{provide:pc,useClass:JP,multi:!0,deps:[$e,qe,ga]},{provide:pc,useClass:ik,multi:!0,deps:[$e]},{provide:_c,useClass:_c,deps:[gc,wa,as]},{provide:Ks,useExisting:_c},{provide:W0,useExisting:wa},{provide:wa,useClass:wa,deps:[$e]},{provide:gc,useClass:gc,deps:[pc,qe]},{provide:class BP{},useClass:WP,deps:[]},[]];let rw=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:as,useValue:e.appId},{provide:z0,useExisting:as},zP]}}}return n.\u0275fac=function(e){return new(e||n)(ae(tw,12))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[...iw,...nw],imports:[us,fO]}),n})();"undefined"!=typeof window&&window;let kf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:function(e){let i=null;return i=e?new(e||n):ae(aw),i},providedIn:"root"}),n})(),aw=(()=>{class n extends kf{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ft.NONE:return i;case ft.HTML:return Hi(i,"HTML")?ti(i):Wm(this._doc,String(i)).toString();case ft.STYLE:return Hi(i,"Style")?ti(i):i;case ft.SCRIPT:if(Hi(i,"Script"))return ti(i);throw new Error("unsafe value used in a script context");case ft.URL:return Hi(i,"URL")?ti(i):qs(String(i));case ft.RESOURCE_URL:if(Hi(i,"ResourceURL"))return ti(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function CT(n){return new yT(n)}(e)}bypassSecurityTrustStyle(e){return function ST(n){return new vT(n)}(e)}bypassSecurityTrustScript(e){return function TT(n){return new bT(n)}(e)}bypassSecurityTrustUrl(e){return function MT(n){return new wT(n)}(e)}bypassSecurityTrustResourceUrl(e){return function AT(n){return new DT(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:function(e){let i=null;return i=e?new e:function _k(n){return new aw(n.get($e))}(ae(xn)),i},providedIn:"root"}),n})();function lw(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function cw(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){lw(o,i,r,s,a,"next",l)}function a(l){lw(o,i,r,s,a,"throw",l)}s(void 0)})}}var yk=x(5452);let Ff,Nf=(()=>{class n{constructor(){this.selectedFileData=new _e}getselectedFileDataListener(){return this.selectedFileData.asObservable()}fileChange(e){var i=this;return cw(function*(){const o=e.target.files;if(o){if(!o.length)return;i.selectedFileName=o[0].name;let s=new FileReader;s.readAsText(o[0]),s.onload=a=>{yk.parseStringPromise(s.result).then(l=>{i.selectedFileContent=l,i.selectedFileData.next({selectedFileName:i.selectedFileName,selectedFileContent:i.selectedFileContent})}).catch(l=>{console.log(l)})}}})()}fileClear(){var e=this;return cw(function*(){e.selectedFileName=void 0,e.selectedFileContent=void 0,e.selectedFileData.next({selectedFileName:e.selectedFileName,selectedFileContent:e.selectedFileContent})})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();try{Ff="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Ff=!1}let Da,ao,Lf,Pn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Mf(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&&!Ff)&&"undefined"!=typeof CSS&&!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}}return n.\u0275fac=function(e){return new(e||n)(ae(ga))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function so(n){return function vk(){if(null==Da&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Da=!0}))}finally{Da=Da||!1}return Da}()?n:!!n.capture}function bk(){if(null==ao){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ao=!1,ao;if("scrollBehavior"in document.documentElement.style)ao=!0;else{const n=Element.prototype.scrollTo;ao=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ao}function Bf(n){if(function wk(){if(null==Lf){const n="undefined"!=typeof document?document.head:null;Lf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Lf}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Vf(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Pi(n){return n.composedPath?n.composedPath()[0]:n.target}function Hf(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class jf{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class vc extends jf{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class dw extends jf{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Dk extends jf{constructor(t){super(),this.element=t instanceof lt?t.nativeElement:t}}class Uf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof vc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof dw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Dk?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ek extends Uf{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,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(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||xn.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let zf=(()=>{class n extends Uf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new _t,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(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(te(Bo),te(an),te($e))},n.\u0275dir=Pe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[et]}),n})(),bc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})();class Ea extends _e{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function bn(...n){return Dr(n,As(n))}function Wf(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function $n(n,t){return Xe((e,i)=>{let r=0;e.subscribe(new pt(i,o=>n.call(t,o,r++)&&i.next(o)))})}function hw(n){return $n((t,e)=>n<=e)}function Ok(n,t){return n===t}function Yt(n){return Xe((t,e)=>{Gn(n).subscribe(new pt(e,()=>e.complete(),X)),!e.closed&&t.subscribe(e)})}function kn(n){return null!=n&&"false"!=`${n}`}function Ca(n,t=0){return fw(n)?Number(n):t}function fw(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Sa(n){return Array.isArray(n)?n:[n]}function Kt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function rn(n){return n instanceof lt?n.nativeElement:n}let Pk=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[Pk]}),n})();const{isArray:Nk}=Array,{getPrototypeOf:Fk,prototype:Lk,keys:Bk}=Object;function pw(n){if(1===n.length){const t=n[0];if(Nk(t))return{args:t,keys:null};if(function Vk(n){return n&&"object"==typeof n&&Fk(n)===Lk}(t)){const e=Bk(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:Hk}=Array;function Gf(n){return it(t=>function jk(n,t){return Hk(t)?n(...t):n(t)}(n,t))}function gw(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function wc(...n){const t=As(n),e=Ig(n),{args:i,keys:r}=pw(n);if(0===i.length)return Dr([],t);const o=new pe(function Uk(n,t,e=j){return i=>{mw(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Dr(n[l],t);let u=!1;c.subscribe(new pt(i,h=>{o[l]=h,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>gw(r,s):j));return e?o.pipe(Gf(e)):o}function mw(n,t,e){n?er(e,n,t):t()}function Ta(...n){return function zk(){return Mg(1)}()(Dr(n,As(n)))}class $k extends G{constructor(t,e){super()}schedule(t,e=0){return this}}const Dc={setInterval(...n){const{delegate:t}=Dc;return((null==t?void 0:t.setInterval)||setInterval)(...n)},clearInterval(n){const{delegate:t}=Dc;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class qf extends $k{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return Dc.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;Dc.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,W(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const _w={now:()=>(_w.delegate||Date).now(),delegate:void 0};class Ma{constructor(t,e=Ma.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Ma.now=_w.now;class Xf extends Ma{constructor(t,e=Ma.now){super(t,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Ec=new Xf(qf),yw=Ec;function vw(n,t=Ec){return Xe((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=t.now();if(u{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function hs(...n){const t=As(n);return Xe((e,i)=>{(t?Ta(n,e,t):Ta(n,e)).subscribe(i)})}const bw=new Set;let fs,Wk=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):qk}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Gk(n){if(!bw.has(n))try{fs||(fs=document.createElement("style"),fs.setAttribute("type","text/css"),document.head.appendChild(fs)),fs.sheet&&(fs.sheet.insertRule(`@media ${n} {body{ }}`,0),bw.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(Pn))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qk(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let ww=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new _e}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Dw(Sa(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=wc(Dw(Sa(e)).map(s=>this._registerQuery(s).observable));return o=Ta(o.pipe(zt(1)),o.pipe(hw(1),vw(0))),o.pipe(it(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new pe(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(hs(i),it(({matches:s})=>({query:e,matches:s})),Yt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(ae(Wk),ae(qe))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Dw(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function Cc(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const Cw="cdk-describedby-message",Sc="cdk-describedby-host";let Yf=0,Sw=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Yf++,this._document=e,this._id=sr(as)+"-"+Yf++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=Kf(i,r);"string"!=typeof i?(Tw(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){var o;if(!i||!this._isElementNode(e))return;const s=Kf(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===(null===(o=this._messagesContainer)||void 0===o?void 0:o.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${Sc}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Cw));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function Yk(n,t,e){const i=Cc(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Sc,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function Kk(n,t,e){const r=Cc(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Sc)}_isElementDescribedByMessage(e,i){const r=Cc(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(Pn))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kf(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function Tw(n,t){n.id||(n.id=`${Cw}-${t}-${Yf++}`)}let Tc=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Qk(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function Zk(n){try{return n.frameElement}catch(t){return null}}(function sN(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===Aw(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=Aw(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function rN(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function oN(n){return!function eN(n){return function nN(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function Jk(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function tN(n){return function iN(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Mw(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(ae(Pn))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Mw(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function Aw(n){if(!Mw(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class aN{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(zt(1)).subscribe(t)}}let Zf=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new aN(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(ae(Tc),ae(qe),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qf(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Jf(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const lN=new Ee("cdk-input-modality-detector-options"),cN={ignoreKeys:[18,17,224,91,16]},ps=so({passive:!0,capture:!0});let uN=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Ea(null),this._lastTouchMs=0,this._onKeydown=s=>{var a,l;null!==(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)&&void 0!==l&&l.some(c=>c===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Pi(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qf(s)?"keyboard":"mouse"),this._mostRecentTarget=Pi(s))},this._onTouchstart=s=>{Jf(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Pi(s))},this._options=Object.assign(Object.assign({},cN),o),this.modalityDetected=this._modality.pipe(hw(1)),this.modalityChanged=this.modalityDetected.pipe(function Rk(n,t=j){return n=null!=n?n:Ok,Xe((e,i)=>{let r,o=!0;e.subscribe(new pt(i,s=>{const a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ps),r.addEventListener("mousedown",this._onMousedown,ps),r.addEventListener("touchstart",this._onTouchstart,ps)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ps),document.removeEventListener("mousedown",this._onMousedown,ps),document.removeEventListener("touchstart",this._onTouchstart,ps))}}return n.\u0275fac=function(e){return new(e||n)(ae(Pn),ae(qe),ae($e),ae(lN,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hN=new Ee("cdk-focus-monitor-default-options"),Mc=so({passive:!0,capture:!0});let gs=(()=>{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,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 _e,this._rootNodeFocusAndBlurListener=a=>{for(let c=Pi(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const r=rn(e);if(!this._platform.isBrowser||1!==r.nodeType)return bn(null);const o=Bf(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new _e,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=rn(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=rn(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Pi(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Mc),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Mc)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Yt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Mc),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Mc),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=sr(ww).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ep,xw,Rw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(ep,xw):2===i&&e.add(ep,Rw)}}}return n.\u0275fac=function(e){return new(e||n)(ae(Pn),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pw=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(ae(Ow))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[kk]}),n})();const fN=["addListener","removeListener"],pN=["addEventListener","removeEventListener"],gN=["on","off"];function ms(n,t,e,i){if(v(e)&&(i=e,e=void 0),i)return ms(n,t,e).pipe(Gf(i));const[r,o]=function yN(n){return v(n.addEventListener)&&v(n.removeEventListener)}(n)?pN.map(s=>a=>n[s](t,a,e)):function mN(n){return v(n.addListener)&&v(n.removeListener)}(n)?fN.map(kw(n,t)):function _N(n){return v(n.on)&&v(n.off)}(n)?gN.map(kw(n,t)):[];if(!r&&Su(n))return mo(s=>ms(s,t,e))(Gn(n));if(!r)throw new TypeError("Invalid event target");return new pe(s=>{const a=(...l)=>s.next(1o(a)})}function kw(n,t){return e=>i=>n[e](t,i)}const Aa={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Aa;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new G(()=>null==e?void 0:e(r))},requestAnimationFrame(...n){const{delegate:t}=Aa;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Aa;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...n)},delegate:void 0},Nw=new class bN extends Xf{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let i,r=-1;t=t||e.shift();const o=e.length;do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Aa.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Aa.cancelAnimationFrame(e),t._scheduled=void 0)}});let tp,wN=1;const Ac={};function Fw(n){return n in Ac&&(delete Ac[n],!0)}const DN={setImmediate(n){const t=wN++;return Ac[t]=!0,tp||(tp=Promise.resolve()),tp.then(()=>Fw(t)&&n()),t},clearImmediate(n){Fw(n)}},{setImmediate:EN,clearImmediate:CN}=DN,Ic={setImmediate(...n){const{delegate:t}=Ic;return((null==t?void 0:t.setImmediate)||EN)(...n)},clearImmediate(n){const{delegate:t}=Ic;return((null==t?void 0:t.clearImmediate)||CN)(n)},delegate:void 0};new class TN extends Xf{flush(t){this._active=!0,this._scheduled=void 0;const{actions:e}=this;let i,r=-1;t=t||e.shift();const o=e.length;do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Ic.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Ic.clearImmediate(e),t._scheduled=void 0)}});function np(n=0,t,e=yw){let i=-1;return null!=t&&(Ag(t)?e=t:i=t),new pe(r=>{let o=function IN(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Lw(n,t=yw){return function AN(n){return Xe((t,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(null==o||o.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(new pt(e,c=>{i=!0,r=c,o||Gn(n(c)).subscribe(o=new pt(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>np(n,t))}const xN=new Ee("cdk-dir-doc",{providedIn:"root",factory:function RN(){return sr($e)}}),ON=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let lo=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new _t,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function PN(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ON.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(ae(xN,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})(),ip=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new _e,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new pe(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Lw(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):bn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe($n(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=rn(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ms(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(ae(qe),ae(Pn),ae($e,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xc=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new _e,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.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 e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Lw(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(ae(Pn),ae(qe),ae($e,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({}),n})(),rp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[Ia,Rc,Ia,Rc]}),n})();const Bw=bk();class FN{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Kt(-this._previousScrollPosition.left),t.style.top=Kt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Bw&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Bw&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class LN{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Vw{enable(){}disable(){}attach(){}}function op(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function Hw(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class BN{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();op(e,[{width:i,height:r,bottom:r,right:i,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 VN=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Vw,this.close=s=>new LN(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new FN(this._viewportRuler,this._document),this.reposition=s=>new BN(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(ae(ip),ae(xc),ae(qe),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class jw{constructor(t){if(this.scrollStrategy=new Vw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class HN{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class xa{constructor(t,e,i,r,o,s,a,l,c,u=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new _e,this._attachments=new _e,this._detachments=new _e,this._locationChanges=G.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new _e,this._outsidePointerEvents=new _e,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(zt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),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(null==e?void 0:e.onDestroy)&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;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),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Kt(this._config.width),t.height=Kt(this._config.height),t.minWidth=Kt(this._config.minWidth),t.minHeight=Kt(this._config.minHeight),t.maxWidth=Kt(this._config.maxWidth),t.maxHeight=Kt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(t):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})})}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=Sa(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Yt(Fi(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Oc=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Hf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{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 t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,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&&co(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Uw),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=$w(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let D=0-a,R=a+o.height-i.height,Y=this._subtractOverflows(o.width,0-s,s+o.width-i.width),ee=this._subtractOverflows(o.height,D,R),re=Y*ee;return{visibleArea:re,isCompletelyWithinViewport:o.width*o.height===re,fitsInViewportVertically:ee===o.height,fitsInViewportHorizontally:Y==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=zw(this._overlayRef.getConfig().minHeight),a=zw(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=$w(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,h=0;return u=r.width<=o.width?c||-s:t.xY&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-Y/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)D=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=t.x,u=i.right-t.x;else{const R=Math.min(i.right-t.x+i.left,t.x),Y=this._lastBoundingBoxSize.width;u=2*R,h=t.x-R,u>Y&&!this._isInitialRender&&!this._growAfterOpen&&(h=t.x-Y/2)}return{top:s,left:h,bottom:a,right:D,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.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=Kt(i.height),r.top=Kt(i.top),r.bottom=Kt(i.bottom),r.width=Kt(i.width),r.left=Kt(i.left),r.right=Kt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Kt(o)),s&&(r.maxWidth=Kt(s))}this._lastBoundingBoxSize=i,co(this._boundingBox.style,r)}_resetBoundingBoxStyles(){co(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){co(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();co(i,this._getExactOverlayY(e,t,u)),co(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Kt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Kt(s.maxWidth):o&&(i.maxWidth="")),co(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Kt(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Kt(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Hw(t,i),isOriginOutsideView:op(t,i),isOverlayClipped:Hw(e,i),isOverlayOutsideView:op(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Sa(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof lt)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function co(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function zw(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(jN);return e&&"px"!==e?null:parseFloat(t)}return n||null}function $w(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Ww="cdk-global-overlay-wrapper";class zN{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Ww),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,h=this._xOffset,D="rtl"===this._overlayRef.getConfig().direction;let R="",Y="",ee="";l?ee="flex-start":"center"===u?(ee="center",D?Y=h:R=h):D?"left"===u||"end"===u?(ee="flex-end",R=h):("right"===u||"start"===u)&&(ee="flex-start",Y=h):"left"===u||"start"===u?(ee="flex-start",R=h):("right"===u||"end"===u)&&(ee="flex-end",Y=h),t.position=this._cssPosition,t.marginLeft=l?"0":R,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":Y,e.justifyContent=ee,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Ww),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let $N=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new zN}flexibleConnectedTo(e){return new UN(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(ae(xc),ae($e),ae(Pn),ae(Oc))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gw=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WN=(()=>{class n extends Gw{constructor(e,i){super(e),this._ngZone=i,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(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(qe,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GN=(()=>{class n extends Gw{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Pi(o)},this._clickListener=o=>{const s=Pi(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 u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(Pn),ae(qe,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qN=0,kr=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D,R){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=D,this._animationsModuleType=R}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new jw(e);return s.direction=s.direction||this._directionality.value,new xa(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+qN++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ls)),new Ek(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(ae(VN),ae(Oc),ae(Bo),ae($N),ae(WN),ae(xn),ae(qe),ae($e),ae(lo),ae(hf),ae(GN),ae(dr,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const KN={provide:new Ee("cdk-connected-overlay-scroll-strategy"),deps:[kr],useFactory:function YN(n){return()=>n.scrollStrategies.reposition()}};let sp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[kr,KN],imports:[Ia,bc,rp,rp]}),n})();function Pc(n){return new pe(t=>{Gn(n()).subscribe(t)})}function ZN(n,t){}class kc{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}}let qw=(()=>{class n extends Uf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||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 e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=Vf(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Vf();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Vf())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Zf),te($e,8),te(kc),te(Tc),te(qe),te(xa),te(gs))},n.\u0275cmp=At({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Un(zf,7),2&e){let r;xt(r=Rt())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&ii("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[et],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&je(0,ZN,0,0,"ng-template",0)},dependencies:[zf],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class ap{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new _e,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!Wf(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=(null==e?void 0:e.focusOrigin)||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const Xw=new Ee("DialogScrollStrategy"),QN=new Ee("DialogData"),JN=new Ee("DefaultDialogConfig"),tF={provide:Xw,deps:[kr],useFactory:function eF(n){return()=>n.scrollStrategies.block()}};let nF=0,Yw=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _e,this._afterOpenedAtThisLevel=new _e,this._ariaHiddenElements=new Map,this.afterAllClosed=Pc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hs(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){const r=this._defaultOptions||new kc;(i=Object.assign(Object.assign({},r),i)).id=i.id||"cdk-dialog-"+nF++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new ap(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){lp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){lp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),lp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new jw({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){var o;const s=r.injector||(null===(o=r.viewContainerRef)||void 0===o?void 0:o.injector),a=[{provide:kc,useValue:r},{provide:ap,useValue:i},{provide:xa,useValue:e}];let l;r.container?"function"==typeof r.container?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=qw;const c=new vc(l,r.viewContainerRef,xn.create({parent:s||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof sn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=Object.assign(Object.assign({},a),"function"==typeof o.templateContext?o.templateContext():o.templateContext)),r.attachTemplatePortal(new dw(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new vc(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){var s;const a=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),l=[{provide:QN,useValue:e.data},{provide:ap,useValue:i}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(i,e,r)):l.push(...e.providers)),e.direction&&(!a||!a.get(lo,null,Ue.Optional))&&l.push({provide:lo,useValue:{value:e.direction,change:bn()}}),xn.create({parent:a||o,providers:l})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"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 e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(ae(kr),ae(xn),ae(JN,8),ae(n,12),ae(Oc),ae(Xw))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();function lp(n,t){let e=n.length;for(;e--;)t(n[e])}let iF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[Yw,tF],imports:[sp,bc,Pw,bc]}),n})(),rF=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),oF=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const aF=new Ee("mat-sanity-checks",{providedIn:"root",factory:function sF(){return!0}});let fn=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Hf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(ae(Ow),ae(aF,8),ae($e))},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[Ia,Ia]}),n})();function cp(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=kn(t)}}}function Nc(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function lF(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=kn(t)}}}function cF(n){return class extends n{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new pe(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}class dF{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Qw={enterDuration:225,exitDuration:150},up=so({passive:!0}),Jw=["mousedown","touchstart"],eD=["mouseup","mouseleave","touchend","touchcancel"];class fF{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=rn(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Qw),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function pF(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),R=h.transitionDuration,Y="none"===h.transitionProperty||"0s"===R||"0s, 0s"===R,ee=new dF(this,u,i,Y);u.style.transform="scale3d(1, 1, 1)",ee.state=0,i.persistent||(this._mostRecentTransientRipple=ee);let re=null;return!Y&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ue=()=>this._finishRippleTransition(ee),be=()=>this._destroyRipple(ee);u.addEventListener("transitionend",ue),u.addEventListener("transitioncancel",be),re={onTransitionEnd:ue,onTransitionCancel:be}}),this._activeRipples.set(ee,re),(Y||!c)&&this._finishRippleTransition(ee),ee}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i=Object.assign(Object.assign({},Qw),t.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=rn(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Jw))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(eD),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){var e;const i=null!==(e=this._activeRipples.get(t))&&void 0!==e?e:null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==i&&(t.element.removeEventListener("transitionend",i.onTransitionEnd),t.element.removeEventListener("transitioncancel",i.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=Qf(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,up)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Jw.forEach(t=>{this._triggerElement.removeEventListener(t,this,up)}),this._pointerUpEventsRegistered&&eD.forEach(t=>{this._triggerElement.removeEventListener(t,this,up)}))}}const gF=new Ee("mat-ripple-global-options");let tD=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new fF(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(qe),te(Pn),te(gF,8),te(dr,8))},n.\u0275dir=Pe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&$t("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),mF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[fn,fn]}),n})();class nD{}const gr="*";function Nr(n,t){return{type:7,name:n,definitions:t,options:{}}}function oi(n,t=null){return{type:4,styles:t,timings:n}}function iD(n,t=null){return{type:3,steps:n,options:t}}function rD(n,t=null){return{type:2,steps:n,options:t}}function ut(n){return{type:6,styles:n,offset:null}}function wn(n,t,e){return{type:0,name:n,styles:t,options:e}}function Oa(n){return{type:5,steps:n}}function Wn(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function dp(n=null){return{type:9,options:n}}function hp(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function oD(n){Promise.resolve(null).then(n)}class Pa{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){oD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class sD{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?oD(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function yF(n,t){}const _s={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vF={dialogContainer:Nr("dialogContainer",[wn("void, exit",ut({opacity:0,transform:"scale(0.7)"})),wn("enter",ut({transform:"none"})),Wn("* => enter",iD([oi("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",ut({transform:"none",opacity:1})),hp("@*",dp(),{optional:!0})]),_s),Wn("* => void, * => exit",iD([oi("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",ut({opacity:0})),hp("@*",dp(),{optional:!0})]),_s)])};class Fc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",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,this.enterAnimationDuration=_s.params.enterAnimationDuration,this.exitAnimationDuration=_s.params.exitAnimationDuration}}let bF=(()=>{class n extends qw{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new _t}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Zf),te($e,8),te(Fc),te(Tc),te(qe),te(xa),te(gs))},n.\u0275cmp=At({type:n,selectors:[["ng-component"]],features:[et],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),wF=(()=>{class n extends bF{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||_s.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||_s.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Zf),te($e,8),te(Fc),te(Tc),te(qe),te(xa),te(Ki),te(gs))},n.\u0275cmp=At({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&Th("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&($l("id",i._config.id),ii("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Ih("@dialogContainer",i._getAnimationState()))},features:[et],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&je(0,yF,0,0,"ng-template",0)},dependencies:[zf],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[vF.dialogContainer]}}),n})();class pp{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new _e,this._beforeClosed=new _e,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe($n(r=>"opened"===r.state),zt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe($n(r=>"closed"===r.state),zt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Fi(this.backdropClick(),this.keydownEvents().pipe($n(r=>27===r.keyCode&&!this.disableClose&&!Wf(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),aD(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe($n(e=>"closing"===e.state),zt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function aD(n,t,e){return n._closeInteractionType=t,n.close(e)}const DF=new Ee("MatDialogData"),EF=new Ee("mat-dialog-default-options"),lD=new Ee("mat-dialog-scroll-strategy"),SF={provide:lD,deps:[kr],useFactory:function CF(n){return()=>n.scrollStrategies.block()}};let TF=0,MF=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _e,this._afterOpenedAtThisLevel=new _e,this._idPrefix="mat-dialog-",this.afterAllClosed=Pc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hs(void 0))),this._scrollStrategy=a,this._dialog=i.get(Yw)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i=Object.assign(Object.assign({},this._defaultOptions||new Fc),i)).id=i.id||`${this._idPrefix}${TF++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Fc,useValue:i},{provide:kc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(null==i?void 0:i.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return 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(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Qd()},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),Lc=(()=>{class n extends MF{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,pp,wF,DF,c)}}return n.\u0275fac=function(e){return new(e||n)(ae(kr),ae(xn),ae(hf,8),ae(EF,8),ae(lD),ae(n,12),ae(Oc),ae(dr,8))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),AF=0,IF=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=cD(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){aD(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(te(pp,8),te(lt),te(Lc))},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&Jt("click",function(o){return i._onButtonClick(o)}),2&e&&ii("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Li]}),n})(),xF=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+AF++}ngOnInit(){this._dialogRef||(this._dialogRef=cD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(te(pp,8),te(lt),te(Lc))},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&$l("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),RF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),OF=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Pe({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&$t("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),n})();function cD(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let PF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[Lc,SF],imports:[iF,sp,bc,fn,fn]}),n})();const kF=["*",[["mat-toolbar-row"]]],NF=["*","mat-toolbar-row"],FF=Nc(class{constructor(n){this._elementRef=n}});let LF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Pe({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),BF=(()=>{class n extends FF{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Pn),te($e))},n.\u0275cmp=At({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&ri(r,LF,5),2&e){let o;xt(o=Rt())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&$t("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[et],ngContentSelectors:NF,decls:2,vars:0,template:function(e,i){1&e&&(xr(kF),Mi(0),Mi(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.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}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),VF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[fn,fn]}),n})();function uD(n,t){const e=v(n)?n:()=>n,i=r=>r.error(e());return new pe(t?r=>t.schedule(i,0,r):i)}function ka(n,t,e){const i=v(n)||t||e?{next:n,error:t,complete:e}:n;return i?Xe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(new pt(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):j}function dD(n){return Xe((t,e)=>{let o,i=null,r=!1;i=t.subscribe(new pt(e,void 0,void 0,s=>{o=Gn(n(s,dD(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}class zF{}class Fr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Fr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Fr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Fr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class $F{encodeKey(t){return hD(t)}encodeValue(t){return hD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const GF=/%(\d[a-f0-9])/gi,qF={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hD(n){return encodeURIComponent(n).replace(GF,(t,e)=>{var i;return null!==(i=qF[e])&&void 0!==i?i:t})}function Bc(n){return`${n}`}class Lr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new $F,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function WF(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Bc):[Bc(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Lr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Bc(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Bc(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class XF{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function fD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function pD(n){return"undefined"!=typeof Blob&&n instanceof Blob}function gD(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Na{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function YF(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,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.headers||(this.headers=new Fr),this.context||(this.context=new XF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":aD.set(R,t.setHeaders[R]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((D,R)=>D.set(R,t.setParams[R]),u)),new Na(i,r,s,{params:u,headers:c,context:h,reportProgress:l,responseType:o,withCredentials:a})}}var pn=(()=>((pn=pn||{})[pn.Sent=0]="Sent",pn[pn.UploadProgress=1]="UploadProgress",pn[pn.ResponseHeader=2]="ResponseHeader",pn[pn.DownloadProgress=3]="DownloadProgress",pn[pn.Response=4]="Response",pn[pn.User=5]="User",pn))();class gp extends class ZF{constructor(t,e=200,i="OK"){this.headers=t.headers||new Fr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=pn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new gp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function mp(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let _D=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Na)o=e;else{let l,c;l=r.headers instanceof Fr?r.headers:new Fr(r.headers),r.params&&(c=r.params instanceof Lr?r.params:new Lr({fromObject:r.params})),o=new Na(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=bn(o).pipe(function UF(n,t){return v(t)?mo(n,t,1):mo(n,1)}(l=>this.handler.handle(l)));if(e instanceof Na||"events"===r.observe)return s;const a=s.pipe($n(l=>l instanceof gp));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(it(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(it(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(it(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(it(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Lr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,mp(r,i))}post(e,i,r={}){return this.request("POST",e,mp(r,i))}put(e,i,r={}){return this.request("PUT",e,mp(r,i))}}return n.\u0275fac=function(e){return new(e||n)(ae(zF))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();const JF=["*"];let Vc;function Fa(n){var t;return(null===(t=function e2(){if(void 0===Vc&&(Vc=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Vc=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Vc}())||void 0===t?void 0:t.createHTML(n))||n}function yD(n){return Error(`Unable to find icon with the name "${n}"`)}function vD(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function bD(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class uo{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Hc=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,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(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new uo(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(ft.HTML,r);if(!s)throw bD(r);const a=Fa(s);return this._addSvgIconConfig(e,i,new uo("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new uo(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(ft.HTML,i);if(!o)throw bD(i);const s=Fa(o);return this._addSvgIconSetConfig(e,new uo("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(ft.RESOURCE_URL,e);if(!i)throw vD(e);const r=this._cachedIconsByUrl.get(i);return r?bn(jc(r)):this._loadSvgIconFromConfig(new uo(e,null)).pipe(ka(o=>this._cachedIconsByUrl.set(i,o)),it(o=>jc(o)))}getNamedSvgIcon(e,i=""){const r=wD(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):uD(yD(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?bn(jc(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(it(i=>jc(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?bn(r):function HF(...n){const t=Ig(n),{args:e,keys:i}=pw(n),r=new pe(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{h||(h=!0,c--),a[u]=D},()=>l--,void 0,()=>{(!l||!h)&&(c||o.next(i?gw(i,a):a),o.complete())}))}});return t?r.pipe(Gf(t)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(dD(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ft.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),bn(null)})))).pipe(it(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw yD(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ka(i=>e.svgText=i),it(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?bn(null):this._fetchIcon(e).pipe(ka(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);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(Fa(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Fa("")),r=e.attributes;for(let o=0;oFa(u)),function jF(n){return Xe((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(a)),Pg());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(wD(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),DD=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],c2=DD.map(n=>`[${n}]`).join(", "),u2=/^url\(['"]?#(.*?)['"]?\)$/;let d2=(()=>{class n extends o2{constructor(e,i,r,o,s,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=G.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=kn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(c2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(u2):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(zt(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(Hc),Bs("aria-hidden"),te(a2),te(ar),te(s2,8))},n.\u0275cmp=At({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(ii("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),$t("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[et],ngContentSelectors:JF,decls:1,vars:0,template:function(e,i){1&e&&(xr(),Mi(0))},styles:[".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}),n})(),h2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[fn,fn]}),n})();const f2=["mat-button",""],p2=["*"],m2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],_2=Nc(cp(lF(class{constructor(n){this._elementRef=n}})));let ED=(()=>{class n extends _2{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of m2)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(gs),te(dr,8))},n.\u0275cmp=At({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Un(tD,5),2&e){let r;xt(r=Rt())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(ii("disabled",i.disabled||null),$t("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[et],attrs:f2,ngContentSelectors:p2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(xr(),me(0,"span",0),Mi(1),ye(),Et(2,"span",1)(3,"span",2)),2&e&&(Oe(2),$t("mat-button-ripple-round",i.isRoundButton||i.isIconButton),st("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[tD],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),y2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[mF,fn,fn]}),n})();const v2=["tooltip"],CD="tooltip-panel",SD=so({passive:!0}),TD=new Ee("mat-tooltip-scroll-strategy"),E2={provide:TD,deps:[kr],useFactory:function D2(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},C2=new Ee("mat-tooltip-default-options",{providedIn:"root",factory:function S2(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let T2=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D,R){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=h,this._defaultOptions=D,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new _e,this._scrollStrategy=u,this._document=R,D&&(D.position&&(this.position=D.position),D.touchGestures&&(this.touchGestures=D.touchGestures)),h.change.pipe(Yt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=kn(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ca(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ca(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Yt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,SD)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){var i;if(this.disabled||!this.message||this._isTooltipVisible())return void(null===(i=this._tooltipInstance)||void 0===i||i._cancelPendingAnimations());const r=this._createOverlay();this._detach(),this._portal=this._portal||new vc(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(Yt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Yt(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}-${CD}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Yt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Yt(this._destroyed)).subscribe(()=>{var o;return null===(o=this._tooltipInstance)||void 0===o?void 0:o._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Yt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Wf(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),!(null===(e=this._defaultOptions)||void 0===e)&&e.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(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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 e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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(),this._ngZone.onMicrotaskEmpty.pipe(zt(1),Yt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${CD}-`;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",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var r;const o=i.relatedTarget;(!o||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,SD)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Qd()},n.\u0275dir=Pe({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),M2=(()=>{class n extends T2{constructor(e,i,r,o,s,a,l,c,u,h,D,R){super(e,i,r,o,s,a,l,c,u,h,D,R),this._tooltipComponent=I2}}return n.\u0275fac=function(e){return new(e||n)(te(kr),te(lt),te(ip),te(an),te(qe),te(Pn),te(Sw),te(gs),te(TD),te(lo,8),te(C2,8),te($e))},n.\u0275dir=Pe({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[et]}),n})(),A2=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new _e,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(te(Ki),te(dr,8))},n.\u0275dir=Pe({type:n}),n})(),I2=(()=>{class n extends A2{constructor(e,i,r){super(e,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(te(Ki),te(ww),te(dr,8))},n.\u0275cmp=At({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Un(v2,7),2&e){let r;xt(r=Rt())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&Jt("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&Rr("zoom",i.isVisible()?1:null)},features:[et],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(me(0,"div",0,1),Jt("animationend",function(o){return i._handleAnimationEnd(o)}),function mb(n,t){const e=ot();let i;const r=n+22;e.firstCreatePass?(i=function Wx(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Kr(i.type)),s=ci(te);try{const a=pl(!1),l=o();return pl(a),function kA(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,ge(),r,l),l}finally{ci(s)}}(2,"async"),Se(3),ye()),2&e){let r;$t("mat-tooltip-handset",null==(r=_b(2,4,i._isHandset))?null:r.matches),st("ngClass",i.tooltipClass),Oe(3),qi(i.message)}},dependencies:[O0,V0],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),x2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[E2],imports:[Pw,us,sp,fn,fn,Rc]}),n})();const R2=["primaryValueBar"],O2=Nc(class{constructor(n){this._elementRef=n}},"primary"),P2=new Ee("mat-progress-bar-location",{providedIn:"root",factory:function k2(){const n=sr($e),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),N2=new Ee("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let F2=0,L2=(()=>{class n extends O2{constructor(e,i,r,o,s,a){super(e),this._ngZone=i,this._animationMode=r,this._changeDetectorRef=a,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new _t,this._animationEndSubscription=G.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+F2++;const l=o?o.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${l}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===r,s&&(s.color&&(this.color=this.defaultColor=s.color),this.mode=s.mode||this.mode)}get value(){return this._value}set value(e){var i;this._value=MD(Ca(e)||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){var i;this._bufferValue=MD(e||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=ms(e,"transitionend").pipe($n(i=>i.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(te(lt),te(qe),te(dr,8),te(P2,8),te(N2,8),te(Ki))},n.\u0275cmp=At({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&Un(R2,5),2&e){let r;xt(r=Rt())&&(i._primaryValueBar=r.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(ii("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),$t("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[et],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(me(0,"div",0),An(),me(1,"svg",1)(2,"defs")(3,"pattern",2),Et(4,"circle",3),ye()(),Et(5,"rect",4),ye(),Qn(),Et(6,"div",5)(7,"div",6,7)(9,"div",8),ye()),2&e&&(Oe(3),st("id",i.progressbarId),Oe(2),ii("fill",i._rectangleFillValue),Oe(1),st("ngStyle",i._bufferTransform()),Oe(1),st("ngStyle",i._primaryTransform()))},dependencies:[B0],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),n})();function MD(n,t=0,e=100){return Math.max(t,Math.min(e,n))}let B2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[us,fn,fn]}),n})();function V2(n,t){if(1&n){const e=no();me(0,"button",11),Jt("click",function(){return Bn(e),Vn(function Hy(n){return Do(function vS(){return ze.lFrame.contextLView}(),22+n)}(4).click())}),An(),me(1,"svg",5),Et(2,"path",12),ye(),Qn(),me(3,"input",13,14),Jt("change",function(r){return Bn(e),Vn(wt().fileChanged(r))}),ye()()}}function H2(n,t){if(1&n){const e=no();me(0,"button",15),Jt("click",function(){return Bn(e),Vn(wt().fileRemoved())}),me(1,"mat-icon",16),An(),me(2,"svg",5),Et(3,"path",17),ye()()()}}function j2(n,t){1&n&&Et(0,"mat-progress-bar",18)}let U2=(()=>{class n{constructor(e,i){this.FileHandleService=e,this.dialog=i,this.isLoading=!1}ngOnInit(){"true"!=localStorage.getItem("gotIt")&&this.infoDialog(),this.fileSub=this.FileHandleService.getselectedFileDataListener().subscribe(e=>{this.selectedFileName=e.selectedFileName,this.isLoading=!1})}fileChanged(e){this.isLoading=!0,this.FileHandleService.fileChange(e).then(()=>{}).catch(i=>{this.isLoading=!1})}fileRemoved(){this.isLoading=!0,this.FileHandleService.fileClear().then(()=>{this.isLoading=!1}).catch(()=>{})}infoDialog(){0==this.dialog.openDialogs.length&&this.dialog.open(z2,{width:"900px"})}}return n.\u0275fac=function(e){return new(e||n)(te(Nf),te(Lc))},n.\u0275cmp=At({type:n,selectors:[["app-header"]],decls:14,vars:4,consts:[[1,"navbar-header"],["version","1.1","height","22","viewBox","0 0 221.4425 104.90778","xmlns","http://www.w3.org/2000/svg",0,"xmlns","svg","http://www.w3.org/2000/svg"],["transform","translate(-166.91913,-320.14911)"],["d","m 257.60475,422.65594 c -3.68024,-4.67867 -3.80059,-7.33629 -1.60802,-35.50885 0.42924,-5.5154 0.29715,-7.10308 -0.49919,-6 -1.84631,2.55747 -7.18057,20.04786 -8.99699,29.5 -1.68726,8.78003 -1.82548,9.05459 -5.65547,11.23355 -5.50742,3.13328 -8.70282,2.91455 -11.83706,-0.81028 l -2.58889,-3.07672 v -44.72401 -44.72401 l 4.39164,-2.13362 c 5.98073,-2.90567 10.89945,-3.71467 13.64648,-2.24451 2.46876,1.32124 2.44494,-1.0775 0.39713,39.9796 l -0.52371,10.5 2.45673,-4.5 c 3.65244,-6.69019 6.20832,-9 9.9588,-9 4.65732,0 11.76898,3.92213 14.50567,8 2.326,3.4659 2.34206,3.68134 1.64788,22.10985 -0.74866,19.8751 -0.58958,20.86303 4.18508,25.99029 l 2.42134,2.60014 -6.2233,2.26913 c -10.0018,3.64684 -13.14867,3.75512 -15.67812,0.53944 z m 53.23721,0.0137 c -2.7879,-4.25487 -3.31738,-9.38051 -2.2931,-22.19808 0.54361,-6.80259 0.84931,-14.04597 0.67933,-16.09642 l -0.30906,-3.72805 -2.34123,6 c -2.09921,5.37976 -5.58874,18.25249 -7.83533,28.90417 -1.05164,4.98614 -4.81606,7.8858 -10.39367,8.00605 -3.45337,0.0745 -4.52807,-0.3919 -6.29691,-2.73248 -2.09304,-2.76958 -2.13808,-3.65849 -2.41223,-47.61423 l -0.27937,-44.79195 4.77937,-2.02705 c 6.87905,-2.91758 10.81355,-3.56418 13.36823,-2.19696 2.19399,1.17419 2.20248,1.28623 1.54049,20.31658 -0.36611,10.52473 -0.91409,21.83587 -1.21773,25.13587 l -0.55207,6 3.0861,-5.4388 c 1.69736,-2.99135 3.82371,-6.25385 4.72522,-7.25 2.31381,-2.55675 7.04111,-2.25736 13.25567,0.83948 4.36026,2.17281 5.68193,3.47063 7.33105,7.19874 1.92241,4.34592 1.95825,5.26146 0.80638,20.59932 -1.33915,17.83153 -1.00676,19.90931 4.01861,25.12078 l 2.95991,3.06953 -7.77125,2.69215 c -9.77471,3.38621 -12.73011,3.4243 -14.84841,0.19137 z m -120.8071,-0.88406 c -3.58973,-2.17295 -4.10615,-2.24057 -6.81009,-0.89166 -5.54205,2.76473 -10.12372,2.74447 -13.37497,-0.0591 l -2.93067,-2.52717 0.23036,-45.24491 0.23037,-45.24491 2.26963,-2.46423 c 4.58878,-4.98222 14.02737,-6.90901 16.9319,-3.45648 1.22862,1.46043 1.35048,4.23207 0.73644,16.75 -0.40468,8.25 -1.02359,18.34391 -1.37534,22.43091 l -0.63955,7.43091 4.46746,-4.11796 c 8.26975,-7.62279 17.16025,-7.92424 24.30542,-0.82412 5.45846,5.42405 7.68013,12.73447 7.77394,25.58026 0.0832,11.39519 -2.06925,19.45142 -7.01959,26.27288 -6.22272,8.57478 -16.70155,11.26498 -24.79531,6.36563 z m 11.13622,-18.38849 c 3.37204,-7.34077 4.3353,-20.71207 1.91021,-26.51613 -0.85806,-2.05363 -1.98071,-3.73387 -2.49477,-3.73387 -3.14468,0 -11.6017,13.27473 -13.53787,21.25 -0.62862,2.58932 -0.47011,2.75 2.71276,2.75 3.03868,0 3.33352,0.24514 2.91678,2.42512 -0.25497,1.33382 0.0673,4.03382 0.71623,6 1.84287,5.58397 4.5618,4.82349 7.77666,-2.17512 z m 157.26861,19.68798 c -1.36369,-0.5738 -3.20194,-1.69714 -4.085,-2.4963 -1.4065,-1.27287 -2.00542,-1.25354 -4.83065,0.15587 -9.54793,4.76314 -15.38372,2.0228 -16.61101,-7.80011 -0.37595,-3.009 -0.30338,-23.60846 0.16128,-45.77658 l 0.84482,-40.30567 3.71063,-3.0006 c 4.2914,-3.47025 12.10396,-4.79537 14.9983,-2.54393 1.55713,1.21126 1.62779,2.795 0.79541,17.82934 -0.50244,9.075 -1.20303,19.38953 -1.55686,22.92118 l -0.64333,6.42119 4.73768,-4.17027 c 8.22668,-7.24142 16.59052,-7.75764 23.56723,-1.4546 10.28648,9.29321 11.93664,35.90579 3.11183,50.18514 -4.43737,7.18005 -9.24203,10.41856 -15.98624,10.77529 -3.15406,0.16683 -6.8504,-0.16615 -8.21409,-0.73995 z m 8.20786,-17.58938 c 3.19736,-5.47465 5.05501,-16.95271 3.85045,-23.79115 -1.44393,-8.19728 -2.87009,-9.44545 -6.90914,-6.04682 -3.03917,2.5573 -9.50057,14.36188 -10.69852,19.54555 -0.56037,2.42478 -0.40775,2.53481 2.96903,2.14059 l 3.55976,-0.41558 v 4.9094 c 0,7.7699 3.72577,9.65536 7.22842,3.65801 z"],["mat-icon-button","","aria-label","info","matTooltip","Info",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 -960 960 960","width","24px","fill","currentColor"],["d","M480-280q17 0 28.5-11.5T520-320v-160q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480v160q0 17 11.5 28.5T480-280Zm0-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"],[1,"toolbar-spacer"],["mat-icon-button","","aria-label","Open File","matTooltip","Open File",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Clear selected File","matTooltip","Clear selected File",3,"click",4,"ngIf"],["mode","indeterminate",4,"ngIf"],["mat-icon-button","","aria-label","Open File","matTooltip","Open File",3,"click"],["d","M720-320h146q17 0 28.5 11.5T906-280q0 17-11.5 28.5T866-240h-50l90 90q11 11 11 27.5T906-94q-12 12-28.5 12T849-94l-89-89v49q0 17-11.5 28.5T720-94q-17 0-28.5-11.5T680-134v-146q0-17 11.5-28.5T720-320ZM520-800v160q0 17 11.5 28.5T560-600h160L520-800Zm-280-80h287q16 0 30.5 6t25.5 17l194 194q11 11 17 25.5t6 30.5v167q0 17-11.5 28.5T760-400H640q-17 0-28.5 11.5T600-360v240q0 17-11.5 28.5T560-80H240q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880Z"],["type","file","accept","*",1,"hidden",3,"change"],["fileInput",""],["mat-icon-button","","aria-label","Clear selected File","matTooltip","Clear selected File",3,"click"],["aria-hidden","false","aria-label","Clear selected File"],["d","m480-424 116 116q11 11 28 11t28-11q11-11 11-28t-11-28L536-480l116-116q11-11 11-28t-11-28q-11-11-28-11t-28 11L480-536 364-652q-11-11-28-11t-28 11q-11 11-11 28t11 28l116 116-116 116q-11 11-11 28t11 28q11 11 28 11t28-11l116-116Zm0 344q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"],["mode","indeterminate"]],template:function(e,i){1&e&&(me(0,"mat-toolbar")(1,"nav",0),An(),me(2,"svg",1)(3,"g",2),Et(4,"path",3),ye()(),Qn(),me(5,"button",4),Jt("click",function(){return i.infoDialog()}),An(),me(6,"svg",5),Et(7,"path",6),ye()(),Qn(),Et(8,"span",7),me(9,"span"),Se(10),ye(),je(11,V2,5,0,"button",8),je(12,H2,4,0,"button",9),ye()(),je(13,j2,1,0,"mat-progress-bar",10)),2&e&&(Oe(10),qi(i.selectedFileName),Oe(1),st("ngIf",!i.selectedFileName),Oe(1),st("ngIf",i.selectedFileName),Oe(1),st("ngIf",i.isLoading))},dependencies:[cs,BF,d2,ED,M2,L2],styles:[".navbar-header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;width:100%}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{height:40px;background:rgb(255,255,255);color:inherit}svg[_ngcontent-%COMP%]{fill:currentColor}.hidden[_ngcontent-%COMP%]{display:none} .mat-progress-bar-fill:after{background-color:currentColor} .mat-progress-bar-background, .mat-progress-bar-buffer{background-color:#e2e1df}@media (prefers-color-scheme: dark){mat-toolbar[_ngcontent-%COMP%]{background:rgb(29,30,32)} .mat-progress-bar-fill:after{background-color:currentColor} .mat-progress-bar-background, .mat-progress-bar-buffer{background-color:#1d1e20}}"]}),n})(),z2=(()=>{class n{gotIt(){localStorage.setItem("gotIt","true")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=At({type:n,selectors:[["ng-component"]],decls:78,vars:1,consts:[["mat-dialog-title","","align","center"],["version","1.1","height","18","viewBox","0 0 221.4425 104.90778","xmlns","http://www.w3.org/2000/svg",0,"xmlns","svg","http://www.w3.org/2000/svg"],["transform","translate(-166.91913,-320.14911)"],["d","m 257.60475,422.65594 c -3.68024,-4.67867 -3.80059,-7.33629 -1.60802,-35.50885 0.42924,-5.5154 0.29715,-7.10308 -0.49919,-6 -1.84631,2.55747 -7.18057,20.04786 -8.99699,29.5 -1.68726,8.78003 -1.82548,9.05459 -5.65547,11.23355 -5.50742,3.13328 -8.70282,2.91455 -11.83706,-0.81028 l -2.58889,-3.07672 v -44.72401 -44.72401 l 4.39164,-2.13362 c 5.98073,-2.90567 10.89945,-3.71467 13.64648,-2.24451 2.46876,1.32124 2.44494,-1.0775 0.39713,39.9796 l -0.52371,10.5 2.45673,-4.5 c 3.65244,-6.69019 6.20832,-9 9.9588,-9 4.65732,0 11.76898,3.92213 14.50567,8 2.326,3.4659 2.34206,3.68134 1.64788,22.10985 -0.74866,19.8751 -0.58958,20.86303 4.18508,25.99029 l 2.42134,2.60014 -6.2233,2.26913 c -10.0018,3.64684 -13.14867,3.75512 -15.67812,0.53944 z m 53.23721,0.0137 c -2.7879,-4.25487 -3.31738,-9.38051 -2.2931,-22.19808 0.54361,-6.80259 0.84931,-14.04597 0.67933,-16.09642 l -0.30906,-3.72805 -2.34123,6 c -2.09921,5.37976 -5.58874,18.25249 -7.83533,28.90417 -1.05164,4.98614 -4.81606,7.8858 -10.39367,8.00605 -3.45337,0.0745 -4.52807,-0.3919 -6.29691,-2.73248 -2.09304,-2.76958 -2.13808,-3.65849 -2.41223,-47.61423 l -0.27937,-44.79195 4.77937,-2.02705 c 6.87905,-2.91758 10.81355,-3.56418 13.36823,-2.19696 2.19399,1.17419 2.20248,1.28623 1.54049,20.31658 -0.36611,10.52473 -0.91409,21.83587 -1.21773,25.13587 l -0.55207,6 3.0861,-5.4388 c 1.69736,-2.99135 3.82371,-6.25385 4.72522,-7.25 2.31381,-2.55675 7.04111,-2.25736 13.25567,0.83948 4.36026,2.17281 5.68193,3.47063 7.33105,7.19874 1.92241,4.34592 1.95825,5.26146 0.80638,20.59932 -1.33915,17.83153 -1.00676,19.90931 4.01861,25.12078 l 2.95991,3.06953 -7.77125,2.69215 c -9.77471,3.38621 -12.73011,3.4243 -14.84841,0.19137 z m -120.8071,-0.88406 c -3.58973,-2.17295 -4.10615,-2.24057 -6.81009,-0.89166 -5.54205,2.76473 -10.12372,2.74447 -13.37497,-0.0591 l -2.93067,-2.52717 0.23036,-45.24491 0.23037,-45.24491 2.26963,-2.46423 c 4.58878,-4.98222 14.02737,-6.90901 16.9319,-3.45648 1.22862,1.46043 1.35048,4.23207 0.73644,16.75 -0.40468,8.25 -1.02359,18.34391 -1.37534,22.43091 l -0.63955,7.43091 4.46746,-4.11796 c 8.26975,-7.62279 17.16025,-7.92424 24.30542,-0.82412 5.45846,5.42405 7.68013,12.73447 7.77394,25.58026 0.0832,11.39519 -2.06925,19.45142 -7.01959,26.27288 -6.22272,8.57478 -16.70155,11.26498 -24.79531,6.36563 z m 11.13622,-18.38849 c 3.37204,-7.34077 4.3353,-20.71207 1.91021,-26.51613 -0.85806,-2.05363 -1.98071,-3.73387 -2.49477,-3.73387 -3.14468,0 -11.6017,13.27473 -13.53787,21.25 -0.62862,2.58932 -0.47011,2.75 2.71276,2.75 3.03868,0 3.33352,0.24514 2.91678,2.42512 -0.25497,1.33382 0.0673,4.03382 0.71623,6 1.84287,5.58397 4.5618,4.82349 7.77666,-2.17512 z m 157.26861,19.68798 c -1.36369,-0.5738 -3.20194,-1.69714 -4.085,-2.4963 -1.4065,-1.27287 -2.00542,-1.25354 -4.83065,0.15587 -9.54793,4.76314 -15.38372,2.0228 -16.61101,-7.80011 -0.37595,-3.009 -0.30338,-23.60846 0.16128,-45.77658 l 0.84482,-40.30567 3.71063,-3.0006 c 4.2914,-3.47025 12.10396,-4.79537 14.9983,-2.54393 1.55713,1.21126 1.62779,2.795 0.79541,17.82934 -0.50244,9.075 -1.20303,19.38953 -1.55686,22.92118 l -0.64333,6.42119 4.73768,-4.17027 c 8.22668,-7.24142 16.59052,-7.75764 23.56723,-1.4546 10.28648,9.29321 11.93664,35.90579 3.11183,50.18514 -4.43737,7.18005 -9.24203,10.41856 -15.98624,10.77529 -3.15406,0.16683 -6.8504,-0.16615 -8.21409,-0.73995 z m 8.20786,-17.58938 c 3.19736,-5.47465 5.05501,-16.95271 3.85045,-23.79115 -1.44393,-8.19728 -2.87009,-9.44545 -6.90914,-6.04682 -3.03917,2.5573 -9.50057,14.36188 -10.69852,19.54555 -0.56037,2.42478 -0.40775,2.53481 2.96903,2.14059 l 3.55976,-0.41558 v 4.9094 c 0,7.7699 3.72577,9.65536 7.22842,3.65801 z"],[1,"mat-typography"],["align","center"],["version","1.1","height","15","viewBox","0 0 221.4425 104.90778","xmlns","http://www.w3.org/2000/svg",0,"xmlns","svg","http://www.w3.org/2000/svg"],[1,"ext"],["href","https://github.com/adityatelange/bhhb",1,"btn"],["mat-button",""],["role","img","viewBox","0 0 24 24","height","30","xmlns","http://www.w3.org/2000/svg","fill","currentColor",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"],["d","M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 \n 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 \n 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 \n 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 \n 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 \n 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 \n 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 \n 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"],["aria-label","Sponsor @adityatelange","href","https://github.com/sponsors/adityatelange?o=esb",1,"btn"],["aria-hidden","true","height","20","viewBox","0 0 16 16","version","1.1","width","20","data-view-component","true","color","#db61a2","fill","currentColor"],["fill-rule","evenodd","d","M4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.565 20.565 0 008 13.393a20.561 20.561 0 003.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.75.75 0 01-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5zM8 14.25l-.345.666-.002-.001-.006-.003-.018-.01a7.643 7.643 0 01-.31-.17 22.075 22.075 0 01-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.08 22.08 0 01-3.744 2.584l-.018.01-.006.003h-.002L8 14.25zm0 0l.345.666a.752.752 0 01-.69 0L8 14.25z"],["href","https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps"],["href","https://forum.portswigger.net/thread/how-do-i-view-items-export-from-burp-s-proxy-s-history-0ae0f99e"],["width","100%","src","assets/bhhb.png","alt",""],["align","end"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close","click"]],template:function(e,i){1&e&&(me(0,"h2",0)(1,"b"),Se(2,"About Burp HTTP History Browser - "),An(),me(3,"svg",1)(4,"g",2),Et(5,"path",3),ye()()()(),Qn(),me(6,"mat-dialog-content",4)(7,"p",5),An(),me(8,"svg",6)(9,"g",2),Et(10,"path",3),ye()(),Se(11," is a tool to view HTTP history exported from Burp Suite Community Edition(CE). "),ye(),Qn(),me(12,"div",7)(13,"a",8)(14,"button",9),An(),me(15,"svg",10),Et(16,"path",11),ye(),Qn(),me(17,"span"),Se(18,"View Source on Github"),ye()()(),me(19,"a",12)(20,"button",9),An(),me(21,"svg",13),Et(22,"path",14),ye(),Qn(),me(23,"span"),Se(24,"Support me on Github"),ye()()()(),Et(25,"hr"),me(26,"ul")(27,"li")(28,"code"),Se(29,"Burp Suite Community Edition"),ye(),Se(30," has one BIG feature paywalled - Disk-based projects \u{1f4be}."),ye(),me(31,"li"),Se(32,"Because of which Community Edition users cannot save their "),me(33,"code"),Se(34,"HTTP history"),ye(),Se(35," and Sitemap info, which are destroyed after the temporary session is closed \u{1f5d1}\ufe0f."),ye(),me(36,"li"),Se(37,"Although this is a thing, users can export their Burp CE's HTTP history by "),me(38,"em"),Se(39,"selecting the records"),ye(),Se(40," (Ctrl+A) and using "),me(41,"strong")(42,"code"),Se(43,"Save items"),ye()(),Se(44," \u{1f4be} option in context menu of "),me(45,"code"),Se(46,"Proxy->HTTP history"),ye(),Se(47," or "),me(48,"code"),Se(49,"Target->Sitemap"),ye(),Se(50," or "),me(51,"code"),Se(52,"Logger"),ye(),Se(53,". "),ye(),me(54,"li"),Se(55,"Using that Burp will export the HTTP history along with Requests and Responses into a "),me(56,"em"),Se(57,"XML file"),ye(),Se(58,"."),ye(),me(59,"li")(60,"strong")(61,"code"),Se(62,"BHHB"),ye()(),Se(63," can open these exported items, parse it and display them in a well-formatted manner. \u{1f4cb}"),ye(),me(64,"li"),Se(65,"This application is a "),me(66,"a",15)(67,"code"),Se(68,"PWA"),ye()(),Se(69,", which can be installed in any chromium based browser and could run offline, with all of the processing done on device itself \u2699\ufe0f."),ye(),me(70,"li"),Se(71,"Linked Forum thread - "),me(72,"a",16),Se(73,"How do I view items export from Burp's proxy's history?"),ye()()(),Et(74,"img",17),ye(),me(75,"mat-dialog-actions",18)(76,"button",19),Jt("click",function(){return i.gotIt()}),Se(77,"Got it!"),ye()()),2&e&&(Oe(76),st("mat-dialog-close",!0))},dependencies:[ED,IF,xF,RF,OF],styles:[".mat-dialog-container{box-shadow:unset;border:1px solid rgba(255,255,255,.12)} .mat-dialog-container button{border:1px solid rgba(0,0,0,.12)!important}svg[_ngcontent-%COMP%]{fill:currentColor}a[_ngcontent-%COMP%]:link, a[_ngcontent-%COMP%]:visited{color:inherit}ul[_ngcontent-%COMP%]{padding:0 15px}.ext[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:center}.ext[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:4px;display:inline-block}.btn[_ngcontent-%COMP%]{word-wrap:break-word;padding:5px 16px;font-size:14px;font-weight:500;border-radius:6px;appearance:none;text-align:center;box-shadow:none}.btn[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{transform:scale(1.1)}.btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:transform .15s cubic-bezier(.2,0,.13,2);transform:scale(1);margin-right:8px!important;display:inline-block;overflow:visible!important}@media (prefers-color-scheme: dark){ .mat-dialog-container{background-color:#1d1e20;color:inherit} .mat-dialog-container button{border:1px solid rgba(255,255,255,.12)!important}}"]}),n})();const $2=["mat-sort-header",""];function W2(n,t){if(1&n){const e=no();me(0,"div",3),Jt("@arrowPosition.start",function(){return Bn(e),Vn(wt()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return Bn(e),Vn(wt()._disableViewStateAnimation=!1)}),Et(1,"div",4),me(2,"div",5),Et(3,"div",6)(4,"div",7)(5,"div",8),ye()()}if(2&n){const e=wt();st("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),Oe(2),st("@indicator",e._getArrowDirectionState()),Oe(1),st("@leftPointer",e._getArrowDirectionState()),Oe(1),st("@rightPointer",e._getArrowDirectionState())}}const G2=["*"],AD=new Ee("MAT_SORT_DEFAULT_OPTIONS"),q2=cF(cp(class{}));let _p=(()=>{class n extends q2{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new _e,this.start="asc",this._direction="",this.sortChange=new _t}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=kn(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,r,o;if(!e)return"";const s=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!(null===(o=this._defaultOptions)||void 0===o||!o.disableClear);let a=function X2(n,t){let e=["asc","desc"];return"desc"==n&&e.reverse(),t||e.push(""),e}(e.start||this.start,s),l=a.indexOf(this.direction)+1;return l>=a.length&&(l=0),a[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(te(AD,8))},n.\u0275dir=Pe({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[et,Li]}),n})();const Br=oF.ENTERING+" "+rF.STANDARD_CURVE,ys={indicator:Nr("indicator",[wn("active-asc, asc",ut({transform:"translateY(0px)"})),wn("active-desc, desc",ut({transform:"translateY(10px)"})),Wn("active-asc <=> active-desc",oi(Br))]),leftPointer:Nr("leftPointer",[wn("active-asc, asc",ut({transform:"rotate(-45deg)"})),wn("active-desc, desc",ut({transform:"rotate(45deg)"})),Wn("active-asc <=> active-desc",oi(Br))]),rightPointer:Nr("rightPointer",[wn("active-asc, asc",ut({transform:"rotate(45deg)"})),wn("active-desc, desc",ut({transform:"rotate(-45deg)"})),Wn("active-asc <=> active-desc",oi(Br))]),arrowOpacity:Nr("arrowOpacity",[wn("desc-to-active, asc-to-active, active",ut({opacity:1})),wn("desc-to-hint, asc-to-hint, hint",ut({opacity:.54})),wn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",ut({opacity:0})),Wn("* => asc, * => desc, * => active, * => hint, * => void",oi("0ms")),Wn("* <=> *",oi(Br))]),arrowPosition:Nr("arrowPosition",[Wn("* => desc-to-hint, * => desc-to-active",oi(Br,Oa([ut({transform:"translateY(-25%)"}),ut({transform:"translateY(0)"})]))),Wn("* => hint-to-desc, * => active-to-desc",oi(Br,Oa([ut({transform:"translateY(0)"}),ut({transform:"translateY(25%)"})]))),Wn("* => asc-to-hint, * => asc-to-active",oi(Br,Oa([ut({transform:"translateY(25%)"}),ut({transform:"translateY(0)"})]))),Wn("* => hint-to-asc, * => active-to-asc",oi(Br,Oa([ut({transform:"translateY(0)"}),ut({transform:"translateY(-25%)"})]))),wn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",ut({transform:"translateY(0)"})),wn("hint-to-desc, active-to-desc, desc",ut({transform:"translateY(-25%)"})),wn("hint-to-asc, active-to-asc, asc",ut({transform:"translateY(25%)"}))]),allowChildren:Nr("allowChildren",[Wn("* <=> *",[hp("@*",dp(),{optional:!0})])])};let Uc=(()=>{class n{constructor(){this.changes=new _e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const K2={provide:Uc,deps:[[new Mr,new Po,Uc]],useFactory:function Y2(n){return n||new Uc}},Z2=cp(class{});let Q2=(()=>{class n extends Z2{constructor(e,i,r,o,s,a,l,c){super(),this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=o,this._focusMonitor=s,this._elementRef=a,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=c&&c.arrowPosition&&(this.arrowPosition=null==c?void 0:c.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=kn(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,r;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Fi(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(te(Uc),te(Ki),te(_p,8),te("MAT_SORT_HEADER_COLUMN_DEF",8),te(gs),te(lt),te(Sw,8),te(AD,8))},n.\u0275cmp=At({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&Jt("click",function(){return i._handleClick()})("keydown",function(o){return i._handleKeydown(o)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(ii("aria-sort",i._getAriaSortAttribute()),$t("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[et],attrs:$2,ngContentSelectors:G2,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(xr(),me(0,"div",0)(1,"div",1),Mi(2),ye(),je(3,W2,6,6,"div",2),ye()),2&e&&($t("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"===i.arrowPosition),ii("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),Oe(3),st("ngIf",i._renderArrow()))},dependencies:[cs],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[ys.indicator,ys.leftPointer,ys.rightPointer,ys.arrowOpacity,ys.arrowPosition,ys.allowChildren]},changeDetection:0}),n})(),J2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[K2],imports:[us,fn]}),n})();class ID extends pe{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Ze(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new G;const e=this.getSubject();t.add(this.source.subscribe(new pt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=G.EMPTY)}return t}refCount(){return function eL(){return Xe((n,t)=>{let e=null;n._refCount++;const i=new pt(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}()(this)}}function yp(n){return n&&"function"==typeof n.connect&&!(n instanceof ID)}class xD{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const h=i(s,a,l);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:null==c?void 0:c.context,operation:u,record:s})})}detach(){}}const La=new Ee("_ViewRepeater"),iL=[[["caption"]],[["colgroup"],["col"]]],rL=["caption","colgroup, col"];function vp(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=kn(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const vs=new Ee("CDK_TABLE");let bs=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),ws=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),zc=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class lL{}const cL=vp(lL);let mr=(()=>{class n extends cL{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=kn(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(ri(r,bs,5),ri(r,ws,5),ri(r,zc,5)),2&e){let o;xt(o=Rt())&&(i.cell=o.first),xt(o=Rt())&&(i.headerCell=o.first),xt(o=Rt())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[tn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),et]}),n})();class bp{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}let wp=(()=>{class n extends bp{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(te(mr),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[et]}),n})(),Dp=(()=>{class n extends bp{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(te(mr),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[et]}),n})();class PD{constructor(){this.tasks=[],this.endTasks=[]}}const Ep=new Ee("_COALESCED_STYLE_SCHEDULER");let kD=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new _e}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new PD,this._getScheduleObservable().pipe(Yt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new PD;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Dr(Promise.resolve(void 0)):this._ngZone.onStable.pipe(zt(1))}}return n.\u0275fac=function(e){return new(e||n)(ae(qe))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),Cp=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Ba?e.headerCell.template:this instanceof Va?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr))},n.\u0275dir=Pe({type:n,features:[Li]}),n})();class uL extends Cp{}const dL=vp(uL);let Ba=(()=>{class n extends dL{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr),te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[et,Li]}),n})();class hL extends Cp{}const fL=vp(hL);let Va=(()=>{class n extends fL{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr),te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[et,Li]}),n})(),$c=(()=>{class n extends Cp{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(te(sn),te(fr),te(vs,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[et]}),n})(),_r=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(te(an))},n.\u0275dir=Pe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Sp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=At({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),Mp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=At({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),Wc=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(te(sn))},n.\u0275dir=Pe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const ND=["top","bottom","left","right"];class pL{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(D=>D)&&!i.some(D=>D))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const D="rtl"===this.direction,R=D?"right":"left",Y=D?"left":"right";for(const ee of t)for(let re=0;ree[re]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:a.slice(h).map((ee,re)=>i[re+h]?ee:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,h=0;u{var u,h;for(let D=0;D{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);ND.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of ND)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const Ap=new Ee("CDK_SPL");let Gc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","rowOutlet",""]]}),n})(),qc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),Xc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),Yc=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(te(an),te(lt))},n.\u0275dir=Pe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Kc=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D,R){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=D,this._ngZone=R,this._onDestroy=new _e,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new _t,this.viewChange=new Ea({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=kn(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=kn(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Yt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),yp(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&qe.isInAngularZone()?this._ngZone.onStable.pipe(zt(1),Yt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Zc(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Zc(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Zc(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Zc(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],yp(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;yp(this.dataSource)?e=this.dataSource.connect(this):function nL(n){return!!n&&(n instanceof pe||v(n.lift)&&v(n.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=bn(this.dataSource)),this._renderChangeSubscription=e.pipe(Yt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))_r.mostRecentCellOutlet&&_r.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new pL(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:bn()).pipe(Yt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&(null==s?void 0:s.nodeType)===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(te(fr),te(Ki),te(lt),Bs("role"),te(lo,8),te($e),te(Pn),te(La),te(Ep),te(xc),te(Ap,12),te(qe,8))},n.\u0275cmp=At({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(ri(r,Wc,5),ri(r,mr,5),ri(r,$c,5),ri(r,Ba,5),ri(r,Va,5)),2&e){let o;xt(o=Rt())&&(i._noDataRow=o.first),xt(o=Rt())&&(i._contentColumnDefs=o),xt(o=Rt())&&(i._contentRowDefs=o),xt(o=Rt())&&(i._contentHeaderRowDefs=o),xt(o=Rt())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(Un(Gc,7),Un(qc,7),Un(Xc,7),Un(Yc,7)),2&e){let r;xt(r=Rt())&&(i._rowOutlet=r.first),xt(r=Rt())&&(i._headerRowOutlet=r.first),xt(r=Rt())&&(i._footerRowOutlet=r.first),xt(r=Rt())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&$t("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[tn([{provide:vs,useExisting:n},{provide:La,useClass:xD},{provide:Ep,useClass:kD},{provide:Ap,useValue:null}])],ngContentSelectors:rL,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(xr(iL),Mi(0),Mi(1,1),$i(2,0)(3,1)(4,2)(5,3))},dependencies:[Gc,qc,Xc,Yc],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function Zc(n,t){return n.concat(Array.from(t))}let mL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[rp]}),n})();const _L=[[["caption"]],[["colgroup"],["col"]]],yL=["caption","colgroup, col"];let LD=(()=>{class n extends Kc{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=At({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&$t("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[tn([{provide:La,useClass:xD},{provide:Kc,useExisting:n},{provide:vs,useExisting:n},{provide:Ep,useClass:kD},{provide:Ap,useValue:null}]),et],ngContentSelectors:yL,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(xr(_L),Mi(0),Mi(1,1),$i(2,0)(3,1)(4,2)(5,3))},dependencies:[Gc,qc,Xc,Yc],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Ip=(()=>{class n extends bs{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matCellDef",""]],features:[tn([{provide:bs,useExisting:n}]),et]}),n})(),xp=(()=>{class n extends ws{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matHeaderCellDef",""]],features:[tn([{provide:ws,useExisting:n}]),et]}),n})(),Rp=(()=>{class n extends mr{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[tn([{provide:mr,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),et]}),n})(),Op=(()=>{class n extends wp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[et]}),n})(),Pp=(()=>{class n extends Dp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[et]}),n})(),BD=(()=>{class n extends Ba{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[tn([{provide:Ba,useExisting:n}]),et]}),n})(),VD=(()=>{class n extends $c{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=Pe({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[tn([{provide:$c,useExisting:n}]),et]}),n})(),HD=(()=>{class n extends Sp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=At({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[tn([{provide:Sp,useExisting:n}]),et],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),jD=(()=>{class n extends Mp{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=At({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[tn([{provide:Mp,useExisting:n}]),et],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&$i(0,0)},dependencies:[_r],encapsulation:2}),n})(),AL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[mL,fn,fn]}),n})();class kp extends class xL extends class tL{}{constructor(t=[]){super(),this._renderData=new Ea([]),this._filter=new Ea(""),this._internalPageChanges=new _e,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(fw(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,i)=>{const r=i.active,o=i.direction;return r&&""!=o?e.sort((s,a)=>{let l=this.sortingDataAccessor(s,r),c=this.sortingDataAccessor(a,r);const u=typeof l,h=typeof c;u!==h&&("number"===u&&(l+=""),"number"===h&&(c+=""));let D=0;return null!=l&&null!=c?l>c?D=1:l{const r=Object.keys(e).reduce((s,a)=>s+e[a]+"\u25ec","").toLowerCase(),o=i.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new Ea(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){t=Array.isArray(t)?t:[],this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Fi(this._sort.sortChange,this._sort.initialized):bn(null),i=this._paginator?Fi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):bn(null),o=wc([this._data,this._filter]).pipe(it(([l])=>this._filterData(l))),s=wc([o,e]).pipe(it(([l])=>this._orderData(l))),a=wc([s,i]).pipe(it(([l])=>this._pageData(l)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=a.subscribe(l=>this._renderData.next(l))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function Ha(n,t){return Xe((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(new pt(i,l=>{null==r||r.unsubscribe();let c=0;const u=o++;Gn(n(l,u)).subscribe(r=new pt(i,h=>i.next(t?t(l,h,u,c++):h),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Np(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,null!=e&&e.has(i)?"important":""):n.removeProperty(i)}return n}function Ds(n,t){const e=t?"":"none";Np(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function UD(n,t,e){Np(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Qc(n,t){return t&&"none"!=t?n+" "+t:n}function zD(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function Fp(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function Lp(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Bp(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function ja(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function $D(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,h=c*t;return i>r-h&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Lp(e)})})}handleScroll(t){const e=Pi(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&ja(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function GD(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const R=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),Y=this._dropContainer;if(!R)return void this._endDragSequence(a);(!Y||!Y.isDragging()&&!Y.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=c.x-u.x+this._passiveTransform.x,h.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new WD(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=kn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Ds(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>rn(i)),this._handles.forEach(i=>Ds(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=rn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Jc),e.addEventListener("touchstart",this._pointerDown,KD),e.addEventListener("dragstart",this._nativeDragStart,Jc)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?rn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){var t,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(t=this._rootElement)||void 0===t||t.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Ds(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Ds(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var t,e;null===(t=this._preview)||void 0===t||t.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var t,e;null===(t=this._placeholder)||void 0===t||t.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Ua(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),UD(i,!1,Vp),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Ua(e),o=!r&&0!==e.button,s=this._rootElement,a=Pi(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Jf(e):Qf(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const D=s.style;this._rootElementTapHighlight=D.webkitTapHighlightColor||"",D.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(D=>this._updateOnScroll(D)),this._boundaryElement&&(this._boundaryRect=Lp(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){UD(this._rootElement,!0,Vp),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=QD(s,this._document),this._previewRef=s,t.matchSize?JD(r,o):r.style.transform=eu(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=GD(this._rootElement),JD(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Np(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Vp),Ds(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function OL(n){const t=getComputedStyle(n),e=Fp(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=Fp(t,"transition-duration"),s=Fp(t,"transition-delay");return zD(o[r])+zD(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{var a;(!s||Pi(s)===this._preview&&"transform"===s.propertyName)&&(null===(a=this._preview)||void 0===a||a.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=QD(this._placeholderRef,this._document)):i=GD(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Ua(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Ua(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,h=a.bottom-(c-s);i=ZD(i,a.left+o,a.right-(l-o)),r=ZD(r,u,h)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Ds(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Jc),t.removeEventListener("touchstart",this._pointerDown,KD),t.removeEventListener("dragstart",this._nativeDragStart,Jc)}_applyRootElementTransform(t,e){const i=eu(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Qc(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const r=null!==(i=this._previewTemplate)&&void 0!==i&&i.template?void 0:this._initialTransform,o=eu(t,e);this._preview.style.transform=Qc(o,r)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Ua(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Pi(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&ja(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var t;return(null===(t=this._parentPositions.positions.get(this._document))||void 0===t?void 0:t.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Bf(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return rn(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function eu(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function ZD(n,t,e){return Math.max(t,Math.min(e,n))}function Ua(n){return"t"===n.type[0]}function QD(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function JD(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=eu(t.left,t.top)}function eE(n,t,e){const i=za(t,n.length-1),r=za(e,n.length-1);if(i===r)return;const o=n[i],s=r0)return null;const a="horizontal"===this.orientation,l=o.findIndex(re=>re.drag===t),c=o[s],h=c.clientRect,D=l>s?1:-1,R=this._getItemOffsetPx(o[l].clientRect,h,D),Y=this._getSiblingOffsetPx(l,o,D),ee=o.slice();return eE(o,l,s),o.forEach((re,ue)=>{if(ee[ue]===re)return;const be=re.drag===t,le=be?R:Y,we=be?t.getPlaceholderElement():re.drag.getRootElement();re.offset+=le,a?(we.style.transform=Qc(`translate3d(${Math.round(re.offset)}px, 0, 0)`,re.initialTransform),ja(re.clientRect,0,le)):(we.style.transform=Qc(`translate3d(0, ${Math.round(re.offset)}px, 0)`,re.initialTransform),ja(re.clientRect,le,0))}),this._previousSwap.overlaps=Bp(h,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else rn(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const r=null===(e=this._itemPositions.find(o=>o.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{ja(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Lp(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new _e,this.entered=new _e,this.exited=new _e,this.dropped=new _e,this.sorted=new _e,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=G.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new _e,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function RL(n=0,t=Ec){return n<0&&(n=0),np(n,n,t)}(0,Nw).pipe(Yt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=rn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new WD(i),this._sortStrategy=new FL(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=rn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!$D(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||$D(s.clientRect,.05,t,e)&&([r,o]=function BL(n,t,e,i){const r=iE(t,i),o=rE(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=iE(l,e),o=rE(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=rn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=rn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=rn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&Bp(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!Bp(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=rn(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Bf(rn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function iE(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function rE(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const tu=so({passive:!1,capture:!0});let VL=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new _e,this.pointerUp=new _e,this.scroll=new _e,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tu)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tu)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tu}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:tu}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new pe(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Fi(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(ae(qe),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const HL={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Hp=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=HL){return new NL(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new LL(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(qe),ae(xc),ae(VL))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oE=new Ee("CDK_DRAG_PARENT"),sE=new Ee("CdkDropListGroup"),aE=new Ee("CDK_DRAG_CONFIG");let jL=0;const lE=new Ee("CdkDropList");let UL=(()=>{class n{constructor(e,i,r,o,s,a,l){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=s,this._group=a,this._destroyed=new _e,this.connectedTo=[],this.id="cdk-drop-list-"+jL++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new _t,this.entered=new _t,this.exited=new _t,this.sorted=new _t,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,h)=>this.sortPredicate(c,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=kn(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(hs(this._dir.value),Yt(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=Sa(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(s=>s.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=kn(this.sortingDisabled),e.autoScrollDisabled=kn(this.autoScrollDisabled),e.autoScrollStep=Ca(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=null!=r&&r,this.sortingDisabled=null!=o&&o,this.autoScrollDisabled=null!=s&&s,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(te(lt),te(Hp),te(Ki),te(ip),te(lo,8),te(sE,12),te(aE,8))},n.\u0275dir=Pe({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&(ii("id",i.id),$t("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[tn([{provide:sE,useValue:void 0},{provide:lE,useExisting:n}])]}),n})();const cE=new Ee("CdkDragHandle"),zL=new Ee("CdkDragPlaceholder"),$L=new Ee("CdkDragPreview");let GL=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,h,D){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=s,this._dir=l,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=D,this._destroyed=new _e,this.started=new _t,this.released=new _t,this.ended=new _t,this.entered=new _t,this.exited=new _t,this.dropped=new _t,this.moved=new pe(R=>{const Y=this._dragRef.moved.pipe(it(ee=>({source:this,pointerPosition:ee.pointerPosition,event:ee.event,delta:ee.delta,distance:ee.distance}))).subscribe(R);return()=>{Y.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=kn(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(zt(1),Yt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const i=this.element.nativeElement;let r=i;this.rootElementSelector&&(r=void 0!==i.closest?i.closest(this.rootElementSelector):null===(e=i.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||i)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):rn(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Ca(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(zt(1)).subscribe(()=>{var i;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){e.withParent((null===(i=n._dragInstances.find(o=>o.element.nativeElement===r))||void 0===i?void 0:i._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:u}=e;this.disabled=null!=l&&l,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(hs(this._handles),ka(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Ha(e=>Fi(...e.map(i=>i._stateChanges.pipe(hs(i))))),Yt(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(te(lt),te(lE,12),te($e),te(qe),te(an),te(aE,8),te(lo,8),te(Hp),te(Ki),te(cE,10),te(oE,12))},n.\u0275dir=Pe({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(ri(r,$L,5),ri(r,zL,5),ri(r,cE,5)),2&e){let o;xt(o=Rt())&&(i._previewTemplate=o.first),xt(o=Rt())&&(i._placeholderTemplate=o.first),xt(o=Rt())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&$t("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[tn([{provide:oE,useExisting:n}]),Li]}),n})(),qL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[Hp],imports:[Rc]}),n})();const Es="function"==typeof Buffer,dE="function"==typeof TextDecoder?new TextDecoder:void 0,$a=("function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),nu=(n=>{let t={};return n.forEach((e,i)=>t[e]=i),t})($a),KL=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,gn=String.fromCharCode.bind(String),fE="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):n=>new Uint8Array(Array.prototype.slice.call(n,0)),gE=n=>n.replace(/[^A-Za-z0-9\+\/]/g,""),JL=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,e3=n=>{switch(n.length){case 4:var e=((7&n.charCodeAt(0))<<18|(63&n.charCodeAt(1))<<12|(63&n.charCodeAt(2))<<6|63&n.charCodeAt(3))-65536;return gn(55296+(e>>>10))+gn(56320+(1023&e));case 3:return gn((15&n.charCodeAt(0))<<12|(63&n.charCodeAt(1))<<6|63&n.charCodeAt(2));default:return gn((31&n.charCodeAt(0))<<6|63&n.charCodeAt(1))}},zp="function"==typeof atob?n=>atob(gE(n)):Es?n=>Buffer.from(n,"base64").toString("binary"):n=>{if(n=n.replace(/\s+/g,""),!KL.test(n))throw new TypeError("malformed base64.");n+="==".slice(2-(3&n.length));let t,i,r,e="";for(let o=0;o>16&255):64===r?gn(t>>16&255,t>>8&255):gn(t>>16&255,t>>8&255,255&t);return e},DE=Es?n=>fE(Buffer.from(n,"base64")):n=>fE(zp(n).split("").map(t=>t.charCodeAt(0))),t3=Es?n=>Buffer.from(n,"base64").toString("utf8"):dE?n=>dE.decode(DE(n)):n=>(n=>n.replace(JL,e3))(zp(n)),r3_decode=n=>t3((n=>gE(n.replace(/[-_]/g,t=>"-"==t?"+":"/")))(n)),o3=["gutterEls"];function s3(n,t){if(1&n){const e=no();me(0,"div",2,3),Jt("keydown",function(r){Bn(e);const o=wt().index;return Vn(wt().startKeyboardDrag(r,2*o+1,o+1))})("mousedown",function(r){Bn(e);const o=wt().index;return Vn(wt().startMouseDrag(r,2*o+1,o+1))})("touchstart",function(r){Bn(e);const o=wt().index;return Vn(wt().startMouseDrag(r,2*o+1,o+1))})("mouseup",function(r){Bn(e);const o=wt().index;return Vn(wt().clickGutter(r,o+1))})("touchend",function(r){Bn(e);const o=wt().index;return Vn(wt().clickGutter(r,o+1))}),Et(2,"div",4),ye()}if(2&n){const e=wt(),i=e.index,r=e.$implicit,o=wt();Rr("flex-basis",o.gutterSize,"px")("order",2*i+1),ii("aria-label",o.gutterAriaLabel)("aria-orientation",o.direction)("aria-valuemin",r.minSize)("aria-valuemax",r.maxSize)("aria-valuenow",r.size)("aria-valuetext",o.getAriaAreaSizeText(r.size))}}function a3(n,t){1&n&&je(0,s3,3,10,"div",1),2&n&&st("ngIf",!1===t.last)}const l3=["*"];function Wa(n){if(void 0!==n.changedTouches&&n.changedTouches.length>0)return{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY};if(void 0!==n.clientX&&void 0!==n.clientY)return{x:n.clientX,y:n.clientY};if(void 0!==n.currentTarget){const t=n.currentTarget;return{x:t.offsetLeft,y:t.offsetTop}}return null}function AE(n,t,e){return Math.abs(n.x-t.x)<=e&&Math.abs(n.y-t.y)<=e}function IE(n,t){const e=n.nativeElement.getBoundingClientRect();return"horizontal"===t?e.width:e.height}function Ga(n){return"boolean"==typeof n?n:"false"!==n}function Vr(n,t){return null==n?t:(n=Number(n),!isNaN(n)&&n>=0?n:t)}function xE(n,t){if("percent"===n){const e=t.reduce((i,r)=>null!==r?i+r:i,0);return t.every(i=>null!==i)&&e>99.9&&e<100.1}if("pixel"===n)return 1===t.filter(e=>null===e).length}function ru(n){return null===n.size?null:!0===n.component.lockSize?n.size:null===n.component.minSize?null:n.component.minSize>n.size?n.size:n.component.minSize}function ou(n){return null===n.size?null:!0===n.component.lockSize?n.size:null===n.component.maxSize?null:n.component.maxSize{const s=function u3(n,t,e,i){return 0===e?{areaSnapshot:t,pixelAbsorb:0,percentAfterAbsorption:t.sizePercentAtStart,pixelRemain:0}:0===t.sizePixelAtStart&&e<0?{areaSnapshot:t,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===n?function d3(n,t,e){const r=(n.sizePixelAtStart+t)/e*100;if(t>0){if(null!==n.area.maxSize&&r>n.area.maxSize){const o=n.area.maxSize/100*e;return{areaSnapshot:n,pixelAbsorb:o,percentAfterAbsorption:n.area.maxSize,pixelRemain:n.sizePixelAtStart+t-o}}return{areaSnapshot:n,pixelAbsorb:t,percentAfterAbsorption:r>100?100:r,pixelRemain:0}}if(t<0){if(null!==n.area.minSize&&r0?null!==n.area.maxSize&&i>n.area.maxSize?{areaSnapshot:n,pixelAbsorb:n.area.maxSize-n.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:i-n.area.maxSize}:{areaSnapshot:n,pixelAbsorb:t,percentAfterAbsorption:-1,pixelRemain:0}:t<0?null!==n.area.minSize&&i{class n{constructor(e,i,r,o,s){this.ngZone=e,this.elRef=i,this.cdRef=r,this.renderer=o,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new _t(!1),this.dragEnd=new _t(!1),this.gutterClick=new _t(!1),this.gutterDblClick=new _t(!1),this.dragProgressSubject=new _e,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=s?Object.assign(this._config,s):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=Vr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=Vr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=Ga(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=Ga(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=Ga(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=Vr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new pe(e=>this.transitionEndSubscriber=e).pipe(vw(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const i={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(i),this.build(!0,!0)):this.hiddenAreas.push(i)}removeArea(e){if(this.displayedAreas.some(i=>i.component===e)){const i=this.displayedAreas.find(r=>r.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(i),1),this.build(!0,!0)}else if(this.hiddenAreas.some(i=>i.component===e)){const i=this.hiddenAreas.find(r=>r.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(i),1)}}updateArea(e,i,r){!0===e.visible&&this.build(i,r)}showArea(e){const i=this.hiddenAreas.find(o=>o.component===e);if(void 0===i)return;const r=this.hiddenAreas.splice(this.hiddenAreas.indexOf(i),1);this.displayedAreas.push(...r),this.build(!0,!0)}hideArea(e){const i=this.displayedAreas.find(o=>o.component===e);if(void 0===i)return;const r=this.displayedAreas.splice(this.displayedAreas.indexOf(i),1);r.forEach(o=>{o.order=0,o.size=0}),this.hiddenAreas.push(...r),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const i=e.map(o=>Vr(o,null));return!1!==xE(this.unit,i)&&(this.displayedAreas.forEach((o,s)=>o.component._size=i[s]),this.build(!1,!0),!0)}build(e,i){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(r=>null!==r.component.order)&&this.displayedAreas.sort((r,o)=>r.component.order-o.component.order),this.displayedAreas.forEach((r,o)=>{r.order=2*o,r.component.setStyleOrder(r.order)})),!0===i){const r=xE(this.unit,this.displayedAreas.map(o=>o.component.size));switch(this.unit){case"percent":{const o=100/this.displayedAreas.length;this.displayedAreas.forEach(s=>{s.size=r?s.component.size:o,s.minSize=ru(s),s.maxSize=ou(s)});break}case"pixel":if(r)this.displayedAreas.forEach(o=>{o.size=o.component.size,o.minSize=ru(o),o.maxSize=ou(o)});else{const o=this.displayedAreas.filter(s=>null===s.component.size);if(0===o.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((s,a)=>{s.size=0===a?null:s.component.size,s.minSize=0===a?null:ru(s),s.maxSize=0===a?null:ou(s)});else if(o.length>1){let s=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===s?(a.size=null,a.minSize=null,a.maxSize=null,s=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=ru(a),a.maxSize=ou(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(i=>{i.component.setStyleFlex(0,0,`calc( ${i.size}% - ${i.size/100*e}px )`,null!==i.minSize&&i.minSize===i.size,null!==i.maxSize&&i.maxSize===i.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,i){const r=Wa(e);this.startPoint&&AE(this.startPoint,r,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",i),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",i),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,i,r){if(!0===this.disabled||!0===this.isWaitingClear)return;const o=function c3(n,t){if("horizontal"===t)switch(n.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===t)switch(n.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=n.currentTarget,i="PageUp"===n.key||"PageDown"===n.key?500:50;let r=e.offsetLeft,o=e.offsetTop;switch(n.key){case"ArrowLeft":r-=i;break;case"ArrowRight":r+=i;break;case"ArrowUp":o-=i;break;case"ArrowDown":o+=i;break;case"PageUp":"vertical"===t?o-=i:r+=i;break;case"PageDown":"vertical"===t?o+=i:r-=i;break;default:return null}return{x:r,y:o}}(e,this.direction);null!==o&&(this.endPoint=o,this.startPoint=Wa(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(i,r),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,i,r){e.preventDefault(),e.stopPropagation(),this.startPoint=Wa(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(i,r),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,i){this.snapshot={gutterNum:i,lastSteppedOffset:0,allAreasSizePixel:IE(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(r=>{const o={area:r,sizePixelAtStart:IE(r.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?r.size:-1};r.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[o]):this.snapshot.areasAfterGutter.push(o))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((r,o)=>r+o.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const i=Wa(e);null!==this._clickTimeout&&!AE(this.startPoint,i,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=Wa(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(e=-e);const i=Math.round(e/this.gutterStep)*this.gutterStep;if(i===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=i;let r=Ss(this.unit,this.snapshot.areasBeforeGutter,-i,this.snapshot.allAreasSizePixel),o=Ss(this.unit,this.snapshot.areasAfterGutter,i,this.snapshot.allAreasSizePixel);if(0!==r.remain&&0!==o.remain?Math.abs(r.remain)===Math.abs(o.remain)||(Math.abs(r.remain)>Math.abs(o.remain)?o=Ss(this.unit,this.snapshot.areasAfterGutter,i+r.remain,this.snapshot.allAreasSizePixel):r=Ss(this.unit,this.snapshot.areasBeforeGutter,-(i-o.remain),this.snapshot.allAreasSizePixel)):0!==r.remain?o=Ss(this.unit,this.snapshot.areasAfterGutter,i+r.remain,this.snapshot.allAreasSizePixel):0!==o.remain&&(r=Ss(this.unit,this.snapshot.areasBeforeGutter,-(i-o.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const s=[...r.list,...o.list],a=s.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-s.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}r.list.forEach(s=>RE(this.unit,s)),o.list.forEach(s=>RE(this.unit,s)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(i=>i.component.unlockEvents());this.dragListeners.length>0;){const i=this.dragListeners.pop();i&&i()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,i){const r=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:i,sizes:r}):"end"===e?this.dragEnd.emit({gutterNum:i,sizes:r}):"click"===e?this.gutterClick.emit({gutterNum:i,sizes:r}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:i,sizes:r}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(r)):"progress"===e&&this.dragProgressSubject.next({gutterNum:i,sizes:r})}ngOnDestroy(){this.stopDragging()}collapseArea(e,i,r){const o=this.displayedAreas.find(l=>l.component===e);if(void 0===o)return;const s="right"===r?1:-1;o.sizeBeforeCollapse||(o.sizeBeforeCollapse=o.size,o.gutterBeforeCollapse=s),o.size=i;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${o.order+s}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const i=this.displayedAreas.find(o=>o.component===e);if(void 0===i||!i.sizeBeforeCollapse)return;i.size=i.sizeBeforeCollapse,i.sizeBeforeCollapse=null;const r=this.gutterEls.find(o=>o.nativeElement.style.order===`${i.order+i.gutterBeforeCollapse}`);r&&this.renderer.removeClass(r.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}}return n.\u0275fac=function(e){return new(e||n)(te(qe),te(lt),te(Ki),te(Al),te(f3,8))},n.\u0275cmp=At({type:n,selectors:[["as-split"]],viewQuery:function(e,i){if(1&e&&Un(o3,5),2&e){let r;xt(r=Rt())&&(i.gutterEls=r)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:l3,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","slider","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","slider","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(e,i){1&e&&(xr(),Mi(0),je(1,a3,1,1,"ng-template",0)),2&e&&(Oe(1),st("ngForOf",i.displayedAreas))},dependencies:[Df,cs],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),n})(),p3=(()=>{class n{constructor(e,i,r,o){this.ngZone=e,this.elRef=i,this.renderer=r,this.split=o,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(e){this._order=Vr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=Vr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=Vr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=Vr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=Ga(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=Ga(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",e=>{"flex-basis"===e.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,i,r,o,s){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",i),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",r),!0===o?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(e=0,i="right"){this.split.collapseArea(this,e,i)}expand(){this.split.expandArea(this)}}return n.\u0275fac=function(e){return new(e||n)(te(qe),te(lt),te(Al),te(OE))},n.\u0275dir=Pe({type:n,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),n})(),g3=(()=>{class n{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:n,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:n,providers:[]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[[us]]}),n})();function m3(n,t){1&n&&(me(0,"th",21),Se(1," # "),ye())}function _3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.position),Oe(1),Vt(" ",e.position," ")}}function y3(n,t){1&n&&(me(0,"th",21),Se(1," Host "),ye())}function v3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.host),Oe(1),Vt(" ",e.host," ")}}function b3(n,t){1&n&&(me(0,"th",21),Se(1," Method "),ye())}function w3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.method),Oe(1),Vt(" ",e.method," ")}}function D3(n,t){1&n&&(me(0,"th",21),Se(1," URL "),ye())}function E3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.path),Oe(1),Vt(" ",e.path," ")}}function C3(n,t){1&n&&(me(0,"th",21),Se(1," Status "),ye())}function S3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.status),Oe(1),Vt(" ",e.status," ")}}function T3(n,t){1&n&&(me(0,"th",21),Se(1," Length "),ye())}function M3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.responselength),Oe(1),Vt(" ",e.responselength," ")}}function A3(n,t){1&n&&(me(0,"th",21),Se(1," MIME type "),ye())}function I3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.mimetype),Oe(1),Vt(" ",e.mimetype," ")}}function x3(n,t){1&n&&(me(0,"th",21),Se(1," Extension "),ye())}function R3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.extension),Oe(1),Vt(" ",e.extension," ")}}function O3(n,t){1&n&&(me(0,"th",21),Se(1," Title "),ye())}function P3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.title),Oe(1),Vt(" ",e.title," ")}}function k3(n,t){1&n&&(me(0,"th",21),Se(1," Comment "),ye())}function N3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.comment),Oe(1),Vt(" ",e.comment," ")}}function F3(n,t){1&n&&(me(0,"th",21),Se(1," IP "),ye())}function L3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.ip),Oe(1),Vt(" ",e.ip," ")}}function B3(n,t){1&n&&(me(0,"th",21),Se(1," Time "),ye())}function V3(n,t){if(1&n&&(me(0,"td",22),Se(1),ye()),2&n){const e=t.$implicit;jn("title",e.time),Oe(1),Vt(" ",e.time," ")}}function H3(n,t){1&n&&Et(0,"tr",23)}function j3(n,t){if(1&n){const e=no();me(0,"tr",24),Jt("click",function(){const o=Bn(e).$implicit;return Vn(wt().clickedRow=o)}),ye()}if(2&n){const e=t.$implicit;$t("row-is-clicked",wt().clickedRow==e)}}function U3(n,t){1&n&&(me(0,"span"),Se(1,":\xa0"),ye())}function z3(n,t){if(1&n&&(me(0,"div")(1,"span",35),Se(2),ye(),je(3,U3,2,0,"span",36),me(4,"span",37),Se(5),ye()()),2&n){const e=t.$implicit;Oe(2),qi(e[0]),Oe(1),st("ngIf",e[1]),Oe(2),qi(e[1])}}function $3(n,t){1&n&&(me(0,"span"),Se(1,":\xa0"),ye())}function W3(n,t){if(1&n&&(me(0,"div",38)(1,"span",35),Se(2),ye(),je(3,$3,2,0,"span",36),me(4,"span",37),Se(5),ye()()),2&n){const e=t.$implicit;Oe(2),qi(e[0]),Oe(1),st("ngIf",e[1]),Oe(2),qi(e[1])}}function G3(n,t){if(1&n){const e=no();me(0,"as-split-area",1)(1,"as-split",25)(2,"as-split-area")(3,"div",26)(4,"span"),Se(5),ye(),Et(6,"span",27),me(7,"button",28),Jt("click",function(){Bn(e);const r=wt();return Vn(r.wrapRequest=!r.wrapRequest)}),Se(8,"Wrap"),ye()(),me(9,"div",29)(10,"div",30),je(11,z3,6,3,"div",31),ye(),Et(12,"br")(13,"br"),me(14,"div",32),Se(15),ye()()(),me(16,"as-split-area")(17,"div",26)(18,"span"),Se(19,"Response"),ye(),Et(20,"span",27),me(21,"button",28),Jt("click",function(){Bn(e);const r=wt();return Vn(r.wrapResponse=!r.wrapResponse)}),Se(22,"Wrap"),ye()(),me(23,"div",29)(24,"div",30),je(25,W3,6,3,"div",33),ye(),Et(26,"br")(27,"br"),me(28,"div",34),Se(29),ye()()()()()}if(2&n){const e=wt();st("size",40),Oe(1),st("gutterSize",7),Oe(4),Vt("Request #",e.clickedRow.position,""),Oe(2),$t("active",e.wrapRequest),Oe(2),$t("wrapy",e.wrapRequest),Oe(2),st("ngForOf",e.clickedRow.request[0]),Oe(4),qi(e.clickedRow.request[1]),Oe(6),$t("active",e.wrapResponse),Oe(2),$t("wrapy",e.wrapResponse),Oe(2),st("ngForOf",e.clickedRow.response[0]),Oe(4),qi(e.clickedRow.response[1])}}let q3=(()=>{class n{constructor(e){this.FileHandleService=e,this.displayedColumns=["position","host","method","path","status","responselength","mimetype","extension","title","comment","ip","time"],this.dataSource=new kp,this.ELEMENT_DATA=[],this.wrapRequest=!1,this.wrapResponse=!1}ngOnInit(){this.fileSub=this.FileHandleService.getselectedFileDataListener().subscribe(e=>{if(!e.selectedFileContent)return this.dataSource=new kp,this.selectedFileContent=e.selectedFileContent,void(this.clickedRow=void 0);this.selectedFileContent=e.selectedFileContent,this.elementDataGen(this.selectedFileContent),this.dataSource=new kp(this.ELEMENT_DATA),this.dataSource.sort=this.sort})}elementDataGen(e){this.ELEMENT_DATA=[];let i=1;e.items.item.forEach(r=>{this.ELEMENT_DATA.push({position:i,ip:r.host[0].$.ip,host:r.protocol+"://"+r.host[0]._+this.portAssign(r.protocol,r.port),port:r.port,protocol:r.protocol,method:r.method,status:r.status,path:r.path,responselength:r.responselength,comment:r.comment,url:r.url,time:r.time,mimetype:r.mimetype,extension:"null"!=r.extension?r.extension:"",request:this.splitHeaderBody(this.atobReqRes(r.request)),response:this.splitHeaderBody(this.atobReqRes(r.response)),title:this.extractTitleFromHttpResponse(this.atobReqRes(r.response))}),i+=1})}drop(e){eE(this.displayedColumns,e.previousIndex,e.currentIndex)}splitHeaderBody(e){let[i,...r]=e.split(/\n\s*\n/);return i=i.split(/\r\n/),i.forEach((o,s)=>{let[a,...l]=o.split(": ");i[s]=[a,l.join("")]},i),[i,r.join("")]}atobReqRes(e){var i,r;try{return"true"===e[0].$.base64?r3_decode(null!==(i=e[0]._)&&void 0!==i?i:""):null!==(r=e[0]._)&&void 0!==r?r:""}catch(o){console.log(o),console.log(e)}return""}portAssign(e,i){return"https"===e[0]&&"443"===i[0]||"http"===e[0]&&"80"===i[0]?"":":"+i}extractTitleFromHttpResponse(e){const r=e.match(/(.*?)<\/title>/i);return r&&r.length>1?r[1]:""}applyFilter(e){this.dataSource.filter=(e.target.value?e.target.value:"").trim()}clearclickedRow(e){e.preventDefault(),this.clickedRow?this.clickedRow=void 0:(document.getElementById("search").value="",this.applyFilter(e))}}return n.\u0275fac=function(e){return new(e||n)(te(Nf))},n.\u0275cmp=At({type:n,selectors:[["app-main"]],viewQuery:function(e,i){if(1&e&&Un(_p,5),2&e){let r;xt(r=Rt())&&(i.sort=r.first)}},hostBindings:function(e,i){1&e&&Jt("keydown.esc",function(o){return i.clearclickedRow(o)},0,m_)},decls:43,vars:6,consts:[["direction","vertical",3,"gutterSize"],[3,"size"],["matInput","","type","search","placeholder","Search","id","search",1,"search",3,"input"],["mat-table","","matSort","","cdkDropList","","cdkDropListOrientation","horizontal",3,"dataSource","cdkDropListDropped"],["matColumnDef","position"],["mat-header-cell","","mat-sort-header","","cdkDrag","",4,"matHeaderCellDef"],["mat-cell","",3,"title",4,"matCellDef"],["matColumnDef","host"],["matColumnDef","method"],["matColumnDef","path"],["matColumnDef","status"],["matColumnDef","responselength"],["matColumnDef","mimetype"],["matColumnDef","extension"],["matColumnDef","title"],["matColumnDef","comment"],["matColumnDef","ip"],["matColumnDef","time"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"row-is-clicked","click",4,"matRowDef","matRowDefColumns"],[3,"size",4,"ngIf"],["mat-header-cell","","mat-sort-header","","cdkDrag",""],["mat-cell","",3,"title"],["mat-header-row",""],["mat-row","",3,"click"],["direction","horizontal",3,"gutterSize"],[1,"label"],[1,"toolbar-spacer"],[3,"click"],[1,"content"],["id","res_headers"],[4,"ngFor","ngForOf"],["id","req_body"],["class","header_inner",4,"ngFor","ngForOf"],["id","res_body"],[1,"header_key"],[4,"ngIf"],[1,"header_val"],[1,"header_inner"]],template:function(e,i){1&e&&(me(0,"as-split",0)(1,"as-split-area",1)(2,"input",2),Jt("input",function(o){return i.applyFilter(o)}),ye(),me(3,"table",3),Jt("cdkDropListDropped",function(o){return i.drop(o)}),dn(4,4),je(5,m3,2,0,"th",5),je(6,_3,2,2,"td",6),hn(),dn(7,7),je(8,y3,2,0,"th",5),je(9,v3,2,2,"td",6),hn(),dn(10,8),je(11,b3,2,0,"th",5),je(12,w3,2,2,"td",6),hn(),dn(13,9),je(14,D3,2,0,"th",5),je(15,E3,2,2,"td",6),hn(),dn(16,10),je(17,C3,2,0,"th",5),je(18,S3,2,2,"td",6),hn(),dn(19,11),je(20,T3,2,0,"th",5),je(21,M3,2,2,"td",6),hn(),dn(22,12),je(23,A3,2,0,"th",5),je(24,I3,2,2,"td",6),hn(),dn(25,13),je(26,x3,2,0,"th",5),je(27,R3,2,2,"td",6),hn(),dn(28,14),je(29,O3,2,0,"th",5),je(30,P3,2,2,"td",6),hn(),dn(31,15),je(32,k3,2,0,"th",5),je(33,N3,2,2,"td",6),hn(),dn(34,16),je(35,F3,2,0,"th",5),je(36,L3,2,2,"td",6),hn(),dn(37,17),je(38,B3,2,0,"th",5),je(39,V3,2,2,"td",6),hn(),je(40,H3,1,0,"tr",18),je(41,j3,1,2,"tr",19),ye()(),je(42,G3,30,15,"as-split-area",20),ye()),2&e&&(st("gutterSize",7),Oe(1),st("size",60),Oe(2),st("dataSource",i.dataSource),Oe(37),st("matHeaderRowDef",i.displayedColumns),Oe(1),st("matRowDefColumns",i.displayedColumns),Oe(1),st("ngIf",i.clickedRow))},dependencies:[Df,cs,LD,xp,BD,Rp,Ip,VD,Op,Pp,HD,jD,_p,Q2,UL,GL,OE,p3],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-row[_ngcontent-%COMP%]:hover{background-color:#0000000d}tr.mat-row[_ngcontent-%COMP%], tr.mat-footer-row[_ngcontent-%COMP%]{height:25px}tr.mat-header-row[_ngcontent-%COMP%]{height:30px}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{border-right:1px solid rgba(0,0,0,.12)}.row-is-clicked[_ngcontent-%COMP%], .row-is-clicked[_ngcontent-%COMP%]:hover{background-color:#00000025}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin:0;padding:2px;overflow:auto;height:calc(100% - 42px);font-family:monospace;white-space:pre}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{background-color:#c3c3c3;padding:10px;display:flex;max-height:18px}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .content.wrapy[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] div.label[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{font-weight:700;color:#ffffffde;background-color:#1d1e20}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;-webkit-user-select:none;user-select:none;cursor:pointer;border:none;-webkit-tap-highlight-color:transparent;border-radius:4px;color:#1d1e20;background-color:#ebebeb}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}*[_ngcontent-%COMP%] > .as-split-area[_ngcontent-%COMP%]{overflow-x:auto}.mat-column-time[_ngcontent-%COMP%]{white-space:nowrap}.mat-column-path[_ngcontent-%COMP%]{max-width:25rem;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .as-split-gutter{background-color:#0000001f!important}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:not(:nth-child(1)), .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:not(:nth-child(1)){padding:0 10px}.table-container[_ngcontent-%COMP%]{height:100%;overflow:auto}.header_key[_ngcontent-%COMP%]{color:#00008b}.search[_ngcontent-%COMP%]{width:100%;border:0;border-bottom:1px solid rgba(0,0,0,.12);height:30px;padding-inline-start:10px;font-size:15px}.search[_ngcontent-%COMP%]:focus{outline-offset:-2px}@media (prefers-color-scheme: dark){.mat-table[_ngcontent-%COMP%], .search[_ngcontent-%COMP%]{background:0}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{color:#ffffffde}mat-row[_ngcontent-%COMP%]{border-bottom-color:#e0e0e0}mat-row[_ngcontent-%COMP%], mat-header-row[_ngcontent-%COMP%], mat-footer-row[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom-color:#ffffff1f}.mat-header-cell[_ngcontent-%COMP%]{color:#ffffff8a}.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{border-right:1px solid rgba(255,255,255,.12)}[_nghost-%COMP%] .as-split-gutter{background-color:#ffffff1f!important}as-split[_ngcontent-%COMP%] > as-split-area[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{background-color:#3c3c3c}.header_key[_ngcontent-%COMP%]{color:#add8e6}.search[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.12)}}"]}),n})();function X3(n,t){if(1&n&&(An(),Qn(),me(0,"span"),Se(1),ye()),2&n){const e=wt();Oe(1),Vt("Burp Version: ",e.burpVersion,"")}}function Y3(n,t){1&n&&(An(),Qn(),me(0,"span"),Se(1,"\xa0|\xa0"),ye())}function K3(n,t){if(1&n&&(An(),Qn(),me(0,"span"),Se(1),ye()),2&n){const e=wt();Oe(1),Vt("Exported at: ",e.exportTime,"")}}function Z3(n,t){1&n&&(An(),Qn(),me(0,"span"),Se(1,"Details about the export will be available here."),ye())}let Q3=(()=>{class n{constructor(e){this.FileHandleService=e}ngOnInit(){this.fileSub=this.FileHandleService.getselectedFileDataListener().subscribe(e=>{e.selectedFileContent?(this.burpVersion=e.selectedFileContent.items.$.burpVersion,this.exportTime=e.selectedFileContent.items.$.exportTime):this.burpVersion=this.exportTime=""})}}return n.\u0275fac=function(e){return new(e||n)(te(Nf))},n.\u0275cmp=At({type:n,selectors:[["app-footer"]],decls:7,vars:4,consts:[[1,"navbar-footer"],["xmlns","http://www.w3.org/2000/svg","height","18px","viewBox","0 -960 960 960","width","20px","fill","currentColor"],["d","M680-160q8 0 14-6t6-14v-120q0-8-6-14t-14-6q-8 0-14 6t-6 14v120q0 8 6 14t14 6Zm0-200q8 0 14-6t6-14q0-8-6-14t-14-6q-8 0-14 6t-6 14q0 8 6 14t14 6Zm0 280q-83 0-141.5-58.5T480-280q0-83 58.5-141.5T680-480q83 0 141.5 58.5T880-280q0 83-58.5 141.5T680-80ZM520-600h160L480-800l200 200-200-200v160q0 17 11.5 28.5T520-600ZM200-80q-33 0-56.5-23.5T120-160v-640q0-33 23.5-56.5T200-880h287q16 0 30.5 6t25.5 17l194 194q11 11 17 25.5t6 30.5v13q0 17-13.5 28t-31.5 8q-8-1-17-1.5t-18-.5q-57 0-107.5 21.5T484-480H320q-17 0-28.5 11.5T280-440q0 17 11.5 28.5T320-400h107q-9 19-15 39t-9 41h-83q-17 0-28.5 11.5T280-280q0 17 11.5 28.5T320-240h83q5 29 15 56.5t26 52.5q11 17 2.5 34T420-80H200Z"],[4,"ngIf"]],template:function(e,i){1&e&&(me(0,"nav",0),An(),me(1,"svg",1),Et(2,"path",2),ye(),je(3,X3,2,1,"span",3),je(4,Y3,2,0,"span",3),je(5,K3,2,1,"span",3),je(6,Z3,2,0,"span",3),ye()),2&e&&(Oe(3),st("ngIf",i.burpVersion),Oe(1),st("ngIf",i.exportTime&&i.burpVersion),Oe(1),st("ngIf",i.exportTime),Oe(1),st("ngIf",!i.burpVersion||!i.exportTime))},dependencies:[cs],styles:[".navbar-footer[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;height:20px;background:rgb(255,255,255);color:inherit;margin:0 16px}.navbar-footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 2px;height:20px;font-size:15px}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.hidden[_ngcontent-%COMP%]{display:none}@media (prefers-color-scheme: dark){.navbar-footer[_ngcontent-%COMP%]{background:rgb(29,30,32)}}"]}),n})(),J3=(()=>{class n{constructor(){this.title="burp-http-history-browser"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=At({type:n,selectors:[["app-root"]],decls:3,vars:0,template:function(e,i){1&e&&Et(0,"app-header")(1,"app-main")(2,"app-footer")},dependencies:[U2,q3,Q3],styles:["app-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:2;border-bottom:1px solid rgba(0,0,0,.12)}app-main[_ngcontent-%COMP%]{height:calc(100vh - 60px);margin:40px 0 20px}app-footer[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;z-index:2;border-top:1px solid rgba(0,0,0,.12)}@media (prefers-color-scheme: dark){app-header[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.12)}app-footer[_ngcontent-%COMP%]{border-top:1px solid rgba(255,255,255,.12)}}"]}),n})();function PE(n){return new Ce(3e3,!1)}function k8(){return"undefined"!=typeof window&&void 0!==window.document}function Wp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hr(n){switch(n.length){case 0:return new Pa;case 1:return n[0];default:return new sD(n)}}function kE(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const h=u.get("offset"),D=h==l,R=D&&c||new Map;u.forEach((Y,ee)=>{let re=ee,ue=Y;if("offset"!==ee)switch(re=t.normalizePropertyName(re,s),ue){case"!":ue=r.get(ee);break;case gr:ue=o.get(ee);break;default:ue=t.normalizeStyleValue(ee,re,ue,s)}R.set(re,ue)}),D||a.push(R),c=R,l=h}),s.length)throw function D8(n){return new Ce(3502,!1)}();return a}function Gp(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&qp(e,"start",n)));break;case"done":n.onDone(()=>i(e&&qp(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&qp(e,"destroy",n)))}}function qp(n,t,e){const i=e.totalTime,o=Xp(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function Xp(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function si(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function NE(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Yp=(n,t)=>!1,FE=(n,t,e)=>[],LE=null;function Kp(n){const t=n.parentNode||n.host;return t===LE?null:t}(Wp()||"undefined"!=typeof Element)&&(k8()?(LE=(()=>document.documentElement)(),Yp=(n,t)=>{for(;t;){if(t===n)return!0;t=Kp(t)}return!1}):Yp=(n,t)=>n.contains(t),FE=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let ho=null,BE=!1;const VE=Yp,HE=FE;let jE=(()=>{class n{validateStyleProperty(e){return function F8(n){ho||(ho=function L8(){return"undefined"!=typeof document?document.body:null}()||{},BE=!!ho.style&&"WebkitAppearance"in ho.style);let t=!0;return ho.style&&!function N8(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in ho.style,!t&&BE&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ho.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return VE(e,i)}getParentElement(e){return Kp(e)}query(e,i,r){return HE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Pa(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),Zp=(()=>{class n{}return n.NOOP=new jE,n})();const Qp="ng-enter",su="ng-leave",au="ng-trigger",lu=".ng-trigger",zE="ng-animating",Jp=".ng-animating";function jr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:eg(parseFloat(t[1]),t[2])}function eg(n,t){return"s"===t?1e3*n:n}function cu(n,t,e){return n.hasOwnProperty("duration")?n:function H8(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(PE()),{duration:0,delay:0,easing:""};r=eg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=eg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function e8(){return new Ce(3100,!1)}()),a=!0),o<0&&(t.push(function t8(){return new Ce(3101,!1)}()),a=!0),a&&t.splice(l,0,PE())}return{duration:r,delay:o,easing:s}}(n,t,e)}function qa(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function $E(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Ur(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function GE(n,t,e){return e?t+":"+e+";":""}function qE(n){let t="";for(let e=0;e{const o=ng(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),Wp()&&qE(n))}function fo(n,t){n.style&&(t.forEach((e,i)=>{const r=ng(i);n.style[r]=""}),Wp()&&qE(n))}function Xa(n){return Array.isArray(n)?1==n.length?n[0]:rD(n):n}const tg=new RegExp("{{\\s*(.+?)\\s*}}","g");function XE(n){let t=[];if("string"==typeof n){let e;for(;e=tg.exec(n);)t.push(e[1]);tg.lastIndex=0}return t}function uu(n,t,e){const i=n.toString(),r=i.replace(tg,(o,s)=>{let a=t[s];return null==a&&(e.push(function i8(n){return new Ce(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function du(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const z8=/-+([a-z0-9])/g;function ng(n){return n.replace(z8,(...t)=>t[1].toUpperCase())}function $8(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ai(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function r8(n){return new Ce(3004,!1)}()}}function YE(n,t){return window.getComputedStyle(n)[t]}function K8(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function Z8(n,t,e){if(":"==n[0]){const l=function Q8(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function _8(n){return new Ce(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(KE(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(KE(s,r))}(i,e,t)):e.push(n),e}const gu=new Set(["true","1"]),mu=new Set(["false","0"]);function KE(n,t){const e=gu.has(n)||mu.has(n),i=gu.has(t)||mu.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?gu.has(n):mu.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?gu.has(t):mu.has(t)),s&&a}}const J8=new RegExp("s*:selfs*,?","g");function ig(n,t,e,i){return new eB(n).build(t,e,i)}class eB{constructor(t){this._driver=t}build(t,e,i){const r=new iB(e);return this._resetContextStyleTimingState(r),ai(this,Xa(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function s8(){return new Ce(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function a8(){return new Ce(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{XE(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(du(o.values()),e.errors.push(function l8(n,t){return new Ce(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ai(this,Xa(t.animation),e);return{type:1,matchers:K8(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:po(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>ai(this,i,e)),options:po(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=ai(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:po(t.options)}}visitAnimate(t,e){const i=function oB(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return rg(cu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=rg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=cu(e,t);return rg(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:ut({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=ut(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===gr?i.push(a):e.errors.push(new Ce(3002,!1)):i.push($E(a));let o=!1,s=null;return i.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:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let h=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function u8(n,t,e,i,r){return new Ce(3010,!1)}()),h=!1),o=u.startTime),h&&c.set(l,{startTime:o,endTime:r}),e.options&&function U8(n,t,e){const i=t.params||{},r=XE(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function n8(n){return new Ce(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function d8(){return new Ce(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(ue=>{const be=this._makeStyleAst(ue,e);let le=null!=be.offset?be.offset:function rB(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(be.styles),we=0;return null!=le&&(o++,we=be.offset=le),l=l||we<0||we>1,a=a||we0&&o{const le=D>0?be==R?1:D*be:s[be],we=le*re;e.currentTime=Y+ee.delay+we,ee.duration=we,this._validateStyleAst(ue,e),ue.offset=le,i.styles.push(ue)}),i}visitReference(t,e){return{type:8,animation:ai(this,Xa(t.animation),e),options:po(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:po(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:po(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function tB(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(J8,"")),n=n.replace(/@\*/g,lu).replace(/@\w+/g,e=>lu+"-"+e.slice(1)).replace(/:animating/g,Jp),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,si(e.collectedStyles,e.currentQuerySelector,new Map);const a=ai(this,Xa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:po(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function g8(){return new Ce(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:cu(t.timings,e.errors,!0);return{type:12,animation:ai(this,Xa(t.animation),e),timings:i,options:null}}}class iB{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function po(n){return n?(n=qa(n)).params&&(n.params=function nB(n){return n?qa(n):null}(n.params)):n={},n}function rg(n,t,e){return{duration:n,delay:t,easing:e}}function og(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class _u{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const lB=new RegExp(":enter","g"),uB=new RegExp(":leave","g");function sg(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new dB).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class dB{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new _u;const h=new ag(t,e,c,r,o,u,[]);h.options=l;const D=l.delay?jr(l.delay):0;h.currentTimeline.delayNextStep(D),h.currentTimeline.setStyles([s],null,h.errors,l),ai(this,i,h);const R=h.timelines.filter(Y=>Y.containsAnimation());if(R.length&&a.size){let Y;for(let ee=R.length-1;ee>=0;ee--){const re=R[ee];if(re.element===e){Y=re;break}}Y&&!Y.allowOnlyTimelineStyles()&&Y.setStyles([a],null,h.errors,l)}return R.length?R.map(Y=>Y.buildKeyframes()):[og(e,[],[],[],0,D,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?jr(i.duration):null,a=null!=i.delay?jr(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),ai(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=yu);const s=jr(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>ai(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?jr(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),ai(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return cu(e.params?uu(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?jr(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yu);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(t.options,c);o&&h.delayNextStep(o),c===e.element&&(l=h.currentTimeline),ai(this,t.animation,h),h.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const h=u.currentTime;ai(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-h+(r.startTime-i.currentTimeline.startTime)}}const yu={};class ag{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new vu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=jr(i.duration)),null!=i.delay&&(r.delay=jr(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=uu(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new ag(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=yu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new hB(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(lB,"."+this._enterClassName)).replace(uB,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function m8(n){return new Ce(3014,!1)}()),a}}class vu{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vu(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||gr),this._currentKeyframe.set(e,gr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){var o;e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},a=function fB(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,gr)}else Ur(r,e)}),e}(t,this._globalTimelineStyles);for(let[l,c]of a){const u=uu(c,s,i);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(o=this._globalTimelineStyles.get(l))&&void 0!==o?o:gr),this._updateStyle(l,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ur(a,new Map,this._backFill);c.forEach((u,h)=>{"!"===u?t.add(h):u===gr&&e.add(h)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?du(t.values()):[],s=e.size?du(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return og(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class hB extends vu{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Ur(t[0]);l.set("offset",0),o.push(l);const c=Ur(t[0]);c.set("offset",JE(a)),o.push(c);const u=t.length-1;for(let h=1;h<=u;h++){let D=Ur(t[h]);const R=D.get("offset");D.set("offset",JE((e+R*i)/s)),o.push(D)}i=s,e=0,r="",t=o}return og(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function JE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class lg{}const pB=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 gB extends lg{normalizePropertyName(t,e){return ng(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(pB.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function o8(n,t){return new Ce(3005,!1)}())}return s+o}}function eC(n,t,e,i,r,o,s,a,l,c,u,h,D){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:D}}const cg={};class tC{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function mB(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(null==t?void 0:t.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){var h;const D=[],R=this.ast.options&&this.ast.options.params||cg,ee=this.buildStyles(i,a&&a.params||cg,D),re=l&&l.params||cg,ue=this.buildStyles(r,re,D),be=new Set,le=new Map,we=new Map,Be="void"===r,at={params:_B(re,R),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},jt=u?[]:sg(t,e,this.ast.animation,o,s,ee,ue,at,c,D);let Dn=0;if(jt.forEach(Nn=>{Dn=Math.max(Nn.duration+Nn.delay,Dn)}),D.length)return eC(e,this._triggerName,i,r,Be,ee,ue,[],[],le,we,Dn,D);jt.forEach(Nn=>{const yr=Nn.element,vr=si(le,yr,new Set);Nn.preStyleProps.forEach(Qi=>vr.add(Qi));const br=si(we,yr,new Set);Nn.postStyleProps.forEach(Qi=>br.add(Qi)),yr!==e&&be.add(yr)});const $r=du(be.values());return eC(e,this._triggerName,i,r,Be,ee,ue,jt,$r,le,we,Dn)}}function _B(n,t){const e=qa(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class yB{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=qa(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=uu(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class bB{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new yB(r.style,r.options&&r.options.params||{},i))}),nC(this.states,"true","1"),nC(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new tC(t,r,this.states))}),this.fallbackTransition=function wB(n,t,e){return new tC(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function nC(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const DB=new _u;class EB{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=ig(this._driver,e,i,[]);if(i.length)throw function E8(n){return new Ce(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=kE(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=sg(this._driver,e,o,Qp,su,new Map,new Map,i,DB,r),s.forEach(u=>{const h=si(a,u.element,new Map);u.postStyleProps.forEach(D=>h.set(D,null))})):(r.push(function C8(){return new Ce(3300,!1)}()),s=[]),r.length)throw function S8(n){return new Ce(3504,!1)}();a.forEach((u,h)=>{u.forEach((D,R)=>{u.set(R,this._driver.computeStyle(h,R,gr))})});const c=Hr(s.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function T8(n){return new Ce(3301,!1)}();return e}listen(t,e,i,r){const o=Xp(e,"","","");return Gp(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const iC="ng-animate-queued",ug="ng-animate-disabled",AB=[],rC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},IB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mi="__ng_removed";class dg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function PB(n){return null!=n?n:null}(i?t.value:t),i){const o=qa(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Ya="void",hg=new dg(Ya);class xB{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_i(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function M8(n,t){return new Ce(3302,!1)}();if(null==i||0==i.length)throw function A8(n){return new Ce(3303,!1)}();if(!function kB(n){return"start"==n||"done"==n}(i))throw function I8(n,t){return new Ce(3400,!1)}();const o=si(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=si(this._engine.statesByElement,t,new Map);return a.has(e)||(_i(t,au),_i(t,au+"-"+e),a.set(e,hg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function x8(n){return new Ce(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new fg(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(_i(t,au),_i(t,au+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new dg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=hg),c.value!==Ya&&l.value===c.value){if(!function LB(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{fo(t,re),Zi(t,ue)})}return}const D=si(this._engine.playersByElement,t,[]);D.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let R=o.matchTransition(l.value,c.value,t,c.params),Y=!1;if(!R){if(!r)return;R=o.fallbackTransition,Y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:R,fromState:l,toState:c,player:s,isFallbackTransition:Y}),Y||(_i(t,iC),s.onStart(()=>{Ts(t,iC)})),s.onDone(()=>{let ee=this.players.indexOf(s);ee>=0&&this.players.splice(ee,1);const re=this._engine.playersByElement.get(t);if(re){let ue=re.indexOf(s);ue>=0&&re.splice(ue,1)}}),this.players.push(s),D.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,lu,!0);i.forEach(r=>{if(r[mi])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Ya,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Hr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||hg,u=new dg(Ya),h=new fg(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[mi];(!o||o===rC)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){_i(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Xp(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Gp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class RB{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new xB(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(bu(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!bu(e))return;const o=e[mi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),_i(t,ug)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ts(t,ug))}removeNode(t,e,i,r){if(bu(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[mi]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return bu(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,lu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Jp,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Hr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[mi];if(i&&i.setForRemoval){if(t[mi]=rC,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}!(null===(e=t.classList)||void 0===e)&&e.contains(ug)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Hr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function R8(n){return new Ce(3402,!1)}()}_flushAnimations(t,e){const i=new _u,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(xe=>{u.add(xe);const ke=this.driver.query(xe,".ng-animate-queued",!0);for(let Fe=0;Fe{const Fe=Qp+ee++;Y.set(ke,Fe),xe.forEach(nt=>_i(nt,Fe))});const re=[],ue=new Set,be=new Set;for(let xe=0;xeue.add(nt)):be.add(ke))}const le=new Map,we=aC(D,Array.from(ue));we.forEach((xe,ke)=>{const Fe=su+ee++;le.set(ke,Fe),xe.forEach(nt=>_i(nt,Fe))}),t.push(()=>{R.forEach((xe,ke)=>{const Fe=Y.get(ke);xe.forEach(nt=>Ts(nt,Fe))}),we.forEach((xe,ke)=>{const Fe=le.get(ke);xe.forEach(nt=>Ts(nt,Fe))}),re.forEach(xe=>{this.processLeaveNode(xe)})});const Be=[],at=[];for(let xe=this._namespaceList.length-1;xe>=0;xe--)this._namespaceList[xe].drainQueuedTransitions(e).forEach(Fe=>{const nt=Fe.player,Ut=Fe.element;if(Be.push(nt),this.collectedEnterElements.length){const En=Ut[mi];if(En&&En.setForMove){if(En.previousTriggersValues&&En.previousTriggersValues.has(Fe.triggerName)){const go=En.previousTriggersValues.get(Fe.triggerName),yi=this.statesByElement.get(Fe.element);if(yi&&yi.has(Fe.triggerName)){const Cu=yi.get(Fe.triggerName);Cu.value=go,yi.set(Fe.triggerName,Cu)}}return void nt.destroy()}}const Ji=!h||!this.driver.containsElement(h,Ut),li=le.get(Ut),Wr=Y.get(Ut),Nt=this._buildInstruction(Fe,i,Wr,li,Ji);if(Nt.errors&&Nt.errors.length)return void at.push(Nt);if(Ji)return nt.onStart(()=>fo(Ut,Nt.fromStyles)),nt.onDestroy(()=>Zi(Ut,Nt.toStyles)),void r.push(nt);if(Fe.isFallbackTransition)return nt.onStart(()=>fo(Ut,Nt.fromStyles)),nt.onDestroy(()=>Zi(Ut,Nt.toStyles)),void r.push(nt);const DC=[];Nt.timelines.forEach(En=>{En.stretchStartingKeyframe=!0,this.disabledNodes.has(En.element)||DC.push(En)}),Nt.timelines=DC,i.append(Ut,Nt.timelines),s.push({instruction:Nt,player:nt,element:Ut}),Nt.queriedElements.forEach(En=>si(a,En,[]).push(nt)),Nt.preStyleProps.forEach((En,go)=>{if(En.size){let yi=l.get(go);yi||l.set(go,yi=new Set),En.forEach((Cu,_g)=>yi.add(_g))}}),Nt.postStyleProps.forEach((En,go)=>{let yi=c.get(go);yi||c.set(go,yi=new Set),En.forEach((Cu,_g)=>yi.add(_g))})});if(at.length){const xe=[];at.forEach(ke=>{xe.push(function O8(n,t){return new Ce(3505,!1)}())}),Be.forEach(ke=>ke.destroy()),this.reportError(xe)}const jt=new Map,Dn=new Map;s.forEach(xe=>{const ke=xe.element;i.has(ke)&&(Dn.set(ke,ke),this._beforeAnimationBuild(xe.player.namespaceId,xe.instruction,jt))}),r.forEach(xe=>{const ke=xe.element;this._getPreviousPlayers(ke,!1,xe.namespaceId,xe.triggerName,null).forEach(nt=>{si(jt,ke,[]).push(nt),nt.destroy()})});const $r=re.filter(xe=>cC(xe,l,c)),Nn=new Map;sC(Nn,this.driver,be,c,gr).forEach(xe=>{cC(xe,l,c)&&$r.push(xe)});const vr=new Map;R.forEach((xe,ke)=>{sC(vr,this.driver,new Set(xe),l,"!")}),$r.forEach(xe=>{var ke,Fe;const nt=Nn.get(xe),Ut=vr.get(xe);Nn.set(xe,new Map([...Array.from(null!==(ke=null==nt?void 0:nt.entries())&&void 0!==ke?ke:[]),...Array.from(null!==(Fe=null==Ut?void 0:Ut.entries())&&void 0!==Fe?Fe:[])]))});const br=[],Qi=[],Ms={};s.forEach(xe=>{const{element:ke,player:Fe,instruction:nt}=xe;if(i.has(ke)){if(u.has(ke))return Fe.onDestroy(()=>Zi(ke,nt.toStyles)),Fe.disabled=!0,Fe.overrideTotalTime(nt.totalTime),void r.push(Fe);let Ut=Ms;if(Dn.size>1){let li=ke;const Wr=[];for(;li=li.parentNode;){const Nt=Dn.get(li);if(Nt){Ut=Nt;break}Wr.push(li)}Wr.forEach(Nt=>Dn.set(Nt,Ut))}const Ji=this._buildAnimation(Fe.namespaceId,nt,jt,o,vr,Nn);if(Fe.setRealPlayer(Ji),Ut===Ms)br.push(Fe);else{const li=this.playersByElement.get(Ut);li&&li.length&&(Fe.parentPlayer=Hr(li)),r.push(Fe)}}else fo(ke,nt.fromStyles),Fe.onDestroy(()=>Zi(ke,nt.toStyles)),Qi.push(Fe),u.has(ke)&&r.push(Fe)}),Qi.forEach(xe=>{const ke=o.get(xe.element);if(ke&&ke.length){const Fe=Hr(ke);xe.setRealPlayer(Fe)}}),r.forEach(xe=>{xe.parentPlayer?xe.syncPlayerEvents(xe.parentPlayer):xe.destroy()});for(let xe=0;xe!Ji.destroyed);Ut.length?NB(this,ke,Ut):this.processLeaveNode(ke)}return re.length=0,br.forEach(xe=>{this.players.push(xe),xe.onDone(()=>{xe.destroy();const ke=this.players.indexOf(xe);this.players.splice(ke,1)}),xe.play()}),br}elementContainsData(t,e){let i=!1;const r=e[mi];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Ya;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,h=si(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(R=>{const Y=R.getRealPlayer();Y.beforeDestroy&&Y.beforeDestroy(),R.destroy(),h.push(R)})}fo(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,h=new Set,D=e.timelines.map(Y=>{const ee=Y.element;u.add(ee);const re=ee[mi];if(re&&re.removedBeforeQueried)return new Pa(Y.duration,Y.delay);const ue=ee!==l,be=function FB(n){const t=[];return lC(n,t),t}((i.get(ee)||AB).map(jt=>jt.getRealPlayer())).filter(jt=>!!jt.element&&jt.element===ee),le=o.get(ee),we=s.get(ee),Be=kE(0,this._normalizer,0,Y.keyframes,le,we),at=this._buildPlayer(Y,Be,be);if(Y.subTimeline&&r&&h.add(ee),ue){const jt=new fg(t,a,ee);jt.setRealPlayer(at),c.push(jt)}return at});c.forEach(Y=>{si(this.playersByQueriedElement,Y.element,[]).push(Y),Y.onDone(()=>function OB(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,Y.element,Y))}),u.forEach(Y=>_i(Y,zE));const R=Hr(D);return R.onDestroy(()=>{u.forEach(Y=>Ts(Y,zE)),Zi(l,e.toStyles)}),h.forEach(Y=>{si(r,Y,[]).push(R)}),R}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Pa(t.duration,t.delay)}}class fg{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Pa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Gp(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){si(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function bu(n){return n&&1===n.nodeType}function oC(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function sC(n,t,e,i,r){const o=[];e.forEach(l=>o.push(oC(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(h=>{const D=t.computeStyle(c,h,r);u.set(h,D),(!D||0==D.length)&&(c[mi]=IB,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>oC(l,o[a++])),s}function aC(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),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=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function _i(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Ts(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function NB(n,t,e){Hr(e).onDone(()=>n.processLeaveNode(t))}function lC(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class wu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new RB(t,e,i),this._timelineEngine=new EB(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=ig(this._driver,o,l,[]);if(l.length)throw function w8(n,t){return new Ce(3404,!1)}();a=function vB(n,t,e){return new bB(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=NE(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=NE(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let VB=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Zi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Zi(this._element,this._initialStyles),this._endStyles&&(Zi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(fo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fo(this._element,this._endStyles),this._endStyles=null),Zi(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function pg(n){let t=null;return n.forEach((e,i)=>{(function HB(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class uC{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:YE(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class jB{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return VE(t,e)}getParentElement(t){return Kp(t)}query(t,e,i){return HE(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(R=>R instanceof uC);(function W8(n,t){return 0===n||0===t})(i,r)&&u.forEach(R=>{R.currentSnapshot.forEach((Y,ee)=>c.set(ee,Y))});let h=function j8(n){return n.length?n[0]instanceof Map?n:n.map(t=>$E(t)):[]}(e).map(R=>Ur(R));h=function G8(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,YE(n,a)))}}return t}(t,h,c);const D=function BB(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=pg(t[0]),t.length>1&&(i=pg(t[t.length-1]))):t instanceof Map&&(e=pg(t)),e||i?new VB(n,e,i):null}(t,h);return new uC(t,h,l,D)}}let UB=(()=>{class n extends nD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:wi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?rD(e):e;return dC(this._renderer,null,i,"register",[r]),new zB(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(ae(Ks),ae($e))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class zB extends class _F{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new $B(this._id,t,e||{},this._renderer)}}class $B{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return dC(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function dC(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const hC="@.disabled";let WB=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=null==s?void 0:s.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new fC("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new GB(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(ae(Ks),ae(wu),ae(qe))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class fC{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==hC?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class GB extends fC{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hC?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function qB(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function XB(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const pC=[{provide:nD,useClass:UB},{provide:lg,useFactory:function KB(){return new gB}},{provide:wu,useClass:(()=>{class n extends wu{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(ae($e),ae(Zp),ae(lg),ae(ls))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})()},{provide:Ks,useFactory:function ZB(n,t,e){return new WB(n,t,e)},deps:[_c,wu,qe]}],gg=[{provide:Zp,useFactory:()=>new jB},{provide:dr,useValue:"BrowserAnimations"},...pC],gC=[{provide:Zp,useClass:jE},{provide:dr,useValue:"NoopAnimations"},...pC];let QB=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?gC:gg}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:gg,imports:[rw]}),n})(),JB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({imports:[us,VF,h2,y2,x2,AL,J2,qL,g3,B2,PF]}),n})();const zr=new pe(X),t5={connector:()=>new _e};function mC(n,t=t5){const{connector:e}=t;return Xe((i,r)=>{const o=e();Dr(n(function e5(n){return new pe(t=>n.subscribe(t))}(o))).subscribe(r),r.add(i.subscribe(o))})}function _C(n,t){return t?e=>Ta(t.pipe(zt(1),function o5(){return Xe((n,t)=>{n.subscribe(new pt(t,X))})}()),e.pipe(_C(n))):mo((e,i)=>n(e,i).pipe(zt(1),function s5(n){return it(()=>n)}(e)))}const Ka="Service workers are disabled or not supported by this browser";class Eu{constructor(t){if(this.serviceWorker=t,t){const i=ms(t,"controllerchange").pipe(it(()=>t.controller)),o=Ta(Pc(()=>bn(t.controller)),i);this.worker=o.pipe($n(u=>!!u)),this.registration=this.worker.pipe(Ha(()=>t.getRegistration()));const c=ms(t,"message").pipe(it(u=>u.data)).pipe($n(u=>u&&u.type)).pipe(function r5(n){return n?t=>mC(n)(t):t=>function n5(n,t){const e=v(n)?n:()=>n;return v(t)?mC(t,{connector:e}):i=>new ID(i,e)}(new _e)(t)}());c.connect(),this.events=c}else this.worker=this.events=this.registration=function l5(n){return Pc(()=>uD(new Error(n)))}(Ka)}postMessage(t,e){return this.worker.pipe(zt(1),ka(i=>{i.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithOperation(t,e,i){const r=this.waitForOperationCompleted(i),o=this.postMessage(t,e);return Promise.all([o,r]).then(([,s])=>s)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){let e;return e="string"==typeof t?i=>i.type===t:i=>t.includes(i.type),this.events.pipe($n(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(zt(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe($n(e=>e.nonce===t),zt(1),it(e=>{if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let c5=(()=>{class n{constructor(e){if(this.sw=e,this.subscriptionChanges=new _e,!e.isEnabled)return this.messages=zr,this.notificationClicks=zr,void(this.subscription=zr);this.messages=this.sw.eventsOfType("PUSH").pipe(it(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(it(r=>r.data)),this.pushManager=this.sw.registration.pipe(it(r=>r.pushManager));const i=this.pushManager.pipe(Ha(r=>r.getSubscription()));this.subscription=Fi(i,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(e){if(!this.sw.isEnabled)return Promise.reject(new Error(Ka));const i={userVisibleOnly:!0};let r=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(r.length));for(let s=0;ss.subscribe(i)),zt(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(zt(1),Ha(i=>{if(null===i)throw new Error("Not subscribed to push notifications.");return i.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Ka))}decodeBase64(e){return atob(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(Eu))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})(),u5=(()=>{class n{constructor(e){if(this.sw=e,!e.isEnabled)return this.versionUpdates=zr,this.available=zr,this.activated=zr,void(this.unrecoverable=zr);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe($n(i=>"VERSION_READY"===i.type),it(i=>({type:"UPDATE_AVAILABLE",current:i.currentVersion,available:i.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ka));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Ka));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}}return n.\u0275fac=function(e){return new(e||n)(ae(Eu))},n.\u0275prov=Ie({token:n,factory:n.\u0275fac}),n})();class mg{}const yC=new Ee("NGSW_REGISTER_SCRIPT");function d5(n,t,e,i){return()=>{if(!Mf(i)||!("serviceWorker"in navigator)||!1===e.enabled)return;let o;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof e.registrationStrategy)o=e.registrationStrategy();else{const[a,...l]=(e.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":o=bn(null);break;case"registerWithDelay":o=vC(+l[0]||0);break;case"registerWhenStable":o=l[0]?Fi(bC(n),vC(+l[0])):bC(n);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${e.registrationStrategy}`)}}n.get(qe).runOutsideAngular(()=>o.pipe(zt(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:e.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function vC(n){return bn(null).pipe(function a5(n,t=Ec){const e=np(n,t);return _C(()=>e)}(n))}function bC(n){return n.get(ls).isStable.pipe($n(e=>e))}function h5(n,t){return new Eu(Mf(t)&&!1!==n.enabled?navigator.serviceWorker:void 0)}let f5=(()=>{class n{static register(e,i={}){return{ngModule:n,providers:[{provide:yC,useValue:e},{provide:mg,useValue:i},{provide:Eu,useFactory:h5,deps:[mg,ga]},{provide:Kh,useFactory:d5,deps:[xn,yC,mg,ga],multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n}),n.\u0275inj=mt({providers:[c5,u5]}),n})();let p5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=vt({type:n,bootstrap:[J3]}),n.\u0275inj=mt({imports:[rw,QB,JB,f5.register("ngsw-worker.js",{enabled:true,registrationStrategy:"registerWhenStable:30000"})]}),n})();(function ZR(){a0=!1})(),lk().bootstrapModule(p5).catch(n=>console.error(n))},5343:(oe,ce)=>{"use strict";ce.byteLength=function _(S){var I=b(S),q=I[1];return 3*(I[0]+q)/4-q},ce.toByteArray=function F(S){var I,g,M=b(S),q=M[0],Q=M[1],w=new k(function E(S,I,M){return 3*(I+M)/4-M}(0,q,Q)),B=0,y=Q>0?q-4:q;for(g=0;g>16&255,w[B++]=I>>8&255,w[B++]=255&I;return 2===Q&&(I=v[S.charCodeAt(g)]<<2|v[S.charCodeAt(g+1)]>>4,w[B++]=255&I),1===Q&&(I=v[S.charCodeAt(g)]<<10|v[S.charCodeAt(g+1)]<<4|v[S.charCodeAt(g+2)]>>2,w[B++]=I>>8&255,w[B++]=255&I),w},ce.fromByteArray=function X(S){for(var I,M=S.length,q=M%3,Q=[],w=16383,B=0,y=M-q;By?y:B+w));return 1===q?Q.push(x[(I=S[M-1])>>2]+x[I<<4&63]+"=="):2===q&&Q.push(x[(I=(S[M-2]<<8)+S[M-1])>>10]+x[I>>4&63]+x[I<<2&63]+"="),Q.join("")};for(var x=[],v=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W=0,G=V.length;W0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");return-1===M&&(M=I),[M,M===I?0:4-M%4]}function O(S){return x[S>>18&63]+x[S>>12&63]+x[S>>6&63]+x[63&S]}function J(S,I,M){for(var Q=[],w=I;w{"use strict";var v=x(5343),k=x(8461),V="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ce.Buffer=_,ce.SlowBuffer=function w(C){return+C!=C&&(C=0),_.alloc(+C)},ce.INSPECT_MAX_BYTES=50;var W=2147483647;function b(C){if(C>W)throw new RangeError('The value "'+C+'" is invalid for option "size"');var d=new Uint8Array(C);return Object.setPrototypeOf(d,_.prototype),d}function _(C,d,f){if("number"==typeof C){if("string"==typeof d)throw new TypeError('The "string" argument must be of type string. Received type number');return J(C)}return E(C,d,f)}function E(C,d,f){if("string"==typeof C)return function X(C,d){if(("string"!=typeof d||""===d)&&(d="utf8"),!_.isEncoding(d))throw new TypeError("Unknown encoding: "+d);var f=0|B(C,d),H=b(f),ie=H.write(C,d);return ie!==f&&(H=H.slice(0,ie)),H}(C,d);if(ArrayBuffer.isView(C))return function I(C){if(L(C,Uint8Array)){var d=new Uint8Array(C);return M(d.buffer,d.byteOffset,d.byteLength)}return S(C)}(C);if(null==C)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(L(C,ArrayBuffer)||C&&L(C.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(C,SharedArrayBuffer)||C&&L(C.buffer,SharedArrayBuffer)))return M(C,d,f);if("number"==typeof C)throw new TypeError('The "value" argument must not be of type number. Received type number');var H=C.valueOf&&C.valueOf();if(null!=H&&H!==C)return _.from(H,d,f);var ie=function q(C){if(_.isBuffer(C)){var d=0|Q(C.length),f=b(d);return 0===f.length||C.copy(f,0,0,d),f}return void 0!==C.length?"number"!=typeof C.length||U(C.length)?b(0):S(C):"Buffer"===C.type&&Array.isArray(C.data)?S(C.data):void 0}(C);if(ie)return ie;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof C[Symbol.toPrimitive])return _.from(C[Symbol.toPrimitive]("string"),d,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}function F(C){if("number"!=typeof C)throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function J(C){return F(C),b(C<0?0:0|Q(C))}function S(C){for(var d=C.length<0?0:0|Q(C.length),f=b(d),H=0;H=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return 0|C}function B(C,d){if(_.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||L(C,ArrayBuffer))return C.byteLength;if("string"!=typeof C)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);var f=C.length,H=arguments.length>2&&!0===arguments[2];if(!H&&0===f)return 0;for(var ie=!1;;)switch(d){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return p(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return De(C).length;default:if(ie)return H?-1:p(C).length;d=(""+d).toLowerCase(),ie=!0}}function y(C,d,f){var H=!1;if((void 0===d||d<0)&&(d=0),d>this.length||((void 0===f||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(d>>>=0))return"";for(C||(C="utf8");;)switch(C){case"hex":return _e(this,d,f);case"utf8":case"utf-8":return pe(this,d,f);case"ascii":return Ae(this,d,f);case"latin1":case"binary":return Ct(this,d,f);case"base64":return he(this,d,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ln(this,d,f);default:if(H)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),H=!0}}function g(C,d,f){var H=C[d];C[d]=C[f],C[f]=H}function m(C,d,f,H,ie){if(0===C.length)return-1;if("string"==typeof f?(H=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),U(f=+f)&&(f=ie?0:C.length-1),f<0&&(f=C.length+f),f>=C.length){if(ie)return-1;f=C.length-1}else if(f<0){if(!ie)return-1;f=0}if("string"==typeof d&&(d=_.from(d,H)),_.isBuffer(d))return 0===d.length?-1:T(C,d,f,H,ie);if("number"==typeof d)return d&=255,"function"==typeof Uint8Array.prototype.indexOf?ie?Uint8Array.prototype.indexOf.call(C,d,f):Uint8Array.prototype.lastIndexOf.call(C,d,f):T(C,[d],f,H,ie);throw new TypeError("val must be string, number or Buffer")}function T(C,d,f,H,ie){var yt,de=1,ve=C.length,rt=d.length;if(void 0!==H&&("ucs2"===(H=String(H).toLowerCase())||"ucs-2"===H||"utf16le"===H||"utf-16le"===H)){if(C.length<2||d.length<2)return-1;de=2,ve/=2,rt/=2,f/=2}function ct(ki,Ni){return 1===de?ki[Ni]:ki.readUInt16BE(Ni*de)}if(ie){var Ft=-1;for(yt=f;ytve&&(f=ve-rt),yt=f;yt>=0;yt--){for(var St=!0,vi=0;viie&&(H=ie):H=ie;var de=d.length;H>de/2&&(H=de/2);for(var ve=0;ve>8,de.push(f%256),de.push(H);return de}(d,C.length-f),C,f,H)}function he(C,d,f){return v.fromByteArray(0===d&&f===C.length?C:C.slice(d,f))}function pe(C,d,f){f=Math.min(C.length,f);for(var H=[],ie=d;ie239?4:de>223?3:de>191?2:1;if(ie+rt<=f)switch(rt){case 1:de<128&&(ve=de);break;case 2:128==(192&(ct=C[ie+1]))&&(St=(31&de)<<6|63&ct)>127&&(ve=St);break;case 3:yt=C[ie+2],128==(192&(ct=C[ie+1]))&&128==(192&yt)&&(St=(15&de)<<12|(63&ct)<<6|63&yt)>2047&&(St<55296||St>57343)&&(ve=St);break;case 4:yt=C[ie+2],Ft=C[ie+3],128==(192&(ct=C[ie+1]))&&128==(192&yt)&&128==(192&Ft)&&(St=(15&de)<<18|(63&ct)<<12|(63&yt)<<6|63&Ft)>65535&&St<1114112&&(ve=St)}null===ve?(ve=65533,rt=1):ve>65535&&(H.push((ve-=65536)>>>10&1023|55296),ve=56320|1023&ve),H.push(ve),ie+=rt}return function Je(C){var d=C.length;if(d<=4096)return String.fromCharCode.apply(String,C);for(var f="",H=0;HH)&&(f=H);for(var ie="",de=d;def)throw new RangeError("Trying to access beyond buffer length")}function Xe(C,d,f,H,ie,de){if(!_.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>ie||dC.length)throw new RangeError("Index out of range")}function pt(C,d,f,H,ie,de){if(f+H>C.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function it(C,d,f,H,ie){return d=+d,f>>>=0,ie||pt(C,0,f,4),k.write(C,d,f,H,23,4),f+4}function cn(C,d,f,H,ie){return d=+d,f>>>=0,ie||pt(C,0,f,8),k.write(C,d,f,H,52,8),f+8}ce.kMaxLength=W,!(_.TYPED_ARRAY_SUPPORT=function G(){try{var C=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(C,d),42===C.foo()}catch(f){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.buffer}}),Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.byteOffset}}),_.poolSize=8192,_.from=function(C,d,f){return E(C,d,f)},Object.setPrototypeOf(_.prototype,Uint8Array.prototype),Object.setPrototypeOf(_,Uint8Array),_.alloc=function(C,d,f){return function O(C,d,f){return F(C),C<=0?b(C):void 0!==d?"string"==typeof f?b(C).fill(d,f):b(C).fill(d):b(C)}(C,d,f)},_.allocUnsafe=function(C){return J(C)},_.allocUnsafeSlow=function(C){return J(C)},_.isBuffer=function(d){return null!=d&&!0===d._isBuffer&&d!==_.prototype},_.compare=function(d,f){if(L(d,Uint8Array)&&(d=_.from(d,d.offset,d.byteLength)),L(f,Uint8Array)&&(f=_.from(f,f.offset,f.byteLength)),!_.isBuffer(d)||!_.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===f)return 0;for(var H=d.length,ie=f.length,de=0,ve=Math.min(H,ie);deie.length?_.from(ve).copy(ie,de):Uint8Array.prototype.set.call(ie,ve,de);else{if(!_.isBuffer(ve))throw new TypeError('"list" argument must be an Array of Buffers');ve.copy(ie,de)}de+=ve.length}return ie},_.byteLength=B,_.prototype._isBuffer=!0,_.prototype.swap16=function(){var d=this.length;if(d%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;ff&&(d+=" ... "),""},V&&(_.prototype[V]=_.prototype.inspect),_.prototype.compare=function(d,f,H,ie,de){if(L(d,Uint8Array)&&(d=_.from(d,d.offset,d.byteLength)),!_.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(void 0===f&&(f=0),void 0===H&&(H=d?d.length:0),void 0===ie&&(ie=0),void 0===de&&(de=this.length),f<0||H>d.length||ie<0||de>this.length)throw new RangeError("out of range index");if(ie>=de&&f>=H)return 0;if(ie>=de)return-1;if(f>=H)return 1;if(this===d)return 0;for(var ve=(de>>>=0)-(ie>>>=0),rt=(H>>>=0)-(f>>>=0),ct=Math.min(ve,rt),yt=this.slice(ie,de),Ft=d.slice(f,H),St=0;St>>=0,isFinite(H)?(H>>>=0,void 0===ie&&(ie="utf8")):(ie=H,H=void 0)}var de=this.length-f;if((void 0===H||H>de)&&(H=de),d.length>0&&(H<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");for(var ve=!1;;)switch(ie){case"hex":return K(this,d,f,H);case"utf8":case"utf-8":return P(this,d,f,H);case"ascii":case"latin1":case"binary":return ne(this,d,f,H);case"base64":return j(this,d,f,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,d,f,H);default:if(ve)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),ve=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},_.prototype.slice=function(d,f){var H=this.length;(d=~~d)<0?(d+=H)<0&&(d=0):d>H&&(d=H),(f=void 0===f?H:~~f)<0?(f+=H)<0&&(f=0):f>H&&(f=H),f>>=0,f>>>=0,H||Ze(d,f,this.length);for(var ie=this[d],de=1,ve=0;++ve>>=0,f>>>=0,H||Ze(d,f,this.length);for(var ie=this[d+--f],de=1;f>0&&(de*=256);)ie+=this[d+--f]*de;return ie},_.prototype.readUint8=_.prototype.readUInt8=function(d,f){return d>>>=0,f||Ze(d,1,this.length),this[d]},_.prototype.readUint16LE=_.prototype.readUInt16LE=function(d,f){return d>>>=0,f||Ze(d,2,this.length),this[d]|this[d+1]<<8},_.prototype.readUint16BE=_.prototype.readUInt16BE=function(d,f){return d>>>=0,f||Ze(d,2,this.length),this[d]<<8|this[d+1]},_.prototype.readUint32LE=_.prototype.readUInt32LE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+16777216*this[d+3]},_.prototype.readUint32BE=_.prototype.readUInt32BE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),16777216*this[d]+(this[d+1]<<16|this[d+2]<<8|this[d+3])},_.prototype.readIntLE=function(d,f,H){d>>>=0,f>>>=0,H||Ze(d,f,this.length);for(var ie=this[d],de=1,ve=0;++ve=(de*=128)&&(ie-=Math.pow(2,8*f)),ie},_.prototype.readIntBE=function(d,f,H){d>>>=0,f>>>=0,H||Ze(d,f,this.length);for(var ie=f,de=1,ve=this[d+--ie];ie>0&&(de*=256);)ve+=this[d+--ie]*de;return ve>=(de*=128)&&(ve-=Math.pow(2,8*f)),ve},_.prototype.readInt8=function(d,f){return d>>>=0,f||Ze(d,1,this.length),128&this[d]?-1*(255-this[d]+1):this[d]},_.prototype.readInt16LE=function(d,f){d>>>=0,f||Ze(d,2,this.length);var H=this[d]|this[d+1]<<8;return 32768&H?4294901760|H:H},_.prototype.readInt16BE=function(d,f){d>>>=0,f||Ze(d,2,this.length);var H=this[d+1]|this[d]<<8;return 32768&H?4294901760|H:H},_.prototype.readInt32LE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},_.prototype.readInt32BE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},_.prototype.readFloatLE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),k.read(this,d,!0,23,4)},_.prototype.readFloatBE=function(d,f){return d>>>=0,f||Ze(d,4,this.length),k.read(this,d,!1,23,4)},_.prototype.readDoubleLE=function(d,f){return d>>>=0,f||Ze(d,8,this.length),k.read(this,d,!0,52,8)},_.prototype.readDoubleBE=function(d,f){return d>>>=0,f||Ze(d,8,this.length),k.read(this,d,!1,52,8)},_.prototype.writeUintLE=_.prototype.writeUIntLE=function(d,f,H,ie){d=+d,f>>>=0,H>>>=0,ie||Xe(this,d,f,H,Math.pow(2,8*H)-1,0);var ve=1,rt=0;for(this[f]=255&d;++rt>>=0,H>>>=0,ie||Xe(this,d,f,H,Math.pow(2,8*H)-1,0);var ve=H-1,rt=1;for(this[f+ve]=255&d;--ve>=0&&(rt*=256);)this[f+ve]=d/rt&255;return f+H},_.prototype.writeUint8=_.prototype.writeUInt8=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,1,255,0),this[f]=255&d,f+1},_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,2,65535,0),this[f]=255&d,this[f+1]=d>>>8,f+2},_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,2,65535,0),this[f]=d>>>8,this[f+1]=255&d,f+2},_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,4,4294967295,0),this[f+3]=d>>>24,this[f+2]=d>>>16,this[f+1]=d>>>8,this[f]=255&d,f+4},_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,4,4294967295,0),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=255&d,f+4},_.prototype.writeIntLE=function(d,f,H,ie){if(d=+d,f>>>=0,!ie){var de=Math.pow(2,8*H-1);Xe(this,d,f,H,de-1,-de)}var ve=0,rt=1,ct=0;for(this[f]=255&d;++ve>0)-ct&255;return f+H},_.prototype.writeIntBE=function(d,f,H,ie){if(d=+d,f>>>=0,!ie){var de=Math.pow(2,8*H-1);Xe(this,d,f,H,de-1,-de)}var ve=H-1,rt=1,ct=0;for(this[f+ve]=255&d;--ve>=0&&(rt*=256);)d<0&&0===ct&&0!==this[f+ve+1]&&(ct=1),this[f+ve]=(d/rt>>0)-ct&255;return f+H},_.prototype.writeInt8=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,1,127,-128),d<0&&(d=255+d+1),this[f]=255&d,f+1},_.prototype.writeInt16LE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,2,32767,-32768),this[f]=255&d,this[f+1]=d>>>8,f+2},_.prototype.writeInt16BE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,2,32767,-32768),this[f]=d>>>8,this[f+1]=255&d,f+2},_.prototype.writeInt32LE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,4,2147483647,-2147483648),this[f]=255&d,this[f+1]=d>>>8,this[f+2]=d>>>16,this[f+3]=d>>>24,f+4},_.prototype.writeInt32BE=function(d,f,H){return d=+d,f>>>=0,H||Xe(this,d,f,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=255&d,f+4},_.prototype.writeFloatLE=function(d,f,H){return it(this,d,f,!0,H)},_.prototype.writeFloatBE=function(d,f,H){return it(this,d,f,!1,H)},_.prototype.writeDoubleLE=function(d,f,H){return cn(this,d,f,!0,H)},_.prototype.writeDoubleBE=function(d,f,H){return cn(this,d,f,!1,H)},_.prototype.copy=function(d,f,H,ie){if(!_.isBuffer(d))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ie&&0!==ie&&(ie=this.length),f>=d.length&&(f=d.length),f||(f=0),ie>0&&ie=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),d.length-f>>=0,H=void 0===H?this.length:H>>>0,d||(d=0),"number"==typeof d)for(ve=f;ve55295&&f<57344){if(!ie){if(f>56319){(d-=3)>-1&&de.push(239,191,189);continue}if(ve+1===H){(d-=3)>-1&&de.push(239,191,189);continue}ie=f;continue}if(f<56320){(d-=3)>-1&&de.push(239,191,189),ie=f;continue}f=65536+(ie-55296<<10|f-56320)}else ie&&(d-=3)>-1&&de.push(239,191,189);if(ie=null,f<128){if((d-=1)<0)break;de.push(f)}else if(f<2048){if((d-=2)<0)break;de.push(f>>6|192,63&f|128)}else if(f<65536){if((d-=3)<0)break;de.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((d-=4)<0)break;de.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return de}function De(C){return v.toByteArray(function N(C){if((C=(C=C.split("=")[0]).trim().replace(wr,"")).length<2)return"";for(;C.length%4!=0;)C+="=";return C}(C))}function Re(C,d,f,H){for(var ie=0;ie=d.length||ie>=C.length);++ie)d[ie+f]=C[ie];return ie}function L(C,d){return C instanceof d||null!=C&&null!=C.constructor&&null!=C.constructor.name&&C.constructor.name===d.name}function U(C){return C!=C}var fe=function(){for(var C="0123456789abcdef",d=new Array(256),f=0;f<16;++f)for(var H=16*f,ie=0;ie<16;++ie)d[H+ie]=C[f]+C[ie];return d}()},9069:oe=>{"use strict";var v,ce="object"==typeof Reflect?Reflect:null,x=ce&&"function"==typeof ce.apply?ce.apply:function(y,g,m){return Function.prototype.apply.call(y,g,m)};v=ce&&"function"==typeof ce.ownKeys?ce.ownKeys:Object.getOwnPropertySymbols?function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:function(y){return Object.getOwnPropertyNames(y)};var V=Number.isNaN||function(y){return y!=y};function W(){W.init.call(this)}oe.exports=W,oe.exports.once=function q(B,y){return new Promise(function(g,m){function T(P){B.removeListener(y,K),m(P)}function K(){"function"==typeof B.removeListener&&B.removeListener("error",T),g([].slice.call(arguments))}w(B,y,K,{once:!0}),"error"!==y&&function Q(B,y,g){"function"==typeof B.on&&w(B,"error",y,g)}(B,T,{once:!0})})},W.EventEmitter=W,W.prototype._events=void 0,W.prototype._eventsCount=0,W.prototype._maxListeners=void 0;var G=10;function b(B){if("function"!=typeof B)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}function _(B){return void 0===B._maxListeners?W.defaultMaxListeners:B._maxListeners}function E(B,y,g,m){var T,K,P;if(b(g),void 0===(K=B._events)?(K=B._events=Object.create(null),B._eventsCount=0):(void 0!==K.newListener&&(B.emit("newListener",y,g.listener?g.listener:g),K=B._events),P=K[y]),void 0===P)P=K[y]=g,++B._eventsCount;else if("function"==typeof P?P=K[y]=m?[g,P]:[P,g]:m?P.unshift(g):P.push(g),(T=_(B))>0&&P.length>T&&!P.warned){P.warned=!0;var ne=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(y)+" listeners added. Use emitter.setMaxListeners() to increase limit");ne.name="MaxListenersExceededWarning",ne.emitter=B,ne.type=y,ne.count=P.length,function k(B){console&&console.warn&&console.warn(B)}(ne)}return B}function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function O(B,y,g){var m={fired:!1,wrapFn:void 0,target:B,type:y,listener:g},T=F.bind(m);return T.listener=g,m.wrapFn=T,T}function J(B,y,g){var m=B._events;if(void 0===m)return[];var T=m[y];return void 0===T?[]:"function"==typeof T?g?[T.listener||T]:[T]:g?function M(B){for(var y=new Array(B.length),g=0;g0&&(P=g[0]),P instanceof Error)throw P;var ne=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw ne.context=P,ne}var j=K[y];if(void 0===j)return!1;if("function"==typeof j)x(j,this,g);else{var se=j.length,he=S(j,se);for(m=0;m=0;P--)if(m[P]===g||m[P].listener===g){ne=m[P].listener,K=P;break}if(K<0)return this;0===K?m.shift():function I(B,y){for(;y+1=0;T--)this.removeListener(y,g[T]);return this},W.prototype.listeners=function(y){return J(this,y,!0)},W.prototype.rawListeners=function(y){return J(this,y,!1)},W.listenerCount=function(B,y){return"function"==typeof B.listenerCount?B.listenerCount(y):X.call(B,y)},W.prototype.listenerCount=X,W.prototype.eventNames=function(){return this._eventsCount>0?v(this._events):[]}},8461:(oe,ce)=>{ce.read=function(x,v,k,V,W){var G,b,_=8*W-V-1,E=(1<<_)-1,F=E>>1,O=-7,J=k?W-1:0,X=k?-1:1,S=x[v+J];for(J+=X,G=S&(1<<-O)-1,S>>=-O,O+=_;O>0;G=256*G+x[v+J],J+=X,O-=8);for(b=G&(1<<-O)-1,G>>=-O,O+=V;O>0;b=256*b+x[v+J],J+=X,O-=8);if(0===G)G=1-F;else{if(G===E)return b?NaN:1/0*(S?-1:1);b+=Math.pow(2,V),G-=F}return(S?-1:1)*b*Math.pow(2,G-V)},ce.write=function(x,v,k,V,W,G){var b,_,E,F=8*G-W-1,O=(1<>1,X=23===W?Math.pow(2,-24)-Math.pow(2,-77):0,S=V?0:G-1,I=V?1:-1,M=v<0||0===v&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(_=isNaN(v)?1:0,b=O):(b=Math.floor(Math.log(v)/Math.LN2),v*(E=Math.pow(2,-b))<1&&(b--,E*=2),(v+=b+J>=1?X/E:X*Math.pow(2,1-J))*E>=2&&(b++,E/=2),b+J>=O?(_=0,b=O):b+J>=1?(_=(v*E-1)*Math.pow(2,W),b+=J):(_=v*Math.pow(2,J-1)*Math.pow(2,W),b=0));W>=8;x[k+S]=255&_,S+=I,_/=256,W-=8);for(b=b<0;x[k+S]=255&b,S+=I,b/=256,F-=8);x[k+S-I]|=128*M}},3894:oe=>{oe.exports="function"==typeof Object.create?function(x,v){v&&(x.super_=v,x.prototype=Object.create(v.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:function(x,v){if(v){x.super_=v;var k=function(){};k.prototype=v.prototype,x.prototype=new k,x.prototype.constructor=x}}},891:oe=>{"use strict";var x={};function v(b,_,E){E||(E=Error);var O=function(J){function X(S,I,M){return J.call(this,function F(J,X,S){return"string"==typeof _?_:_(J,X,S)}(S,I,M))||this}return function ce(b,_){b.prototype=Object.create(_.prototype),b.prototype.constructor=b,b.__proto__=_}(X,J),X}(E);O.prototype.name=E.name,O.prototype.code=b,x[b]=O}function k(b,_){if(Array.isArray(b)){var E=b.length;return b=b.map(function(F){return String(F)}),E>2?"one of ".concat(_," ").concat(b.slice(0,E-1).join(", "),", or ")+b[E-1]:2===E?"one of ".concat(_," ").concat(b[0]," or ").concat(b[1]):"of ".concat(_," ").concat(b[0])}return"of ".concat(_," ").concat(String(b))}v("ERR_INVALID_OPT_VALUE",function(b,_){return'The value "'+_+'" is invalid for option "'+b+'"'},TypeError),v("ERR_INVALID_ARG_TYPE",function(b,_,E){var F,O;if("string"==typeof _&&function V(b,_,E){return b.substr(!E||E<0?0:+E,_.length)===_}(_,"not ")?(F="must not be",_=_.replace(/^not /,"")):F="must be",function W(b,_,E){return(void 0===E||E>b.length)&&(E=b.length),b.substring(E-_.length,E)===_}(b," argument"))O="The ".concat(b," ").concat(F," ").concat(k(_,"type"));else{var J=function G(b,_,E){return"number"!=typeof E&&(E=0),!(E+_.length>b.length)&&-1!==b.indexOf(_,E)}(b,".")?"property":"argument";O='The "'.concat(b,'" ').concat(J," ").concat(F," ").concat(k(_,"type"))}return O+". Received type ".concat(typeof E)},TypeError),v("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),v("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),v("ERR_STREAM_PREMATURE_CLOSE","Premature close"),v("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),v("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),v("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),v("ERR_STREAM_WRITE_AFTER_END","write after end"),v("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),v("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),v("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),oe.exports.q=x},1339:(oe,ce,x)=>{"use strict";var v=Object.keys||function(O){var J=[];for(var X in O)J.push(X);return J};oe.exports=_;var k=x(3154),V=x(520);x(3894)(_,k);for(var W=v(V.prototype),G=0;G{"use strict";oe.exports=k;var v=x(6025);function k(V){if(!(this instanceof k))return new k(V);v.call(this,V)}x(3894)(k,v),k.prototype._transform=function(V,W,G){G(null,V)}},3154:(oe,ce,x)=>{"use strict";var v;oe.exports=j,j.ReadableState=ne,x(9069);var O,V=function(U,fe){return U.listeners(fe).length},W=x(4970),G=x(3172).Buffer,b=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},F=x(4616);O=F&&F.debuglog?F.debuglog("stream"):function(){};var y,g,m,J=x(5019),X=x(1920),I=x(7102).getHighWaterMark,M=x(891).q,q=M.ERR_INVALID_ARG_TYPE,Q=M.ERR_STREAM_PUSH_AFTER_EOF,w=M.ERR_METHOD_NOT_IMPLEMENTED,B=M.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;x(3894)(j,W);var T=X.errorOrDestroy,K=["error","close","destroy","pause","resume"];function ne(L,U,fe){v=v||x(1339),"boolean"!=typeof fe&&(fe=U instanceof v),this.objectMode=!!(L=L||{}).objectMode,fe&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=I(this,L,"readableHighWaterMark",fe),this.buffer=new J,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==L.emitClose,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(y||(y=x(3054).s),this.decoder=new y(L.encoding),this.encoding=L.encoding)}function j(L){if(v=v||x(1339),!(this instanceof j))return new j(L);this._readableState=new ne(L,this,this instanceof v),this.readable=!0,L&&("function"==typeof L.read&&(this._read=L.read),"function"==typeof L.destroy&&(this._destroy=L.destroy)),W.call(this)}function se(L,U,fe,C,d){O("readableAddChunk",U);var H,f=L._readableState;if(null===U)f.reading=!1,function Ct(L,U){if(O("onEofChunk"),!U.ended){if(U.decoder){var fe=U.decoder.end();fe&&fe.length&&(U.buffer.push(fe),U.length+=U.objectMode?1:fe.length)}U.ended=!0,U.sync?_e(L):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,ln(L)))}}(L,f);else if(d||(H=function pe(L,U){var fe;return!function E(L){return G.isBuffer(L)||L instanceof b}(U)&&"string"!=typeof U&&void 0!==U&&!L.objectMode&&(fe=new q("chunk",["string","Buffer","Uint8Array"],U)),fe}(f,U)),H)T(L,H);else if(f.objectMode||U&&U.length>0)if("string"!=typeof U&&!f.objectMode&&Object.getPrototypeOf(U)!==G.prototype&&(U=function _(L){return G.from(L)}(U)),C)f.endEmitted?T(L,new B):he(L,f,U,!0);else if(f.ended)T(L,new Q);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!fe?(U=f.decoder.write(U),f.objectMode||0!==U.length?he(L,f,U,!1):Ze(L,f)):he(L,f,U,!1)}else C||(f.reading=!1,Ze(L,f));return!f.ended&&(f.lengthU.highWaterMark&&(U.highWaterMark=function Je(L){return L>=Le?L=Le:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}(L)),L<=U.length?L:U.ended?U.length:(U.needReadable=!0,0))}function _e(L){var U=L._readableState;O("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(O("emitReadable",U.flowing),U.emittedReadable=!0,process.nextTick(ln,L))}function ln(L){var U=L._readableState;O("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(L.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,p(L)}function Ze(L,U){U.readingMore||(U.readingMore=!0,process.nextTick(Xe,L,U))}function Xe(L,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:L.listenerCount("data")>0&&L.resume()}function cn(L){O("readable nexttick read 0"),L.read(0)}function N(L,U){O("resume",U.reading),U.reading||L.read(0),U.resumeScheduled=!1,L.emit("resume"),p(L),U.flowing&&!U.reading&&L.read(0)}function p(L){var U=L._readableState;for(O("flow",U.flowing);U.flowing&&null!==L.read(););}function z(L,U){return 0===U.length?null:(U.objectMode?fe=U.buffer.shift():!L||L>=U.length?(fe=U.decoder?U.buffer.join(""):1===U.buffer.length?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):fe=U.buffer.consume(L,U.decoder),fe);var fe}function $(L){var U=L._readableState;O("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,process.nextTick(De,U,L))}function De(L,U){if(O("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&0===L.length&&(L.endEmitted=!0,U.readable=!1,U.emit("end"),L.autoDestroy)){var fe=U._writableState;(!fe||fe.autoDestroy&&fe.finished)&&U.destroy()}}function Re(L,U){for(var fe=0,C=L.length;fe=U.highWaterMark:U.length>0)||U.ended))return O("read: emitReadable",U.length,U.ended),0===U.length&&U.ended?$(this):_e(this),null;if(0===(L=Ae(L,U))&&U.ended)return 0===U.length&&$(this),null;var d,C=U.needReadable;return O("need readable",C),(0===U.length||U.length-L0?z(L,U):null)?(U.needReadable=U.length<=U.highWaterMark,L=0):(U.length-=L,U.awaitDrain=0),0===U.length&&(U.ended||(U.needReadable=!0),fe!==L&&U.ended&&$(this)),null!==d&&this.emit("data",d),d},j.prototype._read=function(L){T(this,new w("_read()"))},j.prototype.pipe=function(L,U){var fe=this,C=this._readableState;switch(C.pipesCount){case 0:C.pipes=L;break;case 1:C.pipes=[C.pipes,L];break;default:C.pipes.push(L)}C.pipesCount+=1,O("pipe count=%d opts=%j",C.pipesCount,U);var f=U&&!1===U.end||L===process.stdout||L===process.stderr?vi:ie;function ie(){O("onend"),L.end()}C.endEmitted?process.nextTick(f):fe.once("end",f),L.on("unpipe",function H(ki,Ni){O("onunpipe"),ki===fe&&Ni&&!1===Ni.hasUnpiped&&(Ni.hasUnpiped=!0,function rt(){O("cleanup"),L.removeListener("close",Ft),L.removeListener("finish",St),L.removeListener("drain",de),L.removeListener("error",yt),L.removeListener("unpipe",H),fe.removeListener("end",ie),fe.removeListener("end",vi),fe.removeListener("data",ct),ve=!0,C.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&de()}())});var de=function pt(L){return function(){var fe=L._readableState;O("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,0===fe.awaitDrain&&V(L,"data")&&(fe.flowing=!0,p(L))}}(fe);L.on("drain",de);var ve=!1;function ct(ki){O("ondata");var Ni=L.write(ki);O("dest.write",Ni),!1===Ni&&((1===C.pipesCount&&C.pipes===L||C.pipesCount>1&&-1!==Re(C.pipes,L))&&!ve&&(O("false write response, pause",C.awaitDrain),C.awaitDrain++),fe.pause())}function yt(ki){O("onerror",ki),vi(),L.removeListener("error",yt),0===V(L,"error")&&T(L,ki)}function Ft(){L.removeListener("finish",St),vi()}function St(){O("onfinish"),L.removeListener("close",Ft),vi()}function vi(){O("unpipe"),fe.unpipe(L)}return fe.on("data",ct),function P(L,U,fe){if("function"==typeof L.prependListener)return L.prependListener(U,fe);L._events&&L._events[U]?Array.isArray(L._events[U])?L._events[U].unshift(fe):L._events[U]=[fe,L._events[U]]:L.on(U,fe)}(L,"error",yt),L.once("close",Ft),L.once("finish",St),L.emit("pipe",fe),C.flowing||(O("pipe resume"),fe.resume()),L},j.prototype.unpipe=function(L){var U=this._readableState,fe={hasUnpiped:!1};if(0===U.pipesCount)return this;if(1===U.pipesCount)return L&&L!==U.pipes||(L||(L=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,L&&L.emit("unpipe",this,fe)),this;if(!L){var C=U.pipes,d=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var f=0;f0,!1!==C.flowing&&this.resume()):"readable"===L&&!C.endEmitted&&!C.readableListening&&(C.readableListening=C.needReadable=!0,C.flowing=!1,C.emittedReadable=!1,O("on readable",C.length,C.reading),C.length?_e(this):C.reading||process.nextTick(cn,this)),fe},j.prototype.removeListener=function(L,U){var fe=W.prototype.removeListener.call(this,L,U);return"readable"===L&&process.nextTick(it,this),fe},j.prototype.removeAllListeners=function(L){var U=W.prototype.removeAllListeners.apply(this,arguments);return("readable"===L||void 0===L)&&process.nextTick(it,this),U},j.prototype.resume=function(){var L=this._readableState;return L.flowing||(O("resume"),L.flowing=!L.readableListening,function wr(L,U){U.resumeScheduled||(U.resumeScheduled=!0,process.nextTick(N,L,U))}(this,L)),L.paused=!1,this},j.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(L){var U=this,fe=this._readableState,C=!1;for(var d in L.on("end",function(){if(O("wrapped end"),fe.decoder&&!fe.ended){var H=fe.decoder.end();H&&H.length&&U.push(H)}U.push(null)}),L.on("data",function(H){O("wrapped data"),fe.decoder&&(H=fe.decoder.write(H)),fe.objectMode&&null==H||!(fe.objectMode||H&&H.length)||U.push(H)||(C=!0,L.pause())}),L)void 0===this[d]&&"function"==typeof L[d]&&(this[d]=function(ie){return function(){return L[ie].apply(L,arguments)}}(d));for(var f=0;f{"use strict";oe.exports=E;var v=x(891).q,k=v.ERR_METHOD_NOT_IMPLEMENTED,V=v.ERR_MULTIPLE_CALLBACK,W=v.ERR_TRANSFORM_ALREADY_TRANSFORMING,G=v.ERR_TRANSFORM_WITH_LENGTH_0,b=x(1339);function _(J,X){var S=this._transformState;S.transforming=!1;var I=S.writecb;if(null===I)return this.emit("error",new V);S.writechunk=null,S.writecb=null,null!=X&&this.push(X),I(J);var M=this._readableState;M.reading=!1,(M.needReadable||M.length{"use strict";function k(p){var z=this;this.next=null,this.entry=null,this.finish=function(){!function N(p,z,$){var De=p.entry;for(p.entry=null;De;){var Re=De.callback;z.pendingcb--,Re($),De=De.next}z.corkedRequestsFree.next=p}(z,p)}}var V;oe.exports=ne,ne.WritableState=K;var P,W={deprecate:x(3532)},G=x(4970),b=x(3172).Buffer,_=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},O=x(1920),X=x(7102).getHighWaterMark,S=x(891).q,I=S.ERR_INVALID_ARG_TYPE,M=S.ERR_METHOD_NOT_IMPLEMENTED,q=S.ERR_MULTIPLE_CALLBACK,Q=S.ERR_STREAM_CANNOT_PIPE,w=S.ERR_STREAM_DESTROYED,B=S.ERR_STREAM_NULL_VALUES,y=S.ERR_STREAM_WRITE_AFTER_END,g=S.ERR_UNKNOWN_ENCODING,m=O.errorOrDestroy;function T(){}function K(p,z,$){V=V||x(1339),"boolean"!=typeof $&&($=z instanceof V),this.objectMode=!!(p=p||{}).objectMode,$&&(this.objectMode=this.objectMode||!!p.writableObjectMode),this.highWaterMark=X(this,p,"writableHighWaterMark",$),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===p.decodeStrings),this.defaultEncoding=p.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Re){!function Ct(p,z){var $=p._writableState,De=$.sync,Re=$.writecb;if("function"!=typeof Re)throw new q;if(function Ae(p){p.writing=!1,p.writecb=null,p.length-=p.writelen,p.writelen=0}($),z)!function Je(p,z,$,De,Re){--z.pendingcb,$?(process.nextTick(Re,De),process.nextTick(cn,p,z),p._writableState.errorEmitted=!0,m(p,De)):(Re(De),p._writableState.errorEmitted=!0,m(p,De),cn(p,z))}(p,$,De,z,Re);else{var L=Xe($)||p.destroyed;!L&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&Ze(p,$),De?process.nextTick(_e,p,$,L,Re):_e(p,$,L,Re)}}(z,Re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==p.emitClose,this.autoDestroy=!!p.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new k(this)}function ne(p){var z=this instanceof(V=V||x(1339));if(!z&&!P.call(ne,this))return new ne(p);this._writableState=new K(p,this,z),this.writable=!0,p&&("function"==typeof p.write&&(this._write=p.write),"function"==typeof p.writev&&(this._writev=p.writev),"function"==typeof p.destroy&&(this._destroy=p.destroy),"function"==typeof p.final&&(this._final=p.final)),G.call(this)}function Le(p,z,$,De,Re,L,U){z.writelen=De,z.writecb=U,z.writing=!0,z.sync=!0,z.destroyed?z.onwrite(new w("write")):$?p._writev(Re,z.onwrite):p._write(Re,L,z.onwrite),z.sync=!1}function _e(p,z,$,De){$||function ln(p,z){0===z.length&&z.needDrain&&(z.needDrain=!1,p.emit("drain"))}(p,z),z.pendingcb--,De(),cn(p,z)}function Ze(p,z){z.bufferProcessing=!0;var $=z.bufferedRequest;if(p._writev&&$&&$.next){var Re=new Array(z.bufferedRequestCount),L=z.corkedRequestsFree;L.entry=$;for(var U=0,fe=!0;$;)Re[U]=$,$.isBuf||(fe=!1),$=$.next,U+=1;Re.allBuffers=fe,Le(p,z,!0,z.length,Re,"",L.finish),z.pendingcb++,z.lastBufferedRequest=null,L.next?(z.corkedRequestsFree=L.next,L.next=null):z.corkedRequestsFree=new k(z),z.bufferedRequestCount=0}else{for(;$;){var C=$.chunk;if(Le(p,z,!1,z.objectMode?1:C.length,C,$.encoding,$.callback),$=$.next,z.bufferedRequestCount--,z.writing)break}null===$&&(z.lastBufferedRequest=null)}z.bufferedRequest=$,z.bufferProcessing=!1}function Xe(p){return p.ending&&0===p.length&&null===p.bufferedRequest&&!p.finished&&!p.writing}function pt(p,z){p._final(function($){z.pendingcb--,$&&m(p,$),z.prefinished=!0,p.emit("prefinish"),cn(p,z)})}function cn(p,z){var $=Xe(z);if($&&(function it(p,z){!z.prefinished&&!z.finalCalled&&("function"!=typeof p._final||z.destroyed?(z.prefinished=!0,p.emit("prefinish")):(z.pendingcb++,z.finalCalled=!0,process.nextTick(pt,p,z)))}(p,z),0===z.pendingcb&&(z.finished=!0,p.emit("finish"),z.autoDestroy))){var De=p._readableState;(!De||De.autoDestroy&&De.endEmitted)&&p.destroy()}return $}x(3894)(ne,G),K.prototype.getBuffer=function(){for(var z=this.bufferedRequest,$=[];z;)$.push(z),z=z.next;return $},function(){try{Object.defineProperty(K.prototype,"buffer",{get:W.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(p){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(ne,Symbol.hasInstance,{value:function(z){return!!P.call(this,z)||this===ne&&z&&z._writableState instanceof K}})):P=function(z){return z instanceof this},ne.prototype.pipe=function(){m(this,new Q)},ne.prototype.write=function(p,z,$){var De=this._writableState,Re=!1,L=!De.objectMode&&function F(p){return b.isBuffer(p)||p instanceof _}(p);return L&&!b.isBuffer(p)&&(p=function E(p){return b.from(p)}(p)),"function"==typeof z&&($=z,z=null),L?z="buffer":z||(z=De.defaultEncoding),"function"!=typeof $&&($=T),De.ending?function j(p,z){var $=new y;m(p,$),process.nextTick(z,$)}(this,$):(L||function se(p,z,$,De){var Re;return null===$?Re=new B:"string"!=typeof $&&!z.objectMode&&(Re=new I("chunk",["string","Buffer"],$)),!Re||(m(p,Re),process.nextTick(De,Re),!1)}(this,De,p,$))&&(De.pendingcb++,Re=function pe(p,z,$,De,Re,L){if(!$){var U=function he(p,z,$){return!p.objectMode&&!1!==p.decodeStrings&&"string"==typeof z&&(z=b.from(z,$)),z}(z,De,Re);De!==U&&($=!0,Re="buffer",De=U)}var fe=z.objectMode?1:De.length;z.length+=fe;var C=z.length-1))throw new g(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ne.prototype._write=function(p,z,$){$(new M("_write()"))},ne.prototype._writev=null,ne.prototype.end=function(p,z,$){var De=this._writableState;return"function"==typeof p?($=p,p=null,z=null):"function"==typeof z&&($=z,z=null),null!=p&&this.write(p,z),De.corked&&(De.corked=1,this.uncork()),De.ending||function wr(p,z,$){z.ending=!0,cn(p,z),$&&(z.finished?process.nextTick($):p.once("finish",$)),z.ended=!0,p.writable=!1}(this,De,$),this},Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(z){!this._writableState||(this._writableState.destroyed=z)}}),ne.prototype.destroy=O.destroy,ne.prototype._undestroy=O.undestroy,ne.prototype._destroy=function(p,z){z(p)}},3872:(oe,ce,x)=>{"use strict";var v;function k(y,g,m){return g=function V(y){var g=function W(y,g){if("object"!=typeof y||null===y)return y;var m=y[Symbol.toPrimitive];if(void 0!==m){var T=m.call(y,g||"default");if("object"!=typeof T)return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(y)}(y,"string");return"symbol"==typeof g?g:String(g)}(g),g in y?Object.defineProperty(y,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[g]=m,y}var G=x(7542),b=Symbol("lastResolve"),_=Symbol("lastReject"),E=Symbol("error"),F=Symbol("ended"),O=Symbol("lastPromise"),J=Symbol("handlePromise"),X=Symbol("stream");function S(y,g){return{value:y,done:g}}function I(y){var g=y[b];if(null!==g){var m=y[X].read();null!==m&&(y[O]=null,y[b]=null,y[_]=null,g(S(m,!1)))}}function M(y){process.nextTick(I,y)}var Q=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((k(v={get stream(){return this[X]},next:function(){var g=this,m=this[E];if(null!==m)return Promise.reject(m);if(this[F])return Promise.resolve(S(void 0,!0));if(this[X].destroyed)return new Promise(function(ne,j){process.nextTick(function(){g[E]?j(g[E]):ne(S(void 0,!0))})});var K,T=this[O];if(T)K=new Promise(function q(y,g){return function(m,T){y.then(function(){g[F]?m(S(void 0,!0)):g[J](m,T)},T)}}(T,this));else{var P=this[X].read();if(null!==P)return Promise.resolve(S(P,!1));K=new Promise(this[J])}return this[O]=K,K}},Symbol.asyncIterator,function(){return this}),k(v,"return",function(){var g=this;return new Promise(function(m,T){g[X].destroy(null,function(K){K?T(K):m(S(void 0,!0))})})}),v),Q);oe.exports=function(g){var m,T=Object.create(w,(k(m={},X,{value:g,writable:!0}),k(m,b,{value:null,writable:!0}),k(m,_,{value:null,writable:!0}),k(m,E,{value:null,writable:!0}),k(m,F,{value:g._readableState.endEmitted,writable:!0}),k(m,J,{value:function(P,ne){var j=T[X].read();j?(T[O]=null,T[b]=null,T[_]=null,P(S(j,!1))):(T[b]=P,T[_]=ne)},writable:!0}),m));return T[O]=null,G(g,function(K){if(K&&"ERR_STREAM_PREMATURE_CLOSE"!==K.code){var P=T[_];return null!==P&&(T[O]=null,T[b]=null,T[_]=null,P(K)),void(T[E]=K)}var ne=T[b];null!==ne&&(T[O]=null,T[b]=null,T[_]=null,ne(S(void 0,!0))),T[F]=!0}),g.on("readable",M.bind(null,T)),T}},5019:(oe,ce,x)=>{"use strict";function v(M,q){var Q=Object.keys(M);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(M);q&&(w=w.filter(function(B){return Object.getOwnPropertyDescriptor(M,B).enumerable})),Q.push.apply(Q,w)}return Q}function k(M){for(var q=1;q0?this.tail.next=w:this.head=w,this.tail=w,++this.length}},{key:"unshift",value:function(Q){var w={data:Q,next:this.head};0===this.length&&(this.tail=w),this.head=w,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var w=this.head,B=""+w.data;w=w.next;)B+=Q+w.data;return B}},{key:"concat",value:function(Q){if(0===this.length)return O.alloc(0);for(var w=O.allocUnsafe(Q>>>0),B=this.head,y=0;B;)I(B.data,w,y),y+=B.data.length,B=B.next;return w}},{key:"consume",value:function(Q,w){var B;return Qg.length?g.length:Q;if(y+=m===g.length?g:g.slice(0,Q),0==(Q-=m)){m===g.length?(++B,this.head=w.next?w.next:this.tail=null):(this.head=w,w.data=g.slice(m));break}++B}return this.length-=B,y}},{key:"_getBuffer",value:function(Q){var w=O.allocUnsafe(Q),B=this.head,y=1;for(B.data.copy(w),Q-=B.data.length;B=B.next;){var g=B.data,m=Q>g.length?g.length:Q;if(g.copy(w,w.length-Q,0,m),0==(Q-=m)){m===g.length?(++y,this.head=B.next?B.next:this.tail=null):(this.head=B,B.data=g.slice(m));break}++y}return this.length-=y,w}},{key:S,value:function(Q,w){return X(this,k(k({},w),{},{depth:0,customInspect:!1}))}}]),M}()},1920:oe=>{"use strict";function x(G,b){V(G,b),v(G)}function v(G){G._writableState&&!G._writableState.emitClose||G._readableState&&!G._readableState.emitClose||G.emit("close")}function V(G,b){G.emit("error",b)}oe.exports={destroy:function ce(G,b){var _=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(b?b(G):G&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(V,this,G)):process.nextTick(V,this,G)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(G||null,function(O){!b&&O?_._writableState?_._writableState.errorEmitted?process.nextTick(v,_):(_._writableState.errorEmitted=!0,process.nextTick(x,_,O)):process.nextTick(x,_,O):b?(process.nextTick(v,_),b(O)):process.nextTick(v,_)}),this)},undestroy:function k(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function W(G,b){var _=G._readableState,E=G._writableState;_&&_.autoDestroy||E&&E.autoDestroy?G.destroy(b):G.emit("error",b)}}},7542:(oe,ce,x)=>{"use strict";var v=x(891).q.ERR_STREAM_PREMATURE_CLOSE;function V(){}oe.exports=function G(b,_,E){if("function"==typeof _)return G(b,null,_);_||(_={}),E=function k(b){var _=!1;return function(){if(!_){_=!0;for(var E=arguments.length,F=new Array(E),O=0;O{oe.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(oe,ce,x)=>{"use strict";var v,V=x(891).q,W=V.ERR_MISSING_ARGS,G=V.ERR_STREAM_DESTROYED;function b(S){if(S)throw S}function E(S,I,M,q){q=function k(S){var I=!1;return function(){I||(I=!0,S.apply(void 0,arguments))}}(q);var Q=!1;S.on("close",function(){Q=!0}),void 0===v&&(v=x(7542)),v(S,{readable:I,writable:M},function(B){if(B)return q(B);Q=!0,q()});var w=!1;return function(B){if(!Q&&!w){if(w=!0,function _(S){return S.setHeader&&"function"==typeof S.abort}(S))return S.abort();if("function"==typeof S.destroy)return S.destroy();q(B||new G("pipe"))}}}function F(S){S()}function O(S,I){return S.pipe(I)}function J(S){return S.length&&"function"==typeof S[S.length-1]?S.pop():b}oe.exports=function X(){for(var S=arguments.length,I=new Array(S),M=0;M0,function(T){Q||(Q=T),T&&w.forEach(F),!g&&(w.forEach(F),q(Q))})});return I.reduce(O)}},7102:(oe,ce,x)=>{"use strict";var v=x(891).q.ERR_INVALID_OPT_VALUE;oe.exports={getHighWaterMark:function V(W,G,b,_){var E=function k(W,G,b){return null!=W.highWaterMark?W.highWaterMark:G?W[b]:null}(G,_,b);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new v(_?b:"highWaterMark",E);return Math.floor(E)}return W.objectMode?16:16384}}},4970:(oe,ce,x)=>{oe.exports=x(9069).EventEmitter},3502:(oe,ce,x)=>{var v=x(3172),k=v.Buffer;function V(G,b){for(var _ in G)b[_]=G[_]}function W(G,b,_){return k(G,b,_)}k.from&&k.alloc&&k.allocUnsafe&&k.allocUnsafeSlow?oe.exports=v:(V(v,ce),ce.Buffer=W),W.prototype=Object.create(k.prototype),V(k,W),W.from=function(G,b,_){if("number"==typeof G)throw new TypeError("Argument must not be a number");return k(G,b,_)},W.alloc=function(G,b,_){if("number"!=typeof G)throw new TypeError("Argument must be a number");var E=k(G);return void 0!==b?"string"==typeof _?E.fill(b,_):E.fill(b):E.fill(0),E},W.allocUnsafe=function(G){if("number"!=typeof G)throw new TypeError("Argument must be a number");return k(G)},W.allocUnsafeSlow=function(G){if("number"!=typeof G)throw new TypeError("Argument must be a number");return v.SlowBuffer(G)}},1503:(oe,ce,x)=>{!function(v){v.parser=function(N,p){return new V(N,p)},v.SAXParser=V,v.SAXStream=O,v.createStream=function F(N,p){return new O(N,p)},v.MAX_BUFFER_LENGTH=65536;var _,k=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function V(N,p){if(!(this instanceof V))return new V(N,p);var z=this;(function G(N){for(var p=0,z=k.length;p"===$?(se(p,"onsgmldeclaration",p.sgmlDecl),p.sgmlDecl="",p.state=P.TEXT):(g($)&&(p.state=P.SGML_DECL_QUOTED),p.sgmlDecl+=$);continue;case P.SGML_DECL_QUOTED:$===p.q&&(p.state=P.SGML_DECL,p.q=""),p.sgmlDecl+=$;continue;case P.DOCTYPE:">"===$?(p.state=P.TEXT,se(p,"ondoctype",p.doctype),p.doctype=!0):(p.doctype+=$,"["===$?p.state=P.DOCTYPE_DTD:g($)&&(p.state=P.DOCTYPE_QUOTED,p.q=$));continue;case P.DOCTYPE_QUOTED:p.doctype+=$,$===p.q&&(p.q="",p.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:p.doctype+=$,"]"===$?p.state=P.DOCTYPE:g($)&&(p.state=P.DOCTYPE_DTD_QUOTED,p.q=$);continue;case P.DOCTYPE_DTD_QUOTED:p.doctype+=$,$===p.q&&(p.state=P.DOCTYPE_DTD,p.q="");continue;case P.COMMENT:"-"===$?p.state=P.COMMENT_ENDING:p.comment+=$;continue;case P.COMMENT_ENDING:"-"===$?(p.state=P.COMMENT_ENDED,p.comment=pe(p.opt,p.comment),p.comment&&se(p,"oncomment",p.comment),p.comment=""):(p.comment+="-"+$,p.state=P.COMMENT);continue;case P.COMMENT_ENDED:">"!==$?(Ae(p,"Malformed comment"),p.comment+="--"+$,p.state=P.COMMENT):p.state=P.TEXT;continue;case P.CDATA:"]"===$?p.state=P.CDATA_ENDING:p.cdata+=$;continue;case P.CDATA_ENDING:"]"===$?p.state=P.CDATA_ENDING_2:(p.cdata+="]"+$,p.state=P.CDATA);continue;case P.CDATA_ENDING_2:">"===$?(p.cdata&&se(p,"oncdata",p.cdata),se(p,"onclosecdata"),p.cdata="",p.state=P.TEXT):"]"===$?p.cdata+="]":(p.cdata+="]]"+$,p.state=P.CDATA);continue;case P.PROC_INST:"?"===$?p.state=P.PROC_INST_ENDING:y($)?p.state=P.PROC_INST_BODY:p.procInstName+=$;continue;case P.PROC_INST_BODY:if(!p.procInstBody&&y($))continue;"?"===$?p.state=P.PROC_INST_ENDING:p.procInstBody+=$;continue;case P.PROC_INST_ENDING:">"===$?(se(p,"onprocessinginstruction",{name:p.procInstName,body:p.procInstBody}),p.procInstName=p.procInstBody="",p.state=P.TEXT):(p.procInstBody+="?"+$,p.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:T(Q,$)?p.tagName+=$:(Ct(p),">"===$?Ze(p):"/"===$?p.state=P.OPEN_TAG_SLASH:(y($)||Ae(p,"Invalid character in tag name"),p.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:">"===$?(Ze(p,!0),Xe(p)):(Ae(p,"Forward-slash in opening tag not followed by >"),p.state=P.ATTRIB);continue;case P.ATTRIB:if(y($))continue;">"===$?Ze(p):"/"===$?p.state=P.OPEN_TAG_SLASH:T(q,$)?(p.attribName=$,p.attribValue="",p.state=P.ATTRIB_NAME):Ae(p,"Invalid attribute name");continue;case P.ATTRIB_NAME:"="===$?p.state=P.ATTRIB_VALUE:">"===$?(Ae(p,"Attribute without value"),p.attribValue=p.attribName,ln(p),Ze(p)):y($)?p.state=P.ATTRIB_NAME_SAW_WHITE:T(Q,$)?p.attribName+=$:Ae(p,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if("="===$)p.state=P.ATTRIB_VALUE;else{if(y($))continue;Ae(p,"Attribute without value"),p.tag.attributes[p.attribName]="",p.attribValue="",se(p,"onattribute",{name:p.attribName,value:""}),p.attribName="",">"===$?Ze(p):T(q,$)?(p.attribName=$,p.state=P.ATTRIB_NAME):(Ae(p,"Invalid attribute name"),p.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(y($))continue;g($)?(p.q=$,p.state=P.ATTRIB_VALUE_QUOTED):(Ae(p,"Unquoted attribute value"),p.state=P.ATTRIB_VALUE_UNQUOTED,p.attribValue=$);continue;case P.ATTRIB_VALUE_QUOTED:if($!==p.q){"&"===$?p.state=P.ATTRIB_VALUE_ENTITY_Q:p.attribValue+=$;continue}ln(p),p.q="",p.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:y($)?p.state=P.ATTRIB:">"===$?Ze(p):"/"===$?p.state=P.OPEN_TAG_SLASH:T(q,$)?(Ae(p,"No whitespace between attributes"),p.attribName=$,p.attribValue="",p.state=P.ATTRIB_NAME):Ae(p,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!m($)){"&"===$?p.state=P.ATTRIB_VALUE_ENTITY_U:p.attribValue+=$;continue}ln(p),">"===$?Ze(p):p.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(p.tagName)">"===$?Xe(p):T(Q,$)?p.tagName+=$:p.script?(p.script+=""===$?Xe(p):Ae(p,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var L,U;switch(p.state){case P.TEXT_ENTITY:L=P.TEXT,U="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:L=P.ATTRIB_VALUE_QUOTED,U="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:L=P.ATTRIB_VALUE_UNQUOTED,U="attribValue"}if(";"===$)if(p.opt.unparsedEntities){var fe=pt(p);p.entity="",p.state=L,p.write(fe)}else p[U]+=pt(p),p.entity="",p.state=L;else T(p.entity.length?B:w,$)?p.entity+=$:(Ae(p,"Invalid character in entity name"),p[U]+="&"+p.entity+$,p.entity="",p.state=L);continue;default:throw new Error(p,"Unknown state: "+p.state)}return p.position>=p.bufferCheckPosition&&function W(N){for(var p=Math.max(v.MAX_BUFFER_LENGTH,10),z=0,$=0,De=k.length;$p)switch(k[$]){case"textNode":he(N);break;case"cdata":se(N,"oncdata",N.cdata),N.cdata="";break;case"script":se(N,"onscript",N.script),N.script="";break;default:Le(N,"Max buffer length exceeded: "+k[$])}z=Math.max(z,Re)}N.bufferCheckPosition=v.MAX_BUFFER_LENGTH-z+N.position}(p),p},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function b(N){he(N),""!==N.cdata&&(se(N,"oncdata",N.cdata),N.cdata=""),""!==N.script&&(se(N,"onscript",N.script),N.script="")}(this)}};try{_=x(295).Stream}catch(N){_=function(){}}_||(_=function(){});var E=v.EVENTS.filter(function(N){return"error"!==N&&"end"!==N});function O(N,p){if(!(this instanceof O))return new O(N,p);_.apply(this),this._parser=new V(N,p),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function($){z.emit("error",$),z._parser.error=null},this._decoder=null,E.forEach(function($){Object.defineProperty(z,"on"+$,{get:function(){return z._parser["on"+$]},set:function(De){if(!De)return z.removeAllListeners($),z._parser["on"+$]=De,De;z.on($,De)},enumerable:!0,configurable:!1})})}(O.prototype=Object.create(_.prototype,{constructor:{value:O}})).write=function(N){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(N)){if(!this._decoder){var p=x(3054).s;this._decoder=new p("utf8")}N=this._decoder.write(N)}return this._parser.write(N.toString()),this.emit("data",N),!0},O.prototype.end=function(N){return N&&N.length&&this.write(N),this._parser.end(),!0},O.prototype.on=function(N,p){var z=this;return!z._parser["on"+N]&&-1!==E.indexOf(N)&&(z._parser["on"+N]=function(){var $=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,N),z.emit.apply(z,$)}),_.prototype.on.call(z,N,p)};var S="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",M={xml:S,xmlns:I},q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,w=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,B=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(N){return" "===N||"\n"===N||"\r"===N||"\t"===N}function g(N){return'"'===N||"'"===N}function m(N){return">"===N||y(N)}function T(N,p){return N.test(p)}function K(N,p){return!T(N,p)}var N,p,z,P=0;for(var ne in v.STATE={BEGIN:P++,BEGIN_WHITESPACE:P++,TEXT:P++,TEXT_ENTITY:P++,OPEN_WAKA:P++,SGML_DECL:P++,SGML_DECL_QUOTED:P++,DOCTYPE:P++,DOCTYPE_QUOTED:P++,DOCTYPE_DTD:P++,DOCTYPE_DTD_QUOTED:P++,COMMENT_STARTING:P++,COMMENT:P++,COMMENT_ENDING:P++,COMMENT_ENDED:P++,CDATA:P++,CDATA_ENDING:P++,CDATA_ENDING_2:P++,PROC_INST:P++,PROC_INST_BODY:P++,PROC_INST_ENDING:P++,OPEN_TAG:P++,OPEN_TAG_SLASH:P++,ATTRIB:P++,ATTRIB_NAME:P++,ATTRIB_NAME_SAW_WHITE:P++,ATTRIB_VALUE:P++,ATTRIB_VALUE_QUOTED:P++,ATTRIB_VALUE_CLOSED:P++,ATTRIB_VALUE_UNQUOTED:P++,ATTRIB_VALUE_ENTITY_Q:P++,ATTRIB_VALUE_ENTITY_U:P++,CLOSE_TAG:P++,CLOSE_TAG_SAW_WHITE:P++,SCRIPT:P++,SCRIPT_ENDING:P++},v.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(v.ENTITIES).forEach(function(N){var p=v.ENTITIES[N],z="number"==typeof p?String.fromCharCode(p):p;v.ENTITIES[N]=z}),v.STATE)v.STATE[v.STATE[ne]]=ne;function j(N,p,z){N[p]&&N[p](z)}function se(N,p,z){N.textNode&&he(N),j(N,p,z)}function he(N){N.textNode=pe(N.opt,N.textNode),N.textNode&&j(N,"ontext",N.textNode),N.textNode=""}function pe(N,p){return N.trim&&(p=p.trim()),N.normalize&&(p=p.replace(/\s+/g," ")),p}function Le(N,p){return he(N),N.trackPosition&&(p+="\nLine: "+N.line+"\nColumn: "+N.column+"\nChar: "+N.c),p=new Error(p),N.error=p,j(N,"onerror",p),N}function Je(N){return N.sawRoot&&!N.closedRoot&&Ae(N,"Unclosed root tag"),N.state!==P.BEGIN&&N.state!==P.BEGIN_WHITESPACE&&N.state!==P.TEXT&&Le(N,"Unexpected end"),he(N),N.c="",N.closed=!0,j(N,"onend"),V.call(N,N.strict,N.opt),N}function Ae(N,p){if("object"!=typeof N||!(N instanceof V))throw new Error("bad call to strictFail");N.strict&&Le(N,p)}function Ct(N){N.strict||(N.tagName=N.tagName[N.looseCase]());var p=N.tags[N.tags.length-1]||N,z=N.tag={name:N.tagName,attributes:{}};N.opt.xmlns&&(z.ns=p.ns),N.attribList.length=0,se(N,"onopentagstart",z)}function _e(N,p){var $=N.indexOf(":")<0?["",N]:N.split(":"),De=$[0],Re=$[1];return p&&"xmlns"===N&&(De="xmlns",Re=""),{prefix:De,local:Re}}function ln(N){if(N.strict||(N.attribName=N.attribName[N.looseCase]()),-1!==N.attribList.indexOf(N.attribName)||N.tag.attributes.hasOwnProperty(N.attribName))N.attribName=N.attribValue="";else{if(N.opt.xmlns){var p=_e(N.attribName,!0),$=p.local;if("xmlns"===p.prefix)if("xml"===$&&N.attribValue!==S)Ae(N,"xml: prefix must be bound to "+S+"\nActual: "+N.attribValue);else if("xmlns"===$&&N.attribValue!==I)Ae(N,"xmlns: prefix must be bound to "+I+"\nActual: "+N.attribValue);else{var De=N.tag,Re=N.tags[N.tags.length-1]||N;De.ns===Re.ns&&(De.ns=Object.create(Re.ns)),De.ns[$]=N.attribValue}N.attribList.push([N.attribName,N.attribValue])}else N.tag.attributes[N.attribName]=N.attribValue,se(N,"onattribute",{name:N.attribName,value:N.attribValue});N.attribName=N.attribValue=""}}function Ze(N,p){if(N.opt.xmlns){var z=N.tag,$=_e(N.tagName);z.prefix=$.prefix,z.local=$.local,z.uri=z.ns[$.prefix]||"",z.prefix&&!z.uri&&(Ae(N,"Unbound namespace prefix: "+JSON.stringify(N.tagName)),z.uri=$.prefix),z.ns&&(N.tags[N.tags.length-1]||N).ns!==z.ns&&Object.keys(z.ns).forEach(function(ve){se(N,"onopennamespace",{prefix:ve,uri:z.ns[ve]})});for(var Re=0,L=N.attribList.length;Re",N.tagName="",void(N.state=P.SCRIPT);se(N,"onscript",N.script),N.script=""}var p=N.tags.length,z=N.tagName;N.strict||(z=z[N.looseCase]());for(var $=z;p--&&N.tags[p].name!==$;)Ae(N,"Unexpected close tag");if(p<0)return Ae(N,"Unmatched closing tag: "+N.tagName),N.textNode+="",void(N.state=P.TEXT);N.tagName=z;for(var Re=N.tags.length;Re-- >p;){var L=N.tag=N.tags.pop();N.tagName=N.tag.name,se(N,"onclosetag",N.tagName);var U={};for(var fe in L.ns)U[fe]=L.ns[fe];N.opt.xmlns&&L.ns!==(N.tags[N.tags.length-1]||N).ns&&Object.keys(L.ns).forEach(function(d){se(N,"onclosenamespace",{prefix:d,uri:L.ns[d]})})}0===p&&(N.closedRoot=!0),N.tagName=N.attribValue=N.attribName="",N.attribList.length=0,N.state=P.TEXT}function pt(N){var $,p=N.entity,z=p.toLowerCase(),De="";return N.ENTITIES[p]?N.ENTITIES[p]:N.ENTITIES[z]?N.ENTITIES[z]:("#"===(p=z).charAt(0)&&("x"===p.charAt(1)?(p=p.slice(2),De=($=parseInt(p,16)).toString(16)):(p=p.slice(1),De=($=parseInt(p,10)).toString(10))),p=p.replace(/^0+/,""),isNaN($)||De.toLowerCase()!==p?(Ae(N,"Invalid character entity"),"&"+N.entity+";"):String.fromCodePoint($))}function it(N,p){"<"===p?(N.state=P.OPEN_WAKA,N.startTagPosition=N.position):y(p)||(Ae(N,"Non-whitespace before first tag."),N.textNode=p,N.state=P.TEXT)}function cn(N,p){var z="";return p1114111||p(d)!==d)throw RangeError("Invalid code point: "+d);d<=65535?De.push(d):De.push(55296+((d-=65536)>>10),d%1024+56320),(U+1===fe||De.length>$)&&(C+=N.apply(null,De),De.length=0)}return C},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z)}(ce)},6563:function(){!function(oe,ce){"use strict";if(!oe.setImmediate){var W,x=1,v={},k=!1,V=oe.document,M=Object.getPrototypeOf&&Object.getPrototypeOf(oe);M=M&&M.setTimeout?M:oe,"[object process]"==={}.toString.call(oe.process)?function F(){W=function(q){process.nextTick(function(){E(q)})}}():function O(){if(oe.postMessage&&!oe.importScripts){var q=!0,Q=oe.onmessage;return oe.onmessage=function(){q=!1},oe.postMessage("","*"),oe.onmessage=Q,q}}()?function J(){var q="setImmediate$"+Math.random()+"$",Q=function(w){w.source===oe&&"string"==typeof w.data&&0===w.data.indexOf(q)&&E(+w.data.slice(q.length))};oe.addEventListener?oe.addEventListener("message",Q,!1):oe.attachEvent("onmessage",Q),W=function(w){oe.postMessage(q+w,"*")}}():oe.MessageChannel?function X(){var q=new MessageChannel;q.port1.onmessage=function(Q){E(Q.data)},W=function(Q){q.port2.postMessage(Q)}}():V&&"onreadystatechange"in V.createElement("script")?function S(){var q=V.documentElement;W=function(Q){var w=V.createElement("script");w.onreadystatechange=function(){E(Q),w.onreadystatechange=null,q.removeChild(w),w=null},q.appendChild(w)}}():function I(){W=function(q){setTimeout(E,0,q)}}(),M.setImmediate=function G(q){"function"!=typeof q&&(q=new Function(""+q));for(var Q=new Array(arguments.length-1),w=0;w{oe.exports=V;var v=x(9069).EventEmitter;function V(){v.call(this)}x(3894)(V,v),V.Readable=x(3154),V.Writable=x(520),V.Duplex=x(1339),V.Transform=x(6025),V.PassThrough=x(6071),V.finished=x(7542),V.pipeline=x(954),V.Stream=V,V.prototype.pipe=function(W,G){var b=this;function _(I){W.writable&&!1===W.write(I)&&b.pause&&b.pause()}function E(){b.readable&&b.resume&&b.resume()}b.on("data",_),W.on("drain",E),!W._isStdio&&(!G||!1!==G.end)&&(b.on("end",O),b.on("close",J));var F=!1;function O(){F||(F=!0,W.end())}function J(){F||(F=!0,"function"==typeof W.destroy&&W.destroy())}function X(I){if(S(),0===v.listenerCount(this,"error"))throw I}function S(){b.removeListener("data",_),W.removeListener("drain",E),b.removeListener("end",O),b.removeListener("close",J),b.removeListener("error",X),W.removeListener("error",X),b.removeListener("end",S),b.removeListener("close",S),W.removeListener("close",S)}return b.on("error",X),W.on("error",X),b.on("end",S),b.on("close",S),W.on("close",S),W.emit("pipe",b),W}},3054:(oe,ce,x)=>{"use strict";var v=x(3502).Buffer,k=v.isEncoding||function(w){switch((w=""+w)&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function G(w){var B;switch(this.encoding=function W(w){var B=function V(w){if(!w)return"utf8";for(var B;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(B)return;w=(""+w).toLowerCase(),B=!0}}(w);if("string"!=typeof B&&(v.isEncoding===k||!k(w)))throw new Error("Unknown encoding: "+w);return B||w}(w),this.encoding){case"utf16le":this.text=X,this.end=S,B=4;break;case"utf8":this.fillLast=F,B=4;break;case"base64":this.text=I,this.end=M,B=3;break;default:return this.write=q,void(this.end=Q)}this.lastNeed=0,this.lastTotal=0,this.lastChar=v.allocUnsafe(B)}function b(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function F(w){var B=this.lastTotal-this.lastNeed,y=function E(w,B,y){if(128!=(192&B[0]))return w.lastNeed=0,"\ufffd";if(w.lastNeed>1&&B.length>1){if(128!=(192&B[1]))return w.lastNeed=1,"\ufffd";if(w.lastNeed>2&&B.length>2&&128!=(192&B[2]))return w.lastNeed=2,"\ufffd"}}(this,w);return void 0!==y?y:this.lastNeed<=w.length?(w.copy(this.lastChar,B,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,B,0,w.length),void(this.lastNeed-=w.length))}function X(w,B){if((w.length-B)%2==0){var y=w.toString("utf16le",B);if(y){var g=y.charCodeAt(y.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",B,w.length-1)}function S(w){var B=w&&w.length?this.write(w):"";return this.lastNeed?B+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):B}function I(w,B){var y=(w.length-B)%3;return 0===y?w.toString("base64",B):(this.lastNeed=3-y,this.lastTotal=3,1===y?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",B,w.length-y))}function M(w){var B=w&&w.length?this.write(w):"";return this.lastNeed?B+this.lastChar.toString("base64",0,3-this.lastNeed):B}function q(w){return w.toString(this.encoding)}function Q(w){return w&&w.length?this.write(w):""}ce.s=G,G.prototype.write=function(w){if(0===w.length)return"";var B,y;if(this.lastNeed){if(void 0===(B=this.fillLast(w)))return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y=0?(m>0&&(w.lastNeed=m-1),m):--g=0?(m>0&&(w.lastNeed=m-2),m):--g=0?(m>0&&(2===m?m=0:w.lastNeed=m-3),m):0}(this,w,B);if(!this.lastNeed)return w.toString("utf8",B);this.lastTotal=y;var g=w.length-(y-this.lastNeed);return w.copy(this.lastChar,0,g),w.toString("utf8",B,g)},G.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},2944:function(oe,ce,x){var v="undefined"!=typeof global&&global||"undefined"!=typeof self&&self||window,k=Function.prototype.apply;function V(W,G){this._id=W,this._clearFn=G}ce.setTimeout=function(){return new V(k.call(setTimeout,v,arguments),clearTimeout)},ce.setInterval=function(){return new V(k.call(setInterval,v,arguments),clearInterval)},ce.clearTimeout=ce.clearInterval=function(W){W&&W.close()},V.prototype.unref=V.prototype.ref=function(){},V.prototype.close=function(){this._clearFn.call(v,this._id)},ce.enroll=function(W,G){clearTimeout(W._idleTimeoutId),W._idleTimeout=G},ce.unenroll=function(W){clearTimeout(W._idleTimeoutId),W._idleTimeout=-1},ce._unrefActive=ce.active=function(W){clearTimeout(W._idleTimeoutId);var G=W._idleTimeout;G>=0&&(W._idleTimeoutId=setTimeout(function(){W._onTimeout&&W._onTimeout()},G))},x(6563),ce.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,ce.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate},3532:oe=>{function x(v){try{if(!global.localStorage)return!1}catch(V){return!1}var k=global.localStorage[v];return null!=k&&"true"===String(k).toLowerCase()}oe.exports=function ce(v,k){if(x("noDeprecation"))return v;var V=!1;return function W(){if(!V){if(x("throwDeprecation"))throw new Error(k);x("traceDeprecation")?console.trace(k):console.warn(k),V=!0}return v.apply(this,arguments)}}},4922:function(oe,ce){(function(){"use strict";ce.stripBOM=function(x){return"\ufeff"===x[0]?x.substring(1):x}}).call(this)},4032:function(oe,ce,x){(function(){"use strict";var v,k,V,W,G,b={}.hasOwnProperty;v=x(7904),k=x(7067).defaults,W=function(_){return"string"==typeof _&&(_.indexOf("&")>=0||_.indexOf(">")>=0||_.indexOf("<")>=0)},G=function(_){return""},V=function(_){return _.replace("]]>","]]]]>")},ce.Builder=function(){function _(E){var F,O;for(F in this.options={},O=k[.2])!b.call(O,F)||(this.options[F]=O[F]);for(F in E)!b.call(E,F)||(this.options[F]=E[F])}return _.prototype.buildObject=function(E){var F,O,J,X,S,I;return F=this.options.attrkey,O=this.options.charkey,1===Object.keys(E).length&&this.options.rootName===k[.2].rootName?E=E[S=Object.keys(E)[0]]:S=this.options.rootName,I=this,J=function(M,q){var Q,w,B,y,g;if("object"!=typeof q)I.options.cdata&&W(q)?M.raw(G(q)):M.txt(q);else if(Array.isArray(q)){for(y in q)if(b.call(q,y))for(g in w=q[y])B=w[g],M=J(M.ele(g),B).up()}else for(g in q)if(b.call(q,g))if(w=q[g],g===F){if("object"==typeof w)for(Q in w)M=M.att(Q,w[Q])}else if(g===O)M=I.options.cdata&&W(w)?M.raw(G(w)):M.txt(w);else if(Array.isArray(w))for(y in w)!b.call(w,y)||(M="string"==typeof(B=w[y])?I.options.cdata&&W(B)?M.ele(g).raw(G(B)).up():M.ele(g,B).up():J(M.ele(g),B).up());else"object"==typeof w?M=J(M.ele(g),w).up():"string"==typeof w&&I.options.cdata&&W(w)?M=M.ele(g).raw(G(w)).up():(null==w&&(w=""),M=M.ele(g,w.toString()).up());return M},X=v.create(S,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),J(X,E).end(this.options.renderOpts)},_}()}).call(this)},7067:function(oe,ce){(function(){ce.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},2238:function(oe,ce,x){(function(){"use strict";var v,k,V,W,G,b,_,E,F=function(X,S){return function(){return X.apply(S,arguments)}},J={}.hasOwnProperty;_=x(1503),V=x(9069),v=x(4922),b=x(3749),E=x(2944).setImmediate,k=x(7067).defaults,W=function(X){return"object"==typeof X&&null!=X&&0===Object.keys(X).length},G=function(X,S,I){var M,q;for(M=0,q=X.length;M0&&(m[w.options.childkey]=K),K=m;return Q.length>0?w.assignOrPush(j,T,K):(w.options.explicitRoot&&(ne=K,(K=Object.create(null))[T]=ne),w.resultObject=K,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),q=function(w){return function(B){var y,g;if(g=Q[Q.length-1])return g[M]+=B,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||""!==B.replace(/\\n/g,"").trim())&&(g[w.options.childkey]=g[w.options.childkey]||[],(y={"#name":"__text__"})[M]=B,w.options.normalize&&(y[M]=y[M].replace(/\s{2,}/g," ").trim()),g[w.options.childkey].push(y)),g}}(this),this.saxParser.ontext=q,this.saxParser.oncdata=function(B){var y;if(y=q(B))return y.cdata=!0}},S.prototype.parseString=function(I,M){var q;null!=M&&"function"==typeof M&&(this.on("end",function(Q){return this.reset(),M(null,Q)}),this.on("error",function(Q){return this.reset(),M(Q)}));try{return""===(I=I.toString()).trim()?(this.emit("end",null),!0):(I=v.stripBOM(I),this.options.async?(this.remaining=I,E(this.processAsync),this.saxParser):this.saxParser.write(I).close())}catch(Q){if(q=Q,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",q),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw q}},S.prototype.parseStringPromise=function(I){return new Promise((M=this,function(q,Q){return M.parseString(I,function(w,B){return w?Q(w):q(B)})}));var M},S}(V),ce.parseString=function(X,S,I){var M,q;return null!=I?("function"==typeof I&&(M=I),"object"==typeof S&&(q=S)):("function"==typeof S&&(M=S),q={}),new ce.Parser(q).parseString(X,M)},ce.parseStringPromise=function(X,S){var I;return"object"==typeof S&&(I=S),new ce.Parser(I).parseStringPromise(X)}}).call(this)},3749:function(oe,ce){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),ce.normalize=function(v){return v.toLowerCase()},ce.firstCharLowerCase=function(v){return v.charAt(0).toLowerCase()+v.slice(1)},ce.stripPrefix=function(v){return v.replace(x,"")},ce.parseNumbers=function(v){return isNaN(v)||(v=v%1==0?parseInt(v,10):parseFloat(v)),v},ce.parseBooleans=function(v){return/^(?:true|false)$/i.test(v)&&(v="true"===v.toLowerCase()),v}}).call(this)},5452:function(oe,ce,x){(function(){"use strict";var v,k,V,W,b={}.hasOwnProperty;k=x(7067),v=x(4032),V=x(2238),W=x(3749),ce.defaults=k.defaults,ce.processors=W,ce.ValidationError=function(_){function E(F){this.message=F}return function(_,E){for(var F in E)b.call(E,F)&&(_[F]=E[F]);function O(){this.constructor=_}O.prototype=E.prototype,_.prototype=new O,_.__super__=E.prototype}(E,Error),E}(),ce.Builder=v.Builder,ce.Parser=V.Parser,ce.parseString=V.parseString,ce.parseStringPromise=V.parseStringPromise}).call(this)},599:function(oe){(function(){oe.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},2269:function(oe){(function(){oe.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},3452:function(oe){(function(){var ce,x,v,k,V,W,G,b=[].slice,_={}.hasOwnProperty;ce=function(){var E,F,O,J,X,S;if(S=arguments[0],X=2<=arguments.length?b.call(arguments,1):[],V(Object.assign))Object.assign.apply(null,arguments);else for(E=0,O=X.length;E":"attribute: {"+G+"}, parent: <"+this.parent.name+">"},W.prototype.isEqualNode=function(G){return!(G.namespaceURI!==this.namespaceURI||G.prefix!==this.prefix||G.localName!==this.localName||G.value!==this.value)},W}()}).call(this)},1361:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;v=x(2269),V=x(2182),oe.exports=function(b){function _(E,F){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(F)}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.clone=function(){return Object.create(this)},_.prototype.toString=function(E){return this.options.writer.cdata(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},2182:function(oe,ce,x){(function(){var k,W={}.hasOwnProperty;k=x(8563),oe.exports=function(G){function b(_){b.__super__.constructor.call(this,_),this.value=""}return function(G,b){for(var _ in b)W.call(b,_)&&(G[_]=b[_]);function E(){this.constructor=G}E.prototype=b.prototype,G.prototype=new E,G.__super__=b.prototype}(b,G),Object.defineProperty(b.prototype,"data",{get:function(){return this.value},set:function(_){return this.value=_||""}}),Object.defineProperty(b.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(b.prototype,"textContent",{get:function(){return this.value},set:function(_){return this.value=_||""}}),b.prototype.clone=function(){return Object.create(this)},b.prototype.substringData=function(_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendData=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.insertData=function(_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.deleteData=function(_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.replaceData=function(_,E,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(_){return!(!b.__super__.isEqualNode.apply(this,arguments).isEqualNode(_)||_.data!==this.data)},b}(k)}).call(this)},2516:function(oe,ce,x){(function(){var v,k,G={}.hasOwnProperty;v=x(2269),k=x(2182),oe.exports=function(b){function _(E,F){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(F)}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.clone=function(){return Object.create(this)},_.prototype.toString=function(E){return this.options.writer.comment(this,this.options.writer.filterOptions(E))},_}(k)}).call(this)},5806:function(oe,ce,x){(function(){var k,V;k=x(9276),V=x(3735),oe.exports=function(){function W(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new k,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(W.prototype,"parameterNames",{get:function(){return new V(Object.keys(this.defaultParams))}}),W.prototype.getParameter=function(G){return this.params.hasOwnProperty(G)?this.params[G]:null},W.prototype.canSetParameter=function(G,b){return!0},W.prototype.setParameter=function(G,b){return null!=b?this.params[G]=b:delete this.params[G]},W}()}).call(this)},9276:function(oe){(function(){oe.exports=function(){function x(){}return x.prototype.handleError=function(v){throw new Error(v)},x}()}).call(this)},9906:function(oe){(function(){oe.exports=function(){function x(){}return x.prototype.hasFeature=function(v,k){return!0},x.prototype.createDocumentType=function(v,k,V){throw new Error("This DOM method is not implemented.")},x.prototype.createDocument=function(v,k,V){throw new Error("This DOM method is not implemented.")},x.prototype.createHTMLDocument=function(v){throw new Error("This DOM method is not implemented.")},x.prototype.getFeature=function(v,k){throw new Error("This DOM method is not implemented.")},x}()}).call(this)},3735:function(oe){(function(){oe.exports=function(){function x(v){this.arr=v||[]}return Object.defineProperty(x.prototype,"length",{get:function(){return this.arr.length}}),x.prototype.item=function(v){return this.arr[v]||null},x.prototype.contains=function(v){return-1!==this.arr.indexOf(v)},x}()}).call(this)},7274:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E,F,O,J,X,S){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==O)throw new Error("Missing DTD attribute name. "+this.debugInfo(F));if(!J)throw new Error("Missing DTD attribute type. "+this.debugInfo(F));if(!X)throw new Error("Missing DTD attribute default. "+this.debugInfo(F));if(0!==X.indexOf("#")&&(X="#"+X),!X.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(F));if(S&&!X.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(F));this.elementName=this.stringify.name(F),this.type=v.AttributeDeclaration,this.attributeName=this.stringify.name(O),this.attributeType=this.stringify.dtdAttType(J),S&&(this.defaultValue=this.stringify.dtdAttDefault(S)),this.defaultValueType=X}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.toString=function(E){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},2068:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E,F,O){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing DTD element name. "+this.debugInfo());O||(O="(#PCDATA)"),Array.isArray(O)&&(O="("+O.join(",")+")"),this.name=this.stringify.name(F),this.type=v.ElementDeclaration,this.value=this.stringify.dtdElementValue(O)}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.toString=function(E){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},8349:function(oe,ce,x){(function(){var v,V,W,b={}.hasOwnProperty;W=x(3452).isObject,V=x(8563),v=x(2269),oe.exports=function(_){function E(F,O,J,X){if(E.__super__.constructor.call(this,F),null==J)throw new Error("Missing DTD entity name. "+this.debugInfo(J));if(null==X)throw new Error("Missing DTD entity value. "+this.debugInfo(J));if(this.pe=!!O,this.name=this.stringify.name(J),this.type=v.EntityDeclaration,W(X)){if(!X.pubID&&!X.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(J));if(X.pubID&&!X.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(J));if(this.internal=!1,null!=X.pubID&&(this.pubID=this.stringify.dtdPubID(X.pubID)),null!=X.sysID&&(this.sysID=this.stringify.dtdSysID(X.sysID)),null!=X.nData&&(this.nData=this.stringify.dtdNData(X.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(J))}else this.value=this.stringify.dtdEntityValue(X),this.internal=!0}return function(_,E){for(var F in E)b.call(E,F)&&(_[F]=E[F]);function O(){this.constructor=_}O.prototype=E.prototype,_.prototype=new O,_.__super__=E.prototype}(E,_),Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(E.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(E.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"xmlVersion",{get:function(){return null}}),E.prototype.toString=function(F){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(F))},E}(V)}).call(this)},3087:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E,F,O){if(_.__super__.constructor.call(this,E),null==F)throw new Error("Missing DTD notation name. "+this.debugInfo(F));if(!O.pubID&&!O.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(F));this.name=this.stringify.name(F),this.type=v.NotationDeclaration,null!=O.pubID&&(this.pubID=this.stringify.dtdPubID(O.pubID)),null!=O.sysID&&(this.sysID=this.stringify.dtdSysID(O.sysID))}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),Object.defineProperty(_.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(_.prototype,"systemId",{get:function(){return this.sysID}}),_.prototype.toString=function(E){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(E))},_}(V)}).call(this)},4789:function(oe,ce,x){(function(){var v,V,W,b={}.hasOwnProperty;W=x(3452).isObject,V=x(8563),v=x(2269),oe.exports=function(_){function E(F,O,J,X){var S;E.__super__.constructor.call(this,F),W(O)&&(O=(S=O).version,J=S.encoding,X=S.standalone),O||(O="1.0"),this.type=v.Declaration,this.version=this.stringify.xmlVersion(O),null!=J&&(this.encoding=this.stringify.xmlEncoding(J)),null!=X&&(this.standalone=this.stringify.xmlStandalone(X))}return function(_,E){for(var F in E)b.call(E,F)&&(_[F]=E[F]);function O(){this.constructor=_}O.prototype=E.prototype,_.prototype=new O,_.__super__=E.prototype}(E,_),E.prototype.toString=function(F){return this.options.writer.declaration(this,this.options.writer.filterOptions(F))},E}(V)}).call(this)},9195:function(oe,ce,x){(function(){var v,k,V,W,G,_,E,F,J={}.hasOwnProperty;F=x(3452).isObject,E=x(8563),v=x(2269),k=x(7274),W=x(8349),V=x(2068),G=x(3087),_=x(5264),oe.exports=function(X){function S(I,M,q){var Q,w,B,y,g,m;if(S.__super__.constructor.call(this,I),this.type=v.DocType,I.children)for(w=0,B=(y=I.children).length;w=0;)this.up();return this.onEnd()},ne.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ne.prototype.openNode=function(j){var he,pe,Le;if(!j.isOpen){if(!this.root&&0===this.currentLevel&&j.type===v.Element&&(this.root=j),he="",j.type===v.Element){for(pe in this.writerOptions.state=k.OpenTag,he=this.writer.indent(j,this.writerOptions,this.currentLevel)+"<"+j.name,Le=j.attribs)!P.call(Le,pe)||(he+=this.writer.attribute(Le[pe],this.writerOptions,this.currentLevel));he+=(j.children?">":"/>")+this.writer.endline(j,this.writerOptions,this.currentLevel),this.writerOptions.state=k.InsideTag}else this.writerOptions.state=k.OpenTag,he=this.writer.indent(j,this.writerOptions,this.currentLevel)+""),he+=this.writer.endline(j,this.writerOptions,this.currentLevel);return this.onData(he,this.currentLevel),j.isOpen=!0}},ne.prototype.closeNode=function(j){var se;if(!j.isClosed)return"",this.writerOptions.state=k.CloseTag,se=j.type===v.Element?this.writer.indent(j,this.writerOptions,this.currentLevel)+""+this.writer.endline(j,this.writerOptions,this.currentLevel):this.writer.indent(j,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(j,this.writerOptions,this.currentLevel),this.writerOptions.state=k.None,this.onData(se,this.currentLevel),j.isClosed=!0},ne.prototype.onData=function(j,se){return this.documentStarted=!0,this.onDataCallback(j,se+1)},ne.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ne.prototype.debugInfo=function(j){return null==j?"":"node: <"+j+">"},ne.prototype.ele=function(){return this.element.apply(this,arguments)},ne.prototype.nod=function(j,se,he){return this.node(j,se,he)},ne.prototype.txt=function(j){return this.text(j)},ne.prototype.dat=function(j){return this.cdata(j)},ne.prototype.com=function(j){return this.comment(j)},ne.prototype.ins=function(j,se){return this.instruction(j,se)},ne.prototype.dec=function(j,se,he){return this.declaration(j,se,he)},ne.prototype.dtd=function(j,se,he){return this.doctype(j,se,he)},ne.prototype.e=function(j,se,he){return this.element(j,se,he)},ne.prototype.n=function(j,se,he){return this.node(j,se,he)},ne.prototype.t=function(j){return this.text(j)},ne.prototype.d=function(j){return this.cdata(j)},ne.prototype.c=function(j){return this.comment(j)},ne.prototype.r=function(j){return this.raw(j)},ne.prototype.i=function(j,se){return this.instruction(j,se)},ne.prototype.att=function(){return this.currentNode&&this.currentNode.type===v.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ne.prototype.a=function(){return this.currentNode&&this.currentNode.type===v.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ne.prototype.ent=function(j,se){return this.entity(j,se)},ne.prototype.pent=function(j,se){return this.pEntity(j,se)},ne.prototype.not=function(j,se){return this.notation(j,se)},ne}()}).call(this)},4173:function(oe,ce,x){(function(){var v,V,G={}.hasOwnProperty;V=x(8563),v=x(2269),oe.exports=function(b){function _(E){_.__super__.constructor.call(this,E),this.type=v.Dummy}return function(b,_){for(var E in _)G.call(_,E)&&(b[E]=_[E]);function F(){this.constructor=b}F.prototype=_.prototype,b.prototype=new F,b.__super__=_.prototype}(_,b),_.prototype.clone=function(){return Object.create(this)},_.prototype.toString=function(E){return""},_}(V)}).call(this)},3352:function(oe,ce,x){(function(){var v,k,W,G,b,_,E,F,J={}.hasOwnProperty;F=x(3452),E=F.isObject,_=F.isFunction,b=F.getValue,G=x(8563),v=x(2269),k=x(5968),W=x(5264),oe.exports=function(X){function S(I,M,q){var Q,w,B,y;if(S.__super__.constructor.call(this,I),null==M)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(M),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,null!=q&&this.attribute(q),I.type===v.Document&&(this.isRoot=!0,this.documentObject=I,I.rootObject=this,I.children))for(w=0,B=(y=I.children).length;w=Q;M=0<=Q?++q:--q)if(!this.attribs[M].isEqualNode(I.attribs[M]))return!1;return!0},S}(G)}).call(this)},5264:function(oe){(function(){oe.exports=function(){function x(v){this.nodes=v}return Object.defineProperty(x.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),x.prototype.clone=function(){return this.nodes=null},x.prototype.getNamedItem=function(v){return this.nodes[v]},x.prototype.setNamedItem=function(v){var k;return k=this.nodes[v.nodeName],this.nodes[v.nodeName]=v,k||null},x.prototype.removeNamedItem=function(v){var k;return k=this.nodes[v],delete this.nodes[v],k||null},x.prototype.item=function(v){return this.nodes[Object.keys(this.nodes)[v]]||null},x.prototype.getNamedItemNS=function(v,k){throw new Error("This DOM method is not implemented.")},x.prototype.setNamedItemNS=function(v){throw new Error("This DOM method is not implemented.")},x.prototype.removeNamedItemNS=function(v,k){throw new Error("This DOM method is not implemented.")},x}()}).call(this)},8563:function(oe,ce,x){(function(){var v,k,V,W,G,b,_,E,J,X,S,I,M,q,Q,w,B,y={}.hasOwnProperty;B=x(3452),w=B.isObject,Q=B.isFunction,q=B.isEmpty,M=B.getValue,E=null,V=null,W=null,G=null,b=null,S=null,I=null,X=null,_=null,k=null,J=null,v=null,oe.exports=function(){function g(m){this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,E||(E=x(3352),V=x(1361),W=x(2516),G=x(4789),b=x(9195),S=x(9942),I=x(474),X=x(4666),_=x(4173),k=x(2269),J=x(5112),x(5264),v=x(599))}return Object.defineProperty(g.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(g.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(g.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(g.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new J(this.children)),this.childNodeList}}),Object.defineProperty(g.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(g.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(g.prototype,"previousSibling",{get:function(){var m;return m=this.parent.children.indexOf(this),this.parent.children[m-1]||null}}),Object.defineProperty(g.prototype,"nextSibling",{get:function(){var m;return m=this.parent.children.indexOf(this),this.parent.children[m+1]||null}}),Object.defineProperty(g.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(g.prototype,"textContent",{get:function(){var m,T,K,P,ne;if(this.nodeType===k.Element||this.nodeType===k.DocumentFragment){for(ne="",T=0,K=(P=this.children).length;T":null!=(K=this.parent)&&K.name?"node: <"+m+">, parent: <"+this.parent.name+">":"node: <"+m+">":""},g.prototype.ele=function(m,T,K){return this.element(m,T,K)},g.prototype.nod=function(m,T,K){return this.node(m,T,K)},g.prototype.txt=function(m){return this.text(m)},g.prototype.dat=function(m){return this.cdata(m)},g.prototype.com=function(m){return this.comment(m)},g.prototype.ins=function(m,T){return this.instruction(m,T)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(m,T,K){return this.declaration(m,T,K)},g.prototype.e=function(m,T,K){return this.element(m,T,K)},g.prototype.n=function(m,T,K){return this.node(m,T,K)},g.prototype.t=function(m){return this.text(m)},g.prototype.d=function(m){return this.cdata(m)},g.prototype.c=function(m){return this.comment(m)},g.prototype.r=function(m){return this.raw(m)},g.prototype.i=function(m,T){return this.instruction(m,T)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(m){return this.importDocument(m)},g.prototype.replaceChild=function(m,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return 0!==this.children.length},g.prototype.cloneNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(m,T){return!0},g.prototype.hasAttributes=function(){return 0!==this.attribs.length},g.prototype.compareDocumentPosition=function(m){var T,K;return(T=this)===m?0:this.document()!==m.document()?(K=v.Disconnected|v.ImplementationSpecific,Math.random()<.5?K|=v.Preceding:K|=v.Following,K):T.isAncestor(m)?v.Contains|v.Preceding:T.isDescendant(m)?v.Contains|v.Following:T.isPreceding(m)?v.Preceding:v.Following},g.prototype.isSameNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(m){var T,K,P;if(m.nodeType!==this.nodeType||m.children.length!==this.children.length)return!1;for(T=K=0,P=this.children.length-1;0<=P?K<=P:K>=P;T=0<=P?++K:--K)if(!this.children[T].isEqualNode(m.children[T]))return!1;return!0},g.prototype.getFeature=function(m,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(m,T,K){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(m){return!!m&&(m===this||this.isDescendant(m))},g.prototype.isDescendant=function(m){var T,P,ne,j;for(P=0,ne=(j=this.children).length;PK},g.prototype.treePosition=function(m){var T,K;return K=0,T=!1,this.foreachTreeNode(this.document(),function(P){if(K++,!T&&P===m)return T=!0}),T?K:-1},g.prototype.foreachTreeNode=function(m,T){var K,P,ne,j,se;for(m||(m=this.document()),P=0,ne=(j=m.children).length;P0){for(this.stream.write(" ["),this.stream.write(this.endline(F,O,J)),O.state=k.InsideTag,S=0,I=(M=F.children).length;S"),this.stream.write(this.endline(F,O,J)),O.state=k.None,this.closeNode(F,O,J)},E.prototype.element=function(F,O,J){var I,M,q,Q,w,y,g;for(w in J||(J=0),this.openNode(F,O,J),O.state=k.OpenTag,this.stream.write(this.indent(F,O,J)+"<"+F.name),y=F.attribs)!b.call(y,w)||this.attribute(y[w],O,J);if(M=0===(I=F.children.length)?null:F.children[0],0===I||F.children.every(function(m){return(m.type===v.Text||m.type===v.Raw)&&""===m.value}))O.allowEmpty?(this.stream.write(">"),O.state=k.CloseTag,this.stream.write("")):(O.state=k.CloseTag,this.stream.write(O.spaceBeforeSlash+"/>"));else if(!O.pretty||1!==I||M.type!==v.Text&&M.type!==v.Raw||null==M.value){for(this.stream.write(">"+this.endline(F,O,J)),O.state=k.InsideTag,q=0,Q=(g=F.children).length;q")}else this.stream.write(">"),O.state=k.InsideTag,O.suppressPrettyCount++,this.writeChildNode(M,O,J+1),O.suppressPrettyCount--,O.state=k.CloseTag,this.stream.write("");return this.stream.write(this.endline(F,O,J)),O.state=k.None,this.closeNode(F,O,J)},E.prototype.processingInstruction=function(F,O,J){return this.stream.write(E.__super__.processingInstruction.call(this,F,O,J))},E.prototype.raw=function(F,O,J){return this.stream.write(E.__super__.raw.call(this,F,O,J))},E.prototype.text=function(F,O,J){return this.stream.write(E.__super__.text.call(this,F,O,J))},E.prototype.dtdAttList=function(F,O,J){return this.stream.write(E.__super__.dtdAttList.call(this,F,O,J))},E.prototype.dtdElement=function(F,O,J){return this.stream.write(E.__super__.dtdElement.call(this,F,O,J))},E.prototype.dtdEntity=function(F,O,J){return this.stream.write(E.__super__.dtdEntity.call(this,F,O,J))},E.prototype.dtdNotation=function(F,O,J){return this.stream.write(E.__super__.dtdNotation.call(this,F,O,J))},E}(W)}).call(this)},4354:function(oe,ce,x){(function(){var k,W={}.hasOwnProperty;k=x(3576),oe.exports=function(G){function b(_){b.__super__.constructor.call(this,_)}return function(G,b){for(var _ in b)W.call(b,_)&&(G[_]=b[_]);function E(){this.constructor=G}E.prototype=b.prototype,G.prototype=new E,G.__super__=b.prototype}(b,G),b.prototype.document=function(_,E){var O,J,X,S;for(E=this.filterOptions(E),X="",O=0,J=(S=_.children).length;O","]]]]>"),this.assertLegalChar(V))},k.prototype.comment=function(V){if(this.options.noValidation)return V;if((V=""+V||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+V);return this.assertLegalChar(V)},k.prototype.raw=function(V){return this.options.noValidation?V:""+V||""},k.prototype.attValue=function(V){return this.options.noValidation?V:this.assertLegalChar(this.attEscape(V=""+V||""))},k.prototype.insTarget=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.insValue=function(V){if(this.options.noValidation)return V;if((V=""+V||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+V);return this.assertLegalChar(V)},k.prototype.xmlVersion=function(V){if(this.options.noValidation)return V;if(!(V=""+V||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+V);return V},k.prototype.xmlEncoding=function(V){if(this.options.noValidation)return V;if(!(V=""+V||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+V);return this.assertLegalChar(V)},k.prototype.xmlStandalone=function(V){return this.options.noValidation?V:V?"yes":"no"},k.prototype.dtdPubID=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdSysID=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdElementValue=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdAttType=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdAttDefault=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdEntityValue=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.dtdNData=function(V){return this.options.noValidation?V:this.assertLegalChar(""+V||"")},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(V){var G;if(this.options.noValidation)return V;if("1.0"===this.options.version){if(G=V.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+V+" at index "+G.index)}else if("1.1"===this.options.version&&(G=V.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+V+" at index "+G.index);return V},k.prototype.assertLegalName=function(V){if(this.options.noValidation)return V;if(this.assertLegalChar(V),!V.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw new Error("Invalid character in name");return V},k.prototype.textEscape=function(V){return this.options.noValidation?V:V.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(//g,">").replace(/\r/g," ")},k.prototype.attEscape=function(V){return this.options.noValidation?V:V.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(/0?new Array(T).join(g.indent):""},B.prototype.endline=function(y,g,m){return!g.pretty||g.suppressPrettyCount?"":g.newline},B.prototype.attribute=function(y,g,m){var T;return this.openAttribute(y,g,m),T=" "+y.name+'="'+y.value+'"',this.closeAttribute(y,g,m),T},B.prototype.cdata=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.comment=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+"\x3c!-- ",g.state=k.InsideTag,T+=y.value,g.state=k.CloseTag,T+=" --\x3e"+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.declaration=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+"",T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.docType=function(y,g,m){var K,P,ne,j;if(m||(m=0),this.openNode(y,g,m),g.state=k.OpenTag,ne=this.indent(y,g,m),ne+="0){for(ne+=" [",ne+=this.endline(y,g,m),g.state=k.InsideTag,K=0,P=(j=y.children).length;K",ne+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),ne},B.prototype.element=function(y,g,m){var K,P,ne,j,se,he,pe,Le,Je,Ae,Ct,_e,ln;for(Le in m||(m=0),Je=!1,Ae="",this.openNode(y,g,m),g.state=k.OpenTag,Ae+=this.indent(y,g,m)+"<"+y.name,Ct=y.attribs)!w.call(Ct,Le)||(Ae+=this.attribute(Ct[Le],g,m));if(ne=0===(P=y.children.length)?null:y.children[0],0===P||y.children.every(function(Ze){return(Ze.type===v.Text||Ze.type===v.Raw)&&""===Ze.value}))g.allowEmpty?(Ae+=">",g.state=k.CloseTag,Ae+=""+this.endline(y,g,m)):(g.state=k.CloseTag,Ae+=g.spaceBeforeSlash+"/>"+this.endline(y,g,m));else if(!g.pretty||1!==P||ne.type!==v.Text&&ne.type!==v.Raw||null==ne.value){if(g.dontPrettyTextNodes)for(j=0,he=(_e=y.children).length;j"+this.endline(y,g,m),g.state=k.InsideTag,se=0,pe=(ln=y.children).length;se",Je&&g.suppressPrettyCount--,Ae+=this.endline(y,g,m),g.state=k.None}else Ae+=">",g.state=k.InsideTag,g.suppressPrettyCount++,Je=!0,Ae+=this.writeChildNode(ne,g,m+1),g.suppressPrettyCount--,Je=!1,g.state=k.CloseTag,Ae+=""+this.endline(y,g,m);return this.closeNode(y,g,m),Ae},B.prototype.writeChildNode=function(y,g,m){switch(y.type){case v.CData:return this.cdata(y,g,m);case v.Comment:return this.comment(y,g,m);case v.Element:return this.element(y,g,m);case v.Raw:return this.raw(y,g,m);case v.Text:return this.text(y,g,m);case v.ProcessingInstruction:return this.processingInstruction(y,g,m);case v.Dummy:return"";case v.Declaration:return this.declaration(y,g,m);case v.DocType:return this.docType(y,g,m);case v.AttributeDeclaration:return this.dtdAttList(y,g,m);case v.ElementDeclaration:return this.dtdElement(y,g,m);case v.EntityDeclaration:return this.dtdEntity(y,g,m);case v.NotationDeclaration:return this.dtdNotation(y,g,m);default:throw new Error("Unknown XML node type: "+y.constructor.name)}},B.prototype.processingInstruction=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+"",T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.raw=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m),g.state=k.InsideTag,T+=y.value,g.state=k.CloseTag,T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.text=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m),g.state=k.InsideTag,T+=y.value,g.state=k.CloseTag,T+=this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdAttList=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdElement=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdEntity=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.dtdNotation=function(y,g,m){var T;return this.openNode(y,g,m),g.state=k.OpenTag,T=this.indent(y,g,m)+""+this.endline(y,g,m),g.state=k.None,this.closeNode(y,g,m),T},B.prototype.openNode=function(y,g,m){},B.prototype.closeNode=function(y,g,m){},B.prototype.openAttribute=function(y,g,m){},B.prototype.closeAttribute=function(y,g,m){},B}()}).call(this)},7904:function(oe,ce,x){(function(){var v,k,V,W,G,b,_,E,F,O;O=x(3452),E=O.assign,F=O.isFunction,V=x(9906),W=x(519),G=x(1105),_=x(4354),b=x(7647),v=x(2269),k=x(6316),oe.exports.create=function(J,X,S,I){var M,q;if(null==J)throw new Error("Root element needs a name.");return I=E({},X,S,I),q=(M=new W(I)).element(J),I.headless||(M.declaration(I),(null!=I.pubID||null!=I.sysID)&&M.dtd(I)),q},oe.exports.begin=function(J,X,S){var I;return F(J)&&(X=(I=[J,X])[0],S=I[1],J={}),X?new G(J,X,S):new W(J)},oe.exports.stringWriter=function(J){return new _(J)},oe.exports.streamWriter=function(J,X){return new b(J,X)},oe.exports.implementation=new V,oe.exports.nodeType=v,oe.exports.writerState=k}).call(this)},2361:()=>{},4616:()=>{}},oe=>{oe(oe.s=7729)}]); \ No newline at end of file diff --git a/ngsw.json b/ngsw.json index 704967a..a03304b 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1721202877814, + "timestamp": 1721205490015, "index": "/bhhb/index.html", "assetGroups": [ { @@ -13,7 +13,7 @@ "urls": [ "/bhhb/favicon.ico", "/bhhb/index.html", - "/bhhb/main.d08380e51a8b0d9a.js", + "/bhhb/main.d6c8130e7a96353c.js", "/bhhb/polyfills.01ab5fa3a56cf981.js", "/bhhb/runtime.6795f4c7f348193d.js", "/bhhb/styles.6dad3eece9919135.css" @@ -49,8 +49,8 @@ "/bhhb/assets/icon-512-maskable.png": "d624d570f28ec0cc969054688cef6860b0308e37", "/bhhb/assets/icon-512.png": "3a767688a48e57bb8c9e31767f71dd076e935ad1", "/bhhb/favicon.ico": "2bdb3858d0f79b351f88468e44cc87ed02149a6e", - "/bhhb/index.html": "5e73a1b6c1d0c77490c8b18fc298ed3a5fe60859", - "/bhhb/main.d08380e51a8b0d9a.js": "5ef21afdf391ef50ddf5b0b0c4d54a3e9275e770", + "/bhhb/index.html": "b6048620558422a63e788b9fc01d3bd3cf363323", + "/bhhb/main.d6c8130e7a96353c.js": "54f92186d0671173c8d9baf1f9d415a4d2ef7962", "/bhhb/polyfills.01ab5fa3a56cf981.js": "727e5bfbf272fe0fbfcebd94044f5c51ddc70246", "/bhhb/runtime.6795f4c7f348193d.js": "4c111d7c759a3c06b1bdd676aa7fdbc3ed4a8487", "/bhhb/styles.6dad3eece9919135.css": "20af463b9268f8d1a39cae576aa96aedae73edb9"