From 301ad2896aeb95dd92ec7e8be8049b1ce5d5e5a4 Mon Sep 17 00:00:00 2001 From: RKIOpenData Date: Wed, 4 Dec 2024 12:15:35 +0000 Subject: [PATCH] Auto-generated commit [ci skip] Triggered by commit: https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/commit/fd24713397361961b55a59d65e8129ac0d14d96a --- 404.html | 2 +- index.html | 2 +- main.9ffd015bd5eee373.js | 1 - main.e27f8f4d565f88dd.js | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 main.9ffd015bd5eee373.js create mode 100644 main.e27f8f4d565f88dd.js diff --git a/404.html b/404.html index ad73965..683b244 100644 --- a/404.html +++ b/404.html @@ -8,6 +8,6 @@ - + \ No newline at end of file diff --git a/index.html b/index.html index ad73965..683b244 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@ - + \ No newline at end of file diff --git a/main.9ffd015bd5eee373.js b/main.9ffd015bd5eee373.js deleted file mode 100644 index b447a45..0000000 --- a/main.9ffd015bd5eee373.js +++ /dev/null @@ -1 +0,0 @@ -var tue=Object.defineProperty,nue=Object.defineProperties,iue=Object.getOwnPropertyDescriptors,iz=Object.getOwnPropertySymbols,rue=Object.prototype.hasOwnProperty,sue=Object.prototype.propertyIsEnumerable,N1=(Ze,re,He)=>re in Ze?tue(Ze,re,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ze[re]=He,V1=(Ze,re)=>{for(var He in re||(re={}))rue.call(re,He)&&N1(Ze,He,re[He]);if(iz)for(var He of iz(re))sue.call(re,He)&&N1(Ze,He,re[He]);return Ze},B1=(Ze,re)=>nue(Ze,iue(re)),pC=(Ze,re,He)=>(N1(Ze,"symbol"!=typeof re?re+"":re,He),He),H1=(Ze,re,He)=>{if(!re.has(Ze))throw TypeError("Cannot "+He)},Rt=(Ze,re,He)=>(H1(Ze,re,"read from private field"),He?He.call(Ze):re.get(Ze)),Gt=(Ze,re,He)=>{if(re.has(Ze))throw TypeError("Cannot add the same private member more than once");re instanceof WeakSet?re.add(Ze):re.set(Ze,He)},Fi=(Ze,re,He,I)=>(H1(Ze,re,"write to private field"),I?I.call(Ze,He):re.set(Ze,He),He),rz=(Ze,re,He,I)=>({set _(J){Fi(Ze,re,J,He)},get _(){return Rt(Ze,re,I)}}),Nt=(Ze,re,He)=>(H1(Ze,re,"access private method"),He);(self.webpackChunkgh_open_data_page=self.webpackChunkgh_open_data_page||[]).push([[179],{4585:(Ze,re,He)=>{"use strict";function I(n){return"function"==typeof n}function J(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 Ve=J(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 Te(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Me{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(I(i))try{i()}catch(s){t=s instanceof Ve?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{Q(s)}catch(o){t=null!=t?t:[],o instanceof Ve?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Ve(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Q(t);else{if(t instanceof Me){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&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)&&Te(e,t)}remove(t){const{_finalizers:e}=this;e&&Te(e,t),t instanceof Me&&t._removeParent(this)}}Me.EMPTY=(()=>{const n=new Me;return n.closed=!0,n})();const ce=Me.EMPTY;function E(n){return n instanceof Me||n&&"closed"in n&&I(n.remove)&&I(n.add)&&I(n.unsubscribe)}function Q(n){I(n)?n():n.unsubscribe()}const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},W={setTimeout(n,t,...e){const{delegate:i}=W;return null!=i&&i.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=W;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function U(n){W.setTimeout(()=>{const{onUnhandledError:t}=T;if(!t)throw n;t(n)})}function S(){}const y=G("C",void 0,void 0);function G(n,t,e){return{kind:n,value:t,error:e}}let P=null;function F(n){if(T.useDeprecatedSynchronousErrorHandling){const t=!P;if(t&&(P={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=P;if(P=null,e)throw i}}else n()}class _ extends Me{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,E(t)&&t.add(this)):this.destination=ue}static create(t,e,i){return new Z(t,e,i)}next(t){this.isStopped?te(function M(n){return G("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?te(function g(n){return G("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?te(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const k=Function.prototype.bind;function O(n,t){return k.call(n,t)}class H{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){L(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){L(i)}else L(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){L(e)}}}class Z extends _{constructor(t,e,i){let r;if(super(),I(t)||!t)r={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let s;this&&T.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&O(t.next,s),error:t.error&&O(t.error,s),complete:t.complete&&O(t.complete,s)}):r=t}this.destination=new H(r)}}function L(n){T.useDeprecatedSynchronousErrorHandling?function m(n){T.useDeprecatedSynchronousErrorHandling&&P&&(P.errorThrown=!0,P.error=n)}(n):U(n)}function te(n,t){const{onStoppedNotification:e}=T;e&&W.setTimeout(()=>e(n,t))}const ue={closed:!0,next:S,error:function V(n){throw n},complete:S},fe="function"==typeof Symbol&&Symbol.observable||"@@observable";function we(n){return n}function Se(n){return 0===n.length?we:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let _e=(()=>{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 s=function X(n){return n&&n instanceof _||function Be(n){return n&&I(n.next)&&I(n.error)&&I(n.complete)}(n)&&E(n)}(e)?e:new Z(e,i,r);return F(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Ce(i))((r,s)=>{const o=new Z({next:a=>{try{e(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[fe](){return this}pipe(...e){return Se(e)(this)}toPromise(e){return new(e=Ce(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Ce(n){var t;return null!==(t=null!=n?n:T.Promise)&&void 0!==t?t:Promise}const C=J(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let b=(()=>{class n extends _e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new p(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new C}next(e){F(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){F(()=>{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(){F(()=>{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=this.currentObservers=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:s}=this;return i||r?ce:(this.currentObservers=null,s.push(e),new Me(()=>{this.currentObservers=null,Te(s,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:s}=this;i?e.error(r):s&&e.complete()}asObservable(){const e=new _e;return e.source=this,e}}return n.create=(t,e)=>new p(t,e),n})();class p extends b{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:ce}}function D(n){return I(null==n?void 0:n.lift)}function A(n){return t=>{if(D(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")}}function N(n,t,e,i,r){return new j(n,t,e,i,r)}class j extends _{constructor(t,e,i,r,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(c){t.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function z(n,t){return A((e,i)=>{let r=0;e.subscribe(N(i,s=>{i.next(n.call(t,s,r++))}))})}function Ke(n){return this instanceof Ke?(this.v=n,this):new Ke(n)}function ut(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(x){i[x]&&(r[x]=function(B){return new Promise(function(se,me){s.push([x,B,se,me])>1||a(x,B)})})}function a(x,B){try{!function c(x){x.value instanceof Ke?Promise.resolve(x.value.v).then(d,f):v(s[0][2],x)}(i[x](B))}catch(se){v(s[0][3],se)}}function d(x){a("next",x)}function f(x){a("throw",x)}function v(x,B){x(B),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Vt(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 q(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(s){e[s]=n[s]&&function(o){return new Promise(function(a,c){!function r(s,o,a,c){Promise.resolve(c).then(function(d){s({value:d,done:a})},o)}(a,c,(o=n[s](o)).done,o.value)})}}}const at=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function gt(n){return I(null==n?void 0:n.then)}function hn(n){return I(n[fe])}function bn(n){return Symbol.asyncIterator&&I(null==n?void 0:n[Symbol.asyncIterator])}function hi(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 Li=function Fn(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function yi(n){return I(null==n?void 0:n[Li])}function ms(n){return ut(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield Ke(e.read());if(r)return yield Ke(void 0);yield yield Ke(i)}}finally{e.releaseLock()}})}function fi(n){return I(null==n?void 0:n.getReader)}function $n(n){if(n instanceof _e)return n;if(null!=n){if(hn(n))return function Fs(n){return new _e(t=>{const e=n[fe]();if(I(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(at(n))return function Ls(n){return new _e(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,U)})}(n);if(bn(n))return xi(n);if(yi(n))return function Or(n){return new _e(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(fi(n))return function fl(n){return xi(ms(n))}(n)}throw hi(n)}function xi(n){return new _e(t=>{(function pl(n,t){var e,i,r,s;return function st(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(f){try{d(i.next(f))}catch(v){o(v)}}function c(f){try{d(i.throw(f))}catch(v){o(v)}}function d(f){f.done?s(f.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(f.value).then(a,c)}d((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Vt(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ea(n,t,e,i=0,r=!1){const s=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(s),!r)return s}function lr(n,t,e=1/0){return I(t)?lr((i,r)=>z((s,o)=>t(i,s,r,o))($n(n(i,r))),e):("number"==typeof t&&(e=t),A((i,r)=>function vC(n,t,e,i,r,s,o,a){const c=[];let d=0,f=0,v=!1;const x=()=>{v&&!c.length&&!d&&t.complete()},B=me=>d{s&&t.next(me),d++;let Oe=!1;$n(e(me,f++)).subscribe(N(t,Fe=>{null==r||r(Fe),s?B(Fe):t.next(Fe)},()=>{Oe=!0},void 0,()=>{if(Oe)try{for(d--;c.length&&dse(Fe)):se(Fe)}x()}catch(Fe){t.error(Fe)}}))};return n.subscribe(N(t,B,()=>{v=!0,x()})),()=>{null==a||a()}}(i,r,n,e)))}function uc(n=1/0){return lr(we,n)}const Ns=new _e(n=>n.complete());function Vg(n){return n&&I(n.schedule)}function gd(n){return n[n.length-1]}function Cf(n){return I(gd(n))?n.pop():void 0}function ru(n){return Vg(gd(n))?n.pop():void 0}function Bg(n,t=0){return A((e,i)=>{e.subscribe(N(i,r=>ea(i,n,()=>i.next(r),t),()=>ea(i,n,()=>i.complete(),t),r=>ea(i,n,()=>i.error(r),t)))})}function Hg(n,t=0){return A((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function zg(n,t){if(!n)throw new Error("Iterable cannot be null");return new _e(e=>{ea(e,t,()=>{const i=n[Symbol.asyncIterator]();ea(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function pi(n,t){return t?function SC(n,t){if(null!=n){if(hn(n))return function wC(n,t){return $n(n).pipe(Hg(t),Bg(t))}(n,t);if(at(n))return function CC(n,t){return new _e(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(gt(n))return function _d(n,t){return $n(n).pipe(Hg(t),Bg(t))}(n,t);if(bn(n))return zg(n,t);if(yi(n))return function vd(n,t){return new _e(e=>{let i;return ea(e,t,()=>{i=n[Li](),ea(e,t,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){return void e.error(o)}s?e.complete():e.next(r)},0,!0)}),()=>I(null==i?void 0:i.return)&&i.return()})}(n,t);if(fi(n))return function DC(n,t){return zg(ms(n),t)}(n,t)}throw hi(n)}(n,t):$n(n)}function Ni(...n){const t=ru(n),e=function bC(n,t){return"number"==typeof gd(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?$n(i[0]):uc(e)(pi(i,t)):Ns}function yd(n={}){const{connector:t=(()=>new b),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return s=>{let o,a,c,d=0,f=!1,v=!1;const x=()=>{null==a||a.unsubscribe(),a=void 0},B=()=>{x(),o=c=void 0,f=v=!1},se=()=>{const me=o;B(),null==me||me.unsubscribe()};return A((me,Oe)=>{d++,!v&&!f&&x();const Fe=c=null!=c?c:t();Oe.add(()=>{d--,0===d&&!v&&!f&&(a=Df(se,r))}),Fe.subscribe(Oe),!o&&d>0&&(o=new Z({next:et=>Fe.next(et),error:et=>{v=!0,x(),a=Df(B,e,et),Fe.error(et)},complete:()=>{f=!0,x(),a=Df(B,i),Fe.complete()}}),$n(me).subscribe(o))})(s)}}function Df(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new Z({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function oi(n){for(let t in n)if(n[t]===oi)return t;throw Error("Could not find renamed property on target object.")}function Sf(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function ai(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ai).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 bd(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Ug=oi({__forward_ref__:oi});function Pn(n){return n.__forward_ref__=Pn,n.toString=function(){return ai(this())},n}function tn(n){return Af(n)?n():n}function Af(n){return"function"==typeof n&&n.hasOwnProperty(Ug)&&n.__forward_ref__===Pn}class nt extends Error{constructor(t,e){super(function su(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function fn(n){return"string"==typeof n?n:null==n?"":String(n)}function ou(n,t){throw new nt(-201,!1)}function gs(n,t){null==n&&function Zn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function dt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ht(n){return{providers:n.providers||[],imports:n.imports||[]}}function Mf(n){return qg(n,wd)||qg(n,Yg)}function qg(n,t){return n.hasOwnProperty(t)?n[t]:null}function li(n){return n&&(n.hasOwnProperty(Ef)||n.hasOwnProperty(IC))?n[Ef]:null}const wd=oi({\u0275prov:oi}),Ef=oi({\u0275inj:oi}),Yg=oi({ngInjectableDef:oi}),IC=oi({ngInjectorDef:oi});var qt=(()=>((qt=qt||{})[qt.Default=0]="Default",qt[qt.Host=1]="Host",qt[qt.Self=2]="Self",qt[qt.SkipSelf=4]="SkipSelf",qt[qt.Optional=8]="Optional",qt))();let xf;function Xs(n){const t=xf;return xf=n,t}function Cr(n,t,e){const i=Mf(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&qt.Optional?null:void 0!==t?t:void ou(ai(n))}function Qs(n){return{toString:n}.toString()}var Zs=(()=>((Zs=Zs||{})[Zs.OnPush=0]="OnPush",Zs[Zs.Default=1]="Default",Zs))(),Js=(()=>{return(n=Js||(Js={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Js;var n})();const ni=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),ml={},Gn=[],Ur=oi({\u0275cmp:oi}),kf=oi({\u0275dir:oi}),_s=oi({\u0275pipe:oi}),Qg=oi({\u0275mod:oi}),Lo=oi({\u0275fac:oi}),eo=oi({__NG_ELEMENT_ID__:oi});let Cd=0;function Ct(n){return Qs(()=>{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===Zs.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Gn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Js.Emulated,id:"c"+Cd++,styles:n.styles||Gn,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.dependencies,o=n.features;return r.inputs=Zg(n.inputs,i),r.outputs=Zg(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(ta).filter(Dd):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(er).filter(Dd):null,r})}function ta(n){return Jn(n)||Dr(n)}function Dd(n){return null!==n}function Ut(n){return Qs(()=>({type:n.type,bootstrap:n.bootstrap||Gn,declarations:n.declarations||Gn,imports:n.imports||Gn,exports:n.exports||Gn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Zg(n,t){if(null==n)return ml;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const qe=Ct;function ki(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 Jn(n){return n[Ur]||null}function Dr(n){return n[kf]||null}function er(n){return n[_s]||null}function Vs(n,t){const e=n[Qg]||null;if(!e&&!0===t)throw new Error(`Type ${ai(n)} does not have '\u0275mod' property.`);return e}function Zr(n){return Array.isArray(n)&&"object"==typeof n[1]}function mo(n){return Array.isArray(n)&&!0===n[1]}function If(n){return 0!=(8&n.flags)}function Md(n){return 2==(2&n.flags)}function Ed(n){return 1==(1&n.flags)}function go(n){return null!==n.template}function xd(n){return 0!=(256&n[2])}function vl(n,t){return n.hasOwnProperty(Lo)?n[Lo]:null}class Td{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Zt(){return uu}function uu(n){return n.type.prototype.ngOnChanges&&(n.setInput=Pd),n_}function n_(){const n=Bf(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===ml)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Pd(n,t,e,i){const r=Bf(n)||function Rd(n,t){return n[Vf]=t}(n,{previous:ml,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],c=o[a];s[a]=new Td(c&&c.currentValue,t,o===ml),n[i]=t}Zt.ngInherit=!0;const Vf="__ngSimpleChanges__";function Bf(n){return n[Vf]||null}function Ti(n){for(;Array.isArray(n);)n=n[0];return n}function hu(n,t){return Ti(t[n])}function to(n,t){return Ti(t[n.index])}function qi(n,t){return n.data[t]}function Yi(n,t){return n[t]}function Hs(n,t){const e=t[n];return Zr(e)?e:e[0]}function i_(n){return 4==(4&n[2])}function fu(n){return 64==(64&n[2])}function No(n,t){return null==t?null:n[t]}function vc(n){n[18]=0}function pu(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 nn={lFrame:c_(null),bindingsEnabled:!0};function r_(){return nn.bindingsEnabled}function ct(){return nn.lFrame.lView}function Rn(){return nn.lFrame.tView}function zt(n){return nn.lFrame.contextLView=n,n[8]}function Wt(n){return nn.lFrame.contextLView=null,n}function K(){let n=yl();for(;null!==n&&64===n.type;)n=n.parent;return n}function yl(){return nn.lFrame.currentTNode}function Ki(n,t){const e=nn.lFrame;e.currentTNode=n,e.isParent=t}function xn(){return nn.lFrame.isParent}function jf(){nn.lFrame.isParent=!1}function Jr(){const n=nn.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Cc(){return nn.lFrame.bindingIndex++}function Fr(n){const t=nn.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function GC(n,t){const e=nn.lFrame;e.bindingIndex=e.bindingRootIndex=n,$f(t)}function $f(n){nn.lFrame.currentDirectiveIndex=n}function vo(n){const t=nn.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function a_(){return nn.lFrame.currentQueryIndex}function Wf(n){nn.lFrame.currentQueryIndex=n}function YC(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function l_(n,t,e){if(e&qt.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&qt.Host||(r=YC(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=nn.lFrame=Ea();return i.currentTNode=t,i.lView=n,!0}function Gf(n){const t=Ea(),e=n[1];nn.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Ea(){const n=nn.lFrame,t=null===n?null:n.child;return null===t?c_(n):t}function c_(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 u_(){const n=nn.lFrame;return nn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const no=u_;function qf(){const n=u_();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 es(){return nn.lFrame.selectedIndex}function xa(n){nn.lFrame.selectedIndex=n}function Pi(){const n=nn.lFrame;return qi(n.tView,n.selectedIndex)}function ia(){nn.lFrame.currentNamespace="svg"}function Yf(){!function Kf(){nn.lFrame.currentNamespace=null}()}function Vd(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[c]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class _u{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function vu(n,t,e){let i=0;for(;it){o=s-1;break}}}for(;s>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Lr=!0;function Dc(n){const t=Lr;return Lr=n,t}let Qf=0;const Bo={};function Sc(n,t){const e=Jf(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Zf(i.data,n),Zf(t,null),Zf(i.blueprint,null));const r=ka(n,t),s=n.injectorIndex;if(Ud(r)){const o=sa(r),a=Cl(r,t),c=a[1].data;for(let d=0;d<8;d++)t[s+d]=a[o+d]|c[o+d]}return t[s+8]=r,s}function Zf(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Jf(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function ka(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=ip(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function jd(n,t,e){!function bu(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(eo)&&(i=e[eo]),null==i&&(i=e[eo]=Qf++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:v_:t}(e);if("function"==typeof s){if(!l_(t,n,i))return i&qt.Host?$d(r,0,i):ep(t,e,i,r);try{const o=s(i);if(null!=o||i&qt.Optional)return o;ou()}finally{no()}}else if("number"==typeof s){let o=null,a=Jf(n,t),c=-1,d=i&qt.Host?t[16][6]:null;for((-1===a||i&qt.SkipSelf)&&(c=-1===a?ka(n,t):t[a+8],-1!==c&&tp(i,!1)?(o=t[1],a=sa(c),t=Cl(c,t)):a=-1);-1!==a;){const f=t[1];if(Wd(s,a,f.data)){const v=eD(a,t,e,o,i,d);if(v!==Bo)return v}c=t[a+8],-1!==c&&tp(i,t[1].data[a+8]===d)&&Wd(s,a,t)?(o=f,a=sa(c),t=Cl(c,t)):a=-1}}return r}function eD(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],f=wu(a,o,e,null==i?Md(a)&&Lr:i!=o&&0!=(3&a.type),r&qt.Host&&s===a);return null!==f?Dl(t,o,f,a):Bo}function wu(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,c=n.directiveStart,f=s>>20,x=r?a+f:n.directiveEnd;for(let B=i?a:a+f;B=c&&se.type===e)return B}if(r){const B=o[c];if(B&&go(B)&&B.type===e)return c}return null}function Dl(n,t,e,i){let r=n[e];const s=t.data;if(function d_(n){return n instanceof _u}(r)){const o=r;o.resolving&&function jg(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new nt(-200,`Circular dependency in DI detected for ${n}${e}`)}(function Wn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():fn(n)}(s[e]));const a=Dc(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?Xs(o.injectImpl):null;l_(n,i,qt.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function Nd(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=uu(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==c&&Xs(c),Dc(a),o.resolving=!1,no()}}return r}function Wd(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[Lo]||np(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Lo]||np(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function np(n){return Af(n)?()=>{const t=np(tn(n));return t&&t()}:vl(n)}function ip(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function bs(n){return function JC(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 Cu(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(c,d,f){const v=c.hasOwnProperty(Ac)?c[Ac]:Object.defineProperty(c,Ac,{value:[]})[Ac];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(o),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class lt{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=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function $r(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Ho(e,t):t(e))}function qd(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Du(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ml(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function rD(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 op(n,t){const e=Ec(n,t);if(e>=0)return n[1|e]}function Ec(n,t){return function ap(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<t?r=s:i=s+1}return~(r<n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ih}())||void 0===t?void 0:t.createHTML(n))||n}function L_(n){var t;return(null===(t=function vp(){if(void 0===Rc&&(Rc=null,ni.trustedTypes))try{Rc=ni.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Rc}())||void 0===t?void 0:t.createHTML(n))||n}class Oa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class hD extends Oa{getTypeName(){return"HTML"}}class fD extends Oa{getTypeName(){return"Style"}}class pD extends Oa{getTypeName(){return"Script"}}class mD extends Oa{getTypeName(){return"URL"}}class N_ extends Oa{getTypeName(){return"ResourceURL"}}function As(n){return n instanceof Oa?n.changingThisBreaksApplicationSecurity:n}function jo(n,t){const e=function bp(n){return n instanceof Oa&&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 z_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ss(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class $o{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=Ss(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ss(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Tu(t.trim())).join(", ")),this.buf.push(" ",o,'="',Y_(c),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();rh.hasOwnProperty(e)&&!j_.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Y_(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 bD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wD=/([^\#-~ |!])/g;function Y_(n){return n.replace(/&/g,"&").replace(bD,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wD,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ah;function K_(n,t){let e=null;try{ah=ah||function ku(n){const t=new $o(n);return function Pl(){try{return!!(new window.DOMParser).parseFromString(Ss(""),"text/html")}catch(n){return!1}}()?new z_(t):t}(n);let i=t?String(t):"";e=ah.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ah.getInertBodyElement(i)}while(i!==s);return Ss((new yD).sanitizeChildren(Ms(e)||e))}finally{if(e){const i=Ms(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Ms(n){return"content"in n&&function CD(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var jn=(()=>((jn=jn||{})[jn.NONE=0]="NONE",jn[jn.HTML=1]="HTML",jn[jn.STYLE=2]="STYLE",jn[jn.SCRIPT=3]="SCRIPT",jn[jn.URL=4]="URL",jn[jn.RESOURCE_URL=5]="RESOURCE_URL",jn))();function X_(n){const t=Ru();return t?L_(t.sanitize(jn.HTML,n)||""):jo(n,"HTML")?L_(As(n)):K_(function F_(){return void 0!==mp?mp:"undefined"!=typeof document?document:void 0}(),fn(n))}function zs(n){const t=Ru();return t?t.sanitize(jn.URL,n)||"":jo(n,"URL")?As(n):Tu(fn(n))}function Ru(){const n=ct();return n&&n[12]}const Dp=new lt("ENVIRONMENT_INITIALIZER"),J_=new lt("INJECTOR",-1),ev=new lt("INJECTOR_DEF_TYPES");class tv{get(t,e=Uo){if(e===Uo){const i=new Error(`NullInjectorError: No provider for ${ai(t)}!`);throw i.name="NullInjectorError",i}return e}}function ED(...n){return{\u0275providers:nv(0,n)}}function nv(n,...t){const e=[],i=new Set;let r;return Ho(t,s=>{const o=s;Sp(o,e,[],i)&&(r||(r=[]),r.push(o))}),void 0!==r&&iv(r,e),e}function iv(n,t){for(let e=0;e{t.push(s)})}}function Sp(n,t,e,i){if(!(n=tn(n)))return!1;let r=null,s=li(n);const o=!s&&Jn(n);if(s||o){if(o&&!o.standalone)return!1;r=n}else{const c=n.ngModule;if(s=li(c),!s)return!1;r=c}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const c="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const d of c)Sp(d,t,e,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let d;i.add(r);try{Ho(s.imports,f=>{Sp(f,t,e,i)&&(d||(d=[]),d.push(f))})}finally{}void 0!==d&&iv(d,t)}if(!a){const d=vl(r)||(()=>new r);t.push({provide:r,useFactory:d,deps:Gn},{provide:ev,useValue:r,multi:!0},{provide:Dp,useValue:()=>Re(r),multi:!0})}const c=s.providers;null==c||a||Ho(c,f=>{t.push(f)})}}return r!==n&&void 0!==n.providers}const xD=oi({provide:String,useValue:oi});function Ap(n){return null!==n&&"object"==typeof n&&xD in n}function Rl(n){return"function"==typeof n}const Iu=new lt("Set Injector scope."),Ou={},TD={};let Mp;function lh(){return void 0===Mp&&(Mp=new tv),Mp}class Fa{}class ov extends Fa{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,kp(t,o=>this.processProvider(o)),this.records.set(J_,Oc(void 0,this)),r.has("environment")&&this.records.set(Fa,Oc(void 0,this));const s=this.records.get(Iu);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(ev.multi,Gn,qt.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=xl(this),i=Xs(void 0);try{return t()}finally{xl(e),Xs(i)}}get(t,e=Uo,i=qt.Default){this.assertNotDestroyed();const r=xl(this),s=Xs(void 0);try{if(!(i&qt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function OD(n){return"function"==typeof n||"object"==typeof n&&n instanceof lt}(t)&&Mf(t);a=c&&this.injectableDefInScope(c)?Oc(Ep(t),Ou):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&qt.Self?lh():this.parent).get(t,e=i&qt.Optional&&e===Uo?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Su]=o[Su]||[]).unshift(ai(t)),r)throw o;return function k_(n,t,e,i){const r=n[Su];throw t[kc]&&r.unshift(t[kc]),n.message=function Qd(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=ai(t);if(Array.isArray(t))r=t.map(ai).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(E_,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Su]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Xs(s),xl(r)}}resolveInjectorInitializers(){const t=xl(this),e=Xs(void 0);try{const i=this.get(Dp.multi,Gn,qt.Self);for(const r of i)r()}finally{xl(t),Xs(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(ai(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let e=Rl(t=tn(t))?t:tn(t&&t.provide);const i=function RD(n){return Ap(n)?Oc(void 0,n.useValue):Oc(xp(n),Ou)}(t);if(Rl(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Oc(void 0,Ou,!0),r.factory=()=>Mu(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Ou&&(e.value=TD,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ID(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=tn(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Ep(n){const t=Mf(n),e=null!==t?t.factory:vl(n);if(null!==e)return e;if(n instanceof lt)throw new nt(204,!1);if(n instanceof Function)return function PD(n){const t=n.length;if(t>0)throw Ml(t,"?"),new nt(204,!1);const e=function RC(n){const t=n&&(n[wd]||n[Yg]);if(t){const e=function bi(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 nt(204,!1)}function xp(n,t,e){let i;if(Rl(n)){const r=tn(n);return vl(r)||Ep(r)}if(Ap(n))i=()=>tn(n.useValue);else if(function sv(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Mu(n.deps||[]));else if(function rv(n){return!(!n||!n.useExisting)}(n))i=()=>Re(tn(n.useExisting));else{const r=tn(n&&(n.useClass||n.provide));if(!function ch(n){return!!n.deps}(n))return vl(r)||Ep(r);i=()=>new r(...Mu(n.deps))}return i}function Oc(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function FD(n){return!!n.\u0275providers}function kp(n,t){for(const e of n)Array.isArray(e)?kp(e,t):FD(e)?kp(e.\u0275providers,t):t(e)}class av{}class VD{resolveComponentFactory(t){throw function ND(n){const t=Error(`No component factory found for ${ai(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Il=(()=>{class n{}return n.NULL=new VD,n})();function BD(){return Fc(K(),ct())}function Fc(n,t){return new bt(to(n,t))}let bt=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=BD,n})();function HD(n){return n instanceof bt?n.nativeElement:n}class Ol{}let Us=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function zD(){const n=ct(),e=Hs(K().index,n);return(Zr(e)?e:n)[11]}(),n})(),UD=(()=>{class n{}return n.\u0275prov=dt({token:n,providedIn:"root",factory:()=>null}),n})();class Fl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const jD=new Fl("14.1.3"),Lc={};function ph(n){return n.ngOriginalError}class aa{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&&ph(t);for(;e&&ph(e);)e=ph(e);return e||null}}const Fp=new Map;let XD=0;const Np="__ngContext__";function Wr(n,t){Zr(t)?(n[Np]=t[20],function ZD(n){Fp.set(n[20],n)}(t)):n[Np]=t}function ss(n){const t=n[Np];return"number"==typeof t?function hv(n){return Fp.get(n)||null}(t):t||null}function Vp(n){const t=ss(n);return t?Zr(t)?t:t.lView:null}const rS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ni))();function Nc(n){return n.ownerDocument.defaultView}function la(n){return n instanceof Function?n():n}var Es=(()=>((Es=Es||{})[Es.Important=1]="Important",Es[Es.DashCase=2]="DashCase",Es))();function zp(n,t){return undefined(n,t)}function Vc(n){const t=n[3];return mo(t)?t[3]:t}function Up(n){return Nu(n[13])}function _h(n){return Nu(n[4])}function Nu(n){for(;null!==n&&!mo(n);)n=n[4];return n}function Do(n,t,e,i,r){if(null!=i){let s,o=!1;mo(i)?s=i:Zr(i)&&(o=!0,i=i[0]);const a=Ti(i);0===n&&null!==e?null==r?Dv(t,e,a):Nl(t,e,a,r||null,!0):1===n&&null!==e?Nl(t,e,a,r||null,!0):2===n?function kv(n,t,e){const i=yh(n,t);i&&function hS(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function mS(n,t,e,i,r){const s=e[7];s!==Ti(e)&&Do(t,n,i,s,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const s=Du(n,10+t);!function dS(n,t){xr(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Kn(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&xr(n,t,e,3,null,null),function vn(n){let t=n[13];if(!t)return qp(n[1],n);for(;t;){let e=null;if(Zr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Zr(t)&&qp(t[1],t),t=t[3];null===t&&(t=n),Zr(t)&&qp(t[1],t),e=t&&t[4]}t=e}}(t)}}function qp(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function vh(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=d]():i[r=-d].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;ss?"":r[v+1].toLowerCase();const B=8&i?x:null;if(B&&-1!==Iv(B,d,0)||2&i&&d!==x){if(So(i))return!1;o=!0}}}}else{if(!o&&!So(i)&&!So(c))return!1;if(o&&So(c))continue;o=!1,i=c|1&i}}return So(i)||o}function So(n){return 0==(1&n)}function vS(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!So(o)&&(t+=Bv(s,r),r=""),i=o,s=s||!So(i);e++}return""!==r&&(t+=Bv(s,r)),t}const dn={};function ye(n){zv(Rn(),ct(),es()+n,!1)}function zv(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&gu(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Bd(t,s,0,e)}xa(e)}function Wv(n,t=null,e=null,i){const r=Gv(n,t,e,i);return r.resolveInjectorInitializers(),r}function Gv(n,t=null,e=null,i,r=new Set){const s=[e||Gn,ED(n)];return i=i||("object"==typeof n?void 0:ai(n)),new ov(s,t||lh(),i||null,r)}let Ii=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return Wv({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return Wv({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Uo,n.NULL=new tv,n.\u0275prov=dt({token:n,providedIn:"any",factory:()=>Re(J_)}),n.__NG_ELEMENT_ID__=-1,n})();function R(n,t=qt.Default){const e=ct();return null===e?Re(n,t):g_(K(),e,tn(n),t)}function Vl(){throw new Error("invalid")}function Vu(n,t){return n<<17|t<<2}function Ao(n){return n>>17&32767}function Bu(n){return 2|n}function Mo(n){return(131068&n)>>2}function rm(n,t){return-131069&n|t<<2}function sm(n){return 1|n}function XT(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&zv(n,t,22,!1),e(i,r)}finally{xa(s)}}function ZT(n,t,e){if(If(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=c&&a.push(c),a.push(i,r,o)}}function sP(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function oP(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function Lz(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&XS(e)}}function XS(n){for(let i=Up(n);null!==i;i=_h(i))for(let r=10;r0&&XS(s)}const e=n[1].components;if(null!==e)for(let i=0;i0&&XS(r)}}function jz(n,t){const e=Hs(t,n),i=e[1];(function $z(n,t){for(let e=t.length;ePromise.resolve(null))();function hP(n){return n[7]||(n[7]=[])}function fP(n){return n.cleanup||(n.cleanup=[])}function pP(n,t,e){return(null===n||go(n))&&(e=function Uf(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function mP(n,t){const e=n[9],i=e?e.get(aa,null):null;i&&i.handleError(t)}function eA(n,t,e,i,r){for(let s=0;s-1&&(Gp(t,i),Du(e,i))}this._attachedToViewContainer=!1}Kn(this._lView[1],this._lView)}onDestroy(t){eP(this._lView[1],this._lView,null,t)}markForCheck(){QS(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function ZS(n,t,e){const i=t[10];i.begin&&i.begin();try{cm(n,t,n.template,e)}catch(r){throw mP(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ua(n,t){xr(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t}}class qz extends um{constructor(t){super(t),this._view=t}detectChanges(){dP(this._view)}checkNoChanges(){}get context(){return null}}class tA extends Il{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Jn(t);return new dm(e,this.ngModule)}}function gP(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Kz{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,Lc,i);return r!==Lc||e===Lc?r:this.parentInjector.get(t,e,i)}}class dm extends av{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function DS(n){return n.map(CS).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gP(this.componentDef.inputs)}get outputs(){return gP(this.componentDef.outputs)}create(t,e,i,r){let s=(r=r||this.ngModule)instanceof Fa?r:null==r?void 0:r.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new Kz(t,s):t,a=o.get(Ol,null);if(null===a)throw new nt(407,!1);const c=o.get(UD,null),d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",v=i?function Mz(n,t,e){return n.selectRootElement(t,e===Js.ShadowDom)}(d,i,this.componentDef.encapsulation):$p(a.createRenderer(null,this.componentDef),f,function Yz(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),x=this.componentDef.onPush?288:272,B=function eU(n,t){return{components:[],scheduler:n||rS,clean:Gz,playerHandler:t||null,flags:0}}(),se=qS(0,null,null,1,0,null,null,null,null,null),me=oy(null,se,B,x,null,null,a,d,c,o,null);let Oe,Fe;Gf(me);try{const et=function Zz(n,t,e,i,r,s){const o=e[1];e[22]=n;const c=Mh(o,22,2,"#host",null),d=c.mergedAttrs=t.hostAttrs;null!==d&&(cy(c,d,!0),null!==n&&(vu(r,n,d),null!==c.classes&&Xp(r,n,c.classes),null!==c.styles&&Rv(r,n,c.styles)));const f=i.createRenderer(n,t),v=oy(e,JT(t),null,t.onPush?32:16,e[22],c,i,f,s||null,null,null);return o.firstCreatePass&&(jd(Sc(c,e),o,t.type),oP(o,c),aP(c,e.length,1)),ly(e,v),e[22]=v}(v,this.componentDef,me,a,d);if(v)if(i)vu(d,v,["ng-version",jD.full]);else{const{attrs:$e,classes:ot}=function Hv(n){const t=[],e=[];let i=1,r=2;for(;i0&&Xp(d,v,ot.join(" "))}if(Fe=qi(se,22),void 0!==e){const $e=Fe.projection=[];for(let ot=0;ot=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=yu(r.hostAttrs,e=yu(e,r.hostAttrs))}}(i)}function nA(n){return n===ml?{}:n===Gn?[]:n}function iU(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function rU(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function sU(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let dy=null;function Hu(){if(!dy){const n=ni.Symbol;if(n&&n.iterator)dy=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Ti(Tt[i.index])):i.index;let ot=null;if(!a&&c&&(ot=function vU(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;sc?a[c]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==ot)(ot.__ngLastListenerFn__||ot).__ngNextListenerFn__=s,ot.__ngLastListenerFn__=s,B=!1;else{s=TP(i,t,v,s,!1);const Tt=e.listen(Fe,r,s);x.push(s,Tt),f&&f.push(r,$e,et,et+1)}}else s=TP(i,t,v,s,!1);const se=i.outputs;let me;if(B&&null!==se&&(me=se[r])){const Oe=me.length;if(Oe)for(let Fe=0;Fe0;)t=t[15],n--;return t}(n,nn.lFrame.contextLView))[8]}(n)}function yU(n,t){let e=null;const i=function yS(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 js(n,t,e){return da(n,t,e,!1),js}function Kt(n,t){return da(n,t,null,!0),Kt}function da(n,t,e,i){const r=ct(),s=Rn(),o=Fr(2);s.firstUpdatePass&&function YP(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[es()],o=function qP(n,t){return t>=n.expandoStartIndex}(n,e);(function ZP(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function PU(n,t,e,i){const r=vo(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=mm(e=aA(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=aA(r,n,t,e,i),null===s){let c=function RU(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Mo(i))return n[Ao(i)]}(n,t,i);void 0!==c&&Array.isArray(c)&&(c=aA(null,n,t,c[1],i),c=mm(c,t.attrs,i),function IU(n,t,e,i){n[Ao(e?t.classBindings:t.styleBindings)]=i}(n,t,i,c))}else s=function OU(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(d=!0)}else f=e;if(r)if(0!==c){const x=Ao(n[a+1]);n[i+1]=Vu(x,a),0!==x&&(n[x+1]=rm(n[x+1],i)),n[a+1]=function VS(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Vu(a,0),0!==a&&(n[a+1]=rm(n[a+1],i)),a=i;else n[i+1]=Vu(c,0),0===a?a=i:n[c+1]=rm(n[c+1],i),c=i;d&&(n[i+1]=Bu(n[i+1])),HP(n,f,i,!0),HP(n,f,i,!1),function wU(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Ec(s,t)>=0&&(e[i+1]=sm(e[i+1]))}(t,f,n,i,s),o=Vu(a,c),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==dn&&ks(r,o,t)&&function XP(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const c=n.data,d=c[a+1];py(function ty(n){return 1==(1&n)}(d)?QP(c,t,e,r,Mo(d),o):void 0)||(py(s)||function ey(n){return 2==(2&n)}(d)&&(s=QP(c,null,e,r,a,o)),function Pv(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let s=-1===i.indexOf("-")?void 0:Es.DashCase;null==r?n.removeStyle(e,i,s):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=Es.Important),n.setStyle(e,i,r,s))}}(i,o,hu(es(),e),r,s))}(s,s.data[es()],r,r[11],n,r[o+1]=function NU(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=ai(As(n)))),n}(t,e),i,o)}function aA(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const c=n[r],d=Array.isArray(c),f=d?c[1]:c,v=null===f;let x=e[r+1];x===dn&&(x=v?Gn:void 0);let B=v?op(x,i):f===i?x:void 0;if(d&&!py(B)&&(B=op(c,i)),py(B)&&(a=B,o))return a;const se=n[r+1];r=o?Ao(se):Mo(se)}if(null!==t){let c=s?t.residualClasses:t.residualStyles;null!=c&&(a=op(c,i))}return a}function py(n){return void 0!==n}function ie(n,t=""){const e=ct(),i=Rn(),r=n+22,s=i.firstCreatePass?Mh(i,r,1,t,null):i.data[r],o=e[r]=function jp(n,t){return n.createText(t)}(e[11],t);wh(i,e,o,s),Ki(s,!1)}function Yn(n){return ci("",n,""),Yn}function ci(n,t,e){const i=ct(),r=function kh(n,t,e,i){return ks(n,Cc(),e)?t+fn(e)+i:dn}(i,n,t,e);return r!==dn&&Bl(i,es(),r),ci}function lA(n,t,e,i,r){const s=ct(),o=Th(s,n,t,e,i,r);return o!==dn&&Bl(s,es(),o),lA}function ja(n,t,e){const i=ct();return ks(i,Cc(),t)&&ko(Rn(),Pi(),i,n,t,i[11],e,!0),ja}function my(n,t,e){const i=ct();if(ks(i,Cc(),t)){const s=Rn(),o=Pi();ko(s,o,i,n,t,pP(vo(s.data),o,i),e,!0)}return my}const Uu=void 0;var ij=["en",[["a","p"],["AM","PM"],Uu],[["AM","PM"],Uu,Uu],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Uu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Uu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Uu,"{1} 'at' {0}",Uu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function nj(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Vh={};function $s(n){const t=function sj(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=gR(t);if(e)return e;const i=t.split("-")[0];if(e=gR(i),e)return e;if("en"===i)return ij;throw new nt(701,!1)}function gR(n){return n in Vh||(Vh[n]=ni.ng&&ni.ng.common&&ni.ng.common.locales&&ni.ng.common.locales[n]),Vh[n]}var xt=(()=>((xt=xt||{})[xt.LocaleId=0]="LocaleId",xt[xt.DayPeriodsFormat=1]="DayPeriodsFormat",xt[xt.DayPeriodsStandalone=2]="DayPeriodsStandalone",xt[xt.DaysFormat=3]="DaysFormat",xt[xt.DaysStandalone=4]="DaysStandalone",xt[xt.MonthsFormat=5]="MonthsFormat",xt[xt.MonthsStandalone=6]="MonthsStandalone",xt[xt.Eras=7]="Eras",xt[xt.FirstDayOfWeek=8]="FirstDayOfWeek",xt[xt.WeekendRange=9]="WeekendRange",xt[xt.DateFormat=10]="DateFormat",xt[xt.TimeFormat=11]="TimeFormat",xt[xt.DateTimeFormat=12]="DateTimeFormat",xt[xt.NumberSymbols=13]="NumberSymbols",xt[xt.NumberFormats=14]="NumberFormats",xt[xt.CurrencyCode=15]="CurrencyCode",xt[xt.CurrencySymbol=16]="CurrencySymbol",xt[xt.CurrencyName=17]="CurrencyName",xt[xt.Currencies=18]="Currencies",xt[xt.Directionality=19]="Directionality",xt[xt.PluralCase=20]="PluralCase",xt[xt.ExtraData=21]="ExtraData",xt))();const Bh="en-US";let _R=Bh;function dA(n,t,e,i,r){if(n=tn(n),Array.isArray(n))for(let s=0;s>20;if(Rl(n)||!n.multi){const B=new _u(c,r,R),se=fA(a,t,r?f:f+x,v);-1===se?(jd(Sc(d,o),s,a),hA(s,n,t.length),t.push(a),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(B),o.push(B)):(e[se]=B,o[se]=B)}else{const B=fA(a,t,f+x,v),se=fA(a,t,f,f+x),me=B>=0&&e[B],Oe=se>=0&&e[se];if(r&&!Oe||!r&&!me){jd(Sc(d,o),s,a);const Fe=function n4(n,t,e,i,r){const s=new _u(n,e,R);return s.multi=[],s.index=t,s.componentProviders=0,UR(s,r,i&&!e),s}(r?t4:e4,e.length,r,i,c);!r&&Oe&&(e[se].providerFactory=Fe),hA(s,n,t.length,0),t.push(a),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(Fe),o.push(Fe)}else hA(s,n,B>-1?B:se,UR(e[r?se:B],c,!r&&i));!r&&i&&Oe&&e[se].componentProviders++}}}function hA(n,t,e,i){const r=Rl(t),s=function kD(n){return!!n.useClass}(t);if(r||s){const c=(s?tn(t.useClass):t).prototype.ngOnDestroy;if(c){const d=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const f=d.indexOf(e);-1===f?d.push(e,[i,c]):d[f+1].push(i,c)}else d.push(e,c)}}}function UR(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function fA(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Jj(n,t,e){const i=Rn();if(i.firstCreatePass){const r=go(n);dA(e,i.data,i.blueprint,r,!0),dA(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class ju{}class jR{}class $R extends ju{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tA(this);const i=Vs(t);this._bootstrapComponents=la(i.bootstrap),this._r3Injector=Gv(t,e,[{provide:ju,useValue:this},{provide:Il,useValue:this.componentFactoryResolver}],ai(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 mA extends jR{constructor(t){super(),this.moduleType=t}create(t){return new $R(this.moduleType,t)}}class r4 extends ju{constructor(t,e,i){super(),this.componentFactoryResolver=new tA(this),this.instance=null;const r=new ov([...t,{provide:ju,useValue:this},{provide:Il,useValue:this.componentFactoryResolver}],e||lh(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function by(n,t,e=null){return new r4(n,t,e).injector}function _A(n,t,e){const i=Jr()+n,r=ct();return r[i]===dn?Ha(r,i,e?t.call(e):t()):function fm(n,t){return n[t]}(r,i)}function wy(n,t,e,i){return ZR(ct(),Jr(),n,t,e,i)}function bm(n,t){const e=n[t];return e===dn?void 0:e}function ZR(n,t,e,i,r,s){const o=t+e;return ks(n,o,r)?Ha(n,o+1,s?i.call(s,r):i(r)):bm(n,o+1)}function JR(n,t,e,i,r,s,o){const a=t+e;return zu(n,a,r,s)?Ha(n,a+2,o?i.call(o,r,s):i(r,s)):bm(n,a+2)}function eI(n,t,e,i,r,s,o,a){const c=t+e;return function hy(n,t,e,i,r){const s=zu(n,t,e,i);return ks(n,t+2,r)||s}(n,c,r,s,o)?Ha(n,c+3,a?i.call(a,r,s,o):i(r,s,o)):bm(n,c+3)}function ui(n,t){const e=Rn();let i;const r=n+22;e.firstCreatePass?(i=function C4(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 s=i.factory||(i.factory=vl(i.type)),o=Xs(R);try{const a=Dc(!1),c=s();return Dc(a),function mU(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,ct(),r,c),c}finally{Xs(o)}}function wi(n,t,e){const i=n+22,r=ct(),s=Yi(r,i);return wm(r,i)?ZR(r,Jr(),t,s.transform,e,s):s.transform(e)}function wm(n,t){return n[1].data[t].pure}function vA(n){return t=>{setTimeout(n,void 0,t)}}const yt=class A4 extends b{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,c=e||(()=>null),d=i;if(t&&"object"==typeof t){const v=t;a=null===(r=v.next)||void 0===r?void 0:r.bind(v),c=null===(s=v.error)||void 0===s?void 0:s.bind(v),d=null===(o=v.complete)||void 0===o?void 0:o.bind(v)}this.__isAsync&&(c=vA(c),a&&(a=vA(a)),d&&(d=vA(d)));const f=super.subscribe({next:a,error:c,complete:d});return t instanceof Me&&t.add(f),f}};function M4(){return this._results[Hu()]()}class zh{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=Hu(),i=zh.prototype;i[e]||(i[e]=M4)}get changes(){return this._changes||(this._changes=new yt)}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=$r(t);(this._changesDetected=!function D_(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=k4,n})();const E4=fr,x4=class extends E4{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=oy(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(i)),ay(i,r,t),new um(r)}};function k4(){return Cy(K(),ct())}function Cy(n,t){return 4&n.type?new x4(t,n,Fc(n,t)):null}let Oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=T4,n})();function T4(){return aI(K(),ct())}const P4=Oi,sI=class extends P4{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Fc(this._hostTNode,this._hostLView)}get injector(){return new Sl(this._hostTNode,this._hostLView)}get parentInjector(){const t=ka(this._hostTNode,this._hostLView);if(Ud(t)){const e=Cl(t,this._hostLView),i=sa(t);return new Sl(e[1].data[i+8],e)}return new Sl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=oI(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const o=t.createEmbeddedView(e||{},s);return this.insert(o,r),o}createComponent(t,e,i,r,s){const o=t&&!function io(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const v=e||{};a=v.index,i=v.injector,r=v.projectableNodes,s=v.environmentInjector||v.ngModuleRef}const c=o?t:new dm(Jn(t)),d=i||this.parentInjector;if(!s&&null==c.ngModule){const x=(o?d:this.parentInjector).get(Fa,null);x&&(s=x)}const f=c.create(d,r,void 0,s);return this.insert(f.hostView,a),f}insert(t,e){const i=t._lView,r=i[1];if(function HC(n){return mo(n[3])}(i)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const v=i[3],x=new sI(v,v[6],v[3]);x.detach(x.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function yv(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i0)i.push(o[a/2]);else{const d=s[a+1],f=t[-c];for(let v=10;v{class n{constructor(e){this.appInits=e,this.resolve=Sy,this.reject=Sy,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{s.subscribe({complete:a,error:c})});e.push(o)}}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)(Re(Ay,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wh=new lt("AppId",{providedIn:"root",factory:function PI(){return`${kA()}${kA()}${kA()}`}});function kA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const RI=new lt("Platform Initializer"),Gh=new lt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),II=new lt("appBootstrapListener"),Ts=new lt("AnimationModuleType");let s$=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const fa=new lt("LocaleId",{providedIn:"root",factory:()=>qn(fa,qt.Optional|qt.SkipSelf)||function o$(){return"undefined"!=typeof $localize&&$localize.locale||Bh}()});class l${constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let TA=(()=>{class n{compileModuleSync(e){return new mA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=la(Vs(e).declarations).reduce((o,a)=>{const c=Jn(a);return c&&o.push(new dm(c)),o},[]);return new l$(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const d$=(()=>Promise.resolve(0))();function PA(n){"undefined"==typeof Zone?d$.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class jt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new yt(!1),this.onMicrotaskEmpty=new yt(!1),this.onStable=new yt(!1),this.onError=new yt(!1),"undefined"==typeof Zone)throw new nt(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new s("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 h$(){let n=ni.requestAnimationFrame,t=ni.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 m$(n){const t=()=>{!function p$(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ni,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,IA(n),n.isCheckStableRunning=!0,RA(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),IA(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return LI(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),NI(n)}},onInvoke:(e,i,r,s,o,a,c)=>{try{return LI(n),e.invoke(r,s,o,a,c)}finally{n.shouldCoalesceRunChangeDetection&&t(),NI(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,IA(n),RA(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jt.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(jt.isInAngularZone())throw new nt(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,f$,Sy,Sy);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const f$={};function RA(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 IA(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function LI(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function NI(n){n._nesting--,RA(n)}class g${constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yt,this.onMicrotaskEmpty=new yt,this.onStable=new yt,this.onError=new yt}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 VI=new lt(""),Ey=new lt("");let Dm,OA=(()=>{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,Dm||(function _$(n){Dm=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:()=>{jt.assertNotInAngularZone(),PA(()=>{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())PA(()=>{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 s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,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)(Re(jt),Re(FA),Re(Ey))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),FA=(()=>{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==Dm?void 0:Dm.findTestabilityInTree(this,e,i))&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),$a=null;const BI=new lt("AllowMultipleToken"),LA=new lt("PlatformDestroyListeners");class HI{constructor(t,e){this.name=t,this.token=e}}function UI(n,t,e=[]){const i=`Platform: ${t}`,r=new lt(i);return(s=[])=>{let o=NA();if(!o||o.injector.get(BI,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function b$(n){if($a&&!$a.get(BI,!1))throw new nt(400,!1);$a=n;const t=n.get($I);(function zI(n){const t=n.get(RI,null);t&&t.forEach(e=>e())})(n)}(function jI(n=[],t){return Ii.create({name:t,providers:[{provide:Iu,useValue:"platform"},{provide:LA,useValue:new Set([()=>$a=null])},...n]})}(a,i))}return function C$(n){const t=NA();if(!t)throw new nt(401,!1);return t}()}}function NA(){var n;return null!==(n=null==$a?void 0:$a.get($I))&&void 0!==n?n:null}let $I=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function D$(n,t){let e;return e="noop"===n?new g$:("zone.js"===n?void 0:n)||new jt(t),e}(null==i?void 0:i.ngZone,function WI(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:jt,useValue:r}];return r.run(()=>{const o=Ii.create({providers:s,parent:this.injector,name:e.moduleType.name}),a=e.create(o),c=a.injector.get(aa,null);if(!c)throw new nt(402,!1);return r.runOutsideAngular(()=>{const d=r.onError.subscribe({next:f=>{c.handleError(f)}});a.onDestroy(()=>{xy(this._modules,a),d.unsubscribe()})}),function GI(n,t,e){try{const i=e();return pm(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(c,r,()=>{const d=a.injector.get(My);return d.runInitializers(),d.donePromise.then(()=>(function vR(n){gs(n,"Expected localeId to be defined"),"string"==typeof n&&(_R=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(fa,Bh)||Bh),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=qI({},i);return function v$(n,t,e){const i=new mA(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(qh);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new nt(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 nt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(LA,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)(Re(Ii))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function qI(n,t){return Array.isArray(t)?t.reduce(qI,n):Object.assign(Object.assign({},n),t)}let qh=(()=>{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 s=new _e(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),o=new _e(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{jt.assertNotInAngularZone(),PA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{jt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=Ni(s,o.pipe(yd()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof av;if(!this._injector.get(My).done)throw!r&&function jh(n){const t=Jn(n)||Dr(n)||er(n);return null!==t&&t.standalone}(e),new nt(405,false);let o;o=r?e:this._injector.get(Il).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const a=function y$(n){return n.isBoundToModule}(o)?void 0:this._injector.get(ju),d=o.create(Ii.NULL,[],i||o.selector,a),f=d.location.nativeElement,v=d.injector.get(VI,null);return null==v||v.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),xy(this.components,d),null==v||v.unregisterApplication(f)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new nt(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;xy(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(II,[]).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),()=>xy(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new nt(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)(Re(jt),Re(Fa),Re(aa))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xy(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let KI=!0,XI=!1;function Sm(){return XI=!0,KI}let Xn=(()=>{class n{}return n.__NG_ELEMENT_ID__=M$,n})();function M$(n){return function E$(n,t,e){if(Md(n)&&!e){const i=Hs(n.index,t);return new um(i,i)}return 47&n.type?new um(t[16],t):null}(K(),ct(),16==(16&n))}class eO{constructor(){}supports(t){return hm(t)}create(t){return new I$(t)}}const R$=(n,t)=>t;class I${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||R$}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,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,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 s;return null===t?s=this._itTail:(s=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,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new O$(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,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,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._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 tO),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 tO),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 O${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 F${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 tO{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new F$,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 nO(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 s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),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 s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new N$(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 N${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 rO(){return new qo([new eO])}let qo=(()=>{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||rO()),deps:[[n,new Co,new Cs]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new nt(901,!1)}}return n.\u0275prov=dt({token:n,providedIn:"root",factory:rO}),n})();function sO(){return new Am([new iO])}let Am=(()=>{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||sO()),deps:[[n,new Co,new Cs]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new nt(901,!1)}}return n.\u0275prov=dt({token:n,providedIn:"root",factory:sO}),n})();const H$=UI(null,"core",[]);let z$=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(Re(qh))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();function Ul(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let Py=null;function Wa(){return Py}const Qt=new lt("DocumentToken");let Ry=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return function W$(){return Re(oO)}()},providedIn:"platform"}),n})();const G$=new lt("Location Initialized");let oO=(()=>{class n extends Ry{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wa().getBaseHref(this._doc)}onPopState(e){const i=Wa().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Wa().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){aO()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){aO()?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)(Re(Qt))},n.\u0275prov=dt({token:n,factory:function(){return function q$(){return new oO(Re(Qt))}()},providedIn:"platform"}),n})();function aO(){return!!window.history.pushState}function UA(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 lO(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 jl(n){return n&&"?"!==n[0]?"?"+n:n}let Wu=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return qn(cO)},providedIn:"root"}),n})();const jA=new lt("appBaseHref");let cO=(()=>{class n extends Wu{constructor(e,i){var r,s,o;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(o=null!==(r=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==r?r:null===(s=qn(Qt).location)||void 0===s?void 0:s.origin)&&void 0!==o?o:""}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 UA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+jl(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+jl(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+jl(s));this._platformLocation.replaceState(e,i,o)}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)(Re(Ry),Re(jA,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Y$=(()=>{class n extends Wu{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=UA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+jl(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+jl(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}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)(Re(Ry),Re(jA,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Iy=(()=>{class n{constructor(e){this._subject=new yt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=lO(uO(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+jl(i))}normalize(e){return n.stripTrailingSlash(function X$(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,uO(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+jl(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jl(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=jl,n.joinWithSlash=UA,n.stripTrailingSlash=lO,n.\u0275fac=function(e){return new(e||n)(Re(Wu))},n.\u0275prov=dt({token:n,factory:function(){return function K$(){return new Iy(Re(Wu))}()},providedIn:"root"}),n})();function uO(n){return n.replace(/\/index.html$/,"")}var ao=(()=>((ao=ao||{})[ao.Decimal=0]="Decimal",ao[ao.Percent=1]="Percent",ao[ao.Currency=2]="Currency",ao[ao.Scientific=3]="Scientific",ao))(),pr=(()=>((pr=pr||{})[pr.Format=0]="Format",pr[pr.Standalone=1]="Standalone",pr))(),zn=(()=>((zn=zn||{})[zn.Narrow=0]="Narrow",zn[zn.Abbreviated=1]="Abbreviated",zn[zn.Wide=2]="Wide",zn[zn.Short=3]="Short",zn))(),Qi=(()=>((Qi=Qi||{})[Qi.Short=0]="Short",Qi[Qi.Medium=1]="Medium",Qi[Qi.Long=2]="Long",Qi[Qi.Full=3]="Full",Qi))(),on=(()=>((on=on||{})[on.Decimal=0]="Decimal",on[on.Group=1]="Group",on[on.List=2]="List",on[on.PercentSign=3]="PercentSign",on[on.PlusSign=4]="PlusSign",on[on.MinusSign=5]="MinusSign",on[on.Exponential=6]="Exponential",on[on.SuperscriptingExponent=7]="SuperscriptingExponent",on[on.PerMille=8]="PerMille",on[on.Infinity=9]="Infinity",on[on.NaN=10]="NaN",on[on.TimeSeparator=11]="TimeSeparator",on[on.CurrencyDecimal=12]="CurrencyDecimal",on[on.CurrencyGroup=13]="CurrencyGroup",on))();function Oy(n,t){return Ko($s(n)[xt.DateFormat],t)}function Fy(n,t){return Ko($s(n)[xt.TimeFormat],t)}function Ly(n,t){return Ko($s(n)[xt.DateTimeFormat],t)}function Yo(n,t){const e=$s(n),i=e[xt.NumberSymbols][t];if(void 0===i){if(t===on.CurrencyDecimal)return e[xt.NumberSymbols][on.Decimal];if(t===on.CurrencyGroup)return e[xt.NumberSymbols][on.Group]}return i}function hO(n){if(!n[xt.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[xt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ko(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function WA(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const cW=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Mm={},uW=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Br=(()=>((Br=Br||{})[Br.Short=0]="Short",Br[Br.ShortGMT=1]="ShortGMT",Br[Br.Long=2]="Long",Br[Br.Extended=3]="Extended",Br))(),an=(()=>((an=an||{})[an.FullYear=0]="FullYear",an[an.Month=1]="Month",an[an.Date=2]="Date",an[an.Hours=3]="Hours",an[an.Minutes=4]="Minutes",an[an.Seconds=5]="Seconds",an[an.FractionalSeconds=6]="FractionalSeconds",an[an.Day=7]="Day",an))(),En=(()=>((En=En||{})[En.DayPeriods=0]="DayPeriods",En[En.Days=1]="Days",En[En.Months=2]="Months",En[En.Eras=3]="Eras",En))();function dW(n,t,e,i){let r=function bW(n){if(mO(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,s=1,o=1]=n.split("-").map(a=>+a);return Ny(r,s-1,o)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(cW))return function wW(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,s=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-e,a=Number(n[5]||0)-i,c=Number(n[6]||0),d=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(t,o,a,c,d),t}(i)}const t=new Date(n);if(!mO(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=$l(e,t)||t;let a,o=[];for(;t;){if(a=uW.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const f=o.pop();if(!f)break;t=f}}let c=r.getTimezoneOffset();i&&(c=pO(i,c),r=function yW(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function vW(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(pO(t,r)-r))}(r,i,!0));let d="";return o.forEach(f=>{const v=function _W(n){if(qA[n])return qA[n];let t;switch(n){case"G":case"GG":case"GGG":t=Mi(En.Eras,zn.Abbreviated);break;case"GGGG":t=Mi(En.Eras,zn.Wide);break;case"GGGGG":t=Mi(En.Eras,zn.Narrow);break;case"y":t=Tr(an.FullYear,1,0,!1,!0);break;case"yy":t=Tr(an.FullYear,2,0,!0,!0);break;case"yyy":t=Tr(an.FullYear,3,0,!1,!0);break;case"yyyy":t=Tr(an.FullYear,4,0,!1,!0);break;case"Y":t=zy(1);break;case"YY":t=zy(2,!0);break;case"YYY":t=zy(3);break;case"YYYY":t=zy(4);break;case"M":case"L":t=Tr(an.Month,1,1);break;case"MM":case"LL":t=Tr(an.Month,2,1);break;case"MMM":t=Mi(En.Months,zn.Abbreviated);break;case"MMMM":t=Mi(En.Months,zn.Wide);break;case"MMMMM":t=Mi(En.Months,zn.Narrow);break;case"LLL":t=Mi(En.Months,zn.Abbreviated,pr.Standalone);break;case"LLLL":t=Mi(En.Months,zn.Wide,pr.Standalone);break;case"LLLLL":t=Mi(En.Months,zn.Narrow,pr.Standalone);break;case"w":t=GA(1);break;case"ww":t=GA(2);break;case"W":t=GA(1,!0);break;case"d":t=Tr(an.Date,1);break;case"dd":t=Tr(an.Date,2);break;case"c":case"cc":t=Tr(an.Day,1);break;case"ccc":t=Mi(En.Days,zn.Abbreviated,pr.Standalone);break;case"cccc":t=Mi(En.Days,zn.Wide,pr.Standalone);break;case"ccccc":t=Mi(En.Days,zn.Narrow,pr.Standalone);break;case"cccccc":t=Mi(En.Days,zn.Short,pr.Standalone);break;case"E":case"EE":case"EEE":t=Mi(En.Days,zn.Abbreviated);break;case"EEEE":t=Mi(En.Days,zn.Wide);break;case"EEEEE":t=Mi(En.Days,zn.Narrow);break;case"EEEEEE":t=Mi(En.Days,zn.Short);break;case"a":case"aa":case"aaa":t=Mi(En.DayPeriods,zn.Abbreviated);break;case"aaaa":t=Mi(En.DayPeriods,zn.Wide);break;case"aaaaa":t=Mi(En.DayPeriods,zn.Narrow);break;case"b":case"bb":case"bbb":t=Mi(En.DayPeriods,zn.Abbreviated,pr.Standalone,!0);break;case"bbbb":t=Mi(En.DayPeriods,zn.Wide,pr.Standalone,!0);break;case"bbbbb":t=Mi(En.DayPeriods,zn.Narrow,pr.Standalone,!0);break;case"B":case"BB":case"BBB":t=Mi(En.DayPeriods,zn.Abbreviated,pr.Format,!0);break;case"BBBB":t=Mi(En.DayPeriods,zn.Wide,pr.Format,!0);break;case"BBBBB":t=Mi(En.DayPeriods,zn.Narrow,pr.Format,!0);break;case"h":t=Tr(an.Hours,1,-12);break;case"hh":t=Tr(an.Hours,2,-12);break;case"H":t=Tr(an.Hours,1);break;case"HH":t=Tr(an.Hours,2);break;case"m":t=Tr(an.Minutes,1);break;case"mm":t=Tr(an.Minutes,2);break;case"s":t=Tr(an.Seconds,1);break;case"ss":t=Tr(an.Seconds,2);break;case"S":t=Tr(an.FractionalSeconds,1);break;case"SS":t=Tr(an.FractionalSeconds,2);break;case"SSS":t=Tr(an.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=By(Br.Short);break;case"ZZZZZ":t=By(Br.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=By(Br.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=By(Br.Long);break;default:return null}return qA[n]=t,t}(f);d+=v?v(r,e,c):"''"===f?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function Ny(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function $l(n,t){const e=function Q$(n){return $s(n)[xt.LocaleId]}(n);if(Mm[e]=Mm[e]||{},Mm[e][t])return Mm[e][t];let i="";switch(t){case"shortDate":i=Oy(n,Qi.Short);break;case"mediumDate":i=Oy(n,Qi.Medium);break;case"longDate":i=Oy(n,Qi.Long);break;case"fullDate":i=Oy(n,Qi.Full);break;case"shortTime":i=Fy(n,Qi.Short);break;case"mediumTime":i=Fy(n,Qi.Medium);break;case"longTime":i=Fy(n,Qi.Long);break;case"fullTime":i=Fy(n,Qi.Full);break;case"short":const r=$l(n,"shortTime"),s=$l(n,"shortDate");i=Vy(Ly(n,Qi.Short),[r,s]);break;case"medium":const o=$l(n,"mediumTime"),a=$l(n,"mediumDate");i=Vy(Ly(n,Qi.Medium),[o,a]);break;case"long":const c=$l(n,"longTime"),d=$l(n,"longDate");i=Vy(Ly(n,Qi.Long),[c,d]);break;case"full":const f=$l(n,"fullTime"),v=$l(n,"fullDate");i=Vy(Ly(n,Qi.Full),[f,v])}return i&&(Mm[e][t]=i),i}function Vy(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ma(n,t,e="-",i,r){let s="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,s=e));let o=String(n);for(;o.length0||a>-e)&&(a+=e),n===an.Hours)0===a&&-12===e&&(a=12);else if(n===an.FractionalSeconds)return function hW(n,t){return ma(n,3).substring(0,t)}(a,t);const c=Yo(o,on.MinusSign);return ma(a,t,c,i,r)}}function Mi(n,t,e=pr.Format,i=!1){return function(r,s){return function pW(n,t,e,i,r,s){switch(e){case En.Months:return function eW(n,t,e){const i=$s(n),s=Ko([i[xt.MonthsFormat],i[xt.MonthsStandalone]],t);return Ko(s,e)}(t,r,i)[n.getMonth()];case En.Days:return function J$(n,t,e){const i=$s(n),s=Ko([i[xt.DaysFormat],i[xt.DaysStandalone]],t);return Ko(s,e)}(t,r,i)[n.getDay()];case En.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const d=function rW(n){const t=$s(n);return hO(t),(t[xt.ExtraData][2]||[]).map(i=>"string"==typeof i?WA(i):[WA(i[0]),WA(i[1])])}(t),f=function sW(n,t,e){const i=$s(n);hO(i);const s=Ko([i[xt.ExtraData][0],i[xt.ExtraData][1]],t)||[];return Ko(s,e)||[]}(t,r,i),v=d.findIndex(x=>{if(Array.isArray(x)){const[B,se]=x,me=o>=B.hours&&a>=B.minutes,Oe=o0?Math.floor(r/60):Math.ceil(r/60);switch(n){case Br.Short:return(r>=0?"+":"")+ma(o,2,s)+ma(Math.abs(r%60),2,s);case Br.ShortGMT:return"GMT"+(r>=0?"+":"")+ma(o,1,s);case Br.Long:return"GMT"+(r>=0?"+":"")+ma(o,2,s)+":"+ma(Math.abs(r%60),2,s);case Br.Extended:return 0===i?"Z":(r>=0?"+":"")+ma(o,2,s)+":"+ma(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}function fO(n){return Ny(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function GA(n,t=!1){return function(e,i){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=fO(e),o=function gW(n){const t=Ny(n,0,1).getDay();return Ny(n,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return ma(r,n,Yo(i,on.MinusSign))}}function zy(n,t=!1){return function(e,i){return ma(fO(e).getFullYear(),n,Yo(i,on.MinusSign),t)}}const qA={};function pO(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function mO(n){return n instanceof Date&&!isNaN(n.valueOf())}const CW=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function QA(n){const t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}function yO(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Gu=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,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&&(hm(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 ${ai(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)(R(qo),R(Am),R(bt),R(Us))},n.\u0275dir=qe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class FW{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 zc=(()=>{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,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new FW(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),CO(a,r)}});for(let r=0,s=i.length;r{CO(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(fr),R(qo))},n.\u0275dir=qe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function CO(n,t){n.context.$implicit=t.item}let mr=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new NW,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){DO("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){DO("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)(R(Oi),R(fr))},n.\u0275dir=qe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class NW{constructor(){this.$implicit=null,this.ngIf=null}}function DO(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ai(t)}'.`)}class JA{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let qu=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new JA(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(fr),R(qu,9))},n.\u0275dir=qe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),SO=(()=>{class n{constructor(e,i,r){r._addDefault(new JA(e,i))}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(fr),R(qu,9))},n.\u0275dir=qe({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),MO=(()=>{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,s]=e.split("."),o=-1===r.indexOf("-")?void 0:Es.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${i}${s}`:i,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_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)(R(bt),R(Am),R(Us))},n.\u0275dir=qe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})();function ga(n,t){return new nt(2100,!1)}class HW{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class zW{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const UW=new zW,jW=new HW;let Ga=(()=>{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(pm(e))return UW;if(EP(e))return jW;throw ga()}_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)(R(Xn,16))},n.\u0275pipe=ki({name:"async",type:n,pure:!1,standalone:!0}),n})(),EO=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw ga();return e.toUpperCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"uppercase",type:n,pure:!0,standalone:!0}),n})();const qW=new lt("DATE_PIPE_DEFAULT_TIMEZONE");let eM=(()=>{class n{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",r,s){var o;if(null==e||""===e||e!=e)return null;try{return dW(e,i,s||this.locale,null!==(o=null!=r?r:this.defaultTimezone)&&void 0!==o?o:void 0)}catch(a){throw ga()}}}return n.\u0275fac=function(e){return new(e||n)(R(fa,16),R(qW,24))},n.\u0275pipe=ki({name:"date",type:n,pure:!0,standalone:!0}),n})(),tM=(()=>{class n{constructor(e){this._locale=e}transform(e,i,r){if(!function nM(n){return!(null==n||""===n||n!=n)}(e))return null;r=r||this._locale;try{return function xW(n,t,e){return function KA(n,t,e,i,r,s,o=!1){let a="",c=!1;if(isFinite(n)){let d=function TW(n){let i,r,s,o,a,t=Math.abs(n)+"",e=0;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(r<0&&(r=s),r+=+t.slice(s+1),t=t.substring(0,s)):r<0&&(r=t.length),s=0;"0"===t.charAt(s);s++);if(s===(a=t.length))i=[0],r=1;else{for(a--;"0"===t.charAt(a);)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(t.charAt(s))}return r>22&&(i=i.splice(0,21),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(n);o&&(d=function kW(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(d));let f=t.minInt,v=t.minFrac,x=t.maxFrac;if(s){const et=s.match(CW);if(null===et)throw new Error(`${s} is not a valid digit info`);const $e=et[1],ot=et[3],Tt=et[5];null!=$e&&(f=QA($e)),null!=ot&&(v=QA(ot)),null!=Tt?x=QA(Tt):null!=ot&&v>x&&(x=v)}!function PW(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,r=i.length-n.integerLen;const s=Math.min(Math.max(t,r),e);let o=s+n.integerLen,a=i[o];if(o>0){i.splice(Math.max(n.integerLen,o));for(let v=o;v=5)if(o-1<0){for(let v=0;v>o;v--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[o-1]++;for(;r=d?se.pop():c=!1),x>=10?1:0},0);f&&(i.unshift(f),n.integerLen++)}(d,v,x);let B=d.digits,se=d.integerLen;const me=d.exponent;let Oe=[];for(c=B.every(et=>!et);se0?Oe=B.splice(se,B.length):(Oe=B,B=[0]);const Fe=[];for(B.length>=t.lgSize&&Fe.unshift(B.splice(-t.lgSize,B.length).join(""));B.length>t.gSize;)Fe.unshift(B.splice(-t.gSize,B.length).join(""));B.length&&Fe.unshift(B.join("")),a=Fe.join(Yo(e,i)),Oe.length&&(a+=Yo(e,r)+Oe.join("")),me&&(a+=Yo(e,on.Exponential)+"+"+me)}else a=Yo(e,on.Infinity);return a=n<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(n,function XA(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";e.posPre=a.substring(0,a.indexOf("#"));for(let f=0;f{class n{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw ga();return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"slice",type:n,pure:!1,standalone:!0}),n})(),_a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const TO="browser";function Wl(n){return n===TO}let s5=(()=>{class n{}return n.\u0275prov=dt({token:n,providedIn:"root",factory:()=>new o5(Re(Qt),window)}),n})();class o5{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function a5(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=PO(this.window.history)||PO(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function PO(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class RO{}class rM extends class l5 extends class $${}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function j$(n){Py||(Py=n)}(new rM)}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 c5(){return km=km||document.querySelector("base"),km?km.getAttribute("href"):null}();return null==e?null:function u5(n){jy=jy||document.createElement("a"),jy.setAttribute("href",n);const t=jy.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){km=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yO(document.cookie,t)}}let jy,km=null;const IO=new lt("TRANSITION_ID"),h5=[{provide:Ay,useFactory:function d5(n,t,e){return()=>{e.get(My).donePromise.then(()=>{const i=Wa(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const $y=new lt("EventManagerPlugins");let Wy=(()=>{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 s=0;s{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=dt({token:n,factory:n.\u0275fac}),n})(),Tm=(()=>{class n extends FO{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}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(LO),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(LO))}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();function LO(n){Wa().remove(n)}const sM={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/"},oM=/%COMP%/g;function Gy(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let qy=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new aM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Js.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new b5(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Js.ShadowDom:return new w5(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Gy(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)(Re(Wy),Re(Tm),Re(Wh))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class aM{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(sM[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(zO(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(zO(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 s=sM[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=sM[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&(Es.DashCase|Es.Important)?t.style.setProperty(e,i,r&Es.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Es.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,BO(i)):this.eventManager.addEventListener(t,e,BO(i))}}function zO(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class b5 extends aM{constructor(t,e,i,r){super(t),this.component=i;const s=Gy(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function _5(n){return"_ngcontent-%COMP%".replace(oM,n)}(r+"-"+i.id),this.hostAttr=function v5(n){return"_nghost-%COMP%".replace(oM,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 w5 extends aM{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 s=Gy(r.id,r.styles,[]);for(let o=0;o{class n extends OO{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)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const UO=["alt","control","meta","shift"],S5={"\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"},jO={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"},A5={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let M5=(()=>{class n extends OO{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wa().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(UO.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),o+=c+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function E5(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&&jO.hasOwnProperty(t)&&(t=jO[t]))}return S5[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UO.forEach(s=>{s!=r&&(0,A5[s])(e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const P5=UI(H$,"browser",[{provide:Gh,useValue:TO},{provide:RI,useValue:function x5(){rM.makeCurrent()},multi:!0},{provide:Qt,useFactory:function T5(){return function O_(n){mp=n}(document),document},deps:[]}]),WO=new lt(""),GO=[{provide:Ey,useClass:class f5{addToWindow(t){ni.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ni.getAllAngularTestabilities=()=>t.getAllTestabilities(),ni.getAllAngularRootElements=()=>t.getAllRootElements(),ni.frameworkStabilizers||(ni.frameworkStabilizers=[]),ni.frameworkStabilizers.push(i=>{const r=ni.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(c){o=o||c,s--,0==s&&i(o)};r.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Wa().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},deps:[]},{provide:VI,useClass:OA,deps:[jt,FA,Ey]},{provide:OA,useClass:OA,deps:[jt,FA,Ey]}],qO=[{provide:Iu,useValue:"root"},{provide:aa,useFactory:function k5(){return new aa},deps:[]},{provide:$y,useClass:C5,multi:!0,deps:[Qt,jt,Gh]},{provide:$y,useClass:M5,multi:!0,deps:[Qt]},{provide:qy,useClass:qy,deps:[Wy,Tm,Wh]},{provide:Ol,useExisting:qy},{provide:FO,useExisting:Tm},{provide:Tm,useClass:Tm,deps:[Qt]},{provide:Wy,useClass:Wy,deps:[$y,jt]},{provide:RO,useClass:p5,deps:[]},[]];let YO=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Wh,useValue:e.appId},{provide:IO,useExisting:Wh},h5]}}}return n.\u0275fac=function(e){return new(e||n)(Re(WO,12))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[...qO,...GO],imports:[_a,z$]}),n})(),cM=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:function(e){let i=null;return i=e?new e:function I5(){return new cM(Re(Qt))}(),i},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let Yu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(e){let i=null;return i=e?new(e||n):Re(QO),i},providedIn:"root"}),n})(),QO=(()=>{class n extends Yu{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case jn.NONE:return i;case jn.HTML:return jo(i,"HTML")?As(i):K_(this._doc,String(i)).toString();case jn.STYLE:return jo(i,"Style")?As(i):i;case jn.SCRIPT:if(jo(i,"Script"))return As(i);throw new Error("unsafe value used in a script context");case jn.URL:return jo(i,"URL")?As(i):Tu(String(i));case jn.RESOURCE_URL:if(jo(i,"ResourceURL"))return As(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 V_(n){return new hD(n)}(e)}bypassSecurityTrustStyle(e){return function xu(n){return new fD(n)}(e)}bypassSecurityTrustScript(e){return function wp(n){return new pD(n)}(e)}bypassSecurityTrustUrl(e){return function B_(n){return new mD(n)}(e)}bypassSecurityTrustResourceUrl(e){return function H_(n){return new N_(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:function(e){let i=null;return i=e?new e:function H5(n){return new QO(n.get(Qt))}(Re(Ii)),i},providedIn:"root"}),n})();function Ft(n){return null!=n&&"false"!=`${n}`}function Gr(n,t=0){return ZO(n)?Number(n):t}function ZO(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Yy(n){return Array.isArray(n)?n:[n]}function Pr(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Gl(n){return n instanceof bt?n.nativeElement:n}function At(...n){return pi(n,ru(n))}const{isArray:U5}=Array;function dM(n){return z(t=>function j5(n,t){return U5(t)?n(...t):n(t)}(n,t))}const $5=["addListener","removeListener"],W5=["addEventListener","removeEventListener"],G5=["on","off"];function di(n,t,e,i){if(I(e)&&(i=e,e=void 0),i)return di(n,t,e).pipe(dM(i));const[r,s]=function K5(n){return I(n.addEventListener)&&I(n.removeEventListener)}(n)?W5.map(o=>a=>n[o](t,a,e)):function q5(n){return I(n.addListener)&&I(n.removeListener)}(n)?$5.map(JO(n,t)):function Y5(n){return I(n.on)&&I(n.off)}(n)?G5.map(JO(n,t)):[];if(!r&&at(n))return lr(o=>di(o,t,e))($n(n));if(!r)throw new TypeError("Invalid event target");return new _e(o=>{const a=(...c)=>o.next(1s(a)})}function JO(n,t){return e=>i=>n[e](t,i)}class X5 extends Me{constructor(t,e){super()}schedule(t,e=0){return this}}const Ky={setInterval(n,t,...e){const{delegate:i}=Ky;return null!=i&&i.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Ky;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class hM extends X5{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 Ky.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;Ky.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(s){i=!0,r=s||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,Te(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const Pm={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Pm;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(s=>{e=void 0,n(s)});return new Me(()=>null==e?void 0:e(r))},requestAnimationFrame(...n){const{delegate:t}=Pm;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Pm;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...n)},delegate:void 0},fM={now:()=>(fM.delegate||Date).now(),delegate:void 0};class Rm{constructor(t,e=Rm.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Rm.now=fM.now;class pM extends Rm{constructor(t,e=Rm.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 Xy=new class Z5 extends pM{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Q5 extends hM{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Pm.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);t.actions.some(r=>r.id===e)||(Pm.cancelAnimationFrame(e),t._scheduled=void 0)}});let mM,J5=1;const Qy={};function eF(n){return n in Qy&&(delete Qy[n],!0)}const eG={setImmediate(n){const t=J5++;return Qy[t]=!0,mM||(mM=Promise.resolve()),mM.then(()=>eF(t)&&n()),t},clearImmediate(n){eF(n)}},{setImmediate:tG,clearImmediate:nG}=eG,Zy={setImmediate(...n){const{delegate:t}=Zy;return((null==t?void 0:t.setImmediate)||tG)(...n)},clearImmediate(n){const{delegate:t}=Zy;return((null==t?void 0:t.clearImmediate)||nG)(n)},delegate:void 0},gM=new class rG extends pM{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class iG extends hM{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Zy.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);t.actions.some(r=>r.id===e)||(Zy.clearImmediate(e),t._scheduled=void 0)}}),Jy=new pM(hM),sG=Jy;function _M(n=0,t,e=sG){let i=-1;return null!=t&&(Vg(t)?e=t:i=t),new _e(r=>{let s=function aG(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},s)})}function vM(n,t=Jy){return function oG(n){return A((t,e)=>{let i=!1,r=null,s=null,o=!1;const a=()=>{if(null==s||s.unsubscribe(),s=null,i){i=!1;const d=r;r=null,e.next(d)}o&&e.complete()},c=()=>{s=null,o&&e.complete()};t.subscribe(N(e,d=>{i=!0,r=d,s||$n(n(d)).subscribe(s=N(e,a,c))},()=>{o=!0,(!i||!s||s.closed)&&e.complete()}))})}(()=>_M(n,t))}function ji(n,t){return A((e,i)=>{let r=0;e.subscribe(N(i,s=>n.call(t,s,r++)&&i.next(s)))})}function Ot(n){return A((t,e)=>{$n(n).subscribe(N(e,()=>e.complete(),S)),!e.closed&&t.subscribe(e)})}function Im(...n){return function lG(){return uc(1)}()(pi(n,ru(n)))}function cs(...n){const t=ru(n);return A((e,i)=>{(t?Im(n,e,t):Im(n,e)).subscribe(i)})}let yM;try{yM="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){yM=!1}let Yh,Zi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Wl(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&&!yM)&&"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)(Re(Gh))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const tF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function nF(){if(Yh)return Yh;if("object"!=typeof document||!document)return Yh=new Set(tF),Yh;let n=document.createElement("input");return Yh=new Set(tF.filter(t=>(n.setAttribute("type",t),n.type===t))),Yh}let Om,eb,Xu,bM;function Ku(n){return function cG(){if(null==Om&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Om=!0}))}finally{Om=Om||!1}return Om}()?n:!!n.capture}function iF(){if(null==Xu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xu=!1,Xu;if("scrollBehavior"in document.documentElement.style)Xu=!0;else{const n=Element.prototype.scrollTo;Xu=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Xu}function Fm(){if("object"!=typeof document||!document)return 0;if(null==eb){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),eb=0,0===n.scrollLeft&&(n.scrollLeft=1,eb=0===n.scrollLeft?1:2),n.remove()}return eb}function rF(n){if(function uG(){if(null==bM){const n="undefined"!=typeof document?document.head:null;bM=!(!n||!n.createShadowRoot&&!n.attachShadow)}return bM}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function sF(){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 Qu(n){return n.composedPath?n.composedPath()[0]:n.target}function wM(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const dG=new lt("cdk-dir-doc",{providedIn:"root",factory:function hG(){return qn(Qt)}}),fG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let us=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new yt,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function pG(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?fG.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)(Re(dG,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Lm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const mG=["contentWrapper"],gG=["*"],oF=new lt("VIRTUAL_SCROLL_STRATEGY");let Nm=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new b,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 _e(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(vM(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):At()}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(ji(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Gl(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>di(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)(Re(jt),Re(Zi),Re(Qt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aF=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new b,this._elementScrolled=new _e(o=>this.ngZone.runOutsideAngular(()=>di(this.elementRef.nativeElement,"scroll").pipe(Ot(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Fm()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Fm()?e.left=e.right:1==Fm()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;iF()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?r:i:"end"==e&&(e=o?i:r),o&&2==Fm()?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Fm()?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Nm),R(jt),R(us,8))},n.\u0275dir=qe({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})();const vG=new lt("VIRTUAL_SCROLLABLE");let lF=(()=>{class n extends aF{constructor(e,i,r,s){super(e,i,r,s)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Nm),R(jt),R(us,8))},n.\u0275dir=qe({type:n,features:[_t]}),n})(),Vm=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new b,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.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,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(vM(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)(Re(Zi),Re(jt),Re(Qt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wG="undefined"!=typeof requestAnimationFrame?Xy:gM;let CG=(()=>{class n extends lF{constructor(e,i,r,s,o,a,c,d){super(e,a,r,o),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=s,this.scrollable=d,this._platform=qn(Zi),this._detachedSubject=new b,this._renderedRangeSubject=new b,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new _e(f=>this._scrollStrategy.scrolledIndexChange.subscribe(v=>Promise.resolve().then(()=>this.ngZone.run(()=>f.next(v))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Me.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ft(e)}ngOnInit(){!this._platform.isBrowser||(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(cs(null),vM(0,wG)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ot(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function bG(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const s="horizontal"==this.orientation,o=s?"X":"Y";let c=`translate${o}(${Number((s&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(c+=` translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(null!=e?e:"horizontal"===this.orientation?"start":"top")-this.measureViewportOffset())}measureViewportOffset(e){var i;let r;const s="left",o="right",a="rtl"==(null===(i=this.dir)||void 0===i?void 0:i.value);r="start"==e?a?o:s:"end"==e?a?s:o:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Xn),R(jt),R(oF,8),R(us,8),R(Nm),R(Vm),R(vG,8))},n.\u0275cmp=Ct({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Hn(mG,7),2&e){let r;Dt(r=St())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&Kt("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[kt([{provide:aF,useFactory:(t,e)=>t||e,deps:[lF,n]}]),_t],ngContentSelectors:gG,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0,1),Vn(2),ee(),ft(3,"div",2)),2&e&&(ye(3),js("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),Kh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})(),tb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Lm,Kh,Lm,Kh]}),n})();function nb(n,t=we){return n=null!=n?n:DG,A((e,i)=>{let r,s=!0;e.subscribe(N(i,o=>{const a=t(o);(s||!n(r,a))&&(s=!1,r=a,i.next(o))}))})}function DG(n,t){return n===t}function Ci(n){return n<=0?()=>Ns:A((t,e)=>{let i=0;t.subscribe(N(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function CM(n){return z(()=>n)}function DM(n,t){return t?e=>Im(t.pipe(Ci(1),function SG(){return A((n,t)=>{n.subscribe(N(t,S))})}()),e.pipe(DM(n))):lr((e,i)=>n(e,i).pipe(Ci(1),CM(e)))}function _i(n,t,e){const i=I(n)||t||e?{next:n,error:t,complete:e}:n;return i?A((r,s)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let a=!0;r.subscribe(N(s,c=>{var d;null===(d=i.next)||void 0===d||d.call(i,c),s.next(c)},()=>{var c;a=!1,null===(c=i.complete)||void 0===c||c.call(i),s.complete()},c=>{var d;a=!1,null===(d=i.error)||void 0===d||d.call(i,c),s.error(c)},()=>{var c,d;a&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(d=i.finalize)||void 0===d||d.call(i)}))}):we}function ds(n,t){return A((e,i)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&i.complete();e.subscribe(N(i,c=>{null==r||r.unsubscribe();let d=0;const f=s++;$n(n(c,f)).subscribe(r=N(i,v=>i.next(t?t(c,v,f,d++):v),()=>{r=null,a()}))},()=>{o=!0,a()}))})}const{isArray:AG}=Array,{getPrototypeOf:MG,prototype:EG,keys:xG}=Object;function cF(n){if(1===n.length){const t=n[0];if(AG(t))return{args:t,keys:null};if(function kG(n){return n&&"object"==typeof n&&MG(n)===EG}(t)){const e=xG(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}function uF(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function qa(...n){const t=ru(n),e=Cf(n),{args:i,keys:r}=cF(n);if(0===i.length)return pi([],t);const s=new _e(function TG(n,t,e=we){return i=>{dF(t,()=>{const{length:r}=n,s=new Array(r);let o=r,a=r;for(let c=0;c{const d=pi(n[c],t);let f=!1;d.subscribe(N(i,v=>{s[c]=v,f||(f=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,t,r?o=>uF(r,o):we));return e?s.pipe(dM(e)):s}function dF(n,t,e){n?ea(e,n,t):t()}class SM extends b{constructor(t=1/0,e=1/0,i=fM){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;e||(i.push(t),!r&&i.push(s.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,s=r.slice();for(let o=0;o{let e=null;n._refCount++;const i=N(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class MM extends _e{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,D(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 Me;const e=this.getSubject();t.add(this.source.subscribe(N(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Me.EMPTY)}return t}refCount(){return AM()(this)}}function Bm(n){return!!n&&(n instanceof _e||I(n.lift)&&I(n.subscribe))}class EM{}function ib(n){return n&&"function"==typeof n.connect&&!(n instanceof MM)}class hF extends EM{constructor(t){super(),this._data=t}connect(){return Bm(this._data)?this._data:At(this._data)}disconnect(){}}class fF{applyChanges(t,e,i,r,s){t.forEachOperation((o,a,c)=>{let d,f;if(null==o.previousIndex){const v=i(o,a,c);d=e.createEmbeddedView(v.templateRef,v.context,v.index),f=1}else null==c?(e.remove(a),f=3):(d=e.get(a),e.move(d,c),f=2);s&&s({context:null==d?void 0:d.context,operation:f,record:o})})}detach(){}}class rb{constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new b,e&&e.length&&(t?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(s=>this._markSelected(s)),e.filter(s=>!i.has(s)).forEach(s=>this._unmarkSelected(s));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,t))return!0;return!1}return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let PG=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hm=new lt("_ViewRepeater"),RG=[[["caption"]],[["colgroup"],["col"]]],IG=["caption","colgroup, col"];function xM(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=Ft(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Xh=new lt("CDK_TABLE");let Qh=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Zh=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),sb=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class NG{}const VG=xM(NG);let ql=(()=>{class n extends VG{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=Ft(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)(R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,Qh,5),Dn(r,Zh,5),Dn(r,sb,5)),2&e){let s;Dt(s=St())&&(i.cell=s.first),Dt(s=St())&&(i.headerCell=s.first),Dt(s=St())&&(i.footerCell=s.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[kt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),_t]}),n})();class kM{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}let TM=(()=>{class n extends kM{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(R(ql),R(bt))},n.\u0275dir=qe({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[_t]}),n})(),PM=(()=>{class n extends kM{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const s=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(R(ql),R(bt))},n.\u0275dir=qe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[_t]}),n})();class gF{constructor(){this.tasks=[],this.endTasks=[]}}const RM=new lt("_COALESCED_STYLE_SCHEDULER");let _F=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new b}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 gF,this._getScheduleObservable().pipe(Ot(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new gF;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?pi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Ci(1))}}return n.\u0275fac=function(e){return new(e||n)(Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),IM=(()=>{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 zm?e.headerCell.template:this instanceof Um?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo))},n.\u0275dir=qe({type:n,features:[Zt]}),n})();class BG extends IM{}const HG=xM(BG);let zm=(()=>{class n extends HG{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo),R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[_t,Zt]}),n})();class zG extends IM{}const UG=xM(zG);let Um=(()=>{class n extends UG{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo),R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[_t,Zt]}),n})(),ob=(()=>{class n extends IM{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo),R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[_t]}),n})(),Yl=(()=>{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)(R(Oi))},n.\u0275dir=qe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),OM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({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&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),LM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({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&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),ab=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const vF=["top","bottom","left","right"];class jG{constructor(t,e,i,r,s=!0,o=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=o,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 s=0;s{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(x=>x)&&!i.some(x=>x))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,a=this._getCellWidths(s,r),c=this._getStickyStartColumnPositions(a,e),d=this._getStickyEndColumnPositions(a,i),f=e.lastIndexOf(!0),v=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const x="rtl"===this.direction,B=x?"right":"left",se=x?"left":"right";for(const me of t)for(let Oe=0;Oee[Oe]?me:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===v?[]:a.slice(v).map((me,Oe)=>i[Oe+v]?me:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],a=[],c=[];for(let f=0,v=0;f{var f,v;for(let x=0;x{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]);vF.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 vF)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 s=0;s0;s--)e[s]&&(i[s]=r,r+=t[s]);return i}}const NM=new lt("CDK_SPL");let lb=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(bt))},n.\u0275dir=qe({type:n,selectors:[["","rowOutlet",""]]}),n})(),cb=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(bt))},n.\u0275dir=qe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),ub=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(bt))},n.\u0275dir=qe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),db=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(bt))},n.\u0275dir=qe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),hb=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f,v,x,B){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=o,this._platform=c,this._viewRepeater=d,this._coalescedStyleScheduler=f,this._viewportRuler=v,this._stickyPositioningListener=x,this._ngZone=B,this._onDestroy=new b,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 yt,this.viewChange=new gr({start:0,end:Number.MAX_VALUE}),s||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=Ft(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ft(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(Ot(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(),ib(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,s,o)=>this._getEmbeddedViewArgs(r.item,o),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&&jt.isInAngularZone()?this._ngZone.onStable.pipe(Ci(1),Ot(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 s=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,s,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const s=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(o=>o.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((s,o)=>{this._addStickyColumnStyles([s],this._headerRowDefs[o])}),this._rowDefs.forEach(s=>{const o=[];for(let a=0;a{this._addStickyColumnStyles([s],this._footerRowDefs[o])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(o)?r.get(o):[];if(a.length){const c=a.shift();return c.dataIndex=i,c}return{data:e,rowDef:o,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),fb(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=fb(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=fb(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=fb(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(o,a)=>o||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(e,!1);return s&&this._forceRenderFooterRows(),i||r||s}_switchDataSource(e){this._data=[],ib(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;ib(this.dataSource)?e=this.dataSource.connect(this):Bm(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=At(this.dataSource)),this._renderChangeSubscription=e.pipe(Ot(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)),s=r.map(a=>a.sticky),o=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,s,o,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!s.when||s.when(i,e));else{let s=this._rowDefs.find(o=>o.when&&o.when(i,e))||this._defaultRowDef;s&&r.push(s)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,s={}){const o=e.viewContainer.createEmbeddedView(i.template,s,r);return this._renderCellTemplateForItem(i,s),o}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Yl.mostRecentCellOutlet&&Yl.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 s=this._document.createElement(r.tag);s.setAttribute("role","rowgroup");for(const o of r.outlets)s.appendChild(o.elementRef.nativeElement);e.appendChild(s)}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 jG(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:At()).pipe(Ot(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 s=r.createEmbeddedView(e.templateRef),o=s.rootNodes[0];1===s.rootNodes.length&&(null==o?void 0:o.nodeType)===this._document.ELEMENT_NODE&&(o.setAttribute("role","row"),o.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(R(qo),R(Xn),R(bt),bs("role"),R(us,8),R(Qt),R(Zi),R(Hm),R(RM),R(Vm),R(NM,12),R(jt,8))},n.\u0275cmp=Ct({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,ab,5),Dn(r,ql,5),Dn(r,ob,5),Dn(r,zm,5),Dn(r,Um,5)),2&e){let s;Dt(s=St())&&(i._noDataRow=s.first),Dt(s=St())&&(i._contentColumnDefs=s),Dt(s=St())&&(i._contentRowDefs=s),Dt(s=St())&&(i._contentHeaderRowDefs=s),Dt(s=St())&&(i._contentFooterRowDefs=s)}},viewQuery:function(e,i){if(1&e&&(Hn(lb,7),Hn(cb,7),Hn(ub,7),Hn(db,7)),2&e){let r;Dt(r=St())&&(i._rowOutlet=r.first),Dt(r=St())&&(i._headerRowOutlet=r.first),Dt(r=St())&&(i._footerRowOutlet=r.first),Dt(r=St())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&Kt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[kt([{provide:Xh,useExisting:n},{provide:Hm,useClass:fF},{provide:RM,useClass:_F},{provide:NM,useValue:null}])],ngContentSelectors:IG,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Ui(RG),Vn(0),Vn(1,1),oo(2,0)(3,1)(4,2)(5,3))},dependencies:[lb,cb,ub,db],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function fb(n,t){return n.concat(Array.from(t))}let WG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[tb]}),n})();function va(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function mb(n,t=Jy){return A((e,i)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const d=s;s=null,i.next(d)}};function c(){const d=o+n,f=t.now();if(f{s=d,o=t.now(),r||(r=t.schedule(c,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{s=r=null}))})}function DF(n){return ji((t,e)=>n<=e)}let SF=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t8=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Gl(e);return new _e(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new b,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(Re(SF))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AF=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new yt,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Gr(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(mb(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(R(t8),R(bt),R(jt))},n.\u0275dir=qe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),VM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[SF]}),n})(),n8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const MF=new Set;let Jh,i8=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):s8}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function r8(n){if(!MF.has(n))try{Jh||(Jh=document.createElement("style"),Jh.setAttribute("type","text/css"),document.head.appendChild(Jh)),Jh.sheet&&(Jh.sheet.insertRule(`@media ${n} {body{ }}`,0),MF.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function s8(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let jc=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new b}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return EF(Yy(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=qa(EF(Yy(e)).map(o=>this._registerQuery(o).observable));return s=Im(s.pipe(Ci(1)),s.pipe(DF(1),mb(0))),s.pipe(z(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:c,query:d})=>{a.matches=a.matches||c,a.breakpoints[d]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new _e(o=>{const a=c=>this._zone.run(()=>o.next(c));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(cs(i),z(({matches:o})=>({query:e,matches:o})),Ot(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(Re(i8),Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function EF(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Za_XSmall="(max-width: 599.98px)",Za_Small="(min-width: 600px) and (max-width: 959.98px)";function gb(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const kF="cdk-describedby-message",_b="cdk-describedby-host";let BM=0,HM=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+BM++,this._document=e,this._id=qn(Wh)+"-"+BM++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=zM(i,r);"string"!=typeof i?(TF(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){var s;if(!i||!this._isElementNode(e))return;const o=zM(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${_b}="${this._id}"]`);for(let r=0;r0!=r.indexOf(kF));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function o8(n,t,e){const i=gb(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(_b,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function a8(n,t,e){const r=gb(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(_b)}_isElementDescribedByMessage(e,i){const r=gb(e,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function zM(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function TF(n,t){n.id||(n.id=`${kF}-${t}-${BM++}`)}class UM extends class l8{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new b,this._typeaheadSubscription=Me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new b,this.change=new b,t instanceof zh&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(_i(e=>this._pressedLetters.push(e)),mb(t),ji(()=>this._pressedLetters.length>0),z(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||va(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof zh?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let c8=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function d8(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 u8(n){try{return n.frameElement}catch(t){return null}}(function y8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===RF(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=RF(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _8(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!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function v8(n){return!function f8(n){return function m8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function h8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function p8(n){return function g8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||PF(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function PF(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function RF(n){if(!PF(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class b8{constructor(t,e,i,r,s=!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,s||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(Ci(1)).subscribe(t)}}let w8=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new b8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(Re(c8),Re(jt),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C8=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Ft(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Ft(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=sF(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(w8),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Zt]}),n})();function jM(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function $M(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 D8=new lt("cdk-input-modality-detector-options"),S8={ignoreKeys:[18,17,224,91,16]},ef=Ku({passive:!0,capture:!0});let A8=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new gr(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,c;null!==(c=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)&&void 0!==c&&c.some(d=>d===o.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Qu(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(jM(o)?"keyboard":"mouse"),this._mostRecentTarget=Qu(o))},this._onTouchstart=o=>{$M(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Qu(o))},this._options=Object.assign(Object.assign({},S8),s),this.modalityDetected=this._modality.pipe(DF(1)),this.modalityChanged=this.modalityDetected.pipe(nb()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ef),r.addEventListener("mousedown",this._onMousedown,ef),r.addEventListener("touchstart",this._onTouchstart,ef)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ef),document.removeEventListener("mousedown",this._onMousedown,ef),document.removeEventListener("touchstart",this._onTouchstart,ef))}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi),Re(jt),Re(Qt),Re(D8,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const M8=new lt("liveAnnouncerElement",{providedIn:"root",factory:function E8(){return null}}),x8=new lt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let OF=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s{class n{constructor(e,i,r,s,o){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 b,this._rootNodeFocusAndBlurListener=a=>{for(let d=Qu(a);d;d=d.parentElement)"focus"===a.type?this._onFocus(a,d):this._onBlur(a,d)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Gl(e);if(!this._platform.isBrowser||1!==r.nodeType)return At(null);const s=rF(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new b,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Gl(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 s=Gl(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),"function"==typeof s.focus&&s.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),s=Qu(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),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,vb),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,vb)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ot(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!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,vb),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,vb),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,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,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 s=e.labels;if(s)for(let o=0;o{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new yt}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(ya))},n.\u0275dir=qe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const LF="cdk-high-contrast-black-on-white",NF="cdk-high-contrast-white-on-black",WM="cdk-high-contrast-active";let VF=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=qn(jc).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,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){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(WM,LF,NF),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(WM,LF):2===i&&e.add(WM,NF)}}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GM=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(Re(VF))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[VM]}),n})(),T8=(()=>{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})(),P8=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const I8=new lt("mat-sanity-checks",{providedIn:"root",factory:function R8(){return!0}});let yn=(()=>{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!wM()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(Re(VF),Re(I8,8),Re(Qt))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Lm,Lm]}),n})();function Ql(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ft(t)}}}function Zl(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 Jl(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ft(t)}}}function Ym(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Gr(e):this.defaultTabIndex}}}function qM(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}function O8(n){return class extends n{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new _e(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()}}}const YM=new lt("MAT_DATE_LOCALE",{providedIn:"root",factory:function F8(){return qn(fa)}});class sr{constructor(){this._localeChanges=new b,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const Ja=new lt("mat-date-formats");let Zu=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function HF(n,t,e="mat"){n.changes.pipe(cs(n)).subscribe(({length:i})=>{Km(t,`${e}-2-line`,!1),Km(t,`${e}-3-line`,!1),Km(t,`${e}-multi-line`,!1),2===i||3===i?Km(t,`${e}-${i}-line`,!0):i>3&&Km(t,`${e}-multi-line`,!0)})}function Km(n,t,e){n.nativeElement.classList.toggle(t,e)}let zF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn,yn]}),n})();class L8{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 UF={enterDuration:225,exitDuration:150},XM=Ku({passive:!0}),jF=["mousedown","touchstart"],$F=["mouseup","mouseleave","touchend","touchcancel"];class WF{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=Gl(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},UF),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function V8(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,c=e-r.top,d=s.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=a-o+"px",f.style.top=c-o+"px",f.style.height=2*o+"px",f.style.width=2*o+"px",null!=i.color&&(f.style.backgroundColor=i.color),f.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(f);const v=window.getComputedStyle(f),B=v.transitionDuration,se="none"===v.transitionProperty||"0s"===B||"0s, 0s"===B,me=new L8(this,f,i,se);f.style.transform="scale3d(1, 1, 1)",me.state=0,i.persistent||(this._mostRecentTransientRipple=me);let Oe=null;return!se&&(d||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Fe=()=>this._finishRippleTransition(me),et=()=>this._destroyRipple(me);f.addEventListener("transitionend",Fe),f.addEventListener("transitioncancel",et),Oe={onTransitionEnd:Fe,onTransitionCancel:et}}),this._activeRipples.set(me,Oe),(se||!d)&&this._finishRippleTransition(me),me}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i=Object.assign(Object.assign({},UF),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=Gl(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jF))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents($F),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=jM(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,XM)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(jF.forEach(t=>{this._triggerElement.removeEventListener(t,this,XM)}),this._pointerUpEventsRegistered&&$F.forEach(t=>{this._triggerElement.removeEventListener(t,this,XM)}))}}const GF=new lt("mat-ripple-global-options");let ec=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new WF(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)(R(bt),R(jt),R(Zi),R(GF,8),R(Ts,8))},n.\u0275dir=qe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Kt("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})(),Xm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn,yn]}),n})(),B8=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(R(Ts,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&Kt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),qF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn]}),n})();const H8=[[["caption"]],[["colgroup"],["col"]]],z8=["caption","colgroup, col"];let QM=(()=>{class n extends hb{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=Ct({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&Kt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[kt([{provide:Hm,useClass:fF},{provide:hb,useExisting:n},{provide:Xh,useExisting:n},{provide:RM,useClass:_F},{provide:NM,useValue:null}]),_t],ngContentSelectors:z8,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Ui(H8),Vn(0),Vn(1,1),oo(2,0)(3,1)(4,2)(5,3))},dependencies:[lb,cb,ub,db],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})(),ZM=(()=>{class n extends Qh{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matCellDef",""]],features:[kt([{provide:Qh,useExisting:n}]),_t]}),n})(),JM=(()=>{class n extends Zh{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matHeaderCellDef",""]],features:[kt([{provide:Zh,useExisting:n}]),_t]}),n})(),eE=(()=>{class n extends ql{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=qe({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[kt([{provide:ql,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),_t]}),n})(),tE=(()=>{class n extends TM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[_t]}),n})(),nE=(()=>{class n extends PM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[_t]}),n})(),YF=(()=>{class n extends zm{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[kt([{provide:zm,useExisting:n}]),_t]}),n})(),KF=(()=>{class n extends ob{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[kt([{provide:ob,useExisting:n}]),_t]}),n})(),XF=(()=>{class n extends OM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[kt([{provide:OM,useExisting:n}]),_t],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),QF=(()=>{class n extends LM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[kt([{provide:LM,useExisting:n}]),_t],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),Q8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[WG,yn,yn]}),n})();class J8 extends EM{constructor(t=[]){super(),this._renderData=new gr([]),this._filter=new gr(""),this._internalPageChanges=new b,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(ZO(r)){const s=Number(r);return s<9007199254740991?s:r}return r},this.sortData=(e,i)=>{const r=i.active,s=i.direction;return r&&""!=s?e.sort((o,a)=>{let c=this.sortingDataAccessor(o,r),d=this.sortingDataAccessor(a,r);const f=typeof c,v=typeof d;f!==v&&("number"===f&&(c+=""),"number"===v&&(d+=""));let x=0;return null!=c&&null!=d?c>d?x=1:c{const r=Object.keys(e).reduce((o,a)=>o+e[a]+"\u25ec","").toLowerCase(),s=i.trim().toLowerCase();return-1!=r.indexOf(s)},this._data=new gr(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?Ni(this._sort.sortChange,this._sort.initialized):At(null),i=this._paginator?Ni(this._paginator.page,this._internalPageChanges,this._paginator.initialized):At(null),s=qa([this._data,this._filter]).pipe(z(([c])=>this._filterData(c))),o=qa([s,e]).pipe(z(([c])=>this._orderData(c))),a=qa([o,i]).pipe(z(([c])=>this._pageData(c)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=a.subscribe(c=>this._renderData.next(c))}_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}}class e6 extends J8{}class iE extends e6{_updateChangeSubscription(){var t;this.initStreams();const e=this._sort,i=this._paginator,r=this._internalPageChanges,s=this._filter,o=this._renderData,a=e?Ni(e.sortChange,e.initialized):At(null),c=i?Ni(i.page,r,i.initialized):At(null),f=qa([this._data,s]).pipe(z(([B])=>this._filterData(B))),v=qa([f,a]).pipe(z(([B])=>this._orderData(B))),x=qa([v,c]).pipe(z(([B])=>this._pageData(B)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=new Me,this._renderChangesSubscription.add(x.subscribe(B=>this.dataToRender$.next(B))),this._renderChangesSubscription.add(this.dataOfRange$.subscribe(B=>o.next(B)))}initStreams(){this.streamsReady||(this.dataToRender$=new SM(1),this.dataOfRange$=new SM(1),this.streamsReady=!0)}}let t6=(()=>{class n{constructor(){this.indexChange=new b,this.stickyChange=new b,this.renderedRangeStream=new gr({start:0,end:0}),this.scrolledIndexChange=this.indexChange.pipe(nb()),this._dataLength=0}get dataLength(){return this._dataLength}set dataLength(e){this._dataLength=e,this.onDataLengthChanged()}attach(e){this.viewport=e,this.viewport.renderedRangeStream.subscribe(this.renderedRangeStream),this.onDataLengthChanged()}detach(){this.indexChange.complete(),this.stickyChange.complete(),this.renderedRangeStream.complete()}onContentScrolled(){this.updateContent()}onDataLengthChanged(){this.viewport&&this.viewport.setTotalContentSize(this.dataLength*this.rowHeight+this.headerHeight+this.footerHeight),this.updateContent()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(e,i){!this.viewport||!this.rowHeight||this.viewport.scrollToOffset((e-1)*this.rowHeight+this.headerHeight,i)}setConfig(e){const{rowHeight:i,headerHeight:r,footerHeight:s,bufferMultiplier:o}=e;this.rowHeight===i&&this.headerHeight===r&&this.footerHeight===s&&this.bufferMultiplier===o||(this.rowHeight=i,this.headerHeight=r,this.footerHeight=s,this.bufferMultiplier=o,this.onDataLengthChanged())}updateContent(){if(!this.viewport||!this.rowHeight)return;const e=this.viewport.getOffsetToRenderedContentStart(),i=e/this.rowHeight,r=Math.ceil(this.viewport.getViewportSize()/this.rowHeight),s=Math.ceil(r*this.bufferMultiplier),o=i+r+2*s,a=e+s*this.rowHeight,c=this.viewport.measureScrollOffset(),f=(c-a)/this.rowHeight;if(this.indexChange.next(c/this.rowHeight),Math.abs(f)<1)return this.viewport.setRenderedContentOffset(e),void this.viewport.setRenderedRange({start:i,end:o});if(0===e&&f<0)return this.viewport.setRenderedContentOffset(e),void this.viewport.setRenderedRange({start:i,end:o});const B=Math.sign(f)*Math.floor(Math.abs(f)),se=Math.max(0,e+B*this.rowHeight);this.viewport.setRenderedContentOffset(se);const me=Math.max(0,i+B);this.viewport.setRenderedRange({start:me,end:me+r+2*s}),this.stickyChange.next(se)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();function n6(n){return n.scrollStrategy}const ZF=".mat-header-row .mat-table-sticky, .mat-header-row.mat-table-sticky",JF=".mat-footer-row .mat-table-sticky, .mat-header-row.mat-table-sticky";let i6=(()=>{class n{constructor(e){this.zone=e,this.destroyed$=new b,this.rowHeight=48,this.headerEnabled=true,this.headerHeight=56,this.footerEnabled=false,this.footerHeight=48,this.bufferMultiplier=.7,this.scrollStrategy=new t6,this.dataSourceChanges=new b,this.resetStickyPositions=new b}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete(),this.dataSourceChanges.complete()}isStickyEnabled(){return!!this.scrollStrategy.viewport&&this.table._headerRowDefs.map(e=>e.sticky).reduce((e,i)=>e&&i,!0)}ngAfterContentInit(){const e=this.table._switchDataSource;this.table._switchDataSource=r=>{e.call(this.table,r),this.connectDataSource(r)};const i=this.table.updateStickyColumnStyles;this.table.updateStickyColumnStyles=()=>{const r=this.table._stickyColumnStylesNeedReset;i.call(this.table),r&&this.resetStickyPositions.next()},this.connectDataSource(this.table.dataSource),qa([this.scrollStrategy.stickyChange,this.resetStickyPositions.pipe(cs(void 0),DM(()=>this.getScheduleObservable()),_i(()=>{this.stickyPositions=null}))]).pipe(ji(()=>this.isStickyEnabled()),Ot(this.destroyed$)).subscribe(([r])=>{this.stickyPositions||this.initStickyPositions(),this.setSticky(r)})}connectDataSource(e){if(this.dataSourceChanges.next(),!(e instanceof iE))throw new Error("[tvsItemSize] requires TableVirtualScrollDataSource be set as [dataSource] of [mat-table]");e.dataToRender$.pipe(nb(),Ot(this.dataSourceChanges),Ot(this.destroyed$),_i(i=>this.scrollStrategy.dataLength=i.length),ds(i=>this.scrollStrategy.renderedRangeStream.pipe(z(({start:r,end:s})=>"number"!=typeof r||"number"!=typeof s?i:i.slice(r,s))))).subscribe(i=>{this.zone.run(()=>{e.dataOfRange$.next(i)})})}ngOnChanges(){this.scrollStrategy.setConfig({rowHeight:+this.rowHeight||48,headerHeight:this.headerEnabled?+this.headerHeight||56:0,footerHeight:this.footerEnabled?+this.footerHeight||48:0,bufferMultiplier:+this.bufferMultiplier||.7})}setSticky(e){this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(ZF).forEach(i=>{const r=i.parentElement;let s=0;this.stickyPositions.has(r)&&(s=this.stickyPositions.get(r)),i.style.top=s-e+"px"}),this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(JF).forEach(i=>{const r=i.parentElement;let s=0;this.stickyPositions.has(r)&&(s=this.stickyPositions.get(r)),i.style.bottom=`${-s+e}px`})}initStickyPositions(){this.stickyPositions=new Map,this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(ZF).forEach(e=>{const i=e.parentElement;this.stickyPositions.has(i)||this.stickyPositions.set(i,i.offsetTop)}),this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(JF).forEach(e=>{const i=e.parentElement;this.stickyPositions.has(i)||this.stickyPositions.set(i,-i.offsetTop)})}getScheduleObservable(){return this.zone.isStable?pi(Promise.resolve(void 0)):this.zone.onStable.pipe(Ci(1))}}return n.\u0275fac=function(e){return new(e||n)(R(jt))},n.\u0275dir=qe({type:n,selectors:[["cdk-virtual-scroll-viewport","tvsItemSize",""]],contentQueries:function(e,i,r){if(1&e&&Dn(r,QM,5),2&e){let s;Dt(s=St())&&(i.table=s.first)}},inputs:{rowHeight:["tvsItemSize","rowHeight"],headerEnabled:"headerEnabled",headerHeight:"headerHeight",footerEnabled:"footerEnabled",footerHeight:"footerHeight",bufferMultiplier:"bufferMultiplier"},features:[kt([{provide:oF,useFactory:n6,deps:[Pn(()=>n)]}]),Zt]}),n})(),r6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[[]]}),n})();const yb=J(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function eL(n){return new _e(t=>{$n(n()).subscribe(t)})}function ba(n,t){const e=I(n)?n:()=>n,i=r=>r.error(e());return new _e(t?r=>t.schedule(i,0,r):i)}function bb(n){return A((t,e)=>{let i=!1;t.subscribe(N(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function tL(n=s6){return A((t,e)=>{let i=!1;t.subscribe(N(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function s6(){return new yb}function tc(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ji((r,s)=>n(r,s,i)):we,Ci(1),e?bb(t):tL(()=>new yb))}function $c(n,t){return I(t)?lr(n,t,1):lr(n,1)}function tl(n){return A((t,e)=>{let s,i=null,r=!1;i=t.subscribe(N(e,void 0,void 0,o=>{s=$n(n(o,tl(n)(t))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}function o6(n,t,e,i,r){return(s,o)=>{let a=e,c=t,d=0;s.subscribe(N(o,f=>{const v=d++;c=a?n(c,f,v):(a=!0,f),i&&o.next(c)},r&&(()=>{a&&o.next(c),o.complete()})))}}function nL(n,t){return A(o6(n,t,arguments.length>=2,!0))}function rE(n){return n<=0?()=>Ns:A((t,e)=>{let i=[];t.subscribe(N(e,r=>{i.push(r),n{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function iL(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ji((r,s)=>n(r,s,i)):we,rE(1),e?bb(t):tL(()=>new yb))}function rL(n,t=!1){return A((e,i)=>{let r=0;e.subscribe(N(i,s=>{const o=n(s,r++);(o||t)&&i.next(s),!o&&i.complete()}))})}function wb(n){return A((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const In="primary";class a6{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function tf(n){return new a6(n)}function l6(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[s]===r)}return n===t}function oL(n){return Array.prototype.concat.apply([],n)}function aL(n){return n.length>0?n[n.length-1]:null}function hs(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function nc(n){return sA(n)?n:pm(n)?pi(Promise.resolve(n)):At(n)}const d6={exact:function uL(n,t,e){if(!ed(n.segments,t.segments)||!Cb(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!uL(n.children[i],t.children[i],e))return!1;return!0},subset:dL},lL={exact:function h6(n,t){return nl(n,t)},subset:function f6(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>sL(n[e],t[e]))},ignored:()=>!0};function cL(n,t,e){return d6[e.paths](n.root,t.root,e.matrixParams)&&lL[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function dL(n,t,e){return hL(n,t,t.segments,e)}function hL(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ed(r,e)||t.hasChildren()||!Cb(r,e,i))}if(n.segments.length===e.length){if(!ed(n.segments,e)||!Cb(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!dL(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(ed(n.segments,r)&&Cb(n.segments,r,i)&&n.children[In])&&hL(n.children[In],t,s,i)}}function Cb(n,t,e){return t.every((i,r)=>lL[e](n[r].parameters,i.parameters))}class Ju{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tf(this.queryParams)),this._queryParamMap}toString(){return g6.serialize(this)}}class Bn{constructor(t,e){this.segments=t,this.children=e,this.parent=null,hs(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Db(this)}}class Qm{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=tf(this.parameters)),this._parameterMap}toString(){return gL(this)}}function ed(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let fL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return new oE},providedIn:"root"}),n})();class oE{parse(t){const e=new A6(t);return new Ju(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Zm(t.root,!0)}`,i=function y6(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Sb(e)}=${Sb(r)}`).join("&"):`${Sb(e)}=${Sb(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function _6(n){return encodeURI(n)}(t.fragment)}`:""}`}}const g6=new oE;function Db(n){return n.segments.map(t=>gL(t)).join("/")}function Zm(n,t){if(!n.hasChildren())return Db(n);if(t){const e=n.children[In]?Zm(n.children[In],!1):"",i=[];return hs(n.children,(r,s)=>{s!==In&&i.push(`${s}:${Zm(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function m6(n,t){let e=[];return hs(n.children,(i,r)=>{r===In&&(e=e.concat(t(i,r)))}),hs(n.children,(i,r)=>{r!==In&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===In?[Zm(n.children[In],!1)]:[`${r}:${Zm(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[In]?`${Db(n)}/${e[0]}`:`${Db(n)}/(${e.join("//")})`}}function pL(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sb(n){return pL(n).replace(/%3B/gi,";")}function aE(n){return pL(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ab(n){return decodeURIComponent(n)}function mL(n){return Ab(n.replace(/\+/g,"%20"))}function gL(n){return`${aE(n.path)}${function v6(n){return Object.keys(n).map(t=>`;${aE(t)}=${aE(n[t])}`).join("")}(n.parameters)}`}const b6=/^[^\/()?;=#]+/;function Mb(n){const t=n.match(b6);return t?t[0]:""}const w6=/^[^=?&#]+/,D6=/^[^&#]+/;class A6{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bn([],{}):new Bn([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[In]=new Bn(t,e)),i}parseSegment(){const t=Mb(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new nt(4009,!1);return this.capture(t),new Qm(Ab(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Mb(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Mb(this.remaining);r&&(i=r,this.capture(i))}t[Ab(e)]=Ab(i)}parseQueryParam(t){const e=function C6(n){const t=n.match(w6);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function S6(n){const t=n.match(D6);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=mL(e),s=mL(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Mb(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new nt(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=In);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[In]:new Bn([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new nt(4011,!1)}}function lE(n){return n.segments.length>0?new Bn([],{[In]:n}):n}function Eb(n){const t={};for(const i of Object.keys(n.children)){const s=Eb(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function M6(n){if(1===n.numberOfChildren&&n.children[In]){const t=n.children[In];return new Bn(n.segments.concat(t.segments),t.children)}return n}(new Bn(n.segments,t))}function td(n){return n instanceof Ju}function k6(n,t,e,i,r){var s;if(0===e.length)return nf(t.root,t.root,t.root,i,r);const a=function yL(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new vL(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return hs(s.outlets,(c,d)=>{a[d]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new vL(e,t,i)}(e);return a.toRoot()?nf(t.root,t.root,new Bn([],{}),i,r):function c(f){var v;const x=function P6(n,t,e,i){if(n.isAbsolute)return new rf(t.root,!0,0);if(-1===i)return new rf(e,e===t.root,0);return function bL(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new nt(4005,!1);r=i.segments.length}return new rf(i,!1,r-s)}(e,i+(Jm(n.commands[0])?0:1),n.numberOfDoubleDots)}(a,t,null===(v=n.snapshot)||void 0===v?void 0:v._urlSegment,f),B=x.processChildren?tg(x.segmentGroup,x.index,a.commands):uE(x.segmentGroup,x.index,a.commands);return nf(t.root,x.segmentGroup,B,i,r)}(null===(s=n.snapshot)||void 0===s?void 0:s._lastPathIndex)}function Jm(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function eg(n){return"object"==typeof n&&null!=n&&n.outlets}function nf(n,t,e,i,r){let o,s={};i&&hs(i,(c,d)=>{s[d]=Array.isArray(c)?c.map(f=>`${f}`):`${c}`}),o=n===t?e:_L(n,t,e);const a=lE(Eb(o));return new Ju(a,s,r)}function _L(n,t,e){const i={};return hs(n.children,(r,s)=>{i[s]=r===t?e:_L(r,t,e)}),new Bn(n.segments,i)}class vL{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Jm(i[0]))throw new nt(4003,!1);const r=i.find(eg);if(r&&r!==aL(i))throw new nt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class rf{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function uE(n,t,e){if(n||(n=new Bn([],{})),0===n.segments.length&&n.hasChildren())return tg(n,t,e);const i=function I6(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;const o=n.segments[r],a=e[i];if(eg(a))break;const c=`${a}`,d=i0&&void 0===c)break;if(c&&d&&"object"==typeof d&&void 0===d.outlets){if(!CL(c,d,o))return s;i+=2}else{if(!CL(c,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=uE(n.children[o],t,s))}),hs(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new Bn(n.segments,r)}}function dE(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=dE(new Bn([],{}),0,e))}),t}function wL(n){const t={};return hs(n,(e,i)=>t[i]=`${e}`),t}function CL(n,t,e){return n==e.path&&nl(t,e.parameters)}class ic{constructor(t,e){this.id=t,this.url=e}}class hE extends ic{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class rc extends ic{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ng extends ic{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fE extends ic{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class F6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class L6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class N6 extends ic{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class V6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class B6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class H6{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class z6{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class U6{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class j6{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $6{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W6{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DL{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class SL{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=pE(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=pE(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mE(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return mE(t,this._root).map(e=>e.value)}}function pE(n,t){if(n===t.value)return t;for(const e of t.children){const i=pE(n,e);if(i)return i}return null}function mE(n,t){if(n===t.value)return[t];for(const e of t.children){const i=mE(n,e);if(i.length)return i.unshift(t),i}return[]}class sc{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function sf(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class AL extends SL{constructor(t,e){super(t),this.snapshot=e,gE(this,t)}toString(){return this.snapshot.toString()}}function ML(n,t){const e=function q6(n,t){const o=new xb([],{},{},"",{},In,t,null,n.root,-1,{});return new xL("",new sc(o,[]))}(n,t),i=new gr([new Qm("",{})]),r=new gr({}),s=new gr({}),o=new gr({}),a=new gr(""),c=new af(i,r,o,a,s,In,t,e.root);return c.snapshot=e.root,new AL(new sc(c,[]),e)}class af{constructor(t,e,i,r,s,o,a,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(z(t=>tf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(t=>tf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function EL(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function Y6(n){return n.reduce((t,e)=>{var i;return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),t.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(i))}class xb{constructor(t,e,i,r,s,o,a,c,d,f,v,x){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._urlSegment=d,this._lastPathIndex=f,this._correctedLastPathIndex=null!=x?x:f,this._resolve=v}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=tf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xL extends SL{constructor(t,e){super(e),this.url=t,gE(this,e)}toString(){return kL(this._root)}}function gE(n,t){t.value._routerState=n,t.children.forEach(e=>gE(n,e))}function kL(n){const t=n.children.length>0?` { ${n.children.map(kL).join(", ")} } `:"";return`${n.value}${t}`}function _E(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,nl(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),nl(t.params,e.params)||n.params.next(e.params),function c6(n,t){if(n.length!==t.length)return!1;for(let e=0;enl(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||vE(n.parent,t.parent))}function ig(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function X6(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ig(n,i,r);return ig(n,i)})}(n,t,e);return new sc(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>ig(n,a)),o}}const i=function Q6(n){return new af(new gr(n.url),new gr(n.params),new gr(n.queryParams),new gr(n.fragment),new gr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>ig(n,s));return new sc(i,r)}}const yE="ngNavigationCancelingError";function TL(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=td(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=PL(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function PL(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[yE]=!0,i.cancellationCode=t,e&&(i.url=e),i}function RL(n){return IL(n)&&td(n.url)}function IL(n){return n&&n[yE]}class Z6{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new rg,this.attachRef=null}}let rg=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Z6,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kb=!1;let bE=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.changeDetector=s,this.environmentInjector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new yt,this.deactivateEvents=new yt,this.attachEvents=new yt,this.detachEvents=new yt,this.name=r||In,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new nt(4012,kb);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new nt(4012,kb);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new nt(4012,kb);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new nt(4013,kb);this._activatedRoute=e;const r=this.location,o=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new J6(e,a,r.injector);if(i&&function eq(n){return!!n.resolveComponentFactory}(i)){const d=i.resolveComponentFactory(o);this.activated=r.createComponent(d,r.length,c)}else this.activated=r.createComponent(o,{index:r.length,injector:c,environmentInjector:null!=i?i:this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(R(rg),R(Oi),bs("name"),R(Xn),R(Fa))},n.\u0275dir=qe({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class J6{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===af?this.route:t===rg?this.childContexts:this.parent.get(t,e)}}let OL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&ft(0,"router-outlet")},dependencies:[bE],encapsulation:2}),n})();function FL(n,t){var e;return n.providers&&!n._injector&&(n._injector=by(n.providers,t,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:t}function CE(n){const t=n.children&&n.children.map(CE),e=t?Object.assign(Object.assign({},n),{children:t}):Object.assign({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==In&&(e.component=OL),e}function Xo(n){return n.outlet||In}function LL(n,t){const e=n.filter(i=>Xo(i)===t);return e.push(...n.filter(i=>Xo(i)!==t)),e}function NL(n){var t;if(!n)return null;if(null!==(t=n.routeConfig)&&void 0!==t&&t._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class sq{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),_E(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=sf(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),hs(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=sf(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=sf(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=sf(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new W6(s.value.snapshot))}),t.children.length&&this.forwardEvent(new j6(t.value.snapshot))}activateRoutes(t,e,i){var r;const s=t.value,o=e?e.value:null;if(_E(s),s===o)if(s.component){const a=i.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,i);else if(s.component){const a=i.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const c=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),_E(c.route.value),this.activateChildRoutes(t,null,a.children)}else{const c=NL(s.snapshot),d=null!==(r=null==c?void 0:c.get(Il))&&void 0!==r?r:null;a.attachRef=null,a.route=s,a.resolver=d,a.injector=c,a.outlet&&a.outlet.activateWith(s,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,i)}}class VL{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Tb{constructor(t,e){this.component=t,this.route=e}}function oq(n,t,e){const i=n._root;return sg(i,t?t._root:null,e,[i.value])}function Pb(n,t,e){const i=NL(t);return(null!=i?i:e).get(n)}function sg(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=sf(t);return n.children.forEach(o=>{(function lq(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function cq(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!ed(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ed(n.url,t.url)||!nl(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vE(n,t)||!nl(n.queryParams,t.queryParams);default:return!vE(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new VL(i)):(s.data=o.data,s._resolvedData=o._resolvedData),sg(n,t,s.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Tb(a.outlet.component,o))}else o&&og(t,a,r),r.canActivateChecks.push(new VL(i)),sg(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),hs(s,(o,a)=>og(o,e.getContext(a),r)),r}function og(n,t,e){const i=sf(n),r=n.value;hs(i,(s,o)=>{og(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new Tb(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ag(n){return"function"==typeof n}function DE(n){return n instanceof yb||"EmptyError"===(null==n?void 0:n.name)}const Rb=Symbol("INITIAL_VALUE");function lf(){return ds(n=>qa(n.map(t=>t.pipe(Ci(1),cs(Rb)))).pipe(z(t=>{for(const e of t)if(!0!==e){if(e===Rb)return Rb;if(!1===e||e instanceof Ju)return e}return!0}),ji(t=>t!==Rb),Ci(1)))}function BL(n){return function oe(...n){return Se(n)}(_i(t=>{if(td(t))throw TL(0,t)}),z(t=>!0===t))}const SE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function HL(n,t,e,i,r){const s=AE(n,t,e);return s.matched?function Mq(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?At(r.map(o=>{const a=n.get(o),c=function mq(n){return n&&ag(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return nc(c)})).pipe(lf(),BL()):At(!0)}(i=FL(t,i),t,e).pipe(z(o=>!0===o?s:Object.assign({},SE))):At(s)}function AE(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},SE):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(t.matcher||l6)(e,n,t);if(!s)return Object.assign({},SE);const o={};hs(s.posParams,(c,d)=>{o[d]=c.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Ib(n,t,e,i,r="corrected"){if(e.length>0&&function kq(n,t,e){return e.some(i=>Ob(n,t,i)&&Xo(i)!==In)}(n,e,i)){const o=new Bn(t,function xq(n,t,e,i){const r={};r[In]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Xo(s)!==In){const o=new Bn([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[Xo(s)]=o}return r}(n,t,i,new Bn(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function Tq(n,t,e){return e.some(i=>Ob(n,t,i))}(n,e,i)){const o=new Bn(n.segments,function Eq(n,t,e,i,r,s){const o={};for(const a of i)if(Ob(n,e,a)&&!r[Xo(a)]){const c=new Bn([],{});c._sourceSegment=n,c._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[Xo(a)]=c}return Object.assign(Object.assign({},r),o)}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new Bn(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function Ob(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function zL(n,t,e,i){return!!(Xo(n)===i||i!==In&&Ob(t,e,n))&&("**"===n.path||AE(t,n,e).matched)}function UL(n,t,e){return 0===t.length&&!n.children[e]}const Fb=!1;class Lb{constructor(t){this.segmentGroup=t||null}}class jL{constructor(t){this.urlTree=t}}function lg(n){return ba(new Lb(n))}function $L(n){return ba(new jL(n))}class Oq{constructor(t,e,i,r,s){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0}apply(){const t=Ib(this.urlTree.root,[],[],this.config).segmentGroup,e=new Bn(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,In).pipe(z(s=>this.createUrlTree(Eb(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(tl(s=>{if(s instanceof jL)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Lb?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,In).pipe(z(r=>this.createUrlTree(Eb(r),t.queryParams,t.fragment))).pipe(tl(r=>{throw r instanceof Lb?this.noMatchError(r):r}))}noMatchError(t){return new nt(4002,Fb)}createUrlTree(t,e,i){const r=lE(t);return new Ju(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(z(s=>new Bn([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return pi(r).pipe($c(s=>{const o=i.children[s],a=LL(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(z(c=>({segment:c,outlet:s})))}),nL((s,o)=>(s[o.outlet]=o.segment,s),{}),iL())}expandSegment(t,e,i,r,s,o){return pi(i).pipe($c(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(tl(d=>{if(d instanceof Lb)return At(null);throw d}))),tc(a=>!!a),tl((a,c)=>{if(DE(a))return UL(e,r,s)?At(new Bn([],{})):lg(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return zL(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):lg(e):lg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?$L(s):this.lineralizeSegments(i,s).pipe(lr(o=>{const a=new Bn(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:c,remainingSegments:d,positionalParamSegments:f}=AE(e,r,s);if(!a)return lg(e);const v=this.applyRedirectCommands(c,r.redirectTo,f);return r.redirectTo.startsWith("/")?$L(v):this.lineralizeSegments(r,v).pipe(lr(x=>this.expandSegment(t,e,i,x.concat(d),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){return"**"===i.path?(t=FL(i,t),i.loadChildren?(i._loadedRoutes?At({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(z(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Bn(r,{})))):At(new Bn(r,{}))):HL(e,i,r,t).pipe(ds(({matched:o,consumedSegments:a,remainingSegments:c})=>{var d;return o?(t=null!==(d=i._injector)&&void 0!==d?d:t,this.getChildConfig(t,i,r).pipe(lr(v=>{var x;const B=null!==(x=v.injector)&&void 0!==x?x:t,se=v.routes,{segmentGroup:me,slicedSegments:Oe}=Ib(e,a,c,se),Fe=new Bn(me.segments,me.children);if(0===Oe.length&&Fe.hasChildren())return this.expandChildren(B,se,Fe).pipe(z(Tt=>new Bn(a,Tt)));if(0===se.length&&0===Oe.length)return At(new Bn(a,{}));const et=Xo(i)===s;return this.expandSegment(B,Fe,se,Oe,et?In:s,!0).pipe(z(ot=>new Bn(a.concat(ot.segments),ot.children)))}))):lg(e)}))}getChildConfig(t,e,i){return e.children?At({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?At({routes:e._loadedRoutes,injector:e._loadedInjector}):function Aq(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?At(!0):At(r.map(o=>{const a=n.get(o),c=function dq(n){return n&&ag(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return nc(c)})).pipe(lf(),BL())}(t,e,i).pipe(lr(r=>r?this.configLoader.loadChildren(t,e).pipe(_i(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function Rq(n){return ba(PL(Fb,3))}())):At({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return At(i);if(r.numberOfChildren>1||!r.children[In])return ba(new nt(4e3,Fb));r=r.children[In]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new Ju(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return hs(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return hs(e.children,(a,c)=>{o[c]=this.createSegmentGroup(t,a,i,r)}),new Bn(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new nt(4001,Fb);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Lq{}class Bq{constructor(t,e,i,r,s,o,a,c){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=s,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a,this.urlSerializer=c}recognize(){const t=Ib(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,In).pipe(z(e=>{if(null===e)return null;const i=new xb([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},In,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new sc(i,e),s=new xL(this.url,r);return this.inheritParamsAndData(s._root),s}))}inheritParamsAndData(t){const e=t.value,i=EL(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return pi(Object.keys(i.children)).pipe($c(r=>{const s=i.children[r],o=LL(e,r);return this.processSegmentGroup(t,o,s,r)}),nL((r,s)=>r&&s?(r.push(...s),r):null),rL(r=>null!==r),bb(null),iL(),z(r=>{if(null===r)return null;const s=WL(r);return function Hq(n){n.sort((t,e)=>t.value.outlet===In?-1:e.value.outlet===In?1:t.value.outlet.localeCompare(e.value.outlet))}(s),s}))}processSegment(t,e,i,r,s){return pi(e).pipe($c(o=>{var a;return this.processSegmentAgainstRoute(null!==(a=o._injector)&&void 0!==a?a:t,o,i,r,s)}),tc(o=>!!o),tl(o=>{if(DE(o))return UL(i,r,s)?At([]):At(null);throw o}))}processSegmentAgainstRoute(t,e,i,r,s){var o,a;if(e.redirectTo||!zL(e,i,r,s))return At(null);let c;if("**"===e.path){const d=r.length>0?aL(r).parameters:{},f=qL(i)+r.length;c=At({snapshot:new xb(r,d,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,KL(e),Xo(e),null!==(a=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==a?a:null,e,GL(i),f,XL(e),f),consumedSegments:[],remainingSegments:[]})}else c=HL(i,e,r,t).pipe(z(({matched:d,consumedSegments:f,remainingSegments:v,parameters:x})=>{var B,se;if(!d)return null;const me=qL(i)+f.length;return{snapshot:new xb(f,x,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,KL(e),Xo(e),null!==(se=null!==(B=e.component)&&void 0!==B?B:e._loadedComponent)&&void 0!==se?se:null,e,GL(i),me,XL(e),me),consumedSegments:f,remainingSegments:v}}));return c.pipe(ds(d=>{var f,v;if(null===d)return At(null);const{snapshot:x,consumedSegments:B,remainingSegments:se}=d;t=null!==(f=e._injector)&&void 0!==f?f:t;const me=null!==(v=e._loadedInjector)&&void 0!==v?v:t,Oe=function zq(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Fe,slicedSegments:et}=Ib(i,B,se,Oe.filter(ot=>void 0===ot.redirectTo),this.relativeLinkResolution);if(0===et.length&&Fe.hasChildren())return this.processChildren(me,Oe,Fe).pipe(z(ot=>null===ot?null:[new sc(x,ot)]));if(0===Oe.length&&0===et.length)return At([new sc(x,[])]);const $e=Xo(e)===s;return this.processSegment(me,Oe,Fe,et,$e?In:s).pipe(z(ot=>null===ot?null:[new sc(x,ot)]))}))}}function Uq(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function WL(n){const t=[],e=new Set;for(const i of n){if(!Uq(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=WL(i.children);t.push(new sc(i.value,r))}return t.filter(i=>!e.has(i))}function GL(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function qL(n){var t,e;let i=n,r=null!==(t=i._segmentIndexShift)&&void 0!==t?t:0;for(;i._sourceSegment;)i=i._sourceSegment,r+=null!==(e=i._segmentIndexShift)&&void 0!==e?e:0;return r-1}function KL(n){return n.data||{}}function XL(n){return n.resolve||{}}const ME=Symbol("RouteTitle");function QL(n){return"string"==typeof n.title||null===n.title}function EE(n){return ds(t=>{const e=n(t);return e?pi(e).pipe(z(()=>t)):At(t)})}let ZL=(()=>{class n{buildTitle(e){var i;let r,s=e.root;for(;void 0!==s;)r=null!==(i=this.getResolvedTitleForRoute(s))&&void 0!==i?i:r,s=s.children.find(o=>o.outlet===In);return r}getResolvedTitleForRoute(e){return e.data[ME]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return qn(JL)},providedIn:"root"}),n})(),JL=(()=>{class n extends ZL{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(Re(cM))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Xq{}class Zq extends class Qq{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const xE=new lt("",{providedIn:"root",factory:()=>({})}),kE=new lt("ROUTES");let TE=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return At(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=nc(e.loadComponent()).pipe(_i(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),wb(()=>{this.componentLoaders.delete(e)})),r=new MM(i,()=>new b).pipe(AM());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return At({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(z(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let c,d,f=!1;Array.isArray(a)?d=a:(c=a.create(e).injector,d=oL(c.get(kE,[],qt.Self|qt.Optional)));return{routes:d.map(CE),injector:c}}),wb(()=>{this.childrenLoaders.delete(i)})),o=new MM(s,()=>new b).pipe(AM());return this.childrenLoaders.set(i,o),o}loadModuleFactoryOrRoutes(e){return nc(e()).pipe(lr(i=>i instanceof jR||Array.isArray(i)?At(i):pi(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(Re(Ii),Re(TA))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class eY{}class tY{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function nY(n){throw n}function iY(n,t,e){return t.parse("/")}const rY={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sY={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function tN(){var n,t;const e=qn(fL),i=qn(rg),r=qn(Iy),s=qn(Ii),o=qn(TA),a=null!==(n=qn(kE,{optional:!0}))&&void 0!==n?n:[],c=null!==(t=qn(xE,{optional:!0}))&&void 0!==t?t:{},d=qn(JL),f=qn(ZL,{optional:!0}),v=qn(eY,{optional:!0}),x=qn(Xq,{optional:!0}),B=new Ps(null,e,i,r,s,o,oL(a));return v&&(B.urlHandlingStrategy=v),x&&(B.routeReuseStrategy=x),B.titleStrategy=null!=f?f:d,function oY(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(c,B),B}let Ps=(()=>{class n{constructor(e,i,r,s,o,a,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new b,this.errorHandler=nY,this.malformedUriErrorHandler=iY,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>At(void 0),this.urlHandlingStrategy=new tY,this.routeReuseStrategy=new Zq,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=o.get(TE),this.configLoader.onLoadEndListener=x=>this.triggerEvent(new z6(x)),this.configLoader.onLoadStartListener=x=>this.triggerEvent(new H6(x)),this.ngModule=o.get(ju),this.console=o.get(s$);const v=o.get(jt);this.isNgZoneEnabled=v instanceof jt&&jt.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function u6(){return new Ju(new Bn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ML(this.currentUrlTree,this.rootComponentType),this.transitions=new gr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(ji(r=>0!==r.id),z(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ds(r=>{let s=!1,o=!1;return At(r).pipe(_i(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ds(a=>{const c=this.browserUrlTree.toString(),d=!this.navigated||a.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return nN(a.source)&&(this.browserUrlTree=a.extractedUrl),At(a).pipe(ds(v=>{const x=this.transitions.getValue();return i.next(new hE(v.id,this.serializeUrl(v.extractedUrl),v.source,v.restoredState)),x!==this.transitions.getValue()?Ns:Promise.resolve(v)}),function Fq(n,t,e,i){return ds(r=>function Iq(n,t,e,i,r){return new Oq(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(z(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),_i(v=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:v.urlAfterRedirects}),r.urlAfterRedirects=v.urlAfterRedirects}),function $q(n,t,e,i,r,s){return lr(o=>function Vq(n,t,e,i,r,s,o="emptyOnly",a="legacy"){return new Bq(n,t,e,i,r,o,a,s).recognize().pipe(ds(c=>null===c?function Nq(n){return new _e(t=>t.error(n))}(new Lq):At(c)))}(n,t,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r,s).pipe(z(a=>Object.assign(Object.assign({},o),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),_i(v=>{if(r.targetSnapshot=v.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!v.extras.skipLocationChange){const B=this.urlHandlingStrategy.merge(v.urlAfterRedirects,v.rawUrl);this.setBrowserUrl(B,v)}this.browserUrlTree=v.urlAfterRedirects}const x=new F6(v.id,this.serializeUrl(v.extractedUrl),this.serializeUrl(v.urlAfterRedirects),v.targetSnapshot);i.next(x)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:x,extractedUrl:B,source:se,restoredState:me,extras:Oe}=a,Fe=new hE(x,this.serializeUrl(B),se,me);i.next(Fe);const et=ML(B,this.rootComponentType).snapshot;return At(r=Object.assign(Object.assign({},a),{targetSnapshot:et,urlAfterRedirects:B,extras:Object.assign(Object.assign({},Oe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ns}),_i(a=>{const c=new L6(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),z(a=>r=Object.assign(Object.assign({},a),{guards:oq(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function _q(n,t){return lr(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?At(Object.assign(Object.assign({},e),{guardsResult:!0})):function vq(n,t,e,i){return pi(n).pipe(lr(r=>function Sq(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?At(s.map(a=>{const c=Pb(a,t,r);return nc(function pq(n){return n&&ag(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):c(n,t,e,i)).pipe(tc())})).pipe(lf()):At(!0)}(r.component,r.route,e,t,i)),tc(r=>!0!==r,!0))}(o,i,r,n).pipe(lr(a=>a&&function uq(n){return"boolean"==typeof n}(a)?function yq(n,t,e,i){return pi(t).pipe($c(r=>Im(function wq(n,t){return null!==n&&t&&t(new U6(n)),At(!0)}(r.route.parent,i),function bq(n,t){return null!==n&&t&&t(new $6(n)),At(!0)}(r.route,i),function Dq(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function aq(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>eL(()=>At(o.guards.map(c=>{const d=Pb(c,o.node,e);return nc(function fq(n){return n&&ag(n.canActivateChild)}(d)?d.canActivateChild(i,n):d(i,n)).pipe(tc())})).pipe(lf())));return At(s).pipe(lf())}(n,r.path,e),function Cq(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return At(!0);const r=i.map(s=>eL(()=>{const o=Pb(s,t,e);return nc(function hq(n){return n&&ag(n.canActivate)}(o)?o.canActivate(t,n):o(t,n)).pipe(tc())}));return At(r).pipe(lf())}(n,r.route,e))),tc(r=>!0!==r,!0))}(i,s,n,t):At(a)),z(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),_i(a=>{if(r.guardsResult=a.guardsResult,td(a.guardsResult))throw TL(0,a.guardsResult);const c=new N6(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(c)}),ji(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),EE(a=>{if(a.guards.canActivateChecks.length)return At(a).pipe(_i(c=>{const d=new V6(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(d)}),ds(c=>{let d=!1;return At(c).pipe(function Wq(n,t){return lr(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return At(e);let s=0;return pi(r).pipe($c(o=>function Gq(n,t,e,i){const r=n.routeConfig,s=n._resolve;return void 0!==(null==r?void 0:r.title)&&!QL(r)&&(s[ME]=r.title),function qq(n,t,e,i){const r=function Yq(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return At({});const s={};return pi(r).pipe(lr(o=>function Kq(n,t,e,i){const r=Pb(n,t,i);return nc(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(tc(),_i(a=>{s[o]=a}))),rE(1),CM(s),tl(o=>DE(o)?Ns:ba(o)))}(s,n,t,i).pipe(z(o=>(n._resolvedData=o,n.data=EL(n,e).resolve,r&&QL(r)&&(n.data[ME]=r.title),null)))}(o.route,i,n,t)),_i(()=>s++),rE(1),lr(o=>s===r.length?At(e):Ns))})}(this.paramsInheritanceStrategy,this.ngModule.injector),_i({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",2))}}))}),_i(c=>{const d=new B6(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(d)}))}),EE(a=>{const c=d=>{var f;const v=[];(null===(f=d.routeConfig)||void 0===f?void 0:f.loadComponent)&&!d.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(d.routeConfig).pipe(_i(x=>{d.component=x}),z(()=>{})));for(const x of d.children)v.push(...c(x));return v};return qa(c(a.targetSnapshot.root)).pipe(bb(),Ci(1))}),EE(()=>this.afterPreactivation()),z(a=>{const c=function K6(n,t,e){const i=ig(n,t._root,e?e._root:void 0);return new AL(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r=Object.assign(Object.assign({},a),{targetRouterState:c})}),_i(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>z(i=>(new sq(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),_i({next(){s=!0},complete(){s=!0}}),wb(()=>{var a;s||o||this.cancelNavigationTransition(r,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),tl(a=>{var c;if(o=!0,IL(a)){RL(a)||(this.navigated=!0,this.restoreHistory(r,!0));const d=new ng(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(d),RL(a)){const f=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),v={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||nN(r.source)};this.scheduleNavigation(f,"imperative",null,v,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const d=new fE(r.id,this.serializeUrl(r.extractedUrl),a,null!==(c=r.targetSnapshot)&&void 0!==c?c:void 0);i.next(d);try{r.resolve(this.errorHandler(a))}catch(f){r.reject(f)}}return Ns}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(o){const c=Object.assign({},o);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(s.state=c)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(CE),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:c}=i,d=r||this.routerState.root,f=c?this.currentUrlTree.fragment:o;let v=null;switch(a){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=s||null}return null!==v&&(v=this.removeEmptyProps(v)),k6(d,this.currentUrlTree,e,v,null!=f?f:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=td(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function aY(n){for(let t=0;t{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{var i;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new rc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,c;if(this.disposed)return Promise.resolve(!1);let d,f,v;o?(d=o.resolve,f=o.reject,v=o.promise):v=new Promise((se,me)=>{d=se,f=me});const x=++this.navigationId;let B;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),B=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):B=0,this.setTransition({id:x,targetPageId:B,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:d,reject:f,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.catch(se=>Promise.reject(se))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const s=new ng(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=dt({token:n,factory:function(){return tN()},providedIn:"root"}),n})();function nN(n){return"imperative"!==n}let Bb=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.commands=null,this.onChanges=new b,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:Ul(this.skipLocationChange),replaceUrl:Ul(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ul(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(R(Ps),R(af),bs("tabindex"),R(Us),R(bt))},n.\u0275dir=qe({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&vt("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Zt]}),n})(),Hb=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new b,this.subscription=e.events.subscribe(s=>{s instanceof rc&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:Ul(this.skipLocationChange),replaceUrl:Ul(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ul(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(R(Ps),R(af),R(Wu))},n.\u0275dir=qe({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&vt("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&Yt("target",i.target)("href",i.href,zs)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Zt]}),n})(),iN=(()=>{class n{constructor(e,i,r,s,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=s,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new yt,this.routerEventsSubscription=e.events.subscribe(c=>{c instanceof rc&&this.update()})}ngAfterContentInit(){At(this.links.changes,this.linksWithHrefs.changes,At(null)).pipe(uc()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=pi(i).pipe(uc()).subscribe(r=>{this.isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function lY(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Ps),R(bt),R(Us),R(Xn),R(Bb,8),R(Hb,8))},n.\u0275dir=qe({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,Bb,5),Dn(r,Hb,5)),2&e){let s;Dt(s=St())&&(i.links=s),Dt(s=St())&&(i.linksWithHrefs=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Zt]}),n})();class rN{}let sN=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ji(e=>e instanceof rc),$c(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){var r,s,o;const a=[];for(const c of i){c.providers&&!c._injector&&(c._injector=by(c.providers,e,`Route: ${c.path}`));const d=null!==(r=c._injector)&&void 0!==r?r:e,f=null!==(s=c._loadedInjector)&&void 0!==s?s:d;c.loadChildren&&!c._loadedRoutes&&void 0===c.canLoad||c.loadComponent&&!c._loadedComponent?a.push(this.preloadConfig(d,c)):(c.children||c._loadedRoutes)&&a.push(this.processRoutes(f,null!==(o=c.children)&&void 0!==o?o:c._loadedRoutes))}return pi(a).pipe(uc())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):At(null);const s=r.pipe(lr(o=>{var a;return null===o?At(void 0):(i._loadedRoutes=o.routes,i._loadedInjector=o.injector,this.processRoutes(null!==(a=o.injector)&&void 0!==a?a:e,o.routes))}));return i.loadComponent&&!i._loadedComponent?pi([s,this.loader.loadComponent(i)]).pipe(uc()):s})}}return n.\u0275fac=function(e){return new(e||n)(Re(Ps),Re(TA),Re(Fa),Re(rN),Re(TE))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const oN=new lt("");let cY=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof hE?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof rc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof DL&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new DL(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const aN=new lt("ROUTER_FORROOT_GUARD"),lN=new lt(""),uY=[Iy,{provide:fL,useClass:oE},{provide:Ps,useFactory:tN},rg,{provide:af,useFactory:function dY(n){return n.routerState.root},deps:[Ps]},TE];function hY(){return new HI("Router",Ps)}let cN=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[uY,[],uN(e),{provide:aN,useFactory:gY,deps:[[Ps,new Cs,new Co]]},{provide:xE,useValue:i||{}},null!=i&&i.useHash?{provide:Wu,useClass:Y$}:{provide:Wu,useClass:cO},{provide:oN,useFactory:()=>{const n=qn(Ps),t=qn(s5),e=qn(xE);return e.scrollOffset&&t.setOffset(e.scrollOffset),new cY(n,t,e)}},null!=i&&i.preloadingStrategy?DY(i.preloadingStrategy):[],{provide:HI,multi:!0,useFactory:hY},null!=i&&i.initialNavigation?vY(i):[],[{provide:dN,useFactory:_Y},{provide:II,multi:!0,useExisting:dN}]]}}static forChild(e){return{ngModule:n,providers:[uN(e)]}}}return n.\u0275fac=function(e){return new(e||n)(Re(aN,8))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();function gY(n){return"guarded"}function uN(n){return[{provide:kE,multi:!0,useValue:n}]}function _Y(){const n=qn(Ii);return t=>{var e,i;const r=n.get(qh);if(t!==r.components[0])return;const s=n.get(Ps),o=n.get(hN);1===n.get(PE)&&s.initialNavigation(),null===(e=n.get(lN,null,qt.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(oN,null,qt.Optional))||void 0===i||i.init(),s.resetRootComponentType(r.componentTypes[0]),o.next(),o.complete()}}const dN=new lt("");function vY(n){return["disabled"===n.initialNavigation?[{provide:Ay,multi:!0,useFactory:()=>{const n=qn(Ps);return()=>{n.setUpLocationChangeListener()}}},{provide:PE,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:PE,useValue:0},{provide:Ay,multi:!0,deps:[Ii],useFactory:n=>{const t=n.get(G$,Promise.resolve(null));let e=!1;return()=>t.then(()=>new Promise(r=>{const s=n.get(Ps),o=n.get(hN);(function i(r){n.get(Ps).events.pipe(ji(o=>o instanceof rc||o instanceof ng||o instanceof fE),z(o=>o instanceof rc||o instanceof ng&&(0===o.code||1===o.code)&&null),ji(o=>null!==o),Ci(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),s.afterPreactivation=()=>(r(!0),e||o.closed?At(void 0):o),s.initialNavigation()}))}}]:[]]}const hN=new lt("",{factory:()=>new b}),PE=new lt("",{providedIn:"root",factory:()=>1});function DY(n){return[sN,{provide:lN,useExisting:sN},{provide:rN,useExisting:n}]}var Rs=He(7489);function fN(n,t,e){let i,r=!1;return n&&"object"==typeof n?({bufferSize:i=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=n):i=null!=n?n:1/0,yd({connector:()=>new SM(i,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}const zb=JSON.parse('{"id":"Abwassersurveillance_AMELAG","branch":"main","externalLinks":[{"$type":"github","url":"https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG"},{"$type":"zenodo","url":"https://doi.org/10.5281/zenodo.14229359"}],"doi":"10.5281/zenodo.14229359","contributors":[],"lastUpdated":"2024-11-27","tags":["COVID-19","SARS-CoV-2","Abwasserbasierte epidemiologische \xdcberwachung","Wastewater-Based Epidemiological Monitoring","Open Data","Offene Daten"],"name":"Abwassersurveillance AMELAG","authors":["Robert Koch-Institut, Fachgebiet 32"],"description":"

Das Vorhaben \u201eAbwassermonitoring f\xfcr die epidemiologische Lagebewertung\u201c (AMELAG) l\xe4uft vom 22.11.2022 bis zum 31.12.2024. Beh\xf6rden, Kl\xe4ranlagen und Labore arbeiten zusammen, um Proben zu nehmen, zu analysieren und zu bewerten. Das Ziel dieses Vorhabens ist es, SARS-CoV-2-Nachweise aus dem Abwasser als zus\xe4tzlichen Indikator zur epidemiologischen Lagebewertung auf L\xe4nder- und Bundesebene zu etablieren. Ebenso ist es das Ziel, Strukturen und Prozesse f\xfcr ein bundesweites Netzwerk f\xfcr die Abwassersurveillance weiter auszubauen, Konzepte f\xfcr eine Verstetigung zu erstellen und die M\xf6glichkeiten f\xfcr ein Monitoring von weiteren Krankheitserregern im Abwasser zu erforschen.
\\nAbwassersurveillance ist eine Technik, um Erreger im Abwasser nachzuweisen, um Gesundheitsschutzma\xdfnahmen besser steuern zu k\xf6nnen. Abwasserdaten erlauben keine genaue Einsch\xe4tzung von Krankheitsschwere oder der Belastung des Gesundheitssystems. Bei der epidemiologischen Bewertung sollten die Daten mit anderen Indikatoren, z.B. aus der syndromischen Surveillance, kombiniert werden.

\\n","readme":"## Informationen zum Datensatz und Entstehungskontext\\n\\nDas Vorhaben \u201eAbwassermonitoring f\xfcr die epidemiologische Lagebewertung\u201c (AMELAG) l\xe4uft vom 22.11.2022 bis zum 31.12.2024. Beh\xf6rden, Kl\xe4ranlagen und Labore arbeiten zusammen, um Proben zu nehmen, zu analysieren und zu bewerten. Das Ziel dieses Vorhabens ist es, SARS-CoV-2-Nachweise aus dem Abwasser als zus\xe4tzlichen Indikator zur epidemiologischen Lagebewertung auf L\xe4nder- und Bundesebene zu etablieren. Ebenso ist es das Ziel, Strukturen und Prozesse f\xfcr ein bundesweites Netzwerk f\xfcr die Abwassersurveillance weiter auszubauen, Konzepte f\xfcr eine Verstetigung zu erstellen und die M\xf6glichkeiten f\xfcr ein Monitoring von weiteren Krankheitserregern im Abwasser zu erforschen. Aktuell werden Abwasserproben von ausgew\xe4hlten Kl\xe4ranlagen auf SARS-CoV-2 und Influenzaviren untersucht. \\nBei der Abwassersurveillance werden Erreger im Abwasser gemessen um Gesundheitsschutzma\xdfnahmen besser steuern zu k\xf6nnen. Abwassersurveillance kann einen Beitrag f\xfcr eine Reihe von [Anwendungsf\xe4llen](https://www.rki.de/DE/Content/Infekt/EpidBull/Archiv/2024/Ausgaben/34_24.pdf?__blob=publicationFile) liefern. Abwasserdaten unterliegen speziellen Limitationen, beispielsweise erlauben sie keine genaue Einsch\xe4tzung von Krankheitsschwere oder Belastung des Gesundheitssystems. Bei der epidemiologischen Bewertung sollten die Daten mit anderen Indikatoren, z.B. aus der syndromischen Surveillance, kombiniert werden. \\n\\n### Administrative und organisatorische Angaben\\n\\nAMELAG ist ein vom [Bundesministerium f\xfcr Gesundheit (BMG)](https://www.bundesgesundheitsministerium.de/index.html) gef\xf6rdertes Vorhaben und wird in Kooperation mit dem Bundesministerium f\xfcr Umwelt, Naturschutz, nukleare Sicherheit und [Verbraucherschutz (BMUV)](https://www.bmuv.de/) durchgef\xfchrt.\\nDas Vorhaben wird vom Robert Koch-Institut (RKI) und [Umweltbundesamt (UBA)](https://www.umweltbundesamt.de/) gemeinsam durchgef\xfchrt. Weitere Informationen zu AMELAG finden Sie auf der [Projektwebseite](https://rki.de/abwassersurveillance). \\nDie Durchf\xfchrung der Probenahme erfolgt durch die teilnehmenden Kl\xe4ranlagen. Die Analyse der Proben erfolgt durch die teilnehmenden Labore. Neben kommerziellen Laboren, Landeslaboren und dem Umweltbundesamt f\xfchrt der zentrale Sanit\xe4tsdienst der Bundeswehr einen Teil der Analytik durch.\\n\\nEin Teil der Kl\xe4ranlagen und Labore sind gleichzeitig in Projekten der Bundesl\xe4nder zur Abwassersurveillance beteiligt (Baden-W\xfcrttemberg, Bayern, Berlin, Brandenburg, Hamburg, Hessen, Rheinland-Pfalz, Sachsen-Anhalt). \\nWeitere Kl\xe4ranlagen und Labore sind Teil der folgenden Forschungsprojekte:\\n-\\t[WBEready](https://www.fiw.rwth-aachen.de/aktuelles-veranstaltungen/aktuelles/wbeready) - Einen Forschungskonsortium bestehend aus Emschergenossenschaft und LippeverbandEGLV, Forschungsinstitut f\xfcr Wasserwirtschaft und Klimazukunft an der RWTH Aachen FiW, Universit\xe4tsklinikum Frankfurt, Goethe-Universit\xe4t Frankfurt am Main, Universit\xe4tsmedizin Essen (Institut f\xfcr k\xfcnstliche Intelligenz, Institut f\xfcr Urban Public Health), RWTH Aachen, Institut f\xfcr Siedlungswasserwirtschaft.\\n-\\tEtablierung von Verfahren f\xfcr den Nachweis von Viren im Abwasser zur Bewertung der Infektionslage in der Bev\xf6lkerung (Universit\xe4t Dresden)\\n-\\tEntwicklung einer landesweiten Abwassersurveillance in Th\xfcringen mittels Mobilit\xe4tsdaten und k\xfcnstlicher Intelligenz (Forschungskonsortium der Universit\xe4t Weimar, Universit\xe4t Jena, Universit\xe4t Hamburg, Hochschule Hamm-Lippstadt, SMA Development GmbH, KOWUG Kommunale Wasser- und Umwelttechnik GmbH, Analytik Jena GmbH) \\n-\\tEtablierung einer Multiplex-PCR aus Abwasser und f\xfcr Detektion und Charakterisierung von RSV im Rahmen des SARS-CoV-2-Abwasser-Monitoring (AMELAG) (Universit\xe4t Bonn und D\xfcsseldorf). \\n\\nDie Firma [ENDA](https://enda.eu/) wurde mit der Datenhaltung beauftragt. Die erhobenen Daten werden dort in einer Datenbank (PiA-Monitor) gespeichert und weiterverarbeitet. \\n\\nDie Verarbeitung, Aufbereitung und Ver\xf6ffentlichung der Daten erfolgen durch das Fachgebiet MF 4 | Fach- und Forschungsdatenmanagement. Fragen zum Datenmanagement und zur Publikationsinfrastruktur k\xf6nnen an das Open Data-Team des Fachgebiets MF4 unter [OpenData@rki.de](mailto:OpenData@rki.de) gerichtet werden.\\n\\n#### Datenerhebung\\n\\nIn AMELAG wurden aufbauend auf die im Rahmen des [ESI-CorA-Projekts](https://doi.org/10.5281/zenodo.10781652) erstellten Handreichungen zur Probennahme und Laboranalytik [technische Leitf\xe4den](http://www.rki.de/abwassersurveillance) entwickelt. Die SARS-CoV-2-Rohdaten der im ESI-CorA-Projekt analysierten Abwasserproben wurden in AMELAG nachgenutzt und sind in den ausgewerteten Daten enthalten.\\nAn jeder beteiligten Kl\xe4ranlage werden in aller Regel zwei Mal pro Woche Rohabwasserproben entnommen und zusammen mit den Begleitparametern (z.B. Volumenstrom, pH-Wert, Temperatur), die f\xfcr die Normalisierung und Qualit\xe4tssicherung n\xf6tig sind, erhoben. Die Rohabwasserproben sollen, sofern m\xf6glich, nach dem Sandfang der Kl\xe4ranlage entnommen werden. Es wird eine 24-Stunden-Mischprobe entnommen, welche mit einem automatischen Probennehmer durchgef\xfchrt wird. Die 24-Stunden-Probennahmen erfolgen in der Regel jeweils montags auf dienstags und mittwochs auf donnerstags. Im Regelfall wird ein Liter der Probe in Probenflaschen abgef\xfcllt und an das Analyselabor versendet.\\nIm Labor erfolgt die Aufkonzentrierung, Extraktion der viralen Nukleins\xe4ure und Quantifizierung der viralen Gensequenzen durch digitale PCR (dPCR) oder quantitative real time PCR (qRT-PCR). Bei SARS-CoV-2 werden mindestens zwei Genfragmente (Vorzugsweise N1, N2, E, ORF oder RdRp) bestimmt und bei den Influenzaviren ein Genfragment (M1 f\xfcr Influenza-A-Virus und M1, NS1, NS2 oder HA f\xfcr Influenza-B-Virus).\\n\\n> Robert Koch-Institut, Fachgebiet 32 (2024): \\"ESI-CorA: SARS-CoV-2-Abwassersurveillance\\" [Data set]. Zenodo. DOI: [10.5281/zenodo.10781653](https://doi.org/10.5281/zenodo.10781652)\\n\\n#### Datenfluss\\n\\n![Datenfluss AMELAG](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/.github/pictures/AMELAG_Datenfluss.png?raw=true \\"Datenfluss AMELAG\\")\\n \\nBeim UBA laufen die Metadaten zu den Kl\xe4ranlagen und den Laboren sowie die regelm\xe4\xdfig erhobenen Monitoringdaten zentral in einer Webanwendung, dem PiA-Monitor (Pathogene im Abwasser), zusammen, werden dort gespeichert und weiterverarbeitet. Die regelm\xe4\xdfig zu erfassenden Monitoringdaten der Kl\xe4ranlagen und die Analysedaten der Labore werden zusammengef\xfchrt und von den datenliefernden Stellen \xfcber die Web-Anwendung der Datenbank importiert. Das UBA, das RKI und die Landesbeh\xf6rden k\xf6nnen auf die Daten im Rahmen ihrer jeweiligen Rechte zugreifen.\\n\\n### Plausibilit\xe4tspr\xfcfung und Weiterverarbeitung der Daten\\n\\nMit dem Datenimport werden die Daten auf Plausibilit\xe4t gepr\xfcft. Dabei werden die Formate, Vollst\xe4ndigkeit der Angaben (Pflichtfeldangaben), Wertebereiche der Monitoringdaten, Plausibilit\xe4t der Datumsangaben und die \xdcbereinstimmung mit hinterlegten Metadaten gepr\xfcft. Nur Datens\xe4tze, welche die Qualit\xe4tspr\xfcfung erfolgreich durchlaufen, werden auch in die Datenbank importiert. F\xfcr SARS-CoV-2 wird der geometrische Mittelwert der Viruslast (Genkopien/Liter) aus den zwei oder mehr gemessenen Zielgenen ermittelt.\\n\\n#### Normalisierungsverfahren\\n\\nEine variierende Abwasserzusammensetzung, z. B. aufgrund von unregelm\xe4\xdfigen industriellen Einfl\xfcssen oder Starkregenereignissen, kann zu ver\xe4nderten Konzentrationen von SARS-CoV-2 f\xfchren. Um diese externen Einfl\xfcsse zu ber\xfccksichtigen, kann die gemessene Viruslast normalisiert werden. \\nIn AMELAG wird die SARS-CoV-2-Last auf den Durchfluss der Kl\xe4ranlage normalisiert. Dabei ist der Trockenwetterzufluss der Kl\xe4ranlage die Referenz. Folgende Formel wurde hierbei verwendet: \\n\\n$$ Gene_{normalisiert} = {Q_{KA\\\\_aktuell}}/{Q_{KA\\\\_median}} \\\\cdot Gene_{gemittelt} $$\\n\\nwo: \\n\\n- $Q_{KA\\\\_aktuell}$ : Volumenstrom der Kl\xe4ranlage im Probenahmezeitraum und \\n- $Q_{KA\\\\_median}$ : Median des Volumenstrom der Kl\xe4ranlage \\n\\nDie Normalisierung erfolgt automatisiert mit dem Datenimport. Die gemessenen Viruslasten von Influenzaviren werden derzeit nicht normalisiert, da sich f\xfcr die Influenzavirusdaten keine verbesserte Datenqualit\xe4t durch die Normalisierung feststellen l\xe4sst. \\n\\n### Datenauswertung\\n\\nDie Auswertung der Daten erfolgt am RKI \xfcber R-Skripte. Die Skripte sind in den [Kontextmaterialien](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Kontextmaterialien) enthalten. Eine genaue Beschreibung der Methodikist in den [technischen Leitf\xe4den](http://www.rki.de/abwassersurveillance) hinterlget. Die Ergebnisse werden w\xf6chentlich im AMELAG [Wochenbericht](https://edoc.rki.de/handle/176904/11665) auf der RKI-Webseite ver\xf6ffentlicht. \\n\\nF\xfcr jeden Standort werden die Messwerte f\xfcr SARS-CoV-2 (normalisiert) und Influenza A und B-Virus (nicht normalisiert) in Genkopien pro Liter (Genkopien/L) angegeben. Zus\xe4tzlich werden die Messwerte der logarithmierten und ggf. normalisierten Genkopien mittels einer lokal gewichteten Regression (LOESS) gegl\xe4ttet und zugeh\xf6rige Konfidenzintervalle berechnet. \\n\\nF\xfcr SARS-CoV-2 wird ein Trend berechnet. Der Trend f\xfcr eine Kl\xe4ranlage ergibt sich aus der Ver\xe4nderung des von der LOESS-Methode gesch\xe4tzten Werts an einem Mittwoch einer Woche gegen\xfcber dem f\xfcr den vorherigen Mittwoch vorhergesagten Wert, wobei die Werte vorher zur\xfcck auf die Originalskala transformiert wurden. \\n- `fallend`: die gegl\xe4ttete Viruslast ist um mehr als 15% zur Vorwoche gesunken \\n- `ansteigend`: die gegl\xe4ttete Viruslast ist um mehr als 15% zur Vorwoche gestiegen\\n- `gleichbleibend`: die gegl\xe4ttete Viruslast hat sich nicht mehr als 15% zur Vorwoche ver\xe4ndert \\n- `keine Daten vorhanden`: f\xfcr den Mittwoch dieser oder der vergangenen Woche leigt kein gegl\xe4tteter LOESS-Wert vor\\n- `NA`: ist f\xfcr alle Tage au\xdfer Mittwoch eingetragen. \\n\\n#### Aggregation der Standortwerte\\n\\nEs werden die einzelnen Zeitreihen der Standorte aggregiert, um einen bundesweiten Verlauf der SARS-CoV-2 bzw. Influenzaviren-Viruslast im Abwasser abzubilden. Daf\xfcr werden in jeder Woche, in der f\xfcr mindestens 10 Standorte Messwerte vorliegen, der Mittelwert \xfcber die \xfcber eine Woche gemittelten logarithmierten Messwerte der einzelnen Standorte berechnet. Dabei wird nach den angeschlossenen Einwohnern der Kl\xe4ranlage gewichtet. F\xfcr Influenzaviren erfolgt derzeit keine Gewichtung nach Einwohnern. \\n\\n### Hinweise zur Datenauswertung\\n\\nBei der Datenbewertung sind einige Besonderheiten zu beachten:\\n\\n* Es wurden an den unterschiedlichen Kl\xe4ranlagen und f\xfcr die unterschiedlichen Viren verschiedene Zielgene gemessen \\n * SARS-CoV-2: eine Kombination aus vorzugsweise N1, N2, E, ORF oder RdRp\\n * Influenza A-Virus: M1\\n * InfluenzaB-Virus: M1, NS1, NS2, HA\\n* Der Standort Hamburg ist mit zwei Zul\xe4ufen vertreten: \u201cHamburg Nord\u201d und \u201cHamburg S\xfcd\u201d.\\n* Bei Werten unterhalb der Bestimmungsgrenze (BG) wird mit der H\xe4lfte der Bestimmungsgrenze als Wert gerechnet (0,5 * BG).\\n\\n#### Limitationen \\n\\nAbwasserdaten erlauben keinen R\xfcckschluss auf die Krankheitsschwere oder die Belastung des Gesundheitssystems. Aus Abwasserdaten kann nach aktuellem Stand nicht pr\xe4zise auf Inzidenz/Pr\xe4valenz oder die Untererfassung (die sog. \u201eDunkelziffer\u201d) geschlossen werden. F\xfcr die epidemiologische Lagebewertung sollten die Daten immer in Zusammenschau mit anderen Indikatoren, z.B. aus der syndromischen Surveillance, betrachtet werden.\\nAbsolute Viruslasten k\xf6nnen insbesondere \xfcber l\xe4ngere Zeitr\xe4ume nicht direkt im Hinblick auf die Anzahl an Infizierten verglichen werden, da sich die ausgeschiedene Virusmenge pro infizierter Person beispielsweise zwischen verschiedenen Virusvarianten unterscheiden kann.\\nDie ermittelten Werte werden durch eine Vielzahl von Faktoren (z.B. Ver\xe4nderungen der Abwasserzuleitung, Starkregenereignisse oder touristische Ereignisse) beeinflusst, was durch die Normalisierung nur teilweise ausgeglichen werden kann.\\n\\nVon der Probenahme bis zur Daten\xfcbermittlung und Ver\xf6ffentlichung vom RKI kann es zu einem Zeitverzug von bis zu zwei Wochen kommen.\\n\\n## Inhalt und Aufbau des Datensatzes \\n\\nIm AMELAG-Datensatz werden Daten und Kontextmaterialien zu SARS-CoV-2-Nachweisen im Abwasser bereitgestellt. Die im Projekt erhobenen Daten liegen f\xfcr [einzelne Standorte](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Normalisierten-Daten-zur-SARS-CoV-2-Viruslast) und als [aggregierte Zeitreihe](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Zeitreihe-der-SARS-CoV-2-Viruslast) vor.\\n\\nIm Datensatz zus\xe4tzlich enthalten sind:\\n- Lizenz-Datei mit der Nutzungslizenz des Datensatzes in Deutsch und Englisch\\n- Datensatzdokumentation in deutscher Sprache\\n- Metadaten zur automatisierten Weiterverarbeitung\\n- Kontexmaterialien zur Datenanalyse\\n\\n### Daten f\xfcr die einzelnen Standorte\\n\\nIn der Datei [`amelag_einzelstandorte.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) sind die normalisierten Daten zur SARS-CoV-2-Viruslast und die nicht normalisierten Daten zur Influenza A- und B-Viruslast f\xfcr die einzelnen Standorte angegeben. \\n\\n> [amelag_einzelstandorte.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv)\\n\\n#### Variablen und Variablenauspr\xe4gungen \\n\\nDie Datei [`amelag_einzelstandorte.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) enth\xe4lt die in der folgenden Tabelle abgebildeten Variablen und deren Auspr\xe4gungen:\\n\\n| Variable | Typ | Auspr\xe4gung | Beschreibung |\\n| -------- | -------- | -------- | ---- |\\n| standort | Text | | Standort, an dem sich die Kl\xe4ranlage befindet. |\\n| bundesland | Text | ``BB``, ``BE``, ``BW``, ``BY``, ``HB``, ``HE``, ``HH``, ``MV``, ``NI``, ``NW``, ``RP``, ``SH``, ``SL``, ``SN``, ``ST``, ``TH`` | Bundesland (abgek\xfcrzt), in dem sich die Kl\xe4ranlage befindet. |\\n| datum | Datum | ``jjjj-mm-tt`` oder ``NA`` | Datum, an dem die 24-Stunden-Mischprobe in der Kl\xe4ranlage begonnen hat.|\\n| viruslast | Gleitkommazahl | `\u22650` oder `NA` | Gemessene SARS-CoV-2-Viruslast in Genkopien pro Liter. |\\n| loess_vorhersage | Gleitkommazahl | `\u22650` oder ``NA``| Die mittels einer LOESS-Regression (optimiert mittels GCV-Kriterium f\xfcr die 10er-logarithmierten Viruslasten) vorhergesagten Viruslasten. |\\n| loess_obere_schranke | Gleitkommazahl | `\u22650` oder ``NA`` | Obere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| loess_untere_schranke | Gleitkommazahl | `\u22650` oder ``NA`` | Untere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| loess_aenderung | Gleitkommazahl | `\u22650` oder ``NA`` | \xc4nderung des LOESS-Vorhersagewerts zur Vorwoche, d.h. Quotient aus aktuellem Wert und dem Vorwochenwert. |\\n| einwohner | Nat\xfcrliche Zahl | `\u22650` oder `NA` | Einwohner, die an das Kl\xe4rwerk des Standortes angeschlossen sind. |\\n| laborwechsel | Text | `ja`, `nein` oder `NA` | Laborwechsel bzw. \xc4nderungen in den Labormethoden. |\\n| trend | Text | `Ansteigend`, `Fallend`, `Unver\xe4ndert`, `keine Daten vorhanden`, `NA` | Kategorisierte Ver\xe4nderung des gegl\xe4tteten LOESS-Wertes von einem Mittwoch zum Mittwoch der Vorwoche (siehe [Datenauswertung](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Datenauswertung))|\\n| normalisierung | Text | `ja`, `nein` oder `NA` | Normalisierung nach Durchfluss. |\\n| typ | Text | `SARS-CoV-2`, `Influenza A`, `Influenza B` oder `Influenza A+B` | Virustyp. |\\n| unter_bg | Text | `ja`, `nein` oder `NA` | Mindestens die H\xe4lfte der gemessenen Gene liegen unterhalb der Bestimmungsgrenze. |\\n\\n### Daten \xfcber alle Standorte aggregiert\\n\\nIn der Datei [`amelag_aggregierte_kurve.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) ist die Zeitreihe der SARS-CoV-2-, Influenza A- und Influenza B-Viruslast auf aggregierter bzw. bundesweiter Ebene enthalten.\\n\\n> [amelag_aggregierte_kurve.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv)\\n\\n#### Variablen und Variablenauspr\xe4gungen \\n\\nDie Datei [`amelag_aggregierte_kurve.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) enth\xe4lt die in der folgenden Tabelle abgebildeten Variablen und deren Auspr\xe4gungen:\\n\\n| Variable | Typ | Auspr\xe4gung | Beschreibung |\\n| -------- | -------- | -------- |-------- |\\n| datum | Datum | ``jjjj-mm-tt`` | Datum des Mittwochs einer Woche |\\n| n | Nat\xfcrliche Zahl | `\u22650` | Anzahl der Standorte, die mindestens einen Messwert im durch \u201cdatum\u201d definierten Zeitraum \xfcbermittelt haben. |\\n| anteil_bev | Gleitkommazahl | `\u22650` oder `NA` | Anteil der Gesamtbev\xf6lkerung in Deutschland, der an die \xfcbermittelnden Kl\xe4rwerke angeschlossen ist. |\\n| viruslast | Gleitkommazahl | `\u22650` oder `NA` | SARS-CoV-2-Viruslast in Genkopien pro Liter gemittelt \xfcber alle Standorte und gewichtet nach angeschlossenen Einwohnern der Kl\xe4ranlagen. Vor der Mittelung \xfcber die Standorte wurden alle Messwerte der Standorte in den letzten 7 Tagen jeweils mittels 10er-Logarithmus transformiert und \xfcber die einzelnen Standorte gemittelt. Die angegebene Viruslast ist der auf die Originalskala zur\xfccktransformierte Mittelwert. |\\n| loess_vorhersage | Gleitkommazahl | `\u22650` oder `NA` | Die mittels einer LOESS-Regression vorhergesagten Viruslasten, zur\xfccktransformiert auf die Originalskala.|\\n| loess_obere_schranke | Gleitkommazahl | `\u22650` | Obere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| loess_untere_schranke | Gleitkommazahl | `\u22650` | Untere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| normalisierung | Text | `ja`, `nein` oder `NA` | Unterliegenden Einzelzeitreihen nach Durchfluss normalisiert. |\\n| typ | Text | `SARS-CoV-2`, `Influenza A`, `Influenza B` oder `Influenza A+B` | Virustyp. |\\n\\n### Kontextmaterialien\\n\\nZur Reproduktion der Ergebnisse des [AMELAG Wochenberichts](https://edoc.rki.de/handle/176904/11665) werden die zur Erstellung der Analyse verwendeten R-Skripte bereitgestellt. Die Skripte befinden sich im Ordner \\"[Kontextmatrialien](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\" des Datensatzes.\\n\\n> [Kontextmatrialien](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\n\\n### Metadaten \\n\\nZur Erh\xf6hung der Auffindbarkeit sind die bereitgestellten Daten mit Metadaten beschrieben. \xdcber GitHub Actions werden Metadaten an die entsprechenden Plattformen verteilt. F\xfcr jede Plattform existiert eine spezifische Metadatendatei, diese sind im Metadatenordner hinterlegt: \\n\\n> [Metadaten/](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/) \xa0 \\n\\nVersionierung und DOI-Vergabe erfolgt \xfcber [Zenodo.org](https://zenodo.org). Die f\xfcr den Import in Zenodo bereitgestellten Metadaten sind in der [zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json) hinterlegt. Die Dokumentation der einzelnen Metadatenvariablen ist unter https://developers.zenodo.org/#representation nachlesbar. \xa0\\n \\n> [Metadaten/zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json) \\n\\nIn der zenodo.json ist neben der Publikationsdatum (`\\"publication_date\\"`) auch der Datenstand in folgendem Format enthalten (Beispiel): \\n\\n```\\n \\"dates\\": [\\n {\\n \\"start\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"end\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"type\\": \\"Collected\\",\\n \\"description\\": \\"Date when the Dataset was created\\"\\n }\\n ],\\n``` \\n\\n## Hinweise zur Nachnutzung der Daten \\n\\nOffene Forschungsdaten des RKI werden auf [Zenodo.org](http://Zenodo.org/), [GitHub.com](http://GitHub.com/), [OpenCoDE](https://gitlab.opencode.de) und [Edoc.rki.de](http://Edoc.rki.de/) bereitgestellt: \\n\\n- https://zenodo.org/communities/robertkochinstitut \\n- https://github.com/robert-koch-institut \\n- https://gitlab.opencode.de/robert-koch-institut \\n- https://edoc.rki.de/ \\n \\n### Lizenz \\n\\nDer Datensatz \\"Abwassersurveillance AMELAG\\" ist lizenziert unter der [Creative Commons Namensnennung 4.0 International Public License | CC-BY 4.0 International](https://creativecommons.org/licenses/by/4.0/deed.de). \\n\\nDie im Datensatz bereitgestellten Daten sind, unter Bedingung der Namensnennung des Robert Koch-Instituts als Quelle, frei verf\xfcgbar. Das bedeutet, jede Person hat das Recht die Daten zu verarbeiten und zu ver\xe4ndern, Derivate des Datensatzes zu erstellen und sie f\xfcr kommerzielle und nicht kommerzielle Zwecke zu nutzen. Weitere Informationen zur Lizenz finden sich in der [LICENSE](https://github.com/robert-koch-institut/Daten_der_Notaufnahmesurveillance/blob/main/LICENSE) bzw. [LIZENZ](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/LIZENZ) Datei des Datensatzes. \\n\\n\\n \\n# Wastewater surveillance AMELAG \\n\\n[Robert Koch Institute](https://www.rki.de/EN) | RKI \\nNordufer 20 \\n13353 Berlin \\n\\n
\\n\\n**Unit 32 | Surveillance** \\n\\n
\\n\\n**Cite** \\nFachgebiet 32, Robert Koch-Institut (2024): Abwassersurveillance AMELAG, Berlin: Zenodo. [DOI: 10.5281/zenodo.12635858](https://doi.org/10.5281/zenodo.12635858)\\n\\n---\\n\\n## Information on the dataset and context of origin\\n\\nIn AMELAG (\u201cAbwassermonitoring f\xfcr die epidemiologische Lagebewertung\u201d, German for wastewater monitoring for epidemiological situation assessment), running from 22.11.2022 to 31.12.2024, local authorities, wastewater treatment plants (WWTP) and laboratories are working together to take, analyze and evaluate wastewater samples. The project aims at testing wastewater samples for selected pathogens and to establish it as an additional indicator for the epidemiological situation assessment at state and federal level. Further aims of the project include further development of structures and processes for a nationwide wastewater surveillance network, to develop concepts for continuity and to research the possibilities for monitoring other pathogens in wastewater. Currently, wastewater samples from selected treatment plants are being tested for SARS-CoV-2 and influenza viruses. \\n\\nWastewater surveillance is a technique for detecting pathogens in wastewater to better control health protection measures. Wastewater surveillance has a range of [applications](https://www.rki.de/DE/Content/Infekt/EpidBull/Archiv/2024/Ausgaben/34_24.pdf?__blob=publicationFile). Wastewater data, however, underlie several limiations. For example, they do not allow for an accurate assessment of disease severity or the burden on the healthcare system. In epidemiological assessments, the data should be combined with other indicators, e.g. from syndromic surveillance. \\n\\n### Administrative and organizational information\\n\\nAMELAG is a project funded by the [Federal Ministry of Health (BMG)](https://www.bundesgesundheitsministerium.de/en/index.html) and is being conducted in cooperation with the Federal Ministry for the Environment, Nature Conservation, Nuclear Safety and [Consumer Protection (BMUV)](https://www.bmuv.de/en/).\\nThe project is being carried out jointly by the Robert Koch Institute (RKI) and the [Federal Environment Agency (UBA)](https://www.umweltbundesamt.de/en). Further information on AMELAG can be found on the [project website](https://www.rki.de/EN/Content/Institute/DepartmentsUnits/InfDiseaseEpidem/Div32/WastewaterSurveillance/WastewaterSurveillance.html). \\nThe participating WWTPs are responsible for taking samples, which are analyzed by the participating laboratories. In addition to commercial laboratories, state laboratories and the Federal Environment Agency, the Central Medical Service of the German Armed Forces also carries out part of the analysis.\\n\\nSome of the WWTPs and laboratories are also involved in wastewater surveillance projects in the federal states (Baden-W\xfcrttemberg, Bavaria, Berlin, Brandenburg, Hamburg, Hesse, Rhineland-Palatinate, Saxony-Anhalt). \\nOther WWTPs and laboratories are part of the following research projects:\\n- [WBEready](https://www.fiw.rwth-aachen.de/aktuelles-veranstaltungen/aktuelles/wbeready) - A research consortium consisting of Emschergenossenschaft and LippeverbandEGLV, Research Institute for Water Management and Climate Future at RWTH Aachen FiW, University Hospital Frankfurt, Goethe University Frankfurt am Main, University Medicine Essen (Institute for Artificial Intelligence, Institute for Urban Public Health), RWTH Aachen, Institute for Urban Water Management.\\n- Establishment of methods for the detection of viruses in wastewater to assess the infection situation in the population (University of Dresden)\\n- Development of a state-wide wastewater surveillance system in Thuringia using mobility data and artificial intelligence (research consortium of the University of Weimar, University of Jena, University of Hamburg, Hamm-Lippstadt University of Applied Sciences, SMA Development GmbH, KOWUG Kommunale Wasser- und Umwelttechnik GmbH, Analytik Jena GmbH) \\n- Establishment of a multiplex PCR from wastewater and for detection and characterization of RSV in the context of SARS-CoV-2 wastewater monitoring (AMELAG) (University of Bonn and D\xfcsseldorf). \\n\\nThe company [ENDA](https://enda.eu/) was commissioned with data management. The data collected are stored and processed in a database (PiA-Monitor). \\n\\nThe data are processed, edited and published by the Department MF 4 | Subject and Research Data Management. Questions about data management and the publication infrastructure can be directed to the Open Data team of the MF4 department at [OpenData@rki.de](mailto:OpenData@rki.de).\\n\\n#### Data collection\\n\\nIn AMELAG, [technical guidelines](http://www.rki.de/abwassersurveillance) were developed based on the handouts for sampling and laboratory analysis created as part of the [ESI-CorA project](https://doi.org/10.5281/zenodo.10781652). The raw data of the SARS-CoV-2 samples analyzed in the ESI-CorA project are reused in AMELAG and included in the evaluated data.\\nRaw wastewater samples are generally collected twice a week at each participating WWTP, along with essential parameters such as volume flow, pH value, and temperature. These parameters are necessary for normalization and quality assurance. Where possible, the raw sewage samples should be taken after the grit chamber of the WWTP. A 24-hour composite sample is collected using an automatic sampler. The 24-hour samples are usually taken from Mondays to Tuesdays, and from Wednesdays to Thursdays. As a rule, one liter of the sample is filled into sample bottles and sent to the analysis laboratory.\\nIn the laboratory, the viral nucleic acid is concentrated, extracted and the viral gene sequences are quantified by digital PCR (dPCR) or quantitative real-time PCR (qRT-PCR). For SARS-CoV-2, at least two representative gene fragments (preferably N1, N2, E, ORF or RdRp) are determined, for the Influenza virus only one gene fragment (M1 for Influenza A Virus and M1, NS1, NS2 or HA for Influenza B Virus). \\n\\n> Robert Koch Institute, Department 32 (2024): \\"ESI-CorA: SARS-CoV-2 wastewater surveillance\\" [Dataset]. Zenodo. DOI: [10.5281/zenodo.10781653](https://doi.org/10.5281/zenodo.10781652)\\n\\n#### Data flow\\n\\n![Data flow AMELAG](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/.github/pictures/AMELAG_Datenfluss.png?raw=true \\"Data flow AMELAG\\")\\n \\nAt the UBA, metadata on the WWTPs and the laboratories as well as the regularly collected monitoring data are centrally stored and processed further in a web application, the PiA-Monitor (Pathogens in Wastewater). The monitoring data to be collected regularly from the WWTP and the data of the laboratories are merged and imported into the database by the data providers via the web application. The UBA, the RKI and the federal states can access the data within the scope of their respective rights.\\n\\n### Plausibility check and further processing of the data\\n\\nA plausibility check is run on the data as they are imported. The formats, completeness of the information (mandatory fields), value ranges of the monitoring data, plausibility of the dates and compliance with stored metadata are checked. Only data records that successfully pass the quality check are imported into the database. For SARS-CoV-2, the geometric mean of the viral load (gene copies/L) is then determined from the two or more measured target genes.\\n\\n#### Normalization procedure\\n\\nA varying wastewater composition, e.g. due to irregular industrial influences or heavy rainfall events, can lead to changing concentrations of SARS-CoV-2. To take these external influences into account, the measured viral load can be normalized. \\nIn AMELAG, normalization of the SARS-CoV-2 data is performed according to flow rate. The dry weather inflow of the WWTP is the reference. The following formula was used: \\n\\n$$ Gene_{normalized} = {Q_{KA\\\\_current}}/{Q_{KA\\\\_median}} \\\\cdot Gene_{averaged} $$\\n\\nwhere: \\n\\n- $Q_{KA\\\\_aktuell}$ : Volume flow of the wastewater treatment plant in the sampling period and \\n- $Q_{KA\\\\_median}$ : Median of the volume flow of the wastewater treatment plant \\n\\nNormalization is automated with the data import. The measured Influenza data are currently not normalized as the normalization does not show an imporved data quality for influenza viruses. \\n\\n### Data evaluation\\n\\nThe data are evaluated at the RKI using R scripts. The scripts are contained in the [context materials](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Kontextmaterialien). A detailed description of the methodology is provided in the [technical guidelines](http://www.rki.de/abwassersurveillance). The results are published in the RKI\xb4s [weekly report](https://www.rki.de/DE/Content/Institut/OrgEinheiten/Abt3/FG32/Abwassersurveillance/Bericht_Abwassersurveillance.html). \\nFor each WWTP, the measured values for SARS-CoV-2 (normalized) and Inlfuenza A and B viruses (not normalized) are reported in gene copies per liter (gene copies/L). In addition, the measured values of the logarithmized normalized gene copies are smoothed using a locally weighted regression (LOESS) and associated confidence intervals are calculated. \\n\\nA trend is calculated for SARS-CoV-2. The trend for a WWTP results from the change in the value estimated by the LOESS method on a Wednesday of a week compared to the value predicted for the previous Wednesday, whereby the values were previously transformed back to the original scale. \\n- `falling`: The smoothed viral load has fallen by more than 15% compared to the previous week \\n- `increasing`: The smoothed viral load has increased by more than 15% compared to the previous week\\n- `stable`: The smoothed viral load has not changed by more than 15% compared to the previous week \\n- `No data available`: No smoothed LOESS value is available for the Wednesday of this or the previous week\\n- `NA`: Is entered for all days except Wednesday. \\n\\n#### Aggregation of the WWTP values\\n\\nThe individual time series of the WWTP are aggregated in order to depict a nationwide course of the SARS-CoV-2 and Influenzavirus viral loads in wastewater. For each week in which measured values are available for at least 10 sites, the average of the logarithmized measured values of the individual sites averaged over one week is calculated. This value is then weighted by the number of inhabitants connected to the WWTPs. The influenza data are currently not weighted by the number of inhabitants.\\n\\n### Notes on data evaluation\\n\\nSome things to take into account when evaluating the data:\\n\\n* Different target genes were measured at the different sites\\n * SARS-CoV-2: a combination of preferably N1, N2, E, ORF oder RdRp\\n * Influenza A-Virus: M1\\n * Influenza B-Virus: M1, NS1, NS2, HA\\n* The Hamburg site is represented by two inflows: \\"Hamburg North\\" and \\"Hamburg South\\".\\n* For values below the limit of quantification (LOQ), half of the LOQ is used as the value (0.5 * LOQ).\\n\\n#### Limitations \\n\\nWastewater data do not allow conclusions to be drawn about disease severity or the burden on the healthcare system. At present, it is not possible to draw precise conclusions about incidence/prevalence or underreporting from wastewater data. When assessing a sitaution epidemiologically, the data should always be considered in combination with other indicators, such as those from syndromic surveillance.\\nAbsolute viral loads cannot be compared directly to the number of infected persons, especially over longer periods of time, as, for example, the amount of virus excreted per infected person can differ between different virus variants.\\nThe values determined are influenced by a variety of factors (e.g. changes in the wastewater supply, heavy rainfall events, or tourist events), which can only be partially compensated for by normalization.\\nThe time delay from sampling to transmission and further publication by the RKI can take up to two weeks. \\n\\n## Content and structure of the dataset \\n\\nThe AMELAG dataset provides data and contextual material on SARS-CoV-2 detections in wastewater. The data collected in the project are available for [individual sites](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Normalisierten-Daten-zur-SARS-CoV-2-Viruslast) and as [aggregated time series](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Zeitreihe-der-SARS-CoV-2-Viruslast).\\n\\nThe dataset also contains:\\n- License file with the license to use the dataset in German and English\\n- Dataset documentation in German\\n- Metadata for automated further processing\\n- Context materials for data analysis\\n\\n### Data for individual WWTP \\n\\nThe file [`amelag_einzelstandorte.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) contains the normalized SARS-CoV-2 and not normalized influenza virus viral load data for the individual sites. \\n\\n> [amelag_einzelstandorte.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv)\\n\\n#### Variables and variable values \\n\\nThe file [`amelag_einzelstandorte.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) contains the variables and their characteristics shown in the following table:\\n\\n| Variable | Type | Characteristic | Description |\\n| -------- | -------- | -------- | ---- |\\n| standort | Text | | Location where the wastewater treatment plant is located. |\\n| bundesland | Text | ``BB``, ``BE``, ``BW``, ``BY``, ``HB``, ``HE``, ``HH``, ``MV``, ``NI``, ``NW``, ``RP``, ``SH``, ``SL``, ``SN``, ``ST``, ``TH`` | Federal state (abbreviated) in which the wastewater treatment plant is located. |\\n| datum | Date | ``yyyy-mm-dd`` or ``NA`` | Date on which the 24-hour composite sample started in the wastewater treatment plant.\\n| viruslast | Floating point number | `\u22650` or `NA` | Measured SARS-CoV-2 viral load in gene copies per liter. |\\n| loess_vorhersage | Floating point number | `\u22650` or ``NA``| The viral loads predicted using a LOESS regression (optimized using GCV criterion for the 10s logarithmized viral loads). |\\n| loess_obere_schranke | Floating point number | `\u22650` or ``NA`` | Upper bound of the pointwise 95% confidence interval of the LOESS predicted value. |\\n| loess_untere_schranke | Floating point number | `\u22650` or ``NA`` | Lower bound of the point-wise 95% confidence interval of the LOESS predicted value. |\\n| loess_aenderung | Floating point number | `\u22650` or ``NA`` | Change in the LOESS predicted value compared to the previous week, i.e. quotient of the current value and the previous week\'s value. |\\n| einwohner | Natural number | `\u22650` or `NA` | Inhabitants connected to the site\'s sewage treatment plant. |\\n| laborwechsel | Text | `ja`, `nein` or `NA` | Changes in laboratory or changes in the methods. |\\n| trend | Text | `increasing`, `decreasing`, `unchanged`, `no data available`, `NA` | Categorized change in the smoothed LOESS value from a Wednesday to the Wednesday of the previous week (see [data evaluation](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Datenauswertung))|\\n| normalisierung | Text | `ja`, `nein` or `NA` | Values are normalized by flowrate. |\\n| typ | Text | `SARS-CoV-2`, `Influenza A`, `Influenza B` or `Influenza A+B` | Virus type. |\\n| unter_bg | Text | `ja`, `nein` or `NA` | At least half of the measured Genes are under the limit of quantification. |\\n\\n### Data aggregated across all WWTP \\n\\nIn the file [`amelag_aggregated_curve.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) contains the time series of the SARS-CoV-2 and influenza virus viral loads on an aggregated or nationwide level.\\n\\n> [amelag_aggregierte_kurve.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv)\\n\\n#### Variables and variable characteristics \\n\\nThe file [`amelag_aggregierte_kurve.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) contains the variables and their values shown in the following table:\\n\\n| Variable | Type | Characteristic | Description |\\n| -------- | -------- | -------- |-------- |\\n| datum | Date | ``yyyy-mm-dd`` | date of the Wednesday of a week |\\n| n | Natural number | `\u22650` | Number of locations that have transmitted at least one measured value in the period defined by \\"date\\". |\\n| anteil_bev | Floating point number | `\u22650` or `NA` | Proportion of the total population in Germany that is connected to the transmitting sewage treatment plants. |\\n| viruslast | Floating point number | `\u22650` or `NA` | SARS-CoV-2 viral load in gene copies per liter averaged over all sites and weighted by connected inhabitants of the wastewater treatment plants. Before averaging across the sites, all measured values of the sites in the last 7 days were transformed using the logarithm of 10 and averaged across the individual sites. The indicated viral load is the mean value transformed back to the original scale. |\\n| loess_vorhersage | Floating point number | `\u22650` or `NA` | The viral loads predicted using a LOESS regression, transformed back to the original scale.\\n| loess_obere_schranke | Floating point number | `\u22650` | Upper bound of the 95% confidence interval of the LOESS predicted value. |\\n| loess_untere_schranke | Floating point number | `\u22650` | Lower bound of the 95% confidence interval of the LOESS predicted value. |\\n| normalisierung | Text | `ja`, `nein` or `NA` | Individual time series are normalized by flowrate. |\\n| typ | Text | `SARS-CoV-2`, `Influenza A`, `Influenza B` or `Influenza A+B` | Virus type. |\\n\\n### Context materials\\n\\nTo reproduce the results of the [AMELAG weekly report](https://edoc.rki.de/handle/176904/11665), the R scripts used to create the analysis are provided. The scripts can be found in the \\"[Contextual materials](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\" folder of the dataset.\\n\\n> [Context Matrials](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\n\\n### Metadata\\n\\nTo increase findability, the provided data are described with metadata. The Metadata are distributed to the relevant platforms via GitHub Actions. There is a specific metadata file for each platform; these are stored in the metadata folder:\\n\\n> [Metadaten/](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Metadaten/)\\n\\nVersioning and DOI assignment are performed via [Zenodo.org](https://zenodo.org). The metadata prepared for import into Zenodo are stored in the [zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json). Documentation of the individual metadata variables can be found at https://developers.zenodo.org/representation.\\n\\n> [Metadaten/zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json)\\n\\nThe zenodo.json includes the publication date and the date of the data status in the following format (example):\\n```\\n \\"publication_date\\": \\"2024-06-19\\",\\n \\"dates\\": [\\n {\\n \\"start\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"end\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"type\\": \\"Collected\\",\\n \\"description\\": \\"Date when the Dataset was created\\"\\n }\\n ],\\n```\\n\\n## Guidelines for Reuse of the Data\\n\\nOpen data from the RKI are available on [Zenodo.org](http://Zenodo.org/), [GitHub.com](http://GitHub.com/), [OpenCoDE](https://gitlab.opencode.de), and [Edoc.rki.de](http://Edoc.rki.de/):\\n\\n- https://zenodo.org/communities/robertkochinstitut\\n- https://github.com/robert-koch-institut\\n- https://gitlab.opencode.de/robert-koch-institut\\n- https://edoc.rki.de/\\n\\n### License\\n\\nThe \\"Abwassersurveillance AMELAG\\" dataset is licensed under the [Creative Commons Attribution 4.0 International Public License | CC-BY](https://creativecommons.org/licenses/by/4.0/deed.en).\\n\\nThe data provided in the dataset are freely available, with the condition of attributing the Robert Koch Institute as the source, for anyone to process and modify, create derivatives of the dataset and use them for commercial and non-commercial purposes. \\nFurther information about the license can be found in the [LICENSE](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/LICENSE) or [LIZENZ](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/LIZENZ) file of the dataset.","licence":"CC-BY-4.0","content":[{"$type":"file","path":"Readme.md","name":"Readme.md","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Readme.md","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Readme.md","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Readme.md","size":42736,"lfs":false},{"$type":"file","path":"[Dokumentation]_Abwassersurveillance_AMELAG.pdf","name":"[Dokumentation]_Abwassersurveillance_AMELAG.pdf","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/[Dokumentation]_Abwassersurveillance_AMELAG.pdf","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/[Dokumentation]_Abwassersurveillance_AMELAG.pdf","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/[Dokumentation]_Abwassersurveillance_AMELAG.pdf","size":243668,"lfs":false},{"$type":"file","path":"amelag_aggregierte_kurve.tsv","name":"amelag_aggregierte_kurve.tsv","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_aggregierte_kurve.tsv","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_aggregierte_kurve.tsv","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_aggregierte_kurve.tsv","size":24515,"lfs":false},{"$type":"file","path":"amelag_einzelstandorte.tsv","name":"amelag_einzelstandorte.tsv","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_einzelstandorte.tsv","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_einzelstandorte.tsv","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_einzelstandorte.tsv","size":12370066,"lfs":false},{"content":[{"content":[{"$type":"file","path":"Kontextmaterialien/renv/.gitignore","name":".gitignore","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/.gitignore","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/.gitignore","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/.gitignore","size":56,"lfs":false},{"$type":"file","path":"Kontextmaterialien/renv/activate.R","name":"activate.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/activate.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/activate.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/activate.R","size":36558,"lfs":false},{"$type":"file","path":"Kontextmaterialien/renv/settings.json","name":"settings.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/settings.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/settings.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/settings.json","size":412,"lfs":false}],"path":"Kontextmaterialien/renv","name":"renv","$type":"folder"},{"content":[{"$type":"file","path":"Kontextmaterialien/Scripts/aggregation_calculation.R","name":"aggregation_calculation.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/aggregation_calculation.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/aggregation_calculation.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/aggregation_calculation.R","size":3513,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/functions_packages.R","name":"functions_packages.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/functions_packages.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/functions_packages.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/functions_packages.R","size":8479,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/loess_calculation.R","name":"loess_calculation.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/loess_calculation.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/loess_calculation.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/loess_calculation.R","size":4717,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_aggregated_curve.R","name":"plot_aggregated_curve.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_aggregated_curve.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_aggregated_curve.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_aggregated_curve.R","size":1521,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_heatmap.R","name":"plot_heatmap.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_heatmap.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_heatmap.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_heatmap.R","size":2301,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_loq_plot.R","name":"plot_loq_plot.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_loq_plot.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_loq_plot.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_loq_plot.R","size":896,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_single_places.R","name":"plot_single_places.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_single_places.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_single_places.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_single_places.R","size":4725,"lfs":false}],"path":"Kontextmaterialien/Scripts","name":"Scripts","$type":"folder"},{"$type":"file","path":"Kontextmaterialien/.Rprofile","name":".Rprofile","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/.Rprofile","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/.Rprofile","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/.Rprofile","size":26,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Readme.md","name":"Readme.md","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Readme.md","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Readme.md","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Readme.md","size":10568,"lfs":false},{"$type":"file","path":"Kontextmaterialien/amelag_open_code.Rproj","name":"amelag_open_code.Rproj","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/amelag_open_code.Rproj","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/amelag_open_code.Rproj","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/amelag_open_code.Rproj","size":205,"lfs":false},{"$type":"file","path":"Kontextmaterialien/main.R","name":"main.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/main.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/main.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/main.R","size":2606,"lfs":false},{"$type":"file","path":"Kontextmaterialien/renv.lock","name":"renv.lock","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv.lock","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv.lock","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv.lock","size":36633,"lfs":false}],"path":"Kontextmaterialien","name":"Kontextmaterialien","$type":"folder"},{"content":[{"content":[{"$type":"file","path":"Metadaten/schemas/amelag_aggregierte_kurve.csvs","name":"amelag_aggregierte_kurve.csvs","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_aggregierte_kurve.csvs","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_aggregierte_kurve.csvs","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_aggregierte_kurve.csvs","size":485,"lfs":false},{"$type":"file","path":"Metadaten/schemas/amelag_einzelstandorte.csvs","name":"amelag_einzelstandorte.csvs","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_einzelstandorte.csvs","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_einzelstandorte.csvs","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_einzelstandorte.csvs","size":843,"lfs":false}],"path":"Metadaten/schemas","name":"schemas","$type":"folder"},{"$type":"file","path":"Metadaten/govdata.ttl","name":"govdata.ttl","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/govdata.ttl","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/govdata.ttl","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/govdata.ttl","size":7248,"lfs":false},{"$type":"file","path":"Metadaten/nfdi4health.json","name":"nfdi4health.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/nfdi4health.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/nfdi4health.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/nfdi4health.json","size":2791,"lfs":false},{"$type":"file","path":"Metadaten/zenodo-invenio.json","name":"zenodo-invenio.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo-invenio.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo-invenio.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo-invenio.json","size":2945,"lfs":false},{"$type":"file","path":"Metadaten/zenodo.json","name":"zenodo.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo.json","size":3220,"lfs":false}],"path":"Metadaten","name":"Metadaten","$type":"folder"}]}');let pN=(()=>{class n{constructor(){}getDatasource(){return Object.assign(Object.assign({},zb),{lastUpdated:new Date(zb.lastUpdated),externalLinks:zb.externalLinks,content:zb.content})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ub=(()=>{class n{constructor(e){this._ngTitle=e,this._title=""}set title(e){this._title=e,this._ngTitle.setTitle(`RKI Open Data - ${e}`)}get title(){return this._title}}return n.\u0275fac=function(e){return new(e||n)(Re(cM))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mN(...n){const t=Cf(n),{args:e,keys:i}=cF(n),r=new _e(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let c=o,d=o;for(let f=0;f{v||(v=!0,d--),a[f]=x},()=>c--,void 0,()=>{(!c||!v)&&(d||s.next(i?uF(i,a):a),s.complete())}))}});return t?r.pipe(dM(t)):r}class gN{}class _N{}class il{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),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{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 il?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 il;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof il?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 s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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 SY{encodeKey(t){return vN(t)}encodeValue(t){return vN(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const MY=/%(\d[a-f0-9])/gi,EY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vN(n){return encodeURIComponent(n).replace(MY,(t,e)=>{var i;return null!==(i=EY[e])&&void 0!==i?i:t})}function jb(n){return`${n}`}class Gc{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new SY,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function AY(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],c=e.get(o)||[];c.push(a),e.set(o,c)}),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(jb):[jb(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(s=>{e.push({param:i,value:s,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 Gc({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(jb(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(jb(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 xY{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 yN(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function bN(n){return"undefined"!=typeof Blob&&n instanceof Blob}function wN(n){return"undefined"!=typeof FormData&&n instanceof FormData}class cg{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function kY(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,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new il),this.context||(this.context=new xY),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ax.set(B,t.setHeaders[B]),d)),t.setParams&&(f=Object.keys(t.setParams).reduce((x,B)=>x.set(B,t.setParams[B]),f)),new cg(i,r,o,{params:f,headers:d,context:v,reportProgress:c,responseType:s,withCredentials:a})}}var Rr=(()=>((Rr=Rr||{})[Rr.Sent=0]="Sent",Rr[Rr.UploadProgress=1]="UploadProgress",Rr[Rr.ResponseHeader=2]="ResponseHeader",Rr[Rr.DownloadProgress=3]="DownloadProgress",Rr[Rr.Response=4]="Response",Rr[Rr.User=5]="User",Rr))();class RE{constructor(t,e=200,i="OK"){this.headers=t.headers||new il,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}}class IE extends RE{constructor(t={}){super(t),this.type=Rr.ResponseHeader}clone(t={}){return new IE({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})}}class $b extends RE{constructor(t={}){super(t),this.type=Rr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new $b({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})}}class CN extends RE{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function OE(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 nd=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof cg)s=e;else{let c,d;c=r.headers instanceof il?r.headers:new il(r.headers),r.params&&(d=r.params instanceof Gc?r.params:new Gc({fromObject:r.params})),s=new cg(e,i,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:d,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=At(s).pipe($c(c=>this.handler.handle(c)));if(e instanceof cg||"events"===r.observe)return o;const a=o.pipe(ji(c=>c instanceof $b));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(z(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(z(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(z(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(z(c=>c.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 Gc).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,OE(r,i))}post(e,i,r={}){return this.request("POST",e,OE(r,i))}put(e,i,r={}){return this.request("PUT",e,OE(r,i))}}return n.\u0275fac=function(e){return new(e||n)(Re(gN))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class DN{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const SN=new lt("HTTP_INTERCEPTORS");let PY=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const RY=/^\)\]\}',?\n/;let AN=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _e(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((B,se)=>r.setRequestHeader(B,se.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const B=e.detectContentTypeHeader();null!==B&&r.setRequestHeader("Content-Type",B)}if(e.responseType){const B=e.responseType.toLowerCase();r.responseType="json"!==B?B:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const B=r.statusText||"OK",se=new il(r.getAllResponseHeaders()),me=function IY(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new IE({headers:se,status:r.status,statusText:B,url:me}),o},c=()=>{let{headers:B,status:se,statusText:me,url:Oe}=a(),Fe=null;204!==se&&(Fe=void 0===r.response?r.responseText:r.response),0===se&&(se=Fe?200:0);let et=se>=200&&se<300;if("json"===e.responseType&&"string"==typeof Fe){const $e=Fe;Fe=Fe.replace(RY,"");try{Fe=""!==Fe?JSON.parse(Fe):null}catch(ot){Fe=$e,et&&(et=!1,Fe={error:ot,text:Fe})}}et?(i.next(new $b({body:Fe,headers:B,status:se,statusText:me,url:Oe||void 0})),i.complete()):i.error(new CN({error:Fe,headers:B,status:se,statusText:me,url:Oe||void 0}))},d=B=>{const{url:se}=a(),me=new CN({error:B,status:r.status||0,statusText:r.statusText||"Unknown Error",url:se||void 0});i.error(me)};let f=!1;const v=B=>{f||(i.next(a()),f=!0);let se={type:Rr.DownloadProgress,loaded:B.loaded};B.lengthComputable&&(se.total=B.total),"text"===e.responseType&&!!r.responseText&&(se.partialText=r.responseText),i.next(se)},x=B=>{let se={type:Rr.UploadProgress,loaded:B.loaded};B.lengthComputable&&(se.total=B.total),i.next(se)};return r.addEventListener("load",c),r.addEventListener("error",d),r.addEventListener("timeout",d),r.addEventListener("abort",d),e.reportProgress&&(r.addEventListener("progress",v),null!==s&&r.upload&&r.upload.addEventListener("progress",x)),r.send(s),i.next({type:Rr.Sent}),()=>{r.removeEventListener("error",d),r.removeEventListener("abort",d),r.removeEventListener("load",c),r.removeEventListener("timeout",d),e.reportProgress&&(r.removeEventListener("progress",v),null!==s&&r.upload&&r.upload.removeEventListener("progress",x)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(Re(RO))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const FE=new lt("XSRF_COOKIE_NAME"),LE=new lt("XSRF_HEADER_NAME");class MN{}let OY=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=yO(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Gh),Re(FE))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),NE=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(MN),Re(LE))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),FY=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(SN,[]);this.chain=i.reduceRight((r,s)=>new DN(r,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(_N),Re(Ii))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),LY=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:NE,useClass:PY}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:FE,useValue:e.cookieName}:[],e.headerName?{provide:LE,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[NE,{provide:SN,useExisting:NE,multi:!0},{provide:MN,useClass:OY},{provide:FE,useValue:"XSRF-TOKEN"},{provide:LE,useValue:"X-XSRF-TOKEN"}]}),n})(),NY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[nd,{provide:gN,useClass:FY},AN,{provide:_N,useExisting:AN}],imports:[LY.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();const VY=["*"];let Wb;function ug(n){var t;return(null===(t=function BY(){if(void 0===Wb&&(Wb=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Wb=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Wb}())||void 0===t?void 0:t.createHTML(n))||n}function EN(n){return Error(`Unable to find icon with the name "${n}"`)}function xN(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function kN(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class id{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Gb=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,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,s){return this._addSvgIconConfig(e,i,new id(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(jn.HTML,r);if(!o)throw kN(r);const a=ug(o);return this._addSvgIconConfig(e,i,new id("",a,s))}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 id(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(jn.HTML,i);if(!s)throw kN(i);const o=ug(s);return this._addSvgIconSetConfig(e,new id("",o,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(jn.RESOURCE_URL,e);if(!i)throw xN(e);const r=this._cachedIconsByUrl.get(i);return r?At(qb(r)):this._loadSvgIconFromConfig(new id(e,null)).pipe(_i(s=>this._cachedIconsByUrl.set(i,s)),z(s=>qb(s)))}getNamedSvgIcon(e,i=""){const r=TN(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):ba(EN(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?At(qb(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(z(i=>qb(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?At(r):mN(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(tl(a=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(jn.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(d)),At(null)})))).pipe(z(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw EN(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(_i(i=>e.svgText=i),z(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?At(null):this._fetchIcon(e).pipe(_i(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(ug(""));return a.appendChild(o),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(ug("")),r=e.attributes;for(let s=0;sug(f)),wb(()=>this._inProgressUrlFetches.delete(a)),yd());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(TN(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:""}}}),PN=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],qY=PN.map(n=>`[${n}]`).join(", "),YY=/^url\(['"]?#(.*?)['"]?\)$/;let cf=(()=>{class n extends jY{constructor(e,i,r,s,o,a){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Me.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=Ft(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,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(qY),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=i[s],c=a.getAttribute(o),d=c?c.match(YY):null;if(d){let f=r.get(a);f||(f=[],r.set(a,f)),f.push({name:o,value:d[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(Ci(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Gb),bs("aria-hidden"),R(WY),R(aa),R($Y,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(Yt("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),Kt("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:[_t],ngContentSelectors:VY,decls:1,vars:0,template:function(e,i){1&e&&(Ui(),Vn(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})(),KY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn,yn]}),n})();const RN=["mat-button",""],IN=["*"],ZY=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],JY=Zl(Ql(Jl(class{constructor(n){this._elementRef=n}})));let rl=(()=>{class n extends JY{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 s of ZY)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);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)(R(bt),R(ya),R(Ts,8))},n.\u0275cmp=Ct({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(ec,5),2&e){let r;Dt(r=St())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Yt("disabled",i.disabled||null),Kt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_t],attrs:RN,ngContentSelectors:IN,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&&(Ui(),Y(0,"span",0),Vn(1),ee(),ft(2,"span",1)(3,"span",2)),2&e&&(ye(2),Kt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),Pe("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[ec],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})(),VE=(()=>{class n extends rl{constructor(e,i,r,s){super(i,e,r),this._ngZone=s,this._haltDisabledEvents=o=>{this.disabled&&(o.preventDefault(),o.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return n.\u0275fac=function(e){return new(e||n)(R(ya),R(bt),R(Ts,8),R(jt,8))},n.\u0275cmp=Ct({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){2&e&&(Yt("tabindex",i.disabled?-1:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),Kt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[_t],attrs:RN,ngContentSelectors:IN,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&&(Ui(),Y(0,"span",0),Vn(1),ee(),ft(2,"span",1)(3,"span",2)),2&e&&(ye(2),Kt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),Pe("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[ec],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})(),BE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Xm,yn,yn]}),n})();function ON(n,t=Jy){const e=_M(n,t);return DM(()=>e)}class FN{}const oc="*";function To(n,t){return{type:7,name:n,definitions:t,options:{}}}function _r(n,t=null){return{type:4,styles:t,timings:n}}function LN(n,t=null){return{type:2,steps:n,options:t}}function _n(n){return{type:6,styles:n,offset:null}}function vr(n,t,e){return{type:0,name:n,styles:t,options:e}}function rd(n){return{type:5,steps:n}}function or(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function tK(n=null){return{type:9,options:n}}function nK(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function NN(n){Promise.resolve(null).then(n)}class dg{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(){NN(()=>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 VN{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 s=this.players.length;0==s?NN(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,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}}class zE{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 sd extends zE{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Yb extends zE{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 iK extends zE{constructor(t){super(),this.element=t instanceof bt?t.nativeElement:t}}class UE{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof sd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yb?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof iK?(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 rK extends UE{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=s}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||Ii.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 Kb=(()=>{class n extends UE{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new yt,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,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,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(s,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}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)(R(Il),R(Oi),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_t]}),n})(),Xb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const BN=iF();class sK{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=Pr(-this._previousScrollPosition.left),t.style.top=Pr(-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,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),BN&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),BN&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_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 oK{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 HN{enable(){}disable(){}attach(){}}function jE(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function zN(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class aK{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();jE(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 lK=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new HN,this.close=o=>new oK(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new sK(this._viewportRuler,this._document),this.reposition=o=>new aK(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(Re(Nm),Re(Vm),Re(jt),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class hg{constructor(t){if(this.scrollStrategy=new HN,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 cK{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class uK{constructor(t,e,i,r,s,o,a,c,d,f=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=f,this._backdropElement=null,this._backdropClick=new b,this._attachments=new b,this._detachments=new b,this._locationChanges=Me.EMPTY,this._backdropClickHandler=v=>this._backdropClick.next(v),this._backdropTransitionendHandler=v=>{this._disposeBackdrop(v.target)},this._keydownEvents=new b,this._outsidePointerEvents=new b,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(Ci(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=Pr(this._config.width),t.height=Pr(this._config.height),t.minWidth=Pr(this._config.minWidth),t.minHeight=Pr(this._config.minHeight),t.maxWidth=Pr(this._config.maxWidth),t.maxHeight=Pr(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=Yy(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ot(Ni(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 Qb=(()=>{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||wM()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s{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,s=[];let o;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,r,a),d=this._getOverlayPoint(c,e,a),f=this._getOverlayFit(d,e,i,a);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(f,d,i)?s.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!o||o.overlayFit.visibleAreac&&(c=f,a=d)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&od(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(UN),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,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=WN(e);let{x:o,y:a}=t,c=this._getOffset(r,"x"),d=this._getOffset(r,"y");c&&(o+=c),d&&(a+=d);let x=0-a,B=a+s.height-i.height,se=this._subtractOverflows(s.width,0-o,o+s.width-i.width),me=this._subtractOverflows(s.height,x,B),Oe=se*me;return{visibleArea:Oe,isCompletelyWithinViewport:s.width*s.height===Oe,fitsInViewportVertically:me===s.height,fitsInViewportHorizontally:se==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=$N(this._overlayRef.getConfig().minHeight),a=$N(this._overlayRef.getConfig().minWidth),d=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&d}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=WN(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),c=Math.max(s.top-i.top-t.y,0),d=Math.max(s.left-i.left-t.x,0);let f=0,v=0;return f=r.width<=s.width?d||-o:t.xse&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-se/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)x=i.width-t.x+this._viewportMargin,f=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)v=t.x,f=i.right-t.x;else{const B=Math.min(i.right-t.x+i.left,t.x),se=this._lastBoundingBoxSize.width;f=2*B,v=t.x-B,f>se&&!this._isInitialRender&&!this._growAfterOpen&&(v=t.x-se/2)}return{top:o,left:v,bottom:a,right:x,width:f,height:s}}_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 s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Pr(i.height),r.top=Pr(i.top),r.bottom=Pr(i.bottom),r.width=Pr(i.width),r.left=Pr(i.left),r.right=Pr(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",s&&(r.maxHeight=Pr(s)),o&&(r.maxWidth=Pr(o))}this._lastBoundingBoxSize=i,od(this._boundingBox.style,r)}_resetBoundingBoxStyles(){od(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){od(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const f=this._viewportRuler.getViewportScrollPosition();od(i,this._getExactOverlayY(e,t,f)),od(i,this._getExactOverlayX(e,t,f))}else i.position="static";let a="",c=this._getOffset(e,"x"),d=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Pr(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Pr(o.maxWidth):s&&(i.maxWidth="")),od(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Pr(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Pr(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zN(t,i),isOriginOutsideView:jE(t,i),isOverlayClipped:zN(e,i),isOverlayOutsideView:jE(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&&Yy(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 bt)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 od(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function $N(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(dK);return e&&"px"!==e?null:parseFloat(t)}return n||null}function WN(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 GN="cdk-global-overlay-wrapper";class hK{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(GN),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:s,maxWidth:o,maxHeight:a}=i,c=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),d=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a),f=this._xPosition,v=this._xOffset,x="rtl"===this._overlayRef.getConfig().direction;let B="",se="",me="";c?me="flex-start":"center"===f?(me="center",x?se=v:B=v):x?"left"===f||"end"===f?(me="flex-end",B=v):("right"===f||"start"===f)&&(me="flex-start",se=v):"left"===f||"start"===f?(me="flex-start",B=v):("right"===f||"end"===f)&&(me="flex-end",se=v),t.position=this._cssPosition,t.marginLeft=c?"0":B,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":se,e.justifyContent=me,e.alignItems=d?"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(GN),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let fK=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new hK}flexibleConnectedTo(e){return new jN(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(Re(Vm),Re(Qt),Re(Zi),Re(Qb))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qN=(()=>{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)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pK=(()=>{class n extends qN{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._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)(Re(Qt),Re(jt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mK=(()=>{class n extends qN{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Qu(s)},this._clickListener=s=>{const o=Qu(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const f=c[d];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(o)||f.overlayElement.contains(a))break;const v=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>v.next(s)):v.next(s)}}}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)(Re(Qt),Re(Zi),Re(jt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gK=0,Po=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f,v,x,B){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=c,this._document=d,this._directionality=f,this._location=v,this._outsideClickDispatcher=x,this._animationsModuleType=B}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new hg(e);return o.direction=o.direction||this._directionality.value,new uK(s,i,r,o,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-"+gK++,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(qh)),new rK(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(Re(lK),Re(Qb),Re(Il),Re(fK),Re(pK),Re(Ii),Re(jt),Re(Qt),Re(us),Re(Iy),Re(mK),Re(Ts,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const _K=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],YN=new lt("cdk-connected-overlay-scroll-strategy");let KN=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(R(bt))},n.\u0275dir=qe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),vK=(()=>{class n{constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Me.EMPTY,this._attachSubscription=Me.EMPTY,this._detachSubscription=Me.EMPTY,this._positionSubscription=Me.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new yt,this.positionChange=new yt,this.attach=new yt,this.detach=new yt,this.overlayKeydown=new yt,this.overlayOutsideClick=new yt,this._templatePortal=new Yb(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ft(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ft(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ft(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ft(e)}get push(){return this._push}set push(e){this._push=Ft(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_K);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!va(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new hg({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof KN?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(rL(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(fr),R(Oi),R(YN),R(us,8))},n.\u0275dir=qe({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Zt]}),n})();const bK={provide:YN,deps:[Po],useFactory:function yK(n){return()=>n.scrollStrategies.reposition()}};let fg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Po,bK],imports:[Lm,Xb,tb,tb]}),n})(),wK=(()=>{class n extends Qb{constructor(e,i){super(e,i)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(e){const i=this._getEventName();i&&(this._fullScreenListener&&this._document.removeEventListener(i,this._fullScreenListener),this._document.addEventListener(i,e),this._fullScreenListener=e)}_getEventName(){if(!this._fullScreenEventName){const e=this._document;e.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":e.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":e.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":e.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){const e=this._document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||null}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const CK=["mat-menu-item",""];function DK(n,t){1&n&&(ia(),Y(0,"svg",2),ft(1,"polygon",3),ee())}const XN=["*"];function SK(n,t){if(1&n){const e=ii();Y(0,"div",0),vt("keydown",function(r){return zt(e),Wt(Qe()._handleKeydown(r))})("click",function(){return zt(e),Wt(Qe().closed.emit("click"))})("@transformMenu.start",function(r){return zt(e),Wt(Qe()._onAnimationStart(r))})("@transformMenu.done",function(r){return zt(e),Wt(Qe()._onAnimationDone(r))}),Y(1,"div",1),Vn(2),ee()()}if(2&n){const e=Qe();Pe("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Yt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Zb={transformMenu:To("transformMenu",[vr("void",_n({opacity:0,transform:"scale(0.8)"})),or("void => enter",_r("120ms cubic-bezier(0, 0, 0.2, 1)",_n({opacity:1,transform:"scale(1)"}))),or("* => void",_r("100ms 25ms linear",_n({opacity:0})))]),fadeInItems:To("fadeInItems",[vr("showing",_n({opacity:1})),or("void => *",[_n({opacity:0}),_r("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},AK=new lt("MatMenuContent"),$E=new lt("MAT_MENU_PANEL"),MK=Jl(Ql(class{}));let Jb=(()=>{class n extends MK{constructor(e,i,r,s,o){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new b,this._focused=new b,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class n{constructor(e,i,r,s){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new zh,this._tabSubscription=Me.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new b,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new yt,this.close=this.closed,this.panelId="mat-menu-panel-"+xK++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ft(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ft(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new UM(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cs(this._directDescendantItems),ds(e=>Ni(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=r.activeItem)||void 0===i?void 0:i._hasFocus())){const s=e.toArray(),o=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[o]&&!s[o].disabled?r.setActiveItem(o):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(cs(this._directDescendantItems),ds(i=>Ni(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:va(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(cs(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(jt),R(QN),R(Xn))},n.\u0275dir=qe({type:n,contentQueries:function(e,i,r){if(1&e&&(Dn(r,AK,5),Dn(r,Jb,5),Dn(r,Jb,4)),2&e){let s;Dt(s=St())&&(i.lazyContent=s.first),Dt(s=St())&&(i._allItems=s),Dt(s=St())&&(i.items=s)}},viewQuery:function(e,i){if(1&e&&Hn(fr,5),2&e){let r;Dt(r=St())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),kK=(()=>{class n extends pg{constructor(e,i,r,s){super(e,i,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(jt),R(QN),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Yt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[kt([{provide:$E,useExisting:n}]),_t],ngContentSelectors:XN,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Ui(),mt(0,SK,3,6,"ng-template"))},dependencies:[Gu],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Zb.transformMenu,Zb.fadeInItems]},changeDetection:0}),n})();const ZN=new lt("mat-menu-scroll-strategy"),PK={provide:ZN,deps:[Po],useFactory:function TK(n){return()=>n.scrollStrategies.reposition()}},JN=Ku({passive:!0});let RK=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=c,this._focusMonitor=d,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Me.EMPTY,this._hoverSubscription=Me.EMPTY,this._menuCloseSubscription=Me.EMPTY,this._handleTouchStart=v=>{$M(v)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new yt,this.onMenuOpen=this.menuOpened,this.menuClosed=new yt,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof pg?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,JN),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,JN),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),s=r.positionStrategy;this._setPosition(e,s),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof pg&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ot(e.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){var i;if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof pg?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(ji(s=>"void"===s.toState),Ci(1),Ot(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(i=null==r?void 0:r.lazyContent)||void 0===i||i.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new hg({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const s="start"===r.connectionPair.overlayX?"after":"before",o="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(s,o)):e.setPositionClasses(s,o)})}_setPosition(e,i){let[r,s]="before"===e.xPosition?["end","start"]:["start","end"],[o,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,d]=[o,a],[f,v]=[r,s],x=0;if(this.triggersSubmenu()){if(v=r="before"===e.xPosition?"start":"end",s=f="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const B=this._parentMaterialMenu.items.first;this._parentInnerPadding=B?B._getHostElement().offsetTop:0}x="bottom"===o?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===o?"bottom":"top",d="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:c,overlayX:f,overlayY:o,offsetY:x},{originX:s,originY:c,overlayX:v,overlayY:o,offsetY:x},{originX:r,originY:d,overlayX:f,overlayY:a,offsetY:-x},{originX:s,originY:d,overlayX:v,overlayY:a,offsetY:-x}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ni(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:At(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ji(o=>o!==this._menuItemInstance),ji(()=>this._menuOpen)):At(),i)}_handleMousedown(e){jM(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ji(e=>e===this._menuItemInstance&&!e.disabled),ON(0,gM)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof pg&&this.menu._isAnimating?this.menu._animationDone.pipe(Ci(1),ON(0,gM),Ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Yb(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(bt),R(Oi),R(ZN),R($E,8),R(Jb,10),R(us,8),R(ya),R(jt))},n.\u0275dir=qe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&vt("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&e&&Yt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),IK=(()=>{class n extends RK{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[_t]}),n})(),OK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[PK],imports:[_a,yn,Xm,fg,Kh,yn]}),n})();function FK(n,t){if(1&n&&(Y(0,"a",17),ie(1),ee()),2&n){const e=Qe();Pe("title",e.datasource.name),ye(1),ci(" ",e.datasource.name," ")}}function LK(n,t){if(1&n&&(Y(0,"div",18),ie(1),ee()),2&n){const e=Qe();Pe("title",e.titleService.title),ye(1),ci(" ",e.titleService.title," ")}}const e2=function(){return{exact:!0}};let NK=(()=>{class n{constructor(e,i,r,s){this.elemRef=e,this.datasourceService=i,this.breakpointObs=r,this.titleService=s,this.shrinkHeader=!1,this.datasource=this.datasourceService.getDatasource(),this.onScrollDebounced=Rs.debounce(o=>this.onScroll(o),50,{leading:!0}),this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(o=>o.matches),fN())}ngOnInit(){}onScroll(e){var i;if(e.target){const r=this._getBoundingBox(e.target);if(r)if(this.shrinkHeader)this.shrinkHeader=r.scroll.top>0;else{const s=this._getBoundingBox(this.elemRef.nativeElement);this.shrinkHeader=r.scroll.top>(null!==(i=null==s?void 0:s.bb.height)&&void 0!==i?i:30)/2}}}_getBoundingBox(e){return e instanceof Window?this._getBoundingBox(e.document):e instanceof Document?this._getBoundingBox(e.documentElement):e instanceof HTMLElement?{bb:e.getBoundingClientRect(),scroll:{height:e.scrollHeight,width:e.scrollWidth,top:e.scrollTop,left:e.scrollLeft}}:void 0}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(pN),R(jc),R(Ub))},n.\u0275cmp=Ct({type:n,selectors:[["app-nav-header"]],hostBindings:function(e,i){1&e&&vt("resize",function(s){return i.onScrollDebounced(s)},0,Nc)("scroll",function(s){return i.onScroll(s)},!1,Nc)},decls:30,vars:15,consts:[[1,"nav-header"],[1,"left-col"],[1,"link-container"],["routerLink","","routerLinkActive","active",1,"nav-link",3,"routerLinkActiveOptions"],["routerLink","imprint","routerLinkActive","active",1,"nav-link"],["routerLink","privacy","routerLinkActive","active",1,"nav-link"],[1,"title-container"],["class","title","routerLink","",3,"title",4,"ngIf","ngIfElse"],["betterTitle",""],["mat-icon-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","","routerLinkActive","active",3,"routerLinkActiveOptions"],["mat-menu-item","","routerLink","imprint","routerLinkActive","active"],["mat-menu-item","","routerLink","privacy","routerLinkActive","active"],[1,"right-col"],["href","https://www.rki.de","target","_blank","title","Externer Link - RKI Homepage",1,"rki-logo-link"],["src","./assets/RKI_Logo.png","title","Logo Robert Koch - Institut",1,"rki-logo"],["routerLink","",1,"title",3,"title"],[1,"title",3,"title"]],template:function(e,i){if(1&e&&(Y(0,"header"),ui(1,"async"),Y(2,"div",0)(3,"div",1)(4,"div",2)(5,"a",3),ie(6,"Datensatz"),ee(),Y(7,"a",4),ie(8,"Impressum"),ee(),Y(9,"a",5),ie(10,"Datenschutzerkl\xe4rung"),ee()(),Y(11,"div",6),mt(12,FK,2,2,"a",7),ui(13,"async"),mt(14,LK,2,2,"ng-template",null,8,Hl),Y(16,"button",9)(17,"mat-icon"),ie(18,"menu"),ee()(),Y(19,"mat-menu",null,10)(21,"button",11),ie(22,"Datensatz"),ee(),Y(23,"button",12),ie(24,"Impressum"),ee(),Y(25,"button",13),ie(26,"Datenschutzerkl\xe4rung"),ee()()()(),Y(27,"div",14)(28,"a",15),ft(29,"img",16),ee()()()()),2&e){const r=zi(15),s=zi(20);Kt("shrink",i.shrinkHeader)("small",wi(1,9,i.isSmall$)),ye(5),Pe("routerLinkActiveOptions",_A(13,e2)),ye(7),Pe("ngIf",wi(13,11,i.isSmall$))("ngIfElse",r),ye(4),Pe("matMenuTriggerFor",s),ye(5),Pe("routerLinkActiveOptions",_A(14,e2))}},dependencies:[mr,cf,rl,kK,Jb,IK,Bb,Hb,iN,Ga]}),n})(),VK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"app-component"],[1,"app-content"]],template:function(e,i){1&e&&(Y(0,"div",0),ft(1,"app-nav-header"),Y(2,"main",1),ft(3,"router-outlet"),ee()())},dependencies:[bE,NK]}),n})();const BK=["*",[["mat-toolbar-row"]]],HK=["*","mat-toolbar-row"],zK=Zl(class{constructor(n){this._elementRef=n}});let UK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),jK=(()=>{class n extends zK{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)(R(bt),R(Zi),R(Qt))},n.\u0275cmp=Ct({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,UK,5),2&e){let s;Dt(s=St())&&(i._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&Kt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[_t],ngContentSelectors:HK,decls:2,vars:0,template:function(e,i){1&e&&(Ui(BK),Vn(0),Vn(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})(),$K=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn,yn]}),n})();var ad=He(6036),mg=He.t(ad,2),Qo=He(2813),t2=He.t(Qo,2);const WK=["pdfViewerContainer"];function n2(n,t){const e=new n.EventBus;return function GK(n,t){di(n,"documentload").pipe(Ot(t)).subscribe(()=>{const e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),di(n,"pagerendered").pipe(Ot(t)).subscribe(({pageNumber:e,cssTransform:i,source:r})=>{const s=document.createEvent("CustomEvent");s.initCustomEvent("pagerendered",!0,!0,{pageNumber:e,cssTransform:i}),r.div.dispatchEvent(s)}),di(n,"textlayerrendered").pipe(Ot(t)).subscribe(({pageNumber:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e}),i.textLayerDiv.dispatchEvent(r)}),di(n,"pagechanging").pipe(Ot(t)).subscribe(({pageNumber:e,source:i})=>{const r=document.createEvent("UIEvents");r.initEvent("pagechanging",!0,!0),r.pageNumber=e,i.container.dispatchEvent(r)}),di(n,"pagesinit").pipe(Ot(t)).subscribe(({source:e})=>{const i=document.createEvent("CustomEvent");i.initCustomEvent("pagesinit",!0,!0,null),e.container.dispatchEvent(i)}),di(n,"pagesloaded").pipe(Ot(t)).subscribe(({pagesCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e}),i.container.dispatchEvent(r)}),di(n,"scalechange").pipe(Ot(t)).subscribe(({scale:e,presetValue:i,source:r})=>{const s=document.createEvent("UIEvents");s.initEvent("scalechange",!0,!0),s.scale=e,s.presetValue=i,r.container.dispatchEvent(s)}),di(n,"updateviewarea").pipe(Ot(t)).subscribe(({location:e,source:i})=>{const r=document.createEvent("UIEvents");r.initEvent("updateviewarea",!0,!0),r.location=e,i.container.dispatchEvent(r)}),di(n,"find").pipe(Ot(t)).subscribe(({source:e,type:i,query:r,phraseSearch:s,caseSensitive:o,highlightAll:a,findPrevious:c})=>{if(e===window)return;const d=document.createEvent("CustomEvent");d.initCustomEvent("find"+i,!0,!0,{query:r,phraseSearch:s,caseSensitive:o,highlightAll:a,findPrevious:c}),window.dispatchEvent(d)}),di(n,"attachmentsloaded").pipe(Ot(t)).subscribe(({attachmentsCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e}),i.container.dispatchEvent(r)}),di(n,"sidebarviewchanged").pipe(Ot(t)).subscribe(({view:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("sidebarviewchanged",!0,!0,{view:e}),i.outerContainer.dispatchEvent(r)}),di(n,"pagemode").pipe(Ot(t)).subscribe(({mode:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("pagemode",!0,!0,{mode:e}),i.pdfViewer.container.dispatchEvent(r)}),di(n,"namedaction").pipe(Ot(t)).subscribe(({action:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("namedaction",!0,!0,{action:e}),i.pdfViewer.container.dispatchEvent(r)}),di(n,"presentationmodechanged").pipe(Ot(t)).subscribe(({active:e,switchInProgress:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("presentationmodechanged",!0,!0,{active:e,switchInProgress:i}),window.dispatchEvent(r)}),di(n,"outlineloaded").pipe(Ot(t)).subscribe(({outlineCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e}),i.container.dispatchEvent(r)})}(e,t),e}function e0(n,t,e){n[t]=e}function gg(){return"undefined"==typeof window}gg()||e0(mg,"verbosity",ad.VerbosityLevel.INFOS);var ld=(()=>{return(n=ld||(ld={}))[n.DISABLED=0]="DISABLED",n[n.ENABLED=1]="ENABLED",n[n.ENHANCED=2]="ENHANCED",ld;var n})();let qK=(()=>{class n{constructor(e,i){if(this.element=e,this.ngZone=i,this.isVisible=!1,this._cMapsUrl=void 0!==mg?`https://unpkg.com/pdfjs-dist@${ad.version}/cmaps/`:null,this._imageResourcesPath=void 0!==mg?`https://unpkg.com/pdfjs-dist@${ad.version}/web/images/`:null,this._renderText=!0,this._renderTextMode=ld.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.resizeTimeout=null,this.pageScrollTimeout=null,this.isInitialized=!1,this.destroy$=new b,this.afterLoadComplete=new yt,this.pageRendered=new yt,this.pageInitialized=new yt,this.textLayerRendered=new yt,this.onError=new yt,this.onProgress=new yt,this.pageChange=new yt(!0),gg())return;let r;r=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:`https://cdn.jsdelivr.net/npm/pdfjs-dist@${ad.version}/legacy/build/pdf.worker.min.js`,e0(ad.GlobalWorkerOptions,"workerSrc",r)}set cMapsUrl(e){this._cMapsUrl=e}set page(e){const i=e=parseInt(e,10)||1;this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,i!==e&&this.pageChange.emit(e)}set renderText(e){this._renderText=e}set renderTextMode(e){this._renderTextMode=e}set originalSize(e){this._originalSize=e}set showAll(e){this._showAll=e}set stickToPage(e){this._stickToPage=e}set zoom(e){e<=0||(this._zoom=e)}get zoom(){return this._zoom}set zoomScale(e){this._zoomScale=e}get zoomScale(){return this._zoomScale}set rotation(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")}set externalLinkTarget(e){this._externalLinkTarget=e}set autoresize(e){this._canAutoResize=Boolean(e)}set fitToPage(e){this._fitToPage=Boolean(e)}set showBorders(e){this._showBorders=Boolean(e)}static getLinkTarget(e){switch(e){case"blank":return Qo.LinkTarget.BLANK;case"none":return Qo.LinkTarget.NONE;case"self":return Qo.LinkTarget.SELF;case"parent":return Qo.LinkTarget.PARENT;case"top":return Qo.LinkTarget.TOP}return null}ngAfterViewChecked(){if(this.isInitialized)return;const e=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=e?!1===this.isVisible&&null!=e&&(this.isVisible=!0,setTimeout(()=>{this.initialize(),this.ngOnChanges({src:this.src})})):this.isVisible=!1}ngOnInit(){this.initialize(),this.setupResizeListener()}ngOnDestroy(){this.clear(),this.destroy$.next(),this.loadingTask=null}get pdfLinkService(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService}get pdfViewer(){return this.getCurrentViewer()}get pdfFindController(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController}ngOnChanges(e){if(!gg()&&this.isVisible)if("src"in e)this.loadPDF();else if(this._pdf){if("renderText"in e?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:ld.DISABLED,this.resetPdfDocument()):"showAll"in e&&this.resetPdfDocument(),"page"in e){const{page:i}=e;if(i.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}}updateSize(){const e=this.getCurrentViewer();pi(this._pdf.getPage(e.currentPageNumber)).pipe(Ot(this.destroy$)).subscribe({next:i=>{const r=this._rotation||i.rotate,s=i.getViewport({scale:this._zoom,rotation:r}).width*n.CSS_UNITS;let o=this._zoom,a=!0;if(!this._originalSize||this._fitToPage&&s>this.pdfViewerContainer.nativeElement.clientWidth){const c=i.getViewport({scale:1,rotation:r});o=this.getScale(c.width,c.height),a=!this._stickToPage}e._setScale(o,a)}})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.destroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))}getPDFLinkServiceConfig(){const e={},i=n.getLinkTarget(this._externalLinkTarget);return i&&(e.externalLinkTarget=i),e}setupMultiPageViewer(){e0(mg,"disableTextLayer",!this._renderText);const e=n2(t2,this.destroy$);di(e,"pagerendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageRendered.emit(r)}),di(e,"pagesinit").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageInitialized.emit(r)}),di(e,"pagechanging").pipe(Ot(this.destroy$)).subscribe(({pageNumber:r})=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=window.setTimeout(()=>{this._latestScrolledPage=r,this.pageChange.emit(r)},100)}),di(e,"textlayerrendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.textLayerRendered.emit(r)}),this.pdfMultiPageLinkService=new Qo.PDFLinkService(Object.assign({eventBus:e},this.getPDFLinkServiceConfig())),this.pdfMultiPageFindController=new Qo.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:e});const i={eventBus:e,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:ld.DISABLED,findController:this.pdfMultiPageFindController,renderer:"canvas",l10n:void 0,imageResourcesPath:this._imageResourcesPath};this.pdfMultiPageViewer=new Qo.PDFViewer(i),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)}setupSinglePageViewer(){e0(mg,"disableTextLayer",!this._renderText);const e=n2(t2,this.destroy$);di(e,"pagechanging").pipe(Ot(this.destroy$)).subscribe(({pageNumber:r})=>{r!==this._page&&(this.page=r)}),di(e,"pagerendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageRendered.emit(r)}),di(e,"pagesinit").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageInitialized.emit(r)}),di(e,"textlayerrendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.textLayerRendered.emit(r)}),this.pdfSinglePageLinkService=new Qo.PDFLinkService(Object.assign({eventBus:e},this.getPDFLinkServiceConfig())),this.pdfSinglePageFindController=new Qo.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:e});const i={eventBus:e,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:ld.DISABLED,findController:this.pdfSinglePageFindController,renderer:"canvas",l10n:void 0};this.pdfSinglePageViewer=new Qo.PDFSinglePageViewer(i),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page}getValidPageNumber(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e}getDocumentParams(){const e=typeof this.src;if(!this._cMapsUrl)return this.src;const i={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?i.url=this.src:"object"===e&&(void 0!==this.src.byteLength?i.data=this.src:Object.assign(i,this.src)),i}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src)return void this.update();this.clear(),this.loadingTask=ad.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=i=>{this.onProgress.emit(i)};const e=this.src;pi(this.loadingTask.promise).pipe(Ot(this.destroy$)).subscribe({next:i=>{this._pdf=i,this.lastLoaded=e,this.afterLoadComplete.emit(i),this.pdfMultiPageViewer||(this.setupMultiPageViewer(),this.setupSinglePageViewer()),this.resetPdfDocument(),this.update()},error:i=>{this.lastLoaded=null,this.onError.emit(i)}})}update(){this.page=this._page,this.render()}render(){this._page=this.getValidPageNumber(this._page);const e=this.getCurrentViewer();(0!==this._rotation||e.pagesRotation!==this._rotation)&&setTimeout(()=>{e.pagesRotation=this._rotation}),this._stickToPage&&setTimeout(()=>{e.currentPageNumber=this._page}),this.updateSize()}getScale(e,i){const r=this._showBorders?2*n.BORDER_WIDTH:0,s=this.pdfViewerContainer.nativeElement.clientWidth-r,o=this.pdfViewerContainer.nativeElement.clientHeight-r;if(0===o||0===i||0===s||0===e)return 1;let a=1;switch(this._zoomScale){case"page-fit":a=Math.min(o/i,s/e);break;case"page-height":a=o/i;break;default:a=s/e}return this._zoom*a/n.CSS_UNITS}getCurrentViewer(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer}resetPdfDocument(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))}initialize(){gg()||!this.isVisible||(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())}setupResizeListener(){gg()||this.ngZone.runOutsideAngular(()=>{di(window,"resize").pipe(mb(100),ji(()=>this._canAutoResize&&!!this._pdf),Ot(this.destroy$)).subscribe(()=>{this.updateSize()})})}}return n.CSS_UNITS=96/72,n.BORDER_WIDTH=9,n.\u0275fac=function(e){return new(e||n)(R(bt),R(jt))},n.\u0275cmp=Ct({type:n,selectors:[["pdf-viewer"]],viewQuery:function(e,i){if(1&e&&Hn(WK,5),2&e){let r;Dt(r=St())&&(i.pdfViewerContainer=r.first)}},inputs:{src:"src",cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"]},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[Zt],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(e,i){1&e&&(Y(0,"div",0,1),ft(2,"div",2),ee())},styles:[".ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] {--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--zoom-factor: 1;--viewport-scale-factor: 1;--shadow: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=);--viewer-container-height: 0;--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,\");--xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,\")}@media screen and (forced-colors: active){[_nghost-%COMP%] {--pdfViewer-padding-bottom: 9px;--page-margin: 9px auto 0;--page-border: none;--spreadHorizontalWrapped-margin-LR: 4.5px}}[_nghost-%COMP%] .textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}[_nghost-%COMP%] .textLayer span, [_nghost-%COMP%] .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}[_nghost-%COMP%] .textLayer span.markedContent{top:0;height:0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.appended{position:initial}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::selection{background:blue}[_nghost-%COMP%] .textLayer br::selection{background:transparent}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}[_nghost-%COMP%] .annotationLayer section{position:absolute;text-align:initial}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{position:relative;top:0;left:0;z-index:-1}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:yellow;box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled], [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid black}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea :focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;width:20em}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:9px}[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popupDate{display:inline-block;margin-left:5px}[_nghost-%COMP%] .annotationLayer .popupContent{border-top:1px solid #333333;margin-top:2px;padding-top:2px}[_nghost-%COMP%] .annotationLayer .richText>*{white-space:pre-wrap}[_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation{cursor:pointer}[_nghost-%COMP%] .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%] .xfaLayer .highlight.appended{position:initial}[_nghost-%COMP%] .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%] .xfaLayer ::selection{background:blue}[_nghost-%COMP%] .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%] .xfaContentarea{position:absolute}[_nghost-%COMP%] .xfaPrintOnly{display:none}[_nghost-%COMP%] .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%] .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-feature-settings:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%] .xfaLayer div{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%] .xfaLayer a{color:#00f}[_nghost-%COMP%] .xfaRich li{margin-left:3em}[_nghost-%COMP%] .xfaFont{color:#000;font-weight:400;font-feature-settings:\"kern\" off;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%] .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%] .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%] .xfaLabel{height:100%;width:100%}[_nghost-%COMP%] .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%] .xfaLeft>.xfaCaption, [_nghost-%COMP%] .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaRight>.xfaCaption, [_nghost-%COMP%] .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%] .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%] .xfaTop>.xfaCaption, [_nghost-%COMP%] .xfaTop>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaBottom>.xfaCaption, [_nghost-%COMP%] .xfaBottom>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%] .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%] .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%] .xfaTextfield:focus, [_nghost-%COMP%] .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%] .xfaCheckbox:focus, [_nghost-%COMP%] .xfaRadio:focus{outline:auto}[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%] .xfaTop>.xfaTextfield, [_nghost-%COMP%] .xfaTop>.xfaSelect, [_nghost-%COMP%] .xfaBottom>.xfaTextfield, [_nghost-%COMP%] .xfaBottom>.xfaSelect{flex:0 1 auto}[_nghost-%COMP%] .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%] .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}[_nghost-%COMP%] .xfaCheckbox, [_nghost-%COMP%] .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%] .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%] .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .xfaLrTb, [_nghost-%COMP%] .xfaRlTb, [_nghost-%COMP%] .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%] .xfaTb>div{justify-content:left}[_nghost-%COMP%] .xfaPosition{position:relative}[_nghost-%COMP%] .xfaArea{position:relative}[_nghost-%COMP%] .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%] .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%] .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%] .xfaNonInteractive input, [_nghost-%COMP%] .xfaNonInteractive textarea, [_nghost-%COMP%] .xfaDisabled input, [_nghost-%COMP%] .xfaDisabled textarea, [_nghost-%COMP%] .xfaReadOnly input, [_nghost-%COMP%] .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{background:transparent}[_nghost-%COMP%] .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}[_nghost-%COMP%] .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;border-image:var(--shadow) 9 9 repeat;background-color:#fff}[_nghost-%COMP%] .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped, [_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .spread .dummyPage, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQQAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/ilPcHRpbWl6ZWQgd2l0aCBodHRwczovL2V6Z2lmLmNvbS9vcHRpbWl6ZQAh+QQJBwAQACwAAAAAGAAYAAAFmiAkjiTkOGVaBgjZNGSgkgKjjM8zLoI8iy+BKCdiCX8iBeMAhEEIPRXLxViYUE9CbCQoFAzFhHY3zkaT3oPvBz1zE4UBsr1eWZH4vAowOBwGAHk8AoQLfH6Agm0Ed3qOAXWOIgQKiWyFJQgDgJEpdG+WEACNEFNFmKVlVzJQk6qdkwqBoi1mebJ3ALNGeIZHtGSwNDS1RZKueCEAIfkECQcAEAAsAAAAABgAGAAABZcgJI4kpChlWgYCWRQkEKgjURgjw4zOg9CjVwuiEyEeO6CxkBC9nA+HiuUqLEyoBZI0Mx4SAFFgQCDZuguBoGv6Dtg0gvpqdhxQQDkBzuUr/4A1JwMKP39pc2mDhYCIc4GQYn6QCwCMeY91l0p6dBAEJ0OfcFRimZ91Mwt0alxxAIZyRmuAsKxDLKKvZbM1tJxmvGKRpn8hACH5BAkHABAALAAAAAAYABgAAAWhICSOJGQYZVoGAnkcJBKoI3EAY1GMCtPSosSBINKJBIwGkHdwBGGQA0OhYpEGQxNqkYzNIITBACEKKBaxxNfBeOCO4vMy0Hg8nDHFeCktkKtfNAtoS4UqAicKBj9zBAKPC4iKi4aRkISGmWWBmjUIAIyHkCUEAKCVo2WmREecVqoCgZhgP4NHrGWCj7e3szSpuxAsoVWxnp6cVV4kyZW+KSEAIfkECQcAEAAsAAAAABgAGAAABZkgJI4kBABlWgYEOQykEKgjMSDjcYxG0dKi108nEhQKQN4rCIMkCgbawjWYnSCLY2yGVSgEooBhWqsGGwxc0RtNBgoMhmJ1QgETjANYFeBKyUmBKQQIdT9JDmgPDQ6EhoKJD4sOgpWWgiwChyqEBH5hmptSoSOZgJ4kLKWkYTF7C2SaqaM/hEWygay4mYG8t6uffFuzl1iANCEAIfkECQcAEAAsAAAAABgAGAAABZ0gJI4khCBlmhKkopBCoI6LIozDMAIHO4uuBVBnOiR+I4FrCDwAZsKdQnaCLIwwmRUA8JmioprWUCjcwlwUMnAoG0qL03k2KCS8cC0UjOzDCQKBfHQFDAwFU4CCfgqFhy9+kZJWgzSKSAcPZn+BfQENDw8OljGWJAFeDoZPYTBnC1GdSXqnsoBolSulX2GyP6hgvnG0KrS3NJNhuSQhACH5BAkHABAALAAAAAAYABgAAAWaICSOJCQIZZoupGGQRKCOC0CMijIiwz2LABtQZxoMfjQhxAXszWQ7gOwECRhh0MCJJRJARTUoIHFAgbfI6uBwAJS01J/i4PClVYHvfV8lbLlIBmwFbQt+aGmChG18jXeGT4dICQxlb4g/AQUMDER9XjR6BAdiDQwINDBmkAsPDVh4cX4imw53iLKuaVqAcUsPqEiidkt6j4AzIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiREEGWaBiSCtCoZCMsIAKOg1LEo0KKbaKFQ9EYLoOkFuQlirNxzCQkUW9GZ0hQd4nyDAWr4G/esYSbyZFYZwu3jqiuvr8u8I2BwOAwASXh1e31/doeHC3klWnElfAlTd46MfQUGk2stCVEGBQWSdCciDg5VDAVYKoEiDQ0iBwxGcj9RDw8+qHIzebc2DJJQJK6qiKVyIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiS0LGWaBiRBtCoZCKgoCCMB1DF0sz6cCQDo5W62l28XAyZFpyECBv3lnCbhUqHMIo0Qg4Jbmn1jRCa4iV27TzfXGjEecOFWMN1OdvvfPGUuXSoKBw6EXokrAwcHRVU0UAeEBANAAAmUI1gNDyhjJgUHLW0iDg8FIqOnBQZrDA9TELE2rEYIDw4jta2LMpCrqld/YQpgIQAh+QQJBwAQACwAAAAAGAAYAAAFmyAkjiS0LGWaBiRBkKw6BgIqCsJcyyMe4yJajhcEml5H26o1PN2QQd3uFiv2AADlAgflIbDdZLgkABOJgep5LfWty4p4zeU+w+XsvJWXliEKDwdEBgMKYQ4PDw1qK3EDCCMAiQ5BCV0LCj+FSDQkgCgGBiYHAy2MIgoMghAHqw4HAGsNDEMFBTekdgwKI7aRB2MwkL2rVHoQoWchACH5BAkHABAALAAAAAAYABgAAAWWICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkfbqjU83ZBB3e4WK0qrCxyU55peid0qcUwuixyNx6PhILsAcAJazXYj4lvz2MkLiFsHDAlEcABKZwwMBX8pBgoKQxAIigpBA1sLBj+PSDQkB4uSACYDlTMyBgWDEKVnl2QFBUigN61gBQYjtLV5JZ4jtlR6omMhACH5BAkHABAALAAAAAAYABgAAAWaICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkdbidYanm7I4AjwYDh6saJuJ3JUG1mZi9srPA7EcRimJLrfJYWZUVC8TziXnEG3u/E+cIJaPAFrPQl1aQAIbRAGBZGHJQiMUQKRBkEKbQsAPZaEXQcslSYKmjMyAAdXj34ACkNEiUgDA5t+PAQHn6Ogjkuzry2DNwhuIQAh+QQFBwAQACwAAAAAGAAYAAAFnCAkjiS0LGVaBgBJEGSguo8zCsK4CPIsMg+ECCcKEH0ix6MwhJl4KiOp8UCdmrEbo6EoHpxF8A6aBBZ6vhf5dmAkkGr0CoWs21WGQ2FvsI9xC3l7B311fy93iWGKJQQOhHCAJQB6A3IqcWwJLU90i2FkUiMKlhBELEI6MwgDXRAGhQgAYD6tTqRFAJxpA6mvrqazSKJJhUWMpjlIIQA7) center no-repeat}[_nghost-%COMP%] .pdfViewer .page .loadingIcon.notVisible{background:none}[_nghost-%COMP%] .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;user-select:none!important;cursor:not-allowed}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{padding-bottom:0}[_nghost-%COMP%] .pdfPresentationMode .spread{margin:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}"]}),n})(),YK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})(),r2=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(R(Us),R(bt))},n.\u0275dir=qe({type:n}),n})(),cd=(()=>{class n extends r2{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,features:[_t]}),n})();const fs=new lt("NgValueAccessor"),XK={provide:fs,useExisting:Pn(()=>t0),multi:!0},ZK=new lt("CompositionEventMode");let t0=(()=>{class n extends r2{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function QK(){const n=Wa()?Wa().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Us),R(bt),R(ZK,8))},n.\u0275dir=qe({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&vt("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[kt([XK]),_t]}),n})();function qc(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function o2(n){return null!=n&&"number"==typeof n.length}const Ir=new lt("NgValidators"),Yc=new lt("NgAsyncValidators"),e7=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _g{static min(t){return a2(t)}static max(t){return l2(t)}static required(t){return function c2(n){return qc(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function u2(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function d2(n){return qc(n.value)||e7.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function h2(n){return t=>qc(t.value)||!o2(t.value)?null:t.value.lengtho2(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function p2(n){if(!n)return n0;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(qc(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return b2(t)}static composeAsync(t){return w2(t)}}function a2(n){return t=>{if(qc(t.value)||qc(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(qc(t.value)||qc(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function n0(n){return null}function m2(n){return null!=n}function g2(n){return pm(n)?pi(n):n}function _2(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function v2(n,t){return t.map(e=>e(n))}function y2(n){return n.map(t=>function t7(n){return!n.validate}(t)?t:e=>t.validate(e))}function b2(n){if(!n)return null;const t=n.filter(m2);return 0==t.length?null:function(e){return _2(v2(e,t))}}function WE(n){return null!=n?b2(y2(n)):null}function w2(n){if(!n)return null;const t=n.filter(m2);return 0==t.length?null:function(e){return mN(v2(e,t).map(g2)).pipe(z(_2))}}function GE(n){return null!=n?w2(y2(n)):null}function C2(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function D2(n){return n._rawValidators}function S2(n){return n._rawAsyncValidators}function qE(n){return n?Array.isArray(n)?n:[n]:[]}function r0(n,t){return Array.isArray(n)?n.includes(t):n===t}function A2(n,t){const e=qE(t);return qE(n).forEach(r=>{r0(e,r)||e.push(r)}),e}function M2(n,t){return qE(t).filter(e=>!r0(n,e))}class E2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=WE(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=GE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class wa extends E2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Is extends E2{get formDirective(){return null}get path(){return null}}let k2=(()=>{class n extends class x2{constructor(t){this._cd=t}get isTouched(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.touched)}get isUntouched(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.untouched)}get isPristine(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.pristine)}get isDirty(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.dirty)}get isValid(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.valid)}get isInvalid(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.invalid)}get isPending(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.pending)}get isSubmitted(){var t;return!(null===(t=this._cd)||void 0===t||!t.submitted)}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(R(wa,2))},n.\u0275dir=qe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Kt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[_t]}),n})();const vg="VALID",o0="INVALID",uf="PENDING",yg="DISABLED";function QE(n){return(a0(n)?n.validators:n)||null}function P2(n){return Array.isArray(n)?WE(n):n||null}function ZE(n,t){return(a0(t)?t.asyncValidators:n)||null}function R2(n){return Array.isArray(n)?GE(n):n||null}function a0(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class F2{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=P2(this._rawValidators),this._composedAsyncValidatorFn=R2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===vg}get invalid(){return this.status===o0}get pending(){return this.status==uf}get disabled(){return this.status===yg}get enabled(){return this.status!==yg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=P2(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=R2(t)}addValidators(t){this.setValidators(A2(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(A2(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(M2(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(M2(t,this._rawAsyncValidators))}hasValidator(t){return r0(this._rawValidators,t)}hasAsyncValidator(t){return r0(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=uf,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=yg,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=vg,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vg||this.status===uf)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yg:vg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=uf,this._hasOwnPendingAsyncValidator=!0;const e=g2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new yt,this.statusChanges=new yt}_calculateStatus(){return this._allControlsDisabled()?yg:this.errors?o0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(uf)?uf:this._anyControlsHaveStatus(o0)?o0:vg}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){a0(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class JE extends F2{constructor(t,e,i){super(QE(e),ZE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function O2(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new nt(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function I2(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new nt(1e3,"");if(!i[e])throw new nt(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function bg(n,t){var e,i;ex(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&(null===(i=(e=t.valueAccessor).setDisabledState)||void 0===i||i.call(e,!0)),function d7(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&L2(n,t)})}(n,t),function f7(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function h7(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&L2(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function u7(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function c0(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),d0(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function u0(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ex(n,t){const e=D2(n);null!==t.validator?n.setValidators(C2(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=S2(n);null!==t.asyncValidator?n.setAsyncValidators(C2(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();u0(t._rawValidators,r),u0(t._rawAsyncValidators,r)}function d0(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=D2(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=S2(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return u0(t._rawValidators,i),u0(t._rawAsyncValidators,i),e}function L2(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function N2(n,t){ex(n,t)}function B2(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const v7={provide:Is,useExisting:Pn(()=>Kc)},wg=(()=>Promise.resolve(null))();let Kc=(()=>{class n extends Is{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new yt,this.form=new JE({},WE(e),GE(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){wg.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),bg(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){wg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){wg.then(()=>{const i=this._findContainer(e.path),r=new JE({});N2(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){wg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){wg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,B2(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(R(Ir,10),R(Yc,10))},n.\u0275dir=qe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&vt("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kt([v7]),_t]}),n})();function H2(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function z2(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const U2=class extends F2{constructor(t=null,e,i){super(QE(e),ZE(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),a0(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=z2(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){H2(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){H2(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){z2(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},w7={provide:wa,useExisting:Pn(()=>ix)},W2=(()=>Promise.resolve(null))();let ix=(()=>{class n extends wa{constructor(e,i,r,s,o){super(),this._changeDetectorRef=o,this.control=new U2,this._registered=!1,this.update=new yt,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function nx(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===t0?e=s:function g7(n){return Object.getPrototypeOf(n.constructor)===cd}(s)?i=s:r=s}),r||i||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function tx(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){W2.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Ul(i);W2.then(()=>{var s;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?function l0(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(R(Is,9),R(Ir,10),R(Yc,10),R(fs,10),R(Xn,8))},n.\u0275dir=qe({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[kt([w7]),_t,Zt]}),n})();const D7={provide:fs,useExisting:Pn(()=>rx),multi:!0};let rx=(()=>{class n extends cd{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&vt("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[kt([D7]),_t]}),n})(),G2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const sx=new lt("NgModelWithFormControlWarning"),x7={provide:Is,useExisting:Pn(()=>Xc)};let Xc=(()=>{class n extends Is{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new yt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(d0(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return bg(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){c0(e.control||null,e,!1),function _7(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,B2(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(c0(i||null,e),(n=>n instanceof U2)(r)&&(bg(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);N2(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function p7(n,t){return d0(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ex(this.form,this),this._oldForm&&d0(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(R(Ir,10),R(Yc,10))},n.\u0275dir=qe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&vt("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kt([x7]),_t,Zt]}),n})();function tV(n){return"number"==typeof n?n:parseFloat(n)}let ud=(()=>{class n{constructor(){this._validator=n0}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):n0,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,features:[Zt]}),n})();const V7={provide:Ir,useExisting:Pn(()=>ux),multi:!0};let ux=(()=>{class n extends ud{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>tV(e),this.createValidator=e=>l2(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Yt("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[kt([V7]),_t]}),n})();const B7={provide:Ir,useExisting:Pn(()=>dx),multi:!0};let dx=(()=>{class n extends ud{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>tV(e),this.createValidator=e=>a2(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Yt("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[kt([B7]),_t]}),n})(),oV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[G2]}),n})(),aV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[oV]}),n})(),G7=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:sx,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[oV]}),n})();const Y7=["connectionContainer"],K7=["inputContainer"],X7=["label"];function Q7(n,t){1&n&&(dr(0),Y(1,"div",14),ft(2,"div",15)(3,"div",16)(4,"div",17),ee(),Y(5,"div",18),ft(6,"div",15)(7,"div",16)(8,"div",17),ee(),hr())}function Z7(n,t){if(1&n){const e=ii();Y(0,"div",19),vt("cdkObserveContent",function(){return zt(e),Wt(Qe().updateOutlineGap())}),Vn(1,1),ee()}2&n&&Pe("cdkObserveContentDisabled","outline"!=Qe().appearance)}function J7(n,t){if(1&n&&(dr(0),Vn(1,2),Y(2,"span"),ie(3),ee(),hr()),2&n){const e=Qe(2);ye(3),Yn(e._control.placeholder)}}function e9(n,t){1&n&&Vn(0,3,["*ngSwitchCase","true"])}function t9(n,t){1&n&&(Y(0,"span",23),ie(1," *"),ee())}function n9(n,t){if(1&n){const e=ii();Y(0,"label",20,21),vt("cdkObserveContent",function(){return zt(e),Wt(Qe().updateOutlineGap())}),mt(2,J7,4,1,"ng-container",12),mt(3,e9,1,0,"ng-content",12),mt(4,t9,2,0,"span",22),ee()}if(2&n){const e=Qe();Kt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Pe("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Yt("for",e._control.id)("aria-owns",e._control.id),ye(2),Pe("ngSwitchCase",!1),ye(1),Pe("ngSwitchCase",!0),ye(1),Pe("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function i9(n,t){1&n&&(Y(0,"div",24),Vn(1,4),ee())}function r9(n,t){if(1&n&&(Y(0,"div",25),ft(1,"span",26),ee()),2&n){const e=Qe();ye(1),Kt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function s9(n,t){1&n&&(Y(0,"div"),Vn(1,5),ee()),2&n&&Pe("@transitionMessages",Qe()._subscriptAnimationState)}function o9(n,t){if(1&n&&(Y(0,"div",30),ie(1),ee()),2&n){const e=Qe(2);Pe("id",e._hintLabelId),ye(1),Yn(e.hintLabel)}}function a9(n,t){if(1&n&&(Y(0,"div",27),mt(1,o9,2,2,"div",28),Vn(2,6),ft(3,"div",29),Vn(4,7),ee()),2&n){const e=Qe();Pe("@transitionMessages",e._subscriptAnimationState),ye(1),Pe("ngIf",e.hintLabel)}}const l9=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c9=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],u9=new lt("MatError"),d9={transitionMessages:To("transitionMessages",[vr("enter",_n({opacity:1,transform:"translateY(0%)"})),or("void => enter",[_n({opacity:0,transform:"translateY(-5px)"}),_r("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Cg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n}),n})();const h9=new lt("MatHint");let px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["mat-label"]]}),n})(),f9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["mat-placeholder"]]}),n})();const p9=new lt("MatPrefix"),lV=new lt("MatSuffix");let m9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","matSuffix",""]],features:[kt([{provide:lV,useExisting:n}])]}),n})(),cV=0;const _9=Zl(class{constructor(n){this._elementRef=n}},"primary"),v9=new lt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),h0=new lt("MatFormField");let y9=(()=>{class n extends _9{constructor(e,i,r,s,o,a,c){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new b,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+cV++,this._labelId="mat-form-field-label-"+cV++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=(null==s?void 0:s.appearance)||"legacy",s&&(this._hideRequiredMarker=Boolean(s.hideRequiredMarker),s.color&&(this.color=this.defaultColor=s.color))}get appearance(){return this._appearance}set appearance(e){var i;const r=this._appearance;this._appearance=e||(null===(i=this._defaults)||void 0===i?void 0:i.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ft(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(cs(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ot(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Ni(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(cs(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(cs(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ot(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,di(this._label.nativeElement,"transitionend").pipe(Ci(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const f=i.querySelectorAll(`${r}, ${s}`);for(let v=0;v0?.75*se+10:0}for(let f=0;f{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[_a,yn,VM,yn]}),n})();const b9=["*"],dV=new lt("MatChipRemove"),hV=new lt("MatChipAvatar"),fV=new lt("MatChipTrailingIcon");class w9{constructor(t){this._elementRef=t}}const C9=Ym(Zl(Jl(w9),"primary"),-1);let Dg=(()=>{class n extends C9{constructor(e,i,r,s,o,a,c,d){super(e),this._ngZone=i,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new b,this._onBlur=new b,this.selectionChange=new yt,this.destroyed=new yt,this.removed=new yt,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new WF(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=d&&parseInt(d)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=Ft(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Ft(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Ft(e)}get removable(){return this._removable}set removable(e){this._removable=Ft(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(jt),R(Zi),R(GF,8),R(Xn),R(Qt),R(Ts,8),bs("tabindex"))},n.\u0275dir=qe({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,hV,5),Dn(r,fV,5),Dn(r,dV,5)),2&e){let s;Dt(s=St())&&(i.avatar=s.first),Dt(s=St())&&(i.trailingIcon=s.first),Dt(s=St())&&(i.removeIcon=s.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&vt("click",function(s){return i._handleClick(s)})("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Yt("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),Kt("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[_t]}),n})();const pV=new lt("mat-chips-default-options"),x9=qM(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new b}});let k9=0;class T9{constructor(t,e){this.source=t,this.value=e}}let gx=(()=>{class n extends x9{constructor(e,i,r,s,o,a,c){super(a,s,o,c),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new b,this._uid="mat-chip-list-"+k9++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,f)=>d===f,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new yt,this.valueChange=new yt,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=Ft(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(_g.required))&&void 0!==s&&s}set required(e){this._required=Ft(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ft(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Ft(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return Ni(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return Ni(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return Ni(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return Ni(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new UM(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ot(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Ot(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(cs(null),Ot(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new rb(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(s=>null!=s.value&&this._compareWith(s.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new T9(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Xn),R(us,8),R(Kc,8),R(Xc,8),R(Zu),R(wa,10))},n.\u0275cmp=Ct({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,Dg,5),2&e){let s;Dt(s=St())&&(i.chips=s)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&vt("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(s){return i._keydown(s)}),2&e&&(ja("id",i._uid),Yt("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),Kt("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[kt([{provide:Cg,useExisting:n}]),_t],ngContentSelectors:b9,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0),Vn(1),ee())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),P9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Zu,{provide:pV,useValue:{separatorKeyCodes:[13]}}],imports:[yn]}),n})();class mV extends class R9{constructor(){this.expansionModel=new rb(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((e,i)=>[...e,...this.getDescendants(i),i],[]);this.expansionModel.select(...t.map(e=>this._trackByValue(e)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(r=>this._getDescendants(t,r)):Bm(i)&&i.pipe(Ci(1),ji(Boolean)).subscribe(r=>{for(const s of r)this._getDescendants(t,s)})}}const f0=new lt("CDK_TREE_NODE_OUTLET_NODE");let df=(()=>{class n{constructor(e,i){this.viewContainer=e,this._node=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(f0,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkTreeNodeOutlet",""]]}),n})();class I9{constructor(t){this.$implicit=t}}let Sg=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),n})(),sl=(()=>{class n{constructor(e,i){this._differs=e,this._changeDetectorRef=i,this._onDestroy=new b,this._levels=new Map,this.viewChange=new gr({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const e=this._nodeDefs.filter(i=>!i.when);this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let e;ib(this._dataSource)?e=this._dataSource.connect(this):Bm(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=At(this._dataSource)),e&&(this._dataSubscription=e.pipe(Ot(this._onDestroy)).subscribe(i=>this.renderNodeChanges(i)))}renderNodeChanges(e,i=this._dataDiffer,r=this._nodeOutlet.viewContainer,s){const o=i.diff(e);!o||(o.forEachOperation((a,c,d)=>{if(null==a.previousIndex)this.insertNode(e[d],d,r,s);else if(null==d)r.remove(c),this._levels.delete(a.item);else{const f=r.get(c);r.move(f,d)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(s=>s.when&&s.when(i,e))||this._defaultNodeDef}insertNode(e,i,r,s){const o=this._getNodeDef(e,i),a=new I9(e);a.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==s&&this._levels.has(s)?this._levels.get(s)+1:0,this._levels.set(e,a.level),(r||this._nodeOutlet.viewContainer).createEmbeddedView(o.template,a,i),ol.mostRecentTreeNode&&(ol.mostRecentTreeNode.data=e)}}return n.\u0275fac=function(e){return new(e||n)(R(qo),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["cdk-tree"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,Sg,5),2&e){let s;Dt(s=St())&&(i._nodeDefs=s)}},viewQuery:function(e,i){if(1&e&&Hn(df,7),2&e){let r;Dt(r=St())&&(i._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[df],encapsulation:2}),n})(),ol=(()=>{class n{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new b,this._dataChanges=new b,n.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(e){this._elementRef.nativeElement.setAttribute("role",e)}get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function O9(n){let t=n.parentElement;for(;t&&!F9(t);)t=t.parentElement;return t?t.classList.contains("cdk-nested-tree-node")?Gr(t.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return n.mostRecentTreeNode=null,n.\u0275fac=function(e){return new(e||n)(R(bt),R(sl))},n.\u0275dir=qe({type:n,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(e,i){2&e&&Yt("aria-expanded",i.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),n})();function F9(n){const t=n.classList;return!(!(null==t?void 0:t.contains("cdk-nested-tree-node"))&&!(null==t?void 0:t.contains("cdk-tree")))}let p0=(()=>{class n extends ol{constructor(e,i,r){super(e,i),this._differs=r}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):Bm(e)&&e.pipe(Ot(this._destroyed)).subscribe(i=>this.updateChildrenNodes(i)),this.nodeOutlet.changes.pipe(Ot(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(e){const i=this._getNodeOutlet();e&&(this._children=e),i&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,i.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const e=this._getNodeOutlet();e&&(e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const e=this.nodeOutlet;return e&&e.find(i=>!i._node||i._node===this)}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(sl),R(qo))},n.\u0275dir=qe({type:n,selectors:[["cdk-nested-tree-node"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,df,5),2&e){let s;Dt(s=St())&&(i.nodeOutlet=s)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[kt([{provide:ol,useExisting:n},{provide:f0,useExisting:n}]),_t]}),n})(),vx=(()=>{class n{constructor(e,i){this._tree=e,this._treeNode=i,this._recursive=!1}get recursive(){return this._recursive}set recursive(e){this._recursive=Ft(e)}_toggle(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(R(sl),R(ol))},n.\u0275dir=qe({type:n,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,i){1&e&&vt("click",function(s){return i._toggle(s)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),n})(),gV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const N9=Ym(Ql(ol));let _V=(()=>{class n extends N9{constructor(e,i,r){super(e,i),this.tabIndex=Number(r)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(sl),bs("tabindex"))},n.\u0275dir=qe({type:n,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[kt([{provide:ol,useExisting:n}]),_t]}),n})(),vV=(()=>{class n extends Sg{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[kt([{provide:Sg,useExisting:n}]),_t]}),n})(),yV=(()=>{class n extends p0{constructor(e,i,r,s){super(e,i,r),this._disabled=!1,this.tabIndex=Number(s)||0}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?e:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(sl),R(qo),bs("tabindex"))},n.\u0275dir=qe({type:n,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[kt([{provide:p0,useExisting:n},{provide:ol,useExisting:n},{provide:f0,useExisting:n}]),_t]}),n})(),m0=(()=>{class n{constructor(e,i){this.viewContainer=e,this._node=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(f0,8))},n.\u0275dir=qe({type:n,selectors:[["","matTreeNodeOutlet",""]],features:[kt([{provide:df,useExisting:n}])]}),n})(),bV=(()=>{class n extends sl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-tree"]],viewQuery:function(e,i){if(1&e&&Hn(m0,7),2&e){let r;Dt(r=St())&&(i._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[kt([{provide:sl,useExisting:n}]),_t],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[m0],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),n})(),wV=(()=>{class n extends vx{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[kt([{provide:vx,useExisting:n}]),_t]}),n})(),B9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[gV,yn,yn]}),n})();class H9 extends EM{constructor(){super(...arguments),this._data=new gr([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return Ni(t.viewChange,this._data).pipe(z(()=>this.data))}disconnect(){}}class g0{constructor(t){this.startScrollPosition=0,this.interruptListenersAttached=!1,this.timer=null,t.scrollViews&&0!==t.scrollViews.length?this.isInlineScrolling=!0:(t.scrollViews=[t.document.documentElement,t.document.body,t.document.body.parentNode],this.isInlineScrolling=!1),this.pageScrollOptions=t}static getScrollingTargetPosition(t,e){const i=t.document.body,r=t.document.documentElement,a=t.document.defaultView&&t.document.defaultView.pageYOffset||r.scrollTop||i.scrollTop,c=t.document.defaultView&&t.document.defaultView.pageXOffset||r.scrollLeft||i.scrollLeft,d=r.clientTop||i.clientTop||0,f=r.clientLeft||i.clientLeft||0;if(null==e)return{top:a,left:c};const v=e.getBoundingClientRect(),B=v.left+c-f;return{top:Math.round(v.top+a-d),left:Math.round(B)}}static getInlineScrollingTargetPosition(t,e){const i={top:e.offsetTop,left:e.offsetLeft};if(t.advancedInlineOffsetCalculation&&1===t.scrollViews.length){const r={top:0,left:0},s=e.ownerDocument.defaultView;let o=!1,a=e.parentElement;for(;!o&&null!=a;)"relative"===s.getComputedStyle(a).getPropertyValue("position")&&(r.top+=a.offsetTop,r.left+=a.offsetLeft),a=a.parentElement,o=a===t.scrollViews[0];o&&(i.top+=r.top,i.left+=r.left)}return i}getScrollPropertyValue(t){return this.pageScrollOptions.verticalScrolling?t.scrollTop:t.scrollLeft}getScrollClientPropertyValue(t){return this.pageScrollOptions.verticalScrolling?t.clientHeight:t.clientWidth}extractScrollTargetPosition(){const t=this.getScrollTargetElement();return null==t?{top:NaN,left:NaN}:this.isInlineScrolling?g0.getInlineScrollingTargetPosition(this.pageScrollOptions,t):g0.getScrollingTargetPosition(this.pageScrollOptions,t)}getCurrentOffset(){return this.pageScrollOptions.scrollOffset}setScrollPosition(t){return this.pageScrollOptions.scrollViews.reduce((e,i)=>{const r=this.getScrollPropertyValue(i);if(i&&null!=r){const s=Math.abs(r-t),o=sMath.abs(this.getScrollPropertyValue(i)-t))return!0}return e},!1)}fireEvent(t){this.pageScrollOptions.scrollFinishListener&&this.pageScrollOptions.scrollFinishListener.emit(t)}attachInterruptListeners(t){this.interruptListenersAttached&&this.detachInterruptListeners(),this.interruptListener=e=>{t.report(e,this)},this.pageScrollOptions.interruptEvents.forEach(e=>this.pageScrollOptions.document.body.addEventListener(e,this.interruptListener)),this.interruptListenersAttached=!0}detachInterruptListeners(){this.pageScrollOptions.interruptEvents.forEach(t=>this.pageScrollOptions.document.body.removeEventListener(t,this.interruptListener)),this.interruptListenersAttached=!1}getScrollTargetElement(){if("string"==typeof this.pageScrollOptions.scrollTarget){const t=this.pageScrollOptions.scrollTarget;return null!==t.match(/^#[^\s]+$/g)?this.pageScrollOptions.document.getElementById(t.substr(1)):this.pageScrollOptions.document.querySelector(t)}return this.pageScrollOptions.scrollTarget}}const yx=new lt("ngxps_config"),z9={_interval:10,_minScrollDistance:2,_logLevel:1,namespace:"default",verticalScrolling:!0,duration:1250,scrollOffset:0,advancedInlineOffsetCalculation:!1,interruptEvents:["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],interruptKeys:[" ","Escape","Tab","Enter","PageUp","PageDown","Home","End","ArrowUp","ArrowRight","ArrowLeft","ArrowDown"],interruptible:!0,scrollInView:!0,easingLogic:(n,t,e,i)=>e*n/i+t};let bx=(()=>{class n{constructor(e){this.runningInstances=[],this.onInterrupted={report:(i,r)=>{if(!r.pageScrollOptions.interruptible)return;let s=!0;"keyup"===i.type?-1===this.config.interruptKeys.indexOf(i.key)&&(s=!1):"mousedown"===i.type&&(r.pageScrollOptions.scrollViews.some(o=>o.contains(i.target))||(s=!1)),s&&this.stopAll(r.pageScrollOptions.namespace)}},this.config=Object.assign(Object.assign({},z9),e)}stopInternal(e,i){const r=this.runningInstances.indexOf(i);return r>=0&&this.runningInstances.splice(r,1),i.interruptListenersAttached&&i.detachInterruptListeners(),!!i.timer&&(clearInterval(i.timer),i.timer=void 0,i.fireEvent(!e),!0)}create(e){return new g0(Object.assign(Object.assign({},this.config),e))}start(e){if(e.pageScrollOptions=Object.assign(Object.assign({},this.config),e.pageScrollOptions),this.stopAll(e.pageScrollOptions.namespace),null===e.pageScrollOptions.scrollViews||0===e.pageScrollOptions.scrollViews.length)return void((this.config._logLevel>=2||this.config._logLevel>=1&&Sm())&&console.warn("No scrollViews specified, thus ngx-page-scroll does not know which DOM elements to scroll"));let i=!1,r=e.getScrollClientPropertyValue(e.pageScrollOptions.scrollViews[0]);e.startScrollPosition=0,e.pageScrollOptions.scrollViews.forEach(d=>{if(null==d)return;const f=e.getScrollPropertyValue(d);!i&&f&&(e.startScrollPosition=f,i=!0,r=e.getScrollClientPropertyValue(d))});const s=e.getCurrentOffset(),o=e.extractScrollTargetPosition();if(e.targetScrollPosition=Math.round((e.pageScrollOptions.verticalScrolling?o.top:o.left)-s),e.distanceToScroll=e.targetScrollPosition-e.startScrollPosition,isNaN(e.distanceToScroll))return(this.config._logLevel>=2||this.config._logLevel>=1&&Sm())&&console.log("Scrolling not possible, as we can't find the specified target"),void e.fireEvent(!1);const a=Math.abs(e.distanceToScroll)=2||this.config._logLevel>=1&&Sm())&&console.log(a?"Scrolling not possible, as we can't get any closer to the destination":"Scroll duration shorter that interval length, jumping to target"),e.setScrollPosition(e.targetScrollPosition),void e.fireEvent(!0)):!e.pageScrollOptions.scrollInView&&e.targetScrollPosition>e.startScrollPosition&&e.targetScrollPosition<=e.startScrollPosition+r?((this.config._logLevel>=2||this.config._logLevel>=1&&Sm())&&console.log("Not scrolling, as target already in view"),void e.fireEvent(!0)):(e.pageScrollOptions.interruptible&&e.attachInterruptListeners(this.onInterrupted),e.startTime=(new Date).getTime(),e.endTime=e.startTime+e.executionDuration,e.timer=setInterval(d=>{const f=(new Date).getTime();let v,x=!1;d.endTime<=f?(v=d.targetScrollPosition,x=!0):v=Math.round(d.pageScrollOptions.easingLogic(f-d.startTime,d.startScrollPosition,d.distanceToScroll,d.executionDuration)),this.config._logLevel>=5&&Sm()&&console.warn("Scroll Position: "+v),d.setScrollPosition(v)||(x=!0),x&&this.stopInternal(!1,d)},this.config._interval,e),void this.runningInstances.push(e))}scroll(e){this.start(this.create(e))}stopAll(e){if(this.runningInstances.length>0){let i=!1;for(let r=0;r{class n{static forRoot(e){return{ngModule:n,providers:[bx,{provide:yx,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[bx,{provide:yx,useValue:{}}]}),n})(),U9=(()=>{class n{constructor(e,i,r){this.pageScrollService=e,this.router=i,this.pageScrollAdjustHash=!1,this.pageScrollFinish=new yt,this.document=r}ngOnChanges(e){this.pageScrollInstance=void 0}ngOnDestroy(){this.pageScrollInstance&&this.pageScrollService.stop(this.pageScrollInstance)}getPageScrollTarget(){return this.pageScrollTarget||this.href||(this.fragment?"#"+this.fragment:"")}generatePageScrollInstance(){if(null==this.pageScrollInstance){const e={document:this.document,scrollTarget:this.getPageScrollTarget()};this.pageScroll&&(e.namespace=this.pageScroll),null!=this.pageScrollHorizontal&&(e.verticalScrolling=!this.pageScrollHorizontal),null!=this.pageScrollOffset&&(e.scrollOffset=this.pageScrollOffset),null!=this.pageScrollInterruptible&&(e.interruptible=this.pageScrollInterruptible),null!=this.pageScrollInView&&(e.scrollInView=this.pageScrollInView),this.pageScrollEasing&&(e.easingLogic=this.pageScrollEasing),null!=this.pageScrollDuration&&(e.duration=this.pageScrollDuration),null!=this.pageScrollSpeed&&(e.speed=this.pageScrollSpeed),this.pageScrollFinish&&(e.scrollFinishListener=this.pageScrollFinish),this.pageScrollInstance=this.pageScrollService.create(e)}return this.pageScrollInstance}pushRouterState(){this.pageScrollAdjustHash&&"string"==typeof this.pageScrollInstance.pageScrollOptions.scrollTarget&&"#"===this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0,1)&&this.router.navigate([],{fragment:this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),queryParamsHandling:"preserve"})}scroll(){const e=this.generatePageScrollInstance();this.pushRouterState(),this.pageScrollService.start(e)}handleClick(e){if(this.routerLink&&null!=this.router){let i;if(i="string"==typeof this.routerLink?this.router.parseUrl(this.routerLink):this.router.createUrlTree(this.routerLink),!this.router.isActive(i,!0))return this.router.events.pipe(ji(r=>r instanceof rc||r instanceof fE||r instanceof ng),Ci(1)).subscribe(r=>{r instanceof rc&&setTimeout(()=>{this.scroll()},0)}),!1}return this.scroll(),!1}}return n.\u0275fac=function(e){return new(e||n)(R(bx),R(Ps,8),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","pageScroll",""]],hostBindings:function(e,i){1&e&&vt("click",function(s){return i.handleClick(s)})},inputs:{routerLink:"routerLink",href:"href",fragment:"fragment",pageScrollTarget:"pageScrollTarget",pageScrollHorizontal:"pageScrollHorizontal",pageScrollOffset:"pageScrollOffset",pageScrollDuration:"pageScrollDuration",pageScrollSpeed:"pageScrollSpeed",pageScrollEasing:"pageScrollEasing",pageScrollInterruptible:"pageScrollInterruptible",pageScrollInView:"pageScrollInView",pageScrollAdjustHash:"pageScrollAdjustHash",pageScroll:"pageScroll"},outputs:{pageScrollFinish:"pageScrollFinish"},features:[Zt]}),n})(),j9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[CV]}),n})();const DV=Ku({passive:!0});let $9=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ns;const i=Gl(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new b,o="cdk-text-field-autofilled",a=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:c.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,DV),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,DV)}}),s}stopMonitoring(e){const i=Gl(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi),Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const AV=new lt("MAT_INPUT_VALUE_ACCESSOR"),W9=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let G9=0;const q9=qM(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new b}});let Y9=(()=>{class n extends q9{constructor(e,i,r,s,o,a,c,d,f,v){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=d,this._formField=v,this._uid="mat-input-"+G9++,this.focused=!1,this.stateChanges=new b,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(se=>nF().has(se)),this._iOSKeyupListener=se=>{const me=se.target;!me.value&&0===me.selectionStart&&0===me.selectionEnd&&(me.setSelectionRange(1,1),me.setSelectionRange(0,0))};const x=this._elementRef.nativeElement,B=x.nodeName.toLowerCase();this._inputValueAccessor=c||x,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&f.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===B,this._isTextarea="textarea"===B,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=x.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ft(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(_g.required))&&void 0!==s&&s}set required(e){this._required=Ft(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&nF().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ft(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const i=this._formField,r=!i||"legacy"!==i.appearance||null!==(e=i._hasLabel)&&void 0!==e&&e.call(i)?this.placeholder:null;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){W9.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Zi),R(wa,10),R(Kc,8),R(Xc,8),R(Zu),R(AV,10),R($9),R(jt),R(h0,8))},n.\u0275dir=qe({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(ja("disabled",i.disabled)("required",i.required),Yt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Kt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[kt([{provide:Cg,useExisting:n}]),_t,Zt]}),n})(),K9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Zu],imports:[SV,mx,yn,SV,mx]}),n})();const X9=["input"],Q9=["label"],Z9=function(n){return{enterDuration:n}},J9=["*"],eX=new lt("mat-checkbox-default-options",{providedIn:"root",factory:MV});function MV(){return{color:"accent",clickAction:"check-indeterminate"}}let tX=0;const EV=MV(),nX={provide:fs,useExisting:Pn(()=>xV),multi:!0};class iX{}const rX=Ym(Zl(Jl(Ql(class{constructor(n){this._elementRef=n}}))));let sX=(()=>{class n extends rX{constructor(e,i,r,s,o,a,c){super(i),this._changeDetectorRef=r,this._ngZone=s,this._animationMode=a,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new yt,this.indeterminateChange=new yt,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||EV,this.color=this.defaultColor=this._options.color||EV.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`${e}${++tX}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ft(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=Ft(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Ft(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Ft(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(s)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=qe({type:n,viewQuery:function(e,i){if(1&e&&(Hn(X9,5),Hn(Q9,5),Hn(ec,5)),2&e){let r;Dt(r=St())&&(i._inputElement=r.first),Dt(r=St())&&(i._labelElement=r.first),Dt(r=St())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[_t]}),n})(),xV=(()=>{class n extends sX{constructor(e,i,r,s,o,a,c){super("mat-checkbox-",e,i,s,o,a,c),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const i=new iX;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Xn),R(ya),R(jt),bs("tabindex"),R(Ts,8),R(eX,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(ja("id",i.id),Yt("tabindex",null)("aria-label",null)("aria-labelledby",null),Kt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[kt([nX]),_t],ngContentSelectors:J9,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Ui(),Y(0,"label",0,1)(2,"span",2)(3,"input",3,4),vt("change",function(s){return i._onInteractionEvent(s)})("click",function(s){return i._onInputClick(s)}),ee(),Y(5,"span",5),ft(6,"span",6),ee(),ft(7,"span",7),Y(8,"span",8),ia(),Y(9,"svg",9),ft(10,"path",10),ee(),Yf(),ft(11,"span",11),ee()(),Y(12,"span",12,13),vt("cdkObserveContent",function(){return i._onLabelTextChange()}),Y(14,"span",14),ie(15,"\xa0"),ee(),Vn(16),ee()()),2&e){const r=zi(1),s=zi(13);Yt("for",i.inputId),ye(2),Kt("mat-checkbox-inner-container-no-side-margin",!s.textContent||!s.textContent.trim()),ye(1),Pe("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),Yt("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),ye(2),Pe("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",wy(19,Z9,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[ec,AF],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),kV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})(),lX=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Xm,yn,VM,kV,yn,kV]}),n})();function TV(n){return new nt(3e3,!1)}function jX(){return"undefined"!=typeof window&&void 0!==window.document}function wx(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Qc(n){switch(n.length){case 0:return new dg;case 1:return n[0];default:return new VN(n)}}function PV(n,t,e,i,r=new Map,s=new Map){const o=[],a=[];let c=-1,d=null;if(i.forEach(f=>{const v=f.get("offset"),x=v==c,B=x&&d||new Map;f.forEach((se,me)=>{let Oe=me,Fe=se;if("offset"!==me)switch(Oe=t.normalizePropertyName(Oe,o),Fe){case"!":Fe=r.get(me);break;case oc:Fe=s.get(me);break;default:Fe=t.normalizeStyleValue(me,Oe,Fe,o)}B.set(Oe,Fe)}),x||a.push(B),d=B,c=v}),o.length)throw function PX(n){return new nt(3502,!1)}();return a}function Cx(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Dx(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Dx(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Dx(e,"destroy",n)))}}function Dx(n,t,e){const i=e.totalTime,s=Sx(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Sx(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Ro(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function RV(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Ax=(n,t)=>!1,IV=(n,t,e)=>[],OV=null;function Mx(n){const t=n.parentNode||n.host;return t===OV?null:t}(wx()||"undefined"!=typeof Element)&&(jX()?(OV=(()=>document.documentElement)(),Ax=(n,t)=>{for(;t;){if(t===n)return!0;t=Mx(t)}return!1}):Ax=(n,t)=>n.contains(t),IV=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let dd=null,FV=!1;const LV=Ax,NV=IV;let VV=(()=>{class n{validateStyleProperty(e){return function WX(n){dd||(dd=function GX(){return"undefined"!=typeof document?document.body:null}()||{},FV=!!dd.style&&"WebkitAppearance"in dd.style);let t=!0;return dd.style&&!function $X(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in dd.style,!t&&FV&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in dd.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return LV(e,i)}getParentElement(e){return Mx(e)}query(e,i,r){return NV(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],c){return new dg(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Ex=(()=>{class n{}return n.NOOP=new VV,n})();const xx="ng-enter",_0="ng-leave",v0="ng-trigger",y0=".ng-trigger",HV="ng-animating",kx=".ng-animating";function Zc(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Tx(parseFloat(t[1]),t[2])}function Tx(n,t){return"s"===t?1e3*n:n}function b0(n,t,e){return n.hasOwnProperty("duration")?n:function KX(n,t,e){let r,s=0,o="";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(TV()),{duration:0,delay:0,easing:""};r=Tx(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(s=Tx(parseFloat(c),a[4]));const d=a[5];d&&(o=d)}else r=n;if(!e){let a=!1,c=t.length;r<0&&(t.push(function cX(){return new nt(3100,!1)}()),a=!0),s<0&&(t.push(function uX(){return new nt(3101,!1)}()),a=!0),a&&t.splice(c,0,TV())}return{duration:r,delay:s,easing:o}}(n,t,e)}function Ag(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function zV(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Jc(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 jV(n,t,e){return e?t+":"+e+";":""}function $V(n){let t="";for(let e=0;e{const s=Rx(r);e&&!e.has(r)&&e.set(r,n.style[s]),n.style[s]=i}),wx()&&$V(n))}function hd(n,t){n.style&&(t.forEach((e,i)=>{const r=Rx(i);n.style[r]=""}),wx()&&$V(n))}function Mg(n){return Array.isArray(n)?1==n.length?n[0]:LN(n):n}const Px=new RegExp("{{\\s*(.+?)\\s*}}","g");function WV(n){let t=[];if("string"==typeof n){let e;for(;e=Px.exec(n);)t.push(e[1]);Px.lastIndex=0}return t}function w0(n,t,e){const i=n.toString(),r=i.replace(Px,(s,o)=>{let a=t[o];return null==a&&(e.push(function hX(n){return new nt(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function C0(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const ZX=/-+([a-z0-9])/g;function Rx(n){return n.replace(ZX,(...t)=>t[1].toUpperCase())}function JX(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Io(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 fX(n){return new nt(3004,!1)}()}}function GV(n,t){return window.getComputedStyle(n)[t]}function sQ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function oQ(n,t,e){if(":"==n[0]){const c=function aQ(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 c)return void t.push(c);n=c}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function MX(n){return new nt(3015,!1)}()),t;const r=i[1],s=i[2],o=i[3];t.push(qV(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(qV(o,r))}(i,e,t)):e.push(n),e}const M0=new Set(["true","1"]),E0=new Set(["false","0"]);function qV(n,t){const e=M0.has(n)||E0.has(n),i=M0.has(t)||E0.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?M0.has(n):E0.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?M0.has(t):E0.has(t)),o&&a}}const lQ=new RegExp("s*:selfs*,?","g");function Ix(n,t,e,i){return new cQ(n).build(t,e,i)}class cQ{constructor(t){this._driver=t}build(t,e,i){const r=new hQ(e);return this._resetContextStyleTimingState(r),Io(this,Mg(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 s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function mX(){return new nt(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const c=a,d=c.name;d.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,s.push(this.visitState(c,e))}),c.name=d}else if(1==a.type){const c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,o.push(c)}else e.errors.push(function gX(){return new nt(3007,!1)}())}),{type:7,name:t.name,states:s,transitions:o,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 s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{WV(c).forEach(d=>{o.hasOwnProperty(d)||s.add(d)})})}),s.size&&(C0(s.values()),e.errors.push(function _X(n,t){return new nt(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=Io(this,Mg(t.animation),e);return{type:1,matchers:sQ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:fd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Io(this,i,e)),options:fd(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=Io(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:fd(t.options)}}visitAnimate(t,e){const i=function pQ(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ox(b0(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Ox(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=b0(e,t);return Ox(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:_n({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const d={};i.easing&&(d.easing=i.easing),o=_n(d)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(o,e);c.isEmptyStep=a,r=c}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===oc?i.push(a):e.errors.push(new nt(3002,!1)):i.push(zV(a));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let c of a.values())if(c.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{const d=e.collectedStyles.get(e.currentQuerySelector),f=d.get(c);let v=!0;f&&(s!=r&&s>=f.startTime&&r<=f.endTime&&(e.errors.push(function yX(n,t,e,i,r){return new nt(3010,!1)}()),v=!1),s=f.startTime),v&&d.set(c,{startTime:s,endTime:r}),e.options&&function QX(n,t,e){const i=t.params||{},r=WV(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function dX(n){return new nt(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 bX(){return new nt(3011,!1)}()),i;let s=0;const o=[];let a=!1,c=!1,d=0;const f=t.steps.map(Fe=>{const et=this._makeStyleAst(Fe,e);let $e=null!=et.offset?et.offset:function fQ(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}(et.styles),ot=0;return null!=$e&&(s++,ot=et.offset=$e),c=c||ot<0||ot>1,a=a||ot0&&s{const $e=x>0?et==B?1:x*et:o[et],ot=$e*Oe;e.currentTime=se+me.delay+ot,me.duration=ot,this._validateStyleAst(Fe,e),Fe.offset=$e,i.styles.push(Fe)}),i}visitReference(t,e){return{type:8,animation:Io(this,Mg(t.animation),e),options:fd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:fd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:fd(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function uQ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(lQ,"")),n=n.replace(/@\*/g,y0).replace(/@\w+/g,e=>y0+"-"+e.slice(1)).replace(/:animating/g,kx),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Ro(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,Mg(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:fd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function SX(){return new nt(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:b0(t.timings,e.errors,!0);return{type:12,animation:Io(this,Mg(t.animation),e),timings:i,options:null}}}class hQ{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 fd(n){return n?(n=Ag(n)).params&&(n.params=function dQ(n){return n?Ag(n):null}(n.params)):n={},n}function Ox(n,t,e){return{duration:n,delay:t,easing:e}}function Fx(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class x0{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 _Q=new RegExp(":enter","g"),yQ=new RegExp(":leave","g");function Lx(n,t,e,i,r,s=new Map,o=new Map,a,c,d=[]){return(new bQ).buildKeyframes(n,t,e,i,r,s,o,a,c,d)}class bQ{buildKeyframes(t,e,i,r,s,o,a,c,d,f=[]){d=d||new x0;const v=new Nx(t,e,d,r,s,f,[]);v.options=c;const x=c.delay?Zc(c.delay):0;v.currentTimeline.delayNextStep(x),v.currentTimeline.setStyles([o],null,v.errors,c),Io(this,i,v);const B=v.timelines.filter(se=>se.containsAnimation());if(B.length&&a.size){let se;for(let me=B.length-1;me>=0;me--){const Oe=B[me];if(Oe.element===e){se=Oe;break}}se&&!se.allowOnlyTimelineStyles()&&se.setStyles([a],null,v.errors,c)}return B.length?B.map(se=>se.buildKeyframes()):[Fx(e,[],[],[],0,x,"",!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),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}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 s=e.currentTimeline.currentTime;const o=null!=i.duration?Zc(i.duration):null,a=null!=i.delay?Zc(i.delay):null;return 0!==o&&t.forEach(c=>{const d=e.appendInstructionToTimeline(c,o,a);s=Math.max(s,d.duration+d.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Io(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=k0);const o=Zc(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Io(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Zc(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Io(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return b0(e.params?w0(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 s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,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 s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(c=>{a.forwardTime((c.offset||0)*s),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Zc(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=k0);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((d,f)=>{e.currentQueryIndex=f;const v=e.createSubContext(t.options,d);s&&v.delayNextStep(s),d===e.element&&(c=v.currentTimeline),Io(this,t.animation,v),v.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,v.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let c=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime}const f=e.currentTimeline;c&&f.delayNextStep(c);const v=f.currentTime;Io(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-v+(r.startTime-i.currentTimeline.startTime)}}const k0={};class Nx{constructor(t,e,i,r,s,o,a,c){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=k0,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new T0(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=Zc(i.duration)),null!=i.delay&&(r.delay=Zc(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=w0(s[a],o,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,s=new Nx(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=k0,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:""},s=new wQ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(_Q,"."+this._enterClassName)).replace(yQ,"."+this._leaveClassName);let d=this._driver.query(this.element,t,1!=i);0!==i&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),a.push(...d)}return!s&&0==a.length&&o.push(function AX(n){return new nt(3014,!1)}()),a}}class T0{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 T0(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||oc),this._currentKeyframe.set(e,oc);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){var s;e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function CQ(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let s of i)e.set(s,oc)}else Jc(r,e)}),e}(t,this._globalTimelineStyles);for(let[c,d]of a){const f=w0(d,o,i);this._pendingStyles.set(c,f),this._localTimelineStyles.has(c)||this._backFill.set(c,null!==(s=this._globalTimelineStyles.get(c))&&void 0!==s?s:oc),this._updateStyle(c,f)}}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,c)=>{const d=Jc(a,new Map,this._backFill);d.forEach((f,v)=>{"!"===f?t.add(v):f===oc&&e.add(v)}),i||d.set("offset",c/this.duration),r.push(d)});const s=t.size?C0(t.values()):[],o=e.size?C0(e.values()):[];if(i){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return Fx(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class wQ extends T0{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.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 s=[],o=i+e,a=e/o,c=Jc(t[0]);c.set("offset",0),s.push(c);const d=Jc(t[0]);d.set("offset",XV(a)),s.push(d);const f=t.length-1;for(let v=1;v<=f;v++){let x=Jc(t[v]);const B=x.get("offset");x.set("offset",XV((e+B*i)/o)),s.push(x)}i=o,e=0,r="",t=s}return Fx(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function XV(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Vx{}const DQ=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 SQ extends Vx{normalizePropertyName(t,e){return Rx(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(DQ.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function pX(n,t){return new nt(3005,!1)}())}return o+s}}function QV(n,t,e,i,r,s,o,a,c,d,f,v,x){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:d,postStyleProps:f,totalTime:v,errors:x}}const Bx={};class ZV{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function AQ(n,t,e,i,r){return n.some(s=>s(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,s,o,a,c,d,f){var v;const x=[],B=this.ast.options&&this.ast.options.params||Bx,me=this.buildStyles(i,a&&a.params||Bx,x),Oe=c&&c.params||Bx,Fe=this.buildStyles(r,Oe,x),et=new Set,$e=new Map,ot=new Map,Tt="void"===r,$t={params:MQ(Oe,B),delay:null===(v=this.ast.options)||void 0===v?void 0:v.delay},Sn=f?[]:Lx(t,e,this.ast.animation,s,o,me,Fe,$t,d,x);let ti=0;if(Sn.forEach($i=>{ti=Math.max($i.duration+$i.delay,ti)}),x.length)return QV(e,this._triggerName,i,r,Tt,me,Fe,[],[],$e,ot,ti,x);Sn.forEach($i=>{const Gs=$i.element,qs=Ro($e,Gs,new Set);$i.preStyleProps.forEach(lo=>qs.add(lo));const Ys=Ro(ot,Gs,new Set);$i.postStyleProps.forEach(lo=>Ys.add(lo)),Gs!==e&&et.add(Gs)});const Hr=C0(et.values());return QV(e,this._triggerName,i,r,Tt,me,Fe,Sn,Hr,$e,ot,ti)}}function MQ(n,t){const e=Ag(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class EQ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Ag(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=w0(o,r,e));const c=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,c,o,e),i.set(c,o)})}),i}}class kQ{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 EQ(r.style,r.options&&r.options.params||{},i))}),JV(this.states,"true","1"),JV(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new ZV(t,r,this.states))}),this.fallbackTransition=function TQ(n,t,e){return new ZV(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,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(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function JV(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 PQ=new x0;class RQ{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=[],s=Ix(this._driver,e,i,[]);if(i.length)throw function RX(n){return new nt(3503,!1)}();this._animations.set(t,s)}_buildPlayer(t,e,i){const r=t.element,s=PV(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations.get(t);let o;const a=new Map;if(s?(o=Lx(this._driver,e,s,xx,_0,new Map,new Map,i,PQ,r),o.forEach(f=>{const v=Ro(a,f.element,new Map);f.postStyleProps.forEach(x=>v.set(x,null))})):(r.push(function IX(){return new nt(3300,!1)}()),o=[]),r.length)throw function OX(n){return new nt(3504,!1)}();a.forEach((f,v)=>{f.forEach((x,B)=>{f.set(B,this._driver.computeStyle(v,B,oc))})});const d=Qc(o.map(f=>{const v=a.get(f.element);return this._buildPlayer(f,new Map,v)}));return this._playersById.set(t,d),d.onDestroy(()=>this.destroy(t)),this.players.push(d),d}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 FX(n){return new nt(3301,!1)}();return e}listen(t,e,i,r){const s=Sx(e,"","","");return Cx(this._getPlayer(t),i,s,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 s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const eB="ng-animate-queued",Hx="ng-animate-disabled",NQ=[],tB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VQ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zo="__ng_removed";class zx{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function UQ(n){return null!=n?n:null}(i?t.value:t),i){const s=Ag(t);delete s.value,this.options=s}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 Eg="void",Ux=new zx(Eg);class BQ{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,Jo(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function LX(n,t){return new nt(3302,!1)}();if(null==i||0==i.length)throw function NX(n){return new nt(3303,!1)}();if(!function jQ(n){return"start"==n||"done"==n}(i))throw function VX(n,t){return new nt(3400,!1)}();const s=Ro(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Ro(this._engine.statesByElement,t,new Map);return a.has(e)||(Jo(t,v0),Jo(t,v0+"-"+e),a.set(e,Ux)),()=>{this._engine.afterFlush(()=>{const c=s.indexOf(o);c>=0&&s.splice(c,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 BX(n){return new nt(3401,!1)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new jx(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Jo(t,v0),Jo(t,v0+"-"+e),this._engine.statesByElement.set(t,a=new Map));let c=a.get(e);const d=new zx(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&d.absorbOptions(c.options),a.set(e,d),c||(c=Ux),d.value!==Eg&&c.value===d.value){if(!function GQ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{hd(t,Oe),al(t,Fe)})}return}const x=Ro(this._engine.playersByElement,t,[]);x.forEach(me=>{me.namespaceId==this.id&&me.triggerName==e&&me.queued&&me.destroy()});let B=s.matchTransition(c.value,d.value,t,d.params),se=!1;if(!B){if(!r)return;B=s.fallbackTransition,se=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:B,fromState:c,toState:d,player:o,isFallbackTransition:se}),se||(Jo(t,eB),o.onStart(()=>{hf(t,eB)})),o.onDone(()=>{let me=this.players.indexOf(o);me>=0&&this.players.splice(me,1);const Oe=this._engine.playersByElement.get(t);if(Oe){let Fe=Oe.indexOf(o);Fe>=0&&Oe.splice(Fe,1)}}),this.players.push(o),x.push(o),o}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,y0,!0);i.forEach(r=>{if(r[Zo])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(s.forEach((c,d)=>{if(o.set(d,c.value),this._triggers.has(d)){const f=this.trigger(t,d,Eg,r);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Qc(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(s=>{const o=s.name;if(r.has(o))return;r.add(o);const c=this._triggers.get(o).fallbackTransition,d=i.get(o)||Ux,f=new zx(Eg),v=new jx(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:c,fromState:d,toState:f,player:v,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 s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Zo];(!s||s===tB)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Jo(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const c=Sx(s,i.triggerName,i.fromState.value,i.toState.value);c._data=t,Cx(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o: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 HQ{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,s)=>{}}_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 BQ(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 o=!1,a=this.driver.getParentElement(e);for(;a;){const c=r.get(a);if(c){const d=i.indexOf(c);i.splice(d+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||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 s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}return e}trigger(t,e,i,r){if(P0(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!P0(e))return;const s=e[Zo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.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),Jo(t,Hx)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),hf(t,Hx))}removeNode(t,e,i,r){if(P0(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[Zo]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return P0(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,y0,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,kx,!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 Qc(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[Zo];if(i&&i.setForRemoval){if(t[Zo]=tB,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(Hx)&&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?Qc(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function HX(n){return new nt(3402,!1)}()}_flushAnimations(t,e){const i=new x0,r=[],s=new Map,o=[],a=new Map,c=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(wt=>{f.add(wt);const Bt=this.driver.query(wt,".ng-animate-queued",!0);for(let en=0;en{const en=xx+me++;se.set(Bt,en),wt.forEach(kn=>Jo(kn,en))});const Oe=[],Fe=new Set,et=new Set;for(let wt=0;wtFe.add(kn)):et.add(Bt))}const $e=new Map,ot=rB(x,Array.from(Fe));ot.forEach((wt,Bt)=>{const en=_0+me++;$e.set(Bt,en),wt.forEach(kn=>Jo(kn,en))}),t.push(()=>{B.forEach((wt,Bt)=>{const en=se.get(Bt);wt.forEach(kn=>hf(kn,en))}),ot.forEach((wt,Bt)=>{const en=$e.get(Bt);wt.forEach(kn=>hf(kn,en))}),Oe.forEach(wt=>{this.processLeaveNode(wt)})});const Tt=[],$t=[];for(let wt=this._namespaceList.length-1;wt>=0;wt--)this._namespaceList[wt].drainQueuedTransitions(e).forEach(en=>{const kn=en.player,Gi=en.element;if(Tt.push(kn),this.collectedEnterElements.length){const wr=Gi[Zo];if(wr&&wr.setForMove){if(wr.previousTriggersValues&&wr.previousTriggersValues.has(en.triggerName)){const Ei=wr.previousTriggersValues.get(en.triggerName),On=this.statesByElement.get(en.element);if(On&&On.has(en.triggerName)){const ps=On.get(en.triggerName);ps.value=Ei,On.set(en.triggerName,ps)}}return void kn.destroy()}}const co=!v||!this.driver.containsElement(v,Gi),zr=$e.get(Gi),Da=se.get(Gi),vi=this._buildInstruction(en,i,Da,zr,co);if(vi.errors&&vi.errors.length)return void $t.push(vi);if(co)return kn.onStart(()=>hd(Gi,vi.fromStyles)),kn.onDestroy(()=>al(Gi,vi.toStyles)),void r.push(kn);if(en.isFallbackTransition)return kn.onStart(()=>hd(Gi,vi.fromStyles)),kn.onDestroy(()=>al(Gi,vi.toStyles)),void r.push(kn);const Og=[];vi.timelines.forEach(wr=>{wr.stretchStartingKeyframe=!0,this.disabledNodes.has(wr.element)||Og.push(wr)}),vi.timelines=Og,i.append(Gi,vi.timelines),o.push({instruction:vi,player:kn,element:Gi}),vi.queriedElements.forEach(wr=>Ro(a,wr,[]).push(kn)),vi.preStyleProps.forEach((wr,Ei)=>{if(wr.size){let On=c.get(Ei);On||c.set(Ei,On=new Set),wr.forEach((ps,iu)=>On.add(iu))}}),vi.postStyleProps.forEach((wr,Ei)=>{let On=d.get(Ei);On||d.set(Ei,On=new Set),wr.forEach((ps,iu)=>On.add(iu))})});if($t.length){const wt=[];$t.forEach(Bt=>{wt.push(function zX(n,t){return new nt(3505,!1)}())}),Tt.forEach(Bt=>Bt.destroy()),this.reportError(wt)}const Sn=new Map,ti=new Map;o.forEach(wt=>{const Bt=wt.element;i.has(Bt)&&(ti.set(Bt,Bt),this._beforeAnimationBuild(wt.player.namespaceId,wt.instruction,Sn))}),r.forEach(wt=>{const Bt=wt.element;this._getPreviousPlayers(Bt,!1,wt.namespaceId,wt.triggerName,null).forEach(kn=>{Ro(Sn,Bt,[]).push(kn),kn.destroy()})});const Hr=Oe.filter(wt=>oB(wt,c,d)),$i=new Map;iB($i,this.driver,et,d,oc).forEach(wt=>{oB(wt,c,d)&&Hr.push(wt)});const qs=new Map;B.forEach((wt,Bt)=>{iB(qs,this.driver,new Set(wt),c,"!")}),Hr.forEach(wt=>{var Bt,en;const kn=$i.get(wt),Gi=qs.get(wt);$i.set(wt,new Map([...Array.from(null!==(Bt=null==kn?void 0:kn.entries())&&void 0!==Bt?Bt:[]),...Array.from(null!==(en=null==Gi?void 0:Gi.entries())&&void 0!==en?en:[])]))});const Ys=[],lo=[],Wi={};o.forEach(wt=>{const{element:Bt,player:en,instruction:kn}=wt;if(i.has(Bt)){if(f.has(Bt))return en.onDestroy(()=>al(Bt,kn.toStyles)),en.disabled=!0,en.overrideTotalTime(kn.totalTime),void r.push(en);let Gi=Wi;if(ti.size>1){let zr=Bt;const Da=[];for(;zr=zr.parentNode;){const vi=ti.get(zr);if(vi){Gi=vi;break}Da.push(zr)}Da.forEach(vi=>ti.set(vi,Gi))}const co=this._buildAnimation(en.namespaceId,kn,Sn,s,qs,$i);if(en.setRealPlayer(co),Gi===Wi)Ys.push(en);else{const zr=this.playersByElement.get(Gi);zr&&zr.length&&(en.parentPlayer=Qc(zr)),r.push(en)}}else hd(Bt,kn.fromStyles),en.onDestroy(()=>al(Bt,kn.toStyles)),lo.push(en),f.has(Bt)&&r.push(en)}),lo.forEach(wt=>{const Bt=s.get(wt.element);if(Bt&&Bt.length){const en=Qc(Bt);wt.setRealPlayer(en)}}),r.forEach(wt=>{wt.parentPlayer?wt.syncPlayerEvents(wt.parentPlayer):wt.destroy()});for(let wt=0;wt!co.destroyed);Gi.length?$Q(this,Bt,Gi):this.processLeaveNode(Bt)}return Oe.length=0,Ys.forEach(wt=>{this.players.push(wt),wt.onDone(()=>{wt.destroy();const Bt=this.players.indexOf(wt);this.players.splice(Bt,1)}),wt.play()}),Ys}elementContainsData(t,e){let i=!1;const r=e[Zo];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,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const c=!s||s==Eg;a.forEach(d=>{d.queued||!c&&d.triggerName!=r||o.push(d)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const d=c.element,f=d!==s,v=Ro(i,d,[]);this._getPreviousPlayers(d,f,o,a,e.toState).forEach(B=>{const se=B.getRealPlayer();se.beforeDestroy&&se.beforeDestroy(),B.destroy(),v.push(B)})}hd(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,c=e.element,d=[],f=new Set,v=new Set,x=e.timelines.map(se=>{const me=se.element;f.add(me);const Oe=me[Zo];if(Oe&&Oe.removedBeforeQueried)return new dg(se.duration,se.delay);const Fe=me!==c,et=function WQ(n){const t=[];return sB(n,t),t}((i.get(me)||NQ).map(Sn=>Sn.getRealPlayer())).filter(Sn=>!!Sn.element&&Sn.element===me),$e=s.get(me),ot=o.get(me),Tt=PV(0,this._normalizer,0,se.keyframes,$e,ot),$t=this._buildPlayer(se,Tt,et);if(se.subTimeline&&r&&v.add(me),Fe){const Sn=new jx(t,a,me);Sn.setRealPlayer($t),d.push(Sn)}return $t});d.forEach(se=>{Ro(this.playersByQueriedElement,se.element,[]).push(se),se.onDone(()=>function zQ(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,se.element,se))}),f.forEach(se=>Jo(se,HV));const B=Qc(x);return B.onDestroy(()=>{f.forEach(se=>hf(se,HV)),al(c,e.toStyles)}),v.forEach(se=>{Ro(r,se,[]).push(B)}),B}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new dg(t.duration,t.delay)}}class jx{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new dg,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=>Cx(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){Ro(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 P0(n){return n&&1===n.nodeType}function nB(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function iB(n,t,e,i,r){const s=[];e.forEach(c=>s.push(nB(c)));const o=[];i.forEach((c,d)=>{const f=new Map;c.forEach(v=>{const x=t.computeStyle(d,v,r);f.set(v,x),(!x||0==x.length)&&(d[Zo]=VQ,o.push(d))}),n.set(d,f)});let a=0;return e.forEach(c=>nB(c,s[a++])),o}function rB(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let c=s.get(a);if(c)return c;const d=a.parentNode;return c=e.has(d)?d:r.has(d)?1:o(d),s.set(a,c),c}return t.forEach(a=>{const c=o(a);1!==c&&e.get(c).push(a)}),e}function Jo(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function hf(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function $Q(n,t,e){Qc(e).onDone(()=>n.processLeaveNode(t))}function sB(n,t){for(let e=0;er.add(s)):t.set(n,i),e.delete(n),!0}class R0{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new HQ(t,e,i),this._timelineEngine=new RQ(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const c=[],f=Ix(this._driver,s,c,[]);if(c.length)throw function TX(n,t){return new nt(3404,!1)}();a=function xQ(n,t,e){return new kQ(n,t,e)}(r,f,this._normalizer),this._triggerCache[o]=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[s,o]=RV(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=RV(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let YQ=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&al(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(al(this._element,this._initialStyles),this._endStyles&&(al(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(hd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hd(this._element,this._endStyles),this._endStyles=null),al(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function $x(n){let t=null;return n.forEach((e,i)=>{(function KQ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class aB{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:GV(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class XQ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return LV(t,e)}getParentElement(t){return Mx(t)}query(t,e,i){return NV(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const c={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(c.easing=s);const d=new Map,f=o.filter(B=>B instanceof aB);(function eQ(n,t){return 0===n||0===t})(i,r)&&f.forEach(B=>{B.currentSnapshot.forEach((se,me)=>d.set(me,se))});let v=function XX(n){return n.length?n[0]instanceof Map?n:n.map(t=>zV(t)):[]}(e).map(B=>Jc(B));v=function tQ(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;so.set(a,GV(n,a)))}}return t}(t,v,d);const x=function qQ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=$x(t[0]),t.length>1&&(i=$x(t[t.length-1]))):t instanceof Map&&(e=$x(t)),e||i?new YQ(n,e,i):null}(t,v);return new aB(t,v,c,x)}}let QQ=(()=>{class n extends FN{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Js.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?LN(e):e;return lB(this._renderer,null,i,"register",[r]),new ZQ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(Re(Ol),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class ZQ extends class eK{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new JQ(this._id,t,e||{},this._renderer)}}class JQ{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 lB(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 lB(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const cB="@.disabled";let eZ=(()=>{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=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let f=this._rendererCache.get(s);return f||(f=new uB("",s,this.engine),this._rendererCache.set(s,f)),f}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const c=f=>{Array.isArray(f)?f.forEach(c):this.engine.registerTrigger(o,a,e,f.name,f)};return i.data.animation.forEach(c),new tZ(this,a,s,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(s=>{const[o,a]=s;o(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)(Re(Ol),Re(R0),Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class uB{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==cB?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 tZ extends uB{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==cB?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 nZ(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function iZ(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const dB=[{provide:FN,useClass:QQ},{provide:Vx,useFactory:function sZ(){return new SQ}},{provide:R0,useClass:(()=>{class n extends R0{constructor(e,i,r,s){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Ex),Re(Vx),Re(qh))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})()},{provide:Ol,useFactory:function oZ(n,t,e){return new eZ(n,t,e)},deps:[qy,R0,jt]}],Wx=[{provide:Ex,useFactory:()=>new XQ},{provide:Ts,useValue:"BrowserAnimations"},...dB],hB=[{provide:Ex,useClass:VV},{provide:Ts,useValue:"NoopAnimations"},...dB];let aZ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?hB:Wx}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:Wx,imports:[YO]}),n})();let ff={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const cZ=/[&<>"']/,uZ=/[&<>"']/g,dZ=/[<>"']|&(?!#?\w+;)/,hZ=/[<>"']|&(?!#?\w+;)/g,fZ={"&":"&","<":"<",">":">",'"':""","'":"'"},pB=n=>fZ[n];function qr(n,t){if(t){if(cZ.test(n))return n.replace(uZ,pB)}else if(dZ.test(n))return n.replace(hZ,pB);return n}const pZ=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function mB(n){return n.replace(pZ,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const mZ=/(^|[^\[])\^/g;function Di(n,t){n="string"==typeof n?n:n.source,t=t||"";const e={replace:(i,r)=>(r=(r=r.source||r).replace(mZ,"$1"),n=n.replace(i,r),e),getRegex:()=>new RegExp(n,t)};return e}const gZ=/[^\w:]/g,_Z=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function gB(n,t,e){if(n){let i;try{i=decodeURIComponent(mB(e)).replace(gZ,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!_Z.test(e)&&(e=function wZ(n,t){O0[" "+n]||(O0[" "+n]=vZ.test(n)?n+"/":L0(n,"/",!0));const e=-1===(n=O0[" "+n]).indexOf(":");return"//"===t.substring(0,2)?e?t:n.replace(yZ,"$1")+t:"/"===t.charAt(0)?e?t:n.replace(bZ,"$1")+t:n+t}(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(i){return null}return e}const O0={},vZ=/^[^:]+:\/*[^/]*$/,yZ=/^([^:]+:)[\s\S]*$/,bZ=/^([^:]+:\/*[^/]*)[\s\S]*$/,F0={exec:function(){}};function Ca(n){let e,i,t=1;for(;t{let c=!1,d=o;for(;--d>=0&&"\\"===a[d];)c=!c;return c?"|":" |"}).split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length1;)1&t&&(e+=n),t>>=1,n+=n;return e+n}function bB(n,t,e,i){const r=t.href,s=t.title?qr(t.title):null,o=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;const a={type:"link",raw:e,href:r,title:s,text:o,tokens:i.inlineTokens(o,[])};return i.state.inLink=!1,a}return{type:"image",raw:e,href:r,title:s,text:qr(o)}}class Gx{constructor(t){this.options=t||ff}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const i=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:L0(i,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const i=e[0],r=function DZ(n,t){const e=n.match(/^(\s+)(?:```)/);if(null===e)return t;const i=e[1];return t.split("\n").map(r=>{const s=r.match(/^\s+/);if(null===s)return r;const[o]=s;return o.length>=i.length?r.slice(i.length):r}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(/#$/.test(i)){const s=L0(i,"#");(this.options.pedantic||!s||/ $/.test(s))&&(i=s.trim())}const r={type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const i=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let i,r,s,o,a,c,d,f,v,x,B,se,me=e[1].trim();const Oe=me.length>1,Fe={type:"list",raw:"",ordered:Oe,start:Oe?+me.slice(0,-1):"",loose:!1,items:[]};me=Oe?`\\d{1,9}\\${me.slice(-1)}`:`\\${me}`,this.options.pedantic&&(me=Oe?me:"[*+-]");const et=new RegExp(`^( {0,3}${me})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(se=!1,(e=et.exec(t))&&!this.rules.block.hr.test(t));){if(i=e[0],t=t.substring(i.length),f=e[2].split("\n",1)[0],v=t.split("\n",1)[0],this.options.pedantic?(o=2,B=f.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,B=f.slice(o),o+=e[1].length),c=!1,!f&&/^ *$/.test(v)&&(i+=v+"\n",t=t.substring(v.length+1),se=!0),!se){const ot=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),Tt=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),$t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),Sn=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;t&&(x=t.split("\n",1)[0],f=x,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!($t.test(f)||Sn.test(f)||ot.test(f)||Tt.test(t)));){if(f.search(/[^ ]/)>=o||!f.trim())B+="\n"+f.slice(o);else{if(c)break;B+="\n"+f}!c&&!f.trim()&&(c=!0),i+=x+"\n",t=t.substring(x.length+1)}}Fe.loose||(d?Fe.loose=!0:/\n *\n *$/.test(i)&&(d=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(B),r&&(s="[ ] "!==r[0],B=B.replace(/^\[[ xX]\] +/,""))),Fe.items.push({type:"list_item",raw:i,task:!!r,checked:s,loose:!1,text:B}),Fe.raw+=i}Fe.items[Fe.items.length-1].raw=i.trimRight(),Fe.items[Fe.items.length-1].text=B.trimRight(),Fe.raw=Fe.raw.trimRight();const $e=Fe.items.length;for(a=0;a<$e;a++){this.lexer.state.top=!1,Fe.items[a].tokens=this.lexer.blockTokens(Fe.items[a].text,[]);const ot=Fe.items[a].tokens.filter($t=>"space"===$t.type),Tt=ot.every($t=>{const Sn=$t.raw.split("");let ti=0;for(const Hr of Sn)if("\n"===Hr&&(ti+=1),ti>1)return!0;return!1});!Fe.loose&&ot.length&&Tt&&(Fe.loose=!0,Fe.items[a].loose=!0)}return Fe}}html(t){const e=this.rules.block.html.exec(t);if(e){const i={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(e[0]):qr(e[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(t){const e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}table(t){const e=this.rules.block.table.exec(t);if(e){const i={type:"table",header:_B(e[1]).map(r=>({text:r})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];let s,o,a,c,r=i.align.length;for(s=0;s({text:d}));for(r=i.header.length,o=0;o/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):qr(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const o=L0(i.slice(0,-1),"\\");if((i.length-o.length)%2==0)return}else{const o=function CZ(n,t){if(-1===n.indexOf(t[1]))return-1;const e=n.length;let i=0,r=0;for(;r-1){const c=(0===e[0].indexOf("!")?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let r=e[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);o&&(r=o[1],s=o[3])}else s=e[3]?e[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),bB(e,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=e[r.toLowerCase()],!r||!r.href){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return bB(i,r,i[0],this.lexer)}}emStrong(t,e,i=""){let r=this.rules.inline.emStrong.lDelim.exec(t);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;const s=r[1]||r[2]||"";if(!s||s&&(""===i||this.rules.inline.punctuation.exec(i))){const o=r[0].length-1;let a,c,d=o,f=0;const v="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,e=e.slice(-1*t.length+o);null!=(r=v.exec(e));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(c=a.length,r[3]||r[4]){d+=c;continue}if((r[5]||r[6])&&o%3&&!((o+c)%3)){f+=c;continue}if(d-=c,d>0)continue;if(c=Math.min(c,c+d+f),Math.min(o,c)%2){const B=t.slice(1,o+r.index+c);return{type:"em",raw:t.slice(0,o+r.index+c+1),text:B,tokens:this.lexer.inlineTokens(B,[])}}const x=t.slice(2,o+r.index+c-1);return{type:"strong",raw:t.slice(0,o+r.index+c+1),text:x,tokens:this.lexer.inlineTokens(x,[])}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(/\n/g," ");const r=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return r&&s&&(i=i.substring(1,i.length-1)),i=qr(i,!0),{type:"codespan",raw:e[0],text:i}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}autolink(t,e){const i=this.rules.inline.autolink.exec(t);if(i){let r,s;return"@"===i[2]?(r=qr(this.options.mangle?e(i[1]):i[1]),s="mailto:"+r):(r=qr(i[1]),s=r),{type:"link",raw:i[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t,e){let i;if(i=this.rules.inline.url.exec(t)){let r,s;if("@"===i[2])r=qr(this.options.mangle?e(i[0]):i[0]),s="mailto:"+r;else{let o;do{o=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(o!==i[0]);r=qr(i[0]),s="www."===i[1]?"http://"+r:r}return{type:"link",raw:i[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t,e){const i=this.rules.inline.text.exec(t);if(i){let r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):qr(i[0]):i[0]:qr(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}}const sn={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:F0,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};sn.def=Di(sn.def).replace("label",sn._label).replace("title",sn._title).getRegex(),sn.bullet=/(?:[*+-]|\d{1,9}[.)])/,sn.listItemStart=Di(/^( *)(bull) */).replace("bull",sn.bullet).getRegex(),sn.list=Di(sn.list).replace(/bull/g,sn.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+sn.def.source+")").getRegex(),sn._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",sn._comment=/|$)/,sn.html=Di(sn.html,"i").replace("comment",sn._comment).replace("tag",sn._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sn.paragraph=Di(sn._paragraph).replace("hr",sn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",sn._tag).getRegex(),sn.blockquote=Di(sn.blockquote).replace("paragraph",sn.paragraph).getRegex(),sn.normal=Ca({},sn),sn.gfm=Ca({},sn.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),sn.gfm.table=Di(sn.gfm.table).replace("hr",sn.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",sn._tag).getRegex(),sn.gfm.paragraph=Di(sn._paragraph).replace("hr",sn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",sn.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",sn._tag).getRegex(),sn.pedantic=Ca({},sn.normal,{html:Di("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",sn._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:F0,paragraph:Di(sn.normal._paragraph).replace("hr",sn.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",sn.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Lt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:F0,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:F0,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),t+="&#"+i+";";return t}Lt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Lt.punctuation=Di(Lt.punctuation).replace(/punctuation/g,Lt._punctuation).getRegex(),Lt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Lt.escapedEmSt=/\\\*|\\_/g,Lt._comment=Di(sn._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Lt.emStrong.lDelim=Di(Lt.emStrong.lDelim).replace(/punct/g,Lt._punctuation).getRegex(),Lt.emStrong.rDelimAst=Di(Lt.emStrong.rDelimAst,"g").replace(/punct/g,Lt._punctuation).getRegex(),Lt.emStrong.rDelimUnd=Di(Lt.emStrong.rDelimUnd,"g").replace(/punct/g,Lt._punctuation).getRegex(),Lt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Lt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Lt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Lt.autolink=Di(Lt.autolink).replace("scheme",Lt._scheme).replace("email",Lt._email).getRegex(),Lt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Lt.tag=Di(Lt.tag).replace("comment",Lt._comment).replace("attribute",Lt._attribute).getRegex(),Lt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Lt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Lt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Lt.link=Di(Lt.link).replace("label",Lt._label).replace("href",Lt._href).replace("title",Lt._title).getRegex(),Lt.reflink=Di(Lt.reflink).replace("label",Lt._label).replace("ref",sn._label).getRegex(),Lt.nolink=Di(Lt.nolink).replace("ref",sn._label).getRegex(),Lt.reflinkSearch=Di(Lt.reflinkSearch,"g").replace("reflink",Lt.reflink).replace("nolink",Lt.nolink).getRegex(),Lt.normal=Ca({},Lt),Lt.pedantic=Ca({},Lt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Di(/^!?\[(label)\]\((.*?)\)/).replace("label",Lt._label).getRegex(),reflink:Di(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Lt._label).getRegex()}),Lt.gfm=Ca({},Lt.normal,{escape:Di(Lt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\c+" ".repeat(d.length));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(i=a.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?e.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=t.slice(1);let d;this.options.extensions.startBlock.forEach(function(f){d=f.call({lexer:this},c),"number"==typeof d&&d>=0&&(a=Math.min(a,d))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){r=e[e.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i),o=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(t,e){this.inlineQueue.push({src:t,tokens:e})}inlineTokens(t,e=[]){let i,r,s,a,c,d,o=t;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(o));)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+yB("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,a.index)+"["+yB("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(o));)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>!!(i=f.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.emStrong(t,o,d)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.autolink(t,wB)){t=t.substring(i.raw.length),e.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t,wB))){t=t.substring(i.raw.length),e.push(i);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const v=t.slice(1);let x;this.options.extensions.startInline.forEach(function(B){x=B.call({lexer:this},v),"number"==typeof x&&x>=0&&(f=Math.min(f,x))}),f<1/0&&f>=0&&(s=t.substring(0,f+1))}if(i=this.tokenizer.inlineText(s,SZ)){t=t.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(d=i.raw.slice(-1)),c=!0,r=e[e.length-1],r&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return e}}class pf{constructor(t){this.options=t||ff}code(t,e,i){const r=(e||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(t,r);null!=s&&s!==t&&(i=!0,t=s)}return t=t.replace(/\n$/,"")+"\n",r?'
'+(i?t:qr(t,!0))+"
\n":"
"+(i?t:qr(t,!0))+"
\n"}blockquote(t){return`
\n${t}
\n`}html(t){return t}heading(t,e,i,r){return this.options.headerIds?`${t}\n`:`${t}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(t,e,i){const r=e?"ol":"ul";return"<"+r+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"\n"}listitem(t){return`
  • ${t}
  • \n`}checkbox(t){return" "}paragraph(t){return`

    ${t}

    \n`}table(t,e){return e&&(e=`${e}`),"\n\n"+t+"\n"+e+"
    \n"}tablerow(t){return`\n${t}\n`}tablecell(t,e){const i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`\n`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,e,i){if(null===(t=gB(this.options.sanitize,this.options.baseUrl,t)))return i;let r='",r}image(t,e,i){if(null===(t=gB(this.options.sanitize,this.options.baseUrl,t)))return i;let r=`${i}":">",r}text(t){return t}}class CB{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,i){return""+i}image(t,e,i){return""+i}br(){return""}}class DB{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let i=t,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[t];do{r++,i=t+"-"+r}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=r,this.seen[i]=0),i}slug(t,e={}){const i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)}}class lc{constructor(t){this.options=t||ff,this.options.renderer=this.options.renderer||new pf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new CB,this.slugger=new DB}static parse(t,e){return new lc(e).parse(t)}static parseInline(t,e){return new lc(e).parseInline(t)}parse(t,e=!0){let r,s,o,a,c,d,f,v,x,B,se,me,Oe,Fe,et,$e,ot,Tt,$t,i="";const Sn=t.length;for(r=0;r0&&"paragraph"===et.tokens[0].type?(et.tokens[0].text=Tt+" "+et.tokens[0].text,et.tokens[0].tokens&&et.tokens[0].tokens.length>0&&"text"===et.tokens[0].tokens[0].type&&(et.tokens[0].tokens[0].text=Tt+" "+et.tokens[0].tokens[0].text)):et.tokens.unshift({type:"text",text:Tt}):Fe+=Tt),Fe+=this.parse(et.tokens,Oe),x+=this.renderer.listitem(Fe,ot,$e);i+=this.renderer.list(x,se,me);continue;case"html":i+=this.renderer.html(B.text);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(B.tokens));continue;case"text":for(x=B.tokens?this.parseInline(B.tokens):B.text;r+1{i(a.text,a.lang,function(c,d){if(c)return s(c);null!=d&&d!==a.text&&(a.text=d,a.escaped=!0),o--,0===o&&s()})},0))}),void(0===o&&s())}try{const i=ac.lex(n,t);return t.walkTokens&&cn.walkTokens(i,t.walkTokens),lc.parse(i,t)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+qr(i.message+"",!0)+"
    ";throw i}}cn.options=cn.setOptions=function(n){return Ca(cn.defaults,n),function lZ(n){ff=n}(cn.defaults),cn},cn.getDefaults=function fB(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},cn.defaults=ff,cn.use=function(...n){const t=Ca({},...n),e=cn.defaults.extensions||{renderers:{},childTokens:{}};let i;n.forEach(r=>{if(r.extensions&&(i=!0,r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const o=e.renderers?e.renderers[s.name]:null;e.renderers[s.name]=o?function(...a){let c=s.renderer.apply(this,a);return!1===c&&(c=o.apply(this,a)),c}:s.renderer}if(s.tokenizer){if(!s.level||"block"!==s.level&&"inline"!==s.level)throw new Error("extension level must be 'block' or 'inline'");e[s.level]?e[s.level].unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&("block"===s.level?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:"inline"===s.level&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}s.childTokens&&(e.childTokens[s.name]=s.childTokens)})),r.renderer){const s=cn.defaults.renderer||new pf;for(const o in r.renderer){const a=s[o];s[o]=(...c)=>{let d=r.renderer[o].apply(s,c);return!1===d&&(d=a.apply(s,c)),d}}t.renderer=s}if(r.tokenizer){const s=cn.defaults.tokenizer||new Gx;for(const o in r.tokenizer){const a=s[o];s[o]=(...c)=>{let d=r.tokenizer[o].apply(s,c);return!1===d&&(d=a.apply(s,c)),d}}t.tokenizer=s}if(r.walkTokens){const s=cn.defaults.walkTokens;t.walkTokens=function(o){r.walkTokens.call(this,o),s&&s.call(this,o)}}i&&(t.extensions=e),cn.setOptions(t)})},cn.walkTokens=function(n,t){for(const e of n)switch(t.call(cn,e),e.type){case"table":for(const i of e.header)cn.walkTokens(i.tokens,t);for(const i of e.rows)for(const r of i)cn.walkTokens(r.tokens,t);break;case"list":cn.walkTokens(e.items,t);break;default:cn.defaults.extensions&&cn.defaults.extensions.childTokens&&cn.defaults.extensions.childTokens[e.type]?cn.defaults.extensions.childTokens[e.type].forEach(function(i){cn.walkTokens(e[i],t)}):e.tokens&&cn.walkTokens(e.tokens,t)}},cn.parseInline=function(n,t){if(null==n)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof n)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");vB(t=Ca({},cn.defaults,t||{}));try{const e=ac.lexInline(n,t);return t.walkTokens&&cn.walkTokens(e,t.walkTokens),lc.parseInline(e,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+qr(e.message+"",!0)+"
    ";throw e}},cn.Parser=lc,cn.parser=lc.parse,cn.Renderer=pf,cn.TextRenderer=CB,cn.Lexer=ac,cn.lexer=ac.lex,cn.Tokenizer=Gx,cn.Slugger=DB,cn.parse=cn;const AZ=["*"];let qx=(()=>{class n{constructor(){this._buttonClick$=new b,this.copied$=this._buttonClick$.pipe(ds(()=>Ni(At(!0),_M(3e3).pipe(CM(!1)))),nb(),fN(1)),this.copiedText$=this.copied$.pipe(cs(!1),z(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,i){1&e&&(Y(0,"button",0),vt("click",function(){return i.onCopyToClipboardClick()}),ui(1,"async"),ie(2),ui(3,"async"),ee()),2&e&&(Kt("copied",wi(1,3,i.copied$)),ye(2),Yn(wi(3,5,i.copiedText$)))},dependencies:[Ga],encapsulation:2,changeDetection:0}),n})();class xZ{}var xg=(()=>{return(n=xg||(xg={})).CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers",xg;var n})();class SB{}const AB=new lt("SECURITY_CONTEXT");let N0=(()=>{class n{constructor(e,i,r,s,o,a){this.platform=e,this.securityContext=i,this.http=r,this.clipboardOptions=s,this.sanitizer=a,this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_MARKED_OPTIONS={renderer:new pf},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this._reload$=new b,this.reload$=this._reload$.asObservable(),this.options=o}get options(){return this._options}set options(e){this._options=Object.assign(Object.assign({},this.DEFAULT_MARKED_OPTIONS),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}parse(e,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:s,emoji:o,mermaid:a,markedOptions:c=this.options}=i;a&&(this.renderer=this.extendRenderer(c.renderer||new pf));const d=this.trimIndentation(e),f=r?this.decodeHtml(d):d,v=o?this.parseEmoji(f):f,x=this.parseMarked(v,c,s);return this.sanitizer.sanitize(this.securityContext,x)||""}render(e,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:s,clipboardOptions:o,katex:a,katexOptions:c,mermaid:d,mermaidOptions:f}=i;s&&this.renderClipboard(e,r,Object.assign(Object.assign(Object.assign({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),o)),a&&this.renderKatex(e,Object.assign(Object.assign({},this.DEFAULT_KATEX_OPTIONS),c)),d&&this.renderMermaid(e,Object.assign(Object.assign({},this.DEFAULT_MERMAID_OPTIONS),f)),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(z(i=>this.handleExtension(e,i)))}highlight(e){if(!Wl(this.platform)||"undefined"==typeof Prism||void 0===Prism.highlightAllUnder)return;e||(e=document);const i=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!Wl(this.platform))return e;const i=document.createElement("textarea");return i.innerHTML=e,i.value}extendRenderer(e){const i=e;if(!0===i.\u0275NgxMarkdownRendererExtended)return e;const r=e.code;return e.code=function(s,o,a){return"mermaid"===o?`
    ${s}
    `:r.call(this,s,o,a)},i.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,i){const r=e.lastIndexOf("://"),s=r>-1?e.substring(r+4):e,o=s.lastIndexOf("/"),a=o>-1?s.substring(o+1).split("?")[0]:"",c=a.lastIndexOf("."),d=c>-1?a.substring(c+1):"";return d&&"md"!==d?"```"+d+"\n"+i+"\n```":i}parseMarked(e,i,r=!1){return Wl(this.platform)?r?cn.parseInline(e,i):cn.parse(e,i):e}parseEmoji(e){if(!Wl(this.platform))return e;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,i){if(Wl(this.platform)){if("undefined"==typeof katex||"undefined"==typeof renderMathInElement)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,i)}}renderClipboard(e,i,r){if(!Wl(this.platform))return;if("undefined"==typeof ClipboardJS)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:s,buttonTemplate:o}=r,a=e.querySelectorAll("pre");for(let c=0;cv.style.opacity="1",d.onmouseout=()=>v.style.opacity="0",x=s?i.createComponent(s).hostView:o?i.createEmbeddedView(o):i.createComponent(qx).hostView,x.rootNodes.forEach(se=>{se.onmouseover=()=>v.style.opacity="1",v.appendChild(se),B=new ClipboardJS(se,{text:()=>d.innerText})}),x.onDestroy(()=>B.destroy())}}renderMermaid(e,i=this.DEFAULT_MERMAID_OPTIONS){if(!Wl(this.platform))return;if("undefined"==typeof mermaid||void 0===mermaid.init)throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=e.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.init(r))}trimIndentation(e){if(!e)return"";let i;return e.split("\n").map(r=>{let s=i;return r.length>0&&(s=isNaN(s)?r.search(/\S|$/):Math.min(r.search(/\S|$/),s)),isNaN(i)&&(i=s),s?r.substring(s):r}).join("\n")}}return n.\u0275fac=function(e){return new(e||n)(Re(Gh),Re(AB),Re(nd,8),Re(xZ,8),Re(SB,8),Re(Yu))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Yx=(()=>{class n{constructor(e,i,r){this.element=e,this.markdownService=i,this.viewContainerRef=r,this.error=new yt,this.load=new yt,this.ready=new yt,this._commandLine=!1,this._clipboard=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new b}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Ot(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,i=!1){const s={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},o=this.markdownService.parse(e,{decodeHtml:i,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid});this.element.nativeElement.innerHTML=o,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,xg.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,xg.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,i){const r=e.querySelectorAll("pre");for(let s=0;s{const a=i[o];if(a){const c=this.toLispCase(o);r.item(s).setAttribute(c,a.toString())}})}toLispCase(e){const i=e.match(/([A-Z])/g);if(!i)return e;let r=e.toString();for(let s=0,o=i.length;s{class n{static forRoot(e){return{ngModule:n,providers:[N0,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:AB,useValue:e&&null!=e.sanitize?e.sanitize:jn.HTML}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[_a]}),n})();var MB;function NZ(n,t){if(1&n&&(ia(),ft(0,"circle",4)),2&n){const e=Qe(),i=zi(1);js("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Yt("r",e._getCircleRadius())}}function VZ(n,t){if(1&n&&(ia(),ft(0,"circle",4)),2&n){const e=Qe(),i=zi(1);js("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Yt("r",e._getCircleRadius())}}!function(n){let t;var r;let e,i;(r=t=n.SecurityLevel||(n.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(e=n.Theme||(n.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(i=n.LogLevel||(n.LogLevel={}))}(MB||(MB={}));const HZ=Zl(class{constructor(n){this._elementRef=n}},"primary"),zZ=new lt("mat-progress-spinner-default-options",{providedIn:"root",factory:function UZ(){return{diameter:100}}});class cc extends HZ{constructor(t,e,i,r,s,o,a,c){super(t),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=Me.EMPTY,this.mode="determinate";const d=cc._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),d.has(i.head)||d.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,"mat-spinner"===t.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),s&&(s.color&&(this.color=this.defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&o&&c&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&c.run(()=>o.markForCheck())}))}get diameter(){return this._diameter}set diameter(t){this._diameter=Gr(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Gr(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Gr(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=rF(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(t){var e;const i=50*(null!==(e=t.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=cc._diameters;let r=i.get(t);if(!r||!r.has(e)){const s=this._document.createElement("style");s.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),s.textContent=this._getAnimationText(),t.appendChild(s),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}cc._diameters=new WeakMap,cc.\u0275fac=function(t){return new(t||cc)(R(bt),R(Zi),R(Qt,8),R(Ts,8),R(zZ),R(Xn),R(Vm),R(jt))},cc.\u0275cmp=Ct({type:cc,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Yt("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),js("width",e.diameter,"px")("height",e.diameter,"px"),Kt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[_t],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ia(),Y(0,"svg",0,1),mt(2,NZ,1,11,"circle",2),mt(3,VZ,1,9,"circle",3),ee()),2&t&&(js("width",e.diameter,"px")("height",e.diameter,"px"),Pe("ngSwitch","indeterminate"===e.mode),Yt("viewBox",e._getViewBox()),ye(2),Pe("ngSwitchCase",!0),ye(1),Pe("ngSwitchCase",!1))},dependencies:[qu,xm],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let $Z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn,_a,yn]}),n})();const WZ=["mat-calendar-body",""];function GZ(n,t){if(1&n&&(Y(0,"tr",2)(1,"td",3),ie(2),ee()()),2&n){const e=Qe();ye(1),js("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Yt("colspan",e.numCols),ye(1),ci(" ",e.label," ")}}function qZ(n,t){if(1&n&&(Y(0,"td",3),ie(1),ee()),2&n){const e=Qe(2);js("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Yt("colspan",e._firstRowOffset),ye(1),ci(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function YZ(n,t){if(1&n){const e=ii();Y(0,"td",7)(1,"button",8),vt("click",function(r){const o=zt(e).$implicit;return Wt(Qe(2)._cellClicked(o,r))})("focus",function(r){const o=zt(e).$implicit;return Wt(Qe(2)._emitActiveDateChange(o,r))}),Y(2,"div",9),ie(3),ee(),ft(4,"div",10),ee()()}if(2&n){const e=t.$implicit,i=t.index,r=Qe().index,s=Qe();js("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),Yt("data-mat-row",r)("data-mat-col",i),ye(1),Kt("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",s._isActiveCell(r,i))("mat-calendar-body-range-start",s._isRangeStart(e.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",s._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",s._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",s._isInPreview(e.compareValue)),Pe("ngClass",e.cssClasses)("tabindex",s._isActiveCell(r,i)?0:-1),Yt("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",s._isSelected(e.compareValue))("aria-current",s.todayValue===e.compareValue?"date":null),ye(1),Kt("mat-calendar-body-selected",s._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",s.todayValue===e.compareValue),ye(1),ci(" ",e.displayValue," ")}}function KZ(n,t){if(1&n&&(Y(0,"tr",4),mt(1,qZ,2,6,"td",5),mt(2,YZ,5,47,"td",6),ee()),2&n){const e=t.$implicit,i=t.index,r=Qe();ye(1),Pe("ngIf",0===i&&r._firstRowOffset),ye(1),Pe("ngForOf",e)}}function XZ(n,t){if(1&n&&(Y(0,"th",5)(1,"span",6),ie(2),ee(),Y(3,"span",7),ie(4),ee()()),2&n){const e=t.$implicit;ye(2),Yn(e.long),ye(2),Yn(e.narrow)}}const QZ=["*"];function ZZ(n,t){}function JZ(n,t){if(1&n){const e=ii();Y(0,"mat-month-view",5),vt("activeDateChange",function(r){return zt(e),Wt(Qe().activeDate=r)})("_userSelection",function(r){return zt(e),Wt(Qe()._dateSelected(r))}),ee()}if(2&n){const e=Qe();Pe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function eJ(n,t){if(1&n){const e=ii();Y(0,"mat-year-view",6),vt("activeDateChange",function(r){return zt(e),Wt(Qe().activeDate=r)})("monthSelected",function(r){return zt(e),Wt(Qe()._monthSelectedInYearView(r))})("selectedChange",function(r){return zt(e),Wt(Qe()._goToDateInView(r,"month"))}),ee()}if(2&n){const e=Qe();Pe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function tJ(n,t){if(1&n){const e=ii();Y(0,"mat-multi-year-view",7),vt("activeDateChange",function(r){return zt(e),Wt(Qe().activeDate=r)})("yearSelected",function(r){return zt(e),Wt(Qe()._yearSelectedInMultiYearView(r))})("selectedChange",function(r){return zt(e),Wt(Qe()._goToDateInView(r,"year"))}),ee()}if(2&n){const e=Qe();Pe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function nJ(n,t){}const iJ=["button"];function rJ(n,t){1&n&&(ia(),Y(0,"svg",3),ft(1,"path",4),ee())}const sJ=[[["","matDatepickerToggleIcon",""]]],oJ=["[matDatepickerToggleIcon]"],aJ=[[["input","matStartDate",""]],[["input","matEndDate",""]]],lJ=["input[matStartDate]","input[matEndDate]"];class Xx{constructor(t,e,i,r,s={},o=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=s,this.compareValue=o,this.rawValue=a}}let mf=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new yt,this.previewChange=new yt,this.activeDateChange=new yt,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const s=this._getCellFromElement(r.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:s}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?s-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Qx(e,this.startValue,this.endValue)}_isRangeEnd(e){return Zx(e,this.startValue,this.endValue)}_isInRange(e){return Jx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Qx(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let s=this.rows[i][r-1];if(!s){const o=this.rows[i-1];s=o&&o[o.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let s=this.rows[i][r+1];if(!s){const o=this.rows[i+1];s=o&&o[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(e){return Zx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Jx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Qx(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Zx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Jx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(EB(e)?i=e:EB(e.parentNode)&&(i=e.parentNode),i){const r=i.getAttribute("data-mat-row"),s=i.getAttribute("data-mat-col");if(r&&s)return this.rows[parseInt(r)][parseInt(s)]}return null}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(jt))},n.\u0275cmp=Ct({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[Zt],attrs:WZ,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&(mt(0,GZ,3,6,"tr",0),mt(1,KZ,3,2,"tr",1)),2&e&&(Pe("ngIf",i._firstRowOffset=t&&n===e}function Jx(n,t,e,i){return i&&null!==t&&null!==e&&t!==e&&n>=t&&n<=e}class Os{constructor(t,e){this.start=t,this.end=e}}let eu=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new b,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),cJ=(()=>{class n extends eu{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(Re(sr))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),uJ=(()=>{class n extends eu{constructor(e){super(new Os(null,null),e)}add(e){let{start:i,end:r}=this.selection;null==i?i=e:null==r?r=e:(i=e,r=null),super.updateSelection(new Os(i,r),this)}isValid(){const{start:e,end:i}=this.selection;return null==e&&null==i||(null!=e&&null!=i?this._isValidDateInstance(e)&&this._isValidDateInstance(i)&&this._adapter.compareDate(e,i)<=0:(null==e||this._isValidDateInstance(e))&&(null==i||this._isValidDateInstance(i)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(Re(sr))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const xB={provide:eu,deps:[[new Cs,new Co,eu],sr],useFactory:function dJ(n,t){return n||new cJ(t)}},fJ={provide:eu,deps:[[new Cs,new Co,eu],sr],useFactory:function hJ(n,t){return n||new uJ(t)}},V0=new lt("MAT_DATE_RANGE_SELECTION_STRATEGY");let pJ=(()=>{class n{constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:r,end:s}=i;return null==r?r=e:null==s&&e&&this._dateAdapter.compareDate(e,r)>=0?s=e:(r=e,s=null),new Os(r,s)}createPreview(e,i){let r=null,s=null;return i.start&&!i.end&&e&&(r=i.start,s=e),new Os(r,s)}}return n.\u0275fac=function(e){return new(e||n)(Re(sr))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const gJ={provide:V0,deps:[[new Cs,new Co,V0],sr],useFactory:function mJ(n,t){return n||new pJ(t)}};let kB=(()=>{class n{constructor(e,i,r,s,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rangeStrategy=o,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new yt,this._userSelection=new yt,this.activeDateChange=new yt,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cs(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._getDateFromDayOfMonth(i);let s,o;this._selected instanceof Os?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),(s!==i||o!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!va(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const s=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((o,a)=>({long:o,narrow:i[a]}));this._weekdays=s.slice(e).concat(s.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,s=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),s=this._dateAdapter.getDate(e);return new Date(i,r,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Os?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Xn),R(Ja,8),R(sr,8),R(us,8),R(V0,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&Hn(mf,5),2&e){let r;Dt(r=St())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Zt],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,i){1&e&&(Y(0,"table",0)(1,"thead",1)(2,"tr"),mt(3,XZ,5,2,"th",2),ee(),Y(4,"tr"),ft(5,"th",3),ee()(),Y(6,"tbody",4),vt("selectedValueChange",function(s){return i._dateSelected(s)})("activeDateChange",function(s){return i._updateActiveDate(s)})("previewChange",function(s){return i._previewChanged(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),ee()()),2&e&&(ye(3),Pe("ngForOf",i._weekdays),ye(3),Pe("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},dependencies:[zc,mf],encapsulation:2,changeDetection:0}),n})(),TB=(()=>{class n{constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new yt,this.yearSelected=new yt,this.activeDateChange=new yt,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),PB(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cs(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,s=[];r<24;r++)s.push(i+r),4==s.length&&(this._years.push(s.map(o=>this._createCellForYear(o))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value,r=this._dateAdapter.createDate(i,0,1),s=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(s)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),s=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Xx(e,r,r,this._shouldEnableYear(e),s)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,i,r,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new yt,this.monthSelected=new yt,this.activeDateChange=new yt,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cs(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const s=this._getDateFromMonth(i);this.selectedChange.emit(s)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),s=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(r,"year"):void 0;return new Xx(e,i.toLocaleUpperCase(),s,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(s)==e;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>s}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(){this.changes=new b,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vJ=0,yJ=(()=>{class n{constructor(e,i,r,s,o){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=s,this._buttonDescriptionId="mat-calendar-button-"+vJ++,this.calendar.stateChanges.subscribe(()=>o.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-kg(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(s,o)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):PB(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(R(Tg),R(Pn(()=>nk)),R(sr,8),R(Ja,8),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:QZ,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0)(1,"div",1)(2,"button",2),vt("click",function(){return i.currentPeriodClicked()}),Y(3,"span"),ie(4),ee(),ia(),Y(5,"svg",3),ft(6,"polygon",4),ee()(),Yf(),ft(7,"div",5),Vn(8),Y(9,"button",6),vt("click",function(){return i.previousClicked()}),ee(),Y(10,"button",7),vt("click",function(){return i.nextClicked()}),ee()()()),2&e&&(ye(2),Yt("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),ye(1),Yt("id",i._buttonDescriptionId),ye(1),Yn(i.periodButtonText),ye(1),Kt("mat-calendar-invert","month"!==i.calendar.currentView),ye(4),Pe("disabled",!i.previousEnabled()),Yt("aria-label",i.prevButtonLabel),ye(1),Pe("disabled",!i.nextEnabled()),Yt("aria-label",i.nextButtonLabel))},dependencies:[rl],encapsulation:2,changeDetection:0}),n})(),nk=(()=>{class n{constructor(e,i,r,s){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new yt,this.yearSelected=new yt,this.monthSelected=new yt,this.viewChanged=new yt(!0),this._userSelection=new yt,this.stateChanges=new b,this._intlChanges=e.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new sd(this.headerComponent||yJ),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,s=i||r||e.dateFilter;if(s&&!s.firstChange){const o=this._getCurrentViewComponent();o&&(this._changeDetectorRef.detectChanges(),o._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof Os||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(R(Tg),R(sr,8),R(Ja,8),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(Hn(kB,5),Hn(IB,5),Hn(TB,5)),2&e){let r;Dt(r=St())&&(i.monthView=r.first),Dt(r=St())&&(i.yearView=r.first),Dt(r=St())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[kt([xB]),Zt],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&(mt(0,ZZ,0,0,"ng-template",0),Y(1,"div",1),mt(2,JZ,1,8,"mat-month-view",2),mt(3,eJ,1,6,"mat-year-view",3),mt(4,tJ,1,6,"mat-multi-year-view",4),ee()),2&e&&(Pe("cdkPortalOutlet",i._calendarHeaderPortal),ye(1),Pe("ngSwitch",i.currentView),ye(1),Pe("ngSwitchCase","month"),ye(1),Pe("ngSwitchCase","year"),ye(1),Pe("ngSwitchCase","multi-year"))},dependencies:[qu,xm,FF,Kb,kB,IB,TB],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();const OB={transformPanel:To("transformPanel",[or("void => enter-dropdown",_r("120ms cubic-bezier(0, 0, 0.2, 1)",rd([_n({opacity:0,transform:"scale(1, 0.8)"}),_n({opacity:1,transform:"scale(1, 1)"})]))),or("void => enter-dialog",_r("150ms cubic-bezier(0, 0, 0.2, 1)",rd([_n({opacity:0,transform:"scale(0.7)"}),_n({transform:"none",opacity:1})]))),or("* => void",_r("100ms linear",_n({opacity:0})))]),fadeInCalendar:To("fadeInCalendar",[vr("void",_n({opacity:0})),vr("enter",_n({opacity:1})),or("void => *",_r("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let bJ=0;const FB=new lt("mat-datepicker-scroll-strategy"),CJ={provide:FB,deps:[Po],useFactory:function wJ(n){return()=>n.scrollStrategies.reposition()}},DJ=Zl(class{constructor(n){this._elementRef=n}});let SJ=(()=>{class n extends DJ{constructor(e,i,r,s,o,a){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=s,this._rangeSelectionStrategy=o,this._subscriptions=new Me,this._animationDone=new b,this._actionsPortal=null,this._closeButtonText=a.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,s=i instanceof Os;if(s&&this._rangeSelectionStrategy){const o=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(o,this)}else r&&(s||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Xn),R(eu),R(sr),R(V0,8),R(Tg))},n.\u0275cmp=Ct({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&Hn(nk,5),2&e){let r;Dt(r=St())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&fy("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(my("@transformPanel",i._animationState),Kt("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[_t],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){if(1&e&&(Y(0,"div",0)(1,"mat-calendar",1),vt("yearSelected",function(s){return i.datepicker._selectYear(s)})("monthSelected",function(s){return i.datepicker._selectMonth(s)})("viewChanged",function(s){return i.datepicker._viewChanged(s)})("_userSelection",function(s){return i._handleUserSelection(s)}),ee(),mt(2,nJ,0,0,"ng-template",2),Y(3,"button",3),vt("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),ie(4),ee()()),2&e){let r;Kt("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),Yt("aria-modal",!0)("aria-labelledby",null!==(r=i._dialogLabelId)&&void 0!==r?r:void 0),ye(1),Pe("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),ye(1),Pe("cdkPortalOutlet",i._actionsPortal),ye(1),Kt("cdk-visually-hidden",!i._closeButtonFocused),Pe("color",i.color||"primary"),ye(1),Yn(i._closeButtonText)}},dependencies:[Gu,rl,C8,Kb,nk],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[OB.transformPanel,OB.fadeInCalendar]},changeDetection:0}),n})(),B0=(()=>{class n{constructor(e,i,r,s,o,a,c){this._overlay=e,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=a,this._model=c,this._inputStateChanges=Me.EMPTY,this._document=qn(Qt),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new yt,this.monthSelected=new yt,this.viewChanged=new yt(!0),this.openedStream=new yt,this.closedStream=new yt,this._opened=!1,this.id="mat-datepicker-"+bJ++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new b,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Ft(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=Ft(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Ft(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function z5(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}(e)}get opened(){return this._opened}set opened(e){Ft(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof jN&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){var i;this._actionsPortal=e,null===(i=this._componentRef)||void 0===i||i.instance._assignActions(e,!0)}removeActions(e){var i;e===this._actionsPortal&&(this._actionsPortal=null,null===(i=this._componentRef)||void 0===i||i.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=sF(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:r,location:s}=this._componentRef;r._startExitAnimation(),r._animationDone.pipe(Ci(1)).subscribe(()=>{const o=this._document.activeElement;e&&(!o||o===this._document.activeElement||s.nativeElement.contains(o))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(i):i()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new sd(SJ,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new hg({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(s=>{s&&s.preventDefault(),this.close()}),r.keydownEvents().subscribe(s=>{const o=s.keyCode;(38===o||40===o||37===o||39===o||33===o||34===o)&&s.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",s="above"===this.yPosition?"bottom":"top",o="top"===s?"bottom":"top";return e.withPositions([{originX:i,originY:o,overlayX:i,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o}])}_getCloseStream(e){return Ni(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ji(i=>27===i.keyCode&&!va(i)||this.datepickerInput&&va(i,"altKey")&&38===i.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(jt),R(Oi),R(FB),R(sr,8),R(us,8),R(eu))},n.\u0275dir=qe({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Zt]}),n})(),AJ=(()=>{class n extends B0{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[kt([xB,{provide:B0,useExisting:n}]),_t],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})();class H0{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let LB=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new yt,this.dateInput=new yt,this.stateChanges=new b,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Me.EMPTY,this._localeSubscription=Me.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!o||this._matchesFilter(o)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMinDate();return!a||!o||this._dateAdapter.compareDate(a,o)<=0?null:{matDatepickerMin:{min:a,actual:o}}},this._maxValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMaxDate();return!a||!o||this._dateAdapter.compareDate(a,o)>=0?null:{matDatepickerMax:{max:a,actual:o}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=Ft(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new H0(this,this._elementRef.nativeElement)),this.dateChange.emit(new H0(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){NB(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const s=!this._dateAdapter.sameDate(r,this.value);!r||s?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(r),this.dateInput.emit(new H0(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new H0(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Zt]}),n})();function NB(n,t){const e=Object.keys(n);for(let i of e){const{previousValue:r,currentValue:s}=n[i];if(!t.isDateInstance(r)||!t.isDateInstance(s))return!0;if(!t.sameDate(r,s))return!0}return!1}const MJ={provide:fs,useExisting:Pn(()=>ik),multi:!0},EJ={provide:Ir,useExisting:Pn(()=>ik),multi:!0};let ik=(()=>{class n extends LB{constructor(e,i,r,s){super(e,i,r),this._formField=s,this._closedSubscription=Me.EMPTY,this._validator=_g.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(sr,8),R(Ja,8),R(h0,8))},n.\u0275dir=qe({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&vt("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)}),2&e&&(ja("disabled",i.disabled),Yt("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[kt([MJ,EJ,{provide:AV,useExisting:n}]),_t]}),n})(),xJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),kJ=(()=>{class n{constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=Me.EMPTY;const s=Number(r);this.tabIndex=s||0===s?s:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Ft(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:At(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:At(),r=this.datepicker?Ni(this.datepicker.openedStream,this.datepicker.closedStream):At();this._stateChanges.unsubscribe(),this._stateChanges=Ni(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(R(Tg),R(Xn),bs("tabindex"))},n.\u0275cmp=Ct({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,xJ,5),2&e){let s;Dt(s=St())&&(i._customIcon=s.first)}},viewQuery:function(e,i){if(1&e&&Hn(iJ,5),2&e){let r;Dt(r=St())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&vt("click",function(s){return i._open(s)}),2&e&&(Yt("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),Kt("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Zt],ngContentSelectors:oJ,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(Ui(sJ),Y(0,"button",0,1),mt(2,rJ,2,0,"svg",2),Vn(3),ee()),2&e&&(Pe("disabled",i.disabled)("disableRipple",i.disableRipple),Yt("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),ye(2),Pe("ngIf",!i._customIcon))},dependencies:[mr,rl],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),n})();const z0=new lt("MAT_DATE_RANGE_INPUT_PARENT"),VB=qM((()=>{class n extends LB{constructor(e,i,r,s,o,a,c,d){super(i,c,d),this._rangeInput=e,this._elementRef=i,this._defaultErrorStateMatcher=r,this._injector=s,this._parentForm=o,this._parentFormGroup=a,this._dir=qn(us,qt.Optional)}ngOnInit(){const e=this._injector.get(wa,null,qt.Self|qt.Optional);e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e);const i=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==i||i._validatorOnChange()}}return n.\u0275fac=function(e){return new(e||n)(R(z0),R(bt),R(Zu),R(Ii),R(Kc,8),R(Xc,8),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,features:[_t]}),n})());let BB=(()=>{class n extends VB{constructor(e,i,r,s,o,a,c,d){super(e,i,r,s,o,a,c,d),this._startValidator=f=>{const v=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(f.value)),x=this._model?this._model.selection.end:null;return!v||!x||this._dateAdapter.compareDate(v,x)<=0?null:{matStartDateInvalid:{end:x,actual:v}}},this._validator=_g.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||(null!==(i=e.oldValue)&&void 0!==i&&i.start?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const i=new Os(e,this._model.selection.end);this._model.updateSelection(i,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}getMirrorValue(){const e=this._elementRef.nativeElement,i=e.value;return i.length>0?i:e.placeholder}_onKeydown(e){var i;const r=this._rangeInput._endInput,s=this._elementRef.nativeElement,o="rtl"!==(null===(i=this._dir)||void 0===i?void 0:i.value);(39===e.keyCode&&o||37===e.keyCode&&!o)&&s.selectionStart===s.value.length&&s.selectionEnd===s.value.length?(e.preventDefault(),r._elementRef.nativeElement.setSelectionRange(0,0),r.focus()):super._onKeydown(e)}}return n.\u0275fac=function(e){return new(e||n)(R(z0),R(bt),R(Zu),R(Ii),R(Kc,8),R(Xc,8),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(e,i){1&e&&vt("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ja("disabled",i.disabled),Yt("id",i._rangeInput.id)("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[kt([{provide:fs,useExisting:n,multi:!0},{provide:Ir,useExisting:n,multi:!0}]),_t]}),n})(),HB=(()=>{class n extends VB{constructor(e,i,r,s,o,a,c,d){super(e,i,r,s,o,a,c,d),this._endValidator=f=>{const v=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(f.value)),x=this._model?this._model.selection.start:null;return!v||!x||this._dateAdapter.compareDate(v,x)>=0?null:{matEndDateInvalid:{start:x,actual:v}}},this._validator=_g.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||(null!==(i=e.oldValue)&&void 0!==i&&i.end?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const i=new Os(this._model.selection.start,e);this._model.updateSelection(i,this)}}_onKeydown(e){var i;const r=this._rangeInput._startInput,s=this._elementRef.nativeElement,o="rtl"!==(null===(i=this._dir)||void 0===i?void 0:i.value);if(8!==e.keyCode||s.value)if((37===e.keyCode&&o||39===e.keyCode&&!o)&&0===s.selectionStart&&0===s.selectionEnd){e.preventDefault();const a=r._elementRef.nativeElement.value.length;r._elementRef.nativeElement.setSelectionRange(a,a),r.focus()}else super._onKeydown(e);else r.focus()}}return n.\u0275fac=function(e){return new(e||n)(R(z0),R(bt),R(Zu),R(Ii),R(Kc,8),R(Xc,8),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,i){1&e&&vt("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ja("disabled",i.disabled),Yt("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[kt([{provide:fs,useExisting:n,multi:!0},{provide:Ir,useExisting:n,multi:!0}]),_t]}),n})(),TJ=0,PJ=(()=>{class n{constructor(e,i,r,s,o){if(this._changeDetectorRef=e,this._elementRef=i,this._dateAdapter=s,this._formField=o,this._closedSubscription=Me.EMPTY,this.id="mat-date-range-input-"+TJ++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new b,null!=o&&o._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const a=i.nativeElement.classList;a.add("mat-mdc-input-element"),a.add("mat-mdc-form-field-input-control")}this.ngControl=r}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var e,i;const r=(null===(e=this._startInput)||void 0===e?void 0:e._getPlaceholder())||"",s=(null===(i=this._endInput)||void 0===i?void 0:i._getPlaceholder())||"";return r||s?`${r} ${this.separator} ${s}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{var i,r;null===(i=this._startInput)||void 0===i||i._onTouched(),null===(r=this._endInput)||void 0===r||r._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(e){this._required=Ft(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._startInput,r=this._endInput,s=i&&i._matchesFilter(i.value),o=r&&r._matchesFilter(i.value);this._dateFilter=e,i&&i._matchesFilter(i.value)!==s&&i._validatorOnChange(),r&&r._matchesFilter(r.value)!==o&&r._validatorOnChange()}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._revalidate())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const i=Ft(e);i!==this._groupDisabled&&(this._groupDisabled=i,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),i=!!this._endInput&&this._endInput.isEmpty();return e&&i}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),Ni(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){NB(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Xn),R(bt),R(Is,10),R(sr,8),R(h0,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-date-range-input"]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,BB,5),Dn(r,HB,5)),2&e){let s;Dt(s=St())&&(i._startInput=s.first),Dt(s=St())&&(i._endInput=s.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,i){2&e&&(Yt("id",null)("aria-labelledby",i._getAriaLabelledby())("aria-describedby",i._ariaDescribedBy)("data-mat-calendar",i.rangePicker?i.rangePicker.id:null),Kt("mat-date-range-input-hide-placeholders",i._shouldHidePlaceholders())("mat-date-range-input-required",i.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[kt([{provide:Cg,useExisting:n},{provide:z0,useExisting:n}]),Zt],ngContentSelectors:lJ,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(e,i){1&e&&(Ui(aJ),Y(0,"div",0),vt("cdkFocusChange",function(s){return i._updateFocus(s)}),Y(1,"div",1),Vn(2),Y(3,"span",2),ie(4),ee()(),Y(5,"span",3),ie(6),ee(),Y(7,"div",4),Vn(8,1),ee()()),2&e&&(ye(4),Yn(i._getInputMirrorValue()),ye(1),Kt("mat-date-range-input-separator-hidden",i._shouldHideSeparator()),ye(1),Yn(i.separator))},dependencies:[FF],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),n})(),RJ=(()=>{class n extends B0{_forwardContentValues(e){super._forwardContentValues(e);const i=this.datepickerInput;i&&(e.comparisonStart=i.comparisonStart,e.comparisonEnd=i.comparisonEnd)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[kt([fJ,gJ,{provide:B0,useExisting:n}]),_t],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})(),IJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Tg,CJ],imports:[_a,BE,fg,GM,Xb,yn,Kh]}),n})();class OJ{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,i.readOnly=!0,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const t=this._textarea;t&&(t.remove(),this._textarea=void 0)}}let FJ=(()=>{class n{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new OJ(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LJ=new lt("CDK_COPY_TO_CLIPBOARD_CONFIG");let NJ=(()=>{class n{constructor(e,i,r){this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new yt,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let i=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const s=()=>{const o=r.copy();o||!--i||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(o)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(s,1))};s()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(R(FJ),R(jt),R(LJ,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,i){1&e&&vt("click",function(){return i.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),VJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const BJ=["mat-sort-header",""];function HJ(n,t){if(1&n){const e=ii();Y(0,"div",3),vt("@arrowPosition.start",function(){return zt(e),Wt(Qe()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return zt(e),Wt(Qe()._disableViewStateAnimation=!1)}),ft(1,"div",4),Y(2,"div",5),ft(3,"div",6)(4,"div",7)(5,"div",8),ee()()}if(2&n){const e=Qe();Pe("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),ye(2),Pe("@indicator",e._getArrowDirectionState()),ye(1),Pe("@leftPointer",e._getArrowDirectionState()),ye(1),Pe("@rightPointer",e._getArrowDirectionState())}}const zJ=["*"],zB=new lt("MAT_SORT_DEFAULT_OPTIONS"),UJ=O8(Ql(class{}));let rk=(()=>{class n extends UJ{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new b,this.start="asc",this._direction="",this.sortChange=new yt}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ft(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,s;if(!e)return"";const o=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!(null===(s=this._defaultOptions)||void 0===s||!s.disableClear);let a=function jJ(n,t){let e=["asc","desc"];return"desc"==n&&e.reverse(),t||e.push(""),e}(e.start||this.start,o),c=a.indexOf(this.direction)+1;return c>=a.length&&(c=0),a[c]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(R(zB,8))},n.\u0275dir=qe({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:[_t,Zt]}),n})();const tu=P8.ENTERING+" "+T8.STANDARD_CURVE,gf={indicator:To("indicator",[vr("active-asc, asc",_n({transform:"translateY(0px)"})),vr("active-desc, desc",_n({transform:"translateY(10px)"})),or("active-asc <=> active-desc",_r(tu))]),leftPointer:To("leftPointer",[vr("active-asc, asc",_n({transform:"rotate(-45deg)"})),vr("active-desc, desc",_n({transform:"rotate(45deg)"})),or("active-asc <=> active-desc",_r(tu))]),rightPointer:To("rightPointer",[vr("active-asc, asc",_n({transform:"rotate(45deg)"})),vr("active-desc, desc",_n({transform:"rotate(-45deg)"})),or("active-asc <=> active-desc",_r(tu))]),arrowOpacity:To("arrowOpacity",[vr("desc-to-active, asc-to-active, active",_n({opacity:1})),vr("desc-to-hint, asc-to-hint, hint",_n({opacity:.54})),vr("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",_n({opacity:0})),or("* => asc, * => desc, * => active, * => hint, * => void",_r("0ms")),or("* <=> *",_r(tu))]),arrowPosition:To("arrowPosition",[or("* => desc-to-hint, * => desc-to-active",_r(tu,rd([_n({transform:"translateY(-25%)"}),_n({transform:"translateY(0)"})]))),or("* => hint-to-desc, * => active-to-desc",_r(tu,rd([_n({transform:"translateY(0)"}),_n({transform:"translateY(25%)"})]))),or("* => asc-to-hint, * => asc-to-active",_r(tu,rd([_n({transform:"translateY(25%)"}),_n({transform:"translateY(0)"})]))),or("* => hint-to-asc, * => active-to-asc",_r(tu,rd([_n({transform:"translateY(0)"}),_n({transform:"translateY(-25%)"})]))),vr("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",_n({transform:"translateY(0)"})),vr("hint-to-desc, active-to-desc, desc",_n({transform:"translateY(-25%)"})),vr("hint-to-asc, active-to-asc, asc",_n({transform:"translateY(25%)"}))]),allowChildren:To("allowChildren",[or("* <=> *",[nK("@*",tK(),{optional:!0})])])};let U0=(()=>{class n{constructor(){this.changes=new b}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WJ={provide:U0,deps:[[new Cs,new Co,U0]],useFactory:function $J(n){return n||new U0}},GJ=Ql(class{});let qJ=(()=>{class n extends GJ{constructor(e,i,r,s,o,a,c,d){super(),this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=s,this._focusMonitor=o,this._elementRef=a,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=d&&d.arrowPosition&&(this.arrowPosition=null==d?void 0:d.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ft(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=Ni(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)(R(U0),R(Xn),R(rk,8),R("MAT_SORT_HEADER_COLUMN_DEF",8),R(ya),R(bt),R(HM,8),R(zB,8))},n.\u0275cmp=Ct({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&vt("click",function(){return i._handleClick()})("keydown",function(s){return i._handleKeydown(s)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(Yt("aria-sort",i._getAriaSortAttribute()),Kt("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:[_t],attrs:BJ,ngContentSelectors:zJ,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&&(Ui(),Y(0,"div",0)(1,"div",1),Vn(2),ee(),mt(3,HJ,6,6,"div",2),ee()),2&e&&(Kt("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"===i.arrowPosition),Yt("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),ye(3),Pe("ngIf",i._renderArrow()))},dependencies:[mr],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:[gf.indicator,gf.leftPointer,gf.rightPointer,gf.arrowOpacity,gf.arrowPosition,gf.allowChildren]},changeDetection:0}),n})(),YJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[WJ],imports:[_a,yn]}),n})();const Yr=void 0,XJ=["de",[["AM","PM"],Yr,Yr],Yr,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],Yr,Yr],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",Yr,"{1} 'um' {0}",Yr],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[Yr,"\u0440."],CUC:[Yr,"Cub$"],DEM:["DM"],FKP:[Yr,"Fl\xa3"],GHS:[Yr,"\u20b5"],GNF:[Yr,"F.G."],KMF:[Yr,"FC"],PHP:[Yr,"\u20b1"],RON:[Yr,"L"],RUR:[Yr,"\u0440."],RWF:[Yr,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[Yr,"K"]},"ltr",function KJ(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];var UB={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};function _f(n){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.width?String(t.width):n.defaultWidth,i=n.formats[e]||n.formats[n.defaultWidth];return i}}var nee={date:_f({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:_f({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:_f({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ree={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};function ll(n){return function(t,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&n.formattingValues){var s=n.defaultFormattingWidth||n.defaultWidth,o=null!=e&&e.width?String(e.width):s;r=n.formattingValues[o]||n.formattingValues[s]}else{var a=n.defaultWidth,c=null!=e&&e.width?String(e.width):n.defaultWidth;r=n.values[c]||n.values[a]}return r[n.argumentCallback?n.argumentCallback(t):t]}}var sk={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},cee={narrow:sk.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:sk.wide};function cl(n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],s=t.match(r);if(!s)return null;var d,o=s[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],c=Array.isArray(a)?_ee(a,function(v){return v.test(o)}):gee(a,function(v){return v.test(o)});d=n.valueCallback?n.valueCallback(c):c,d=e.valueCallback?e.valueCallback(d):d;var f=t.slice(o.length);return{value:d,rest:f}}}function gee(n,t){for(var e in n)if(n.hasOwnProperty(e)&&t(n[e]))return e}function _ee(n,t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(n.matchPattern);if(!i)return null;var r=i[0],s=t.match(n.parsePattern);if(!s)return null;var o=n.valueCallback?n.valueCallback(s[0]):s[0];o=e.valueCallback?e.valueCallback(o):o;var a=t.slice(r.length);return{value:o,rest:a}}}const Ree={code:"de",formatDistance:function(t,e,i){var r,s=null!=i&&i.addSuffix?UB[t].withPreposition:UB[t].standalone;return r="string"==typeof s?s:1===e?s.one:s.other.replace("{{count}}",String(e)),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:"vor "+r:r},formatLong:nee,formatRelative:function(t,e,i,r){return ree[t]},localize:{ordinalNumber:function(t){return Number(t)+"."},era:ll({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ll({values:sk,formattingValues:cee,defaultWidth:"wide"}),day:ll({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:ll({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:jB({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t)}}),era:cl({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[a\xe4]n|feb|m\xe4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|m\xe4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[a\xe4]/i,/^f/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cl({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cl({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function Iee(n,t){if(1&n){const e=ii();Y(0,"div",2)(1,"button",3),vt("click",function(){return zt(e),Wt(Qe().action())}),ie(2),ee()()}if(2&n){const e=Qe();ye(2),Yn(e.data.action)}}function Oee(n,t){}const $B=new lt("MatSnackBarData");class j0{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Fee=Math.pow(2,31)-1;class ok{constructor(t,e){this._overlayRef=e,this._afterDismissed=new b,this._afterOpened=new b,this._onAction=new b,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Fee))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let Lee=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(R(ok),R($B))},n.\u0275cmp=Ct({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(Y(0,"span",0),ie(1),ee(),mt(2,Iee,3,1,"div",1)),2&e&&(ye(1),Yn(i.data.message),ye(1),Pe("ngIf",i.hasAction))},dependencies:[mr,rl],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const Nee={snackBarState:To("state",[vr("void, hidden",_n({transform:"scale(0.8)",opacity:0})),vr("visible",_n({transform:"scale(1)",opacity:1})),or("* => visible",_r("150ms cubic-bezier(0, 0, 0.2, 1)")),or("* => void, * => hidden",_r("75ms cubic-bezier(0.4, 0.0, 1, 1)",_n({opacity:0})))])};let Vee=(()=>{class n extends UE{constructor(e,i,r,s,o){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=s,this.snackBarConfig=o,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new b,this._onExit=new b,this._onEnter=new b,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},this._live="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Ci(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(R(jt),R(bt),R(Xn),R(Zi),R(j0))},n.\u0275dir=qe({type:n,viewQuery:function(e,i){if(1&e&&Hn(Kb,7),2&e){let r;Dt(r=St())&&(i._portalOutlet=r.first)}},features:[_t]}),n})(),Bee=(()=>{class n extends Vee{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&fy("@state.done",function(s){return i.onAnimationEnd(s)}),2&e&&my("@state",i._animationState)},features:[_t],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(Y(0,"div",0),mt(1,Oee,0,0,"ng-template",1),ee(),ft(2,"div")),2&e&&(ye(2),Yt("aria-live",i._live)("role",i._role))},dependencies:[Kb],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Nee.snackBarState]}}),n})(),WB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[fg,Xb,_a,BE,yn,yn]}),n})();const GB=new lt("mat-snack-bar-default-options",{providedIn:"root",factory:function Hee(){return new j0}});let zee=(()=>{class n{constructor(e,i,r,s,o,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=s,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const s=Object.assign(Object.assign({},this._defaultConfig),r);return s.data={message:e,action:i},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const s=Ii.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:j0,useValue:i}]}),o=new sd(this.snackBarContainerComponent,i.viewContainerRef,s),a=e.attach(o);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r=Object.assign(Object.assign(Object.assign({},new j0),this._defaultConfig),i),s=this._createOverlay(r),o=this._attachSnackBarContainer(s,r),a=new ok(o,s);if(e instanceof fr){const c=new Yb(e,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(c)}else{const c=this._createInjector(r,a),d=new sd(e,void 0,c),f=o.attachComponentPortal(d);a.instance=f.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ot(s.detachments())).subscribe(c=>{s.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new hg;i.direction=e.direction;let r=this._overlay.position().global();const s="rtl"===e.direction,o="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!s||"end"===e.horizontalPosition&&s,a=!o&&"center"!==e.horizontalPosition;return o?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Ii.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ok,useValue:i},{provide:$B,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(Re(Po),Re(OF),Re(Ii),Re(jc),Re(n,12),Re(GB))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Uee=(()=>{class n extends zee{constructor(e,i,r,s,o,a){super(e,i,r,s,o,a),this.simpleSnackBarComponent=Lee,this.snackBarContainerComponent=Bee,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(Re(Po),Re(OF),Re(Ii),Re(jc),Re(n,12),Re(GB))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:WB}),n})(),jee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn,yn]}),n})(),$ee=0;const Wee=Ql(class{}),qB="mat-badge-content";let Gee=(()=>{class n extends Wee{constructor(e,i,r,s,o){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=s,this._animationMode=o,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=$ee++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ft(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ft(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(qB),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${null!=e?e:""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${qB}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(R(jt),R(bt),R(HM),R(Us),R(Ts,8))},n.\u0275dir=qe({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&Kt("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[_t]}),n})(),qee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[GM,yn,yn]}),n})();const Yee=["tooltip"],YB="tooltip-panel",KB=Ku({passive:!0}),XB=new lt("mat-tooltip-scroll-strategy"),Zee={provide:XB,deps:[Po],useFactory:function Qee(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Jee=new lt("mat-tooltip-default-options",{providedIn:"root",factory:function ete(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let tte=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f,v,x,B){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=c,this._focusMonitor=d,this._dir=v,this._defaultOptions=x,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 b,this._scrollStrategy=f,this._document=B,x&&(x.position&&(this.position=x.position),x.touchGestures&&(this.touchGestures=x.touchGestures)),v.change.pipe(Ot(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=Ft(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Gr(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Gr(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(Ot(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,KB)}),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 sd(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=r.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.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(Ot(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${YB}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ot(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ot(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!va(s)&&(s.preventDefault(),s.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(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.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:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_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:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Ci(1),Ot(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:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const c=`${this._cssClassPrefix}-${YB}-`;a.removePanelClass(c+this._currentPosition),a.addPanelClass(c+o)}this._currentPosition=o}}_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 s=i.relatedTarget;(!s||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(s))&&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,KB)})}_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){Vl()},n.\u0275dir=qe({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})(),nte=(()=>{class n extends tte{constructor(e,i,r,s,o,a,c,d,f,v,x,B){super(e,i,r,s,o,a,c,d,f,v,x,B),this._tooltipComponent=rte}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(bt),R(Nm),R(Oi),R(jt),R(Zi),R(HM),R(ya),R(XB),R(us,8),R(Jee,8),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[_t]}),n})(),ite=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new b,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,s=this._hideAnimation;if(i.classList.remove(e?s:r),i.classList.add(e?r:s),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.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)(R(Xn),R(Ts,8))},n.\u0275dir=qe({type:n}),n})(),rte=(()=>{class n extends ite{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)(R(Xn),R(jc),R(Ts,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Hn(Yee,7),2&e){let r;Dt(r=St())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&vt("mouseleave",function(s){return i._handleMouseLeave(s)}),2&e&&js("zoom",i.isVisible()?1:null)},features:[_t],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(Y(0,"div",0,1),vt("animationend",function(s){return i._handleAnimationEnd(s)}),ui(2,"async"),ie(3),ee()),2&e){let r;Kt("mat-tooltip-handset",null==(r=wi(2,4,i._isHandset))?null:r.matches),Pe("ngClass",i.tooltipClass),ye(3),Yn(i.message)}},dependencies:[Gu,Ga],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})(),ste=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Zee],imports:[GM,_a,fg,yn,yn,Kh]}),n})();const ote=["sliderWrapper"];function ate(n,t){1&n&&ft(0,"div",15),2&n&&Pe("ngStyle",Qe()._trackBackgroundStylesLeft)}function lte(n,t){if(1&n&&(Y(0,"div",8,16),ft(2,"div",10)(3,"div",17),Y(4,"div",12)(5,"span",13),ie(6),ee()()()),2&n){const e=Qe();Pe("ngStyle",e._thumbContainerStylesRight),ye(6),Yn(e.displayValueRight)}}const cte=function(n){return{"mtx-range-slider-fill":n}},ul=Ku({passive:!1}),pte={provide:fs,useExisting:Pn(()=>QB),multi:!0};class mte{}const gte=Ym(Zl(Ql(class{constructor(n){this._elementRef=n}}),"accent"));let QB=(()=>{class n extends gte{constructor(e,i,r,s,o,a,c){super(e),this._focusMonitor=i,this._changeDetectorRef=r,this._dir=s,this._animationMode=a,this._ngZone=c,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new yt,this.input=new yt,this.valueChange=new yt,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=Me.EMPTY,this._currentSliderDir="l",this._pointerDown=d=>{this.disabled||this._isSliding||!ak(d)&&0!==d.button||(this.calculateInitialSlideDirection(d),this._runInsideZone(()=>{const f=this.value,v=$0(d);this._isSliding=!0,d.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(d),this._focusHostElement(),this.value instanceof Array?"l"===this._currentSliderDir?this._updateValueFromPositionLeft(v):"r"===this._currentSliderDir&&this._updateValueFromPositionRight(v):this._updateValueFromPositionLeft(v),this._valueOnSlideStart=this.value,this._pointerPositionOnStart=v,f!==this.value&&(this._emitInputEvent(),this._emitChangeEvent())}))},this._pointerMove=d=>{if(this._isSliding){this.calculateInitialSlideDirection(d),d.preventDefault();const f=this.value,v=$0(d);"l"===this._currentSliderDir?this._updateValueFromPositionLeft(v):"r"===this._currentSliderDir?this._updateValueFromPositionRight(v):this.isRangeSlider()||this._updateValueFromPositionLeft(v),f!==this.value&&this._emitInputEvent()}},this._pointerUp=d=>{if(this._isSliding){const f=this._pointerPositionOnStart,v=$0(d);d.preventDefault(),this._removeGlobalEvents(),this._valueOnSlideStart=this._pointerPositionOnStart=null,this._isSliding=!1,this._valueOnSlideStart!==this.value&&!this.disabled&&f&&(f.x!==v.x||f.y!==v.y)&&this._emitChangeEvent()}},this.tabIndex=parseInt(o,10)||0,this._runOutsizeZone(()=>{const d=e.nativeElement;d.addEventListener("mousedown",this._pointerDown,ul),d.addEventListener("touchstart",this._pointerDown,ul)})}get invert(){return this._invert}set invert(e){this._invert=Ft(e)}get max(){return this._max}set max(e){this._max=Gr(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(e){this._min=Gr(e,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(e){this._step=Gr(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(e){this._thumbLabel=Ft(e)}get tickInterval(){return this._tickInterval}set tickInterval(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?Gr(e,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(e){if(e!==this._value||e instanceof Array&&null!=this._value&&(e[0]!==this._value[0]||e[1]!==this._value[1])){let i=null;e instanceof Array?(i=[Gr(e[0]),Gr(e[1])],i=[Math.min(i[0],i[1]),Math.max(i[1],i[0])]):i=Gr(e),this._roundToDecimal&&(i=e instanceof Array?[parseFloat(i[0].toFixed(this._roundToDecimal)),parseFloat(i[1].toFixed(this._roundToDecimal))]:parseFloat(Number(i).toFixed(this._roundToDecimal))),this._value=i,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(e){this._vertical=Ft(e)}get displayValue(){if(null==this.value)return"";if(this.displayWith)return this.displayWith(this.value instanceof Array?this.value[0]:this.value);if(this.value instanceof Array){if(this._roundToDecimal&&this.value&&(this.value[0]%1!=0||this.value[1]%1!=0))return this.value[0].toFixed(this._roundToDecimal)}else if(this._roundToDecimal&&this.value&&this.value%1!=0)return this.value.toFixed(this._roundToDecimal);return this.value instanceof Array?this.value[0]||0:this.value||0}get displayValueRight(){return null==this.value?"":this.displayWith?this.displayWith(this.value[1]):this._roundToDecimal&&this.value&&null!=this.value&&this.value[1]%1!=0?this.value[1].toFixed(this._roundToDecimal):this.value[1]||0}focus(){this._focusHostElement()}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}get _invertAxis(){return this.vertical?!this.invert:this.invert}get _isMinValue(){return this.value instanceof Array?0===this.percent[0]:0===this.percent}get _thumbGap(){return this.disabled?0:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0}get _trackBackgroundStylesLeft(){let i="";return i=this.percent instanceof Array?this.vertical?`1, ${this.percent[0]}, 1`:`${this.percent[0]}, 1, 1`:this.vertical?`1, ${this.percent}, 1`:`${this.percent}, 1, 1`,{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._thumbGap}px) scale3d(${i})`}}get _trackBackgroundStylesRight(){let i="";return i=this.percent instanceof Array?this.vertical?`1, ${1-this.percent[1]}, 1`:1-this.percent[1]+", 1, 1":this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1",{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._thumbGap}px) scale3d(${i})`}}get _trackFillStyles(){const e=this.vertical?"Y":"X";let i="";i=this.percent instanceof Array?this.vertical?`1, ${this.percent[1]-this.percent[0]}, 1`:this.percent[1]-this.percent[0]+", 1, 1":this.vertical?`1, ${this.percent}, 1`:`${this.percent}, 1, 1`;const r="rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis;let s=0;s=this.percent instanceof Array?100*(r?1-this.percent[1]:this.percent[0]):0;const o=this._shouldInvertMouseCoords()?"":"-";return this.isRangeSlider()?{transform:`translate${e}(${s}%) scale3d(${i})`}:{transform:`translate${e}(${o}${this._thumbGap}px) scale3d(${i})`}}get _ticksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!==this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}get _ticksStyles(){const e=100*this._tickIntervalPercent,a={backgroundSize:this.vertical?`2px ${e}%`:`${e}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!==this._getDirection()?"":"-"}${e/2}%)${this.vertical||"rtl"!==this._getDirection()?"":" rotate(180deg)"}`};return this._isMinValue&&this._thumbGap&&(a["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=`${this._thumbGap}px`),a}get _thumbContainerStylesLeft(){const e=this.vertical?"Y":"X",i="rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis;let r=0;return r=this.percent instanceof Array?100*(i?this.percent[0]:1-this.percent[0]):100*(i?this.percent:1-this.percent),{transform:`translate${e}(-${r}%)`}}get _thumbContainerStylesRight(){const e=this.vertical?"Y":"X",i="rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis;let r=0;return r=this.percent instanceof Array?100*(i?this.percent[1]:1-this.percent[1]):100*(i?this.percent:1-this.percent),{transform:`translate${e}(-${r}%)`}}_shouldInvertMouseCoords(){return"rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis}_getDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}ngOnInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{this._isActive=!!e&&"keyboard"!==e,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,ul),e.removeEventListener("touchstart",this._pointerDown,ul),this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onClick(e){if(this.disabled)return;let i;if(i=this.value instanceof Array?[this.value[0],this.value[1]]:this.value,this._isSliding=!1,this._focusHostElement(),!this._sliderDimensions)return;let a=Number(this._clamp(((this.vertical?e.clientY:e.clientX)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width)));this._shouldInvertMouseCoords()&&(a=1-a),this._currentSliderDir=a<=this.percent[0]+(this.percent[1]-this.percent[0])/2?"l":"r","l"===this._currentSliderDir?this._updateValueFromPositionLeft({x:e.clientX,y:e.clientY}):this._updateValueFromPositionRight({x:e.clientX,y:e.clientY}),this.value instanceof Array?(i[0]!==this.value[0]||i[1]!==this.value[1])&&(this._emitInputEvent(),this._emitChangeEvent()):i!==this.value&&(this._emitInputEvent(),this._emitChangeEvent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(e){if(this.disabled)return;let i;switch(i=this.value instanceof Array?[this.value[0],this.value[1]]:this.value,e.keyCode){case 33:this._increment(10);break;case 34:this._increment(-10);break;case 35:this.value=this.max;break;case 36:this.value=this.min;break;case 37:this._increment("rtl"===this._getDirection()?1:-1);break;case 38:this._increment(1);break;case 39:this._increment("rtl"===this._getDirection()?-1:1);break;case 40:this._increment(-1);break;default:return}this.value instanceof Array?(i[0]!==this.value[0]||i[1]!==this.value[1])&&(this._emitInputEvent(),this._emitChangeEvent()):i!==this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,e.preventDefault()}_onKeyup(){this._isSliding=!1}_bindGlobalEvents(e){if("undefined"!=typeof document&&document){const i=ak(e),s=i?"touchend":"mouseup";document.body.addEventListener(i?"touchmove":"mousemove",this._pointerMove,ul),document.body.addEventListener(s,this._pointerUp,ul)}}_removeGlobalEvents(){"undefined"!=typeof document&&document&&(document.body.removeEventListener("mousemove",this._pointerMove,ul),document.body.removeEventListener("mouseup",this._pointerUp,ul),document.body.removeEventListener("touchmove",this._pointerMove,ul),document.body.removeEventListener("touchend",this._pointerUp,ul))}_increment(e){this.value=this._clamp(this.value instanceof Array?[(this.value[0]||0)+this.step*e,(this.value[1]||0)+this.step*e]:(this.value||0)+this.step*e,this.min,this.max)}_updateValueFromPosition(e){if(!this._sliderDimensions)return;let o=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.min;else if(1===o)this.value=this.max;else{const a=this._calculateValue(o),c=Math.round((a-this.min)/this.step)*this.step+this.min;this.value=this._clamp(c,this.min,this.max)}}_updateValueFromPositionLeft(e){if(!this._sliderDimensions)return;let o=Number(this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width)));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.value instanceof Array?[this.min,this.value[1]]:this.min;else if(1===o)this.value=this.value instanceof Array?[this.max,this.value[1]]:this.max;else{const a=this._calculateValue(o),c=Math.round((Number(a)-this.min)/this.step)*this.step+this.min;this.value=this.value instanceof Array?[Number(this._clamp(c,this.min,this.max)),this.value[1]]:this._clamp(c,this.min,this.max)}}_updateValueFromPositionRight(e){if(!this._sliderDimensions)return;let o=Number(this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width)));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.value instanceof Array?[this.value[0],this.min]:this.min;else if(1===o)this.value=this.value instanceof Array?[this.value[0],this.max]:this.max;else{const a=this._calculateValue(o),c=Math.round((Number(a)-this.min)/this.step)*this.step+this.min;this.value=this.value instanceof Array?[this.value[0],Number(this._clamp(c,this.min,this.max))]:this._clamp(c,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"===this.tickInterval){const e=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,s=Math.ceil(30/(e*this.step/(this.max-this.min)))*this.step;this._tickIntervalPercent=s/e}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(e=this.value){const i=new mte;return i.source=this,i.value=e,i}_calculatePercentage(e){return e instanceof Array?[((e[0]||0)-this.min)/(this.max-this.min),((e[1]||0)-this.min)/(this.max-this.min)]:((e||0)-this.min)/(this.max-this.min)}_calculateValue(e){return e instanceof Array?[this.min+e[0]*(this.max-this.min),this.min+e[1]*(this.max-this.min)]:this.min+e*(this.max-this.min)}_clamp(e,i=0,r=1){return e instanceof Array?[Math.max(i,Math.min(e[0],r)),Math.max(i,Math.min(e[1],r))]:Math.max(i,Math.min(e,r))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(){this._elementRef.nativeElement.focus()}_blurHostElement(){this._elementRef.nativeElement.blur()}_runOutsizeZone(e){this._ngZone?this._ngZone.runOutsideAngular(e):e()}_runInsideZone(e){this._ngZone?this._ngZone.run(e):e()}writeValue(e){this.value=e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}isRangeSlider(){return this.value instanceof Array}calculateInitialSlideDirection(e){if(!this._sliderDimensions)return;const i=this.vertical?this._sliderDimensions.top:this._sliderDimensions.left,r=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,s=$0(e);let a=Number(this._clamp(((this.vertical?s.y:s.x)-i)/r));this._shouldInvertMouseCoords()&&(a=1-a),this._currentSliderDir=a<=this.percent[0]+(this.percent[1]-this.percent[0])/2?"l":"r"}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(ya),R(Xn),R(us,8),bs("tabindex"),R(Ts,8),R(jt))},n.\u0275cmp=Ct({type:n,selectors:[["mtx-slider"]],viewQuery:function(e,i){if(1&e&&Hn(ote,5),2&e){let r;Dt(r=St())&&(i._sliderWrapper=r.first)}},hostAttrs:["role","slider",1,"mtx-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()})("click",function(s){return i._onClick(s)})("keydown",function(s){return i._onKeydown(s)})("keyup",function(){return i._onKeyup()})("mouseenter",function(){return i._onMouseenter()})("selectstart",function(s){return s.preventDefault()}),2&e&&(ja("tabIndex",i.tabIndex),Yt("aria-disabled",i.disabled)("aria-valuemax",i.max)("aria-valuemin",i.min)("aria-valuenow",i.value)("aria-valuetext",null==i.valueText?i.displayValue:i.valueText)("aria-orientation",i.vertical?"vertical":"horizontal"),Kt("mtx-slider-disabled",i.disabled)("mtx-slider-has-ticks",i.tickInterval)("mtx-slider-horizontal",!i.vertical)("mtx-slider-axis-inverted",i._invertAxis)("mtx-slider-sliding",i._isSliding)("mtx-slider-thumb-label-showing",i.thumbLabel)("mtx-slider-vertical",i.vertical)("mtx-slider-min-value",i._isMinValue)("mtx-range-slider",i.isRangeSlider())("mtx-slider-hide-last-tick",i.disabled||i._isMinValue&&i._thumbGap&&i._invertAxis)("_mtx-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["mtxSlider"],features:[kt([pte]),_t],decls:16,vars:11,consts:[[1,"mtx-slider-wrapper"],["sliderWrapper",""],[1,"mtx-slider-track-wrapper"],["class","mtx-slider-track-background mtx-slider-track-background-left",3,"ngStyle",4,"ngIf"],[1,"mtx-slider-track-background","mtx-slider-track-background-right",3,"ngStyle"],[1,"mtx-slider-track-fill",3,"ngClass","ngStyle"],[1,"mtx-slider-ticks-container",3,"ngStyle"],[1,"mtx-slider-ticks",3,"ngStyle"],[1,"mtx-slider-thumb-container",3,"ngStyle"],["leftSlider",""],[1,"mtx-slider-focus-ring"],[1,"mtx-slider-thumb","left"],[1,"mtx-slider-thumb-label"],[1,"mtx-slider-thumb-label-text"],["class","mtx-slider-thumb-container",3,"ngStyle",4,"ngIf"],[1,"mtx-slider-track-background","mtx-slider-track-background-left",3,"ngStyle"],["rightSlider",""],[1,"mtx-slider-thumb","right"]],template:function(e,i){1&e&&(Y(0,"div",0,1)(2,"div",2),mt(3,ate,1,1,"div",3),ft(4,"div",4)(5,"div",5),ee(),Y(6,"div",6),ft(7,"div",7),ee(),Y(8,"div",8,9),ft(10,"div",10)(11,"div",11),Y(12,"div",12)(13,"span",13),ie(14),ee()()(),mt(15,lte,7,2,"div",14),ee()),2&e&&(ye(3),Pe("ngIf",i.isRangeSlider()),ye(1),Pe("ngStyle",i._trackBackgroundStylesRight),ye(1),Pe("ngClass",wy(9,cte,i.isRangeSlider()))("ngStyle",i._trackFillStyles),ye(1),Pe("ngStyle",i._ticksContainerStyles),ye(1),Pe("ngStyle",i._ticksStyles),ye(1),Pe("ngStyle",i._thumbContainerStylesLeft),ye(6),Yn(i.displayValue),ye(1),Pe("ngIf",i.isRangeSlider()))},dependencies:[Gu,mr,MO],styles:['.mtx-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mtx-slider:not(.mtx-slider-disabled):active,.mtx-slider.mtx-slider-sliding:not(.mtx-slider-disabled){cursor:grabbing}.mtx-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact;position:absolute}.mtx-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mtx-slider-track-fill,.mtx-slider-track-background-left{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-track-background-right{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mtx-slider-ticks{-webkit-background-clip:content-box;background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider.cdk-keyboard-focused .mtx-slider-focus-ring,.mtx-slider.cdk-program-focused .mtx-slider-focus-ring{transform:scale(1);opacity:1}.mtx-slider:not(.mtx-slider-disabled,.mtx-slider-sliding) .mtx-slider-thumb-label,.mtx-slider:not(.mtx-slider-disabled,.mtx-slider-sliding) .mtx-slider-thumb{cursor:grab}.mtx-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.cdk-high-contrast-active .mtx-slider-thumb-label{outline:solid 1px}.mtx-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-sliding .mtx-slider-track-fill,.mtx-slider-sliding .mtx-slider-track-background-left,.mtx-slider-sliding .mtx-slider-track-background-right,.mtx-slider-sliding .mtx-slider-thumb-container{transition-duration:0ms}.mtx-slider-has-ticks .mtx-slider-wrapper:after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-has-ticks.cdk-focused:not(.mtx-slider-hide-last-tick) .mtx-slider-wrapper:after,.mtx-slider-has-ticks:hover:not(.mtx-slider-hide-last-tick) .mtx-slider-wrapper:after{opacity:1}.mtx-slider-has-ticks.cdk-focused:not(.mtx-slider-disabled) .mtx-slider-ticks,.mtx-slider-has-ticks:hover:not(.mtx-slider-disabled) .mtx-slider-ticks{opacity:1}.mtx-slider-thumb-label-showing .mtx-slider-focus-ring{display:none}.mtx-slider-thumb-label-showing .mtx-slider-thumb-label{display:flex}.mtx-slider-axis-inverted .mtx-slider-track-fill{transform-origin:100% 100%}.mtx-slider-axis-inverted .mtx-slider-track-fill.mtx-range-slider-fill{transform-origin:0 0}.mtx-slider-axis-inverted .mtx-slider-track-background-left{transform-origin:100% 100%}.mtx-slider-axis-inverted .mtx-slider-track-background-right{transform-origin:0 0}.mtx-slider:not(.mtx-slider-disabled).cdk-focused.mtx-slider-thumb-label-showing .mtx-slider-thumb{transform:scale(0)}.mtx-slider:not(.mtx-slider-disabled).cdk-focused .mtx-slider-thumb-label{border-radius:50% 50% 0}.mtx-slider:not(.mtx-slider-disabled).cdk-focused .mtx-slider-thumb-label-text{opacity:1}.mtx-slider:not(.mtx-slider-disabled).cdk-mouse-focused .mtx-slider-thumb,.mtx-slider:not(.mtx-slider-disabled).cdk-touch-focused .mtx-slider-thumb,.mtx-slider:not(.mtx-slider-disabled).cdk-program-focused .mtx-slider-thumb{border-width:2px;transform:scale(1)}.mtx-slider-disabled .mtx-slider-focus-ring{transform:scale(0);opacity:0}.mtx-slider-disabled .mtx-slider-thumb{border-width:4px;transform:scale(.5)}.mtx-slider-disabled .mtx-slider-thumb-label{display:none}.mtx-slider-horizontal{height:48px;min-width:128px}.mtx-slider-horizontal .mtx-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mtx-slider-horizontal .mtx-slider-wrapper:after{height:2px;border-left-width:2px;right:0;top:0}.mtx-slider-horizontal .mtx-slider-track-wrapper{height:2px;width:100%}.mtx-slider-horizontal .mtx-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mtx-slider-horizontal .mtx-slider-track-background-left,.mtx-slider-horizontal .mtx-slider-track-background-right{height:2px;width:100%;transform:scaleX(1)}.mtx-slider-horizontal .mtx-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mtx-slider-horizontal .mtx-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mtx-slider-horizontal .mtx-slider-ticks{height:2px;width:100%}.mtx-slider-horizontal .mtx-slider-thumb-container{width:100%;height:0;top:50%}.mtx-slider-horizontal .mtx-slider-focus-ring{top:-15px;right:-15px}.mtx-slider-horizontal .mtx-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mtx-slider-horizontal .mtx-slider-thumb-label-text{transform:rotate(-45deg)}.mtx-slider-horizontal.cdk-focused .mtx-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mtx-slider-horizontal.cdk-focused .mtx-slider-thumb-label,.cdk-high-contrast-active .mtx-slider-horizontal.cdk-focused .mtx-slider-thumb-label-text{transform:none}.mtx-slider-vertical{width:48px;min-height:128px}.mtx-slider-vertical .mtx-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mtx-slider-vertical .mtx-slider-wrapper:after{width:2px;border-top-width:2px;bottom:0;left:0}.mtx-slider-vertical .mtx-slider-track-wrapper{height:100%;width:2px}.mtx-slider-vertical .mtx-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mtx-slider-vertical .mtx-slider-track-background-left,.mtx-slider-vertical .mtx-slider-track-background-right{height:100%;width:2px;transform:scaleY(1)}.mtx-slider-vertical .mtx-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mtx-slider-vertical .mtx-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mtx-slider-vertical .mtx-slider-focus-ring{bottom:-15px;left:-15px}.mtx-slider-vertical .mtx-slider-ticks{width:2px;height:100%}.mtx-slider-vertical .mtx-slider-thumb-container{height:100%;width:0;left:50%}.mtx-slider-vertical .mtx-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mtx-slider-vertical .mtx-slider-thumb-label{bottom:-14px;left:-40px;transform:translate(26px) scale(.01) rotate(-45deg)}.mtx-slider-vertical .mtx-slider-thumb-label-text{transform:rotate(45deg)}.mtx-slider-vertical.cdk-focused .mtx-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mtx-slider-wrapper:after{left:0;right:auto}[dir=rtl] .mtx-slider-horizontal .mtx-slider-track-fill:not(.mtx-range-slider-fill){transform-origin:100% 100%}[dir=rtl] .mtx-slider-horizontal .mtx-slider-track-background-left{transform-origin:100% 100%}[dir=rtl] .mtx-slider-horizontal .mtx-slider-track-background-right,[dir=rtl] .mtx-slider-horizontal.mtx-slider-axis-inverted .mtx-slider-track-fill,[dir=rtl] .mtx-slider-horizontal.mtx-slider-axis-inverted .mtx-slider-track-background-left{transform-origin:0 0}[dir=rtl] .mtx-slider-horizontal.mtx-slider-axis-inverted .mtx-slider-track-background-right{transform-origin:100% 100%}.mtx-slider._mtx-animation-noopable .mtx-slider-track-fill,.mtx-slider._mtx-animation-noopable .mtx-slider-track-background-left,.mtx-slider._mtx-animation-noopable .mtx-slider-track-background-right,.mtx-slider._mtx-animation-noopable .mtx-slider-ticks,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb-container,.mtx-slider._mtx-animation-noopable .mtx-slider-focus-ring,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb-label,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb-label-text,.mtx-slider._mtx-animation-noopable .mtx-slider-has-ticks .mtx-slider-wrapper:after{transition:none}\n'],encapsulation:2,changeDetection:0}),n})();function ak(n){return"t"===n.type[0]}function $0(n){const t=ak(n)?n.touches[0]||n.changedTouches[0]:n;return{x:t.clientX,y:t.clientY}}let _te=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[_a,yn,yn]}),n})();const vte=["input"],yte=function(n){return{enterDuration:n}},bte=["*"],wte=new lt("mat-radio-default-options",{providedIn:"root",factory:function Cte(){return{color:"accent"}}});let ZB=0;class JB{constructor(t,e){this.source=t,this.value=e}}const eH=new lt("MatRadioGroup");class Mte{constructor(t){this._elementRef=t}}const Ete=Jl(Ym(Mte));let xte=(()=>{class n extends Ete{constructor(e,i,r,s,o,a,c,d){super(i),this._changeDetector=r,this._focusMonitor=s,this._radioDispatcher=o,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++ZB,this.id=this._uniqueId,this.change=new yt,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===a,d&&(this.tabIndex=Gr(d,0)),this._removeUniqueSelectionListener=o.listen((f,v)=>{f!==this.id&&v===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const i=Ft(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Ft(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Ft(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new JB(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){var e;const i=this.radioGroup;let r;if(r=i&&i.selected&&!this.disabled?i.selected===this?this.tabIndex:-1:this.tabIndex,r!==this._previousTabIndex){const s=null===(e=this._inputElement)||void 0===e?void 0:e.nativeElement;s&&(s.setAttribute("tabindex",r+""),this._previousTabIndex=r)}}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=qe({type:n,viewQuery:function(e,i){if(1&e&&Hn(vte,5),2&e){let r;Dt(r=St())&&(i._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[_t]}),n})(),tH=(()=>{class n extends xte{constructor(e,i,r,s,o,a,c,d){super(e,i,r,s,o,a,c,d)}}return n.\u0275fac=function(e){return new(e||n)(R(eH,8),R(bt),R(Xn),R(ya),R(PG),R(Ts,8),R(wte,8),bs("tabindex"))},n.\u0275cmp=Ct({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._inputElement.nativeElement.focus()}),2&e&&(Yt("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Kt("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[_t],ngContentSelectors:bte,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,i){if(1&e&&(Ui(),Y(0,"label",0,1)(2,"span",2),ft(3,"span",3)(4,"span",4),Y(5,"input",5,6),vt("change",function(s){return i._onInputInteraction(s)})("click",function(s){return i._onInputClick(s)}),ee(),Y(7,"span",7),ft(8,"span",8),ee()(),Y(9,"span",9)(10,"span",10),ie(11,"\xa0"),ee(),Vn(12),ee()()),2&e){const r=zi(1);Yt("for",i.inputId),ye(5),Pe("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),Yt("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),ye(2),Pe("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",wy(17,yte,i._noopAnimations?0:150)),ye(2),Kt("mat-radio-label-before","before"==i.labelPosition)}},dependencies:[ec],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),n})(),kte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Xm,yn,yn]}),n})();var Tte=He(87),nH=He.n(Tte);let Pte=(()=>{class n{constructor(){}ngOnChanges(e){e.readme&&(this.parsedReadme=nH().replace(this.readme))}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-readme"]],inputs:{readme:"readme"},features:[Zt],decls:3,vars:1,consts:[[1,"datasource-readme-component"],[1,"markdown-body"],[3,"data"]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"div",1),ft(2,"markdown",2),ee()()),2&e&&(ye(2),Pe("data",i.parsedReadme))},dependencies:[Yx],styles:[".markdown-body markdown h2:first-child{margin-top:0}"]}),n})(),iH=(()=>{class n{static orderContent(e){return Rs.orderBy(e,i=>`${n.ContentOrder.indexOf(i.$type)}_${i.name}`)}}return n.ContentOrder=["folder","file"],n})();const{isArray:Rte}=Array;function rH(n){return 1===n.length&&Rte(n[0])?n[0]:n}const Fte=[{filename:"Aktuell_Deutschland_Landkreise_COVID-19-Impfungen.csv",field:"LandkreisId_Impfort"}];function Nte(n,t){if(1&n&&(Y(0,"p"),ie(1),ee()),2&n){const e=Qe();ye(1),ci(" Datei '",e.file.name,"' wird heruntergeladen...\n")}}let Vte=(()=>{class n{constructor(){this.done=new yt,this.downloadProgress=0}ngOnInit(){}download(){if(this.file){const e=this.file.name,i=this.file.downloadUrl,r=new XMLHttpRequest;r.onloadstart=function(s){r.responseType="blob"},r.addEventListener("progress",s=>{s.lengthComputable&&(this.downloadProgress=Math.floor(s.loaded/s.total*100))},!1),r.onreadystatechange=()=>{if(4===r.readyState&&200===r.status){const a=window.navigator;if(void 0!==a.msSaveBlob){var s=new Blob([r.response],{type:"application/force-download"});a.msSaveBlob(s,e)}else{var o=document.createElement("a");o.href=window.URL.createObjectURL(r.response),o.download=e,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}this.done.emit()}},r.open("GET",i,!0),r.send()}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-file-download"]],inputs:{file:"file"},outputs:{done:"done"},decls:3,vars:2,consts:[[4,"ngIf"]],template:function(e,i){1&e&&(mt(0,Nte,2,1,"p",0),Y(1,"p"),ie(2),ee()),2&e&&(Pe("ngIf",i.file),ye(2),ci(" Fortschritt: ",i.downloadProgress,"%\n"))},dependencies:[mr]}),n})(),sH=(()=>{class n{constructor(e){this.snackBar=e,this.isDownloading=!1}download(e){if(this.isDownloading)return;const i=this.snackBar.openFromComponent(Vte,{});i.instance.file=e;const r=i.instance.done.subscribe(()=>{this.isDownloading=!1,i.dismiss(),setTimeout(()=>r.unsubscribe())});i.instance.download(),this.isDownloading=!0}}return n.\u0275fac=function(e){return new(e||n)(Re(Uee))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pg=(()=>{class n{constructor(){this.text="Lade..."}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-loading-indicator"]],inputs:{text:"text"},decls:4,vars:1,consts:[[1,"spinner-container","fullsize"],[1,"loading-text"]],template:function(e,i){1&e&&(Y(0,"div",0),ft(1,"mat-spinner"),Y(2,"div",1),ie(3),ee()()),2&e&&(ye(3),Yn(i.text))},dependencies:[cc],styles:[".fullsize[_ngcontent-%COMP%], [_nghost-%COMP%]{width:100%;min-width:100%;height:100%;min-height:100%}.spinner-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-text[_ngcontent-%COMP%]{font-size:120%;margin-top:16px;max-width:100%;white-space:break-spaces}"]}),n})();function Bte(n,t){1&n&&ft(0,"app-loading-indicator",4)}let Hte=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-image-preview"]],inputs:{imgUrl:"imgUrl"},decls:5,vars:1,consts:[[1,"image-preview-component-container"],[1,"image-container"],[1,"image-preview",3,"src"],["loading",""],["text","Lade Vorschau..."]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"div",1),ft(2,"img",2),ee(),mt(3,Bte,1,0,"ng-template",null,3,Hl),ee()),2&e&&(ye(2),Pe("src",i.imgUrl,zs))},dependencies:[Pg],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}"]}),n})();function zte(n,t){1&n&&ft(0,"app-loading-indicator",3)}let Ute=(()=>{class n{constructor(){this.pdfSrc="",this.isLoading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-pdf-preview"]],inputs:{pdfSrc:"pdfSrc"},decls:3,vars:3,consts:[[1,"pdf-container"],[1,"pdf-viewer",3,"src","render-text","after-load-complete"],["text","Lade Vorschau...",4,"ngIf"],["text","Lade Vorschau..."]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"pdf-viewer",1),vt("after-load-complete",function(){return i.isLoading=!1}),ee(),mt(2,zte,1,0,"app-loading-indicator",2),ee()),2&e&&(ye(1),Pe("src",i.pdfSrc)("render-text",!0),ye(1),Pe("ngIf",i.isLoading))},dependencies:[mr,qK,Pg],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.pdf-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;max-height:100%;height:100%;max-width:100%;width:100%;position:relative}.pdf-container[_ngcontent-%COMP%] .pdf-viewer[_ngcontent-%COMP%]{flex:1 1 100%;margin-left:auto;margin-right:auto}"]}),n})();function Wte(n,t){if(1&n&&(Y(0,"div",3),ft(1,"markdown",4),ee()),2&n){const e=t.ngIf;ye(1),Pe("data",e)}}function Gte(n,t){1&n&&ft(0,"app-loading-indicator",5)}let qte=(()=>{class n{constructor(e){this.http=e,this.url$=new gr(void 0),this.mdData$=this.url$.pipe(ds(i=>void 0===i?At(void 0):this.http.get(i,{responseType:"text"}).pipe(z(r=>(r=function $te(n,t){return t.reduce((e,i)=>{const r=new RegExp(`<${i}.*?>(?.+?)`,"gs");return e.replace(r,"$")},n)}(r,["font"]),this.baseUrl&&(r=function jte(n,t){const e=new RegExp("!\\[(?.*?)\\]\\((?<url>\\/.*?)\\)","gs"),i=new RegExp("\\[(?<title>.*?)\\]\\((?<url>\\/.*?)\\)","g");return(n=n.replace(e,`![$<title>](${t}$<url>)`)).replace(i,`[$<title>](${t}$<url>)`)}(r,this.baseUrl)),nH().replace(r))))))}ngOnChanges(e){e.url&&this.url$.next(e.url.currentValue)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(R(nd))},n.\u0275cmp=Ct({type:n,selectors:[["app-markdown-preview"]],inputs:{url:"url",baseUrl:"baseUrl"},features:[Zt],decls:5,vars:4,consts:[[1,"root-container"],["class","markdown-body",4,"ngIf","ngIfElse"],["loading",""],[1,"markdown-body"],[3,"data"],["text","Lade Vorschau..."]],template:function(e,i){if(1&e&&(Y(0,"div",0),mt(1,Wte,2,1,"div",1),ui(2,"async"),ee(),mt(3,Gte,1,0,"ng-template",null,2,Hl)),2&e){const r=zi(4);ye(1),Pe("ngIf",wi(2,2,i.mdData$))("ngIfElse",r)}},dependencies:[mr,Yx,Pg,Ga],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}"]}),n})();Math.pow(10,8);var ck=36e5;function Qn(n,t){if(t.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}function Kr(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function uk(n,t){var e;Qn(1,arguments);var i=Kr(null!==(e=null==t?void 0:t.additionalDigits)&&void 0!==e?e:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof n&&"[object String]"!==Object.prototype.toString.call(n))return new Date(NaN);var s,r=ine(n);if(r.date){var o=rne(r.date,i);s=sne(o.restDateString,o.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var d,a=s.getTime(),c=0;if(r.time&&(c=one(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){var f=new Date(a+c),v=new Date(0);return v.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),v.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),v}return d=ane(r.timezone),isNaN(d)?new Date(NaN):new Date(a+c+d)}var W0={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ene=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tne=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nne=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ine(n){var i,t={},e=n.split(W0.dateTimeDelimiter);if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],W0.timeZoneDelimiter.test(t.date)&&(t.date=n.split(W0.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){var r=W0.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function rne(n,t){var e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};var r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:null===s?r:100*s,restDateString:n.slice((i[1]||i[2]).length)}}function sne(n,t){if(null===t)return new Date(NaN);var e=n.match(ene);if(!e)return new Date(NaN);var i=!!e[4],r=Rg(e[1]),s=Rg(e[2])-1,o=Rg(e[3]),a=Rg(e[4]),c=Rg(e[5])-1;if(i)return function hne(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}(0,a,c)?function lne(n,t,e){var i=new Date(0);i.setUTCFullYear(n,0,4);var s=7*(t-1)+e+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+s),i}(t,a,c):new Date(NaN);var d=new Date(0);return function une(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(cne[t]||(aH(n)?29:28))}(t,s,o)&&function dne(n,t){return t>=1&&t<=(aH(n)?366:365)}(t,r)?(d.setUTCFullYear(t,s,Math.max(r,o)),d):new Date(NaN)}function Rg(n){return n?parseInt(n):1}function one(n){var t=n.match(tne);if(!t)return NaN;var e=dk(t[1]),i=dk(t[2]),r=dk(t[3]);return function fne(n,t,e){return 24===n?0===t&&0===e:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}(e,i,r)?e*ck+6e4*i+1e3*r:NaN}function dk(n){return n&&parseFloat(n.replace(",","."))||0}function ane(n){if("Z"===n)return 0;var t=n.match(nne);if(!t)return 0;var e="+"===t[1]?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function pne(n,t){return t>=0&&t<=59}(0,r)?e*(i*ck+6e4*r):NaN}var cne=[31,null,31,30,31,30,31,31,30,31,30,31];function aH(n){return n%400==0||n%4==0&&n%100!=0}function G0(n){return(G0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function lH(n){return Qn(1,arguments),n instanceof Date||"object"===G0(n)&&"[object Date]"===Object.prototype.toString.call(n)}function q0(n){return(q0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Si(n){Qn(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"===q0(n)&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function hk(n){if(Qn(1,arguments),!lH(n)&&"number"!=typeof n)return!1;var t=Si(n);return!isNaN(Number(t))}function Y0(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function cH(n){Qn(1,arguments);var t=Si(n);return t.setHours(0,0,0,0),t}function uH(n,t){Qn(2,arguments);var e=cH(n),i=cH(t),r=e.getTime()-Y0(e),s=i.getTime()-Y0(i);return Math.round((r-s)/864e5)}var gne=He(3028);function Un(n,t){for(var e=n<0?"-":"",i=Math.abs(n).toString();i.length<t;)i="0"+i;return e+i}function K0(n,t){var e,i;Qn(1,arguments);var r=Si(n);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");var s=String(null!==(e=null==t?void 0:t.format)&&void 0!==e?e:"extended"),o=String(null!==(i=null==t?void 0:t.representation)&&void 0!==i?i:"complete");if("extended"!==s&&"basic"!==s)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",c="",d="extended"===s?"-":"",f="extended"===s?":":"";if("time"!==o){var v=Un(r.getDate(),2),x=Un(r.getMonth()+1,2),B=Un(r.getFullYear(),4);a="".concat(B).concat(d).concat(x).concat(d).concat(v)}if("date"!==o){var se=r.getTimezoneOffset();if(0!==se){var me=Math.abs(se),Oe=Un(Math.floor(me/60),2),Fe=Un(me%60,2),et=se<0?"+":"-";c="".concat(et).concat(Oe,":").concat(Fe)}else c="Z";var $e=Un(r.getHours(),2),ot=Un(r.getMinutes(),2),Tt=Un(r.getSeconds(),2),$t=""===a?"":"T",Sn=[$e,ot,Tt].join(f);a="".concat(a).concat($t).concat(Sn).concat(c)}return a}function fk(n,t){Qn(2,arguments);var e=Si(n),i=Si(t),r=e.getTime()-i.getTime();return r<0?-1:r>0?1:r}class pk{constructor(t,e=[]){this.field=t,this.categories=[],this.categories=Rs.sortBy(e,i=>i).map(i=>({value:i,checked:!0}))}get checkedCategories(){return this.categories.filter(t=>t.checked)}get isActive(){return this.checkedCategories.length!==this.categories.length}get label(){if(this.checkedCategories.length!==this.categories.length)return this.checkedCategories.length.toString()}clear(){this.checkAllCategories()}checkAllCategories(){this.categories.forEach(t=>t.checked=!0)}uncheckAllCategories(){this.categories.forEach(t=>t.checked=!1)}getPredicate(){const t=this.checkedCategories;return t.length===this.categories.length?()=>!0:0===t.length?()=>!1:e=>t.some(i=>i.value===e[this.field])}}class dH{constructor(t,e,i){this.field=t,this.min=e,this.max=i}get isActive(){return void 0!==this.value&&!(()=>Array.isArray(this.value)&&this.min!==this.value[0]&&this.max!==this.value[1])()}get label(){if(void 0!==this.value)return"number"==typeof this.value?this.value.toString():Array.isArray(this.value)&&this.value.length>=2?`${this.value[0]} - ${this.value[1]}`:""}getPredicate(){if(void 0===this.value)return()=>!0;if("number"==typeof this.value)return e=>e[this.field]===this.value;const t=this.value;return e=>e[this.field]>=t[0]&&e[this.field]<=t[1]}clear(){this.value=void 0}}class Ig{constructor(t,e,i){this.field=t,this.min=e,this.max=i,this.isoFormatConfig={representation:"date"},this.fakeField=Ig.fakeDateFieldName(t)}static fakeDateFieldName(t){return`$_fakeDate.${t}`}static createFakeDateField(t,e,i){t[this.fakeDateFieldName(e)]=i}get isActive(){return void 0!==this.value&&!(()=>Array.isArray(this.value)&&this.min!==this.value[0]&&this.max!==this.value[1])()}get label(){if(void 0!==this.value)return Array.isArray(this.value)&&this.value.length>=2?`${K0(this.value[0],this.isoFormatConfig)} - ${K0(this.value[1],this.isoFormatConfig)}`:this.value instanceof Date?K0(this.value,this.isoFormatConfig):""}getPredicate(){if(void 0===this.value)return()=>!0;if(this.value instanceof Date)return e=>0===fk(e[this.fakeField],this.value);const t=this.value;return e=>{const i=e[this.fakeField];return-1!==fk(i,t[0])&&1!==fk(i,t[1])}}clear(){this.value=void 0}}class hH{constructor(t,e){this.field=t,this.filter=e}}class fH{constructor(t,e){this.columns=t,this.datasource=e}get fields(){return this.columns.map(t=>t.field)}get anyActiveFilter(){return this.columns.some(t=>t.filter&&t.filter.isActive)}get filterRowCount(){return this.datasource.filteredData.length}get rowCount(){return this.datasource.data.length}updateFilter(){const t=this.columns.filter(e=>e.filter).map(e=>e.filter.getPredicate());this.datasource.filterPredicate=e=>t.every(i=>i(e)),this.datasource.filter="dummy"}clearFilter(){this.columns.forEach(t=>{var e;return null===(e=t.filter)||void 0===e?void 0:e.clear()}),this.updateFilter()}}let _ne=(()=>{class n{constructor(e){this.element=e,this.afterComponentInit=new yt}ngAfterViewInit(){setTimeout(()=>{this.afterComponentInit.emit()},10)}}return n.\u0275fac=function(e){return new(e||n)(R(bt))},n.\u0275dir=qe({type:n,selectors:[["","afterComponentInit",""]],outputs:{afterComponentInit:"afterComponentInit"}}),n})(),vne=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Ft(e)}get inset(){return this._inset}set inset(e){this._inset=Ft(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Yt("aria-orientation",i.vertical?"vertical":"horizontal"),Kt("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),n})(),yne=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[yn,yn]}),n})();const pH=["*"],mH='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',bne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],wne=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Cne=["text"];function Dne(n,t){if(1&n&&ft(0,"mat-pseudo-checkbox",5),2&n){const e=Qe();Pe("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const Sne=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Ane=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],Mne=Ql(Jl(class{})),Ene=Jl(class{}),gH=new lt("MatList"),xne=new lt("MatNavList");let kne=(()=>{class n extends Mne{constructor(e){super(),this._elementRef=e,this._stateChanges=new b,"action-list"===this._getListType()&&(e.nativeElement.classList.add("mat-action-list"),e.nativeElement.setAttribute("role","group"))}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(R(bt))},n.\u0275cmp=Ct({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[kt([{provide:gH,useExisting:n}]),_t,Zt],ngContentSelectors:pH,decls:1,vars:0,template:function(e,i){1&e&&(Ui(),Vn(0))},styles:[mH],encapsulation:2,changeDetection:0}),n})(),_H=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),vH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),Tne=(()=>{class n extends Ene{constructor(e,i,r,s){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new b,this._disabled=!1,this._isInteractiveList=!!(r||s&&"action-list"===s._getListType()),this._list=r||s;const o=this._getHostElement();"button"===o.nodeName.toLowerCase()&&!o.hasAttribute("type")&&o.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ot(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Ft(e)}ngAfterContentInit(){HF(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Xn),R(xne,8),R(gH,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,_H,5),Dn(r,vH,5),Dn(r,KM,5)),2&e){let s;Dt(s=St())&&(i._avatar=s.first),Dt(s=St())&&(i._icon=s.first),Dt(s=St())&&(i._lines=s)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,i){2&e&&Kt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[_t],ngContentSelectors:wne,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,i){1&e&&(Ui(bne),Y(0,"span",0),ft(1,"span",1),Vn(2),Y(3,"span",2),Vn(4,1),ee(),Vn(5,2),ee()),2&e&&(ye(1),Pe("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},dependencies:[ec],encapsulation:2,changeDetection:0}),n})();const Pne=Jl(class{}),Rne=Jl(class{}),Ine={provide:fs,useExisting:Pn(()=>mk),multi:!0};class One{constructor(t,e){this.source=t,this.options=e}}let yH=(()=>{class n extends Rne{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this.selectionList=r,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new yt,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=Ft(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=Ft(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){HF(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Xn),R(Pn(()=>mk)))},n.\u0275cmp=Ct({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,_H,5),Dn(r,vH,5),Dn(r,KM,5)),2&e){let s;Dt(s=St())&&(i._avatar=s.first),Dt(s=St())&&(i._icon=s.first),Dt(s=St())&&(i._lines=s)}},viewQuery:function(e,i){if(1&e&&Hn(Cne,5),2&e){let r;Dt(r=St())&&(i._text=r.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(Yt("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),Kt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[_t],ngContentSelectors:Ane,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(Ui(Sne),Y(0,"div",0),ft(1,"div",1),mt(2,Dne,1,2,"mat-pseudo-checkbox",2),Y(3,"div",3,4),Vn(5),ee(),Vn(6,1),ee()),2&e&&(Kt("mat-list-item-content-reverse","after"==i.checkboxPosition),ye(1),Pe("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),ye(1),Pe("ngIf",i.selectionList.multiple))},dependencies:[ec,B8,mr],encapsulation:2,changeDetection:0}),n})(),mk=(()=>{class n extends Pne{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new yt,this.color="accent",this.compareWith=(s,o)=>s===o,this._disabled=!1,this.selectedOptions=new rb(this._multiple),this._tabIndex=-1,this._onChange=s=>{},this._destroyed=new b,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=Ft(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new rb(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new UM(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Ot(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(cs(null),Ot(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Ot(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(Ot(this._destroyed)).subscribe(e=>{var i;if("keyboard"===e||"program"===e){let r=0;for(let s=0;s<this.options.length;s++)if(null!==(i=this.options.get(s))&&void 0!==i&&i.selected){r=s;break}this._keyManager.setActiveItem(r)}})}ngOnChanges(e){const i=e.disableRipple,r=e.color;(i&&!i.firstChange||r&&!r.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(e){this._element.nativeElement.focus(e)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(e){this._keyManager.updateActiveItem(e)}_removeOptionFromList(e){const i=this._getOptionIndex(e);return i>-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,r=this._keyManager,s=r.activeItemIndex,o=va(e);switch(i){case 32:case 13:!o&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&va(e,"ctrlKey")&&!r.isTyping()){const a=this.options.some(c=>!c.disabled&&!c.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else r.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&r.activeItemIndex!==s&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new One(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const r=this.options.find(s=>!s.selected&&this.compareWith(s.value,i));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,r){const s=[];return this.options.forEach(o=>{(!i||!o.disabled)&&o._setSelected(e)&&s.push(o)}),s.length&&(this._reportValueChange(),r&&this._emitChangeEvent(s)),s}_isValidIndex(e){return e>=0&&e<this.options.length}_getOptionIndex(e){return this.options.toArray().indexOf(e)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Xn),R(ya))},n.\u0275cmp=Ct({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,yH,5),2&e){let s;Dt(s=St())&&(i.options=s)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&vt("keydown",function(s){return i._keydown(s)}),2&e&&Yt("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[kt([Ine]),_t,Zt],ngContentSelectors:pH,decls:1,vars:0,template:function(e,i){1&e&&(Ui(),Vn(0))},styles:[mH],encapsulation:2,changeDetection:0}),n})(),Fne=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[zF,Xm,yn,qF,_a,zF,yn,qF,yne]}),n})(),bH=(()=>{class n{constructor(){this.defNumberFormat=new tM("de"),this.idFieldPredicates=[e=>e.toLowerCase().startsWith("id"),e=>e.indexOf("Id")>-1]}transform(e,...i){let r;return 1===i.length&&(r=i[0]),void 0!==r&&this.isIdField(r)||!(0,Rs.isNumber)(e)?e:this.defNumberFormat.transform(e)}isIdField(e){return this.idFieldPredicates.some(i=>i(e))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"formatIfNumber",type:n,pure:!0}),n})();function Lne(n,t){if(1&n){const e=ii();Y(0,"div",16)(1,"mat-form-field")(2,"mat-label"),ie(3,"Suche"),ee(),Y(4,"input",17),vt("ngModelChange",function(r){return zt(e),Wt(Qe(4).searchText=r)})("ngModelChange",function(r){return zt(e),Wt(Qe(4).search(r))}),ee()(),Y(5,"button",18),vt("click",function(){return zt(e),Wt(Qe(4).clearSearch())}),Y(6,"mat-icon"),ie(7,"close"),ee()()()}if(2&n){const e=Qe(4);ye(4),Pe("ngModel",e.searchText)}}function Nne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item",19)(1,"mat-checkbox",20),vt("change",function(r){return zt(e),Wt(Qe(4).selectAllChanged(r))}),Y(2,"b")(3,"i"),ie(4,"Alle"),ee()()()()}if(2&n){const e=Qe(4);ye(1),Pe("checked",e.tableCategoryFilter.checkedCategories.length===e.tableCategoryFilter.categories.length)("indeterminate",e.tableCategoryFilter.checkedCategories.length>0&&e.tableCategoryFilter.checkedCategories.length!==e.tableCategoryFilter.categories.length)}}function Vne(n,t){if(1&n&&(Y(0,"mat-list-item"),ie(1),ee()),2&n){const e=Qe(4);ye(1),ci(" Keine Treffer f\xfcr '",e.searchText,"' ")}}function Bne(n,t){if(1&n&&(Y(0,"mat-list-option",21),ie(1),ui(2,"formatIfNumber"),ee()),2&n){const e=t.$implicit;Pe("value",e)("selected",e.checked),ye(1),ci(" ",wi(2,3,e.value)," ")}}function Hne(n,t){if(1&n){const e=ii();Y(0,"div",10),mt(1,Lne,8,1,"div",11),Y(2,"mat-selection-list",12,13),vt("selectionChange",function(r){return zt(e),Wt(Qe(3).onSelectionListChange(r))}),mt(4,Nne,5,2,"mat-list-item",14),mt(5,Vne,2,1,"mat-list-item",0),mt(6,Bne,3,5,"mat-list-option",15),ee()()}if(2&n){const e=Qe(3);let i;ye(1),Pe("ngIf",e.searchEnabled),ye(3),Pe("ngIf",!e.searchResult),ye(1),Pe("ngIf",e.searchResult&&0===e.searchResult.length),ye(1),Pe("ngForOf",null!==(i=e.searchResult)&&void 0!==i?i:e.tableCategoryFilter.categories)("ngForTrackBy",e.categoryValue)}}function zne(n,t){if(1&n){const e=ii();Y(0,"div",30)(1,"span",31),ie(2),ee(),Y(3,"mtx-slider",32,33),vt("ngModelChange",function(r){return zt(e),Wt(Qe(5).changeNumberValue(r))}),ee(),Y(5,"span",34),ie(6),ee()()}if(2&n){const e=Qe(5);ye(2),Yn(e.tableNumberFilter.min),ye(1),Pe("min",e.tableNumberFilter.min)("max",e.tableNumberFilter.max)("ngModel",e.isValueNumberFilter?e.tableNumberFilter.value:e.tableNumberFilter.min),ye(3),Yn(e.tableNumberFilter.max)}}function Une(n,t){if(1&n){const e=ii();Y(0,"mat-form-field",35)(1,"mat-label"),ie(2,"Wert"),ee(),Y(3,"input",36),vt("ngModelChange",function(r){return zt(e),Wt(Qe(5).changeNumberValue(r))}),ee()()}if(2&n){const e=Qe(5);ye(3),Pe("min",e.tableNumberFilter.min)("max",e.tableNumberFilter.max)("ngModel",e.tableNumberFilter.value)}}function jne(n,t){if(1&n&&(Y(0,"mat-list-item"),mt(1,zne,7,5,"div",28),mt(2,Une,4,3,"ng-template",null,29,Hl),ee()),2&n){const e=zi(3),i=Qe(4);ye(1),Pe("ngIf",i.isSmallRange)("ngIfElse",e)}}const $ne=function(n,t){return[n,t]};function Wne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item")(1,"div",30)(2,"span",31),ie(3),ee(),Y(4,"mtx-slider",37,38),vt("ngModelChange",function(r){return zt(e),Wt(Qe(4).changeNumberValue(r))}),ee(),Y(6,"span",34),ie(7),ee()()()}if(2&n){const e=Qe(4);ye(3),Yn(e.tableNumberFilter.min),ye(1),Pe("min",e.tableNumberFilter.min)("max",e.tableNumberFilter.max)("ngModel",e.isRangeNumberFilter?e.tableNumberFilter.value:function QR(n,t,e,i,r){return JR(ct(),Jr(),n,t,e,i,r)}(5,$ne,e.tableNumberFilter.min,e.tableNumberFilter.max)),ye(3),Yn(e.tableNumberFilter.max)}}function Gne(n,t){if(1&n){const e=ii();dr(0),Y(1,"mat-list-item")(2,"mat-form-field",35)(3,"mat-label"),ie(4,"Von"),ee(),Y(5,"input",36,39),vt("ngModelChange",function(r){zt(e);const s=zi(12);return Wt(Qe(4).changeNumberValue([r,s.valueAsNumber]))}),ee()()(),Y(7,"mat-list-item")(8,"mat-form-field",35)(9,"mat-label"),ie(10,"Bis"),ee(),Y(11,"input",36,40),vt("ngModelChange",function(r){zt(e);const s=zi(6);return Wt(Qe(4).changeNumberValue([s.valueAsNumber,r]))}),ee()()(),hr()}if(2&n){const e=zi(6),i=zi(12),r=Qe(4);ye(5),Pe("min",r.tableNumberFilter.min)("max",r.Math.max(r.tableNumberFilter.max,i.valueAsNumber))("ngModel",r.rangeNumberFilterValue[0]),ye(6),Pe("min",r.Math.max(r.tableNumberFilter.min,e.valueAsNumber))("max",r.tableNumberFilter.max)("ngModel",r.rangeNumberFilterValue[1])}}function qne(n,t){if(1&n){const e=ii();Y(0,"div",22)(1,"mat-list",23)(2,"mat-list-item")(3,"mat-radio-button",24),vt("change",function(){return zt(e),Wt(Qe(3).changeNumberValue())}),Y(4,"b")(5,"i"),ie(6,"Alle"),ee()()()(),Y(7,"mat-list-item")(8,"mat-radio-button",25,26),vt("change",function(){zt(e);const r=Qe(3);return Wt(r.changeNumberValue(r.tableNumberFilter.min))}),ie(10),ee()(),mt(11,jne,4,2,"mat-list-item",0),Y(12,"mat-list-item")(13,"mat-radio-button",24,27),vt("change",function(){zt(e);const r=Qe(3);return Wt(r.changeNumberValue([r.tableNumberFilter.min,r.tableNumberFilter.max]))}),ie(15),ee()(),mt(16,Wne,8,8,"mat-list-item",0),mt(17,Gne,13,6,"ng-container",0),ee()()}if(2&n){const e=Qe(3);ye(3),Pe("checked",void 0===e.tableNumberFilter.value),ye(5),Pe("checked",e.isValueNumberFilter),ye(2),ci(" ","Wert"+(e.isValueNumberFilter?" ("+e.filter.label+")":"")," "),ye(1),Pe("ngIf",e.isValueNumberFilter),ye(2),Pe("checked",e.isRangeNumberFilter),ye(2),ci(" ","Bereich"+(e.isRangeNumberFilter?" ("+e.filter.label+")":"")," "),ye(1),Pe("ngIf",e.isRangeNumberFilter&&e.isSmallRange),ye(1),Pe("ngIf",e.isRangeNumberFilter&&!e.isSmallRange)}}function Yne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item")(1,"mat-form-field",42)(2,"mat-label"),ie(3,"Datum w\xe4hlen"),ee(),Y(4,"input",43),vt("dateChange",function(r){return zt(e),Wt(Qe(4).changeDateValue(r.value))}),ee(),ft(5,"mat-datepicker-toggle",44)(6,"mat-datepicker",null,45),ee()()}if(2&n){const e=zi(7),i=Qe(4);ye(4),Pe("matDatepicker",e)("min",i.tableDateFilter.min)("max",i.tableDateFilter.max)("value",i.tableDateFilter.value),ye(1),Pe("for",e)}}function Kne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item")(1,"mat-form-field",42)(2,"mat-label"),ie(3,"Datumsbereich w\xe4hlen"),ee(),Y(4,"mat-date-range-input",46)(5,"input",47),vt("dateChange",function(r){return zt(e),Wt(Qe(4).changeDateRange(0,r.value))}),ee(),Y(6,"input",48),vt("dateChange",function(r){return zt(e),Wt(Qe(4).changeDateRange(1,r.value))}),ee()(),ft(7,"mat-datepicker-toggle",44)(8,"mat-date-range-picker",null,45),ee()()}if(2&n){const e=zi(9),i=Qe(4);ye(4),Pe("rangePicker",e)("min",i.tableDateFilter.min)("max",i.tableDateFilter.max),ye(1),Pe("value",i.rangeDateFilterValue[0]),ye(1),Pe("value",i.rangeDateFilterValue[1]),ye(1),Pe("for",e)}}function Xne(n,t){if(1&n){const e=ii();Y(0,"div",41)(1,"mat-list",23)(2,"mat-list-item")(3,"mat-radio-button",24),vt("change",function(){return zt(e),Wt(Qe(3).changeDateValue())}),Y(4,"b")(5,"i"),ie(6,"Alle"),ee()()()(),Y(7,"mat-list-item")(8,"mat-radio-button",25,26),vt("change",function(){zt(e);const r=Qe(3);return Wt(r.changeDateValue(r.tableDateFilter.min))}),ie(10," Wert "),ee()(),mt(11,Yne,8,5,"mat-list-item",0),Y(12,"mat-list-item")(13,"mat-radio-button",24,27),vt("change",function(){zt(e);const r=Qe(3);return Wt(r.changeDateValue([r.tableDateFilter.min,r.tableDateFilter.max]))}),ie(15," Bereich "),ee()(),mt(16,Kne,10,6,"mat-list-item",0),ee()()}if(2&n){const e=Qe(3);ye(3),Pe("checked",void 0===e.tableDateFilter.value),ye(5),Pe("checked",e.isValueDateFilter),ye(3),Pe("ngIf",e.isValueDateFilter),ye(2),Pe("checked",e.isRangeDateFilter),ye(3),Pe("ngIf",e.isRangeDateFilter)}}function Qne(n,t){if(1&n&&(Y(0,"div",6),mt(1,Hne,7,5,"div",7),mt(2,qne,18,8,"div",8),mt(3,Xne,17,5,"div",9),ee()),2&n){const e=Qe(2);ye(1),Pe("ngIf",e.tableCategoryFilter),ye(1),Pe("ngIf",e.tableNumberFilter),ye(1),Pe("ngIf",e.tableDateFilter)}}function Zne(n,t){if(1&n){const e=ii();dr(0),Y(1,"button",1,2),vt("click",function(){zt(e);const r=Qe();return Wt(r.isOpen=!r.isOpen)}),Y(3,"mat-icon",3),ie(4,"filter_list "),ee()(),mt(5,Qne,4,3,"ng-template",4,5,Hl),vt("overlayOutsideClick",function(r){zt(e);const s=zi(2),o=zi(6);return Wt(Qe().onOverlayOutsideClick(r,s,o))}),hr()}if(2&n){const e=zi(2),i=Qe();ye(3),Pe("color",i.filter.isActive&&"primary")("matBadge",i.filter.label?i.filter.label:"")("title",i.filter.label?i.filter.label:""),ye(2),Pe("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",i.isOpen)("cdkConnectedOverlayScrollStrategy",i.scrollStrat)}}let Jne=(()=>{class n{constructor(e){this.overlay=e,this.onColumnFilterChanged=new yt,this.isOpen=!1,this.searchText="",this.Math=Math,this.scrollStrat=this.overlay.scrollStrategies.close()}get tableCategoryFilter(){return this.filter&&this.filter instanceof pk&&this.filter}get tableNumberFilter(){return this.filter&&this.filter instanceof dH&&this.filter}get tableDateFilter(){return this.filter&&this.filter instanceof Ig&&this.filter}ngOnInit(){}allParents(e){const i=[];let r=e;for(;r.parentElement;)i.push(r.parentElement),r=r.parentElement;return i}onOverlayOutsideClick(e,i,r){const s=e.target;s&&this.allParents(s).every(a=>a!==i.elementRef.nativeElement&&!a.classList.contains("mat-datepicker-popup"))&&(this.isOpen=!1)}categoryValue(e,i){return i.value}get searchEnabled(){return this.tableCategoryFilter&&this.tableCategoryFilter.categories.length>10}search(e){this.tableCategoryFilter&&(this.searchResult=this.tableCategoryFilter.categories.filter(i=>i.value.toLowerCase().indexOf(e.toLowerCase())>=0))}clearSearch(){this.searchText="",this.searchResult=void 0}selectAllChanged(e){console.log("all changed",e),this.tableCategoryFilter&&(e.checked?this.tableCategoryFilter.checkAllCategories():this.tableCategoryFilter.uncheckAllCategories(),this.onColumnFilterChanged.emit(this.tableCategoryFilter.getPredicate()))}onSelectionListChange(e){this.tableCategoryFilter&&(e.options.forEach(i=>i.value.checked=i.selected),this.onColumnFilterChanged.emit(this.tableCategoryFilter.getPredicate()))}get isValueNumberFilter(){return this.tableNumberFilter&&"number"==typeof this.tableNumberFilter.value}get isRangeNumberFilter(){return this.tableNumberFilter&&Array.isArray(this.tableNumberFilter.value)}get rangeNumberFilterValue(){return this.tableNumberFilter&&Array.isArray(this.tableNumberFilter.value)?this.tableNumberFilter.value:[0,0]}get isSmallRange(){return this.tableNumberFilter&&this.tableNumberFilter.max-this.tableNumberFilter.min<1e3}changeNumberValue(e){this.tableNumberFilter&&(this.tableNumberFilter.value=e,this.onColumnFilterChanged.emit(this.tableNumberFilter.getPredicate()))}get isValueDateFilter(){return this.tableDateFilter&&this.tableDateFilter.value instanceof Date}get isRangeDateFilter(){return this.tableDateFilter&&Array.isArray(this.tableDateFilter.value)}get rangeDateFilterValue(){return this.tableDateFilter&&Array.isArray(this.tableDateFilter.value)?this.tableDateFilter.value:[new Date,new Date]}changeDateValue(e){this.tableDateFilter&&(this.tableDateFilter.value=e,this.onColumnFilterChanged.emit(this.tableDateFilter.getPredicate()))}changeDateRange(e,i){this.tableDateFilter&&Array.isArray(this.tableDateFilter.value)&&(this.tableDateFilter.value=[0===e?i:this.tableDateFilter.value[0],1===e?i:this.tableDateFilter.value[1]],this.onColumnFilterChanged.emit(this.tableDateFilter.getPredicate()))}onDateChange(e,i){console.log("DATE CHANGE",e,i)}}return n.\u0275fac=function(e){return new(e||n)(R(Po))},n.\u0275cmp=Ct({type:n,selectors:[["app-csv-table-filter"]],inputs:{filter:"filter"},outputs:{onColumnFilterChanged:"onColumnFilterChanged"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-icon-button","","cdkOverlayOrigin","",1,"filter-trigger",3,"click"],["trigger","cdkOverlayOrigin"],[3,"color","matBadge","title"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayScrollStrategy","overlayOutsideClick"],["overlay","cdkConnectedOverlay"],[1,"filter-overlay","mat-elevation-z12"],["class","category-filter",4,"ngIf"],["class","number-filter",4,"ngIf"],["class","date-filter",4,"ngIf"],[1,"category-filter"],["class","search-field-wrapper",4,"ngIf"],[3,"selectionChange"],["list",""],["class","select-all-list-item",4,"ngIf"],[3,"value","selected",4,"ngFor","ngForOf","ngForTrackBy"],[1,"search-field-wrapper"],["matInput","","placeholder","Suchtext",3,"ngModel","ngModelChange"],["mat-icon-button","","title","Suche leeren",3,"click"],[1,"select-all-list-item"],["labelPosition","before",1,"select-all",3,"checked","indeterminate","change"],[3,"value","selected"],[1,"number-filter"],[1,"range-list"],[3,"checked","change"],["matLine","",3,"checked","change"],["valueRadio",""],["rangeRadio",""],["class","slider-min-max",4,"ngIf","ngIfElse"],["numericValue",""],[1,"slider-min-max"],[1,"min"],["thumbLabel","","matLine","",1,"slider",3,"min","max","ngModel","ngModelChange"],["valueSlider",""],[1,"max"],[1,"number-form-field"],["matInput","","type","number",3,"min","max","ngModel","ngModelChange"],["thumbLabel","",1,"slider",3,"min","max","ngModel","ngModelChange"],["rangeSlider",""],["inputMin",""],["inputMax",""],[1,"date-filter"],[1,"date-form-field"],["matInput","",3,"matDatepicker","min","max","value","dateChange"],["matSuffix","",3,"for"],["picker",""],[3,"rangePicker","min","max"],["matStartDate","","placeholder","Startdatum",3,"value","dateChange"],["matEndDate","","placeholder","Enddatum",3,"value","dateChange"]],template:function(e,i){1&e&&mt(0,Zne,7,6,"ng-container",0),2&e&&Pe("ngIf",i.filter)},dependencies:[zc,mr,t0,rx,k2,dx,ux,ix,kne,Tne,KM,mk,yH,cf,Gee,AJ,ik,kJ,PJ,BB,HB,RJ,tH,rl,xV,QB,y9,px,m9,vK,KN,Y9,bH]}),n})();const eie=["tableContainer"];function tie(n,t){if(1&n){const e=ii();Y(0,"th",14)(1,"div",15)(2,"div",16),ie(3),ee(),Y(4,"app-csv-table-filter",17),vt("onColumnFilterChanged",function(){return zt(e),Wt(Qe(2).ngIf.updateFilter())}),ee()()()}if(2&n){const e=Qe().$implicit;ye(3),Yn(e.field),ye(1),Pe("filter",e.filter)}}function nie(n,t){if(1&n&&(Y(0,"td",18),ie(1),ui(2,"formatIfNumber"),ee()),2&n){const e=t.$implicit,i=Qe().$implicit;ye(1),ci(" ",function iI(n,t,e,i){const r=n+22,s=ct(),o=Yi(s,r);return wm(s,r)?JR(s,Jr(),t,o.transform,e,i,o):o.transform(e,i)}(2,1,e[i.field],i.field)," ")}}function iie(n,t){1&n&&(dr(0,11),mt(1,tie,5,2,"th",12),mt(2,nie,3,4,"td",13),hr()),2&n&&Pe("matColumnDef",t.$implicit.field)}function rie(n,t){1&n&&ft(0,"tr",19)}function sie(n,t){1&n&&ft(0,"tr",20)}function oie(n,t){if(1&n){const e=ii();Y(0,"div",21),ie(1),ui(2,"number"),ui(3,"number"),Y(4,"button",22),vt("click",function(){return zt(e),Wt(Qe().ngIf.clearFilter())}),Y(5,"mat-icon"),ie(6,"cancel"),ee()()()}if(2&n){const e=Qe().ngIf;ye(1),lA(" Eintr\xe4ge gefiltert: ",wi(2,2,e.filterRowCount)," von ",wi(3,4,e.rowCount)," ")}}function aie(n,t){if(1&n){const e=ii();Y(0,"div",2)(1,"div",3,4)(3,"cdk-virtual-scroll-viewport",5)(4,"table",6),vt("afterComponentInit",function(){const s=zt(e).ngIf;return Wt(Qe().afterTableInit(s))}),mt(5,iie,3,1,"ng-container",7),mt(6,rie,1,0,"tr",8),mt(7,sie,1,0,"tr",9),ee()()(),mt(8,oie,7,6,"div",10),ee()}if(2&n){const e=t.ngIf;ye(3),Pe("footerEnabled",!0),ye(1),Pe("dataSource",e.datasource),ye(1),Pe("ngForOf",e.columns),ye(1),Pe("matHeaderRowDef",e.fields),ye(1),Pe("matRowDefColumns",e.fields),ye(1),Pe("ngIf",e.anyActiveFilter)}}function lie(n,t){if(1&n&&(Y(0,"div",23)(1,"div",24),ft(2,"app-loading-indicator",25),ee()()),2&n){const e=Qe();ye(2),Pe("text","Lade Vorschau f\xfcr '"+e.fileName+"'...")}}let cie=(()=>{class n{constructor(e){this.http=e,this.noParseFields=[],this.numberDefaults={min:Number.MAX_SAFE_INTEGER,max:Number.MIN_SAFE_INTEGER},this.dateDefaults={min:new Date(4e3,12,31),max:new Date(0)}}ngOnInit(){}ngOnChanges(e){e.csvUrl&&this.updateTableData()}ngAfterViewInit(){}updateTableData(){let e=new il;this.tableData$=this.parseCsv(this.csvUrl,e)}afterTableInit(e){this.sort&&e.datasource&&(e.datasource.sort=this.sort)}parseCsv(e,i){const r=new fH([],new iE);return e?this.http.get(e,{responseType:"text",headers:i,observe:"response"}).pipe(z(s=>{if(null!==s.body){const o=gne.parse(s.body,{header:!0,dynamicTyping:a=>!this.noParseFields.some(c=>c===a),skipEmptyLines:!0});if(o.meta.fields){const a=new iE(o.data);return this.sort&&(a.sort=this.sort),new fH(this.createColumns(o.meta.fields,o.data),a)}}return r})):At(r)}createColumns(e,i){if(i.length>999999)return e.map(s=>new hH(s));const r=Rs.reduce(i,(s,o,a)=>(Rs.toPairs(s).forEach(([c,d])=>{const f=o[c];if("string"==typeof f){const v=uk(f);hk(v)?(Ig.createFakeDateField(o,c,v),v<d.date.min&&(d.date.min=v),v>d.date.max&&(d.date.max=v)):d.category.add(f)}else"number"==typeof f?(f<d.number.min&&(d.number.min=f),f>d.number.max&&(d.number.max=f)):null==f&&(d.hasEmpty=!0)}),s),Rs.fromPairs(e.map(s=>[s,{category:new Set,number:Object.assign({},this.numberDefaults),date:Object.assign({},this.dateDefaults),hasEmpty:!1}])));return Rs.map(r,(s,o)=>{let a;if(s.category.size>0?a=new pk(o,[...s.category.values()]):s.number.min!==this.numberDefaults.min&&s.number.max!==this.numberDefaults.max?a=new dH(o,s.number.min,s.number.max):s.date.min!==this.dateDefaults.min&&s.date.max!==this.dateDefaults.max&&uH(s.date.max,s.date.min)>1&&(a=new Ig(o,s.date.min,s.date.max)),[s.category.size>0,s.number.min!==this.numberDefaults.min&&s.number.max!==this.numberDefaults.max,s.date.min!==this.dateDefaults.min&&s.date.max!==this.dateDefaults.max&&uH(s.date.max,s.date.min)>1].filter(f=>f).length>1){console.warn(`More than one value type detected in field '${o}'.`);const f=Rs.uniqBy(i,o).map(v=>v[o]);a=new pk(o,f)}return new hH(o,a)})}}return n.\u0275fac=function(e){return new(e||n)(R(nd))},n.\u0275cmp=Ct({type:n,selectors:[["app-csv-table"]],viewQuery:function(e,i){if(1&e&&(Hn(rk,5),Hn(eie,5)),2&e){let r;Dt(r=St())&&(i.sort=r.first),Dt(r=St())&&(i.tableContainer=r.first)}},inputs:{csvUrl:"csvUrl",fileName:"fileName",noParseFields:"noParseFields"},features:[Zt],decls:4,vars:4,consts:[["class","container",4,"ngIf","ngIfElse"],["loading",""],[1,"container"],[1,"table-container"],["tableContainer",""],["tvsItemSize","32","headerHeight","56",2,"height","calc(100%)",3,"footerEnabled"],["mat-table","","matSort","",3,"dataSource","afterComponentInit"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","footer",4,"ngIf"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],[1,"header-container"],["mat-sort-header","",1,"title"],[3,"filter","onColumnFilterChanged"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"footer"],["mat-icon-button","","title","Filter enternen",3,"click"],[1,"loading-container"],[1,"loading-indicator"],[3,"text"]],template:function(e,i){if(1&e&&(mt(0,aie,9,6,"div",0),ui(1,"async"),mt(2,lie,3,1,"ng-template",null,1,Hl)),2&e){const r=zi(3);Pe("ngIf",wi(1,2,i.tableData$))("ngIfElse",r)}},dependencies:[zc,mr,cf,rl,QM,JM,YF,eE,ZM,KF,tE,nE,XF,QF,CG,rk,qJ,i6,Pg,_ne,Jne,Ga,tM,bH],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding:10px;box-sizing:border-box}.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;max-width:100%}.loading-container[_ngcontent-%COMP%] .loading-indicator[_ngcontent-%COMP%]{max-width:100%}.loading-container[_ngcontent-%COMP%] .lfs-indicator[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}.lfs-cell[_ngcontent-%COMP%]{background-color:teal}.table-container[_ngcontent-%COMP%]{width:100%;max-width:100%;height:100%;max-height:100%}.header-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;height:100%}.header-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:14px}.header-container[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{flex:0 0 auto}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{font-size:12px;line-height:1;overflow:hidden;padding:5px;text-align:left;white-space:nowrap;border-right:1px solid rgba(0,0,0,.12)}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}tr.mat-row[_ngcontent-%COMP%]{height:32px}.filter-form-field[_ngcontent-%COMP%]{width:100%}.footer[_ngcontent-%COMP%]{text-align:right}"]}),n})();const X0=new lt("HIGHLIGHT_OPTIONS");let gk;let fie=(()=>{class n{constructor(e,i,r){var s;this.doc=e,this._options=r,this._ready=new gr(null),this.ready=this._ready.asObservable().pipe(ji(o=>!!o),z(o=>o),Ci(1)),Wl(i)&&(e.defaultView.hljs?this._ready.next(e.defaultView.hljs):this._loadLibrary().pipe(ds(o=>this._options&&this._options.lineNumbersLoader?(e.defaultView.hljs=o,this.loadLineNumbers().pipe(_i(()=>this._ready.next(o)))):(this._ready.next(o),Ns)),tl(o=>(console.error("[HLJS] ",o),Ns))).subscribe(),null!==(s=this._options)&&void 0!==s&&s.themePath&&this.loadTheme(this._options.themePath))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return ba(()=>"The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return ba(()=>"The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return ba(()=>"The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return ba(()=>"The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(ds(e=>this._loadLanguages(e)))}return ba(()=>"Highlight.js library was not imported!")}_loadLanguages(e){return function uie(...n){const t=Cf(n),e=rH(n);return e.length?new _e(i=>{let r=e.map(()=>[]),s=e.map(()=>!1);i.add(()=>{r=s=null});for(let o=0;!i.closed&&o<e.length;o++)$n(e[o]).subscribe(N(i,a=>{if(r[o].push(a),r.every(c=>c.length)){const c=r.map(d=>d.shift());i.next(t?t(...c):c),r.some((d,f)=>!d.length&&s[f])&&i.complete()}},()=>{s[o]=!0,!r[o].length&&i.complete()}));return()=>{r=s=null}}):Ns}(...Object.entries(this._options.languages).map(([r,s])=>Q0(s()).pipe(_i(o=>e.registerLanguage(r,o))))).pipe(z(()=>e))}loadCoreLibrary(){return Q0(this._options.coreLibraryLoader())}loadFullLibrary(){return Q0(this._options.fullLibraryLoader())}loadLineNumbers(){return Q0(this._options.lineNumbersLoader())}setTheme(e){this._themeLinkElement.href=e}loadTheme(e){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=e,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Gh),Re(X0,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Q0=n=>pi(n).pipe(ji(t=>!!t&&!!t.default),z(t=>t.default));let pie=(()=>{class n{constructor(e,i){this._loader=e,this._hljs=null,e.ready.subscribe(r=>{this._hljs=r,i&&i.config&&(r.configure(i.config),r.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(e,{language:i,ignoreIllegals:r}){return this._loader.ready.pipe(z(s=>s.highlight(e,{language:i,ignoreIllegals:r})))}highlightAuto(e,i){return this._loader.ready.pipe(z(r=>r.highlightAuto(e,i)))}highlightElement(e){return this._loader.ready.pipe(z(i=>i.highlightElement(e)))}highlightAll(){return this._loader.ready.pipe(z(e=>e.highlightAll()))}configure(e){return this._loader.ready.pipe(z(i=>i.configure(e)))}registerLanguage(e,i){return this._loader.ready.pipe(_i(r=>r.registerLanguage(e,i)))}unregisterLanguage(e){return this._loader.ready.pipe(_i(i=>i.unregisterLanguage(e)))}registerAliases(e,{languageName:i}){return this._loader.ready.pipe(_i(r=>r.registerAliases(e,{languageName:i})))}listLanguages(){return this._loader.ready.pipe(z(e=>e.listLanguages()))}getLanguage(e){return this._loader.ready.pipe(z(i=>i.getLanguage(e)))}safeMode(){return this._loader.ready.pipe(z(e=>e.safeMode()))}debugMode(){return this._loader.ready.pipe(z(e=>e.debugMode()))}lineNumbersBlock(e){return this._loader.ready.pipe(ji(i=>!!i.lineNumbersBlock),_i(i=>i.lineNumbersBlock(e)))}}return n.\u0275fac=function(e){return new(e||n)(Re(fie),Re(X0,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mie=(()=>{class n{constructor(e,i,r,s){this._hljs=i,this._sanitizer=r,this._options=s,this.highlighted=new yt,this._nativeElement=e.nativeElement}ngOnChanges(e){var i;null!==(null===(i=null==e?void 0:e.code)||void 0===i?void 0:i.currentValue)&&e.code.currentValue!==e.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(e,i){this.setTextContent(e),this._hljs.highlightAuto(e,i).subscribe(r=>{this.setInnerHTML(null==r?void 0:r.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(r)})}addLineNumbers(){this.destroyLineNumbersObserver(),Xy.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(e){Xy.schedule(()=>this._nativeElement.textContent=e)}setInnerHTML(e){Xy.schedule(()=>this._nativeElement.innerHTML=function hie(n){var t;return(null===(t=function die(){var n;if(!gk)try{gk=null===(n=null==window?void 0:window.trustedTypes)||void 0===n?void 0:n.createPolicy("ngx-highlightjs",{createHTML:t=>t})}catch(t){}return gk}())||void 0===t?void 0:t.createHTML(n))||n}(this._sanitizer.sanitize(jn.HTML,e)||""))}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(pie),R(Yu),R(X0,8))},n.\u0275dir=qe({type:n,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(e,i){2&e&&Kt("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[Zt]}),n})(),gie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();function _ie(n,t){if(1&n&&(Y(0,"pre"),ft(1,"code",2),ee()),2&n){const e=t.ngIf;ye(1),Pe("highlight",e)}}function vie(n,t){1&n&&ft(0,"app-loading-indicator",3)}let yie=(()=>{class n{constructor(e){this.http=e,this.jsonUrl="",this.jsonStr$=At(null)}ngOnChanges(e){e.jsonUrl&&this.updateJson()}updateJson(){this.jsonStr$=this.jsonUrl?this.http.get(this.jsonUrl,{responseType:"text"}):At(null)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(R(nd))},n.\u0275cmp=Ct({type:n,selectors:[["app-json-preview"]],inputs:{jsonUrl:"jsonUrl"},features:[Zt],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"highlight"],["text","Lade Vorschau..."]],template:function(e,i){if(1&e&&(mt(0,_ie,2,1,"pre",0),ui(1,"async"),mt(2,vie,1,0,"ng-template",null,1,Hl)),2&e){const r=zi(3);Pe("ngIf",wi(1,2,i.jsonStr$))("ngIfElse",r)}},dependencies:[mr,mie,Pg,Ga],styles:["[_nghost-%COMP%]{display:flex;height:100%;width:100%}pre[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;margin:0}code[_ngcontent-%COMP%]{width:100%;white-space:pre-wrap}"]}),n})(),wH=(()=>{class n{transform(e,...i){switch(e){case"csv":case"json":return"leaderboard";case"md":case"pdf":return"text_snippet";case"xz":return"compress"}return"note"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"extToIconname",type:n,pure:!0}),n})(),CH=(()=>{class n{transform(e,...i){const r=e.split(".").filter(s=>s);return Rs.tail(r).join(".")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"datasourceContentExt",type:n,pure:!0}),n})();function bie(n,t){1&n&&(Y(0,"span",13),ie(1,"LFS"),ee())}function wie(n,t){if(1&n&&(Y(0,"div",14)(1,"div",15)(2,"div",16),ie(3,"Die Vorschau f\xfcr LFS-Dateien ist leider nicht m\xf6glich"),ee(),Y(4,"mat-icon",17),ie(5,"sentiment_very_dissatisfied"),ee()(),Y(6,"p",18),ie(7," Bei der Datei "),Y(8,"b")(9,"i"),ie(10),ee()(),ie(11," handelt es sich um eine "),Y(12,"a",19),ie(13,"Large File System (LFS)"),ee(),ie(14," Datei und kann leider nicht in der Vorschau angezeigt werden, da diese Datei eventuell sehr gro\xdf ist und zum anzeigen komplett heruntergeladen werden muss. "),ee(),Y(15,"p",20),ie(16," Sie k\xf6nnen sich die Daten in einem seperaten Tab ansehen, indem Sie auf diesen "),Y(17,"a",21),ie(18,"Link"),ee(),ie(19," klicken. "),ee()()),2&n){const e=Qe(2);ye(10),Yn(e.content.name),ye(7),Pe("href",e.content.visitUrl,zs)}}function Cie(n,t){if(1&n&&(dr(0),ft(1,"app-markdown-preview",26),hr()),2&n){const e=Qe(4);ye(1),Pe("baseUrl",e.baseUrl)("url",e.content.previewUrl)}}function Die(n,t){if(1&n&&(dr(0),ft(1,"app-pdf-preview",27),hr()),2&n){const e=Qe(4);ye(1),Pe("pdfSrc",e.content.previewUrl)}}function Sie(n,t){if(1&n&&(dr(0),ft(1,"app-csv-table",28),hr()),2&n){const e=Qe(4);ye(1),Pe("csvUrl",e.content.previewUrl)("fileName",e.content.name)("noParseFields",e.fieldsNotToParse)}}function Aie(n,t){if(1&n&&(dr(0),ft(1,"app-image-preview",29),hr()),2&n){const e=Qe(4);ye(1),Pe("imgUrl",e.content.previewUrl)}}function Mie(n,t){if(1&n&&(dr(0),ft(1,"app-image-preview",29),hr()),2&n){const e=Qe(4);ye(1),Pe("imgUrl",e.content.previewUrl)}}function Eie(n,t){if(1&n&&(dr(0),ft(1,"app-image-preview",29),hr()),2&n){const e=Qe(4);ye(1),Pe("imgUrl",e.content.previewUrl)}}function xie(n,t){if(1&n&&(dr(0),ft(1,"app-json-preview",30),hr()),2&n){const e=Qe(4);ye(1),Pe("jsonUrl",e.content.previewUrl)}}function kie(n,t){if(1&n&&(Y(0,"div",31)(1,"div",15)(2,"div",16),ie(3,"Vorschau leider nicht m\xf6glich"),ee(),Y(4,"mat-icon",17),ie(5,"sentiment_very_dissatisfied"),ee()(),Y(6,"p",18),ie(7," Die Datei "),Y(8,"b")(9,"i"),ie(10),ee()(),ie(11," kann nicht angezeigt werden, da f\xfcr die Endung "),Y(12,"b")(13,"i"),ie(14),ee()(),ie(15," keine geeignete Vorschau verf\xfcgbar ist. "),ee(),Y(16,"p",20),ie(17," Sie k\xf6nnen sich die Daten in einem seperaten Tab ansehen, indem Sie auf diesen "),Y(18,"a",21),ie(19,"Link"),ee(),ie(20," klicken. "),ee()()),2&n){const e=Qe(4);ye(10),Yn(e.content.name),ye(4),Yn(e.contentPathExt),ye(4),Pe("href",e.content.visitUrl,zs)}}function Tie(n,t){1&n&&(dr(0,23),mt(1,Cie,2,2,"ng-container",24),mt(2,Die,2,1,"ng-container",24),mt(3,Sie,2,3,"ng-container",24),mt(4,Aie,2,1,"ng-container",24),mt(5,Mie,2,1,"ng-container",24),mt(6,Eie,2,1,"ng-container",24),mt(7,xie,2,1,"ng-container",24),mt(8,kie,21,3,"div",25),hr()),2&n&&(Pe("ngSwitch",Qe(3).contentPathExt),ye(1),Pe("ngSwitchCase","md"),ye(1),Pe("ngSwitchCase","pdf"),ye(1),Pe("ngSwitchCase","csv"),ye(1),Pe("ngSwitchCase","jpg"),ye(1),Pe("ngSwitchCase","jpeg"),ye(1),Pe("ngSwitchCase","png"),ye(1),Pe("ngSwitchCase","json"))}function Pie(n,t){if(1&n&&(dr(0),mt(1,Tie,9,8,"ng-container",22),hr()),2&n){const e=Qe(2);ye(1),Pe("ngIf",e.contentPathExt&&"file"===e.content.$type)}}function Rie(n,t){if(1&n){const e=ii();Y(0,"div",1)(1,"mat-toolbar",2)(2,"span",3)(3,"mat-icon",4),ie(4),ui(5,"extToIconname"),ui(6,"datasourceContentExt"),ee(),Y(7,"span",5),ie(8),ee(),mt(9,bie,2,0,"span",6),ee(),Y(10,"a",7),ie(11," Quelle ansehen "),ee(),Y(12,"a",8),vt("click",function(){zt(e);const r=Qe();return Wt(r.startDownload(r.content))}),Y(13,"mat-icon"),ie(14,"file_download"),ee(),ie(15," Download "),ee(),Y(16,"button",9),vt("click",function(){return zt(e),Wt(Qe().doClose())}),Y(17,"mat-icon"),ie(18,"close"),ee()()(),Y(19,"div",10),mt(20,wie,20,2,"div",11),mt(21,Pie,2,1,"ng-container",12),ee()()}if(2&n){const e=Qe();ye(4),ci(" ",wi(5,7,wi(6,9,e.content.name))," "),ye(3),Pe("title",e.content.name),ye(1),Yn(e.content.name),ye(1),Pe("ngIf",e.content.lfs),ye(1),Pe("href",e.content.visitUrl,zs),ye(10),Pe("ngIf",e.content.lfs),ye(1),Pe("ngIf",!e.content.lfs)}}let Iie=(()=>{class n{constructor(e){this.downloadService=e,this.close=new yt(!0),this.fieldsNotToParse=[]}ngOnInit(){}ngOnChanges(e){this.update()}update(){var e;this.contentPathExt=Rs.last(null===(e=this.content)||void 0===e?void 0:e.path.split(".")),this.baseUrl=this.datasource?`https://raw.githubusercontent.com/robert-koch-institut/${this.datasource.id}/${this.datasource.branch}`:void 0,this.fieldsNotToParse=Fte.filter(i=>{let r=!0;return this.datasource&&i.hasOwnProperty("datasource")&&(r=this.datasource.id===i.datasource),this.content&&i.hasOwnProperty("filename")&&(r=r&&this.content.path===i.filename),r}).map(i=>i.field)}startDownload(e){this.downloadService.download(e)}doClose(){this.close.emit()}}return n.\u0275fac=function(e){return new(e||n)(R(sH))},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-content-preview"]],inputs:{datasource:"datasource",content:"content"},outputs:{close:"close"},features:[Zt],decls:1,vars:1,consts:[["class","datasource-content-preview-component mat-elevation-z9",4,"ngIf"],[1,"datasource-content-preview-component","mat-elevation-z9"],["color","accent",1,"header"],[1,"title"],[1,"icon"],[1,"text",3,"title"],["class","lfs",4,"ngIf"],["mat-button","","target","_blank",1,"source-button",3,"href"],["mat-button","",1,"download-button",3,"click"],["mat-icon-button","",1,"close-button",3,"click"],[1,"preview-container"],["class","lfs-info-container no-preview-available",4,"ngIf"],[4,"ngIf"],[1,"lfs"],[1,"lfs-info-container","no-preview-available"],[1,"title","mat-headline"],[1,"text"],[1,"icon","sad-face"],[1,"hint","mat-hint"],["href","https://git-lfs.github.com/","target","_blank"],[1,"visit-link","mat-hint"],["target","_blank",3,"href"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-preview-available",4,"ngSwitchDefault"],[3,"baseUrl","url"],[3,"pdfSrc"],[3,"csvUrl","fileName","noParseFields"],[3,"imgUrl"],[3,"jsonUrl"],[1,"no-preview-available"]],template:function(e,i){1&e&&mt(0,Rie,22,11,"div",0),2&e&&Pe("ngIf",i.content&&"file"===i.content.$type)},dependencies:[mr,qu,xm,SO,cf,rl,VE,jK,Hte,Ute,qte,cie,yie,wH,CH],changeDetection:0}),n})(),Oie=(()=>{class n{constructor(e,i,r){this.overlay=e,this.document=i,this.rendererFactory=r,this.renderer=this.rendererFactory.createRenderer(null,null)}showContentPreview(e,i){this.showPreview(e,i)}showPreview(e,i){if(!this.previeWRef){const r=this.overlay.position().global().centerHorizontally().centerVertically(),s=this.overlay.create({positionStrategy:r,hasBackdrop:!0,panelClass:"overlay-dialog-panel",scrollStrategy:this.overlay.scrollStrategies.block(),disposeOnNavigation:!0}),o=new sd(Iie);this.previeWRef=s.attach(o),this.renderer.addClass(this.document.body,"noScroll");const a=function Ite(...n){return 1===(n=rH(n)).length?$n(n[0]):new _e(function Ote(n){return t=>{let e=[];for(let i=0;e&&!t.closed&&i<n.length;i++)e.push($n(n[i]).subscribe(N(t,r=>{if(e){for(let s=0;s<e.length;s++)s!==i&&e[s].unsubscribe();e=null}t.next(r)})))}}(n))}([s.backdropClick(),this.previeWRef.instance.close.asObservable()]).subscribe(()=>{s.dispose(),this.previeWRef=void 0,this.renderer.removeClass(this.document.body,"noScroll"),setTimeout(()=>a.unsubscribe())})}this.previeWRef.instance.content=i,this.previeWRef.instance.datasource=e,this.previeWRef.instance.update()}}return n.\u0275fac=function(e){return new(e||n)(Re(Po),Re(Qt),Re(Ol))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fie=(()=>{class n{transform(e,...i){const r=e.split(".").filter(o=>o);return(Rs.head(r)||"").split("_").join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"filenameBeautify",type:n,pure:!0}),n})(),Lie=(()=>{class n{transform(e,...i){const r=0===e?0:Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(0)+" "+["B","kB","MB","GB","TB"][r]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"fileSize",type:n,pure:!0}),n})();function Nie(n,t){if(1&n){const e=ii();Y(0,"mat-tree-node",4)(1,"div",5)(2,"div",6)(3,"div",7),vt("click",function(){const s=zt(e).$implicit;return Wt(Qe().showPreview(s))}),Y(4,"mat-icon"),ie(5),ui(6,"extToIconname"),ui(7,"datasourceContentExt"),ee()(),Y(8,"span",8),vt("click",function(){const s=zt(e).$implicit;return Wt(Qe().showPreview(s))}),ie(9),ui(10,"filenameBeautify"),ee(),Y(11,"div",9),vt("click",function(){const s=zt(e).$implicit;return Wt(Qe().showPreview(s))}),ie(12),ui(13,"uppercase"),ui(14,"datasourceContentExt"),ee(),Y(15,"div",10),ui(16,"fileSize"),ie(17),ui(18,"fileSize"),ee(),Y(19,"a",11),vt("click",function(){const s=zt(e).$implicit;return Wt(Qe().startDownload(s))}),ie(20," Download "),ee()(),Y(21,"div",12),ft(22,"mat-divider"),ee()()()}if(2&n){const e=t.$implicit;ye(5),ci(" ",wi(6,6,wi(7,8,e.name))," "),ye(3),Pe("title",e.name),ye(1),Yn(wi(10,10,e.name)),ye(3),ci(" ",wi(13,12,wi(14,14,e.name))," "),ye(3),Pe("title",wi(16,16,e.size)),ye(2),ci(" ",wi(18,18,e.size)," ")}}function Vie(n,t){if(1&n){const e=ii();Y(0,"mat-nested-tree-node")(1,"div",13)(2,"div",14),vt("click",function(){const s=zt(e).$implicit;return Wt(Qe().treeControl.toggle(s))}),Y(3,"div",15)(4,"mat-icon"),ie(5),ee()(),Y(6,"span",16),ie(7),ee()(),Y(8,"div",12),ft(9,"mat-divider"),ee(),Y(10,"div",17),oo(11,18),ee()()()}if(2&n){const e=t.$implicit,i=Qe();ye(5),ci(" ",i.treeControl.isExpanded(e)?"expand_more":"chevron_right"," "),ye(1),Pe("title",e.name),ye(1),Yn(e.name),ye(3),Kt("invisible",!i.treeControl.isExpanded(e))}}let Bie=(()=>{class n{constructor(e,i){this.overlayService=e,this.downloadService=i,this.treeControl=new mV(r=>"folder"===r.$type?iH.orderContent(r.content):void 0),this.treeDatasource=new H9,this.trackBy=(r,s)=>s.path,this.hasChild=(r,s)=>"folder"===s.$type&&s.content.length>0}ngOnChanges(e){e.datasource&&(this.treeDatasource.data=void 0===this.datasource?[]:iH.orderContent(this.datasource.content))}ngOnInit(){}startDownload(e){this.downloadService.download(e)}showPreview(e){this.datasource&&this.overlayService.showContentPreview(this.datasource,e)}trackByPath(e,i){return i.path}}return n.\u0275fac=function(e){return new(e||n)(R(Oie),R(sH))},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-content-list"]],inputs:{datasource:"datasource"},features:[Zt],decls:4,vars:4,consts:[[1,"tree-container"],[1,"content-tree",3,"dataSource","treeControl","trackBy"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"tree-item","file-tree-item"],[1,"tree-item-content"],[1,"icon-wrapper",3,"click"],[1,"file-name","file-item-element",3,"title","click"],[1,"file-extention","file-item-element",3,"click"],[1,"file-size","file-item-element",3,"title"],["mat-raised-button","","color","accent","download","",1,"file-download",3,"click"],[1,"tree-item-divider"],[1,"tree-item","folder-tree-item"],[1,"tree-item-content",3,"click"],[1,"icon-wrapper"],[1,"folder-name",3,"title"],["role","group",1,"tree-item-childs"],["matTreeNodeOutlet",""]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"mat-tree",1),mt(2,Nie,23,20,"mat-tree-node",2),mt(3,Vie,12,5,"mat-nested-tree-node",3),ee()()),2&e&&(ye(1),Pe("dataSource",i.treeDatasource)("treeControl",i.treeControl)("trackBy",i.trackBy),ye(2),Pe("matTreeNodeDefWhen",i.hasChild))},dependencies:[vne,cf,yV,vV,wV,bV,_V,m0,VE,EO,wH,CH,Fie,Lie],styles:['.tree-container[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.content-tree[_ngcontent-%COMP%]{background-color:unset;min-width:440px}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;cursor:pointer}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:48px;width:100%}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-content[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{padding:0;min-width:0;margin-right:1em;flex-shrink:0;text-align:center;height:24px;width:24px}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] > .tree-item-content[_ngcontent-%COMP%]:hover > .file-item-element[_ngcontent-%COMP%]{text-decoration:underline}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] > .tree-item-content[_ngcontent-%COMP%]:hover > .folder-name[_ngcontent-%COMP%]{text-decoration:underline}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-divider[_ngcontent-%COMP%]{position:relative;left:0;width:unset}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-childs[_ngcontent-%COMP%]{padding-left:40px}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-childs.invisible[_ngcontent-%COMP%]{display:none}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-item-element[_ngcontent-%COMP%]{margin-right:1em}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-lfs-mark[_ngcontent-%COMP%]{color:teal}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-size[_ngcontent-%COMP%]{flex:0 0 55px;text-align:right}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-download[_ngcontent-%COMP%]{width:125px}.content-tree[_ngcontent-%COMP%] .tree-item.folder-tree-item[_ngcontent-%COMP%] .folder-name[_ngcontent-%COMP%]{flex:1;cursor:pointer;overflow:hidden;text-overflow:ellipsis} .content-tree mat-tree-node.mat-tree-node[aria-level="1"]:last-child .tree-item mat-divider{display:none}']}),n})(),Hie=(()=>{class n{constructor(){this.datePipe=new eM("de"),this.citeString="",this.tooltipMessage="Zitierangaben in Zwischenablage kopiert"}ngOnChanges(e){e.datasource&&(this.citeString=this.createCiteString())}ngOnInit(){}showTooltip(e){e.disabled=!1,e.show(),setTimeout(()=>{e.hide(),e.disabled=!0},2e3)}createCiteString(){if(!this.datasource)return"";let e="";return e=Rs.reduce(this.datasource.authors,(i,r,s,o)=>i+(0===s?r:s===o.length-1?` und ${r}`:`, ${r}`),""),`${e} (${this.datePipe.transform(this.datasource.lastUpdated,"yyyy")}): ${this.datasource.name}, Berlin:Zenodo. DOI: ${this.datasource.doi}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-cite"]],inputs:{datasource:"datasource"},features:[Zt],decls:11,vars:5,consts:[[1,"cite-comp-container"],[1,"title-row"],["id","cite",1,"mat-subheading-2"],["mat-icon-button","","matTooltipDisabled","",1,"copy-button","subheading-2-fontsize",3,"matTooltip","cdkCopyToClipboard","cdkCopyToClipboardCopied"],["btnTooltip","matTooltip"],["matTooltipDisabled","",1,"cite-string",3,"matTooltip","cdkCopyToClipboard","cdkCopyToClipboardCopied"],["stringTooltip","matTooltip"]],template:function(e,i){if(1&e){const r=ii();Y(0,"div",0)(1,"div",1)(2,"div",2),ie(3,"Zitieren "),ee(),Y(4,"button",3,4),vt("cdkCopyToClipboardCopied",function(){zt(r);const o=zi(5);return Wt(i.showTooltip(o))}),Y(6,"mat-icon"),ie(7,"content_copy"),ee()()(),Y(8,"p",5,6),vt("cdkCopyToClipboardCopied",function(){zt(r);const o=zi(9);return Wt(i.showTooltip(o))}),ie(10),ee()()}2&e&&(ye(4),Pe("matTooltip",i.tooltipMessage)("cdkCopyToClipboard",i.citeString),ye(4),Pe("matTooltip",i.tooltipMessage)("cdkCopyToClipboard",i.citeString),ye(2),Yn(i.citeString))},dependencies:[cf,rl,NJ,nte]}),n})();function zie(n,t){if(1&n&&(Y(0,"mat-chip-list")(1,"mat-chip",4)(2,"a",5),ie(3),ee()()()),2&n){const e=Qe(2);ye(2),Pe("href",e.licenceUrl,zs),ye(1),Yn(e.datasource.licence)}}function Uie(n,t){if(1&n&&(Y(0,"div",2),mt(1,zie,4,2,"mat-chip-list",3),ee()),2&n){const e=Qe(),i=zi(2);ye(1),Pe("ngIf","small"===e.mode)("ngIfElse",i)}}function jie(n,t){1&n&&(Y(0,"a",9)(1,"div",10),ie(2,"Creative Commons Namensnennung 4.0 International"),ee()()),2&n&&Pe("href",Qe(2).licenceUrl,zs)}function $ie(n,t){if(1&n&&(Y(0,"div",6),ie(1,"Lizenz"),ee(),Y(2,"div",7),mt(3,jie,3,1,"a",8),ee()),2&n){const e=Qe();ye(3),Pe("ngIf",e.datasource&&"CC-BY-4.0"===e.datasource.licence)}}let Wie=(()=>{class n{constructor(){this.mode="small",this.licenceUrl="#",this.licenceUrlMap=new Map([["cc-by-4.0","https://creativecommons.org/licenses/by/4.0/deed.de"]])}ngOnChanges(e){e.datasource&&this.updateLicenceUrl()}updateLicenceUrl(){let e="#";if(this.datasource){const i=this.datasource.licence.toLowerCase();this.licenceUrlMap.has(i)&&(e=this.licenceUrlMap.get(i))}this.licenceUrl=e}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-licence"]],inputs:{datasource:"datasource",mode:"mode"},features:[Zt],decls:3,vars:1,consts:[["class","datasource-licence",4,"ngIf"],["largeLicence",""],[1,"datasource-licence"],[4,"ngIf","ngIfElse"],["color","primary","selected","",1,"licence-chip"],["target","_blank",1,"licence-link",3,"href"],["id","licence",1,"mat-subheading-2"],[1,"licence-large"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],[1,"licence-name"]],template:function(e,i){1&e&&(mt(0,Uie,2,2,"div",0),mt(1,$ie,4,1,"ng-template",null,1,Hl)),2&e&&Pe("ngIf",i.datasource)},dependencies:[mr,gx,Dg]}),n})();function Gie(n,t){if(1&n&&(Y(0,"mat-chip",5)(1,"a",6),ie(2),ee()()),2&n){const e=t.$implicit;Pe("selectable",!1),ye(1),Pe("href","https://zenodo.org/search?q=keywords:%22"+e+"%22",zs),ye(1),Yn(e)}}function qie(n,t){if(1&n){const e=ii();Y(0,"mat-chip",7),vt("click",function(){return zt(e),Wt(Qe(2).showAll=!0)}),ie(1),ee()}if(2&n){const e=Qe(2);ye(1),ci(" +",e.datasource.tags.length-e.amount," mehr... ")}}function Yie(n,t){if(1&n&&(Y(0,"mat-chip-list",2),mt(1,Gie,3,3,"mat-chip",3),ui(2,"slice"),mt(3,qie,2,1,"mat-chip",4),ee()),2&n){const e=Qe();Pe("selectable",!1),ye(1),Pe("ngForOf",e.showAll?e.datasource.tags:function rI(n,t,e,i,r){const s=n+22,o=ct(),a=Yi(o,s);return wm(o,s)?eI(o,Jr(),t,a.transform,e,i,r,a):a.transform(e,i,r)}(2,4,e.datasource.tags,0,e.amount))("ngForTrackBy",e.trackById),ye(2),Pe("ngIf",!e.showAll&&e.datasource.tags.length>e.amount)}}let Kie=(()=>{class n{constructor(){this.amount=10,this.showAll=!1}ngOnInit(){}trackById(e,i){return i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-tags"]],inputs:{datasource:"datasource",amount:"amount"},decls:3,vars:1,consts:[["id","tags",1,"mat-title"],["class","tag-list",3,"selectable",4,"ngIf"],[1,"tag-list",3,"selectable"],["class","tag-chip",3,"selectable",4,"ngFor","ngForOf","ngForTrackBy"],["class","tag-chip",3,"click",4,"ngIf"],[1,"tag-chip",3,"selectable"],["target","_blank",1,"tag-link",3,"href"],[1,"tag-chip",3,"click"]],template:function(e,i){1&e&&(Y(0,"div",0),ie(1,"Schlagw\xf6rter"),ee(),mt(2,Yie,4,8,"mat-chip-list",1)),2&e&&(ye(2),Pe("ngIf",i.datasource))},dependencies:[zc,mr,gx,Dg,kO]}),n})(),Xie=(()=>{class n{constructor(){this.mapping=new Map([["DataCurator","Datenkuration"],["DataManager","Datenverwaltung"],["ProjectLeader","Projektleitung"],["ProjectManager","Projektmanagement"],["Researcher","Forschung"]])}transform(e,...i){return this.mapping.has(e)?this.mapping.get(e):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"contributorRoleLabel",type:n,pure:!0}),n})();function Qie(n,t){if(1&n&&(Y(0,"div",3),ie(1),ee()),2&n){const e=t.$implicit;ye(1),ci(" ",e," ")}}function Zie(n,t){if(1&n&&(dr(0),Y(1,"div",1),mt(2,Qie,2,1,"div",2),ee(),hr()),2&n){const e=Qe();ye(2),Pe("ngForOf",e.authors)}}function Jie(n,t){if(1&n&&(Y(0,"div",9),ie(1),ui(2,"contributorRoleLabel"),ee()),2&n){const e=Qe().$implicit;ye(1),Yn(wi(2,1,e.role))}}function ere(n,t){if(1&n){const e=ii();Y(0,"div",7),vt("mouseenter",function(){const s=zt(e).$implicit;return Wt(Qe(2).showRole=s)})("mouseleave",function(){return zt(e),Wt(Qe(2).showRole=void 0)}),ie(1),mt(2,Jie,3,3,"div",8),ee()}if(2&n){const e=t.$implicit,i=Qe(2);ye(1),ci(" ",e.name," "),ye(1),Pe("ngIf",i.showRole===e)}}function tre(n,t){if(1&n&&(dr(0),Y(1,"div",4),ie(2,"Beitragende"),ee(),Y(3,"div",5),mt(4,ere,3,2,"div",6),ee(),hr()),2&n){const e=Qe();ye(4),Pe("ngForOf",e.contributors)}}let nre=(()=>{class n{constructor(){}ngOnChanges(e){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-contributor-list"]],inputs:{contributors:"contributors",authors:"authors"},features:[Zt],decls:2,vars:2,consts:[[4,"ngIf"],[1,"name-container","author-container"],["class","author",4,"ngFor","ngForOf"],[1,"author"],[1,"contrib-title"],[1,"name-container","contrib-container"],["class","contrib",3,"mouseenter","mouseleave",4,"ngFor","ngForOf"],[1,"contrib",3,"mouseenter","mouseleave"],["class","contrib-role",4,"ngIf"],[1,"contrib-role"]],template:function(e,i){1&e&&(mt(0,Zie,3,1,"ng-container",0),mt(1,tre,5,1,"ng-container",0)),2&e&&(Pe("ngIf",i.authors&&i.authors.length>0),ye(1),Pe("ngIf",i.contributors&&i.contributors.length>0))},dependencies:[zc,mr,Xie],styles:[".name-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.25em 1.25em}.contrib-title[_ngcontent-%COMP%]{font:800 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.contrib-container[_ngcontent-%COMP%] .contrib[_ngcontent-%COMP%]{position:relative}.contrib-container[_ngcontent-%COMP%] .contrib[_ngcontent-%COMP%] .contrib-role[_ngcontent-%COMP%]{position:absolute;top:1.25em;padding:8px 12px;z-index:10}.author-container[_ngcontent-%COMP%] .author[_ngcontent-%COMP%]{font:800 16px/28px Roboto,Helvetica Neue,sans-serif}"]}),n})();function ire(n,t){if(1&n&&(Y(0,"a",3),ft(1,"div",4),ee()),2&n){const e=t.$implicit;Pe("href",e.url,zs),ye(1),Pe("ngClass",e.$type+"-link")}}function rre(n,t){if(1&n&&(Y(0,"div",1),mt(1,ire,2,2,"a",2),ee()),2&n){const e=Qe();ye(1),Pe("ngForOf",e.datasource.externalLinks)}}let sre=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-links"]],inputs:{datasource:"datasource"},decls:1,vars:1,consts:[["class","datasource-link-component link-container",4,"ngIf"],[1,"datasource-link-component","link-container"],["mat-raised-button","","color","accent","class","link external-link","target","_blank",3,"href",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent","target","_blank",1,"link","external-link",3,"href"],[1,"link-logo",3,"ngClass"]],template:function(e,i){1&e&&mt(0,rre,2,1,"div",0),2&e&&Pe("ngIf",i.datasource)},dependencies:[Gu,zc,mr,VE]}),n})();const ore=["tocItem"];function are(n,t){if(1&n&&(Y(0,"cdk-nested-tree-node",3,4),ft(2,"div",5),Y(3,"div",6)(4,"a",7),ie(5),ee()()()),2&n){const e=t.$implicit;Kt("active",e.active),ye(4),Pe("href","#"+e.fragment,zs),ye(1),Yn(e.label)}}function lre(n,t){if(1&n&&(Y(0,"cdk-nested-tree-node",3,4),ft(2,"div",5),Y(3,"div",6)(4,"a",7),ie(5),ee()(),ft(6,"div",8),Y(7,"div",9),oo(8,10),ee()()),2&n){const e=t.$implicit,i=Qe();Kt("active",e.active),ye(4),Pe("href","#"+e.fragment,zs),ye(1),Yn(e.label),ye(2),Kt("tree-invisible",!i.treeControl.isExpanded(e))}}let cre=(()=>{class n{constructor(e,i,r){this.renderer=e,this.markdownService=i,this.document=r,this.tocItems=[],this.treeDataSource=new hF([]),this.treeControl=new mV(s=>s.children),this.hasChild=(s,o)=>o.children.length>0,this.h2RegEx=new RegExp('<h(?<level>[23]+) id="(?<fragment>.*)">(?<title>.*)<\\/h[23]+>',"g")}ngAfterViewInit(){}ngOnChanges(e){e.datasource&&this.updateTocItems()}ngOnInit(){this.updateTocItems()}createDocumentationTocItems(){const e=[];if(this.datasource){const i=this.markdownService.parse(this.datasource.readme);let r=null,s=this.h2RegEx.exec(i);do{if(s&&s.groups&&s.groups.title&&s.groups.fragment&&s.groups.level){const o=parseInt(s.groups.level);2===o?(null!==r&&e.push(r),r={label:s.groups.title,fragment:s.groups.fragment,level:o,children:[],active:!1}):null==r||r.children.push({label:s.groups.title,fragment:s.groups.fragment,level:o,children:[],active:!1})}}while(null!==(s=this.h2RegEx.exec(i)))}return e}updateTocItems(){this.tocItems=this.createDocumentationTocItems(),this.treeDataSource=new hF(this.tocItems),this.activateFirstItem()}onWindowScrolled(e){const i=e.scrollingElement;this.tocItems.forEach(s=>{s.active=!1,this.treeControl.collapse(s),s.children.forEach(o=>{o.active=!1,this.treeControl.collapse(o)})});const r=Rs.findLast(this.tocItems,s=>{const o=i.querySelector(`#${decodeURIComponent(s.fragment)}`);return Math.floor(o.getBoundingClientRect().top)<=136});if(r){this.activateTocItem(r);const s=Rs.findLast(r.children,o=>{const a=i.querySelector(`#${decodeURIComponent(o.fragment)}`);return Math.floor(a.getBoundingClientRect().top)<=136});s&&(s.active=!0)}this.activateFirstItem()}activateFirstItem(){this.tocItems.length>0&&!this.tocItems.some(e=>e.active)&&this.activateTocItem(this.tocItems[0])}activateTocItem(e){e.active=!0,this.treeControl.expand(e),this.tocItems.forEach(i=>{i!==e&&this.treeControl.collapse(i)})}isInViewport(e){const i=e.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom<=this.document.documentElement.clientHeight&&i.right<=this.document.documentElement.clientWidth}}return n.\u0275fac=function(e){return new(e||n)(R(Us),R(N0),R(Qt))},n.\u0275cmp=Ct({type:n,selectors:[["app-table-of-content"]],viewQuery:function(e,i){if(1&e&&Hn(ore,5),2&e){let r;Dt(r=St())&&(i.tocElements=r)}},hostBindings:function(e,i){1&e&&vt("scroll",function(s){return i.onWindowScrolled(s.target)},0,Nc)},inputs:{scrollContainerSelector:"scrollContainerSelector",datasource:"datasource"},features:[Zt],decls:3,vars:3,consts:[[1,"toc",3,"dataSource","treeControl"],["class","toc-item",3,"active",4,"cdkTreeNodeDef"],["class","toc-item",3,"active",4,"cdkTreeNodeDef","cdkTreeNodeDefWhen"],[1,"toc-item"],["tocItem",""],[1,"active-indicator"],[1,"link-container"],["pageScroll","",1,"toc-item-link",3,"href"],[1,"flex-break"],[1,"child-container"],["cdkTreeNodeOutlet",""]],template:function(e,i){1&e&&(Y(0,"cdk-tree",0),mt(1,are,6,4,"cdk-nested-tree-node",1),mt(2,lre,9,6,"cdk-nested-tree-node",2),ee()),2&e&&(Pe("dataSource",i.treeDataSource)("treeControl",i.treeControl),ye(2),Pe("cdkTreeNodeDefWhen",i.hasChild))},dependencies:[p0,Sg,sl,df,U9],styles:["mat-list mat-list-item.toc-item .mat-list-item-content{padding:0!important}"]}),n})();const ure=["keepInView"],dre=["*"];let hre=(()=>{class n{constructor(e,i){this.elementRef=e,this.renderer=i,this.topOffset=0}ngOnInit(){}onResize(){Rs.delay(()=>this.onScroll(),30)}onScroll(){this.elementRef.nativeElement.getBoundingClientRect().top<=this.topOffset?(this.renderer.addClass(this.keepInViewElement.nativeElement,"fixed"),this.renderer.setStyle(this.keepInViewElement.nativeElement,"top",`${this.topOffset}px`),this.renderer.setStyle(this.keepInViewElement.nativeElement,"width",`${this.keepInViewElement.nativeElement.parentElement.clientWidth||0}px`)):(this.renderer.removeClass(this.keepInViewElement.nativeElement,"fixed"),this.renderer.removeStyle(this.keepInViewElement.nativeElement,"top"),this.renderer.removeStyle(this.keepInViewElement.nativeElement,"width"))}}return n.\u0275fac=function(e){return new(e||n)(R(bt),R(Us))},n.\u0275cmp=Ct({type:n,selectors:[["app-keep-in-view"]],viewQuery:function(e,i){if(1&e&&Hn(ure,5),2&e){let r;Dt(r=St())&&(i.keepInViewElement=r.first)}},hostBindings:function(e,i){1&e&&vt("resize",function(){return i.onResize()},0,Nc)("scroll",function(){return i.onScroll()},!1,Nc)},inputs:{topOffset:"topOffset"},ngContentSelectors:dre,decls:4,vars:0,consts:[[1,"keep-in-view-container"],[1,"keep-in-view"],["keepInView",""]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0)(1,"div",1,2),Vn(3),ee()())},styles:[".keep-in-view-container[_ngcontent-%COMP%]{position:relative}.keep-in-view-container[_ngcontent-%COMP%] .keep-in-view.fixed[_ngcontent-%COMP%]{position:fixed}"]}),n})(),fre=(()=>{class n{constructor(e){this.sanatizer=e}transform(e,...i){return this.sanatizer.bypassSecurityTrustHtml(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Yu,16))},n.\u0275pipe=ki({name:"safeHtml",type:n,pure:!0}),n})();const pre=[{path:"imprint",component:(()=>{class n{constructor(e,i){this.breakpointObs=e,this.titleService=i,this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(r=>r.matches))}ngOnInit(){this.titleService.title="Impressum"}}return n.\u0275fac=function(e){return new(e||n)(R(jc),R(Ub))},n.\u0275cmp=Ct({type:n,selectors:[["app-imprint-page"]],decls:76,vars:4,consts:[[1,"imprint-page"],[1,"mat-headline"],[1,"mat-title"],["title","im Sinne des"],["title","Robert Koch-Institut"],["href","mailto:opendata@rki.de","title","E-Mail: opendata@rki.de"],["href","https://www.github.com","target","_blank","rel","noopener noreferrer","title","Externer Link Github (\xd6ffnet neues Fenster)"],["href","https://github.com/robert-koch-institut/OpenData-Website","target","_blank","rel","noopener noreferrer","title","Externer Link Github Quellcode Opendata Webseite (\xd6ffnet neues Fenster)"]],template:function(e,i){1&e&&(Y(0,"div",0),ui(1,"async"),Y(2,"h1",1),ie(3,"Impressum"),ee(),Y(4,"h2",2),ie(5,"Herausgeber"),ee(),Y(6,"address")(7,"strong"),ie(8,"Robert Koch-Institut"),ee(),ft(9,"br"),ie(10," Nordufer 20"),ft(11,"br"),ie(12," 13353 Berlin"),ft(13,"br"),ee(),Y(14,"p"),ie(15,"Vertreten durch den Pr\xe4sidenten"),ee(),Y(16,"p")(17,"strong"),ie(18,"Verantwortlich "),Y(19,"abbr",3),ie(20,"i.S.d."),ee(),ie(21," Medienstaatsvertrags"),ee(),ft(22,"br"),ie(23," Hannes W\xfcnsche | Teamleitung Open Data des "),Y(24,"abbr",4),ie(25,"RKI"),ee()(),Y(26,"p")(27,"strong"),ie(28,"Kontakt"),ee(),ft(29,"br"),ie(30," E-Mail: "),Y(31,"a",5),ie(32,"opendata@rki.de"),ee(),ft(33,"br"),ee(),Y(34,"p")(35,"strong"),ie(36,"Umsatzsteueridentifikationsnummer"),ee(),ft(37,"br"),ie(38," DE 165 893 430 "),ee(),Y(39,"p")(40,"strong"),ie(41,"Hosting"),ee(),ft(42,"br"),Y(43,"a",6),ie(44,"Github Inc."),ee(),ft(45,"br"),ie(46," 88 Colin P Kelly Jr St"),ft(47,"br"),ie(48," San Francisco, CA 94107"),ft(49,"br"),ie(50," United States "),ee(),Y(51,"h2",2),ie(52,"Haftungsausschluss"),ee(),Y(53,"p"),ie(54," Die Inhalte, die \xfcber die Internetseiten zur Verf\xfcgung gestellt werden, dienen ausschlie\xdflich der allgemeinen Information der \xd6ffentlichkeit, vorrangig der Fach\xf6ffentlichkeit. "),ee(),Y(55,"p"),ie(56," Das Robert Koch-Institut \xfcbernimmt keine Verantwortung f\xfcr die Richtigkeit und Vollst\xe4ndigkeit der Informationen, f\xfcr Abweichungen der Programminhalte von Originaltexten, \xdcbertragungsfehler von Schriftst\xfccken und Irrt\xfcmer bei Dokumenten, die f\xfcr die Internetseiten erstellt wurden, sowie unbefugte Ver\xe4nderung der Angaben auf dem Server durch Dritte. "),ee(),Y(57,"p"),ie(58," Die Inhalte dieser Internetseiten dienen nicht der Erteilung medizinischer oder anderer Ratschl\xe4ge oder Anweisungen in Bezug auf Arzneimittel oder bestimmten Therapien. Die Informationen stellen keine Alternative zur Beratung durch einen Arzt oder Apotheker dar. Wer Rat zu spezifischen Gesundheitsproblemen ben\xf6tigt, wendet sich bitte ausschlie\xdflich an den Arzt. "),ee(),Y(59,"p"),ie(60," Soweit die Angaben Schriftst\xfccken entnommen wurden, ersetzen sie diese nicht. F\xfcr verbindliche Angaben sollte auf die Schriftst\xfccke selbst zur\xfcckgegriffen werden. Gesetze und Verordnungen sind nur g\xfcltig und finden Anwendung entsprechend ihrer jeweils aktuellen Fassung, die im einschl\xe4gigen amtlichen Verk\xfcndungsorgan (insbesondere Bundesgesetzblatt und Bundesanzeiger) ver\xf6ffentlicht ist. "),ee(),Y(61,"p"),ie(62," Die Nennung von Produkten und/oder Verfahren bedeutet keine Empfehlung oder Aussage zu deren Qualit\xe4t und begr\xfcndet daher keine diesbez\xfcgliche Haftung. "),ee(),Y(63,"p"),ie(64," Die Bildschirmdarstellung der vorliegenden Inhalte kann durch unterschiedliche Browser- und Betriebssystemeinstellungen variieren. Bedingt durch die \xdcbertragung und Darstellung der Daten kann es zu Abweichungen gegen\xfcber den zugrundeliegenden Ver\xf6ffentlichungen kommen. "),ee(),Y(65,"p"),ie(66," \xdcber die auf den Internetseiten des Robert Koch-Instituts vorhandenen Links verlassen Sie das Angebot des Robert Koch-Instituts. Das Robert Koch-Institut macht sich die Inhalte dieser Seiten ausdr\xfccklich nicht zu eigen und \xfcbernimmt f\xfcr deren Inhalte keine Gew\xe4hrleistung. "),ee(),Y(67,"h2",2),ie(68,"Nutzungs- und Lizenzbedingungen"),ee(),Y(69,"p"),ie(70," Der Sourcecode wurde vom Robert Koch-Institut entwickelt und als Open Source bereitgestellt ("),Y(71,"a",7),ie(72,"https://github.com/robert-koch-institut/OpenData-Website"),ee(),ie(73,"). Die Verwendung, Vervielf\xe4ltigung, Weiterverbreitung, \xdcbersetzung, Mikroverfilmung, Einspeicherung und Verarbeitung in elektronischen Systemen zu kommerziellen Zwecken oder sonstige Verwertung ist im Rahmen der geltenden rechtlichen Vorschriften, insbesondere der jeweils geltenden Nutzungslizenzen, zul\xe4ssig. "),ee(),Y(74,"p"),ie(75,"Stand: 31.10.2022"),ee()()),2&e&&Kt("small",wi(1,2,i.isSmall$))},dependencies:[Ga],styles:["[_nghost-%COMP%]{display:block;flex:1;max-width:100%}"]}),n})()},{path:"privacy",component:(()=>{class n{constructor(e,i){this.breakpointObs=e,this.titleService=i,this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(r=>r.matches))}ngOnInit(){this.titleService.title="Datenschutzerkl\xe4rung"}}return n.\u0275fac=function(e){return new(e||n)(R(jc),R(Ub))},n.\u0275cmp=Ct({type:n,selectors:[["app-privacy-page"]],decls:291,vars:4,consts:[[1,"privacy-page"],["title","Artikel"],["title","Nummer"],["title","Europ\xe4ische Union"],["title","Professor"],["title","Doktor"],["href","https://www.rki.de/SharedDocs/Kontaktformulare/Z/Zentrale/Integrator.html","target","_blank","rel","noopener noreferrer","title","Externer Link Kontaktformular RKI (\xd6ffnet neues Fenster)"],["href","https://www.rki.de","target","_blank","rel","noopener noreferrer","title","Startseite des Robert Koch-Instituts (\xd6ffnet neues Fenster)"],["title","oben genannten"],["href","mailto:datenschutz@rki.de","title","E-Mail: datenschutz@rki.de"],["href","https://github.com/robert-koch-institut","target","_blank","rel","noopener noreferrer","title","Externer Link Github RKI (\xd6ffnet neues Fenster)"],["title","Robert Koch-Institut"],["title","zum Beispiel"],["title","Datenschutz-Grundverordnung"],["href","https://support.github.com/request","target","_blank","rel","noopener noreferrer","title","Externer Link Github Kontakt (\xd6ffnet neues Fenster)"],["href","https://github.com","target","_blank","rel","noopener noreferrer","title","Externer Link Github Startseite (\xd6ffnet neues Fenster)"],["href","https://support.github.com/contact/privacy","target","_blank","rel","noopener noreferrer","title","Externer Link Github Datenschutz (\xd6ffnet neues Fenster)"],["title","beispielsweise"],["title","Absatz"],["title","Seite"],["title","litera"],["href","https://docs.github.com/de/site-policy/privacy-policies/github-privacy-statement","target","_blank","rel","noopener noreferrer","title","Externer Link Github Datenschutz (\xd6ffnet neues Fenster)"],["title","sogenanntes"],["title","sogenannte"],["href","tel:+49 (0)228-997799-0"],["href","http://www.bfdi.bund.de","target","_blank","rel","noopener noreferrer","title","Externer Link Bundesbeauftragte\n f\xfcr Datenschutz und Informationssicherheit (\xd6ffnet neues Fenster)"]],template:function(e,i){1&e&&(Y(0,"div",0),ui(1,"async"),Y(2,"h1"),ie(3,"Datenschutzerkl\xe4rung"),ee(),Y(4,"h2"),ie(5," Verantwortlicher gem\xe4\xdf "),Y(6,"abbr",1),ie(7,"Art."),ee(),ie(8," 4 "),Y(9,"abbr",2),ie(10,"Nr."),ee(),ie(11," 7 "),Y(12,"abbr",3),ie(13,"EU"),ee(),ie(14," Datenschutz-Grundverordnung (DSGVO) und Bundesdatenschutzgesetz (BDSG): "),ee(),Y(15,"address")(16,"strong"),ie(17,"Robert Koch-Institut"),ee(),ft(18,"br"),ie(19," Nordufer 20"),ft(20,"br"),ie(21," 13353 Berlin"),ft(22,"br"),ee(),Y(23,"p"),ie(24," vertreten durch den Pr\xe4sidenten "),Y(25,"abbr",4),ie(26,"Prof."),ee(),Y(27,"abbr",5),ie(28,"Dr."),ee(),ie(29," Schaade "),ee(),Y(30,"p")(31,"strong"),ie(32,"Kontakt: "),ee(),ft(33,"br"),ie(34," Robert Koch-Institut"),ft(35,"br"),ie(36," Presse und \xd6ffentlichkeitsarbeit"),ft(37,"br"),ie(38," Nordufer 20"),ft(39,"br"),ie(40," 13353 Berlin"),ft(41,"br"),ie(42," Telefon: 030 18754 0"),ft(43,"br"),ie(44," Fax: 030 18754 2328"),ft(45,"br"),ie(46," Kontaktformular: "),Y(47,"a",6),ie(48,"Kontaktformular RKI-Webseite"),ee(),ft(49,"br"),ie(50," Homepage: "),Y(51,"a",7),ie(52,"www.rki.de"),ee()(),Y(53,"h2"),ie(54," Datenschutzbeauftragte "),ee(),Y(55,"p"),ie(56," Unsere Datenschutzbeauftragte erreichen Sie unter den "),Y(57,"abbr",8),ie(58,"o.g."),ee(),ie(59," Kontaktdaten sowie unter der E-Mail: "),Y(60,"a",9),ie(61,"datenschutz@rki.de"),ee()(),Y(62,"h2"),ie(63," Allgemeines zur Datenverarbeitung "),ee(),Y(64,"p"),ie(65," Das Robert Koch-Institut (RKI) stellt Forschungsdaten und Informationen \xfcber Github.com - "),Y(66,"a",10),ie(67,"https://github.com/robert-koch-institut"),ee(),ie(68," - bereit. GitHub Inc. (GitHub) bietet mit Github-Pages einen Service an der es erm\xf6glich Webseiten zu hosten und der vom RKI genutzt wird um individuelle Websites zu erstellen. Die von GitHub gehosteten Webseiten des RKIs sind unter der Domain "),Y(69,"i"),ie(70,'"https://robert-koch-institut.github.io/"'),ee(),ie(71," erreichbar. "),ee(),Y(72,"p"),ie(73," Der Schutz personenbezogener Daten ist dem "),Y(74,"abbr",11),ie(75,"RKI"),ee(),ie(76," ein sehr wichtiges Anliegen. Das Robert Koch-Institut unterliegt als Bundesbeh\xf6rde den Bestimmungen der EU Datenschutz-Grundverordnung (DSGVO) und des Bundesdatenschutzgesetzes (BDSG). "),ee(),Y(77,"p"),ie(78," Personenbezogene Daten sind Informationen, die sich auf eine identifizierte oder identifizierbare Person beziehen. Hierunter fallen Angaben, die R\xfcckschl\xfcsse auf Ihre Identit\xe4t erm\xf6glichen. Weitere Definitionen der verwendeten Begriffe ("),Y(79,"abbr",12),ie(80,"z.B."),ee(),ie(81,' "Verarbeitung") finden Sie in '),Y(82,"abbr",1),ie(83,"Art."),ee(),ie(84," 4 "),Y(85,"abbr",13),ie(86,"DSGVO"),ee(),ie(87,". "),ee(),Y(88,"p"),ie(89," Da durch neue Technologien und die st\xe4ndige Weiterentwicklung dieser Webseite \xc4nderungen an dieser Datenschutzerkl\xe4rung vorgenommen werden k\xf6nnen, empfehlen wir Ihnen, sich die Datenschutzerkl\xe4rung in regelm\xe4\xdfigen Abst\xe4nden wieder durchzulesen. "),ee(),Y(90,"p"),ie(91," Bei der Nutzung der "),Y(92,"abbr",8),ie(93,"o.g."),ee(),ie(94," Seiten verarbeitet das "),Y(95,"abbr",11),ie(96,"RKI"),ee(),ie(97," selbst keine personenbezogenen Daten. Auch ist die Nutzung der Seite ohne die Bekanntgabe personenbezogener Daten gegen\xfcber dem "),Y(98,"abbr",11),ie(99,"RKI"),ee(),ie(100," m\xf6glich. Allerdings erhebt unserer Hostingdienstleister beim Aufruf dieser Seiten technische Daten von Ihnen. "),ee(),Y(101,"h3"),ie(102," Technische Bereitstellung der Webseite, Statistik und Cookies "),ee(),Y(103,"p"),ie(104,"Wie oben beschrieben, erfolgen das Hosting und der Betrieb der Webseiten durch:"),ee(),Y(105,"p"),ie(106," Github Inc. "),ft(107,"br"),ie(108," 88 Colin P Kelly Jr St "),ft(109,"br"),ie(110," San Francisco "),ft(111,"br"),ie(112," CA 94107, USA "),ee(),Y(113,"p"),ie(114," Kontakt: "),Y(115,"a",14),ie(116,"https://support.github.com/request"),ee(),ie(117," Homepage: "),Y(118,"a",15),ie(119,"https://github.com"),ee(),ie(120," Datenschutz: "),Y(121,"a",16),ie(122,"https://support.github.com/contact/privacy"),ee()(),Y(123,"p"),ie(124," F\xfcr die technische Infrastruktur und die Bereitstellung der Dienste verarbeitet GitHub beim Aufruf der Webseiten technisch notwendige Informationen. Das bedeutet, dass beim Zugriff auf die vom RKI gehosteten Github-Pages u.a. folgende Informationen zu Ihrer Nutzung des Diensts und zur Interaktion Ihres Ger\xe4ts mit dem Dienst durch Github in Logfiles erhoben werden k\xf6nnen, die Ihr Browser automatisch \xfcbersendet: "),ee(),Y(125,"ul")(126,"li"),ie(127,"Datum und Uhrzeit des Zugriffs"),ee(),Y(128,"li"),ie(129,"die aufgerufene Website"),ee(),Y(130,"li"),ie(131,"die vorher besuchte Webseite, von der aus der Zugriff erfolgt"),ee(),Y(132,"li"),ie(133,"die IP-Adresse"),ee(),Y(134,"li"),ie(135,"Informationen zu Ihrem Ger\xe4t ("),Y(136,"abbr",17),ie(137,"bspw."),ee(),ie(138,": Ger\xe4tetyp und -ID)"),ee(),Y(139,"li"),ie(140,"Der genutzte Webbrowser und Betriebssystem"),ee(),Y(141,"li"),ie(142,"Informationen, die in Ihren Beitr\xe4gen zu einzelnen Repositorys enthalten sind oder sich auf diese beziehen"),ee(),Y(143,"li"),ie(144,"Telemetriedaten (also Informationen zur Leistung eines bestimmten Features oder Diensts) hinsichtlich Ihrer Nutzung anderer Features und Funktionen des Diensts"),ee()(),Y(145,"p"),ie(146," Github verwendet die erhobenen Daten, um seinen Dienst bereitzustellen, zu pflegen, analysieren, verwalten und zu betreiben. "),ee(),Y(147,"p"),ie(148," Die Datenverarbeitung dieser Zugriffsdaten ist erforderlich, um den Besuch dieser Website zu erm\xf6glichen und um die dauerhafte Funktionsf\xe4higkeit und Sicherheit der Systeme zu gew\xe4hrleisten. Rechtsgrundlage ist "),Y(149,"abbr",1),ie(150,"Art."),ee(),ie(151," 6 "),Y(152,"abbr",18),ie(153,"Abs."),ee(),ie(154," 1 "),Y(155,"abbr",19),ie(156,"S."),ee(),ie(157," 1 "),Y(158,"abbr",20),ie(159,"lit."),ee(),ie(160," b "),Y(161,"abbr",13),ie(162,"DSGVO"),ee(),ie(163,". "),ee(),Y(164,"p"),ie(165,"Nach erreichen des o.g. Zwecks, werden diese Daten wieder gel\xf6scht."),ee(),Y(166,"p"),ie(167," Weitere Informationen zum Umgang mit Nutzer:innendaten durch Github finden Sie in der Datenschutzerkl\xe4rung von GitHub unter "),Y(168,"a",21),ie(169,"GitHub Privacy Policy"),ee(),ie(170,". "),ee(),Y(171,"h2"),ie(172," Daten\xfcbermittlung in Drittl\xe4nder "),ee(),Y(173,"p"),ie(174," Die "),Y(175,"abbr",8),ie(176,"o.g."),ee(),ie(177," Datenverarbeitungen erfolgen durch unseren Hosting-Anbieter Github mit Sitz in San Francisco, USA. Die Serverstandeorte befinden sich ebenfalls in den USA. Das hei\xdft, dass die "),Y(178,"abbr",8),ie(179,"o.g."),ee(),ie(180,". Verarbeitungen auch dort erfolgen k\xf6nnen. Dabei handelt es sich um ein "),Y(181,"abbr",22),ie(182,"sog."),ee(),ie(183," Drittland au\xdferhalb des europ\xe4ischen Wirtschaftsraums (EWR). Dabei haben wir mit Github "),Y(184,"abbr",23),ie(185,"sog."),ee(),ie(186," Standarddatenschutzklauseln der Europ\xe4ischen Union ("),Y(187,"abbr",1),ie(188,"Art."),ee(),ie(189," 46 "),Y(190,"abbr",18),ie(191,"Abs."),ee(),ie(192," 2 "),Y(193,"abbr",20),ie(194,"lit."),ee(),ie(195," c "),Y(196,"abbr",13),ie(197,"DSGVO"),ee(),ie(198,') geschlossen. Sie das Recht, eine Kopie der "Standarddatenschutzklauseln" anzufordern. '),ee(),Y(199,"h2"),ie(200," Betroffenenrechte "),ee(),Y(201,"p"),ie(202," Soweit wir personenbezogene Daten von Ihnen verarbeiten, stehen Ihnen folgende Datenschutzrechte zu: "),ee(),Y(203,"ul")(204,"li"),ie(205,"das Recht, jederzeit Auskunft \xfcber die Verarbeitung Ihrer personenbezogenen Daten zu erhalten ("),Y(206,"abbr",1),ie(207,"Art."),ee(),ie(208," 15 "),Y(209,"abbr",13),ie(210,"DSGVO"),ee(),ie(211,"),"),ee(),Y(212,"li"),ie(213,"das Recht auf Berichtigung unrichtiger Daten oder Vervollst\xe4ndigung l\xfcckenhafter Daten ("),Y(214,"abbr",1),ie(215,"Art."),ee(),ie(216," 16 "),Y(217,"abbr",13),ie(218,"DSGVO"),ee(),ie(219,"),"),ee(),Y(220,"li"),ie(221,"das Recht, Daten nach den gesetzlichen Vorgaben l\xf6schen oder in der Verarbeitung einschr\xe4nken zu lassen (z.B. bei Widerruf Ihrer Einwilligung oder unrechtm\xe4\xdfiger Verarbeitung) ("),Y(222,"abbr",1),ie(223,"Art."),ee(),ie(224," 17, 18 "),Y(225,"abbr",13),ie(226,"DSGVO"),ee(),ie(227,"),"),ee(),Y(228,"li"),ie(229,"das Recht, bei einer auf Einwilligung beruhenden Datenverarbeitung Ihre Einwilligung jederzeit mit Wirkung f\xfcr die Zukunft zu widerrufen ("),Y(230,"abbr",1),ie(231,"Art."),ee(),ie(232," 7 "),Y(233,"abbr",18),ie(234,"Abs."),ee(),ie(235," 3 "),Y(236,"abbr",13),ie(237,"DSGVO"),ee(),ie(238,"),"),ee(),Y(239,"li"),ie(240,"das Recht auf Daten\xfcbertragbarkeit (Sie k\xf6nnen eine \xdcbersicht Ihrer Daten in einem elektronischen Format zur Verf\xfcgung gestellt bekommen) ("),Y(241,"abbr",1),ie(242,"Art."),ee(),ie(243," 20 "),Y(244,"abbr",13),ie(245,"DSGVO"),ee(),ie(246,"),"),ee(),Y(247,"li"),ie(248,"das Recht auf Widerspruch gegen die Datenverarbeitung, die aus Gr\xfcnden eines berechtigten Interesses des "),Y(249,"abbr",11),ie(250,"RKI"),ee(),ie(251,", f\xfcr die Wahrnehmung von \xf6ffentlichen Aufgaben oder in Aus\xfcbung \xf6ffentlicher Gewalt erfolgt ("),Y(252,"abbr",1),ie(253,"Art."),ee(),ie(254," 21 "),Y(255,"abbr",13),ie(256,"DSGVO"),ee(),ie(257,"),"),ee(),Y(258,"li"),ie(259,"das Recht, den Datenschutzbeauftragten des "),Y(260,"abbr",11),ie(261,"RKI"),ee(),ie(262," zu kontaktieren und Ihr Anliegen vorzubringen ("),Y(263,"abbr",1),ie(264,"Art."),ee(),ie(265," 38 "),Y(266,"abbr",18),ie(267,"Abs."),ee(),ie(268," 4 "),Y(269,"abbr",13),ie(270,"DSGVO"),ee(),ie(271,") und"),ee(),Y(272,"li"),ie(273,"das Recht, sich bei der zust\xe4ndigen Aufsichtsbeh\xf6rde f\xfcr den Datenschutz zu beschweren, (Der Bundesbeauftragte f\xfcr Datenschutz und Informationssicherheit, Husarenstr. 30 - 53117 Bonn, "),Y(274,"a",24),ie(275,"+49 (0)228-997799-0"),ee(),ie(276,", "),Y(277,"a",25),ie(278,"http://www.bfdi.bund.de"),ee(),ie(279,") ("),Y(280,"abbr",1),ie(281,"Art."),ee(),ie(282," 77 "),Y(283,"abbr",18),ie(284,"Abs."),ee(),ie(285," 1 "),Y(286,"abbr",13),ie(287,"DSGVO"),ee(),ie(288,"). "),ee()(),Y(289,"p"),ie(290," Berlin, 10. Oktober 2023 "),ee()()),2&e&&Kt("small",wi(1,2,i.isSmall$))},dependencies:[Ga],styles:["[_nghost-%COMP%]{display:block;flex:1;max-width:100%}"]}),n})()},{path:"",component:(()=>{class n{constructor(e,i,r){this.datasourceService=e,this.breakpointObs=i,this.titleService=r,this.datasource=this.datasourceService.getDatasource(),this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(s=>s.matches))}ngOnInit(){this.titleService.title=this.datasource.name}}return n.\u0275fac=function(e){return new(e||n)(R(pN),R(jc),R(Ub))},n.\u0275cmp=Ct({type:n,selectors:[["app-home-page"]],decls:42,vars:21,consts:[[1,"home-page"],[1,"header"],[1,"header-image-background"],[1,"title-container"],[1,"title"],[1,"author-container"],[3,"authors"],[1,"contributor-container"],[3,"contributors"],[1,"abstract-tag-container"],[1,"left-column"],[1,"abstract-container"],[1,"mat-headline"],[1,"abstract",3,"innerHtml"],[1,"right-column"],[3,"datasource"],[1,"content-cite-licence-container"],[1,"row"],[1,"date"],[1,"filler"],["mode","large",3,"datasource"],[1,"doc-container"],[3,"topOffset"],[1,"markdown-preview",3,"readme"]],template:function(e,i){1&e&&(Y(0,"div",0),ui(1,"async"),Y(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),ie(6),ee()(),Y(7,"div",5),ft(8,"app-datasource-contributor-list",6),ee(),Y(9,"div",7),ft(10,"app-datasource-contributor-list",8),ee()()(),Y(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12),ie(15,"Zusammenfassung"),ee(),ft(16,"div",13),ui(17,"safeHtml"),ee()(),Y(18,"div",14),ft(19,"app-datasource-tags",15),ee()(),Y(20,"div",16)(21,"div",17)(22,"div",10)(23,"div",12),ie(24,"Daten"),ee(),Y(25,"div",18),ie(26),ui(27,"date"),ee(),ft(28,"app-datasource-links",15)(29,"div",19)(30,"app-datasource-licence",20)(31,"app-datasource-cite",15),ee(),Y(32,"div",14),ft(33,"app-datasource-content-list",15),ee()()(),Y(34,"div",21)(35,"div",10)(36,"app-keep-in-view",22)(37,"div",12),ie(38,"Dokumentation"),ee(),ft(39,"app-table-of-content",15),ee()(),Y(40,"div",14),ft(41,"app-datasource-readme",23),ee()()()),2&e&&(Kt("small",wi(1,15,i.isSmall$)),ye(6),ci(" ",i.datasource.name," "),ye(2),Pe("authors",i.datasource.authors),ye(2),Pe("contributors",i.datasource.contributors),ye(6),Pe("innerHtml",wi(17,17,i.datasource.description),X_),ye(3),Pe("datasource",i.datasource),ye(7),ci("Datenstand: ",wi(27,19,i.datasource.lastUpdated),""),ye(2),Pe("datasource",i.datasource),ye(2),Pe("datasource",i.datasource),ye(1),Pe("datasource",i.datasource),ye(2),Pe("datasource",i.datasource),ye(3),Pe("topOffset",116),ye(3),Pe("datasource",i.datasource),ye(2),Pe("readme",i.datasource.readme))},dependencies:[Pte,Bie,Hie,Wie,Kie,nre,sre,cre,hre,Ga,eM,fre],styles:["[_nghost-%COMP%]{display:block;flex:1;max-width:100%}"]}),n})()}];let mre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[cN.forRoot(pre,{scrollPositionRestoration:"top"}),cN]}),n})();var wre={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var Ere={date:_f({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_f({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:_f({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kre={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const DH={code:"en-US",formatDistance:function(t,e,i){var r,s=wre[t];return r="string"==typeof s?s:1===e?s.one:s.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:Ere,formatRelative:function(t,e,i,r){return kre[t]},localize:{ordinalNumber:function(t,e){var i=Number(t),r=i%100;if(r>20||r<10)switch(r%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:ll({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ll({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ll({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ll({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:jB({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:cl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function tse(n,t){Qn(2,arguments);var e=Si(n).getTime(),i=Kr(t);return new Date(e+i)}function SH(n,t){Qn(2,arguments);var e=Kr(t);return tse(n,-e)}function nse(n,t){if(null==n)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}var AH=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},MH=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const _k={p:MH,P:function(t,e){var o,i=t.match(/(P+)(p+)?/)||[],r=i[1],s=i[2];if(!s)return AH(t,e);switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"})}return o.replace("{{date}}",AH(r,e)).replace("{{time}}",MH(s,e))}};var sse=["D","DD"],ose=["YY","YYYY"];function EH(n){return-1!==sse.indexOf(n)}function xH(n){return-1!==ose.indexOf(n)}function Z0(n,t,e){if("YYYY"===n)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===n)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===n)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===n)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function J0(n){return(J0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function kH(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&vk(n,t)}function vk(n,t){return(vk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function TH(n){var t=function lse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=ew(n);if(t){var s=ew(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ase(this,r)}}function ase(n,t){return!t||"object"!==J0(t)&&"function"!=typeof t?yk(n):t}function yk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ew(n){return(ew=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function bk(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function PH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function wk(n,t,e){return t&&PH(n.prototype,t),e&&PH(n,e),n}function Ck(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var RH=function(){function n(){bk(this,n),Ck(this,"subPriority",0)}return wk(n,[{key:"validate",value:function(e,i){return!0}}]),n}(),use=function(n){kH(e,n);var t=TH(e);function e(i,r,s,o,a){var c;return bk(this,e),(c=t.call(this)).value=i,c.validateValue=r,c.setValue=s,c.priority=o,a&&(c.subPriority=a),c}return wk(e,[{key:"validate",value:function(r,s){return this.validateValue(r,this.value,s)}},{key:"set",value:function(r,s,o){return this.setValue(r,s,this.value,o)}}]),e}(RH),dse=function(n){kH(e,n);var t=TH(e);function e(){var i;bk(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Ck(yk(i=t.call.apply(t,[this].concat(s))),"priority",10),Ck(yk(i),"subPriority",-1),i}return wk(e,[{key:"set",value:function(r,s){if(s.timestampIsSet)return r;var o=new Date(0);return o.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),o.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),o}}]),e}(RH);function IH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}var ri=function(){function n(){!function hse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}return function fse(n,t,e){t&&IH(n.prototype,t),e&&IH(n,e)}(n,[{key:"run",value:function(e,i,r,s){var o=this.parse(e,i,r,s);return o?{setter:new use(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,i,r){return!0}}]),n}();function tw(n){return(tw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function pse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function OH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Dk(n,t){return(Dk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function vse(n,t){return!t||"object"!==tw(t)&&"function"!=typeof t?Sk(n):t}function Sk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function nw(n){return(nw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function FH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var bse=function(n){!function gse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Dk(n,t)}(e,n);var t=function _se(n){var t=function yse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=nw(n);if(t){var s=nw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return vse(this,r)}}(e);function e(){var i;pse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return FH(Sk(i=t.call.apply(t,[this].concat(s))),"priority",140),FH(Sk(i),"incompatibleTokens",["R","u","t","T"]),i}return function mse(n,t,e){t&&OH(n.prototype,t),e&&OH(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"});case"GGGGG":return o.era(r,{width:"narrow"});default:return o.era(r,{width:"wide"})||o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"})}}},{key:"set",value:function(r,s,o){return s.era=o,r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri),yr_month=/^(1[0-2]|0?\d)/,yr_date=/^(3[0-1]|[0-2]?\d)/,yr_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,yr_week=/^(5[0-3]|[0-4]?\d)/,yr_hour23h=/^(2[0-3]|[0-1]?\d)/,yr_hour24h=/^(2[0-4]|[0-1]?\d)/,yr_hour11h=/^(1[0-1]|0?\d)/,yr_hour12h=/^(1[0-2]|0?\d)/,yr_minute=/^[0-5]?\d/,yr_second=/^[0-5]?\d/,yr_singleDigit=/^\d/,yr_twoDigits=/^\d{1,2}/,yr_threeDigits=/^\d{1,3}/,yr_fourDigits=/^\d{1,4}/,yr_anyDigitsSigned=/^-?\d+/,yr_singleDigitSigned=/^-?\d/,yr_twoDigitsSigned=/^-?\d{1,2}/,yr_threeDigitsSigned=/^-?\d{1,3}/,yr_fourDigitsSigned=/^-?\d{1,4}/,dl_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,dl_basic=/^([+-])(\d{2})(\d{2})|Z/,dl_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,dl_extended=/^([+-])(\d{2}):(\d{2})|Z/,dl_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function br(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ji(n,t){var e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function hl(n,t){var e=t.match(n);if(!e)return null;if("Z"===e[0])return{value:0,rest:t.slice(1)};var i="+"===e[1]?1:-1,r=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,o=e[5]?parseInt(e[5],10):0;return{value:i*(r*ck+6e4*s+1e3*o),rest:t.slice(e[0].length)}}function LH(n){return Ji(yr_anyDigitsSigned,n)}function ar(n,t){switch(n){case 1:return Ji(yr_singleDigit,t);case 2:return Ji(yr_twoDigits,t);case 3:return Ji(yr_threeDigits,t);case 4:return Ji(yr_fourDigits,t);default:return Ji(new RegExp("^\\d{1,"+n+"}"),t)}}function iw(n,t){switch(n){case 1:return Ji(yr_singleDigitSigned,t);case 2:return Ji(yr_twoDigitsSigned,t);case 3:return Ji(yr_threeDigitsSigned,t);case 4:return Ji(yr_fourDigitsSigned,t);default:return Ji(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Ak(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function NH(n,t){var r,e=t>0,i=e?t:1-t;if(i<=50)r=n||100;else{var s=i+50;r=n+100*Math.floor(s/100)-(n>=s%100?100:0)}return e?r:1-r}function VH(n){return n%400==0||n%4==0&&n%100!=0}function rw(n){return(rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function wse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function BH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Mk(n,t){return(Mk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Ase(n,t){return!t||"object"!==rw(t)&&"function"!=typeof t?Ek(n):t}function Ek(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function sw(n){return(sw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function HH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ese=function(n){!function Dse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Mk(n,t)}(e,n);var t=function Sse(n){var t=function Mse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=sw(n);if(t){var s=sw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Ase(this,r)}}(e);function e(){var i;wse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return HH(Ek(i=t.call.apply(t,[this].concat(s))),"priority",130),HH(Ek(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return function Cse(n,t,e){t&&BH(n.prototype,t),e&&BH(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return{year:d,isTwoDigitYear:"yy"===s}};switch(s){case"y":return br(ar(4,r),a);case"yo":return br(o.ordinalNumber(r,{unit:"year"}),a);default:return br(ar(s.length,r),a)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,o){var a=r.getUTCFullYear();if(o.isTwoDigitYear){var c=NH(o.year,a);return r.setUTCFullYear(c,0,1),r.setUTCHours(0,0,0,0),r}return r.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri),zH={};function vf(){return zH}function pd(n,t){var e,i,r,s,o,a,c,d;Qn(1,arguments);var f=vf(),v=Kr(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:f.weekStartsOn)&&void 0!==i?i:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==e?e:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=Si(n),B=x.getUTCDay(),se=(B<v?7:0)+B-v;return x.setUTCDate(x.getUTCDate()-se),x.setUTCHours(0,0,0,0),x}function xk(n,t){var e,i,r,s,o,a,c,d;Qn(1,arguments);var f=Si(n),v=f.getUTCFullYear(),x=vf(),B=Kr(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:x.firstWeekContainsDate)&&void 0!==i?i:null===(c=x.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==e?e:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var se=new Date(0);se.setUTCFullYear(v+1,0,B),se.setUTCHours(0,0,0,0);var me=pd(se,t),Oe=new Date(0);Oe.setUTCFullYear(v,0,B),Oe.setUTCHours(0,0,0,0);var Fe=pd(Oe,t);return f.getTime()>=me.getTime()?v+1:f.getTime()>=Fe.getTime()?v:v-1}function ow(n){return(ow="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function xse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function UH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function kk(n,t){return(kk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Rse(n,t){return!t||"object"!==ow(t)&&"function"!=typeof t?Tk(n):t}function Tk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function aw(n){return(aw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function jH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ose=function(n){!function Tse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&kk(n,t)}(e,n);var t=function Pse(n){var t=function Ise(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=aw(n);if(t){var s=aw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Rse(this,r)}}(e);function e(){var i;xse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return jH(Tk(i=t.call.apply(t,[this].concat(s))),"priority",130),jH(Tk(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return function kse(n,t,e){t&&UH(n.prototype,t),e&&UH(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return{year:d,isTwoDigitYear:"YY"===s}};switch(s){case"Y":return br(ar(4,r),a);case"Yo":return br(o.ordinalNumber(r,{unit:"year"}),a);default:return br(ar(s.length,r),a)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,o,a){var c=xk(r,a);if(o.isTwoDigitYear){var d=NH(o.year,c);return r.setUTCFullYear(d,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),pd(r,a)}return r.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),pd(r,a)}}]),e}(ri);function yf(n){Qn(1,arguments);var t=1,e=Si(n),i=e.getUTCDay(),r=(i<t?7:0)+i-t;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function lw(n){return(lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Fse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function $H(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Pk(n,t){return(Pk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Bse(n,t){return!t||"object"!==lw(t)&&"function"!=typeof t?Rk(n):t}function Rk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function cw(n){return(cw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function WH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var zse=function(n){!function Nse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Pk(n,t)}(e,n);var t=function Vse(n){var t=function Hse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=cw(n);if(t){var s=cw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Bse(this,r)}}(e);function e(){var i;Fse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return WH(Rk(i=t.call.apply(t,[this].concat(s))),"priority",130),WH(Rk(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return function Lse(n,t,e){t&&$H(n.prototype,t),e&&$H(n,e)}(e,[{key:"parse",value:function(r,s){return iw("R"===s?4:s.length,r)}},{key:"set",value:function(r,s,o){var a=new Date(0);return a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0),yf(a)}}]),e}(ri);function uw(n){return(uw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Use(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function GH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Ik(n,t){return(Ik=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Gse(n,t){return!t||"object"!==uw(t)&&"function"!=typeof t?Ok(n):t}function Ok(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function dw(n){return(dw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function qH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Yse=function(n){!function $se(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Ik(n,t)}(e,n);var t=function Wse(n){var t=function qse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=dw(n);if(t){var s=dw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Gse(this,r)}}(e);function e(){var i;Use(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return qH(Ok(i=t.call.apply(t,[this].concat(s))),"priority",130),qH(Ok(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return function jse(n,t,e){t&&GH(n.prototype,t),e&&GH(n,e)}(e,[{key:"parse",value:function(r,s){return iw("u"===s?4:s.length,r)}},{key:"set",value:function(r,s,o){return r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function hw(n){return(hw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Kse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function YH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Fk(n,t){return(Fk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Jse(n,t){return!t||"object"!==hw(t)&&"function"!=typeof t?Lk(n):t}function Lk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function fw(n){return(fw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function KH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var toe=function(n){!function Qse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Fk(n,t)}(e,n);var t=function Zse(n){var t=function eoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=fw(n);if(t){var s=fw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Jse(this,r)}}(e);function e(){var i;Kse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return KH(Lk(i=t.call.apply(t,[this].concat(s))),"priority",120),KH(Lk(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return function Xse(n,t,e){t&&YH(n.prototype,t),e&&YH(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"Q":case"QQ":return ar(s.length,r);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});default:return o.quarter(r,{width:"wide",context:"formatting"})||o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,o){return r.setUTCMonth(3*(o-1),1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function pw(n){return(pw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function noe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function XH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Nk(n,t){return(Nk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function ooe(n,t){return!t||"object"!==pw(t)&&"function"!=typeof t?Vk(n):t}function Vk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function mw(n){return(mw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function QH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var loe=function(n){!function roe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Nk(n,t)}(e,n);var t=function soe(n){var t=function aoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=mw(n);if(t){var s=mw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ooe(this,r)}}(e);function e(){var i;noe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return QH(Vk(i=t.call.apply(t,[this].concat(s))),"priority",120),QH(Vk(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return function ioe(n,t,e){t&&XH(n.prototype,t),e&&XH(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"q":case"qq":return ar(s.length,r);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});default:return o.quarter(r,{width:"wide",context:"standalone"})||o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,o){return r.setUTCMonth(3*(o-1),1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function gw(n){return(gw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function coe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function ZH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Bk(n,t){return(Bk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function foe(n,t){return!t||"object"!==gw(t)&&"function"!=typeof t?Hk(n):t}function Hk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _w(n){return(_w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function JH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var moe=function(n){!function doe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Bk(n,t)}(e,n);var t=function hoe(n){var t=function poe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=_w(n);if(t){var s=_w(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return foe(this,r)}}(e);function e(){var i;coe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return JH(Hk(i=t.call.apply(t,[this].concat(s))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),JH(Hk(i),"priority",110),i}return function uoe(n,t,e){t&&ZH(n.prototype,t),e&&ZH(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return d-1};switch(s){case"M":return br(Ji(yr_month,r),a);case"MM":return br(ar(2,r),a);case"Mo":return br(o.ordinalNumber(r,{unit:"month"}),a);case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});default:return o.month(r,{width:"wide",context:"formatting"})||o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function vw(n){return(vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function goe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function e3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function zk(n,t){return(zk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function boe(n,t){return!t||"object"!==vw(t)&&"function"!=typeof t?Uk(n):t}function Uk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function yw(n){return(yw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function t3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Coe=function(n){!function voe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&zk(n,t)}(e,n);var t=function yoe(n){var t=function woe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=yw(n);if(t){var s=yw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return boe(this,r)}}(e);function e(){var i;goe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return t3(Uk(i=t.call.apply(t,[this].concat(s))),"priority",110),t3(Uk(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return function _oe(n,t,e){t&&e3(n.prototype,t),e&&e3(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return d-1};switch(s){case"L":return br(Ji(yr_month,r),a);case"LL":return br(ar(2,r),a);case"Lo":return br(o.ordinalNumber(r,{unit:"month"}),a);case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});default:return o.month(r,{width:"wide",context:"standalone"})||o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function Doe(n,t){var e,i,r,s,o,a,c,d;Qn(1,arguments);var f=vf(),v=Kr(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==i?i:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==e?e:1),x=xk(n,t),B=new Date(0);B.setUTCFullYear(x,0,v),B.setUTCHours(0,0,0,0);var se=pd(B,t);return se}function n3(n,t){Qn(1,arguments);var e=Si(n),i=pd(e,t).getTime()-Doe(e,t).getTime();return Math.round(i/6048e5)+1}function bw(n){return(bw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Moe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function r3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function jk(n,t){return(jk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Toe(n,t){return!t||"object"!==bw(t)&&"function"!=typeof t?$k(n):t}function $k(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ww(n){return(ww=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function s3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Roe=function(n){!function xoe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&jk(n,t)}(e,n);var t=function koe(n){var t=function Poe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=ww(n);if(t){var s=ww(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Toe(this,r)}}(e);function e(){var i;Moe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return s3($k(i=t.call.apply(t,[this].concat(s))),"priority",100),s3($k(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return function Eoe(n,t,e){t&&r3(n.prototype,t),e&&r3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"w":return Ji(yr_week,r);case"wo":return o.ordinalNumber(r,{unit:"week"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,o,a){return pd(function Aoe(n,t,e){Qn(2,arguments);var i=Si(n),r=Kr(t),s=n3(i,e)-r;return i.setUTCDate(i.getUTCDate()-7*s),i}(r,o,a),a)}}]),e}(ri);function o3(n){Qn(1,arguments);var t=Si(n),e=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(e+1,0,4),i.setUTCHours(0,0,0,0);var r=yf(i),s=new Date(0);s.setUTCFullYear(e,0,4),s.setUTCHours(0,0,0,0);var o=yf(s);return t.getTime()>=r.getTime()?e+1:t.getTime()>=o.getTime()?e:e-1}function Ioe(n){Qn(1,arguments);var t=o3(n),e=new Date(0);e.setUTCFullYear(t,0,4),e.setUTCHours(0,0,0,0);var i=yf(e);return i}function a3(n){Qn(1,arguments);var t=Si(n),e=yf(t).getTime()-Ioe(t).getTime();return Math.round(e/6048e5)+1}function Cw(n){return(Cw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Loe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Wk(n,t){return(Wk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Hoe(n,t){return!t||"object"!==Cw(t)&&"function"!=typeof t?Gk(n):t}function Gk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Dw(n){return(Dw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function c3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Uoe=function(n){!function Voe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Wk(n,t)}(e,n);var t=function Boe(n){var t=function zoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Dw(n);if(t){var s=Dw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Hoe(this,r)}}(e);function e(){var i;Loe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return c3(Gk(i=t.call.apply(t,[this].concat(s))),"priority",100),c3(Gk(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return function Noe(n,t,e){t&&l3(n.prototype,t),e&&l3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"I":return Ji(yr_week,r);case"Io":return o.ordinalNumber(r,{unit:"week"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,o){return yf(function Foe(n,t){Qn(2,arguments);var e=Si(n),i=Kr(t),r=a3(e)-i;return e.setUTCDate(e.getUTCDate()-7*r),e}(r,o))}}]),e}(ri);function Sw(n){return(Sw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function joe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function qk(n,t){return(qk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function qoe(n,t){return!t||"object"!==Sw(t)&&"function"!=typeof t?Aw(n):t}function Aw(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Mw(n){return(Mw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Yk(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Koe=[31,28,31,30,31,30,31,31,30,31,30,31],Xoe=[31,29,31,30,31,30,31,31,30,31,30,31],Qoe=function(n){!function Woe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&qk(n,t)}(e,n);var t=function Goe(n){var t=function Yoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Mw(n);if(t){var s=Mw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return qoe(this,r)}}(e);function e(){var i;joe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Yk(Aw(i=t.call.apply(t,[this].concat(s))),"priority",90),Yk(Aw(i),"subPriority",1),Yk(Aw(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return function $oe(n,t,e){t&&u3(n.prototype,t),e&&u3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"d":return Ji(yr_date,r);case"do":return o.ordinalNumber(r,{unit:"date"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){var a=VH(r.getUTCFullYear()),c=r.getUTCMonth();return a?s>=1&&s<=Xoe[c]:s>=1&&s<=Koe[c]}},{key:"set",value:function(r,s,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function Ew(n){return(Ew="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Zoe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function d3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Kk(n,t){return(Kk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function nae(n,t){return!t||"object"!==Ew(t)&&"function"!=typeof t?xw(n):t}function xw(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function kw(n){return(kw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Xk(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var rae=function(n){!function eae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Kk(n,t)}(e,n);var t=function tae(n){var t=function iae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=kw(n);if(t){var s=kw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return nae(this,r)}}(e);function e(){var i;Zoe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Xk(xw(i=t.call.apply(t,[this].concat(s))),"priority",90),Xk(xw(i),"subpriority",1),Xk(xw(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return function Joe(n,t,e){t&&d3(n.prototype,t),e&&d3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"D":case"DD":return Ji(yr_dayOfYear,r);case"Do":return o.ordinalNumber(r,{unit:"date"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return VH(r.getUTCFullYear())?s>=1&&s<=366:s>=1&&s<=365}},{key:"set",value:function(r,s,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function Qk(n,t,e){var i,r,s,o,a,c,d,f;Qn(2,arguments);var v=vf(),x=Kr(null!==(i=null!==(r=null!==(s=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(a=e.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==s?s:v.weekStartsOn)&&void 0!==r?r:null===(d=v.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==i?i:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var B=Si(n),se=Kr(t),me=B.getUTCDay(),Oe=se%7,Fe=(Oe+7)%7,et=(Fe<x?7:0)+se-me;return B.setUTCDate(B.getUTCDate()+et),B}function Tw(n){return(Tw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function sae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function h3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Zk(n,t){return(Zk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function cae(n,t){return!t||"object"!==Tw(t)&&"function"!=typeof t?Jk(n):t}function Jk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Pw(n){return(Pw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function f3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var dae=function(n){!function aae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Zk(n,t)}(e,n);var t=function lae(n){var t=function uae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Pw(n);if(t){var s=Pw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return cae(this,r)}}(e);function e(){var i;sae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return f3(Jk(i=t.call.apply(t,[this].concat(s))),"priority",90),f3(Jk(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return function oae(n,t,e){t&&h3(n.prototype,t),e&&h3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=Qk(r,o,a)).setUTCHours(0,0,0,0),r}}]),e}(ri);function Rw(n){return(Rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function hae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function e1(n,t){return(e1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function gae(n,t){return!t||"object"!==Rw(t)&&"function"!=typeof t?t1(n):t}function t1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Iw(n){return(Iw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function m3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var vae=function(n){!function pae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&e1(n,t)}(e,n);var t=function mae(n){var t=function _ae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Iw(n);if(t){var s=Iw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return gae(this,r)}}(e);function e(){var i;hae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return m3(t1(i=t.call.apply(t,[this].concat(s))),"priority",90),m3(t1(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return function fae(n,t,e){t&&p3(n.prototype,t),e&&p3(n,e)}(e,[{key:"parse",value:function(r,s,o,a){var c=function(f){var v=7*Math.floor((f-1)/7);return(f+a.weekStartsOn+6)%7+v};switch(s){case"e":case"ee":return br(ar(s.length,r),c);case"eo":return br(o.ordinalNumber(r,{unit:"day"}),c);case"eee":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"eeeee":return o.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=Qk(r,o,a)).setUTCHours(0,0,0,0),r}}]),e}(ri);function Ow(n){return(Ow="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function yae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function g3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function n1(n,t){return(n1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Dae(n,t){return!t||"object"!==Ow(t)&&"function"!=typeof t?r1(n):t}function r1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Fw(n){return(Fw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function _3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Aae=function(n){!function wae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&n1(n,t)}(e,n);var t=function Cae(n){var t=function Sae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Fw(n);if(t){var s=Fw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Dae(this,r)}}(e);function e(){var i;yae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return _3(r1(i=t.call.apply(t,[this].concat(s))),"priority",90),_3(r1(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return function bae(n,t,e){t&&g3(n.prototype,t),e&&g3(n,e)}(e,[{key:"parse",value:function(r,s,o,a){var c=function(f){var v=7*Math.floor((f-1)/7);return(f+a.weekStartsOn+6)%7+v};switch(s){case"c":case"cc":return br(ar(s.length,r),c);case"co":return br(o.ordinalNumber(r,{unit:"day"}),c);case"ccc":return o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});case"ccccc":return o.day(r,{width:"narrow",context:"standalone"});case"cccccc":return o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});default:return o.day(r,{width:"wide",context:"standalone"})||o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=Qk(r,o,a)).setUTCHours(0,0,0,0),r}}]),e}(ri);function Lw(n){return(Lw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Eae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function s1(n,t){return(s1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Pae(n,t){return!t||"object"!==Lw(t)&&"function"!=typeof t?o1(n):t}function o1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Nw(n){return(Nw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function y3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Iae=function(n){!function kae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&s1(n,t)}(e,n);var t=function Tae(n){var t=function Rae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Nw(n);if(t){var s=Nw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Pae(this,r)}}(e);function e(){var i;Eae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return y3(o1(i=t.call.apply(t,[this].concat(s))),"priority",90),y3(o1(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return function xae(n,t,e){t&&v3(n.prototype,t),e&&v3(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return 0===d?7:d};switch(s){case"i":case"ii":return ar(s.length,r);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return br(o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiii":return br(o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiiii":return br(o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);default:return br(o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(r,s){return s>=1&&s<=7}},{key:"set",value:function(r,s,o){return r=function Mae(n,t){Qn(2,arguments);var e=Kr(t);e%7==0&&(e-=7);var i=1,r=Si(n),s=r.getUTCDay(),c=((e%7+7)%7<i?7:0)+e-s;return r.setUTCDate(r.getUTCDate()+c),r}(r,o),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function Vw(n){return(Vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Oae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function a1(n,t){return(a1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Vae(n,t){return!t||"object"!==Vw(t)&&"function"!=typeof t?l1(n):t}function l1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Bw(n){return(Bw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function w3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Hae=function(n){!function Lae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&a1(n,t)}(e,n);var t=function Nae(n){var t=function Bae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Bw(n);if(t){var s=Bw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Vae(this,r)}}(e);function e(){var i;Oae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return w3(l1(i=t.call.apply(t,[this].concat(s))),"priority",80),w3(l1(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return function Fae(n,t,e){t&&b3(n.prototype,t),e&&b3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"a":case"aa":case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(Ak(o),0,0,0),r}}]),e}(ri);function Hw(n){return(Hw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function zae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function C3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function c1(n,t){return(c1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Wae(n,t){return!t||"object"!==Hw(t)&&"function"!=typeof t?u1(n):t}function u1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function zw(n){return(zw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function D3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var qae=function(n){!function jae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&c1(n,t)}(e,n);var t=function $ae(n){var t=function Gae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=zw(n);if(t){var s=zw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Wae(this,r)}}(e);function e(){var i;zae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return D3(u1(i=t.call.apply(t,[this].concat(s))),"priority",80),D3(u1(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return function Uae(n,t,e){t&&C3(n.prototype,t),e&&C3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"b":case"bb":case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(Ak(o),0,0,0),r}}]),e}(ri);function Uw(n){return(Uw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Yae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function S3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function d1(n,t){return(d1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Zae(n,t){return!t||"object"!==Uw(t)&&"function"!=typeof t?h1(n):t}function h1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function jw(n){return(jw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function A3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var ele=function(n){!function Xae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&d1(n,t)}(e,n);var t=function Qae(n){var t=function Jae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=jw(n);if(t){var s=jw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Zae(this,r)}}(e);function e(){var i;Yae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return A3(h1(i=t.call.apply(t,[this].concat(s))),"priority",80),A3(h1(i),"incompatibleTokens",["a","b","t","T"]),i}return function Kae(n,t,e){t&&S3(n.prototype,t),e&&S3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(Ak(o),0,0,0),r}}]),e}(ri);function $w(n){return($w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function tle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function f1(n,t){return(f1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function sle(n,t){return!t||"object"!==$w(t)&&"function"!=typeof t?p1(n):t}function p1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ww(n){return(Ww=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function E3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var ale=function(n){!function ile(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&f1(n,t)}(e,n);var t=function rle(n){var t=function ole(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Ww(n);if(t){var s=Ww(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return sle(this,r)}}(e);function e(){var i;tle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return E3(p1(i=t.call.apply(t,[this].concat(s))),"priority",70),E3(p1(i),"incompatibleTokens",["H","K","k","t","T"]),i}return function nle(n,t,e){t&&M3(n.prototype,t),e&&M3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"h":return Ji(yr_hour12h,r);case"ho":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=12}},{key:"set",value:function(r,s,o){var a=r.getUTCHours()>=12;return r.setUTCHours(a&&o<12?o+12:a||12!==o?o:0,0,0,0),r}}]),e}(ri);function Gw(n){return(Gw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function lle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function x3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function m1(n,t){return(m1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function hle(n,t){return!t||"object"!==Gw(t)&&"function"!=typeof t?g1(n):t}function g1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function qw(n){return(qw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function k3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var ple=function(n){!function ule(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&m1(n,t)}(e,n);var t=function dle(n){var t=function fle(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=qw(n);if(t){var s=qw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return hle(this,r)}}(e);function e(){var i;lle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return k3(g1(i=t.call.apply(t,[this].concat(s))),"priority",70),k3(g1(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return function cle(n,t,e){t&&x3(n.prototype,t),e&&x3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"H":return Ji(yr_hour23h,r);case"Ho":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=23}},{key:"set",value:function(r,s,o){return r.setUTCHours(o,0,0,0),r}}]),e}(ri);function Yw(n){return(Yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function mle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function T3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function _1(n,t){return(_1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function yle(n,t){return!t||"object"!==Yw(t)&&"function"!=typeof t?v1(n):t}function v1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Kw(n){return(Kw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function P3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var wle=function(n){!function _le(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&_1(n,t)}(e,n);var t=function vle(n){var t=function ble(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Kw(n);if(t){var s=Kw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return yle(this,r)}}(e);function e(){var i;mle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return P3(v1(i=t.call.apply(t,[this].concat(s))),"priority",70),P3(v1(i),"incompatibleTokens",["h","H","k","t","T"]),i}return function gle(n,t,e){t&&T3(n.prototype,t),e&&T3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"K":return Ji(yr_hour11h,r);case"Ko":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){var a=r.getUTCHours()>=12;return r.setUTCHours(a&&o<12?o+12:o,0,0,0),r}}]),e}(ri);function Xw(n){return(Xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Cle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function R3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function y1(n,t){return(y1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Mle(n,t){return!t||"object"!==Xw(t)&&"function"!=typeof t?b1(n):t}function b1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Qw(n){return(Qw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function I3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var xle=function(n){!function Sle(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&y1(n,t)}(e,n);var t=function Ale(n){var t=function Ele(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Qw(n);if(t){var s=Qw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Mle(this,r)}}(e);function e(){var i;Cle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return I3(b1(i=t.call.apply(t,[this].concat(s))),"priority",70),I3(b1(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return function Dle(n,t,e){t&&R3(n.prototype,t),e&&R3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"k":return Ji(yr_hour24h,r);case"ko":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=24}},{key:"set",value:function(r,s,o){return r.setUTCHours(o<=24?o%24:o,0,0,0),r}}]),e}(ri);function Zw(n){return(Zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function kle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function O3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function w1(n,t){return(w1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Ile(n,t){return!t||"object"!==Zw(t)&&"function"!=typeof t?C1(n):t}function C1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Jw(n){return(Jw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function F3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Fle=function(n){!function Ple(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&w1(n,t)}(e,n);var t=function Rle(n){var t=function Ole(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Jw(n);if(t){var s=Jw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Ile(this,r)}}(e);function e(){var i;kle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return F3(C1(i=t.call.apply(t,[this].concat(s))),"priority",60),F3(C1(i),"incompatibleTokens",["t","T"]),i}return function Tle(n,t,e){t&&O3(n.prototype,t),e&&O3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"m":return Ji(yr_minute,r);case"mo":return o.ordinalNumber(r,{unit:"minute"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,o){return r.setUTCMinutes(o,0,0),r}}]),e}(ri);function eC(n){return(eC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Lle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function L3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function D1(n,t){return(D1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Hle(n,t){return!t||"object"!==eC(t)&&"function"!=typeof t?S1(n):t}function S1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function tC(n){return(tC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function N3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ule=function(n){!function Vle(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&D1(n,t)}(e,n);var t=function Ble(n){var t=function zle(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=tC(n);if(t){var s=tC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Hle(this,r)}}(e);function e(){var i;Lle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return N3(S1(i=t.call.apply(t,[this].concat(s))),"priority",50),N3(S1(i),"incompatibleTokens",["t","T"]),i}return function Nle(n,t,e){t&&L3(n.prototype,t),e&&L3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"s":return Ji(yr_second,r);case"so":return o.ordinalNumber(r,{unit:"second"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,o){return r.setUTCSeconds(o,0),r}}]),e}(ri);function nC(n){return(nC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function jle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function V3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function A1(n,t){return(A1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function qle(n,t){return!t||"object"!==nC(t)&&"function"!=typeof t?M1(n):t}function M1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function iC(n){return(iC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function B3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Kle=function(n){!function Wle(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&A1(n,t)}(e,n);var t=function Gle(n){var t=function Yle(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=iC(n);if(t){var s=iC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return qle(this,r)}}(e);function e(){var i;jle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return B3(M1(i=t.call.apply(t,[this].concat(s))),"priority",30),B3(M1(i),"incompatibleTokens",["t","T"]),i}return function $le(n,t,e){t&&V3(n.prototype,t),e&&V3(n,e)}(e,[{key:"parse",value:function(r,s){return br(ar(s.length,r),function(c){return Math.floor(c*Math.pow(10,3-s.length))})}},{key:"set",value:function(r,s,o){return r.setUTCMilliseconds(o),r}}]),e}(ri);function rC(n){return(rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Xle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function H3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function E1(n,t){return(E1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function ece(n,t){return!t||"object"!==rC(t)&&"function"!=typeof t?x1(n):t}function x1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function sC(n){return(sC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function z3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var nce=function(n){!function Zle(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&E1(n,t)}(e,n);var t=function Jle(n){var t=function tce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=sC(n);if(t){var s=sC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ece(this,r)}}(e);function e(){var i;Xle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return z3(x1(i=t.call.apply(t,[this].concat(s))),"priority",10),z3(x1(i),"incompatibleTokens",["t","T","x"]),i}return function Qle(n,t,e){t&&H3(n.prototype,t),e&&H3(n,e)}(e,[{key:"parse",value:function(r,s){switch(s){case"X":return hl(dl_basicOptionalMinutes,r);case"XX":return hl(dl_basic,r);case"XXXX":return hl(dl_basicOptionalSeconds,r);case"XXXXX":return hl(dl_extendedOptionalSeconds,r);default:return hl(dl_extended,r)}}},{key:"set",value:function(r,s,o){return s.timestampIsSet?r:new Date(r.getTime()-o)}}]),e}(ri);function oC(n){return(oC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function ice(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function U3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function k1(n,t){return(k1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function ace(n,t){return!t||"object"!==oC(t)&&"function"!=typeof t?T1(n):t}function T1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function aC(n){return(aC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function j3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var cce=function(n){!function sce(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&k1(n,t)}(e,n);var t=function oce(n){var t=function lce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=aC(n);if(t){var s=aC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ace(this,r)}}(e);function e(){var i;ice(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return j3(T1(i=t.call.apply(t,[this].concat(s))),"priority",10),j3(T1(i),"incompatibleTokens",["t","T","X"]),i}return function rce(n,t,e){t&&U3(n.prototype,t),e&&U3(n,e)}(e,[{key:"parse",value:function(r,s){switch(s){case"x":return hl(dl_basicOptionalMinutes,r);case"xx":return hl(dl_basic,r);case"xxxx":return hl(dl_basicOptionalSeconds,r);case"xxxxx":return hl(dl_extendedOptionalSeconds,r);default:return hl(dl_extended,r)}}},{key:"set",value:function(r,s,o){return s.timestampIsSet?r:new Date(r.getTime()-o)}}]),e}(ri);function lC(n){return(lC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function uce(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function $3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function P1(n,t){return(P1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function pce(n,t){return!t||"object"!==lC(t)&&"function"!=typeof t?R1(n):t}function R1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function cC(n){return(cC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function W3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var gce=function(n){!function hce(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&P1(n,t)}(e,n);var t=function fce(n){var t=function mce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=cC(n);if(t){var s=cC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return pce(this,r)}}(e);function e(){var i;uce(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return W3(R1(i=t.call.apply(t,[this].concat(s))),"priority",40),W3(R1(i),"incompatibleTokens","*"),i}return function dce(n,t,e){t&&$3(n.prototype,t),e&&$3(n,e)}(e,[{key:"parse",value:function(r){return LH(r)}},{key:"set",value:function(r,s,o){return[new Date(1e3*o),{timestampIsSet:!0}]}}]),e}(ri);function uC(n){return(uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function _ce(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function I1(n,t){return(I1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function wce(n,t){return!t||"object"!==uC(t)&&"function"!=typeof t?O1(n):t}function O1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function dC(n){return(dC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function q3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Dce=function(n){!function yce(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&I1(n,t)}(e,n);var t=function bce(n){var t=function Cce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=dC(n);if(t){var s=dC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return wce(this,r)}}(e);function e(){var i;_ce(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return q3(O1(i=t.call.apply(t,[this].concat(s))),"priority",20),q3(O1(i),"incompatibleTokens","*"),i}return function vce(n,t,e){t&&G3(n.prototype,t),e&&G3(n,e)}(e,[{key:"parse",value:function(r){return LH(r)}},{key:"set",value:function(r,s,o){return[new Date(o),{timestampIsSet:!0}]}}]),e}(ri),Sce={G:new bse,y:new Ese,Y:new Ose,R:new zse,u:new Yse,Q:new toe,q:new loe,M:new moe,L:new Coe,w:new Roe,I:new Uoe,d:new Qoe,D:new rae,E:new dae,e:new vae,c:new Aae,i:new Iae,a:new Hae,b:new qae,B:new ele,h:new ale,H:new ple,K:new wle,k:new xle,m:new Fle,s:new Ule,S:new Kle,X:new nce,x:new cce,t:new gce,T:new Dce};function hC(n){return(hC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Y3(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function Ace(n,t){if(n){if("string"==typeof n)return K3(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if("Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return K3(n,t)}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var i=0,r=function(){};return{s:r,n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(d){throw d},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){e=n[Symbol.iterator]()},n:function(){var d=e.next();return s=d.done,d},e:function(d){o=!0,a=d},f:function(){try{!s&&null!=e.return&&e.return()}finally{if(o)throw a}}}}function K3(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=n[e];return i}var Mce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ece=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xce=/^'([^]*?)'?$/,kce=/''/g,Tce=/\S/,Pce=/[a-zA-Z]/;function Rce(n,t,e,i){var r,s,o,a,c,d,f,v,x,B,se,me,Oe,Fe,et,$e,ot,Tt;Qn(3,arguments);var $t=String(n),Sn=String(t),ti=vf(),Hr=null!==(r=null!==(s=null==i?void 0:i.locale)&&void 0!==s?s:ti.locale)&&void 0!==r?r:DH;if(!Hr.match)throw new RangeError("locale must contain match property");var $i=Kr(null!==(o=null!==(a=null!==(c=null!==(d=null==i?void 0:i.firstWeekContainsDate)&&void 0!==d?d:null==i||null===(f=i.locale)||void 0===f||null===(v=f.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==c?c:ti.firstWeekContainsDate)&&void 0!==a?a:null===(x=ti.locale)||void 0===x||null===(B=x.options)||void 0===B?void 0:B.firstWeekContainsDate)&&void 0!==o?o:1);if(!($i>=1&&$i<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Gs=Kr(null!==(se=null!==(me=null!==(Oe=null!==(Fe=null==i?void 0:i.weekStartsOn)&&void 0!==Fe?Fe:null==i||null===(et=i.locale)||void 0===et||null===($e=et.options)||void 0===$e?void 0:$e.weekStartsOn)&&void 0!==Oe?Oe:ti.weekStartsOn)&&void 0!==me?me:null===(ot=ti.locale)||void 0===ot||null===(Tt=ot.options)||void 0===Tt?void 0:Tt.weekStartsOn)&&void 0!==se?se:0);if(!(Gs>=0&&Gs<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===Sn)return""===$t?Si(e):new Date(NaN);var Bt,qs={firstWeekContainsDate:$i,weekStartsOn:Gs,locale:Hr},Ys=[new dse],lo=Sn.match(Ece).map(function(Ei){var On=Ei[0];return On in _k?(0,_k[On])(Ei,Hr.formatLong):Ei}).join("").match(Mce),Wi=[],wt=Y3(lo);try{var en=function(){var On=Bt.value;!(null!=i&&i.useAdditionalWeekYearTokens)&&xH(On)&&Z0(On,Sn,n),(null==i||!i.useAdditionalDayOfYearTokens)&&EH(On)&&Z0(On,Sn,n);var ps=On[0],iu=Sce[ps];if(iu){var ez=iu.incompatibleTokens;if(Array.isArray(ez)){var tz=Wi.find(function(nz){return ez.includes(nz.token)||nz.token===ps});if(tz)throw new RangeError("The format string mustn't contain `".concat(tz.fullToken,"` and `").concat(On,"` at the same time"))}else if("*"===iu.incompatibleTokens&&Wi.length>0)throw new RangeError("The format string mustn't contain `".concat(On,"` and any other token at the same time"));Wi.push({token:ps,fullToken:On});var L1=iu.run($t,On,Hr.match,qs);if(!L1)return{v:new Date(NaN)};Ys.push(L1.setter),$t=L1.rest}else{if(ps.match(Pce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ps+"`");if("''"===On?On="'":"'"===ps&&(On=Ice(On)),0!==$t.indexOf(On))return{v:new Date(NaN)};$t=$t.slice(On.length)}};for(wt.s();!(Bt=wt.n()).done;){var kn=en();if("object"===hC(kn))return kn.v}}catch(Ei){wt.e(Ei)}finally{wt.f()}if($t.length>0&&Tce.test($t))return new Date(NaN);var Gi=Ys.map(function(Ei){return Ei.priority}).sort(function(Ei,On){return On-Ei}).filter(function(Ei,On,ps){return ps.indexOf(Ei)===On}).map(function(Ei){return Ys.filter(function(On){return On.priority===Ei}).sort(function(On,ps){return ps.subPriority-On.subPriority})}).map(function(Ei){return Ei[0]}),co=Si(e);if(isNaN(co.getTime()))return new Date(NaN);var Og,zr=SH(co,Y0(co)),Da={},vi=Y3(Gi);try{for(vi.s();!(Og=vi.n()).done;){var fC=Og.value;if(!fC.validate(zr,qs))return new Date(NaN);var wr=fC.set(zr,Da,qs);Array.isArray(wr)?(zr=wr[0],nse(Da,wr[1])):zr=wr}}catch(Ei){vi.e(Ei)}finally{vi.f()}return zr}function Ice(n){return n.match(xce)[1].replace(kce,"'")}const nu_y=function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return Un("yy"===e?r%100:r,e.length)},nu_M=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Un(i+1,2)},nu_d=function(t,e){return Un(t.getUTCDate(),e.length)},nu_h=function(t,e){return Un(t.getUTCHours()%12||12,e.length)},nu_H=function(t,e){return Un(t.getUTCHours(),e.length)},nu_m=function(t,e){return Un(t.getUTCMinutes(),e.length)},nu_s=function(t,e){return Un(t.getUTCSeconds(),e.length)},nu_S=function(t,e){var i=e.length,r=t.getUTCMilliseconds();return Un(Math.floor(r*Math.pow(10,i-3)),e.length)};function X3(n,t){var e=n>0?"-":"+",i=Math.abs(n),r=Math.floor(i/60),s=i%60;if(0===s)return e+String(r);var o=t||"";return e+String(r)+o+Un(s,2)}function Q3(n,t){return n%60==0?(n>0?"-":"+")+Un(Math.abs(n)/60,2):md(n,t)}function md(n,t){var e=t||"",i=n>0?"-":"+",r=Math.abs(n);return i+Un(Math.floor(r/60),2)+e+Un(r%60,2)}const Vce={G:function(t,e,i){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});default:return i.era(r,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var r=t.getUTCFullYear();return i.ordinalNumber(r>0?r:1-r,{unit:"year"})}return nu_y(t,e)},Y:function(t,e,i,r){var s=xk(t,r),o=s>0?s:1-s;return"YY"===e?Un(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):Un(o,e.length)},R:function(t,e){return Un(o3(t),e.length)},u:function(t,e){return Un(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Un(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Un(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i){var r=t.getUTCMonth();switch(e){case"M":case"MM":return nu_M(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return Un(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,r){var s=n3(t,r);return"wo"===e?i.ordinalNumber(s,{unit:"week"}):Un(s,e.length)},I:function(t,e,i){var r=a3(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):Un(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):nu_d(t,e)},D:function(t,e,i){var r=function Fce(n){Qn(1,arguments);var t=Si(n),e=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime();return Math.floor((e-i)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(r,{unit:"dayOfYear"}):Un(r,e.length)},E:function(t,e,i){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,i,r){var s=t.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Un(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,i,r){var s=t.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Un(o,e.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(s,{width:"narrow",context:"standalone"});case"cccccc":return i.day(s,{width:"short",context:"standalone"});default:return i.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,i){var r=t.getUTCDay(),s=0===r?7:r;switch(e){case"i":return String(s);case"ii":return Un(s,e.length);case"io":return i.ordinalNumber(s,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,r=t.getUTCHours();switch(s=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,r=t.getUTCHours();switch(s=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return nu_h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):nu_H(t,e)},K:function(t,e,i){var r=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):Un(r,e.length)},k:function(t,e,i){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):Un(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):nu_m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):nu_s(t,e)},S:function(t,e){return nu_S(t,e)},X:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Q3(o);case"XXXX":case"XX":return md(o);default:return md(o,":")}},x:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return Q3(o);case"xxxx":case"xx":return md(o);default:return md(o,":")}},O:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+X3(o,":");default:return"GMT"+md(o,":")}},z:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+X3(o,":");default:return"GMT"+md(o,":")}},t:function(t,e,i,r){return Un(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,r){return Un((r._originalDate||t).getTime(),e.length)}};var Bce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zce=/^'([^]*?)'?$/,Uce=/''/g,jce=/[a-zA-Z]/;function Wce(n){var t=n.match(zce);return t?t[1].replace(Uce,"'"):n}function Z3(n,t){Qn(2,arguments);var e=Si(n),i=Kr(t);if(isNaN(i))return new Date(NaN);if(!i)return e;var r=e.getDate(),s=new Date(e.getTime());s.setMonth(e.getMonth()+i+1,0);var o=s.getDate();return r>=o?s:(e.setFullYear(s.getFullYear(),s.getMonth(),r),e)}function F1(n,t){const e=Array(n);for(let i=0;i<n;i++)e[i]=t(i);return e}const Yce={long:"LLLL",short:"LLL",narrow:"LLLLL"},Kce={long:"EEEE",short:"EEE",narrow:"EEEEE"};let J3=(()=>{class n extends sr{constructor(e){super(),this.setLocale(e)}getYear(e){return function gre(n){return Qn(1,arguments),Si(n).getFullYear()}(e)}getMonth(e){return function _re(n){return Qn(1,arguments),Si(n).getMonth()}(e)}getDate(e){return function vre(n){return Qn(1,arguments),Si(n).getDate()}(e)}getDayOfWeek(e){return function yre(n){return Qn(1,arguments),Si(n).getDay()}(e)}getMonthNames(e){const i=Yce[e];return F1(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){const e="undefined"!=typeof Intl?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return F1(31,i=>{if(e){const r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){const i=Kce[e];return F1(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){var e,i;return null!==(i=null===(e=this.locale.options)||void 0===e?void 0:e.weekStartsOn)&&void 0!==i?i:0}getNumDaysInMonth(e){return function bre(n){Qn(1,arguments);var t=Si(n),e=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(e,i+1,0),r.setHours(0,0,0,0),r.getDate()}(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){const s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s.getMonth(),s}today(){return new Date}parse(e,i){if("string"==typeof e&&e.length>0){const r=uk(e);if(this.isValid(r))return r;const s=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(const o of s){const a=Rce(e,o,new Date,{locale:this.locale});if(this.isValid(a))return a}return this.invalid()}return"number"==typeof e?new Date(e):e instanceof Date?this.clone(e):null}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return function $ce(n,t,e){var i,r,s,o,a,c,d,f,v,x,B,se,me,Oe,Fe,et,$e,ot;Qn(2,arguments);var Tt=String(t),$t=vf(),Sn=null!==(i=null!==(r=null==e?void 0:e.locale)&&void 0!==r?r:$t.locale)&&void 0!==i?i:DH,ti=Kr(null!==(s=null!==(o=null!==(a=null!==(c=null==e?void 0:e.firstWeekContainsDate)&&void 0!==c?c:null==e||null===(d=e.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:$t.firstWeekContainsDate)&&void 0!==o?o:null===(v=$t.locale)||void 0===v||null===(x=v.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==s?s:1);if(!(ti>=1&&ti<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Hr=Kr(null!==(B=null!==(se=null!==(me=null!==(Oe=null==e?void 0:e.weekStartsOn)&&void 0!==Oe?Oe:null==e||null===(Fe=e.locale)||void 0===Fe||null===(et=Fe.options)||void 0===et?void 0:et.weekStartsOn)&&void 0!==me?me:$t.weekStartsOn)&&void 0!==se?se:null===($e=$t.locale)||void 0===$e||null===(ot=$e.options)||void 0===ot?void 0:ot.weekStartsOn)&&void 0!==B?B:0);if(!(Hr>=0&&Hr<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Sn.localize)throw new RangeError("locale must contain localize property");if(!Sn.formatLong)throw new RangeError("locale must contain formatLong property");var $i=Si(n);if(!hk($i))throw new RangeError("Invalid time value");var Gs=Y0($i),qs=SH($i,Gs),Ys={firstWeekContainsDate:ti,weekStartsOn:Hr,locale:Sn,_originalDate:$i};return Tt.match(Hce).map(function(Wi){var wt=Wi[0];return"p"===wt||"P"===wt?(0,_k[wt])(Wi,Sn.formatLong):Wi}).join("").match(Bce).map(function(Wi){if("''"===Wi)return"'";var wt=Wi[0];if("'"===wt)return Wce(Wi);var Bt=Vce[wt];if(Bt)return!(null!=e&&e.useAdditionalWeekYearTokens)&&xH(Wi)&&Z0(Wi,t,String(n)),!(null!=e&&e.useAdditionalDayOfYearTokens)&&EH(Wi)&&Z0(Wi,t,String(n)),Bt(qs,Wi,Sn.localize,Ys);if(wt.match(jce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+wt+"`");return Wi}).join("")}(e,i,{locale:this.locale})}addCalendarYears(e,i){return function Gce(n,t){Qn(2,arguments);var e=Kr(t);return Z3(n,12*e)}(e,i)}addCalendarMonths(e,i){return Z3(e,i)}addCalendarDays(e,i){return function qce(n,t){Qn(2,arguments);var e=Si(n),i=Kr(t);return isNaN(i)?new Date(NaN):(i&&e.setDate(e.getDate()+i),e)}(e,i)}toIso8601(e){return K0(e,{representation:"date"})}deserialize(e){if("string"==typeof e){if(!e)return null;const i=uk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return lH(e)}isValid(e){return hk(e)}invalid(){return new Date(NaN)}}return n.\u0275fac=function(e){return new(e||n)(Re(YM,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const Xce={parse:{dateInput:"P"},display:{dateInput:"P",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu"}};let Qce=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[{provide:sr,useClass:J3,deps:[YM]}]}),n})();function Zce(){const n=new pf;return n.link=(t,e,i)=>`<a href="${t}" ${null===e?"":'title="'+e+'"'} target="_blank">${i}</a>`,{renderer:n,gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}function Jce(n){return n.getBaseHrefFromDOM()}!function IW(n,t,e){(function rj(n,t,e){"string"!=typeof t&&(e=t,t=n[xt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Vh[t]=n,e&&(Vh[t][xt.ExtraData]=e)})(n,t,e)}(XJ,"de");let eue=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n,bootstrap:[VK]}),n.\u0275inj=Ht({providers:[{provide:fa,useValue:"de"},{provide:Qb,useClass:wK},{provide:sr,useClass:J3},{provide:Ja,useValue:Xce},{provide:YM,useValue:Ree},{provide:jA,useFactory:Jce,deps:[Ry]},{provide:X0,useValue:{fullLibraryLoader:()=>He.e(225).then(He.bind(He,7225))}}],imports:[aZ,YO,NY,aV,Qce,n8,LZ.forRoot({sanitize:jn.NONE,markedOptions:{provide:SB,useFactory:Zce}}),$Z,YK,Fne,KY,B9,qee,IJ,kte,BE,Q8,lX,VJ,gV,gie,OK,tb,_te,mx,fg,aV,G7,ste,WB,jee,K9,YJ,Kh,P9,r6,$K,Xb,CV.forRoot({scrollOffset:120,duration:11}),j9,mre]}),n})();(function A$(){if(XI)throw new Error("Cannot enable prod mode after platform setup.");KI=!1})(),P5().bootstrapModule(eue).catch(n=>console.error(n))},7489:function(Ze,re,He){var I;Ze=He.nmd(Ze),function(){var J,ce="Expected a function",Q="__lodash_hash_undefined__",W="__lodash_placeholder__",k=32,H=128,_e=1/0,Ce=9007199254740991,X=NaN,C=4294967295,D=[["ary",H],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",k],["partialRight",64],["rearg",256]],A="[object Arguments]",N="[object Array]",z="[object Boolean]",pe="[object Date]",ge="[object Error]",be="[object Function]",ke="[object GeneratorFunction]",Ae="[object Map]",Ue="[object Number]",De="[object Object]",je="[object Promise]",q="[object RegExp]",le="[object Set]",Ee="[object String]",Xe="[object Symbol]",Ke="[object WeakMap]",pt="[object ArrayBuffer]",Vt="[object DataView]",ln="[object Float32Array]",Tn="[object Float64Array]",Ne="[object Int8Array]",ae="[object Int16Array]",de="[object Int32Array]",We="[object Uint8Array]",tt="[object Uint8ClampedArray]",at="[object Uint16Array]",gt="[object Uint32Array]",hn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,hi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,Li=/[&<>"']/g,yi=RegExp(Fn.source),ms=RegExp(Li.source),fi=/<%-([\s\S]+?)%>/g,$n=/<%([\s\S]+?)%>/g,Fs=/<%=([\s\S]+?)%>/g,Ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ks=/^\w*$/,Or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xi=/[\\^$.*+?()[\]{}|]/g,fl=RegExp(xi.source),pl=/^\s+/,ea=/\s/,vC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lr=/\{\n\/\* \[wrapped with (.+)\] \*/,uc=/,? & /,Ns=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Z1=/[()=,{}\[\]\/\s]/,yC=/\\(\\)?/g,Vg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gd=/\w*$/,Cf=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,bC=/^\[object .+?Constructor\]$/,Bg=/^0o[0-7]+$/i,Hg=/^(?:0|[1-9]\d*)$/,wC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_d=/($^)/,CC=/['\n\r\u2028\u2029\\]/g,vd="\\ud800-\\udfff",pi="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ni="\\u2700-\\u27bf",yd="a-z\\xdf-\\xf6\\xf8-\\xff",bd="A-Z\\xc0-\\xd6\\xd8-\\xde",Ug="\\ufe0e\\ufe0f",Pn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Af="["+vd+"]",AC="["+Pn+"]",nt="["+pi+"]",su="\\d+",fn="["+Ni+"]",Wn="["+yd+"]",jg="[^"+vd+Pn+su+Ni+yd+bd+"]",$g="\\ud83c[\\udffb-\\udfff]",ou="[^"+vd+"]",Xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Wg="[\\ud800-\\udbff][\\udc00-\\udfff]",dc="["+bd+"]",Fo="(?:"+Wn+"|"+jg+")",J1="(?:"+dc+"|"+jg+")",xC="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",kC="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",TC="(?:"+nt+"|"+$g+")?",Gg="["+Ug+"]?",gs=Gg+TC+"(?:\\u200d(?:"+[ou,Xr,Wg].join("|")+")"+Gg+TC+")*",Zn="(?:"+[fn,Xr,Wg].join("|")+")"+gs,nT="(?:"+[ou+nt+"?",nt,Xr,Wg,Af].join("|")+")",iT=RegExp("['\u2019]","g"),rT=RegExp(nt,"g"),dt=RegExp($g+"(?="+$g+")|"+nT+gs,"g"),sT=RegExp([dc+"?"+Wn+"+"+xC+"(?="+[AC,dc,"$"].join("|")+")",J1+"+"+kC+"(?="+[AC,dc+Fo,"$"].join("|")+")",dc+"?"+Fo+"+"+xC,dc+"+"+kC,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",su,Zn].join("|"),"g"),Ht=RegExp("[\\u200d"+vd+pi+Ug+"]"),Mf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],RC=-1,bi={};bi[ln]=bi[Tn]=bi[Ne]=bi[ae]=bi[de]=bi[We]=bi[tt]=bi[at]=bi[gt]=!0,bi[A]=bi[N]=bi[pt]=bi[z]=bi[Vt]=bi[pe]=bi[ge]=bi[be]=bi[Ae]=bi[Ue]=bi[De]=bi[q]=bi[le]=bi[Ee]=bi[Ke]=!1;var li={};li[A]=li[N]=li[pt]=li[Vt]=li[z]=li[pe]=li[ln]=li[Tn]=li[Ne]=li[ae]=li[de]=li[Ae]=li[Ue]=li[De]=li[q]=li[le]=li[Ee]=li[Xe]=li[We]=li[tt]=li[at]=li[gt]=!0,li[ge]=li[be]=li[Ke]=!1;var IC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qt=parseFloat,xf=parseInt,Kg="object"==typeof global&&global&&global.Object===Object&&global,Xs="object"==typeof self&&self&&self.Object===Object&&self,Cr=Kg||Xs||Function("return this")(),OC=re&&!re.nodeType&&re,Qs=OC&&Ze&&!Ze.nodeType&&Ze,Zs=Qs&&Qs.exports===OC,Xg=Zs&&Kg.process,uo=function(){try{return Qs&&Qs.require&&Qs.require("util").types||Xg&&Xg.binding&&Xg.binding("util")}catch(Je){}}(),Js=uo&&uo.isArrayBuffer,ni=uo&&uo.isDate,FC=uo&&uo.isMap,LC=uo&&uo.isRegExp,ml=uo&&uo.isSet,Gn=uo&&uo.isTypedArray;function Ur(Ie,Je,Ge){switch(Ge.length){case 0:return Ie.call(Je);case 1:return Ie.call(Je,Ge[0]);case 2:return Ie.call(Je,Ge[0],Ge[1]);case 3:return Ie.call(Je,Ge[0],Ge[1],Ge[2])}return Ie.apply(Je,Ge)}function kf(Ie,Je,Ge,It){for(var gn=-1,ei=null==Ie?0:Ie.length;++gn<ei;){var Ar=Ie[gn];Je(It,Ar,Ge(Ar),Ie)}return It}function _s(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length;++Ge<It&&!1!==Je(Ie[Ge],Ge,Ie););return Ie}function Qg(Ie,Je){for(var Ge=null==Ie?0:Ie.length;Ge--&&!1!==Je(Ie[Ge],Ge,Ie););return Ie}function Lo(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length;++Ge<It;)if(!Je(Ie[Ge],Ge,Ie))return!1;return!0}function eo(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length,gn=0,ei=[];++Ge<It;){var Ar=Ie[Ge];Je(Ar,Ge,Ie)&&(ei[gn++]=Ar)}return ei}function Cd(Ie,Je){return!(null==Ie||!Ie.length)&&er(Ie,Je,0)>-1}function Ct(Ie,Je,Ge){for(var It=-1,gn=null==Ie?0:Ie.length;++It<gn;)if(Ge(Je,Ie[It]))return!0;return!1}function Ai(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length,gn=Array(It);++Ge<It;)gn[Ge]=Je(Ie[Ge],Ge,Ie);return gn}function ta(Ie,Je){for(var Ge=-1,It=Je.length,gn=Ie.length;++Ge<It;)Ie[gn+Ge]=Je[Ge];return Ie}function Dd(Ie,Je,Ge,It){var gn=-1,ei=null==Ie?0:Ie.length;for(It&&ei&&(Ge=Ie[++gn]);++gn<ei;)Ge=Je(Ge,Ie[gn],gn,Ie);return Ge}function Ut(Ie,Je,Ge,It){var gn=null==Ie?0:Ie.length;for(It&&gn&&(Ge=Ie[--gn]);gn--;)Ge=Je(Ge,Ie[gn],gn,Ie);return Ge}function Tf(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length;++Ge<It;)if(Je(Ie[Ge],Ge,Ie))return!0;return!1}var Zg=gl("length");function Jn(Ie,Je,Ge){var It;return Ge(Ie,function(gn,ei,Ar){if(Je(gn,ei,Ar))return It=ei,!1}),It}function Dr(Ie,Je,Ge,It){for(var gn=Ie.length,ei=Ge+(It?1:-1);It?ei--:++ei<gn;)if(Je(Ie[ei],ei,Ie))return ei;return-1}function er(Ie,Je,Ge){return Je==Je?function Jg(Ie,Je,Ge){for(var It=Ge-1,gn=Ie.length;++It<gn;)if(Ie[It]===Je)return It;return-1}(Ie,Je,Ge):Dr(Ie,au,Ge)}function Vs(Ie,Je,Ge,It){for(var gn=Ge-1,ei=Ie.length;++gn<ei;)if(It(Ie[gn],Je))return gn;return-1}function au(Ie){return Ie!=Ie}function Sd(Ie,Je){var Ge=null==Ie?0:Ie.length;return Ge?Pf(Ie,Je)/Ge:X}function gl(Ie){return function(Je){return null==Je?J:Je[Ie]}}function hc(Ie){return function(Je){return null==Ie?J:Ie[Je]}}function Sa(Ie,Je,Ge,It,gn){return gn(Ie,function(ei,Ar,gi){Ge=It?(It=!1,ei):Je(Ge,ei,Ar,gi)}),Ge}function Pf(Ie,Je){for(var Ge,It=-1,gn=Ie.length;++It<gn;){var ei=Je(Ie[It]);ei!==J&&(Ge=Ge===J?ei:Ge+ei)}return Ge}function vs(Ie,Je){for(var Ge=-1,It=Array(Ie);++Ge<Ie;)It[Ge]=Je(Ge);return It}function mn(Ie){return Ie&&Ie.slice(0,Zr(Ie)+1).replace(pl,"")}function Ln(Ie){return function(Je){return Ie(Je)}}function Qr(Ie,Je){return Ai(Je,function(Ge){return Ie[Ge]})}function ho(Ie,Je){return Ie.has(Je)}function cr(Ie,Je){for(var Ge=-1,It=Ie.length;++Ge<It&&er(Je,Ie[Ge],0)>-1;);return Ge}function Aa(Ie,Je){for(var Ge=Ie.length;Ge--&&er(Je,Ie[Ge],0)>-1;);return Ge}function Vi(Ie,Je){for(var Ge=Ie.length,It=0;Ge--;)Ie[Ge]===Je&&++It;return It}var lu=hc({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),fc=hc({"&":"&","<":"<",">":">",'"':""","'":"'"});function wn(Ie){return"\\"+IC[Ie]}function fo(Ie){return Ht.test(Ie)}function Sr(Ie){var Je=-1,Ge=Array(Ie.size);return Ie.forEach(function(It,gn){Ge[++Je]=[gn,It]}),Ge}function pc(Ie,Je){return function(Ge){return Ie(Je(Ge))}}function Bs(Ie,Je){for(var Ge=-1,It=Ie.length,gn=0,ei=[];++Ge<It;){var Ar=Ie[Ge];(Ar===Je||Ar===W)&&(Ie[Ge]=W,ei[gn++]=Ge)}return ei}function ys(Ie){var Je=-1,Ge=Array(Ie.size);return Ie.forEach(function(It){Ge[++Je]=It}),Ge}function gc(Ie){return fo(Ie)?function If(Ie){for(var Je=dt.lastIndex=0;dt.test(Ie);)++Je;return Je}(Ie):Zg(Ie)}function po(Ie){return fo(Ie)?function Md(Ie){return Ie.match(dt)||[]}(Ie):function qe(Ie){return Ie.split("")}(Ie)}function Zr(Ie){for(var Je=Ie.length;Je--&&ea.test(Ie.charAt(Je)););return Je}var mo=hc({"&":"&","<":"<",">":">",""":'"',"'":"'"}),xd=function Ie(Je){var l,Ge=(Je=null==Je?Cr:xd.defaults(Cr.Object(),Je,xd.pick(Cr,qg))).Array,It=Je.Date,gn=Je.Error,ei=Je.Function,Ar=Je.Math,gi=Je.Object,e_=Je.RegExp,oT=Je.String,_o=Je.TypeError,Of=Ge.prototype,cu=gi.prototype,Ff=Je["__core-js_shared__"],Lf=ei.prototype.toString,si=cu.hasOwnProperty,t_=0,kd=(l=/[^.]+$/.exec(Ff&&Ff.keys&&Ff.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",Nf=cu.toString,lT=Lf.call(gi),cT=Cr._,vl=e_("^"+Lf.call(si).replace(xi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Td=Zs?Je.Buffer:J,Zt=Je.Symbol,uu=Je.Uint8Array,n_=Td?Td.allocUnsafe:J,Pd=pc(gi.getPrototypeOf,gi),Vf=gi.create,Bf=cu.propertyIsEnumerable,Rd=Of.splice,Id=Zt?Zt.isConcatSpreadable:J,du=Zt?Zt.iterator:J,Mr=Zt?Zt.toStringTag:J,_c=function(){try{var l=Tl(gi,"defineProperty");return l({},"",{}),l}catch(u){}}(),NC=Je.clearTimeout!==Cr.clearTimeout&&Je.clearTimeout,Hf=It&&It.now!==Cr.Date.now&&It.now,VC=Je.setTimeout!==Cr.setTimeout&&Je.setTimeout,zf=Ar.ceil,Ti=Ar.floor,Uf=gi.getOwnPropertySymbols,uT=Td?Td.isBuffer:J,hu=Je.isFinite,to=Of.join,BC=pc(gi.keys,gi),qi=Ar.max,Yi=Ar.min,Hs=It.now,i_=Je.parseInt,fu=Ar.random,HC=Of.reverse,No=Tl(Je,"DataView"),vc=Tl(Je,"Map"),pu=Tl(Je,"Promise"),nn=Tl(Je,"Set"),yc=Tl(Je,"WeakMap"),Od=Tl(gi,"create"),Fd=yc&&new yc,bc={},zC=Pl(No),r_=Pl(vc),UC=Pl(pu),jC=Pl(nn),ct=Pl(yc),Rn=Zt?Zt.prototype:J,zt=Rn?Rn.valueOf:J,Wt=Rn?Rn.toString:J;function K(l){if(Ri(l)&&!pn(l)&&!(l instanceof xn)){if(l instanceof Ki)return l;if(si.call(l,"__wrapped__"))return _D(l)}return new Ki(l)}var yl=function(){function l(){}return function(u){if(!Bi(u))return{};if(Vf)return Vf(u);l.prototype=u;var h=new l;return l.prototype=J,h}}();function Ma(){}function Ki(l,u){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=J}function xn(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=C,this.__views__=[]}function wc(l){var u=-1,h=null==l?0:l.length;for(this.clear();++u<h;){var w=l[u];this.set(w[0],w[1])}}function Fr(l){var u=-1,h=null==l?0:l.length;for(this.clear();++u<h;){var w=l[u];this.set(w[0],w[1])}}function vo(l){var u=-1,h=null==l?0:l.length;for(this.clear();++u<h;){var w=l[u];this.set(w[0],w[1])}}function Ea(l){var u=-1,h=null==l?0:l.length;for(this.__data__=new vo;++u<h;)this.add(l[u])}function no(l){var u=this.__data__=new Fr(l);this.size=u.size}function Pi(l,u){var h=pn(l),w=!h&&Ll(l),$=!h&&!w&&La(l),ne=!h&&!w&&!$&&Do(l),ve=h||w||$||ne,xe=ve?vs(l.length,oT):[],Le=xe.length;for(var it in l)(u||si.call(l,it))&&(!ve||!("length"==it||$&&("offset"==it||"parent"==it)||ne&&("buffer"==it||"byteLength"==it||"byteOffset"==it)||Ss(it,Le)))&&xe.push(it);return xe}function ia(l){var u=l.length;return u?l[Cu(0,u-1)]:J}function QC(l,u){return ku(ws(l),bl(u,0,l.length))}function Yf(l){return ku(ws(l))}function Kf(l,u,h){(h!==J&&!ss(l[u],h)||h===J&&!(u in l))&&yo(l,u,h)}function mu(l,u,h){var w=l[u];(!si.call(l,u)||!ss(w,h)||h===J&&!(u in l))&&yo(l,u,h)}function Nd(l,u){for(var h=l.length;h--;)if(ss(l[h][0],u))return h;return-1}function Vd(l,u,h,w){return Vo(l,function($,ne,ve){u(w,$,h($),ve)}),w}function gu(l,u){return l&&zo(u,nr(u),l)}function yo(l,u,h){"__proto__"==u&&_c?_c(l,u,{configurable:!0,enumerable:!0,value:h,writable:!0}):l[u]=h}function Hd(l,u){for(var h=-1,w=u.length,$=Ge(w),ne=null==l;++h<w;)$[h]=ne?J:bh(l,u[h]);return $}function bl(l,u,h){return l==l&&(h!==J&&(l=l<=h?l:h),u!==J&&(l=l>=u?l:u)),l}function ur(l,u,h,w,$,ne){var ve,xe=1&u,Le=2&u,it=4&u;if(h&&(ve=$?h(l,w,$,ne):h(l)),ve!==J)return ve;if(!Bi(l))return l;var rt=pn(l);if(rt){if(ve=function mp(l){var u=l.length,h=new l.constructor(u);return u&&"string"==typeof l[0]&&si.call(l,"index")&&(h.index=l.index,h.input=l.input),h}(l),!xe)return ws(l,ve)}else{var ht=Nr(l),Mt=ht==be||ht==ke;if(La(l))return sp(l,xe);if(ht==De||ht==A||Mt&&!$){if(ve=Le||Mt?{}:O_(l),!xe)return Le?function Kd(l,u){return zo(l,R_(l),u)}(l,function Bd(l,u){return l&&zo(u,xr(u),l)}(ve,l)):function lp(l,u){return zo(l,nh(l),u)}(l,gu(ve,l))}else{if(!li[ht])return $?l:{};ve=function F_(l,u,h){var w=l.constructor;switch(u){case pt:return ns(l);case z:case pe:return new w(+l);case Vt:return function op(l,u){var h=u?ns(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}(l,h);case ln:case Tn:case Ne:case ae:case de:case We:case tt:case at:case gt:return ap(l,h);case Ae:return new w;case Ue:case Ee:return new w(l);case q:return function Ec(l){var u=new l.constructor(l.source,gd.exec(l));return u.lastIndex=l.lastIndex,u}(l);case le:return new w;case Xe:return function vT(l){return zt?gi(zt.call(l)):{}}(l)}}(l,ht,xe)}}ne||(ne=new no);var Pt=ne.get(l);if(Pt)return Pt;ne.set(l,ve),_h(l)?l.forEach(function(Jt){ve.add(ur(Jt,u,h,Jt,l,ne))}):aS(l)&&l.forEach(function(Jt,Mn){ve.set(Mn,ur(Jt,u,h,Mn,l,ne))});var Cn=rt?J:(it?Le?fp:kl:Le?xr:nr)(l);return _s(Cn||l,function(Jt,Mn){Cn&&(Jt=l[Mn=Jt]),mu(ve,Mn,ur(Jt,u,h,Mn,l,ne))}),ve}function d_(l,u,h){var w=h.length;if(null==l)return!w;for(l=gi(l);w--;){var $=h[w],ve=l[$];if(ve===J&&!($ in l)||!(0,u[$])(ve))return!1}return!0}function h_(l,u,h){if("function"!=typeof l)throw new _o(ce);return xu(function(){l.apply(J,h)},u)}function ra(l,u,h,w){var $=-1,ne=Cd,ve=!0,xe=l.length,Le=[],it=u.length;if(!xe)return Le;h&&(u=Ai(u,Ln(h))),w?(ne=Ct,ve=!1):u.length>=200&&(ne=ho,ve=!1,u=new Ea(u));e:for(;++$<xe;){var rt=l[$],ht=null==h?rt:h(rt);if(rt=w||0!==rt?rt:0,ve&&ht==ht){for(var Mt=it;Mt--;)if(u[Mt]===ht)continue e;Le.push(rt)}else ne(u,ht,w)||Le.push(rt)}return Le}K.templateSettings={escape:fi,evaluate:$n,interpolate:Fs,variable:"",imports:{_:K}},(K.prototype=Ma.prototype).constructor=K,(Ki.prototype=yl(Ma.prototype)).constructor=Ki,(xn.prototype=yl(Ma.prototype)).constructor=xn,wc.prototype.clear=function Ld(){this.__data__=Od?Od(null):{},this.size=0},wc.prototype.delete=function Jr(l){var u=this.has(l)&&delete this.__data__[l];return this.size-=u?1:0,u},wc.prototype.get=function na(l){var u=this.__data__;if(Od){var h=u[l];return h===Q?J:h}return si.call(u,l)?u[l]:J},wc.prototype.has=function s_(l){var u=this.__data__;return Od?u[l]!==J:si.call(u,l)},wc.prototype.set=function Cc(l,u){var h=this.__data__;return this.size+=this.has(l)?0:1,h[l]=Od&&u===J?Q:u,this},Fr.prototype.clear=function WC(){this.__data__=[],this.size=0},Fr.prototype.delete=function o_(l){var u=this.__data__,h=Nd(u,l);return!(h<0||(h==u.length-1?u.pop():Rd.call(u,h,1),--this.size,0))},Fr.prototype.get=function GC(l){var u=this.__data__,h=Nd(u,l);return h<0?J:u[h][1]},Fr.prototype.has=function qC(l){return Nd(this.__data__,l)>-1},Fr.prototype.set=function $f(l,u){var h=this.__data__,w=Nd(h,l);return w<0?(++this.size,h.push([l,u])):h[w][1]=u,this},vo.prototype.clear=function a_(){this.size=0,this.__data__={hash:new wc,map:new(vc||Fr),string:new wc}},vo.prototype.delete=function Wf(l){var u=eh(this,l).delete(l);return this.size-=u?1:0,u},vo.prototype.get=function YC(l){return eh(this,l).get(l)},vo.prototype.has=function l_(l){return eh(this,l).has(l)},vo.prototype.set=function Gf(l,u){var h=eh(this,l),w=h.size;return h.set(l,u),this.size+=h.size==w?0:1,this},Ea.prototype.add=Ea.prototype.push=function c_(l){return this.__data__.set(l,Q),this},Ea.prototype.has=function u_(l){return this.__data__.has(l)},no.prototype.clear=function qf(){this.__data__=new Fr,this.size=0},no.prototype.delete=function KC(l){var u=this.__data__,h=u.delete(l);return this.size=u.size,h},no.prototype.get=function XC(l){return this.__data__.get(l)},no.prototype.has=function es(l){return this.__data__.has(l)},no.prototype.set=function xa(l,u){var h=this.__data__;if(h instanceof Fr){var w=h.__data__;if(!vc||w.length<199)return w.push([l,u]),this.size=++h.size,this;h=this.__data__=new vo(w)}return h.set(l,u),this.size=h.size,this};var Vo=Xd(bo),f_=Xd(Ud,!0);function ZC(l,u){var h=!0;return Vo(l,function(w,$,ne){return h=!!u(w,$,ne)}),h}function Xf(l,u,h){for(var w=-1,$=l.length;++w<$;){var ne=l[w],ve=u(ne);if(null!=ve&&(xe===J?ve==ve&&!ro(ve):h(ve,xe)))var xe=ve,Le=ne}return Le}function vu(l,u){var h=[];return Vo(l,function(w,$,ne){u(w,$,ne)&&h.push(w)}),h}function Er(l,u,h,w,$){var ne=-1,ve=l.length;for(h||(h=gp),$||($=[]);++ne<ve;){var xe=l[ne];u>0&&h(xe)?u>1?Er(xe,u-1,h,w,$):ta($,xe):w||($[$.length]=xe)}return $}var zd=Su(),yu=Su(!0);function bo(l,u){return l&&zd(l,u,nr)}function Ud(l,u){return l&&yu(l,u,nr)}function sa(l,u){return eo(u,function(h){return ca(l[h])})}function wl(l,u){for(var h=0,w=(u=Ra(u,l)).length;null!=l&&h<w;)l=l[$o(u[h++])];return h&&h==w?l:J}function Cl(l,u,h){var w=u(l);return pn(l)?w:ta(w,h(l))}function Lr(l){return null==l?l===J?"[object Undefined]":"[object Null]":Mr&&Mr in gi(l)?function th(l){var u=si.call(l,Mr),h=l[Mr];try{l[Mr]=J;var w=!0}catch(ne){}var $=Nf.call(l);return w&&(u?l[Mr]=h:delete l[Mr]),$}(l):function mD(l){return Nf.call(l)}(l)}function Dc(l,u){return l>u}function fT(l,u){return null!=l&&si.call(l,u)}function p_(l,u){return null!=l&&u in gi(l)}function Qf(l,u,h){for(var w=h?Ct:Cd,$=l[0].length,ne=l.length,ve=ne,xe=Ge(ne),Le=1/0,it=[];ve--;){var rt=l[ve];ve&&u&&(rt=Ai(rt,Ln(u))),Le=Yi(rt.length,Le),xe[ve]=!h&&(u||$>=120&&rt.length>=120)?new Ea(ve&&rt):J}rt=l[0];var ht=-1,Mt=xe[0];e:for(;++ht<$&&it.length<Le;){var Pt=rt[ht],Xt=u?u(Pt):Pt;if(Pt=h||0!==Pt?Pt:0,!(Mt?ho(Mt,Xt):w(it,Xt,h))){for(ve=ne;--ve;){var Cn=xe[ve];if(!(Cn?ho(Cn,Xt):w(l[ve],Xt,h)))continue e}Mt&&Mt.push(Xt),it.push(Pt)}}return it}function bu(l,u,h){var w=null==(l=As(l,u=Ra(u,l)))?l:l[$o(Ms(u))];return null==w?J:Ur(w,l,h)}function Sc(l){return Ri(l)&&Lr(l)==A}function ka(l,u,h,w,$){return l===u||(null==l||null==u||!Ri(l)&&!Ri(u)?l!=l&&u!=u:function jd(l,u,h,w,$,ne){var ve=pn(l),xe=pn(u),Le=ve?N:Nr(l),it=xe?N:Nr(u),rt=(Le=Le==A?De:Le)==De,ht=(it=it==A?De:it)==De,Mt=Le==it;if(Mt&&La(l)){if(!La(u))return!1;ve=!0,rt=!1}if(Mt&&!rt)return ne||(ne=new no),ve||Do(l)?hp(l,u,h,w,$,ne):function cD(l,u,h,w,$,ne,ve){switch(h){case Vt:if(l.byteLength!=u.byteLength||l.byteOffset!=u.byteOffset)return!1;l=l.buffer,u=u.buffer;case pt:return!(l.byteLength!=u.byteLength||!ne(new uu(l),new uu(u)));case z:case pe:case Ue:return ss(+l,+u);case ge:return l.name==u.name&&l.message==u.message;case q:case Ee:return l==u+"";case Ae:var xe=Sr;case le:if(xe||(xe=ys),l.size!=u.size&&!(1&w))return!1;var it=ve.get(l);if(it)return it==u;w|=2,ve.set(l,u);var rt=hp(xe(l),xe(u),w,$,ne,ve);return ve.delete(l),rt;case Xe:if(zt)return zt.call(l)==zt.call(u)}return!1}(l,u,Le,h,w,$,ne);if(!(1&h)){var Pt=rt&&si.call(l,"__wrapped__"),Xt=ht&&si.call(u,"__wrapped__");if(Pt||Xt){var Cn=Pt?l.value():l,Jt=Xt?u.value():u;return ne||(ne=new no),$(Cn,Jt,h,w,ne)}}return!!Mt&&(ne||(ne=new no),function uD(l,u,h,w,$,ne){var ve=1&h,xe=kl(l),Le=xe.length;if(Le!=kl(u).length&&!ve)return!1;for(var ht=Le;ht--;){var Mt=xe[ht];if(!(ve?Mt in u:si.call(u,Mt)))return!1}var Pt=ne.get(l),Xt=ne.get(u);if(Pt&&Xt)return Pt==u&&Xt==l;var Cn=!0;ne.set(l,u),ne.set(u,l);for(var Jt=ve;++ht<Le;){var Mn=l[Mt=xe[ht]],Nn=u[Mt];if(w)var as=ve?w(Nn,Mn,Mt,u,l,ne):w(Mn,Nn,Mt,l,u,ne);if(!(as===J?Mn===Nn||$(Mn,Nn,h,w,ne):as)){Cn=!1;break}Jt||(Jt="constructor"==Mt)}if(Cn&&!Jt){var ls=l.constructor,ir=u.constructor;ls!=ir&&"constructor"in l&&"constructor"in u&&!("function"==typeof ls&&ls instanceof ls&&"function"==typeof ir&&ir instanceof ir)&&(Cn=!1)}return ne.delete(l),ne.delete(u),Cn}(l,u,h,w,$,ne))}(l,u,h,w,ka,$))}function $d(l,u,h,w){var $=h.length,ne=$,ve=!w;if(null==l)return!ne;for(l=gi(l);$--;){var xe=h[$];if(ve&&xe[2]?xe[1]!==l[xe[0]]:!(xe[0]in l))return!1}for(;++$<ne;){var Le=(xe=h[$])[0],it=l[Le],rt=xe[1];if(ve&&xe[2]){if(it===J&&!(Le in l))return!1}else{var ht=new no;if(w)var Mt=w(it,rt,Le,l,u,ht);if(!(Mt===J?ka(rt,it,3,w,ht):Mt))return!1}}return!0}function ep(l){return!(!Bi(l)||function vp(l){return!!kd&&kd in l}(l))&&(ca(l)?vl:bC).test(Pl(l))}function wu(l){return"function"==typeof l?l:null==l?xs:"object"==typeof l?pn(l)?v_(l[0],l[1]):Sl(l):Vu(l)}function Dl(l){if(!Ic(l))return BC(l);var u=[];for(var h in gi(l))si.call(l,h)&&"constructor"!=h&&u.push(h);return u}function Wd(l,u){return l<u}function tp(l,u){var h=-1,w=os(l)?Ge(l.length):[];return Vo(l,function($,ne,ve){w[++h]=u($,ne,ve)}),w}function Sl(l){var u=pp(l);return 1==u.length&&u[0][2]?Oa(u[0][0],u[0][1]):function(h){return h===l||$d(h,l,u)}}function v_(l,u){return _p(l)&&yp(u)?Oa($o(l),u):function(h){var w=bh(h,l);return w===J&&w===u?Bc(h,l):ka(u,w,3)}}function un(l,u,h,w,$){l!==u&&zd(u,function(ne,ve){if($||($=new no),Bi(ne))!function np(l,u,h,w,$,ne,ve){var xe=bp(l,h),Le=bp(u,h),it=ve.get(Le);if(it)Kf(l,h,it);else{var rt=ne?ne(xe,Le,h+"",l,u,ve):J,ht=rt===J;if(ht){var Mt=pn(Le),Pt=!Mt&&La(Le),Xt=!Mt&&!Pt&&Do(Le);rt=Le,Mt||Pt||Xt?pn(xe)?rt=xe:Xi(xe)?rt=ws(xe):Pt?(ht=!1,rt=sp(Le,!0)):Xt?(ht=!1,rt=ap(Le,!0)):rt=[]:Lu(Le)||Ll(Le)?(rt=xe,Ll(xe)?rt=Wp(xe):(!Bi(xe)||ca(xe))&&(rt=O_(Le))):ht=!1}ht&&(ve.set(Le,rt),$(rt,Le,w,ne,ve),ve.delete(Le)),Kf(l,h,rt)}}(l,u,ve,h,un,w,$);else{var xe=w?w(bp(l,ve),ne,ve+"",l,u,$):J;xe===J&&(xe=ne),Kf(l,ve,xe)}},xr)}function y_(l,u){var h=l.length;if(h)return Ss(u+=u<0?h:0,h)?l[u]:J}function ip(l,u,h){u=u.length?Ai(u,function(ne){return pn(ne)?function(ve){return wl(ve,1===ne.length?ne[0]:ne)}:ne}):[xs];var w=-1;return u=Ai(u,Ln(rn())),function jr(Ie,Je){var Ge=Ie.length;for(Ie.sort(Je);Ge--;)Ie[Ge]=Ie[Ge].value;return Ie}(tp(l,function(ne,ve,xe){return{criteria:Ai(u,function(it){return it(ne)}),index:++w,value:ne}}),function(ne,ve){return function oD(l,u,h){for(var w=-1,$=l.criteria,ne=u.criteria,ve=$.length,xe=h.length;++w<ve;){var Le=S_($[w],ne[w]);if(Le)return w>=xe?Le:Le*("desc"==h[w]?-1:1)}return l.index-u.index}(ne,ve,h)})}function Al(l,u,h){for(var w=-1,$=u.length,ne={};++w<$;){var ve=u[w],xe=wl(l,ve);h(xe,ve)&&Gd(ne,Ra(ve,l),xe)}return ne}function Ta(l,u,h,w){var $=w?Vs:er,ne=-1,ve=u.length,xe=l;for(l===u&&(u=ws(u)),h&&(xe=Ai(l,Ln(h)));++ne<ve;)for(var Le=0,it=u[ne],rt=h?h(it):it;(Le=$(xe,rt,Le,w))>-1;)xe!==l&&Rd.call(xe,Le,1),Rd.call(l,Le,1);return l}function rp(l,u){for(var h=l?u.length:0,w=h-1;h--;){var $=u[h];if(h==w||$!==ne){var ne=$;Ss($)?Rd.call(l,$,1):C_(l,$)}}return l}function Cu(l,u){return l+Ti(fu()*(u-l+1))}function b_(l,u){var h="";if(!l||u<1||u>Ce)return h;do{u%2&&(h+=l),(u=Ti(u/2))&&(l+=l)}while(u);return h}function An(l,u){return wp(N_(l,u,xs),l+"")}function lt(l){return ia(Hc(l))}function pT(l,u){var h=Hc(l);return ku(h,bl(u,0,h.length))}function Gd(l,u,h,w){if(!Bi(l))return l;for(var $=-1,ne=(u=Ra(u,l)).length,ve=ne-1,xe=l;null!=xe&&++$<ne;){var Le=$o(u[$]),it=h;if("__proto__"===Le||"constructor"===Le||"prototype"===Le)return l;if($!=ve){var rt=xe[Le];(it=w?w(rt,Le,xe):J)===J&&(it=Bi(rt)?rt:Ss(u[$+1])?[]:{})}mu(xe,Le,it),xe=xe[Le]}return l}var nD=Fd?function(l,u){return Fd.set(l,u),l}:xs,mT=_c?function(l,u){return _c(l,"toString",{configurable:!0,enumerable:!1,value:em(u),writable:!0})}:xs;function gT(l){return ku(Hc(l))}function wo(l,u,h){var w=-1,$=l.length;u<0&&(u=-u>$?0:$+u),(h=h>$?$:h)<0&&(h+=$),$=u>h?0:h-u>>>0,u>>>=0;for(var ne=Ge($);++w<$;)ne[w]=l[w+u];return ne}function _T(l,u){var h;return Vo(l,function(w,$,ne){return!(h=u(w,$,ne))}),!!h}function Pa(l,u,h){var w=0,$=null==l?w:l.length;if("number"==typeof u&&u==u&&$<=2147483647){for(;w<$;){var ne=w+$>>>1,ve=l[ne];null!==ve&&!ro(ve)&&(h?ve<=u:ve<u)?w=ne+1:$=ne}return $}return w_(l,u,xs,h)}function w_(l,u,h,w){var $=0,ne=null==l?0:l.length;if(0===ne)return 0;for(var ve=(u=h(u))!=u,xe=null===u,Le=ro(u),it=u===J;$<ne;){var rt=Ti(($+ne)/2),ht=h(l[rt]),Mt=ht!==J,Pt=null===ht,Xt=ht==ht,Cn=ro(ht);if(ve)var Jt=w||Xt;else Jt=it?Xt&&(w||Mt):xe?Xt&&Mt&&(w||!Pt):Le?Xt&&Mt&&!Pt&&(w||!Cn):!Pt&&!Cn&&(w?ht<=u:ht<u);Jt?$=rt+1:ne=rt}return Yi(ne,4294967294)}function iD(l,u){for(var h=-1,w=l.length,$=0,ne=[];++h<w;){var ve=l[h],xe=u?u(ve):ve;if(!h||!ss(xe,Le)){var Le=xe;ne[$++]=0===ve?0:ve}}return ne}function tr(l){return"number"==typeof l?l:ro(l)?X:+l}function ts(l){if("string"==typeof l)return l;if(pn(l))return Ai(l,ts)+"";if(ro(l))return Wt?Wt.call(l):"";var u=l+"";return"0"==u&&1/l==-_e?"-0":u}function io(l,u,h){var w=-1,$=Cd,ne=l.length,ve=!0,xe=[],Le=xe;if(h)ve=!1,$=Ct;else if(ne>=200){var it=u?null:T_(l);if(it)return ys(it);ve=!1,$=ho,Le=new Ea}else Le=u?[]:xe;e:for(;++w<ne;){var rt=l[w],ht=u?u(rt):rt;if(rt=h||0!==rt?rt:0,ve&&ht==ht){for(var Mt=Le.length;Mt--;)if(Le[Mt]===ht)continue e;u&&Le.push(ht),xe.push(rt)}else $(Le,ht,h)||(Le!==xe&&Le.push(ht),xe.push(rt))}return xe}function C_(l,u){return null==(l=As(l,u=Ra(u,l)))||delete l[$o(Ms(u))]}function D_(l,u,h,w){return Gd(l,u,h(wl(l,u)),w)}function $r(l,u,h,w){for(var $=l.length,ne=w?$:-1;(w?ne--:++ne<$)&&u(l[ne],ne,l););return h?wo(l,w?0:ne,w?ne+1:$):wo(l,w?ne+1:0,w?$:ne)}function Ho(l,u){var h=l;return h instanceof xn&&(h=h.value()),Dd(u,function(w,$){return $.func.apply($.thisArg,ta([w],$.args))},h)}function qd(l,u,h){var w=l.length;if(w<2)return w?io(l[0]):[];for(var $=-1,ne=Ge(w);++$<w;)for(var ve=l[$],xe=-1;++xe<w;)xe!=$&&(ne[$]=ra(ne[$]||ve,l[xe],u,h));return io(Er(ne,1),u,h)}function Du(l,u,h){for(var w=-1,$=l.length,ne=u.length,ve={};++w<$;)h(ve,l[w],w<ne?u[w]:J);return ve}function Ml(l){return Xi(l)?l:[]}function Yd(l){return"function"==typeof l?l:xs}function Ra(l,u){return pn(l)?l:_p(l,u)?[l]:z_(Kn(l))}var rD=An;function El(l,u,h){var w=l.length;return h=h===J?w:h,!u&&h>=w?l:wo(l,u,h)}var sD=NC||function(l){return Cr.clearTimeout(l)};function sp(l,u){if(u)return l.slice();var h=l.length,w=n_?n_(h):new l.constructor(h);return l.copy(w),w}function ns(l){var u=new l.constructor(l.byteLength);return new uu(u).set(new uu(l)),u}function ap(l,u){var h=u?ns(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function S_(l,u){if(l!==u){var h=l!==J,w=null===l,$=l==l,ne=ro(l),ve=u!==J,xe=null===u,Le=u==u,it=ro(u);if(!xe&&!it&&!ne&&l>u||ne&&ve&&Le&&!xe&&!it||w&&ve&&Le||!h&&Le||!$)return 1;if(!w&&!ne&&!it&&l<u||it&&h&&$&&!w&&!ne||xe&&h&&$||!ve&&$||!Le)return-1}return 0}function A_(l,u,h,w){for(var $=-1,ne=l.length,ve=h.length,xe=-1,Le=u.length,it=qi(ne-ve,0),rt=Ge(Le+it),ht=!w;++xe<Le;)rt[xe]=u[xe];for(;++$<ve;)(ht||$<ne)&&(rt[h[$]]=l[$]);for(;it--;)rt[xe++]=l[$++];return rt}function M_(l,u,h,w){for(var $=-1,ne=l.length,ve=-1,xe=h.length,Le=-1,it=u.length,rt=qi(ne-xe,0),ht=Ge(rt+it),Mt=!w;++$<rt;)ht[$]=l[$];for(var Pt=$;++Le<it;)ht[Pt+Le]=u[Le];for(;++ve<xe;)(Mt||$<ne)&&(ht[Pt+h[ve]]=l[$++]);return ht}function ws(l,u){var h=-1,w=l.length;for(u||(u=Ge(w));++h<w;)u[h]=l[h];return u}function zo(l,u,h,w){var $=!h;h||(h={});for(var ne=-1,ve=u.length;++ne<ve;){var xe=u[ne],Le=w?w(h[xe],l[xe],xe,h,l):J;Le===J&&(Le=l[xe]),$?yo(h,xe,Le):mu(h,xe,Le)}return h}function cp(l,u){return function(h,w){var $=pn(h)?kf:Vd,ne=u?u():{};return $(h,l,rn(w,2),ne)}}function Uo(l){return An(function(u,h){var w=-1,$=h.length,ne=$>1?h[$-1]:J,ve=$>2?h[2]:J;for(ne=l.length>3&&"function"==typeof ne?($--,ne):J,ve&&is(h[0],h[1],ve)&&(ne=$<3?J:ne,$=1),u=gi(u);++w<$;){var xe=h[w];xe&&l(u,xe,w,ne)}return u})}function Xd(l,u){return function(h,w){if(null==h)return h;if(!os(h))return l(h,w);for(var $=h.length,ne=u?$:-1,ve=gi(h);(u?ne--:++ne<$)&&!1!==w(ve[ne],ne,ve););return h}}function Su(l){return function(u,h,w){for(var $=-1,ne=gi(u),ve=w(u),xe=ve.length;xe--;){var Le=ve[l?xe:++$];if(!1===h(ne[Le],Le,ne))break}return u}}function E_(l){return function(u){var h=fo(u=Kn(u))?po(u):J,w=h?h[0]:u.charAt(0),$=h?El(h,1).join(""):u.slice(1);return w[l]()+$}}function xc(l){return function(u){return Dd(Yv(dn(u).replace(iT,"")),l,"")}}function kc(l){return function(){var u=arguments;switch(u.length){case 0:return new l;case 1:return new l(u[0]);case 2:return new l(u[0],u[1]);case 3:return new l(u[0],u[1],u[2]);case 4:return new l(u[0],u[1],u[2],u[3]);case 5:return new l(u[0],u[1],u[2],u[3],u[4]);case 6:return new l(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new l(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var h=yl(l.prototype),w=l.apply(h,u);return Bi(w)?w:h}}function xl(l){return function(u,h,w){var $=gi(u);if(!os(u)){var ne=rn(h,3);u=nr(u),h=function(xe){return ne($[xe],xe,$)}}var ve=l(u,h,w);return ve>-1?$[ne?u[ve]:ve]:J}}function x_(l){return Ds(function(u){var h=u.length,w=h,$=Ki.prototype.thru;for(l&&u.reverse();w--;){var ne=u[w];if("function"!=typeof ne)throw new _o(ce);if($&&!ve&&"wrapper"==Eu(ne))var ve=new Ki([],!0)}for(w=ve?w:h;++w<h;){var xe=Eu(ne=u[w]),Le="wrapper"==xe?P_(ne):J;ve=Le&&Rc(Le[0])&&424==Le[1]&&!Le[4].length&&1==Le[9]?ve[Eu(Le[0])].apply(ve,Le[3]):1==ne.length&&Rc(ne)?ve[xe]():ve.thru(ne)}return function(){var it=arguments,rt=it[0];if(ve&&1==it.length&&pn(rt))return ve.plant(rt).value();for(var ht=0,Mt=h?u[ht].apply(this,it):rt;++ht<h;)Mt=u[ht].call(this,Mt);return Mt}})}function Re(l,u,h,w,$,ne,ve,xe,Le,it){var rt=u&H,ht=1&u,Mt=2&u,Pt=24&u,Xt=512&u,Cn=Mt?J:kc(l);return function Jt(){for(var Mn=arguments.length,Nn=Ge(Mn),as=Mn;as--;)Nn[as]=arguments[as];if(Pt)var ls=Pc(Jt),ir=Vi(Nn,ls);if(w&&(Nn=A_(Nn,w,$,Pt)),ne&&(Nn=M_(Nn,ne,ve,Pt)),Mn-=ir,Pt&&Mn<it){var Hi=Bs(Nn,ls);return Zd(l,u,Re,Jt.placeholder,h,Nn,Hi,xe,Le,it-Mn)}var Eo=ht?h:this,xo=Mt?Eo[l]:l;return Mn=Nn.length,xe?Nn=jo(Nn,xe):Xt&&Mn>1&&Nn.reverse(),rt&&Le<Mn&&(Nn.length=Le),this&&this!==Cr&&this instanceof Jt&&(xo=Cn||kc(xo)),xo.apply(Eo,Nn)}}function up(l,u){return function(h,w){return function Bo(l,u,h,w){return bo(l,function($,ne,ve){u(w,h($),ne,ve)}),w}(h,l,u(w),{})}}function qn(l,u){return function(h,w){var $;if(h===J&&w===J)return u;if(h!==J&&($=h),w!==J){if($===J)return w;"string"==typeof h||"string"==typeof w?(h=ts(h),w=ts(w)):(h=tr(h),w=tr(w)),$=l(h,w)}return $}}function Mu(l){return Ds(function(u){return u=Ai(u,Ln(rn())),An(function(h){var w=this;return l(u,function($){return Ur($,w,h)})})})}function Ia(l,u){var h=(u=u===J?" ":ts(u)).length;if(h<2)return h?b_(u,l):u;var w=b_(u,zf(l/gc(u)));return fo(u)?El(po(w),0,l).join(""):w.slice(0,l)}function k_(l){return function(u,h,w){return w&&"number"!=typeof w&&is(u,h,w)&&(h=w=J),u=ua(u),h===J?(h=u,u=0):h=ua(h),function Mc(l,u,h,w){for(var $=-1,ne=qi(zf((u-l)/(h||1)),0),ve=Ge(ne);ne--;)ve[w?ne:++$]=l,l+=h;return ve}(u,h,w=w===J?u<h?1:-1:ua(w),l)}}function Qd(l){return function(u,h){return"string"==typeof u&&"string"==typeof h||(u=so(u),h=so(h)),l(u,h)}}function Zd(l,u,h,w,$,ne,ve,xe,Le,it){var rt=8&u;u|=rt?k:64,4&(u&=~(rt?64:k))||(u&=-4);var Cn=[l,u,$,rt?ne:J,rt?ve:J,rt?J:ne,rt?J:ve,xe,Le,it],Jt=h.apply(J,Cn);return Rc(l)&&V_(Jt,Cn),Jt.placeholder=w,B_(Jt,l,u)}function Cs(l){var u=Ar[l];return function(h,w){if(h=so(h),(w=null==w?0:Yi(vn(w),292))&&hu(h)){var $=(Kn(h)+"e").split("e");return+(($=(Kn(u($[0]+"e"+(+$[1]+w)))+"e").split("e"))[0]+"e"+(+$[1]-w))}return u(h)}}var T_=nn&&1/ys(new nn([,-0]))[1]==_e?function(l){return new nn(l)}:im;function Co(l){return function(u){var h=Nr(u);return h==Ae?Sr(u):h==le?function mc(Ie){var Je=-1,Ge=Array(Ie.size);return Ie.forEach(function(It){Ge[++Je]=[It,It]}),Ge}(u):function Et(Ie,Je){return Ai(Je,function(Ge){return[Ge,Ie[Ge]]})}(u,l(u))}}function oa(l,u,h,w,$,ne,ve,xe){var Le=2&u;if(!Le&&"function"!=typeof l)throw new _o(ce);var it=w?w.length:0;if(it||(u&=-97,w=$=J),ve=ve===J?ve:qi(vn(ve),0),xe=xe===J?xe:vn(xe),it-=$?$.length:0,64&u){var rt=w,ht=$;w=$=J}var Mt=Le?J:P_(l),Pt=[l,u,h,w,$,rt,ht,ne,ve,xe];if(Mt&&function fD(l,u){var h=l[1],w=u[1],$=h|w;if(!($<131||(w==H&&8==h||w==H&&256==h&&l[7].length<=u[8]||384==w&&u[7].length<=u[8]&&8==h)))return l;1&w&&(l[2]=u[2],$|=1&h?0:4);var xe=u[3];if(xe){var Le=l[3];l[3]=Le?A_(Le,xe,u[4]):xe,l[4]=Le?Bs(l[3],W):u[4]}(xe=u[5])&&(l[5]=(Le=l[5])?M_(Le,xe,u[6]):xe,l[6]=Le?Bs(l[5],W):u[6]),(xe=u[7])&&(l[7]=xe),w&H&&(l[8]=null==l[8]?u[8]:Yi(l[8],u[8])),null==l[9]&&(l[9]=u[9]),l[0]=u[0],l[1]=$}(Pt,Mt),l=Pt[0],u=Pt[1],h=Pt[2],w=Pt[3],$=Pt[4],!(xe=Pt[9]=Pt[9]===J?Le?0:l.length:qi(Pt[9]-it,0))&&24&u&&(u&=-25),u&&1!=u)Xt=8==u||16==u?function Au(l,u,h){var w=kc(l);return function $(){for(var ne=arguments.length,ve=Ge(ne),xe=ne,Le=Pc($);xe--;)ve[xe]=arguments[xe];var it=ne<3&&ve[0]!==Le&&ve[ne-1]!==Le?[]:Bs(ve,Le);return(ne-=it.length)<h?Zd(l,u,Re,$.placeholder,J,ve,it,J,J,h-ne):Ur(this&&this!==Cr&&this instanceof $?w:l,this,ve)}}(l,u,xe):u!=k&&33!=u||$.length?Re.apply(J,Pt):function lD(l,u,h,w){var $=1&u,ne=kc(l);return function ve(){for(var xe=-1,Le=arguments.length,it=-1,rt=w.length,ht=Ge(rt+Le),Mt=this&&this!==Cr&&this instanceof ve?ne:l;++it<rt;)ht[it]=w[it];for(;Le--;)ht[it++]=arguments[++xe];return Ur(Mt,$?h:this,ht)}}(l,u,h,w);else var Xt=function aD(l,u,h){var w=1&u,$=kc(l);return function ne(){return(this&&this!==Cr&&this instanceof ne?$:l).apply(w?h:this,arguments)}}(l,u,h);return B_((Mt?nD:V_)(Xt,Pt),l,u)}function dp(l,u,h,w){return l===J||ss(l,cu[h])&&!si.call(w,h)?u:l}function Tc(l,u,h,w,$,ne){return Bi(l)&&Bi(u)&&(ne.set(u,l),un(l,u,J,Tc,ne),ne.delete(u)),l}function Jd(l){return Lu(l)?J:l}function hp(l,u,h,w,$,ne){var ve=1&h,xe=l.length,Le=u.length;if(xe!=Le&&!(ve&&Le>xe))return!1;var it=ne.get(l),rt=ne.get(u);if(it&&rt)return it==u&&rt==l;var ht=-1,Mt=!0,Pt=2&h?new Ea:J;for(ne.set(l,u),ne.set(u,l);++ht<xe;){var Xt=l[ht],Cn=u[ht];if(w)var Jt=ve?w(Cn,Xt,ht,u,l,ne):w(Xt,Cn,ht,l,u,ne);if(Jt!==J){if(Jt)continue;Mt=!1;break}if(Pt){if(!Tf(u,function(Mn,Nn){if(!ho(Pt,Nn)&&(Xt===Mn||$(Xt,Mn,h,w,ne)))return Pt.push(Nn)})){Mt=!1;break}}else if(Xt!==Cn&&!$(Xt,Cn,h,w,ne)){Mt=!1;break}}return ne.delete(l),ne.delete(u),Mt}function Ds(l){return wp(N_(l,J,oh),l+"")}function kl(l){return Cl(l,nr,nh)}function fp(l){return Cl(l,xr,R_)}var P_=Fd?function(l){return Fd.get(l)}:im;function Eu(l){for(var u=l.name+"",h=bc[u],w=si.call(bc,u)?h.length:0;w--;){var $=h[w],ne=$.func;if(null==ne||ne==l)return $.name}return u}function Pc(l){return(si.call(K,"placeholder")?K:l).placeholder}function rn(){var l=K.iteratee||Dh;return l=l===Dh?wu:l,arguments.length?l(arguments[0],arguments[1]):l}function eh(l,u){var h=l.__data__;return function bT(l){var u=typeof l;return"string"==u||"number"==u||"symbol"==u||"boolean"==u?"__proto__"!==l:null===l}(u)?h["string"==typeof u?"string":"hash"]:h.map}function pp(l){for(var u=nr(l),h=u.length;h--;){var w=u[h],$=l[w];u[h]=[w,$,yp($)]}return u}function Tl(l,u){var h=function Ad(Ie,Je){return null==Ie?J:Ie[Je]}(l,u);return ep(h)?h:J}var nh=Uf?function(l){return null==l?[]:(l=gi(l),eo(Uf(l),function(u){return Bf.call(l,u)}))}:Bu,R_=Uf?function(l){for(var u=[];l;)ta(u,nh(l)),l=Pd(l);return u}:Bu,Nr=Lr;function dD(l,u,h){for(var w=-1,$=(u=Ra(u,l)).length,ne=!1;++w<$;){var ve=$o(u[w]);if(!(ne=null!=l&&h(l,ve)))break;l=l[ve]}return ne||++w!=$?ne:!!($=null==l?0:l.length)&&Bp($)&&Ss(ve,$)&&(pn(l)||Ll(l))}function O_(l){return"function"!=typeof l.constructor||Ic(l)?{}:yl(Pd(l))}function gp(l){return pn(l)||Ll(l)||!!(Id&&l&&l[Id])}function Ss(l,u){var h=typeof l;return!!(u=null==u?Ce:u)&&("number"==h||"symbol"!=h&&Hg.test(l))&&l>-1&&l%1==0&&l<u}function is(l,u,h){if(!Bi(h))return!1;var w=typeof u;return!!("number"==w?os(h)&&Ss(u,h.length):"string"==w&&u in h)&&ss(h[u],l)}function _p(l,u){if(pn(l))return!1;var h=typeof l;return!("number"!=h&&"symbol"!=h&&"boolean"!=h&&null!=l&&!ro(l))||Ks.test(l)||!Ls.test(l)||null!=u&&l in gi(u)}function Rc(l){var u=Eu(l),h=K[u];if("function"!=typeof h||!(u in xn.prototype))return!1;if(l===h)return!0;var w=P_(h);return!!w&&l===w[0]}(No&&Nr(new No(new ArrayBuffer(1)))!=Vt||vc&&Nr(new vc)!=Ae||pu&&Nr(pu.resolve())!=je||nn&&Nr(new nn)!=le||yc&&Nr(new yc)!=Ke)&&(Nr=function(l){var u=Lr(l),h=u==De?l.constructor:J,w=h?Pl(h):"";if(w)switch(w){case zC:return Vt;case r_:return Ae;case UC:return je;case jC:return le;case ct:return Ke}return u});var L_=Ff?ca:Mo;function Ic(l){var u=l&&l.constructor;return l===("function"==typeof u&&u.prototype||cu)}function yp(l){return l==l&&!Bi(l)}function Oa(l,u){return function(h){return null!=h&&h[l]===u&&(u!==J||l in gi(h))}}function N_(l,u,h){return u=qi(u===J?l.length-1:u,0),function(){for(var w=arguments,$=-1,ne=qi(w.length-u,0),ve=Ge(ne);++$<ne;)ve[$]=w[u+$];$=-1;for(var xe=Ge(u+1);++$<u;)xe[$]=w[$];return xe[u]=h(ve),Ur(l,this,xe)}}function As(l,u){return u.length<2?l:wl(l,wo(u,0,-1))}function jo(l,u){for(var h=l.length,w=Yi(u.length,h),$=ws(l);w--;){var ne=u[w];l[w]=Ss(ne,h)?$[ne]:J}return l}function bp(l,u){if(("constructor"!==u||"function"!=typeof l[u])&&"__proto__"!=u)return l[u]}var V_=H_(nD),xu=VC||function(l,u){return Cr.setTimeout(l,u)},wp=H_(mT);function B_(l,u,h){var w=u+"";return wp(l,function ih(l,u){var h=u.length;if(!h)return l;var w=h-1;return u[w]=(h>1?"& ":"")+u[w],u=u.join(h>2?", ":" "),l.replace(vC,"{\n/* [wrapped with "+u+"] */\n")}(w,function gD(l,u){return _s(D,function(h){var w="_."+h[0];u&h[1]&&!Cd(l,w)&&l.push(w)}),l.sort()}(function I_(l){var u=l.match(lr);return u?u[1].split(uc):[]}(w),h)))}function H_(l){var u=0,h=0;return function(){var w=Hs(),$=16-(w-h);if(h=w,$>0){if(++u>=800)return arguments[0]}else u=0;return l.apply(J,arguments)}}function ku(l,u){var h=-1,w=l.length,$=w-1;for(u=u===J?w:u;++h<u;){var ne=Cu(h,$),ve=l[ne];l[ne]=l[h],l[h]=ve}return l.length=u,l}var z_=function hD(l){var u=mh(l,function(w){return 500===h.size&&h.clear(),w}),h=u.cache;return u}(function(l){var u=[];return 46===l.charCodeAt(0)&&u.push(""),l.replace(Or,function(h,w,$,ne){u.push($?ne.replace(yC,"$1"):w||h)}),u});function $o(l){if("string"==typeof l||ro(l))return l;var u=l+"";return"0"==u&&1/l==-_e?"-0":u}function Pl(l){if(null!=l){try{return Lf.call(l)}catch(u){}try{return l+""}catch(u){}}return""}function _D(l){if(l instanceof xn)return l.clone();var u=new Ki(l.__wrapped__,l.__chain__);return u.__actions__=ws(l.__actions__),u.__index__=l.__index__,u.__values__=l.__values__,u}var Wo=An(function(l,u){return Xi(l)?ra(l,Er(u,1,Xi,!0)):[]}),Pu=An(function(l,u){var h=Ms(u);return Xi(h)&&(h=J),Xi(l)?ra(l,Er(u,1,Xi,!0),rn(h,2)):[]}),j_=An(function(l,u){var h=Ms(u);return Xi(h)&&(h=J),Xi(l)?ra(l,Er(u,1,Xi,!0),J,h):[]});function rh(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var $=null==h?0:vn(h);return $<0&&($=qi(w+$,0)),Dr(l,rn(u,3),$)}function sh(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var $=w-1;return h!==J&&($=vn(h),$=h<0?qi(w+$,0):Yi($,w-1)),Dr(l,rn(u,3),$,!0)}function oh(l){return null!=l&&l.length?Er(l,1):[]}function q_(l){return l&&l.length?l[0]:J}var wD=An(function(l){var u=Ai(l,Ml);return u.length&&u[0]===l[0]?Qf(u):[]}),Y_=An(function(l){var u=Ms(l),h=Ai(l,Ml);return u===Ms(h)?u=J:h.pop(),h.length&&h[0]===l[0]?Qf(h,rn(u,2)):[]}),ah=An(function(l){var u=Ms(l),h=Ai(l,Ml);return(u="function"==typeof u?u:J)&&h.pop(),h.length&&h[0]===l[0]?Qf(h,J,u):[]});function Ms(l){var u=null==l?0:l.length;return u?l[u-1]:J}var X_=An(Q_);function Q_(l,u){return l&&l.length&&u&&u.length?Ta(l,u):l}var DD=Ds(function(l,u){var h=null==l?0:l.length,w=Hd(l,u);return rp(l,Ai(u,function($){return Ss($,h)?+$:$}).sort(S_)),w});function Cp(l){return null==l?l:HC.call(l)}var xD=An(function(l){return io(Er(l,1,Xi,!0))}),Ap=An(function(l){var u=Ms(l);return Xi(u)&&(u=J),io(Er(l,1,Xi,!0),rn(u,2))}),rv=An(function(l){var u=Ms(l);return u="function"==typeof u?u:J,io(Er(l,1,Xi,!0),J,u)});function Iu(l){if(!l||!l.length)return[];var u=0;return l=eo(l,function(h){if(Xi(h))return u=qi(h.length,u),!0}),vs(u,function(h){return Ai(l,gl(h))})}function Ou(l,u){if(!l||!l.length)return[];var h=Iu(l);return null==u?h:Ai(h,function(w){return Ur(u,J,w)})}var TD=An(function(l,u){return Xi(l)?ra(l,u):[]}),Mp=An(function(l){return qd(eo(l,Xi))}),lh=An(function(l){var u=Ms(l);return Xi(u)&&(u=J),qd(eo(l,Xi),rn(u,2))}),Fa=An(function(l){var u=Ms(l);return u="function"==typeof u?u:J,qd(eo(l,Xi),J,u)}),ov=An(Iu),RD=An(function(l){var u=l.length,h=u>1?l[u-1]:J;return h="function"==typeof h?(l.pop(),h):J,Ou(l,h)});function xp(l){var u=K(l);return u.__chain__=!0,u}function ch(l,u){return u(l)}var ID=Ds(function(l){var u=l.length,h=u?l[0]:0,w=this.__wrapped__,$=function(ne){return Hd(ne,l)};return!(u>1||this.__actions__.length)&&w instanceof xn&&Ss(h)?((w=w.slice(h,+h+(u?1:0))).__actions__.push({func:ch,args:[$],thisArg:J}),new Ki(w,this.__chain__).thru(function(ne){return u&&!ne.length&&ne.push(J),ne})):this.thru($)}),kT=cp(function(l,u,h){si.call(l,h)?++l[h]:yo(l,h,1)}),BD=xl(rh),Fc=xl(sh);function Ol(l,u){return(pn(l)?_s:Vo)(l,rn(u,3))}function Us(l,u){return(pn(l)?Qg:f_)(l,rn(u,3))}var zD=cp(function(l,u,h){si.call(l,h)?l[h].push(u):yo(l,h,[u])}),Fl=An(function(l,u,h){var w=-1,$="function"==typeof u,ne=os(l)?Ge(l.length):[];return Vo(l,function(ve){ne[++w]=$?Ur(u,ve,h):bu(ve,u,h)}),ne}),jD=cp(function(l,u,h){yo(l,h,u)});function Lc(l,u){return(pn(l)?Ai:tp)(l,rn(u,3))}var WD=cp(function(l,u,h){l[h?0:1].push(u)},function(){return[[],[]]}),NT=An(function(l,u){if(null==l)return[];var h=u.length;return h>1&&is(l,u[0],u[1])?u=[]:h>2&&is(u[0],u[1],u[2])&&(u=[u[0]]),ip(l,Er(u,1),[])}),uh=Hf||function(){return Cr.Date.now()};function dh(l,u,h){return u=h?J:u,oa(l,H,J,J,J,J,u=l&&null==u?l.length:u)}function Rp(l,u){var h;if("function"!=typeof u)throw new _o(ce);return l=vn(l),function(){return--l>0&&(h=u.apply(this,arguments)),l<=1&&(u=J),h}}var hh=An(function(l,u,h){var w=1;if(h.length){var $=Bs(h,Pc(hh));w|=k}return oa(l,w,u,h,$)}),Ip=An(function(l,u,h){var w=3;if(h.length){var $=Bs(h,Pc(Ip));w|=k}return oa(u,w,l,h,$)});function ph(l,u,h){var w,$,ne,ve,xe,Le,it=0,rt=!1,ht=!1,Mt=!0;if("function"!=typeof l)throw new _o(ce);function Pt(Hi){var Eo=w,xo=$;return w=$=J,it=Hi,ve=l.apply(xo,Eo)}function Xt(Hi){return it=Hi,xe=xu(Mn,u),rt?Pt(Hi):ve}function Jt(Hi){var Eo=Hi-Le;return Le===J||Eo>=u||Eo<0||ht&&Hi-it>=ne}function Mn(){var Hi=uh();if(Jt(Hi))return Nn(Hi);xe=xu(Mn,function Cn(Hi){var sy=u-(Hi-Le);return ht?Yi(sy,ne-(Hi-it)):sy}(Hi))}function Nn(Hi){return xe=J,Mt&&w?Pt(Hi):(w=$=J,ve)}function ir(){var Hi=uh(),Eo=Jt(Hi);if(w=arguments,$=this,Le=Hi,Eo){if(xe===J)return Xt(Le);if(ht)return sD(xe),xe=xu(Mn,u),Pt(Le)}return xe===J&&(xe=xu(Mn,u)),ve}return u=so(u)||0,Bi(h)&&(rt=!!h.leading,ne=(ht="maxWait"in h)?qi(so(h.maxWait)||0,u):ne,Mt="trailing"in h?!!h.trailing:Mt),ir.cancel=function as(){xe!==J&&sD(xe),it=0,w=Le=$=xe=J},ir.flush=function ls(){return xe===J?ve:Nn(uh())},ir}var aa=An(function(l,u){return h_(l,1,u)}),GD=An(function(l,u,h){return h_(l,so(u)||0,h)});function mh(l,u){if("function"!=typeof l||null!=u&&"function"!=typeof u)throw new _o(ce);var h=function(){var w=arguments,$=u?u.apply(this,w):w[0],ne=h.cache;if(ne.has($))return ne.get($);var ve=l.apply(this,w);return h.cache=ne.set($,ve)||ne,ve};return h.cache=new(mh.Cache||vo),h}function Fu(l){if("function"!=typeof l)throw new _o(ce);return function(){var u=arguments;switch(u.length){case 0:return!l.call(this);case 1:return!l.call(this,u[0]);case 2:return!l.call(this,u[0],u[1]);case 3:return!l.call(this,u[0],u[1],u[2])}return!l.apply(this,u)}}mh.Cache=vo;var KD=rD(function(l,u){var h=(u=1==u.length&&pn(u[0])?Ai(u[0],Ln(rn())):Ai(Er(u,1),Ln(rn()))).length;return An(function(w){for(var $=-1,ne=Yi(w.length,h);++$<ne;)w[$]=u[$].call(this,w[$]);return Ur(l,this,w)})}),Op=An(function(l,u){var h=Bs(u,Pc(Op));return oa(l,k,J,u,h)}),dv=An(function(l,u){var h=Bs(u,Pc(dv));return oa(l,64,J,u,h)}),Fp=Ds(function(l,u){return oa(l,256,J,J,J,u)});function ss(l,u){return l===u||l!=l&&u!=u}var Vp=Qd(Dc),tS=Qd(function(l,u){return l>=u}),Ll=Sc(function(){return arguments}())?Sc:function(l){return Ri(l)&&si.call(l,"callee")&&!Bf.call(l,"callee")},pn=Ge.isArray,nS=Js?Ln(Js):function Zf(l){return Ri(l)&&Lr(l)==pt};function os(l){return null!=l&&Bp(l.length)&&!ca(l)}function Xi(l){return Ri(l)&&os(l)}var La=uT||Mo,iS=ni?Ln(ni):function Jf(l){return Ri(l)&&Lr(l)==pe};function Na(l){if(!Ri(l))return!1;var u=Lr(l);return u==ge||"[object DOMException]"==u||"string"==typeof l.message&&"string"==typeof l.name&&!Lu(l)}function ca(l){if(!Bi(l))return!1;var u=Lr(l);return u==be||u==ke||"[object AsyncFunction]"==u||"[object Proxy]"==u}function mv(l){return"number"==typeof l&&l==vn(l)}function Bp(l){return"number"==typeof l&&l>-1&&l%1==0&&l<=Ce}function Bi(l){var u=typeof l;return null!=l&&("object"==u||"function"==u)}function Ri(l){return null!=l&&"object"==typeof l}var aS=FC?Ln(FC):function JC(l){return Ri(l)&&Nr(l)==Ae};function Vc(l){return"number"==typeof l||Ri(l)&&Lr(l)==Ue}function Lu(l){if(!Ri(l)||Lr(l)!=De)return!1;var u=Pd(l);if(null===u)return!0;var h=si.call(u,"constructor")&&u.constructor;return"function"==typeof h&&h instanceof h&&Lf.call(h)==lT}var gh=LC?Ln(LC):function g_(l){return Ri(l)&&Lr(l)==q},_h=ml?Ln(ml):function __(l){return Ri(l)&&Nr(l)==le};function Nu(l){return"string"==typeof l||!pn(l)&&Ri(l)&&Lr(l)==Ee}function ro(l){return"symbol"==typeof l||Ri(l)&&Lr(l)==Xe}var Do=Gn?Ln(Gn):function eD(l){return Ri(l)&&Bp(l.length)&&!!bi[Lr(l)]},$p=Qd(Wd),dS=Qd(function(l,u){return l<=u});function vv(l){if(!l)return[];if(os(l))return Nu(l)?po(l):ws(l);if(du&&l[du])return function _l(Ie){for(var Je,Ge=[];!(Je=Ie.next()).done;)Ge.push(Je.value);return Ge}(l[du]());var u=Nr(l);return(u==Ae?Sr:u==le?ys:Hc)(l)}function ua(l){return l?(l=so(l))===_e||l===-_e?17976931348623157e292*(l<0?-1:1):l==l?l:0:0===l?l:0}function vn(l){var u=ua(l),h=u%1;return u==u?h?u-h:u:0}function yv(l){return l?bl(vn(l),0,C):0}function so(l){if("number"==typeof l)return l;if(ro(l))return X;if(Bi(l)){var u="function"==typeof l.valueOf?l.valueOf():l;l=Bi(u)?u+"":u}if("string"!=typeof l)return 0===l?l:+l;l=mn(l);var h=ru.test(l);return h||Bg.test(l)?xf(l.slice(2),h?2:8):Cf.test(l)?X:+l}function Wp(l){return zo(l,xr(l))}function Kn(l){return null==l?"":ts(l)}var qp=Uo(function(l,u){if(Ic(u)||os(u))zo(u,nr(u),l);else for(var h in u)si.call(u,h)&&mu(l,h,u[h])}),bv=Uo(function(l,u){zo(u,xr(u),l)}),vh=Uo(function(l,u,h,w){zo(u,xr(u),l,w)}),wv=Uo(function(l,u,h,w){zo(u,nr(u),l,w)}),Cv=Ds(Hd),Dv=An(function(l,u){l=gi(l);var h=-1,w=u.length,$=w>2?u[2]:J;for($&&is(u[0],u[1],$)&&(w=1);++h<w;)for(var ne=u[h],ve=xr(ne),xe=-1,Le=ve.length;++xe<Le;){var it=ve[xe],rt=l[it];(rt===J||ss(rt,cu[it])&&!si.call(l,it))&&(l[it]=ne[it])}return l}),Sv=An(function(l){return l.push(J,Tc),Ur(Pv,J,l)});function bh(l,u,h){var w=null==l?J:wl(l,u);return w===J?h:w}function Bc(l,u){return null!=l&&dD(l,u,p_)}var xv=up(function(l,u,h){null!=u&&"function"!=typeof u.toString&&(u=Nf.call(u)),l[u]=h},em(xs)),Kp=up(function(l,u,h){null!=u&&"function"!=typeof u.toString&&(u=Nf.call(u)),si.call(l,u)?l[u].push(h):l[u]=[h]},rn),kv=An(bu);function nr(l){return os(l)?Pi(l):Dl(l)}function xr(l){return os(l)?Pi(l,!0):function tD(l){if(!Bi(l))return function pD(l){var u=[];if(null!=l)for(var h in gi(l))u.push(h);return u}(l);var u=Ic(l),h=[];for(var w in l)"constructor"==w&&(u||!si.call(l,w))||h.push(w);return h}(l)}var mS=Uo(function(l,u,h){un(l,u,h)}),Pv=Uo(function(l,u,h,w){un(l,u,h,w)}),Rv=Ds(function(l,u){var h={};if(null==l)return h;var w=!1;u=Ai(u,function(ne){return ne=Ra(ne,l),w||(w=ne.length>1),ne}),zo(l,fp(l),h),w&&(h=ur(h,7,Jd));for(var $=u.length;$--;)C_(h,u[$]);return h}),Iv=Ds(function(l,u){return null==l?{}:function bs(l,u){return Al(l,u,function(h,w){return Bc(l,w)})}(l,u)});function gS(l,u){if(null==l)return{};var h=Ai(fp(l),function(w){return[w]});return u=rn(u),Al(l,h,function(w,$){return u(w,$[0])})}var Lv=Co(nr),Nv=Co(xr);function Hc(l){return null==l?[]:Qr(l,nr(l))}var DS=xc(function(l,u,h){return u=u.toLowerCase(),l+(h?Hv(u):u)});function Hv(l){return Va(Kn(l).toLowerCase())}function dn(l){return(l=Kn(l))&&l.replace(wC,lu).replace(rT,"")}var SS=xc(function(l,u,h){return l+(h?"-":"")+u.toLowerCase()}),AS=xc(function(l,u,h){return l+(h?" ":"")+u.toLowerCase()}),jv=E_("toLowerCase"),Gv=xc(function(l,u,h){return l+(h?"_":"")+u.toLowerCase()}),kS=xc(function(l,u,h){return l+(h?" ":"")+Va(u)}),RS=xc(function(l,u,h){return l+(h?" ":"")+u.toUpperCase()}),Va=E_("toUpperCase");function Yv(l,u,h){return l=Kn(l),(u=h?J:u)===J?function Rf(Ie){return Mf.test(Ie)}(l)?function Ed(Ie){return Ie.match(sT)||[]}(l):function ki(Ie){return Ie.match(Ns)||[]}(l):l.match(u)||[]}var Jp=An(function(l,u){try{return Ur(l,J,u)}catch(h){return Na(h)?h:new gn(h)}}),Ch=Ds(function(l,u){return _s(u,function(h){h=$o(h),yo(l,h,hh(l[h],l))}),l});function em(l){return function(){return l}}var FS=x_(),LS=x_(!0);function xs(l){return l}function Dh(l){return wu("function"==typeof l?l:ur(l,1))}var Qv=An(function(l,u){return function(h){return bu(h,l,u)}}),tm=An(function(l,u){return function(h){return bu(l,h,u)}});function Zv(l,u,h){var w=nr(u),$=sa(u,w);null==h&&(!Bi(u)||!$.length&&w.length)&&(h=u,u=l,l=this,$=sa(u,nr(u)));var ne=!(Bi(h)&&"chain"in h&&!h.chain),ve=ca(l);return _s($,function(xe){var Le=u[xe];l[xe]=Le,ve&&(l.prototype[xe]=function(){var it=this.__chain__;if(ne||it){var rt=l(this.__wrapped__),ht=rt.__actions__=ws(this.__actions__);return ht.push({func:Le,args:arguments,thisArg:l}),rt.__chain__=it,rt}return Le.apply(l,ta([this.value()],arguments))})}),l}function im(){}var R=Mu(Ai),Vl=Mu(Lo),Jv=Mu(Tf);function Vu(l){return _p(l)?gl($o(l)):function Ac(l){return function(u){return wl(u,l)}}(l)}var ey=k_(),VS=k_(!0);function Bu(){return[]}function Mo(){return!1}var Sh=qn(function(l,u){return l+u},0),Ah=Cs("ceil"),om=qn(function(l,u){return l/u},1),am=Cs("floor"),iy=qn(function(l,u){return l*u},1),YT=Cs("round"),jS=qn(function(l,u){return l-u},0);return K.after=function cv(l,u){if("function"!=typeof u)throw new _o(ce);return l=vn(l),function(){if(--l<1)return u.apply(this,arguments)}},K.ary=dh,K.assign=qp,K.assignIn=bv,K.assignInWith=vh,K.assignWith=wv,K.at=Cv,K.before=Rp,K.bind=hh,K.bindAll=Ch,K.bindKey=Ip,K.castArray=function eS(){if(!arguments.length)return[];var l=arguments[0];return pn(l)?l:[l]},K.chain=xp,K.chunk=function vD(l,u,h){u=(h?is(l,u,h):u===J)?1:qi(vn(u),0);var w=null==l?0:l.length;if(!w||u<1)return[];for(var $=0,ne=0,ve=Ge(zf(w/u));$<w;)ve[ne++]=wo(l,$,$+=u);return ve},K.compact=function Tu(l){for(var u=-1,h=null==l?0:l.length,w=0,$=[];++u<h;){var ne=l[u];ne&&($[w++]=ne)}return $},K.concat=function U_(){var l=arguments.length;if(!l)return[];for(var u=Ge(l-1),h=arguments[0],w=l;w--;)u[w-1]=arguments[w];return ta(pn(h)?ws(h):[h],Er(u,1))},K.cond=function IS(l){var u=null==l?0:l.length,h=rn();return l=u?Ai(l,function(w){if("function"!=typeof w[1])throw new _o(ce);return[h(w[0]),w[1]]}):[],An(function(w){for(var $=-1;++$<u;){var ne=l[$];if(Ur(ne[0],this,w))return Ur(ne[1],this,w)}})},K.conforms=function Kv(l){return function _u(l){var u=nr(l);return function(h){return d_(h,l,u)}}(ur(l,1))},K.constant=em,K.countBy=kT,K.create=function Nl(l,u){var h=yl(l);return null==u?h:gu(h,u)},K.curry=function fh(l,u,h){var w=oa(l,8,J,J,J,J,J,u=h?J:u);return w.placeholder=fh.placeholder,w},K.curryRight=function uv(l,u,h){var w=oa(l,16,J,J,J,J,J,u=h?J:u);return w.placeholder=uv.placeholder,w},K.debounce=ph,K.defaults=Dv,K.defaultsDeep=Sv,K.defer=aa,K.delay=GD,K.difference=Wo,K.differenceBy=Pu,K.differenceWith=j_,K.drop=function $_(l,u,h){var w=null==l?0:l.length;return w?wo(l,(u=h||u===J?1:vn(u))<0?0:u,w):[]},K.dropRight=function W_(l,u,h){var w=null==l?0:l.length;return w?wo(l,0,(u=w-(u=h||u===J?1:vn(u)))<0?0:u):[]},K.dropRightWhile=function wT(l,u){return l&&l.length?$r(l,rn(u,3),!0,!0):[]},K.dropWhile=function CT(l,u){return l&&l.length?$r(l,rn(u,3),!0):[]},K.fill=function DT(l,u,h,w){var $=null==l?0:l.length;return $?(h&&"number"!=typeof h&&is(l,u,h)&&(h=0,w=$),function hT(l,u,h,w){var $=l.length;for((h=vn(h))<0&&(h=-h>$?0:$+h),(w=w===J||w>$?$:vn(w))<0&&(w+=$),w=h>w?0:yv(w);h<w;)l[h++]=u;return l}(l,u,h,w)):[]},K.filter=function Il(l,u){return(pn(l)?eo:vu)(l,rn(u,3))},K.flatMap=function bt(l,u){return Er(Lc(l,u),1)},K.flatMapDeep=function HD(l,u){return Er(Lc(l,u),_e)},K.flatMapDepth=function TT(l,u,h){return h=h===J?1:vn(h),Er(Lc(l,u),h)},K.flatten=oh,K.flattenDeep=function ST(l){return null!=l&&l.length?Er(l,_e):[]},K.flattenDepth=function AT(l,u){return null!=l&&l.length?Er(l,u=u===J?1:vn(u)):[]},K.flip=function qD(l){return oa(l,512)},K.flow=FS,K.flowRight=LS,K.fromPairs=function G_(l){for(var u=-1,h=null==l?0:l.length,w={};++u<h;){var $=l[u];w[$[0]]=$[1]}return w},K.functions=function Ev(l){return null==l?[]:sa(l,nr(l))},K.functionsIn=function Yp(l){return null==l?[]:sa(l,xr(l))},K.groupBy=zD,K.initial=function bD(l){return null!=l&&l.length?wo(l,0,-1):[]},K.intersection=wD,K.intersectionBy=Y_,K.intersectionWith=ah,K.invert=xv,K.invertBy=Kp,K.invokeMap=Fl,K.iteratee=Dh,K.keyBy=jD,K.keys=nr,K.keysIn=xr,K.map=Lc,K.mapKeys=function pS(l,u){var h={};return u=rn(u,3),bo(l,function(w,$,ne){yo(h,u(w,$,ne),w)}),h},K.mapValues=function Tv(l,u){var h={};return u=rn(u,3),bo(l,function(w,$,ne){yo(h,$,u(w,$,ne))}),h},K.matches=function NS(l){return Sl(ur(l,1))},K.matchesProperty=function Xv(l,u){return v_(l,ur(u,1))},K.memoize=mh,K.merge=mS,K.mergeWith=Pv,K.method=Qv,K.methodOf=tm,K.mixin=Zv,K.negate=Fu,K.nthArg=function $T(l){return l=vn(l),An(function(u){return y_(u,l)})},K.omit=Rv,K.omitBy=function Xp(l,u){return gS(l,Fu(rn(u)))},K.once=function YD(l){return Rp(2,l)},K.orderBy=function $D(l,u,h,w){return null==l?[]:(pn(u)||(u=null==u?[]:[u]),pn(h=w?J:h)||(h=null==h?[]:[h]),ip(l,u,h))},K.over=R,K.overArgs=KD,K.overEvery=Vl,K.overSome=Jv,K.partial=Op,K.partialRight=dv,K.partition=WD,K.pick=Iv,K.pickBy=gS,K.property=Vu,K.propertyOf=function Ao(l){return function(u){return null==l?J:wl(l,u)}},K.pull=X_,K.pullAll=Q_,K.pullAllBy=function zs(l,u,h){return l&&l.length&&u&&u.length?Ta(l,u,rn(h,2)):l},K.pullAllWith=function Z_(l,u,h){return l&&l.length&&u&&u.length?Ta(l,u,J,h):l},K.pullAt=DD,K.range=ey,K.rangeRight=VS,K.rearg=Fp,K.reject=function RT(l,u){return(pn(l)?eo:vu)(l,Fu(rn(u,3)))},K.remove=function SD(l,u){var h=[];if(!l||!l.length)return h;var w=-1,$=[],ne=l.length;for(u=rn(u,3);++w<ne;){var ve=l[w];u(ve,w,l)&&(h.push(ve),$.push(w))}return rp(l,$),h},K.rest=function XD(l,u){if("function"!=typeof l)throw new _o(ce);return An(l,u=u===J?u:vn(u))},K.reverse=Cp,K.sampleSize=function IT(l,u,h){return u=(h?is(l,u,h):u===J)?1:vn(u),(pn(l)?QC:pT)(l,u)},K.set=function _S(l,u,h){return null==l?l:Gd(l,u,h)},K.setWith=function Fv(l,u,h,w){return w="function"==typeof w?w:J,null==l?l:Gd(l,u,h,w)},K.shuffle=function OT(l){return(pn(l)?Yf:gT)(l)},K.slice=function AD(l,u,h){var w=null==l?0:l.length;return w?(h&&"number"!=typeof h&&is(l,u,h)?(u=0,h=w):(u=null==u?0:vn(u),h=h===J?w:vn(h)),wo(l,u,h)):[]},K.sortBy=NT,K.sortedUniq=function ev(l){return l&&l.length?iD(l):[]},K.sortedUniqBy=function tv(l,u){return l&&l.length?iD(l,rn(u,2)):[]},K.split=function Ii(l,u,h){return h&&"number"!=typeof h&&is(l,u,h)&&(u=h=J),(h=h===J?C:h>>>0)?(l=Kn(l))&&("string"==typeof u||null!=u&&!gh(u))&&!(u=ts(u))&&fo(l)?El(po(l),0,h):l.split(u,h):[]},K.spread=function QD(l,u){if("function"!=typeof l)throw new _o(ce);return u=null==u?0:qi(vn(u),0),An(function(h){var w=h[u],$=El(h,0,u);return w&&ta($,w),Ur(l,this,$)})},K.tail=function ED(l){var u=null==l?0:l.length;return u?wo(l,1,u):[]},K.take=function nv(l,u,h){return l&&l.length?wo(l,0,(u=h||u===J?1:vn(u))<0?0:u):[]},K.takeRight=function iv(l,u,h){var w=null==l?0:l.length;return w?wo(l,(u=w-(u=h||u===J?1:vn(u)))<0?0:u,w):[]},K.takeRightWhile=function Sp(l,u){return l&&l.length?$r(l,rn(u,3),!1,!0):[]},K.takeWhile=function xT(l,u){return l&&l.length?$r(l,rn(u,3)):[]},K.tap=function Oc(l,u){return u(l),l},K.throttle=function ZD(l,u,h){var w=!0,$=!0;if("function"!=typeof l)throw new _o(ce);return Bi(h)&&(w="leading"in h?!!h.leading:w,$="trailing"in h?!!h.trailing:$),ph(l,u,{leading:w,maxWait:u,trailing:$})},K.thru=ch,K.toArray=vv,K.toPairs=Lv,K.toPairsIn=Nv,K.toPath=function ny(l){return pn(l)?Ai(l,$o):ro(l)?[l]:ws(z_(Kn(l)))},K.toPlainObject=Wp,K.transform=function So(l,u,h){var w=pn(l),$=w||La(l)||Do(l);if(u=rn(u,4),null==h){var ne=l&&l.constructor;h=$?w?new ne:[]:Bi(l)&&ca(ne)?yl(Pd(l)):{}}return($?_s:bo)(l,function(ve,xe,Le){return u(h,ve,xe,Le)}),h},K.unary=function hv(l){return dh(l,1)},K.union=xD,K.unionBy=Ap,K.unionWith=rv,K.uniq=function sv(l){return l&&l.length?io(l):[]},K.uniqBy=function Rl(l,u){return l&&l.length?io(l,rn(u,2)):[]},K.uniqWith=function kD(l,u){return u="function"==typeof u?u:J,l&&l.length?io(l,J,u):[]},K.unset=function vS(l,u){return null==l||C_(l,u)},K.unzip=Iu,K.unzipWith=Ou,K.update=function Vv(l,u,h){return null==l?l:D_(l,u,Yd(h))},K.updateWith=function yS(l,u,h,w){return w="function"==typeof w?w:J,null==l?l:D_(l,u,Yd(h),w)},K.values=Hc,K.valuesIn=function bS(l){return null==l?[]:Qr(l,xr(l))},K.without=TD,K.words=Yv,K.wrap=function JD(l,u){return Op(Yd(u),l)},K.xor=Mp,K.xorBy=lh,K.xorWith=Fa,K.zip=ov,K.zipObject=function Ep(l,u){return Du(l||[],u||[],mu)},K.zipObjectDeep=function PD(l,u){return Du(l||[],u||[],Gd)},K.zipWith=RD,K.entries=Lv,K.entriesIn=Nv,K.extend=bv,K.extendWith=vh,Zv(K,K),K.add=Sh,K.attempt=Jp,K.camelCase=DS,K.capitalize=Hv,K.ceil=Ah,K.clamp=function wS(l,u,h){return h===J&&(h=u,u=J),h!==J&&(h=(h=so(h))==h?h:0),u!==J&&(u=(u=so(u))==u?u:0),bl(so(l),u,h)},K.clone=function rs(l){return ur(l,4)},K.cloneDeep=function fv(l){return ur(l,5)},K.cloneDeepWith=function Np(l,u){return ur(l,5,u="function"==typeof u?u:J)},K.cloneWith=function Lp(l,u){return ur(l,4,u="function"==typeof u?u:J)},K.conformsTo=function Wr(l,u){return null==u||d_(l,u,nr(u))},K.deburr=dn,K.defaultTo=function OS(l,u){return null==l||l!=l?u:l},K.divide=om,K.endsWith=function ye(l,u,h){l=Kn(l),u=ts(u);var w=l.length,$=h=h===J?w:bl(vn(h),0,w);return(h-=u.length)>=0&&l.slice(h,$)==u},K.eq=ss,K.escape=function zv(l){return(l=Kn(l))&&ms.test(l)?l.replace(Li,fc):l},K.escapeRegExp=function Uv(l){return(l=Kn(l))&&fl.test(l)?l.replace(xi,"\\$&"):l},K.every=function VD(l,u,h){var w=pn(l)?Lo:ZC;return h&&is(l,u,h)&&(u=J),w(l,rn(u,3))},K.find=BD,K.findIndex=rh,K.findKey=function hS(l,u){return Jn(l,rn(u,3),bo)},K.findLast=Fc,K.findLastIndex=sh,K.findLastKey=function VT(l,u){return Jn(l,rn(u,3),Ud)},K.floor=am,K.forEach=Ol,K.forEachRight=Us,K.forIn=function yh(l,u){return null==l?l:zd(l,rn(u,3),xr)},K.forInRight=function fS(l,u){return null==l?l:yu(l,rn(u,3),xr)},K.forOwn=function Av(l,u){return l&&bo(l,rn(u,3))},K.forOwnRight=function Mv(l,u){return l&&Ud(l,rn(u,3))},K.get=bh,K.gt=Vp,K.gte=tS,K.has=function wh(l,u){return null!=l&&dD(l,u,fT)},K.hasIn=Bc,K.head=q_,K.identity=xs,K.includes=function UD(l,u,h,w){l=os(l)?l:Hc(l),h=h&&!w?vn(h):0;var $=l.length;return h<0&&(h=qi($+h,0)),Nu(l)?h<=$&&l.indexOf(u,h)>-1:!!$&&er(l,u,h)>-1},K.indexOf=function yD(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var $=null==h?0:vn(h);return $<0&&($=qi(w+$,0)),er(l,u,$)},K.inRange=function Bv(l,u,h){return u=ua(u),h===J?(h=u,u=0):h=ua(h),function m_(l,u,h){return l>=Yi(u,h)&&l<qi(u,h)}(l=so(l),u,h)},K.invoke=kv,K.isArguments=Ll,K.isArray=pn,K.isArrayBuffer=nS,K.isArrayLike=os,K.isArrayLikeObject=Xi,K.isBoolean=function pv(l){return!0===l||!1===l||Ri(l)&&Lr(l)==z},K.isBuffer=La,K.isDate=iS,K.isElement=function rS(l){return Ri(l)&&1===l.nodeType&&!Lu(l)},K.isEmpty=function Nc(l){if(null==l)return!0;if(os(l)&&(pn(l)||"string"==typeof l||"function"==typeof l.splice||La(l)||Do(l)||Ll(l)))return!l.length;var u=Nr(l);if(u==Ae||u==le)return!l.size;if(Ic(l))return!Dl(l).length;for(var h in l)if(si.call(l,h))return!1;return!0},K.isEqual=function sS(l,u){return ka(l,u)},K.isEqualWith=function oS(l,u,h){var w=(h="function"==typeof h?h:J)?h(l,u):J;return w===J?ka(l,u,J,h):!!w},K.isError=Na,K.isFinite=function la(l){return"number"==typeof l&&hu(l)},K.isFunction=ca,K.isInteger=mv,K.isLength=Bp,K.isMap=aS,K.isMatch=function Es(l,u){return l===u||$d(l,u,pp(u))},K.isMatchWith=function Hp(l,u,h){return h="function"==typeof h?h:J,$d(l,u,pp(u),h)},K.isNaN=function zp(l){return Vc(l)&&l!=+l},K.isNative=function lS(l){if(L_(l))throw new gn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ep(l)},K.isNil=function cS(l){return null==l},K.isNull=function gv(l){return null===l},K.isNumber=Vc,K.isObject=Bi,K.isObjectLike=Ri,K.isPlainObject=Lu,K.isRegExp=gh,K.isSafeInteger=function Up(l){return mv(l)&&l>=-Ce&&l<=Ce},K.isSet=_h,K.isString=Nu,K.isSymbol=ro,K.isTypedArray=Do,K.isUndefined=function jp(l){return l===J},K.isWeakMap=function _v(l){return Ri(l)&&Nr(l)==Ke},K.isWeakSet=function uS(l){return Ri(l)&&"[object WeakSet]"==Lr(l)},K.join=function K_(l,u){return null==l?"":to.call(l,u)},K.kebabCase=SS,K.last=Ms,K.lastIndexOf=function CD(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var $=w;return h!==J&&($=($=vn(h))<0?qi(w+$,0):Yi($,w-1)),u==u?function mi(Ie,Je,Ge){for(var It=Ge+1;It--;)if(Ie[It]===Je)return It;return It}(l,u,$):Dr(l,au,$,!0)},K.lowerCase=AS,K.lowerFirst=jv,K.lt=$p,K.lte=dS,K.max=function lm(l){return l&&l.length?Xf(l,xs,Dc):J},K.maxBy=function qT(l,u){return l&&l.length?Xf(l,rn(u,2),Dc):J},K.mean=function BS(l){return Sd(l,xs)},K.meanBy=function HS(l,u){return Sd(l,rn(u,2))},K.min=function zS(l){return l&&l.length?Xf(l,xs,Wd):J},K.minBy=function US(l,u){return l&&l.length?Xf(l,rn(u,2),Wd):J},K.stubArray=Bu,K.stubFalse=Mo,K.stubObject=function rm(){return{}},K.stubString=function ty(){return""},K.stubTrue=function sm(){return!0},K.multiply=iy,K.nth=function jn(l,u){return l&&l.length?y_(l,vn(u)):J},K.noConflict=function nm(){return Cr._===this&&(Cr._=cT),this},K.noop=im,K.now=uh,K.pad=function MS(l,u,h){l=Kn(l);var w=(u=vn(u))?gc(l):0;if(!u||w>=u)return l;var $=(u-w)/2;return Ia(Ti($),h)+l+Ia(zf($),h)},K.padEnd=function $v(l,u,h){l=Kn(l);var w=(u=vn(u))?gc(l):0;return u&&w<u?l+Ia(u-w,h):l},K.padStart=function ES(l,u,h){l=Kn(l);var w=(u=vn(u))?gc(l):0;return u&&w<u?Ia(u-w,h)+l:l},K.parseInt=function xS(l,u,h){return h||null==u?u=0:u&&(u=+u),i_(Kn(l).replace(pl,""),u||0)},K.random=function CS(l,u,h){if(h&&"boolean"!=typeof h&&is(l,u,h)&&(u=h=J),h===J&&("boolean"==typeof u?(h=u,u=J):"boolean"==typeof l&&(h=l,l=J)),l===J&&u===J?(l=0,u=1):(l=ua(l),u===J?(u=l,l=0):u=ua(u)),l>u){var w=l;l=u,u=w}if(h||l%1||u%1){var $=fu();return Yi(l+$*(u-l+qt("1e-"+(($+"").length-1))),u)}return Cu(l,u)},K.reduce=function Tp(l,u,h){var w=pn(l)?Dd:Sa,$=arguments.length<3;return w(l,rn(u,4),h,$,Vo)},K.reduceRight=function PT(l,u,h){var w=pn(l)?Ut:Sa,$=arguments.length<3;return w(l,rn(u,4),h,$,f_)},K.repeat=function BT(l,u,h){return u=(h?is(l,u,h):u===J)?1:vn(u),b_(Kn(l),u)},K.replace=function Wv(){var l=arguments,u=Kn(l[0]);return l.length<3?u:u.replace(l[1],l[2])},K.result=function Ov(l,u,h){var w=-1,$=(u=Ra(u,l)).length;for($||($=1,l=J);++w<$;){var ne=null==l?J:l[$o(u[w])];ne===J&&(w=$,ne=h),l=ca(ne)?ne.call(l):ne}return l},K.round=YT,K.runInContext=Ie,K.sample=function Pp(l){return(pn(l)?ia:lt)(l)},K.size=function FT(l){if(null==l)return 0;if(os(l))return Nu(l)?gc(l):l.length;var u=Nr(l);return u==Ae||u==le?l.size:Dl(l).length},K.snakeCase=Gv,K.some=function LT(l,u,h){var w=pn(l)?Tf:_T;return h&&is(l,u,h)&&(u=J),w(l,rn(u,3))},K.sortedIndex=function MD(l,u){return Pa(l,u)},K.sortedIndexBy=function MT(l,u,h){return w_(l,u,rn(h,2))},K.sortedIndexOf=function ET(l,u){var h=null==l?0:l.length;if(h){var w=Pa(l,u);if(w<h&&ss(l[w],u))return w}return-1},K.sortedLastIndex=function Ru(l,u){return Pa(l,u,!0)},K.sortedLastIndexBy=function Dp(l,u,h){return w_(l,u,rn(h,2),!0)},K.sortedLastIndexOf=function J_(l,u){if(null!=l&&l.length){var w=Pa(l,u,!0)-1;if(ss(l[w],u))return w}return-1},K.startCase=kS,K.startsWith=function Qp(l,u,h){return l=Kn(l),h=null==h?0:bl(vn(h),0,l.length),u=ts(u),l.slice(h,h+u.length)==u},K.subtract=jS,K.sum=function KT(l){return l&&l.length?Pf(l,xs):0},K.sumBy=function ry(l,u){return l&&l.length?Pf(l,rn(u,2)):0},K.template=function Zp(l,u,h){var w=K.templateSettings;h&&is(l,u,h)&&(u=J),l=Kn(l),u=vh({},u,w,dp);var xe,Le,$=vh({},u.imports,w.imports,dp),ne=nr($),ve=Qr($,ne),it=0,rt=u.interpolate||_d,ht="__p += '",Mt=e_((u.escape||_d).source+"|"+rt.source+"|"+(rt===Fs?Vg:_d).source+"|"+(u.evaluate||_d).source+"|$","g"),Pt="//# sourceURL="+(si.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RC+"]")+"\n";l.replace(Mt,function(Jt,Mn,Nn,as,ls,ir){return Nn||(Nn=as),ht+=l.slice(it,ir).replace(CC,wn),Mn&&(xe=!0,ht+="' +\n__e("+Mn+") +\n'"),ls&&(Le=!0,ht+="';\n"+ls+";\n__p += '"),Nn&&(ht+="' +\n((__t = ("+Nn+")) == null ? '' : __t) +\n'"),it=ir+Jt.length,Jt}),ht+="';\n";var Xt=si.call(u,"variable")&&u.variable;if(Xt){if(Z1.test(Xt))throw new gn("Invalid `variable` option passed into `_.template`")}else ht="with (obj) {\n"+ht+"\n}\n";ht=(Le?ht.replace(hn,""):ht).replace(bn,"$1").replace(hi,"$1;"),ht="function("+(Xt||"obj")+") {\n"+(Xt?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(xe?", __e = _.escape":"")+(Le?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+ht+"return __p\n}";var Cn=Jp(function(){return ei(ne,Pt+"return "+ht).apply(J,ve)});if(Cn.source=ht,Na(Cn))throw Cn;return Cn},K.times=function WT(l,u){if((l=vn(l))<1||l>Ce)return[];var h=C,w=Yi(l,C);u=rn(u),l-=C;for(var $=vs(w,u);++h<l;)u(h);return $},K.toFinite=ua,K.toInteger=vn,K.toLength=yv,K.toLower=function TS(l){return Kn(l).toLowerCase()},K.toNumber=so,K.toSafeInteger=function Gp(l){return l?bl(vn(l),-Ce,Ce):0===l?l:0},K.toString=Kn,K.toUpper=function HT(l){return Kn(l).toUpperCase()},K.trim=function zT(l,u,h){if((l=Kn(l))&&(h||u===J))return mn(l);if(!l||!(u=ts(u)))return l;var w=po(l),$=po(u);return El(w,cr(w,$),Aa(w,$)+1).join("")},K.trimEnd=function UT(l,u,h){if((l=Kn(l))&&(h||u===J))return l.slice(0,Zr(l)+1);if(!l||!(u=ts(u)))return l;var w=po(l);return El(w,0,Aa(w,po(u))+1).join("")},K.trimStart=function PS(l,u,h){if((l=Kn(l))&&(h||u===J))return l.replace(pl,"");if(!l||!(u=ts(u)))return l;var w=po(l);return El(w,cr(w,po(u))).join("")},K.truncate=function qv(l,u){var h=30,w="...";if(Bi(u)){var $="separator"in u?u.separator:$;h="length"in u?vn(u.length):h,w="omission"in u?ts(u.omission):w}var ne=(l=Kn(l)).length;if(fo(l)){var ve=po(l);ne=ve.length}if(h>=ne)return l;var xe=h-gc(w);if(xe<1)return w;var Le=ve?El(ve,0,xe).join(""):l.slice(0,xe);if($===J)return Le+w;if(ve&&(xe+=Le.length-xe),gh($)){if(l.slice(xe).search($)){var it,rt=Le;for($.global||($=e_($.source,Kn(gd.exec($))+"g")),$.lastIndex=0;it=$.exec(rt);)var ht=it.index;Le=Le.slice(0,ht===J?xe:ht)}}else if(l.indexOf(ts($),xe)!=xe){var Mt=Le.lastIndexOf($);Mt>-1&&(Le=Le.slice(0,Mt))}return Le+w},K.unescape=function jT(l){return(l=Kn(l))&&yi.test(l)?l.replace(Fn,mo):l},K.uniqueId=function GT(l){var u=++t_;return Kn(l)+u},K.upperCase=RS,K.upperFirst=Va,K.each=Ol,K.eachRight=Us,K.first=q_,Zv(K,function(){var l={};return bo(K,function(u,h){si.call(K.prototype,h)||(l[h]=u)}),l}(),{chain:!1}),K.VERSION="4.17.21",_s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){K[l].placeholder=K}),_s(["drop","take"],function(l,u){xn.prototype[l]=function(h){h=h===J?1:qi(vn(h),0);var w=this.__filtered__&&!u?new xn(this):this.clone();return w.__filtered__?w.__takeCount__=Yi(h,w.__takeCount__):w.__views__.push({size:Yi(h,C),type:l+(w.__dir__<0?"Right":"")}),w},xn.prototype[l+"Right"]=function(h){return this.reverse()[l](h).reverse()}}),_s(["filter","map","takeWhile"],function(l,u){var h=u+1,w=1==h||3==h;xn.prototype[l]=function($){var ne=this.clone();return ne.__iteratees__.push({iteratee:rn($,3),type:h}),ne.__filtered__=ne.__filtered__||w,ne}}),_s(["head","last"],function(l,u){var h="take"+(u?"Right":"");xn.prototype[l]=function(){return this[h](1).value()[0]}}),_s(["initial","tail"],function(l,u){var h="drop"+(u?"":"Right");xn.prototype[l]=function(){return this.__filtered__?new xn(this):this[h](1)}}),xn.prototype.compact=function(){return this.filter(xs)},xn.prototype.find=function(l){return this.filter(l).head()},xn.prototype.findLast=function(l){return this.reverse().find(l)},xn.prototype.invokeMap=An(function(l,u){return"function"==typeof l?new xn(this):this.map(function(h){return bu(h,l,u)})}),xn.prototype.reject=function(l){return this.filter(Fu(rn(l)))},xn.prototype.slice=function(l,u){l=vn(l);var h=this;return h.__filtered__&&(l>0||u<0)?new xn(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),u!==J&&(h=(u=vn(u))<0?h.dropRight(-u):h.take(u-l)),h)},xn.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},xn.prototype.toArray=function(){return this.take(C)},bo(xn.prototype,function(l,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),$=K[w?"take"+("last"==u?"Right":""):u],ne=w||/^find/.test(u);!$||(K.prototype[u]=function(){var ve=this.__wrapped__,xe=w?[1]:arguments,Le=ve instanceof xn,it=xe[0],rt=Le||pn(ve),ht=function(Mn){var Nn=$.apply(K,ta([Mn],xe));return w&&Mt?Nn[0]:Nn};rt&&h&&"function"==typeof it&&1!=it.length&&(Le=rt=!1);var Mt=this.__chain__,Pt=!!this.__actions__.length,Xt=ne&&!Mt,Cn=Le&&!Pt;if(!ne&&rt){ve=Cn?ve:new xn(this);var Jt=l.apply(ve,xe);return Jt.__actions__.push({func:ch,args:[ht],thisArg:J}),new Ki(Jt,Mt)}return Xt&&Cn?l.apply(this,xe):(Jt=this.thru(ht),Xt?w?Jt.value()[0]:Jt.value():Jt)})}),_s(["pop","push","shift","sort","splice","unshift"],function(l){var u=Of[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",w=/^(?:pop|shift)$/.test(l);K.prototype[l]=function(){var $=arguments;if(w&&!this.__chain__){var ne=this.value();return u.apply(pn(ne)?ne:[],$)}return this[h](function(ve){return u.apply(pn(ve)?ve:[],$)})}}),bo(xn.prototype,function(l,u){var h=K[u];if(h){var w=h.name+"";si.call(bc,w)||(bc[w]=[]),bc[w].push({name:u,func:h})}}),bc[Re(J,2).name]=[{name:"wrapper",func:J}],xn.prototype.clone=function jf(){var l=new xn(this.__wrapped__);return l.__actions__=ws(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=ws(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=ws(this.__views__),l},xn.prototype.reverse=function dT(){if(this.__filtered__){var l=new xn(this);l.__dir__=-1,l.__filtered__=!0}else(l=this.clone()).__dir__*=-1;return l},xn.prototype.value=function $C(){var l=this.__wrapped__.value(),u=this.__dir__,h=pn(l),w=u<0,$=h?l.length:0,ne=function yT(l,u,h){for(var w=-1,$=h.length;++w<$;){var ne=h[w],ve=ne.size;switch(ne.type){case"drop":l+=ve;break;case"dropRight":u-=ve;break;case"take":u=Yi(u,l+ve);break;case"takeRight":l=qi(l,u-ve)}}return{start:l,end:u}}(0,$,this.__views__),ve=ne.start,xe=ne.end,Le=xe-ve,it=w?xe:ve-1,rt=this.__iteratees__,ht=rt.length,Mt=0,Pt=Yi(Le,this.__takeCount__);if(!h||!w&&$==Le&&Pt==Le)return Ho(l,this.__actions__);var Xt=[];e:for(;Le--&&Mt<Pt;){for(var Cn=-1,Jt=l[it+=u];++Cn<ht;){var Mn=rt[Cn],as=Mn.type,ls=(0,Mn.iteratee)(Jt);if(2==as)Jt=ls;else if(!ls){if(1==as)continue e;break e}}Xt[Mt++]=Jt}return Xt},K.prototype.at=ID,K.prototype.chain=function OD(){return xp(this)},K.prototype.commit=function FD(){return new Ki(this.value(),this.__chain__)},K.prototype.next=function kp(){this.__values__===J&&(this.__values__=vv(this.value()));var l=this.__index__>=this.__values__.length;return{done:l,value:l?J:this.__values__[this.__index__++]}},K.prototype.plant=function av(l){for(var u,h=this;h instanceof Ma;){var w=_D(h);w.__index__=0,w.__values__=J,u?$.__wrapped__=w:u=w;var $=w;h=h.__wrapped__}return $.__wrapped__=l,u},K.prototype.reverse=function ND(){var l=this.__wrapped__;if(l instanceof xn){var u=l;return this.__actions__.length&&(u=new xn(this)),(u=u.reverse()).__actions__.push({func:ch,args:[Cp],thisArg:J}),new Ki(u,this.__chain__)}return this.thru(Cp)},K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=function lv(){return Ho(this.__wrapped__,this.__actions__)},K.prototype.first=K.prototype.head,du&&(K.prototype[du]=function LD(){return this}),K}();Cr._=xd,(I=function(){return xd}.call(re,He,re,Ze))!==J&&(Ze.exports=I)}.call(this)},3028:function(Ze,re){var He,J;He=function Ve(){"use strict";var Te="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==Te?Te:{},Me=!Te.document&&!!Te.postMessage,ce=Me&&/blob:/i.test((Te.location||{}).protocol),E={},Q=0,T={parse:function(L,V){var te=(V=V||{}).dynamicTyping||!1;if(Z(te)&&(V.dynamicTypingFunction=te,te={}),V.dynamicTyping=te,V.transform=!!Z(V.transform)&&V.transform,V.worker&&T.WORKERS_SUPPORTED){var ue=function(){if(!T.WORKERS_SUPPORTED)return!1;var Se,_e,we=(Se=Te.URL||Te.webkitURL||null,_e=Ve.toString(),T.BLOB_URL||(T.BLOB_URL=Se.createObjectURL(new Blob(["(",_e,")();"],{type:"text/javascript"})))),oe=new Te.Worker(we);return oe.onmessage=m,oe.id=Q++,E[oe.id]=oe}();return ue.userStep=V.step,ue.userChunk=V.chunk,ue.userComplete=V.complete,ue.userError=V.error,V.step=Z(V.step),V.chunk=Z(V.chunk),V.complete=Z(V.complete),V.error=Z(V.error),delete V.worker,void ue.postMessage({input:L,config:V,workerId:ue.id})}var fe=null;return"string"==typeof L?fe=V.download?new S(V):new g(V):!0===L.readable&&Z(L.read)&&Z(L.on)?fe=new M(V):(Te.File&&L instanceof File||L instanceof Object)&&(fe=new y(V)),fe.stream(L)},unparse:function(L,V){var te=!1,ue=!0,fe=",",we="\r\n",oe='"',Se=oe+oe,_e=!1,Ce=null,Be=!1;!function(){if("object"==typeof V){if("string"!=typeof V.delimiter||T.BAD_DELIMITERS.filter(function(p){return-1!==V.delimiter.indexOf(p)}).length||(fe=V.delimiter),("boolean"==typeof V.quotes||"function"==typeof V.quotes||Array.isArray(V.quotes))&&(te=V.quotes),"boolean"!=typeof V.skipEmptyLines&&"string"!=typeof V.skipEmptyLines||(_e=V.skipEmptyLines),"string"==typeof V.newline&&(we=V.newline),"string"==typeof V.quoteChar&&(oe=V.quoteChar),"boolean"==typeof V.header&&(ue=V.header),Array.isArray(V.columns)){if(0===V.columns.length)throw new Error("Option columns is empty");Ce=V.columns}void 0!==V.escapeChar&&(Se=V.escapeChar+oe),("boolean"==typeof V.escapeFormulae||V.escapeFormulae instanceof RegExp)&&(Be=V.escapeFormulae instanceof RegExp?V.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var X=new RegExp(P(oe),"g");if("string"==typeof L&&(L=JSON.parse(L)),Array.isArray(L)){if(!L.length||Array.isArray(L[0]))return C(null,L,_e);if("object"==typeof L[0])return C(Ce||Object.keys(L[0]),L,_e)}else if("object"==typeof L)return"string"==typeof L.data&&(L.data=JSON.parse(L.data)),Array.isArray(L.data)&&(L.fields||(L.fields=L.meta&&L.meta.fields||Ce),L.fields||(L.fields=Array.isArray(L.data[0])?L.fields:"object"==typeof L.data[0]?Object.keys(L.data[0]):[]),Array.isArray(L.data[0])||"object"==typeof L.data[0]||(L.data=[L.data])),C(L.fields||[],L.data||[],_e);throw new Error("Unable to serialize unrecognized input");function C(p,D,A){var N="";"string"==typeof p&&(p=JSON.parse(p)),"string"==typeof D&&(D=JSON.parse(D));var j=Array.isArray(p)&&0<p.length,z=!Array.isArray(D[0]);if(j&&ue){for(var pe=0;pe<p.length;pe++)0<pe&&(N+=fe),N+=b(p[pe],pe);0<D.length&&(N+=we)}for(var he=0;he<D.length;he++){var ge=j?p.length:D[he].length,be=!1,ke=j?0===Object.keys(D[he]).length:0===D[he].length;if(A&&!j&&(be="greedy"===A?""===D[he].join("").trim():1===D[he].length&&0===D[he][0].length),"greedy"===A&&j){for(var Ae=[],Ue=0;Ue<ge;Ue++)Ae.push(D[he][z?p[Ue]:Ue]);be=""===Ae.join("").trim()}if(!be){for(var De=0;De<ge;De++)0<De&&!ke&&(N+=fe),N+=b(D[he][j&&z?p[De]:De],De);he<D.length-1&&(!A||0<ge&&!ke)&&(N+=we)}}return N}function b(p,D){if(null==p)return"";if(p.constructor===Date)return JSON.stringify(p).slice(1,25);var A=!1;Be&&"string"==typeof p&&Be.test(p)&&(p="'"+p,A=!0);var N=p.toString().replace(X,Se);return(A=A||!0===te||"function"==typeof te&&te(p,D)||Array.isArray(te)&&te[D]||function(j,z){for(var pe=0;pe<z.length;pe++)if(-1<j.indexOf(z[pe]))return!0;return!1}(N,T.BAD_DELIMITERS)||-1<N.indexOf(fe)||" "===N.charAt(0)||" "===N.charAt(N.length-1))?oe+N+oe:N}}};if(T.RECORD_SEP=String.fromCharCode(30),T.UNIT_SEP=String.fromCharCode(31),T.BYTE_ORDER_MARK="\ufeff",T.BAD_DELIMITERS=["\r","\n",'"',T.BYTE_ORDER_MARK],T.WORKERS_SUPPORTED=!Me&&!!Te.Worker,T.NODE_STREAM_INPUT=1,T.LocalChunkSize=10485760,T.RemoteChunkSize=5242880,T.DefaultDelimiter=",",T.Parser=F,T.ParserHandle=G,T.NetworkStreamer=S,T.FileStreamer=y,T.StringStreamer=g,T.ReadableStreamStreamer=M,Te.jQuery){var W=Te.jQuery;W.fn.parse=function(L){var V=L.config||{},te=[];return this.each(function(we){if("INPUT"!==W(this).prop("tagName").toUpperCase()||"file"!==W(this).attr("type").toLowerCase()||!Te.FileReader||!this.files||0===this.files.length)return!0;for(var oe=0;oe<this.files.length;oe++)te.push({file:this.files[oe],inputElem:this,instanceConfig:W.extend({},V)})}),ue(),this;function ue(){if(0!==te.length){var oe,Se,_e,Ce=te[0];if(Z(L.before)){var Be=L.before(Ce.file,Ce.inputElem);if("object"==typeof Be){if("abort"===Be.action)return"AbortError",oe=Ce.file,Se=Ce.inputElem,_e=Be.reason,void(Z(L.error)&&L.error({name:"AbortError"},oe,Se,_e));if("skip"===Be.action)return void fe();"object"==typeof Be.config&&(Ce.instanceConfig=W.extend(Ce.instanceConfig,Be.config))}else if("skip"===Be)return void fe()}var X=Ce.instanceConfig.complete;Ce.instanceConfig.complete=function(C){Z(X)&&X(C,Ce.file,Ce.inputElem),fe()},T.parse(Ce.file,Ce.instanceConfig)}else Z(L.complete)&&L.complete()}function fe(){te.splice(0,1),ue()}}}function U(L){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(V){var te=O(V);te.chunkSize=parseInt(te.chunkSize),V.step||V.chunk||(te.chunkSize=null),this._handle=new G(te),(this._handle.streamer=this)._config=te}.call(this,L),this.parseChunk=function(V,te){if(this.isFirstChunk&&Z(this._config.beforeFirstChunk)){var ue=this._config.beforeFirstChunk(V);void 0!==ue&&(V=ue)}this.isFirstChunk=!1,this._halted=!1;var fe=this._partialLine+V;this._partialLine="";var we=this._handle.parse(fe,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var oe=we.meta.cursor;this._finished||(this._partialLine=fe.substring(oe-this._baseIndex),this._baseIndex=oe),we&&we.data&&(this._rowCount+=we.data.length);var Se=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(ce)Te.postMessage({results:we,workerId:T.WORKER_ID,finished:Se});else if(Z(this._config.chunk)&&!te){if(this._config.chunk(we,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);we=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(we.data),this._completeResults.errors=this._completeResults.errors.concat(we.errors),this._completeResults.meta=we.meta),this._completed||!Se||!Z(this._config.complete)||we&&we.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Se||we&&we.meta.paused||this._nextChunk(),we}this._halted=!0},this._sendError=function(V){Z(this._config.error)?this._config.error(V):ce&&this._config.error&&Te.postMessage({workerId:T.WORKER_ID,error:V,finished:!1})}}function S(L){var V;(L=L||{}).chunkSize||(L.chunkSize=T.RemoteChunkSize),U.call(this,L),this._nextChunk=Me?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(te){this._input=te,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(V=new XMLHttpRequest,this._config.withCredentials&&(V.withCredentials=this._config.withCredentials),Me||(V.onload=H(this._chunkLoaded,this),V.onerror=H(this._chunkError,this)),V.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Me),this._config.downloadRequestHeaders){var te=this._config.downloadRequestHeaders;for(var ue in te)V.setRequestHeader(ue,te[ue])}this._config.chunkSize&&V.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{V.send(this._config.downloadRequestBody)}catch(we){this._chunkError(we.message)}Me&&0===V.status&&this._chunkError()}},this._chunkLoaded=function(){var ue;4===V.readyState&&(V.status<200||400<=V.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:V.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(ue=V.getResponseHeader("Content-Range"))?-1:parseInt(ue.substring(ue.lastIndexOf("/")+1))),this.parseChunk(V.responseText)))},this._chunkError=function(te){this._sendError(new Error(V.statusText||te))}}function y(L){var V,te;(L=L||{}).chunkSize||(L.chunkSize=T.LocalChunkSize),U.call(this,L);var ue="undefined"!=typeof FileReader;this.stream=function(fe){this._input=fe,te=fe.slice||fe.webkitSlice||fe.mozSlice,ue?((V=new FileReader).onload=H(this._chunkLoaded,this),V.onerror=H(this._chunkError,this)):V=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var fe=this._input;if(this._config.chunkSize){var we=Math.min(this._start+this._config.chunkSize,this._input.size);fe=te.call(fe,this._start,we)}var oe=V.readAsText(fe,this._config.encoding);ue||this._chunkLoaded({target:{result:oe}})},this._chunkLoaded=function(fe){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(fe.target.result)},this._chunkError=function(){this._sendError(V.error)}}function g(L){var V;U.call(this,L=L||{}),this.stream=function(te){return V=te,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var te,ue=this._config.chunkSize;return ue?(te=V.substring(0,ue),V=V.substring(ue)):(te=V,V=""),this._finished=!V,this.parseChunk(te)}}}function M(L){U.call(this,L=L||{});var V=[],te=!0,ue=!1;this.pause=function(){U.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){U.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(fe){this._input=fe,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){ue&&1===V.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),V.length?this.parseChunk(V.shift()):te=!0},this._streamData=H(function(fe){try{V.push("string"==typeof fe?fe:fe.toString(this._config.encoding)),te&&(te=!1,this._checkIsFinished(),this.parseChunk(V.shift()))}catch(we){this._streamError(we)}},this),this._streamError=H(function(fe){this._streamCleanUp(),this._sendError(fe)},this),this._streamEnd=H(function(){this._streamCleanUp(),ue=!0,this._streamData("")},this),this._streamCleanUp=H(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function G(L){var V,te,ue,fe=Math.pow(2,53),we=-fe,oe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Se=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,_e=this,Ce=0,Be=0,X=!1,C=!1,b=[],p={data:[],errors:[],meta:{}};if(Z(L.step)){var D=L.step;L.step=function(he){if(p=he,j())N();else{if(N(),0===p.data.length)return;Ce+=he.data.length,L.preview&&Ce>L.preview?te.abort():(p.data=p.data[0],D(p,_e))}}}function A(he){return"greedy"===L.skipEmptyLines?""===he.join("").trim():1===he.length&&0===he[0].length}function N(){return p&&ue&&(pe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+T.DefaultDelimiter+"'"),ue=!1),L.skipEmptyLines&&(p.data=p.data.filter(function(he){return!A(he)})),j()&&function(){if(p)if(Array.isArray(p.data[0])){for(var ge=0;j()&&ge<p.data.length;ge++)p.data[ge].forEach(he);p.data.splice(0,1)}else p.data.forEach(he);function he(be,ke){Z(L.transformHeader)&&(be=L.transformHeader(be,ke)),b.push(be)}}(),function(){if(!p||!L.header&&!L.dynamicTyping&&!L.transform)return p;function he(be,ke){var Ae,Ue=L.header?{}:[];for(Ae=0;Ae<be.length;Ae++){var st=Ae,De=be[Ae];L.header&&(st=Ae>=b.length?"__parsed_extra":b[Ae]),L.transform&&(De=L.transform(De,st)),De=z(st,De),"__parsed_extra"===st?(Ue[st]=Ue[st]||[],Ue[st].push(De)):Ue[st]=De}return L.header&&(Ae>b.length?pe("FieldMismatch","TooManyFields","Too many fields: expected "+b.length+" fields but parsed "+Ae,Be+ke):Ae<b.length&&pe("FieldMismatch","TooFewFields","Too few fields: expected "+b.length+" fields but parsed "+Ae,Be+ke)),Ue}var ge=1;return!p.data.length||Array.isArray(p.data[0])?(p.data=p.data.map(he),ge=p.data.length):p.data=he(p.data,0),L.header&&p.meta&&(p.meta.fields=b),Be+=ge,p}()}function j(){return L.header&&0===b.length}function z(he,ge){return be=he,L.dynamicTypingFunction&&void 0===L.dynamicTyping[be]&&(L.dynamicTyping[be]=L.dynamicTypingFunction(be)),!0===(L.dynamicTyping[be]||L.dynamicTyping)?"true"===ge||"TRUE"===ge||"false"!==ge&&"FALSE"!==ge&&(function(ke){if(oe.test(ke)){var Ae=parseFloat(ke);if(we<Ae&&Ae<fe)return!0}return!1}(ge)?parseFloat(ge):Se.test(ge)?new Date(ge):""===ge?null:ge):ge;var be}function pe(he,ge,be,ke){var Ae={type:he,code:ge,message:be};void 0!==ke&&(Ae.row=ke),p.errors.push(Ae)}this.parse=function(he,ge,be){if(L.newline||(L.newline=function(st,De){st=st.substring(0,1048576);var je=new RegExp(P(De)+"([^]*?)"+P(De),"gm"),ze=(st=st.replace(je,"")).split("\r"),q=st.split("\n");if(1===ze.length||1<q.length&&q[0].length<ze[0].length)return"\n";for(var Ee=0,Xe=0;Xe<ze.length;Xe++)"\n"===ze[Xe][0]&&Ee++;return Ee>=ze.length/2?"\r\n":"\r"}(he,L.quoteChar||'"')),ue=!1,L.delimiter)Z(L.delimiter)&&(L.delimiter=L.delimiter(he),p.meta.delimiter=L.delimiter);else{var Ae=function(st,De,je,ze,q){var le,Ee,Xe,Ye;q=q||[",","\t","|",";",T.RECORD_SEP,T.UNIT_SEP];for(var Ke=0;Ke<q.length;Ke++){var ut=q[Ke],pt=0,Vt=0,ln=0;Xe=void 0;for(var Tn=new F({comments:ze,delimiter:ut,newline:De,preview:10}).parse(st),Ne=0;Ne<Tn.data.length;Ne++)if(je&&A(Tn.data[Ne]))ln++;else{var ae=Tn.data[Ne].length;Vt+=ae,void 0!==Xe?0<ae&&(pt+=Math.abs(ae-Xe),Xe=ae):Xe=ae}0<Tn.data.length&&(Vt/=Tn.data.length-ln),(void 0===Ee||pt<=Ee)&&(void 0===Ye||Ye<Vt)&&1.99<Vt&&(Ee=pt,le=ut,Ye=Vt)}return{successful:!!(L.delimiter=le),bestDelimiter:le}}(he,L.newline,L.skipEmptyLines,L.comments,L.delimitersToGuess);Ae.successful?L.delimiter=Ae.bestDelimiter:(ue=!0,L.delimiter=T.DefaultDelimiter),p.meta.delimiter=L.delimiter}var Ue=O(L);return L.preview&&L.header&&Ue.preview++,V=he,te=new F(Ue),p=te.parse(V,ge,be),N(),X?{meta:{paused:!0}}:p||{meta:{paused:!1}}},this.paused=function(){return X},this.pause=function(){X=!0,te.abort(),V=Z(L.chunk)?"":V.substring(te.getCharIndex())},this.resume=function(){_e.streamer._halted?(X=!1,_e.streamer.parseChunk(V,!0)):setTimeout(_e.resume,3)},this.aborted=function(){return C},this.abort=function(){C=!0,te.abort(),p.meta.aborted=!0,Z(L.complete)&&L.complete(p),V=""}}function P(L){return L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function F(L){var V,te=(L=L||{}).delimiter,ue=L.newline,fe=L.comments,we=L.step,oe=L.preview,Se=L.fastMode,_e=V=null==L.quoteChar?'"':L.quoteChar;if(void 0!==L.escapeChar&&(_e=L.escapeChar),("string"!=typeof te||-1<T.BAD_DELIMITERS.indexOf(te))&&(te=","),fe===te)throw new Error("Comment character same as delimiter");!0===fe?fe="#":("string"!=typeof fe||-1<T.BAD_DELIMITERS.indexOf(fe))&&(fe=!1),"\n"!==ue&&"\r"!==ue&&"\r\n"!==ue&&(ue="\n");var Ce=0,Be=!1;this.parse=function(X,C,b){if("string"!=typeof X)throw new Error("Input must be a string");var p=X.length,D=te.length,A=ue.length,N=fe.length,j=Z(we),z=[],pe=[],he=[],ge=Ce=0;if(!X)return Ye();if(Se||!1!==Se&&-1===X.indexOf(V)){for(var be=X.split(ue),ke=0;ke<be.length;ke++){if(Ce+=(he=be[ke]).length,ke!==be.length-1)Ce+=ue.length;else if(b)return Ye();if(!fe||he.substring(0,N)!==fe){if(j){if(z=[],q(he.split(te)),Ke(),Be)return Ye()}else q(he.split(te));if(oe&&oe<=ke)return z=z.slice(0,oe),Ye(!0)}}return Ye()}for(var Ae=X.indexOf(te,Ce),Ue=X.indexOf(ue,Ce),st=new RegExp(P(_e)+P(V),"g"),De=X.indexOf(V,Ce);;)if(X[Ce]!==V)if(fe&&0===he.length&&X.substring(Ce,Ce+N)===fe){if(-1===Ue)return Ye();Ue=X.indexOf(ue,Ce=Ue+A),Ae=X.indexOf(te,Ce)}else if(-1!==Ae&&(Ae<Ue||-1===Ue))he.push(X.substring(Ce,Ae)),Ae=X.indexOf(te,Ce=Ae+D);else{if(-1===Ue)break;if(he.push(X.substring(Ce,Ue)),Xe(Ue+A),j&&(Ke(),Be))return Ye();if(oe&&z.length>=oe)return Ye(!0)}else for(De=Ce,Ce++;;){if(-1===(De=X.indexOf(V,De+1)))return b||pe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:z.length,index:Ce}),Ee();if(De===p-1)return Ee(X.substring(Ce,De).replace(st,V));if(V!==_e||X[De+1]!==_e){if(V===_e||0===De||X[De-1]!==_e){-1!==Ae&&Ae<De+1&&(Ae=X.indexOf(te,De+1)),-1!==Ue&&Ue<De+1&&(Ue=X.indexOf(ue,De+1));var je=le(-1===Ue?Ae:Math.min(Ae,Ue));if(X.substr(De+1+je,D)===te){he.push(X.substring(Ce,De).replace(st,V)),X[Ce=De+1+je+D]!==V&&(De=X.indexOf(V,Ce)),Ae=X.indexOf(te,Ce),Ue=X.indexOf(ue,Ce);break}var ze=le(Ue);if(X.substring(De+1+ze,De+1+ze+A)===ue){if(he.push(X.substring(Ce,De).replace(st,V)),Xe(De+1+ze+A),Ae=X.indexOf(te,Ce),De=X.indexOf(V,Ce),j&&(Ke(),Be))return Ye();if(oe&&z.length>=oe)return Ye(!0);break}pe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:z.length,index:Ce}),De++}}else De++}return Ee();function q(ut){z.push(ut),ge=Ce}function le(ut){var pt=0;if(-1!==ut){var Vt=X.substring(De+1,ut);Vt&&""===Vt.trim()&&(pt=Vt.length)}return pt}function Ee(ut){return b||(void 0===ut&&(ut=X.substring(Ce)),he.push(ut),Ce=p,q(he),j&&Ke()),Ye()}function Xe(ut){Ce=ut,q(he),he=[],Ue=X.indexOf(ue,Ce)}function Ye(ut){return{data:z,errors:pe,meta:{delimiter:te,linebreak:ue,aborted:Be,truncated:!!ut,cursor:ge+(C||0)}}}function Ke(){we(Ye()),z=[],pe=[]}},this.abort=function(){Be=!0},this.getCharIndex=function(){return Ce}}function m(L){var V=L.data,te=E[V.workerId],ue=!1;if(V.error)te.userError(V.error,V.file);else if(V.results&&V.results.data){var fe={abort:function(){ue=!0,_(V.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:k,resume:k};if(Z(te.userStep)){for(var we=0;we<V.results.data.length&&(te.userStep({data:V.results.data[we],errors:V.results.errors,meta:V.results.meta},fe),!ue);we++);delete V.results}else Z(te.userChunk)&&(te.userChunk(V.results,fe,V.file),delete V.results)}V.finished&&!ue&&_(V.workerId,V.results)}function _(L,V){var te=E[L];Z(te.userComplete)&&te.userComplete(V),te.terminate(),delete E[L]}function k(){throw new Error("Not implemented.")}function O(L){if("object"!=typeof L||null===L)return L;var V=Array.isArray(L)?[]:{};for(var te in L)V[te]=O(L[te]);return V}function H(L,V){return function(){L.apply(V,arguments)}}function Z(L){return"function"==typeof L}return ce&&(Te.onmessage=function(L){var V=L.data;if(void 0===T.WORKER_ID&&V&&(T.WORKER_ID=V.workerId),"string"==typeof V.input)Te.postMessage({workerId:T.WORKER_ID,results:T.parse(V.input,V.config),finished:!0});else if(Te.File&&V.input instanceof File||V.input instanceof Object){var te=T.parse(V.input,V.config);te&&Te.postMessage({workerId:T.WORKER_ID,results:te,finished:!0})}}),(S.prototype=Object.create(U.prototype)).constructor=S,(y.prototype=Object.create(U.prototype)).constructor=y,(g.prototype=Object.create(g.prototype)).constructor=g,(M.prototype=Object.create(U.prototype)).constructor=M,T},void 0!==(J=He.apply(re,[]))&&(Ze.exports=J)},6036:function(module,__unused_webpack_exports,__webpack_require__){var _asyncToGenerator=__webpack_require__(7156).default,He;He=()=>(()=>{"use strict";var __webpack_modules__=[,(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.VerbosityLevel=re.Util=re.UnknownErrorException=re.UnexpectedResponseException=re.UNSUPPORTED_FEATURES=re.TextRenderingMode=re.StreamType=re.RenderingIntentFlag=re.PermissionFlag=re.PasswordResponses=re.PasswordException=re.PageActionEventType=re.OPS=re.MissingPDFException=re.InvalidPDFException=re.ImageKind=re.IDENTITY_MATRIX=re.FormatError=re.FontType=re.FeatureTest=re.FONT_IDENTITY_MATRIX=re.DocumentActionEventType=re.CMapCompressionType=re.BaseException=re.AnnotationType=re.AnnotationStateModelType=re.AnnotationReviewState=re.AnnotationReplyType=re.AnnotationMode=re.AnnotationMarkedState=re.AnnotationFlag=re.AnnotationFieldFlag=re.AnnotationBorderStyleType=re.AnnotationActionEventType=re.AbortException=void 0,re.arrayByteLength=he,re.arraysToBytes=function ge(Ne){const ae=Ne.length;if(1===ae&&Ne[0]instanceof Uint8Array)return Ne[0];let de=0;for(let at=0;at<ae;at++)de+=he(Ne[at]);let We=0;const tt=new Uint8Array(de);for(let at=0;at<ae;at++){let gt=Ne[at];gt instanceof Uint8Array||(gt="string"==typeof gt?pe(gt):new Uint8Array(gt));const hn=gt.byteLength;tt.set(gt,We),We+=hn}return tt},re.assert=function Se(Ne,ae){Ne||oe(ae)},re.bytesToString=function z(Ne){("object"!=typeof Ne||null===Ne||void 0===Ne.length)&&oe("Invalid argument for bytesToString");const ae=Ne.length;if(ae<8192)return String.fromCharCode.apply(null,Ne);const We=[];for(let tt=0;tt<ae;tt+=8192){const at=Math.min(tt+8192,ae),gt=Ne.subarray(tt,at);We.push(String.fromCharCode.apply(null,gt))}return We.join("")},re.createPromiseCapability=function Tn(){const Ne=Object.create(null);let ae=!1;return Object.defineProperty(Ne,"settled",{get:()=>ae}),Ne.promise=new Promise(function(de,We){Ne.resolve=function(tt){ae=!0,de(tt)},Ne.reject=function(tt){ae=!0,We(tt)}}),Ne},re.createValidAbsoluteUrl=function Ce(Ne,ae=null,de=null){if(!Ne)return null;try{if(de&&"string"==typeof Ne){if(de.addDefaultProtocol&&Ne.startsWith("www.")){const tt=Ne.match(/\./g);tt&&tt.length>=2&&(Ne=`http://${Ne}`)}if(de.tryConvertEncoding)try{Ne=Ke(Ne)}catch(tt){}}const We=ae?new URL(Ne,ae):new URL(Ne);if(function _e(Ne){if(!Ne)return!1;switch(Ne.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(We))return We}catch(We){}return null},re.escapeString=function Ee(Ne){return Ne.replace(/([()\\\n\r])/g,ae=>"\n"===ae?"\\n":"\r"===ae?"\\r":`\\${ae}`)},re.getModificationDate=function ln(Ne=new Date){return[Ne.getUTCFullYear().toString(),(Ne.getUTCMonth()+1).toString().padStart(2,"0"),Ne.getUTCDate().toString().padStart(2,"0"),Ne.getUTCHours().toString().padStart(2,"0"),Ne.getUTCMinutes().toString().padStart(2,"0"),Ne.getUTCSeconds().toString().padStart(2,"0")].join("")},re.getVerbosityLevel=function ue(){return V},re.info=function fe(Ne){V>=k.INFOS&&console.log(`Info: ${Ne}`)},re.isArrayBuffer=function pt(Ne){return"object"==typeof Ne&&null!==Ne&&void 0!==Ne.byteLength},re.isArrayEqual=function Vt(Ne,ae){if(Ne.length!==ae.length)return!1;for(let de=0,We=Ne.length;de<We;de++)if(Ne[de]!==ae[de])return!1;return!0},re.isAscii=function Xe(Ne){return/^[\x00-\x7F]*$/.test(Ne)},re.objectFromMap=function Ae(Ne){const ae=Object.create(null);for(const[de,We]of Ne)ae[de]=We;return ae},re.objectSize=function ke(Ne){return Object.keys(Ne).length},re.setVerbosityLevel=function te(Ne){Number.isInteger(Ne)&&(V=Ne)},re.shadow=Be,re.string32=function be(Ne){return String.fromCharCode(Ne>>24&255,Ne>>16&255,Ne>>8&255,255&Ne)},re.stringToBytes=pe,re.stringToPDFString=function le(Ne){if(Ne[0]>="\xef"){let de;if("\xfe"===Ne[0]&&"\xff"===Ne[1]?de="utf-16be":"\xff"===Ne[0]&&"\xfe"===Ne[1]?de="utf-16le":"\xef"===Ne[0]&&"\xbb"===Ne[1]&&"\xbf"===Ne[2]&&(de="utf-8"),de)try{const We=new TextDecoder(de,{fatal:!0}),tt=pe(Ne);return We.decode(tt)}catch(We){we(`stringToPDFString: "${We}".`)}}const ae=[];for(let de=0,We=Ne.length;de<We;de++){const tt=q[Ne.charCodeAt(de)];ae.push(tt?String.fromCharCode(tt):Ne.charAt(de))}return ae.join("")},re.stringToUTF16BEString=function Ye(Ne){const ae=["\xfe\xff"];for(let de=0,We=Ne.length;de<We;de++){const tt=Ne.charCodeAt(de);ae.push(String.fromCharCode(tt>>8&255),String.fromCharCode(255&tt))}return ae.join("")},re.stringToUTF8String=Ke,re.unreachable=oe,re.utf8StringToString=function ut(Ne){return unescape(encodeURIComponent(Ne))},re.warn=we,He(2),re.IDENTITY_MATRIX=[1,0,0,1,0,0],re.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],re.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},re.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},re.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},re.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},re.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},re.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},re.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},re.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},re.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},re.AnnotationReplyType={GROUP:"Group",REPLY:"R"},re.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},re.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},re.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},re.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},re.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},re.PageActionEventType={O:"PageOpen",C:"PageClose"},re.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},re.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const k={ERRORS:0,WARNINGS:1,INFOS:5};re.VerbosityLevel=k,re.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},re.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},re.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},re.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let V=k.WARNINGS;function we(Ne){V>=k.WARNINGS&&console.log(`Warning: ${Ne}`)}function oe(Ne){throw new Error(Ne)}function Be(Ne,ae,de){return Object.defineProperty(Ne,ae,{value:de,enumerable:!0,configurable:!0,writable:!1}),de}const X=function(){function ae(de,We){this.constructor===ae&&oe("Cannot initialize BaseException."),this.message=de,this.name=We}return ae.prototype=new Error,ae.constructor=ae,ae}();function pe(Ne){"string"!=typeof Ne&&oe("Invalid argument for stringToBytes");const ae=Ne.length,de=new Uint8Array(ae);for(let We=0;We<ae;++We)de[We]=255&Ne.charCodeAt(We);return de}function he(Ne){return void 0!==Ne.length?Ne.length:void 0!==Ne.byteLength?Ne.byteLength:void oe("Invalid argument for arrayByteLength")}re.BaseException=X,re.PasswordException=class C extends X{constructor(ae,de){super(ae,"PasswordException"),this.code=de}},re.UnknownErrorException=class b extends X{constructor(ae,de){super(ae,"UnknownErrorException"),this.details=de}},re.InvalidPDFException=class p extends X{constructor(ae){super(ae,"InvalidPDFException")}},re.MissingPDFException=class D extends X{constructor(ae){super(ae,"MissingPDFException")}},re.UnexpectedResponseException=class A extends X{constructor(ae,de){super(ae,"UnexpectedResponseException"),this.status=de}},re.FormatError=class N extends X{constructor(ae){super(ae,"FormatError")}},re.AbortException=class j extends X{constructor(ae){super(ae,"AbortException")}},re.FeatureTest=class De{static get isLittleEndian(){return Be(this,"isLittleEndian",function Ue(){const Ne=new Uint8Array(4);return Ne[0]=1,1===new Uint32Array(Ne.buffer,0,1)[0]}())}static get isEvalSupported(){return Be(this,"isEvalSupported",function st(){try{return new Function(""),!0}catch(Ne){return!1}}())}static get isOffscreenCanvasSupported(){return Be(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const je=[...Array(256).keys()].map(Ne=>Ne.toString(16).padStart(2,"0"));class ze{static makeHexColor(ae,de,We){return`#${je[ae]}${je[de]}${je[We]}`}static scaleMinMax(ae,de){let We;ae[0]?(ae[0]<0&&(We=de[0],de[0]=de[1],de[1]=We),de[0]*=ae[0],de[1]*=ae[0],ae[3]<0&&(We=de[2],de[2]=de[3],de[3]=We),de[2]*=ae[3],de[3]*=ae[3]):(We=de[0],de[0]=de[2],de[2]=We,We=de[1],de[1]=de[3],de[3]=We,ae[1]<0&&(We=de[2],de[2]=de[3],de[3]=We),de[2]*=ae[1],de[3]*=ae[1],ae[2]<0&&(We=de[0],de[0]=de[1],de[1]=We),de[0]*=ae[2],de[1]*=ae[2]),de[0]+=ae[4],de[1]+=ae[4],de[2]+=ae[5],de[3]+=ae[5]}static transform(ae,de){return[ae[0]*de[0]+ae[2]*de[1],ae[1]*de[0]+ae[3]*de[1],ae[0]*de[2]+ae[2]*de[3],ae[1]*de[2]+ae[3]*de[3],ae[0]*de[4]+ae[2]*de[5]+ae[4],ae[1]*de[4]+ae[3]*de[5]+ae[5]]}static applyTransform(ae,de){return[ae[0]*de[0]+ae[1]*de[2]+de[4],ae[0]*de[1]+ae[1]*de[3]+de[5]]}static applyInverseTransform(ae,de){const We=de[0]*de[3]-de[1]*de[2];return[(ae[0]*de[3]-ae[1]*de[2]+de[2]*de[5]-de[4]*de[3])/We,(-ae[0]*de[1]+ae[1]*de[0]+de[4]*de[1]-de[5]*de[0])/We]}static getAxialAlignedBoundingBox(ae,de){const We=ze.applyTransform(ae,de),tt=ze.applyTransform(ae.slice(2,4),de),at=ze.applyTransform([ae[0],ae[3]],de),gt=ze.applyTransform([ae[2],ae[1]],de);return[Math.min(We[0],tt[0],at[0],gt[0]),Math.min(We[1],tt[1],at[1],gt[1]),Math.max(We[0],tt[0],at[0],gt[0]),Math.max(We[1],tt[1],at[1],gt[1])]}static inverseTransform(ae){const de=ae[0]*ae[3]-ae[1]*ae[2];return[ae[3]/de,-ae[1]/de,-ae[2]/de,ae[0]/de,(ae[2]*ae[5]-ae[4]*ae[3])/de,(ae[4]*ae[1]-ae[5]*ae[0])/de]}static apply3dTransform(ae,de){return[ae[0]*de[0]+ae[1]*de[1]+ae[2]*de[2],ae[3]*de[0]+ae[4]*de[1]+ae[5]*de[2],ae[6]*de[0]+ae[7]*de[1]+ae[8]*de[2]]}static singularValueDecompose2dScale(ae){const de=[ae[0],ae[2],ae[1],ae[3]],We=ae[0]*de[0]+ae[1]*de[2],gt=ae[2]*de[1]+ae[3]*de[3],hn=(We+gt)/2,bn=Math.sqrt((We+gt)**2-4*(We*gt-(ae[2]*de[0]+ae[3]*de[2])*(ae[0]*de[1]+ae[1]*de[3])))/2,Fn=hn-bn||1;return[Math.sqrt(hn+bn||1),Math.sqrt(Fn)]}static normalizeRect(ae){const de=ae.slice(0);return ae[0]>ae[2]&&(de[0]=ae[2],de[2]=ae[0]),ae[1]>ae[3]&&(de[1]=ae[3],de[3]=ae[1]),de}static intersect(ae,de){const We=Math.max(Math.min(ae[0],ae[2]),Math.min(de[0],de[2])),tt=Math.min(Math.max(ae[0],ae[2]),Math.max(de[0],de[2]));if(We>tt)return null;const at=Math.max(Math.min(ae[1],ae[3]),Math.min(de[1],de[3])),gt=Math.min(Math.max(ae[1],ae[3]),Math.max(de[1],de[3]));return at>gt?null:[We,at,tt,gt]}static bezierBoundingBox(ae,de,We,tt,at,gt,hn,bn){const hi=[],Fn=[[],[]];let Li,yi,ms,fi,$n,Fs,Ls,Ks;for(let pl=0;pl<2;++pl)if(0===pl?(yi=6*ae-12*We+6*at,Li=-3*ae+9*We-9*at+3*hn,ms=3*We-3*ae):(yi=6*de-12*tt+6*gt,Li=-3*de+9*tt-9*gt+3*bn,ms=3*tt-3*de),Math.abs(Li)<1e-12){if(Math.abs(yi)<1e-12)continue;fi=-ms/yi,0<fi&&fi<1&&hi.push(fi)}else Ls=yi*yi-4*ms*Li,Ks=Math.sqrt(Ls),!(Ls<0)&&($n=(-yi+Ks)/(2*Li),0<$n&&$n<1&&hi.push($n),Fs=(-yi-Ks)/(2*Li),0<Fs&&Fs<1&&hi.push(Fs));let xi,Or=hi.length;const fl=Or;for(;Or--;)fi=hi[Or],xi=1-fi,Fn[0][Or]=xi*xi*xi*ae+3*xi*xi*fi*We+3*xi*fi*fi*at+fi*fi*fi*hn,Fn[1][Or]=xi*xi*xi*de+3*xi*xi*fi*tt+3*xi*fi*fi*gt+fi*fi*fi*bn;return Fn[0][fl]=ae,Fn[1][fl]=de,Fn[0][fl+1]=hn,Fn[1][fl+1]=bn,Fn[0].length=Fn[1].length=fl+2,[Math.min(...Fn[0]),Math.min(...Fn[1]),Math.max(...Fn[0]),Math.max(...Fn[1])]}}re.Util=ze;const q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Ke(Ne){return decodeURIComponent(escape(Ne))}},(Ze,re,He)=>{He(3)},(Ze,re)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.isNodeJS=void 0;const He=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);re.isNodeJS=He},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var Ze,He,I,J,Ve,Te,Me,ce,E,z1,T;Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(5),_font_loader=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(13),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(14),_metadata=__w_pdfjs_require__(15),_optional_content_config=__w_pdfjs_require__(16),_transport_stream=__w_pdfjs_require__(17),_xfa_text=__w_pdfjs_require__(18);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:U,NodeCMapReaderFactory:S,NodeStandardFontDataFactory:y}=__w_pdfjs_require__(19);exports.DefaultCanvasFactory=DefaultCanvasFactory=U,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=S,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=y}function setPDFNetworkStreamFactory(U){createPDFNetworkStream=U}function getDocument(U){const S=new PDFDocumentLoadingTask;let y;if("string"==typeof U||U instanceof URL)y={url:U};else if((0,_util.isArrayBuffer)(U))y={data:U};else if(U instanceof PDFDataRangeTransport)y={range:U};else{if("object"!=typeof U)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!U.url&&!U.data&&!U.range)throw new Error("Invalid parameter object: need either .data, .range or .url");y=U}const g=Object.create(null);let M=null,G=null;for(const F in y){const m=y[F];switch(F){case"url":if("undefined"!=typeof window)try{g[F]=new URL(m,window.location).href;continue}catch(_){(0,_util.warn)(`Cannot create valid URL: "${_}".`)}else if("string"==typeof m||m instanceof URL){g[F]=m.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":M=m;continue;case"worker":G=m;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&m instanceof Buffer)g[F]=new Uint8Array(m);else{if(m instanceof Uint8Array)break;if("string"==typeof m)g[F]=(0,_util.stringToBytes)(m);else if("object"!=typeof m||null===m||isNaN(m.length)){if(!(0,_util.isArrayBuffer)(m))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");g[F]=new Uint8Array(m)}else g[F]=new Uint8Array(m)}continue}g[F]=m}if(g.CMapReaderFactory=g.CMapReaderFactory||DefaultCMapReaderFactory,g.StandardFontDataFactory=g.StandardFontDataFactory||DefaultStandardFontDataFactory,g.ignoreErrors=!0!==g.stopAtErrors,g.fontExtraProperties=!0===g.fontExtraProperties,g.pdfBug=!0===g.pdfBug,g.enableXfa=!0===g.enableXfa,(!Number.isInteger(g.rangeChunkSize)||g.rangeChunkSize<1)&&(g.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof g.docBaseUrl||(0,_display_utils.isDataScheme)(g.docBaseUrl))&&(g.docBaseUrl=null),(!Number.isInteger(g.maxImageSize)||g.maxImageSize<-1)&&(g.maxImageSize=-1),"string"!=typeof g.cMapUrl&&(g.cMapUrl=null),"string"!=typeof g.standardFontDataUrl&&(g.standardFontDataUrl=null),"boolean"!=typeof g.useWorkerFetch&&(g.useWorkerFetch=g.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&g.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof g.isEvalSupported&&(g.isEvalSupported=!0),"boolean"!=typeof g.disableFontFace&&(g.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof g.useSystemFonts&&(g.useSystemFonts=!_is_node.isNodeJS&&!g.disableFontFace),("object"!=typeof g.ownerDocument||null===g.ownerDocument)&&(g.ownerDocument=globalThis.document),"boolean"!=typeof g.disableRange&&(g.disableRange=!1),"boolean"!=typeof g.disableStream&&(g.disableStream=!1),"boolean"!=typeof g.disableAutoFetch&&(g.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(g.verbosity),!G){const F={verbosity:g.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};G=F.port?PDFWorker.fromPort(F):new PDFWorker(F),S._worker=G}const P=S.docId;return G.promise.then(function(){if(S.destroyed)throw new Error("Loading aborted");const F=_fetchDocument(G,g,M,P),m=new Promise(function(_){let k;M?k=new _transport_stream.PDFDataTransportStream({length:g.length,initialData:g.initialData,progressiveDone:g.progressiveDone,contentDispositionFilename:g.contentDispositionFilename,disableRange:g.disableRange,disableStream:g.disableStream},M):g.data||(k=createPDFNetworkStream({url:g.url,length:g.length,httpHeaders:g.httpHeaders,withCredentials:g.withCredentials,rangeChunkSize:g.rangeChunkSize,disableRange:g.disableRange,disableStream:g.disableStream})),_(k)});return Promise.all([F,m]).then(function([_,k]){if(S.destroyed)throw new Error("Loading aborted");const O=new _message_handler.MessageHandler(P,_,G.port),H=new WorkerTransport(O,S,k,g);S._transport=H,O.send("Ready",null)})}).catch(S._capability.reject),S}function _fetchDocument(U,S,y,g){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(function*(U,S,y,g){if(U.destroyed)throw new Error("Worker was destroyed");y&&(S.length=y.length,S.initialData=y.initialData,S.progressiveDone=y.progressiveDone,S.contentDispositionFilename=y.contentDispositionFilename);const M=yield U.messageHandler.sendWithPromise("GetDocRequest",{docId:g,apiVersion:"2.14.305",source:{data:S.data,url:S.url,password:S.password,disableAutoFetch:S.disableAutoFetch,rangeChunkSize:S.rangeChunkSize,length:S.length},maxImageSize:S.maxImageSize,disableFontFace:S.disableFontFace,docBaseUrl:S.docBaseUrl,ignoreErrors:S.ignoreErrors,isEvalSupported:S.isEvalSupported,fontExtraProperties:S.fontExtraProperties,enableXfa:S.enableXfa,useSystemFonts:S.useSystemFonts,cMapUrl:S.useWorkerFetch?S.cMapUrl:null,standardFontDataUrl:S.useWorkerFetch?S.standardFontDataUrl:null});if(U.destroyed)throw new Error("Worker was destroyed");return M})).apply(this,arguments)}const re=class{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+rz(re,Ze)._++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){var S=this;return _asyncToGenerator(function*(){var y;S.destroyed=!0,yield null==(y=S._transport)?void 0:y.destroy(),S._transport=null,S._worker&&(S._worker.destroy(),S._worker=null)})()}};let PDFDocumentLoadingTask=re;Ze=new WeakMap,Gt(PDFDocumentLoadingTask,Ze,0),exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(S,y,g=!1,M=null){this.length=S,this.initialData=y,this.progressiveDone=g,this.contentDispositionFilename=M,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(S){this._rangeListeners.push(S)}addProgressListener(S){this._progressListeners.push(S)}addProgressiveReadListener(S){this._progressiveReadListeners.push(S)}addProgressiveDoneListener(S){this._progressiveDoneListeners.push(S)}onDataRange(S,y){for(const g of this._rangeListeners)g(S,y)}onDataProgress(S,y){this._readyCapability.promise.then(()=>{for(const g of this._progressListeners)g(S,y)})}onDataProgressiveRead(S){this._readyCapability.promise.then(()=>{for(const y of this._progressiveReadListeners)y(S)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const S of this._progressiveDoneListeners)S()})}transportReady(){this._readyCapability.resolve()}requestDataRange(S,y){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(S,y){var M,g=this;this._pdfInfo=S,this._transport=y,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:(M=_asyncToGenerator(function*(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),g.stats||{streamTypes:{},fontTypes:{}}}),function(){return M.apply(this,arguments)})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(S){return this._transport.getPage(S)}getPageIndex(S){return this._transport.getPageIndex(S)}getDestinations(){return this._transport.getDestinations()}getDestination(S){return this._transport.getDestination(S)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(S=!1){return this._transport.startCleanup(S||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(S,y,g,M,G=!1){this._pageIndex=S,this._pageInfo=y,this._ownerDocument=M,this._transport=g,this._stats=G?new _display_utils.StatTimer:null,this._pdfBug=G,this.commonObjs=g.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:S,rotation:y=this.rotate,offsetX:g=0,offsetY:M=0,dontFlip:G=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:S,rotation:y,offsetX:g,offsetY:M,dontFlip:G})}getAnnotations({intent:S="display"}={}){const y=this._transport.getRenderingIntent(S);let g=this._annotationPromises.get(y.cacheKey);return g||(g=this._transport.getAnnotations(this._pageIndex,y.renderingIntent),this._annotationPromises.set(y.cacheKey,g),g=g.then(M=>{for(const G of M)void 0!==G.titleObj&&Object.defineProperty(G,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),G.titleObj.str)}),void 0!==G.contentsObj&&Object.defineProperty(G,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),G.contentsObj.str)});return M})),g}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}getXfa(){var S=this;return _asyncToGenerator(function*(){var y;return(null==(y=S._transport._htmlForXfa)?void 0:y.children[S._pageIndex])||null})()}render({canvasContext:S,viewport:y,intent:g="display",annotationMode:M=_util.AnnotationMode.ENABLE,transform:G=null,imageLayer:P=null,canvasFactory:F=null,background:m=null,optionalContentConfigPromise:_=null,annotationCanvasMap:k=null,pageColors:O=null}){var we,oe;void 0!==(null==(we=arguments[0])?void 0:we.renderInteractiveForms)&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&M===_util.AnnotationMode.ENABLE&&(M=_util.AnnotationMode.ENABLE_FORMS)),void 0!==(null==(oe=arguments[0])?void 0:oe.includeAnnotationStorage)&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&M===_util.AnnotationMode.ENABLE&&(M=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const H=this._transport.getRenderingIntent(g,M);this.pendingCleanup=!1,_||(_=this._transport.getOptionalContentConfig());let Z=this._intentStates.get(H.cacheKey);Z||(Z=Object.create(null),this._intentStates.set(H.cacheKey,Z)),Z.streamReaderCancelTimeout&&(clearTimeout(Z.streamReaderCancelTimeout),Z.streamReaderCancelTimeout=null);const L=F||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),V=!!(H.renderingIntent&_util.RenderingIntentFlag.PRINT);Z.displayReadyCapability||(Z.displayReadyCapability=(0,_util.createPromiseCapability)(),Z.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(H));const te=Se=>{Z.renderTasks.delete(ue),(this.cleanupAfterRender||V)&&(this.pendingCleanup=!0),this._tryCleanup(),Se?(ue.capability.reject(Se),this._abortOperatorList({intentState:Z,reason:Se instanceof Error?Se:new Error(Se)})):ue.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},ue=new InternalRenderTask({callback:te,params:{canvasContext:S,viewport:y,transform:G,imageLayer:P,background:m},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:k,operatorList:Z.operatorList,pageIndex:this._pageIndex,canvasFactory:L,useRequestAnimationFrame:!V,pdfBug:this._pdfBug,pageColors:O});(Z.renderTasks||(Z.renderTasks=new Set)).add(ue);const fe=ue.task;return Promise.all([Z.displayReadyCapability.promise,_]).then(([Se,_e])=>{this.pendingCleanup?te():(this._stats&&this._stats.time("Rendering"),ue.initializeGraphics({transparency:Se,optionalContentConfig:_e}),ue.operatorListChanged())}).catch(te),fe}getOperatorList({intent:S="display",annotationMode:y=_util.AnnotationMode.ENABLE}={}){const M=this._transport.getRenderingIntent(S,y,!0);let P,G=this._intentStates.get(M.cacheKey);return G||(G=Object.create(null),this._intentStates.set(M.cacheKey,G)),G.opListReadCapability||(P=Object.create(null),P.operatorListChanged=function g(){G.operatorList.lastChunk&&(G.opListReadCapability.resolve(G.operatorList),G.renderTasks.delete(P))},G.opListReadCapability=(0,_util.createPromiseCapability)(),(G.renderTasks||(G.renderTasks=new Set)).add(P),G.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(M)),G.opListReadCapability.promise}streamTextContent({disableCombineTextItems:S=!1,includeMarkedContent:y=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==S,includeMarkedContent:!0===y},{highWaterMark:100,size:M=>M.items.length})}getTextContent(S={}){if(this._transport._htmlForXfa)return this.getXfa().then(g=>_xfa_text.XfaText.textContent(g));const y=this.streamTextContent(S);return new Promise(function(g,M){const P=y.getReader(),F={items:[],styles:Object.create(null)};!function G(){P.read().then(function({value:m,done:_}){_?g(F):(Object.assign(F.styles,m.styles),F.items.push(...m.items),G())},M)}()})}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0;const S=[];for(const y of this._intentStates.values())if(this._abortOperatorList({intentState:y,reason:new Error("Page was destroyed."),force:!0}),!y.opListReadCapability)for(const g of y.renderTasks)S.push(g.completed),g.cancel();this.objs.clear();for(const y of this._bitmaps)y.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(S)}cleanup(S=!1){return this.pendingCleanup=!0,this._tryCleanup(S)}_tryCleanup(S=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:y,operatorList:g}of this._intentStates.values())if(y.size>0||!g.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,S&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const y of this._bitmaps)y.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(S,y){const g=this._intentStates.get(y);!g||(this._stats&&this._stats.timeEnd("Page Request"),g.displayReadyCapability&&g.displayReadyCapability.resolve(S))}_renderPageChunk(S,y){for(let g=0,M=S.length;g<M;g++)y.operatorList.fnArray.push(S.fnArray[g]),y.operatorList.argsArray.push(S.argsArray[g]);y.operatorList.lastChunk=S.lastChunk;for(const g of y.renderTasks)g.operatorListChanged();S.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:S,cacheKey:y}){const M=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:S,cacheKey:y,annotationStorage:S&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}).getReader(),G=this._intentStates.get(y);G.streamReader=M;const P=()=>{M.read().then(({value:F,done:m})=>{m?G.streamReader=null:this._transport.destroyed||(this._renderPageChunk(F,G),P())},F=>{if(G.streamReader=null,!this._transport.destroyed){if(G.operatorList){G.operatorList.lastChunk=!0;for(const m of G.renderTasks)m.operatorListChanged();this._tryCleanup()}if(G.displayReadyCapability)G.displayReadyCapability.reject(F);else{if(!G.opListReadCapability)throw F;G.opListReadCapability.reject(F)}}})};P()}_abortOperatorList({intentState:S,reason:y,force:g=!1}){if(S.streamReader){if(!g){if(S.renderTasks.size>0)return;if(y instanceof _display_utils.RenderingCancelledException)return void(S.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:S,reason:y,force:!0}),S.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(S.streamReader.cancel(new _util.AbortException(y.message)).catch(()=>{}),S.streamReader=null,!this._transport.destroyed){for(const[M,G]of this._intentStates)if(G===S){this._intentStates.delete(M);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(S,y){const g={data:structuredClone(S,y)};this._deferred.then(()=>{for(const M of this._listeners)M.call(this,g)})}addEventListener(S,y){this._listeners.push(y)}removeEventListener(S,y){const g=this._listeners.indexOf(y);this._listeners.splice(g,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const U=null==(He=null==document?void 0:document.currentScript)?void 0:He.src;U&&(PDFWorkerUtil.fallbackWorkerSrc=U.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(U,S){let y;try{if(y=new URL(U),!y.origin||"null"===y.origin)return!1}catch(M){return!1}const g=new URL(S,y);return y.origin===g.origin},PDFWorkerUtil.createCDNWrapper=function(U){return URL.createObjectURL(new Blob([`importScripts("${U}");`]))};const _PDFWorker=class{constructor({name:U=null,port:S=null,verbosity:y=(0,_util.getVerbosityLevel)()}={}){if(S&&Rt(_PDFWorker,I).has(S))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=U,this.destroyed=!1,this.verbosity=y,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,S)return Rt(_PDFWorker,I).set(S,this),void this._initializeFromPort(S);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(U){this._port=U,this._messageHandler=new _message_handler.MessageHandler("main","worker",U),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let U=_PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,U)||(U=PDFWorkerUtil.createCDNWrapper(new URL(U,window.location).href));const S=new Worker(U),y=new _message_handler.MessageHandler("main","worker",S),g=()=>{S.removeEventListener("error",M),y.destroy(),S.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},M=()=>{this._webWorker||g()};S.addEventListener("error",M),y.on("test",P=>{S.removeEventListener("error",M),this.destroyed?g():P?(this._messageHandler=y,this._port=S,this._webWorker=S,this._readyCapability.resolve(),y.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),y.destroy(),S.terminate())}),y.on("ready",P=>{if(S.removeEventListener("error",M),this.destroyed)g();else try{G()}catch(F){this._setupFakeWorker()}});const G=()=>{const P=new Uint8Array;y.send("test",P,[P.buffer])};return void G()}catch(S){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(U=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const S=new LoopbackPort;this._port=S;const y="fake"+PDFWorkerUtil.fakeWorkerId++,g=new _message_handler.MessageHandler(y+"_worker",y,S);U.setup(g,S);const M=new _message_handler.MessageHandler(y,y+"_worker",S);this._messageHandler=M,this._readyCapability.resolve(),M.send("configure",{verbosity:this.verbosity})}).catch(U=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${U.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),Rt(_PDFWorker,I).delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(U){if(null==U||!U.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return Rt(this,I).has(U.port)?Rt(this,I).get(U.port):new _PDFWorker(U)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var U;try{return(null==(U=globalThis.pdfjsWorker)?void 0:U.WorkerMessageHandler)||null}catch(S){return null}}static get _setupFakeWorkerGlobal(){var _this4=this;const loader=function(){var _ref2=_asyncToGenerator(function*(){const mainWorkerMessageHandler=_this4._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(_this4.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this4.workerSrc),window.pdfjsWorker.WorkerMessageHandler});return function U(){return _ref2.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};let PDFWorker=_PDFWorker;I=new WeakMap,Gt(PDFWorker,I,new WeakMap),exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{constructor(S,y,g,M){Gt(this,J,null),Gt(this,Ve,new Map),Gt(this,Te,new Map),Gt(this,Me,null),this.messageHandler=S,this.loadingTask=y,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:y.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:M.ownerDocument,styleElement:M.styleElement}),this._params=M,M.useWorkerFetch||(this.CMapReaderFactory=new M.CMapReaderFactory({baseUrl:M.cMapUrl,isCompressed:M.cMapPacked}),this.StandardFontDataFactory=new M.StandardFontDataFactory({baseUrl:M.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=g,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return Rt(this,J)}getRenderingIntent(S,y=_util.AnnotationMode.ENABLE,g=!1){let M=_util.RenderingIntentFlag.DISPLAY,G="";switch(S){case"any":M=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":M=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${S}`)}switch(y){case _util.AnnotationMode.DISABLE:M+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:M+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:M+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,G=this.annotationStorage.hash;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${y}`)}return g&&(M+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:M,cacheKey:`${M}_${G}`}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const S=[];for(const g of Rt(this,Ve).values())S.push(g._destroy());Rt(this,Ve).clear(),Rt(this,Te).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const y=this.messageHandler.sendWithPromise("Terminate",null);return S.push(y),Promise.all(S).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),Fi(this,Me,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:S,loadingTask:y}=this;S.on("GetReader",(g,M)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=G=>{this._lastProgress={loaded:G.loaded,total:G.total}},M.onPull=()=>{this._fullReader.read().then(function({value:G,done:P}){P?M.close():((0,_util.assert)((0,_util.isArrayBuffer)(G),"GetReader - expected an ArrayBuffer."),M.enqueue(new Uint8Array(G),1,[G]))}).catch(G=>{M.error(G)})},M.onCancel=G=>{this._fullReader.cancel(G),M.ready.catch(P=>{if(!this.destroyed)throw P})}}),S.on("ReaderHeadersReady",g=>{const M=(0,_util.createPromiseCapability)(),G=this._fullReader;return G.headersReady.then(()=>{var P;(!G.isStreamingSupported||!G.isRangeSupported)&&(this._lastProgress&&(null==(P=y.onProgress)||P.call(y,this._lastProgress)),G.onProgress=F=>{var m;null==(m=y.onProgress)||m.call(y,{loaded:F.loaded,total:F.total})}),M.resolve({isStreamingSupported:G.isStreamingSupported,isRangeSupported:G.isRangeSupported,contentLength:G.contentLength})},M.reject),M.promise}),S.on("GetRangeReader",(g,M)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const G=this._networkStream.getRangeReader(g.begin,g.end);G?(M.onPull=()=>{G.read().then(function({value:P,done:F}){F?M.close():((0,_util.assert)((0,_util.isArrayBuffer)(P),"GetRangeReader - expected an ArrayBuffer."),M.enqueue(new Uint8Array(P),1,[P]))}).catch(P=>{M.error(P)})},M.onCancel=P=>{G.cancel(P),M.ready.catch(F=>{if(!this.destroyed)throw F})}):M.close()}),S.on("GetDoc",({pdfInfo:g})=>{this._numPages=g.numPages,this._htmlForXfa=g.htmlForXfa,delete g.htmlForXfa,y._capability.resolve(new PDFDocumentProxy(g,this))}),S.on("DocException",function(g){let M;switch(g.name){case"PasswordException":M=new _util.PasswordException(g.message,g.code);break;case"InvalidPDFException":M=new _util.InvalidPDFException(g.message);break;case"MissingPDFException":M=new _util.MissingPDFException(g.message);break;case"UnexpectedResponseException":M=new _util.UnexpectedResponseException(g.message,g.status);break;case"UnknownErrorException":M=new _util.UnknownErrorException(g.message,g.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}y._capability.reject(M)}),S.on("PasswordRequest",g=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),y.onPassword){const M=G=>{G instanceof Error?this._passwordCapability.reject(G):this._passwordCapability.resolve({password:G})};try{y.onPassword(M,g.code)}catch(G){this._passwordCapability.reject(G)}}else this._passwordCapability.reject(new _util.PasswordException(g.message,g.code));return this._passwordCapability.promise}),S.on("DataLoaded",g=>{var M;null==(M=y.onProgress)||M.call(y,{loaded:g.length,total:g.length}),this.downloadInfoCapability.resolve(g)}),S.on("StartRenderPage",g=>{this.destroyed||Rt(this,Ve).get(g.pageIndex)._startRenderPage(g.transparency,g.cacheKey)}),S.on("commonobj",([g,M,G])=>{var P;if(!this.destroyed&&!this.commonObjs.has(g))switch(M){case"Font":const F=this._params;if("error"in G){const k=G.error;(0,_util.warn)(`Error during font loading: ${k}`),this.commonObjs.resolve(g,k);break}let m=null;F.pdfBug&&(null==(P=globalThis.FontInspector)?void 0:P.enabled)&&(m={registerFont(k,O){globalThis.FontInspector.fontAdded(k,O)}});const _=new _font_loader.FontFaceObject(G,{isEvalSupported:F.isEvalSupported,disableFontFace:F.disableFontFace,ignoreErrors:F.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:m});this.fontLoader.bind(_).catch(k=>S.sendWithPromise("FontFallback",{id:g})).finally(()=>{!F.fontExtraProperties&&_.data&&(_.data=null),this.commonObjs.resolve(g,_)});break;case"FontPath":case"Image":this.commonObjs.resolve(g,G);break;default:throw new Error(`Got unknown common object type ${M}`)}}),S.on("obj",([g,M,G,P])=>{var m;if(this.destroyed)return;const F=Rt(this,Ve).get(M);if(!F.objs.has(g))switch(G){case"Image":F.objs.resolve(g,P);const _=8e6;if(P){let k;if(P.bitmap){const{bitmap:O,width:H,height:Z}=P;k=H*Z*4,F._bitmaps.add(O)}else k=(null==(m=P.data)?void 0:m.length)||0;k>_&&(F.cleanupAfterRender=!0)}break;case"Pattern":F.objs.resolve(g,P);break;default:throw new Error(`Got unknown object type ${G}`)}}),S.on("DocProgress",g=>{var M;this.destroyed||null==(M=y.onProgress)||M.call(y,{loaded:g.loaded,total:g.total})}),S.on("DocStats",g=>{this.destroyed||Fi(this,J,Object.freeze({streamTypes:Object.freeze(g.streamTypes),fontTypes:Object.freeze(g.fontTypes)}))}),S.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),S.on("FetchBuiltInCMap",g=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(g):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),S.on("FetchStandardFontData",g=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(g):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature({featureId:S}){var y,g;this.destroyed||null==(g=(y=this.loadingTask).onUnsupportedFeature)||g.call(y,S)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(S){if(!Number.isInteger(S)||S<=0||S>this._numPages)return Promise.reject(new Error("Invalid page request."));const y=S-1,g=Rt(this,Te).get(y);if(g)return g;const M=this.messageHandler.sendWithPromise("GetPage",{pageIndex:y}).then(G=>{if(this.destroyed)throw new Error("Transport destroyed");const P=new PDFPageProxy(y,G,this,this._params.ownerDocument,this._params.pdfBug);return Rt(this,Ve).set(y,P),P});return Rt(this,Te).set(y,M),M}getPageIndex(S){return"object"!=typeof S||null===S||!Number.isInteger(S.num)||S.num<0||!Number.isInteger(S.gen)||S.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:S.num,gen:S.gen})}getAnnotations(S,y){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:S,intent:y})}saveDocument(){var S,y;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!=(y=null==(S=this._fullReader)?void 0:S.filename)?y:null}).finally(()=>{this.annotationStorage.resetModified()})}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(S){return"string"!=typeof S?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:S})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(S){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:S})}getStructTree(S){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:S})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(S=>new _optional_content_config.OptionalContentConfig(S))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return Rt(this,Me)||Fi(this,Me,this.messageHandler.sendWithPromise("GetMetadata",null).then(S=>{var y,g,M,G;return{info:S[0],metadata:S[1]?new _metadata.Metadata(S[1]):null,contentDispositionFilename:null!=(g=null==(y=this._fullReader)?void 0:y.filename)?g:null,contentLength:null!=(G=null==(M=this._fullReader)?void 0:M.contentLength)?G:null}}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(S=!1){var y=this;return _asyncToGenerator(function*(){if(yield y.messageHandler.sendWithPromise("Cleanup",null),!y.destroyed){for(const g of Rt(y,Ve).values())if(!g.cleanup())throw new Error(`startCleanup: Page ${g.pageNumber} is currently rendering.`);y.commonObjs.clear(),S||y.fontLoader.clear(),Fi(y,Me,null),y._getFieldObjectsPromise=null,y._hasJSActionsPromise=null}})()}get loadingParams(){const S=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:S.disableAutoFetch,enableXfa:S.enableXfa})}}J=new WeakMap,Ve=new WeakMap,Te=new WeakMap,Me=new WeakMap;class PDFObjects{constructor(){Gt(this,E),Gt(this,ce,Object.create(null))}get(S,y=null){if(y){const M=Nt(this,E,z1).call(this,S);return M.capability.promise.then(()=>y(M.data)),null}const g=Rt(this,ce)[S];if(null==g||!g.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${S}.`);return g.data}has(S){const y=Rt(this,ce)[S];return(null==y?void 0:y.capability.settled)||!1}resolve(S,y=null){const g=Nt(this,E,z1).call(this,S);g.data=y,g.capability.resolve()}clear(){Fi(this,ce,Object.create(null))}}ce=new WeakMap,E=new WeakSet,z1=function(S){return Rt(this,ce)[S]||(Rt(this,ce)[S]={capability:(0,_util.createPromiseCapability)(),data:null})};class RenderTask{constructor(S){this._internalRenderTask=S,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}exports.RenderTask=RenderTask;const W=class{constructor({callback:S,params:y,objs:g,commonObjs:M,annotationCanvasMap:G,operatorList:P,pageIndex:F,canvasFactory:m,useRequestAnimationFrame:_=!1,pdfBug:k=!1,pageColors:O=null}){this.callback=S,this.params=y,this.objs=g,this.commonObjs=M,this.annotationCanvasMap=G,this.operatorListIdx=null,this.operatorList=P,this._pageIndex=F,this.canvasFactory=m,this._pdfBug=k,this.pageColors=O,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===_&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=y.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:S=!1,optionalContentConfig:y}){var m;if(this.cancelled)return;if(this._canvas){if(Rt(W,T).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Rt(W,T).add(this._canvas)}this._pdfBug&&(null==(m=globalThis.StepperManager)?void 0:m.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:g,viewport:M,transform:G,imageLayer:P,background:F}=this.params;this.gfx=new _canvas.CanvasGraphics(g,this.commonObjs,this.objs,this.canvasFactory,P,y,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:G,viewport:M,transparency:S,background:F}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(S=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&Rt(W,T).delete(this._canvas),this.callback(S||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var S=this;return _asyncToGenerator(function*(){S.cancelled||(S.operatorListIdx=S.gfx.executeOperatorList(S.operatorList,S.operatorListIdx,S._continueBound,S.stepper),S.operatorListIdx===S.operatorList.argsArray.length&&(S.running=!1,S.operatorList.lastChunk&&(S.gfx.endDrawing(),S._canvas&&Rt(W,T).delete(S._canvas),S.callback())))})()}};let InternalRenderTask=W;T=new WeakMap,Gt(InternalRenderTask,T,new WeakSet);const version="2.14.305";exports.version=version;const build="eaaa8b4ad";exports.build=build},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.StatTimer=re.RenderingCancelledException=re.PixelsPerInch=re.PageViewport=re.PDFDateString=re.DOMStandardFontDataFactory=re.DOMSVGFactory=re.DOMCanvasFactory=re.DOMCMapReaderFactory=void 0,re.deprecated=function _(L){console.log("Deprecated API usage: "+L)},re.getFilenameFromUrl=function M(L){const V=L.indexOf("#"),te=L.indexOf("?"),ue=Math.min(V>0?V:L.length,te>0?te:L.length);return L.substring(L.lastIndexOf("/",ue)+1,ue)},re.getPdfFilenameFromUrl=function G(L,V="document.pdf"){if("string"!=typeof L)return V;if(y(L))return(0,J.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),V;const ue=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,fe=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(L);let we=ue.exec(fe[1])||ue.exec(fe[2])||ue.exec(fe[3]);if(we&&(we=we[0],we.includes("%")))try{we=ue.exec(decodeURIComponent(we))[0]}catch(oe){}return we||V},re.getXfaPageViewport=function H(L,{scale:V=1,rotation:te=0}){const{width:ue,height:fe}=L.attributes.style,we=[0,0,parseInt(ue),parseInt(fe)];return new U({viewBox:we,scale:V,rotation:te})},re.isDataScheme=y,re.isPdfFile=function g(L){return"string"==typeof L&&/\.pdf$/i.test(L)},re.isValidFetchUrl=F,re.loadScript=function m(L,V=!1){return new Promise((te,ue)=>{const fe=document.createElement("script");fe.src=L,fe.onload=function(we){V&&fe.remove(),te(we)},fe.onerror=function(){ue(new Error(`Cannot load script at: ${fe.src}`))},(document.head||document.documentElement).appendChild(fe)})};var I=He(6),J=He(1);const Z=class{};let k,Te=Z;function ce(L){return E.apply(this,arguments)}function E(){return(E=_asyncToGenerator(function*(L,V=!1){if(F(L,document.baseURI)){const te=yield fetch(L);if(!te.ok)throw new Error(te.statusText);return V?new Uint8Array(yield te.arrayBuffer()):(0,J.stringToBytes)(yield te.text())}return new Promise((te,ue)=>{const fe=new XMLHttpRequest;fe.open("GET",L,!0),V&&(fe.responseType="arraybuffer"),fe.onreadystatechange=()=>{if(fe.readyState===XMLHttpRequest.DONE){if(200===fe.status||0===fe.status){let we;if(V&&fe.response?we=new Uint8Array(fe.response):!V&&fe.responseText&&(we=(0,J.stringToBytes)(fe.responseText)),we)return void te(we)}ue(new Error(fe.statusText))}},fe.send(null)})})).apply(this,arguments)}pC(Te,"CSS",96),pC(Te,"PDF",72),pC(Te,"PDF_TO_CSS_UNITS",Z.CSS/Z.PDF),re.PixelsPerInch=Te,re.DOMCanvasFactory=class Me extends I.BaseCanvasFactory{constructor({ownerDocument:V=globalThis.document}={}){super(),this._document=V}_createCanvas(V,te){const ue=this._document.createElement("canvas");return ue.width=V,ue.height=te,ue}},re.DOMCMapReaderFactory=class Q extends I.BaseCMapReaderFactory{_fetchData(V,te){return ce(V,this.isCompressed).then(ue=>({cMapData:ue,compressionType:te}))}},re.DOMStandardFontDataFactory=class T extends I.BaseStandardFontDataFactory{_fetchData(V){return ce(V,!0)}},re.DOMSVGFactory=class W extends I.BaseSVGFactory{_createSVG(V){return document.createElementNS("http://www.w3.org/2000/svg",V)}};class U{constructor({viewBox:V,scale:te,rotation:ue,offsetX:fe=0,offsetY:we=0,dontFlip:oe=!1}){this.viewBox=V,this.scale=te,this.rotation=ue,this.offsetX=fe,this.offsetY=we;const Se=(V[2]+V[0])/2,_e=(V[3]+V[1])/2;let Ce,Be,X,C,b,p,D,A;switch((ue%=360)<0&&(ue+=360),ue){case 180:Ce=-1,Be=0,X=0,C=1;break;case 90:Ce=0,Be=1,X=1,C=0;break;case 270:Ce=0,Be=-1,X=-1,C=0;break;case 0:Ce=1,Be=0,X=0,C=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}oe&&(X=-X,C=-C),0===Ce?(b=Math.abs(_e-V[1])*te+fe,p=Math.abs(Se-V[0])*te+we,D=Math.abs(V[3]-V[1])*te,A=Math.abs(V[2]-V[0])*te):(b=Math.abs(Se-V[0])*te+fe,p=Math.abs(_e-V[1])*te+we,D=Math.abs(V[2]-V[0])*te,A=Math.abs(V[3]-V[1])*te),this.transform=[Ce*te,Be*te,X*te,C*te,b-Ce*te*Se-X*te*_e,p-Be*te*Se-C*te*_e],this.width=D,this.height=A}clone({scale:V=this.scale,rotation:te=this.rotation,offsetX:ue=this.offsetX,offsetY:fe=this.offsetY,dontFlip:we=!1}={}){return new U({viewBox:this.viewBox.slice(),scale:V,rotation:te,offsetX:ue,offsetY:fe,dontFlip:we})}convertToViewportPoint(V,te){return J.Util.applyTransform([V,te],this.transform)}convertToViewportRectangle(V){const te=J.Util.applyTransform([V[0],V[1]],this.transform),ue=J.Util.applyTransform([V[2],V[3]],this.transform);return[te[0],te[1],ue[0],ue[1]]}convertToPdfPoint(V,te){return J.Util.applyInverseTransform([V,te],this.transform)}}function y(L){const V=L.length;let te=0;for(;te<V&&""===L[te].trim();)te++;return"data:"===L.substring(te,te+5).toLowerCase()}function F(L,V){try{const{protocol:te}=V?new URL(L,V):new URL(L);return"http:"===te||"https:"===te}catch(te){return!1}}re.PageViewport=U,re.RenderingCancelledException=class S extends J.BaseException{constructor(V,te){super(V,"RenderingCancelledException"),this.type=te}},re.StatTimer=class P{constructor(){this.started=Object.create(null),this.times=[]}time(V){V in this.started&&(0,J.warn)(`Timer is already running for ${V}`),this.started[V]=Date.now()}timeEnd(V){V in this.started||(0,J.warn)(`Timer has not been started for ${V}`),this.times.push({name:V,start:this.started[V],end:Date.now()}),delete this.started[V]}toString(){const V=[];let te=0;for(const ue of this.times){const fe=ue.name;fe.length>te&&(te=fe.length)}for(const ue of this.times){const fe=ue.end-ue.start;V.push(`${ue.name.padEnd(te)} ${fe}ms\n`)}return V.join("")}},re.PDFDateString=class O{static toDateObject(V){if(!V||"string"!=typeof V)return null;k||(k=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const te=k.exec(V);if(!te)return null;const ue=parseInt(te[1],10);let fe=parseInt(te[2],10);fe=fe>=1&&fe<=12?fe-1:0;let we=parseInt(te[3],10);we=we>=1&&we<=31?we:1;let oe=parseInt(te[4],10);oe=oe>=0&&oe<=23?oe:0;let Se=parseInt(te[5],10);Se=Se>=0&&Se<=59?Se:0;let _e=parseInt(te[6],10);_e=_e>=0&&_e<=59?_e:0;const Ce=te[7]||"Z";let Be=parseInt(te[8],10);Be=Be>=0&&Be<=23?Be:0;let X=parseInt(te[9],10)||0;return X=X>=0&&X<=59?X:0,"-"===Ce?(oe+=Be,Se+=X):"+"===Ce&&(oe-=Be,Se-=X),new Date(Date.UTC(ue,fe,we,oe,Se,_e))}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.BaseStandardFontDataFactory=re.BaseSVGFactory=re.BaseCanvasFactory=re.BaseCMapReaderFactory=void 0;var I=He(1);class J{constructor(){this.constructor===J&&(0,I.unreachable)("Cannot initialize BaseCanvasFactory.")}create(E,Q){if(E<=0||Q<=0)throw new Error("Invalid canvas size");const T=this._createCanvas(E,Q);return{canvas:T,context:T.getContext("2d")}}reset(E,Q,T){if(!E.canvas)throw new Error("Canvas is not specified");if(Q<=0||T<=0)throw new Error("Invalid canvas size");E.canvas.width=Q,E.canvas.height=T}destroy(E){if(!E.canvas)throw new Error("Canvas is not specified");E.canvas.width=0,E.canvas.height=0,E.canvas=null,E.context=null}_createCanvas(E,Q){(0,I.unreachable)("Abstract method `_createCanvas` called.")}}re.BaseCanvasFactory=J;class Ve{constructor({baseUrl:E=null,isCompressed:Q=!1}){this.constructor===Ve&&(0,I.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=E,this.isCompressed=Q}fetch({name:E}){var Q=this;return _asyncToGenerator(function*(){if(!Q.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!E)throw new Error("CMap name must be specified.");const T=Q.baseUrl+E+(Q.isCompressed?".bcmap":"");return Q._fetchData(T,Q.isCompressed?I.CMapCompressionType.BINARY:I.CMapCompressionType.NONE).catch(U=>{throw new Error(`Unable to load ${Q.isCompressed?"binary ":""}CMap at: ${T}`)})})()}_fetchData(E,Q){(0,I.unreachable)("Abstract method `_fetchData` called.")}}re.BaseCMapReaderFactory=Ve;class Te{constructor({baseUrl:E=null}){this.constructor===Te&&(0,I.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=E}fetch({filename:E}){var Q=this;return _asyncToGenerator(function*(){if(!Q.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!E)throw new Error("Font filename must be specified.");const T=`${Q.baseUrl}${E}`;return Q._fetchData(T).catch(W=>{throw new Error(`Unable to load font data at: ${T}`)})})()}_fetchData(E){(0,I.unreachable)("Abstract method `_fetchData` called.")}}re.BaseStandardFontDataFactory=Te;class Me{constructor(){this.constructor===Me&&(0,I.unreachable)("Cannot initialize BaseSVGFactory.")}create(E,Q){if(E<=0||Q<=0)throw new Error("Invalid SVG dimensions");const T=this._createSVG("svg:svg");return T.setAttribute("version","1.1"),T.setAttribute("width",`${E}px`),T.setAttribute("height",`${Q}px`),T.setAttribute("preserveAspectRatio","none"),T.setAttribute("viewBox",`0 0 ${E} ${Q}`),T}createElement(E){if("string"!=typeof E)throw new Error("Invalid SVG element type");return this._createSVG(E)}_createSVG(E){(0,I.unreachable)("Abstract method `_createSVG` called.")}}re.BaseSVGFactory=Me},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.FontLoader=re.FontFaceObject=void 0;var I=He(1);class J{constructor({docId:ce,onUnsupportedFeature:E,ownerDocument:Q=globalThis.document,styleElement:T=null}){this.constructor===J&&(0,I.unreachable)("Cannot initialize BaseFontLoader."),this.docId=ce,this._onUnsupportedFeature=E,this._document=Q,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(ce){this.nativeFontFaces.push(ce),this._document.fonts.add(ce)}insertRule(ce){let E=this.styleElement;E||(E=this.styleElement=this._document.createElement("style"),E.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(E));const Q=E.sheet;Q.insertRule(ce,Q.cssRules.length)}clear(){for(const ce of this.nativeFontFaces)this._document.fonts.delete(ce);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(ce){var E=this;return _asyncToGenerator(function*(){if(ce.attached||ce.missingFile)return;if(ce.attached=!0,E.isFontLoadingAPISupported){const T=ce.createNativeFontFace();if(T){E.addNativeFontFace(T);try{yield T.loaded}catch(W){throw E._onUnsupportedFeature({featureId:I.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,I.warn)(`Failed to load font '${T.family}': '${W}'.`),ce.disableFontFace=!0,W}}return}const Q=ce.createFontFaceRule();if(Q){if(E.insertRule(Q),E.isSyncFontLoadingSupported)return;yield new Promise(T=>{const W=E._queueLoadingCallback(T);E._prepareFontLoadEvent([Q],[ce],W)})}})()}_queueLoadingCallback(ce){(0,I.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var E;const ce=!(null==(E=this._document)||!E.fonts);return(0,I.shadow)(this,"isFontLoadingAPISupported",ce)}get isSyncFontLoadingSupported(){(0,I.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,I.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(ce,E,Q){(0,I.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let Ve;re.FontLoader=Ve,re.FontLoader=Ve=class extends J{constructor(ce){super(ce),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let ce=!1;if("undefined"==typeof navigator)ce=!0;else{const E=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null==E?void 0:E[1])>=14&&(ce=!0)}return(0,I.shadow)(this,"isSyncFontLoadingSupported",ce)}_queueLoadingCallback(ce){const Q=this.loadingContext,T={id:"pdfjs-font-loading-"+Q.nextRequestId++,done:!1,complete:function E(){for((0,I.assert)(!T.done,"completeRequest() cannot be called twice."),T.done=!0;Q.requests.length>0&&Q.requests[0].done;){const W=Q.requests.shift();setTimeout(W.callback,0)}},callback:ce};return Q.requests.push(T),T}get _loadTestFont(){return(0,I.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(ce,E,Q){function T(te,ue){return te.charCodeAt(ue)<<24|te.charCodeAt(ue+1)<<16|te.charCodeAt(ue+2)<<8|255&te.charCodeAt(ue+3)}function W(te,ue,fe,we){return te.substring(0,ue)+we+te.substring(ue+fe)}let U,S;const y=this._document.createElement("canvas");y.width=1,y.height=1;const g=y.getContext("2d");let M=0;const P=`lt${Date.now()}${this.loadTestFontId++}`;let F=this._loadTestFont;F=W(F,976,P.length,P);const k=1482184792;let O=T(F,16);for(U=0,S=P.length-3;U<S;U+=4)O=O-k+T(P,U)|0;U<P.length&&(O=O-k+T(P+"XXX",U)|0),F=W(F,16,4,(0,I.string32)(O));const H=`url(data:font/opentype;base64,${btoa(F)});`;this.insertRule(`@font-face {font-family:"${P}";src:${H}}`);const L=[];for(const te of E)L.push(te.loadedName);L.push(P);const V=this._document.createElement("div");V.style.visibility="hidden",V.style.width=V.style.height="10px",V.style.position="absolute",V.style.top=V.style.left="0px";for(const te of L){const ue=this._document.createElement("span");ue.textContent="Hi",ue.style.fontFamily=te,V.appendChild(ue)}this._document.body.appendChild(V),function G(te,ue){if(M++,M>30)return(0,I.warn)("Load test font never loaded."),void ue();g.font="30px "+te,g.fillText(".",0,20),g.getImageData(0,0,1,1).data[3]>0?ue():setTimeout(G.bind(null,te,ue))}(P,()=>{V.remove(),Q.complete()})}},re.FontFaceObject=class Te{constructor(ce,{isEvalSupported:E=!0,disableFontFace:Q=!1,ignoreErrors:T=!1,onUnsupportedFeature:W,fontRegistry:U=null}){this.compiledGlyphs=Object.create(null);for(const S in ce)this[S]=ce[S];this.isEvalSupported=!1!==E,this.disableFontFace=!0===Q,this.ignoreErrors=!0===T,this._onUnsupportedFeature=W,this.fontRegistry=U}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let ce;if(this.cssFontInfo){const E={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(E.style=`oblique ${this.cssFontInfo.italicAngle}deg`),ce=new FontFace(this.cssFontInfo.fontFamily,this.data,E)}else ce=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),ce}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const ce=(0,I.bytesToString)(this.data),E=`url(data:${this.mimetype};base64,${btoa(ce)});`;let Q;if(this.cssFontInfo){let T=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(T+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),Q=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${T}src:${E}}`}else Q=`@font-face {font-family:"${this.loadedName}";src:${E}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,E),Q}getPathGenerator(ce,E){if(void 0!==this.compiledGlyphs[E])return this.compiledGlyphs[E];let Q;try{Q=ce.get(this.loadedName+"_path_"+E)}catch(T){if(!this.ignoreErrors)throw T;return this._onUnsupportedFeature({featureId:I.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,I.warn)(`getPathGenerator - ignoring character: "${T}".`),this.compiledGlyphs[E]=function(W,U){}}if(this.isEvalSupported&&I.FeatureTest.isEvalSupported){const T=[];for(const W of Q){const U=void 0!==W.args?W.args.join(","):"";T.push("c.",W.cmd,"(",U,");\n")}return this.compiledGlyphs[E]=new Function("c","size",T.join(""))}return this.compiledGlyphs[E]=function(T,W){for(const U of Q)"scale"===U.cmd&&(U.args=[W,-W]),T[U.cmd].apply(T,U.args)}}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.AnnotationStorage=void 0;var I=He(9),J=He(1);re.AnnotationStorage=class Ve{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(Me,ce){const E=this._storage.get(Me);return void 0===E?ce:Object.assign(ce,E)}getRawValue(Me){return this._storage.get(Me)}setValue(Me,ce){const E=this._storage.get(Me);let Q=!1;if(void 0!==E)for(const[T,W]of Object.entries(ce))E[T]!==W&&(Q=!0,E[T]=W);else Q=!0,this._storage.set(Me,ce);Q&&this._setModified()}getAll(){return this._storage.size>0?(0,J.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}get hash(){const Me=new I.MurmurHash3_64;for(const[ce,E]of this._storage)Me.update(`${ce}:${JSON.stringify(E)}`);return Me.hexdigest()}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.MurmurHash3_64=void 0;var I=He(1);const J=3285377520,Ve=4294901760,Te=65535;re.MurmurHash3_64=class Me{constructor(E){this.h1=E?4294967295&E:J,this.h2=E?4294967295&E:J}update(E){let Q,T;if("string"==typeof E){Q=new Uint8Array(2*E.length),T=0;for(let k=0,O=E.length;k<O;k++){const H=E.charCodeAt(k);H<=255?Q[T++]=H:(Q[T++]=H>>>8,Q[T++]=255&H)}}else{if(!(0,I.isArrayBuffer)(E))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");Q=E.slice(),T=Q.byteLength}const W=T>>2,U=T-4*W,S=new Uint32Array(Q.buffer,0,W);let y=0,g=0,M=this.h1,G=this.h2;const P=3432918353,F=461845907,m=P&Te,_=F&Te;for(let k=0;k<W;k++)1&k?(y=S[k],y=y*P&Ve|y*m&Te,y=y<<15|y>>>17,y=y*F&Ve|y*_&Te,M^=y,M=M<<13|M>>>19,M=5*M+3864292196):(g=S[k],g=g*P&Ve|g*m&Te,g=g<<15|g>>>17,g=g*F&Ve|g*_&Te,G^=g,G=G<<13|G>>>19,G=5*G+3864292196);switch(y=0,U){case 3:y^=Q[4*W+2]<<16;case 2:y^=Q[4*W+1]<<8;case 1:y^=Q[4*W],y=y*P&Ve|y*m&Te,y=y<<15|y>>>17,y=y*F&Ve|y*_&Te,1&W?M^=y:G^=y}this.h1=M,this.h2=G}hexdigest(){let E=this.h1,Q=this.h2;E^=Q>>>1,E=3981806797*E&Ve|36045*E&Te,Q=4283543511*Q&Ve|(2950163797*(Q<<16|E>>>16)&Ve)>>>16,E^=Q>>>1,E=444984403*E&Ve|60499*E&Te,Q=3301882366*Q&Ve|(3120437893*(Q<<16|E>>>16)&Ve)>>>16,E^=Q>>>1;const T=(E>>>0).toString(16),W=(Q>>>0).toString(16);return T.padStart(8,"0")+W.padStart(8,"0")}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.CanvasGraphics=void 0;var I=He(1),J=He(11),Ve=He(12),Te=He(3),Me=He(5);const Q=4096,y=16;function G(X){if(X._transformStack&&(X._transformStack=[]),!X.mozCurrentTransform){X._originalSave=X.save,X._originalRestore=X.restore,X._originalRotate=X.rotate,X._originalScale=X.scale,X._originalTranslate=X.translate,X._originalTransform=X.transform,X._originalSetTransform=X.setTransform,X._originalResetTransform=X.resetTransform,X._transformMatrix=X._transformMatrix||[1,0,0,1,0,0],X._transformStack=[];try{const C=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(X),"lineWidth");X._setLineWidth=C.set,X._getLineWidth=C.get,Object.defineProperty(X,"lineWidth",{set:function(p){this._setLineWidth(1.000001*p)},get:function(){return this._getLineWidth()}})}catch(C){}Object.defineProperty(X,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(X,"mozCurrentTransformInverse",{get:function(){const[b,p,D,A,N,j]=this._transformMatrix,z=b*A-p*D,pe=p*D-b*A;return[A/z,p/pe,D/pe,b/z,(A*N-D*j)/pe,(p*N-b*j)/z]}}),X.save=function(){const b=this._transformMatrix;this._transformStack.push(b),this._transformMatrix=b.slice(0,6),this._originalSave()},X.restore=function(){0===this._transformStack.length&&(0,I.warn)("Tried to restore a ctx when the stack was already empty.");const b=this._transformStack.pop();b&&(this._transformMatrix=b,this._originalRestore())},X.translate=function(b,p){const D=this._transformMatrix;D[4]=D[0]*b+D[2]*p+D[4],D[5]=D[1]*b+D[3]*p+D[5],this._originalTranslate(b,p)},X.scale=function(b,p){const D=this._transformMatrix;D[0]*=b,D[1]*=b,D[2]*=p,D[3]*=p,this._originalScale(b,p)},X.transform=function(b,p,D,A,N,j){const z=this._transformMatrix;this._transformMatrix=[z[0]*b+z[2]*p,z[1]*b+z[3]*p,z[0]*D+z[2]*A,z[1]*D+z[3]*A,z[0]*N+z[2]*j+z[4],z[1]*N+z[3]*j+z[5]],X._originalTransform(b,p,D,A,N,j)},X.setTransform=function(b,p,D,A,N,j){this._transformMatrix=[b,p,D,A,N,j],X._originalSetTransform(b,p,D,A,N,j)},X.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],X._originalResetTransform()},X.rotate=function(b){const p=Math.cos(b),D=Math.sin(b),A=this._transformMatrix;this._transformMatrix=[A[0]*p+A[2]*D,A[1]*p+A[3]*D,A[0]*-D+A[2]*p,A[1]*-D+A[3]*p,A[4],A[5]],this._originalRotate(b)}}}class P{constructor(C){this.canvasFactory=C,this.cache=Object.create(null)}getCanvas(C,b,p,D){let A;return void 0!==this.cache[C]?(A=this.cache[C],this.canvasFactory.reset(A,b,p),A.context.setTransform(1,0,0,1,0,0)):(A=this.canvasFactory.create(b,p),this.cache[C]=A),D&&G(A.context),A}delete(C){delete this.cache[C]}clear(){for(const C in this.cache)this.canvasFactory.destroy(this.cache[C]),delete this.cache[C]}}function F(X,C,b,p,D,A,N,j,z,pe){const[he,ge,be,ke,Ae,Ue]=X.mozCurrentTransform;if(0===ge&&0===be){const ze=Math.round(N*he+Ae),le=Math.round(j*ke+Ue),Xe=Math.abs(Math.round((N+z)*he+Ae)-ze)||1,Ke=Math.abs(Math.round((j+pe)*ke+Ue)-le)||1;return X.setTransform(Math.sign(he),0,0,Math.sign(ke),ze,le),X.drawImage(C,b,p,D,A,0,0,Xe,Ke),X.setTransform(he,ge,be,ke,Ae,Ue),[Xe,Ke]}if(0===he&&0===ke){const ze=Math.round(j*be+Ae),le=Math.round(N*ge+Ue),Xe=Math.abs(Math.round((j+pe)*be+Ae)-ze)||1,Ke=Math.abs(Math.round((N+z)*ge+Ue)-le)||1;return X.setTransform(0,Math.sign(ge),Math.sign(be),0,ze,le),X.drawImage(C,b,p,D,A,0,0,Ke,Xe),X.setTransform(he,ge,be,ke,Ae,Ue),[Ke,Xe]}return X.drawImage(C,b,p,D,A,N,j,z,pe),[Math.hypot(he,ge)*z,Math.hypot(be,ke)*pe]}class _{constructor(C,b){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=I.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=I.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=I.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,C,b])}clone(){const C=Object.create(this);return C.clipBox=this.clipBox.slice(),C}setCurrentPoint(C,b){this.x=C,this.y=b}updatePathMinMax(C,b,p){[b,p]=I.Util.applyTransform([b,p],C),this.minX=Math.min(this.minX,b),this.minY=Math.min(this.minY,p),this.maxX=Math.max(this.maxX,b),this.maxY=Math.max(this.maxY,p)}updateRectMinMax(C,b){const p=I.Util.applyTransform(b,C),D=I.Util.applyTransform(b.slice(2),C);this.minX=Math.min(this.minX,p[0],D[0]),this.minY=Math.min(this.minY,p[1],D[1]),this.maxX=Math.max(this.maxX,p[0],D[0]),this.maxY=Math.max(this.maxY,p[1],D[1])}updateScalingPathMinMax(C,b){I.Util.scaleMinMax(C,b),this.minX=Math.min(this.minX,b[0]),this.maxX=Math.max(this.maxX,b[1]),this.minY=Math.min(this.minY,b[2]),this.maxY=Math.max(this.maxY,b[3])}updateCurvePathMinMax(C,b,p,D,A,N,j,z,pe,he){const ge=I.Util.bezierBoundingBox(b,p,D,A,N,j,z,pe);if(he)return he[0]=Math.min(he[0],ge[0],ge[2]),he[1]=Math.max(he[1],ge[0],ge[2]),he[2]=Math.min(he[2],ge[1],ge[3]),void(he[3]=Math.max(he[3],ge[1],ge[3]));this.updateRectMinMax(C,ge)}getPathBoundingBox(C=J.PathType.FILL,b=null){const p=[this.minX,this.minY,this.maxX,this.maxY];if(C===J.PathType.STROKE){b||(0,I.unreachable)("Stroke bounding box must include transform.");const D=I.Util.singularValueDecompose2dScale(b),A=D[0]*this.lineWidth/2,N=D[1]*this.lineWidth/2;p[0]-=A,p[1]-=N,p[2]+=A,p[3]+=N}return p}updateClipFromPath(){const C=I.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(C||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(C){this.clipBox=C,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(C=J.PathType.FILL,b=null){return I.Util.intersect(this.clipBox,this.getPathBoundingBox(C,b))}}function k(X,C,b=null){if("undefined"!=typeof ImageData&&C instanceof ImageData)return void X.putImageData(C,0,0);const p=C.height,D=C.width,A=p%y,N=(p-A)/y,j=0===A?N:N+1,z=X.createImageData(D,y);let he,pe=0;const ge=C.data,be=z.data;let ke,Ae,Ue,st,De,je,ze,q;if(b)switch(b.length){case 1:De=b[0],je=b[0],ze=b[0],q=b[0];break;case 4:De=b[0],je=b[1],ze=b[2],q=b[3]}if(C.kind===I.ImageKind.GRAYSCALE_1BPP){const le=ge.byteLength,Ee=new Uint32Array(be.buffer,0,be.byteLength>>2),Xe=Ee.length,Ye=D+7>>3;let Ke=4294967295,ut=I.FeatureTest.isLittleEndian?4278190080:255;for(q&&255===q[0]&&0===q[255]&&([Ke,ut]=[ut,Ke]),ke=0;ke<j;ke++){for(Ue=ke<N?y:A,he=0,Ae=0;Ae<Ue;Ae++){const pt=le-pe;let Vt=0;const ln=pt>Ye?D:8*pt-7,Tn=-8&ln;let Ne=0,ae=0;for(;Vt<Tn;Vt+=8)ae=ge[pe++],Ee[he++]=128&ae?Ke:ut,Ee[he++]=64&ae?Ke:ut,Ee[he++]=32&ae?Ke:ut,Ee[he++]=16&ae?Ke:ut,Ee[he++]=8&ae?Ke:ut,Ee[he++]=4&ae?Ke:ut,Ee[he++]=2&ae?Ke:ut,Ee[he++]=1&ae?Ke:ut;for(;Vt<ln;Vt++)0===Ne&&(ae=ge[pe++],Ne=128),Ee[he++]=ae&Ne?Ke:ut,Ne>>=1}for(;he<Xe;)Ee[he++]=0;X.putImageData(z,0,ke*y)}}else if(C.kind===I.ImageKind.RGBA_32BPP){const le=!!(De||je||ze);for(Ae=0,st=D*y*4,ke=0;ke<N;ke++){if(be.set(ge.subarray(pe,pe+st)),pe+=st,le)for(let Ee=0;Ee<st;Ee+=4)De&&(be[Ee+0]=De[be[Ee+0]]),je&&(be[Ee+1]=je[be[Ee+1]]),ze&&(be[Ee+2]=ze[be[Ee+2]]);X.putImageData(z,0,Ae),Ae+=y}if(ke<j){if(st=D*A*4,be.set(ge.subarray(pe,pe+st)),le)for(let Ee=0;Ee<st;Ee+=4)De&&(be[Ee+0]=De[be[Ee+0]]),je&&(be[Ee+1]=je[be[Ee+1]]),ze&&(be[Ee+2]=ze[be[Ee+2]]);X.putImageData(z,0,Ae)}}else{if(C.kind!==I.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${C.kind}`);{const le=!!(De||je||ze);for(Ue=y,st=D*Ue,ke=0;ke<j;ke++){for(ke>=N&&(Ue=A,st=D*Ue),he=0,Ae=st;Ae--;)be[he++]=ge[pe++],be[he++]=ge[pe++],be[he++]=ge[pe++],be[he++]=255;if(le)for(let Ee=0;Ee<he;Ee+=4)De&&(be[Ee+0]=De[be[Ee+0]]),je&&(be[Ee+1]=je[be[Ee+1]]),ze&&(be[Ee+2]=ze[be[Ee+2]]);X.putImageData(z,0,ke*y)}}}}function O(X,C){if(C.bitmap)return void X.drawImage(C.bitmap,0,0);const b=C.height,p=C.width,D=b%y,A=(b-D)/y,N=0===D?A:A+1,j=X.createImageData(p,y);let z=0;const pe=C.data,he=j.data;for(let ge=0;ge<N;ge++){const be=ge<A?y:D;({srcPos:z}=(0,Ve.applyMaskImageData)({src:pe,srcPos:z,dest:he,width:p,height:be})),X.putImageData(j,0,ge*y)}}function H(X,C){const b=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let p=0,D=b.length;p<D;p++){const A=b[p];void 0!==X[A]&&(C[A]=X[A])}void 0!==X.setLineDash&&(C.setLineDash(X.getLineDash()),C.lineDashOffset=X.lineDashOffset)}function Z(X,C){X.strokeStyle=X.fillStyle=C||"#000000",X.fillRule="nonzero",X.globalAlpha=1,X.lineWidth=1,X.lineCap="butt",X.lineJoin="miter",X.miterLimit=10,X.globalCompositeOperation="source-over",X.font="10px sans-serif",void 0!==X.setLineDash&&(X.setLineDash([]),X.lineDashOffset=0)}function L(X,C,b,p){const D=X.length;for(let A=3;A<D;A+=4){const N=X[A];if(0===N)X[A-3]=C,X[A-2]=b,X[A-1]=p;else if(N<255){const j=255-N;X[A-3]=X[A-3]*N+C*j>>8,X[A-2]=X[A-2]*N+b*j>>8,X[A-1]=X[A-1]*N+p*j>>8}}}function V(X,C,b){const p=X.length;for(let A=3;A<p;A+=4)C[A]=C[A]*(b?b[X[A]]:X[A])*.00392156862745098|0}function te(X,C,b){const p=X.length;for(let D=3;D<p;D+=4){const A=77*X[D-3]+152*X[D-2]+28*X[D-1];C[D]=b?C[D]*b[A>>8]>>8:C[D]*A>>16}}function we(X,C){const b=I.Util.singularValueDecompose2dScale(X);b[0]=Math.fround(b[0]),b[1]=Math.fround(b[1]);const p=Math.fround((globalThis.devicePixelRatio||1)*Me.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==C?C:b[0]<=p||b[1]<=p}const oe=["butt","round","square"],Se=["miter","round","bevel"],_e={},Ce={};class Be{constructor(C,b,p,D,A,N,j,z){this.ctx=C,this.current=new _(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=b,this.objs=p,this.canvasFactory=D,this.imageLayer=A,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=N,this.cachedCanvases=new P(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=j,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(null==z?void 0:z.background)||null,this.foregroundColor=(null==z?void 0:z.foreground)||null,C&&G(C),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(C,b=null){return"string"==typeof C?C.startsWith("g_")?this.commonObjs.get(C):this.objs.get(C):b}beginDrawing({transform:C,viewport:b,transparency:p=!1,background:D=null}){const A=this.ctx.canvas.width,N=this.ctx.canvas.height,j=D||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const z=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const pe=this.backgroundColor=this.ctx.fillStyle;let he=!0,ge=j;if(this.ctx.fillStyle=j,ge=this.ctx.fillStyle,he="string"==typeof ge&&/^#[0-9A-Fa-f]{6}$/.test(ge),"#000000"===z&&"#ffffff"===pe||z===pe||!he)this.foregroundColor=this.backgroundColor=null;else{const be=parseInt(ge.slice(1),16),Ae=(be&&65280)>>8,Ue=be&&255,st=je=>(je/=255)<=.03928?je/12.92:((je+.055)/1.055)**2.4,De=Math.round(.2126*st((be&&16711680)>>16)+.7152*st(Ae)+.0722*st(Ue));this.selectColor=(je,ze,q)=>{const le=.2126*st(je)+.7152*st(ze)+.0722*st(q);return Math.round(le)===De?pe:z}}}if(this.ctx.fillStyle=this.backgroundColor||j,this.ctx.fillRect(0,0,A,N),this.ctx.restore(),p){const z=this.cachedCanvases.getCanvas("transparent",A,N,!0);this.compositeCtx=this.ctx,this.transparentCanvas=z.canvas,this.ctx=z.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),Z(this.ctx,this.foregroundColor),C&&(this.ctx.transform.apply(this.ctx,C),this.outputScaleX=C[0],this.outputScaleY=C[0]),this.ctx.transform.apply(this.ctx,b.transform),this.viewportScale=b.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(C,b,p,D){const A=C.argsArray,N=C.fnArray;let j=b||0;const z=A.length;if(z===j)return j;const pe=z-j>10&&"function"==typeof p,he=pe?Date.now()+15:0;let ge=0;const be=this.commonObjs,ke=this.objs;let Ae;for(;;){if(void 0!==D&&j===D.nextBreakPoint)return D.breakIt(j,p),j;if(Ae=N[j],Ae!==I.OPS.dependency)this[Ae].apply(this,A[j]);else for(const Ue of A[j]){const st=Ue.startsWith("g_")?be:ke;if(!st.has(Ue))return st.get(Ue,p),j}if(j++,j===z)return j;if(pe&&++ge>10){if(Date.now()>he)return p(),j;ge=0}}}endDrawing(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const C of this._cachedBitmapsMap.values()){for(const b of C.values())"undefined"!=typeof HTMLCanvasElement&&b instanceof HTMLCanvasElement&&(b.width=b.height=0);C.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(C,b){const p=C.width,D=C.height;let he,ge,A=Math.max(Math.hypot(b[0],b[1]),1),N=Math.max(Math.hypot(b[2],b[3]),1),j=p,z=D,pe="prescale1";for(;A>2&&j>1||N>2&&z>1;){let be=j,ke=z;A>2&&j>1&&(be=Math.ceil(j/2),A/=j/be),N>2&&z>1&&(ke=Math.ceil(z/2),N/=z/ke),he=this.cachedCanvases.getCanvas(pe,be,ke,!1),ge=he.context,ge.clearRect(0,0,be,ke),ge.drawImage(C,0,0,j,z,0,0,be,ke),C=he.canvas,j=be,z=ke,pe="prescale1"===pe?"prescale2":"prescale1"}return{img:C,paintWidth:j,paintHeight:z}}_createMaskCanvas(C){const b=this.ctx,{width:p,height:D}=C,A=this.current.fillColor,N=this.current.patternFill,j=b.mozCurrentTransform;let z,pe,he,ge;if((C.bitmap||C.data)&&C.count>1){const Xe=C.bitmap||C.data.buffer,Ye=j.slice(0,4);pe=JSON.stringify(N?Ye:[Ye,A]),z=this._cachedBitmapsMap.get(Xe),z||(z=new Map,this._cachedBitmapsMap.set(Xe,z));const Ke=z.get(pe);if(Ke&&!N)return{canvas:Ke,offsetX:Math.round(Math.min(j[0],j[2])+j[4]),offsetY:Math.round(Math.min(j[1],j[3])+j[5])};he=Ke}he||(ge=this.cachedCanvases.getCanvas("maskCanvas",p,D,!1),O(ge.context,C));let be=I.Util.transform(j,[1/p,0,0,-1/D,0,0]);be=I.Util.transform(be,[1,0,0,1,0,-D]);const ke=I.Util.applyTransform([0,0],be),Ae=I.Util.applyTransform([p,D],be),Ue=I.Util.normalizeRect([ke[0],ke[1],Ae[0],Ae[1]]),st=Math.round(Ue[2]-Ue[0])||1,De=Math.round(Ue[3]-Ue[1])||1,je=this.cachedCanvases.getCanvas("fillCanvas",st,De,!0),ze=je.context,q=Math.min(ke[0],Ae[0]),le=Math.min(ke[1],Ae[1]);ze.translate(-q,-le),ze.transform.apply(ze,be),he||(he=this._scaleImage(ge.canvas,ze.mozCurrentTransformInverse),he=he.img,z&&N&&z.set(pe,he)),ze.imageSmoothingEnabled=we(ze.mozCurrentTransform,C.interpolate),F(ze,he,0,0,he.width,he.height,0,0,p,D),ze.globalCompositeOperation="source-in";const Ee=I.Util.transform(ze.mozCurrentTransformInverse,[1,0,0,1,-q,-le]);return ze.fillStyle=N?A.getPattern(b,this,Ee,J.PathType.FILL):A,ze.fillRect(0,0,p,D),z&&!N&&(this.cachedCanvases.delete("fillCanvas"),z.set(pe,je.canvas)),{canvas:je.canvas,offsetX:Math.round(q),offsetY:Math.round(le)}}setLineWidth(C){C!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=C,this.ctx.lineWidth=C}setLineCap(C){this.ctx.lineCap=oe[C]}setLineJoin(C){this.ctx.lineJoin=Se[C]}setMiterLimit(C){this.ctx.miterLimit=C}setDash(C,b){const p=this.ctx;void 0!==p.setLineDash&&(p.setLineDash(C),p.lineDashOffset=b)}setRenderingIntent(C){}setFlatness(C){}setGState(C){for(let b=0,p=C.length;b<p;b++){const D=C[b],N=D[1];switch(D[0]){case"LW":this.setLineWidth(N);break;case"LC":this.setLineCap(N);break;case"LJ":this.setLineJoin(N);break;case"ML":this.setMiterLimit(N);break;case"D":this.setDash(N[0],N[1]);break;case"RI":this.setRenderingIntent(N);break;case"FL":this.setFlatness(N);break;case"Font":this.setFont(N[0],N[1]);break;case"CA":this.current.strokeAlpha=D[1];break;case"ca":this.current.fillAlpha=D[1],this.ctx.globalAlpha=D[1];break;case"BM":this.ctx.globalCompositeOperation=N;break;case"SMask":this.current.activeSMask=N?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=N}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const C=this.inSMaskMode;this.current.activeSMask&&!C?this.beginSMaskMode():!this.current.activeSMask&&C&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const D=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,this.ctx.canvas.width,this.ctx.canvas.height,!0);this.suspendedCtx=this.ctx,this.ctx=D.context;const A=this.ctx;A.setTransform.apply(A,this.suspendedCtx.mozCurrentTransform),H(this.suspendedCtx,A),function M(X,C){if(X._removeMirroring)throw new Error("Context is already forwarding operations.");X.__originalSave=X.save,X.__originalRestore=X.restore,X.__originalRotate=X.rotate,X.__originalScale=X.scale,X.__originalTranslate=X.translate,X.__originalTransform=X.transform,X.__originalSetTransform=X.setTransform,X.__originalResetTransform=X.resetTransform,X.__originalClip=X.clip,X.__originalMoveTo=X.moveTo,X.__originalLineTo=X.lineTo,X.__originalBezierCurveTo=X.bezierCurveTo,X.__originalRect=X.rect,X.__originalClosePath=X.closePath,X.__originalBeginPath=X.beginPath,X._removeMirroring=()=>{X.save=X.__originalSave,X.restore=X.__originalRestore,X.rotate=X.__originalRotate,X.scale=X.__originalScale,X.translate=X.__originalTranslate,X.transform=X.__originalTransform,X.setTransform=X.__originalSetTransform,X.resetTransform=X.__originalResetTransform,X.clip=X.__originalClip,X.moveTo=X.__originalMoveTo,X.lineTo=X.__originalLineTo,X.bezierCurveTo=X.__originalBezierCurveTo,X.rect=X.__originalRect,X.closePath=X.__originalClosePath,X.beginPath=X.__originalBeginPath,delete X._removeMirroring},X.save=function(){C.save(),this.__originalSave()},X.restore=function(){C.restore(),this.__originalRestore()},X.translate=function(p,D){C.translate(p,D),this.__originalTranslate(p,D)},X.scale=function(p,D){C.scale(p,D),this.__originalScale(p,D)},X.transform=function(p,D,A,N,j,z){C.transform(p,D,A,N,j,z),this.__originalTransform(p,D,A,N,j,z)},X.setTransform=function(p,D,A,N,j,z){C.setTransform(p,D,A,N,j,z),this.__originalSetTransform(p,D,A,N,j,z)},X.resetTransform=function(){C.resetTransform(),this.__originalResetTransform()},X.rotate=function(p){C.rotate(p),this.__originalRotate(p)},X.clip=function(p){C.clip(p),this.__originalClip(p)},X.moveTo=function(b,p){C.moveTo(b,p),this.__originalMoveTo(b,p)},X.lineTo=function(b,p){C.lineTo(b,p),this.__originalLineTo(b,p)},X.bezierCurveTo=function(b,p,D,A,N,j){C.bezierCurveTo(b,p,D,A,N,j),this.__originalBezierCurveTo(b,p,D,A,N,j)},X.rect=function(b,p,D,A){C.rect(b,p,D,A),this.__originalRect(b,p,D,A)},X.closePath=function(){C.closePath(),this.__originalClosePath()},X.beginPath=function(){C.beginPath(),this.__originalBeginPath()}}(A,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),H(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(C){this.current.activeSMask&&(C?(C[0]=Math.floor(C[0]),C[1]=Math.floor(C[1]),C[2]=Math.ceil(C[2]),C[3]=Math.ceil(C[3])):C=[0,0,this.ctx.canvas.width,this.ctx.canvas.height],function fe(X,C,b,p){const D=p[0],A=p[1],N=p[2]-D,j=p[3]-A;0===N||0===j||(function ue(X,C,b,p,D,A,N,j,z,pe,he){const ge=!!A,be=ge?A[0]:0,ke=ge?A[1]:0,Ae=ge?A[2]:0;let Ue;Ue="Luminosity"===D?te:V;const De=Math.min(p,Math.ceil(1048576/b));for(let je=0;je<p;je+=De){const ze=Math.min(De,p-je),q=X.getImageData(j-pe,je+(z-he),b,ze),le=C.getImageData(j,je+z,b,ze);ge&&L(q.data,be,ke,Ae),Ue(q.data,le.data,N),C.putImageData(le,j,je+z)}}(C.context,b,N,j,C.subtype,C.backdrop,C.transferMap,D,A,C.offsetX,C.offsetY),X.save(),X.globalAlpha=1,X.globalCompositeOperation="source-over",X.setTransform(1,0,0,1,0,0),X.drawImage(b.canvas,0,0),X.restore())}(this.suspendedCtx,this.current.activeSMask,this.ctx,C),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}save(){this.inSMaskMode?(H(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const C=this.current;this.stateStack.push(C),this.current=C.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),H(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(C,b,p,D,A,N){this.ctx.transform(C,b,p,D,A,N),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(C,b,p){const D=this.ctx,A=this.current;let z,pe,N=A.x,j=A.y;const he=D.mozCurrentTransform,ge=0===he[0]&&0===he[3]||0===he[1]&&0===he[2],be=ge?p.slice(0):null;for(let ke=0,Ae=0,Ue=C.length;ke<Ue;ke++)switch(0|C[ke]){case I.OPS.rectangle:N=b[Ae++],j=b[Ae++];const st=b[Ae++],De=b[Ae++],je=N+st,ze=j+De;D.moveTo(N,j),0===st||0===De?D.lineTo(je,ze):(D.lineTo(je,j),D.lineTo(je,ze),D.lineTo(N,ze)),ge||A.updateRectMinMax(he,[N,j,je,ze]),D.closePath();break;case I.OPS.moveTo:N=b[Ae++],j=b[Ae++],D.moveTo(N,j),ge||A.updatePathMinMax(he,N,j);break;case I.OPS.lineTo:N=b[Ae++],j=b[Ae++],D.lineTo(N,j),ge||A.updatePathMinMax(he,N,j);break;case I.OPS.curveTo:z=N,pe=j,N=b[Ae+4],j=b[Ae+5],D.bezierCurveTo(b[Ae],b[Ae+1],b[Ae+2],b[Ae+3],N,j),A.updateCurvePathMinMax(he,z,pe,b[Ae],b[Ae+1],b[Ae+2],b[Ae+3],N,j,be),Ae+=6;break;case I.OPS.curveTo2:z=N,pe=j,D.bezierCurveTo(N,j,b[Ae],b[Ae+1],b[Ae+2],b[Ae+3]),A.updateCurvePathMinMax(he,z,pe,N,j,b[Ae],b[Ae+1],b[Ae+2],b[Ae+3],be),N=b[Ae+2],j=b[Ae+3],Ae+=4;break;case I.OPS.curveTo3:z=N,pe=j,N=b[Ae+2],j=b[Ae+3],D.bezierCurveTo(b[Ae],b[Ae+1],N,j,N,j),A.updateCurvePathMinMax(he,z,pe,b[Ae],b[Ae+1],N,j,N,j,be),Ae+=4;break;case I.OPS.closePath:D.closePath()}ge&&A.updateScalingPathMinMax(he,be),A.setCurrentPoint(N,j)}closePath(){this.ctx.closePath()}stroke(C){C=void 0===C||C;const b=this.ctx,p=this.current.strokeColor;b.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof p&&(null==p?void 0:p.getPattern)?(b.save(),b.strokeStyle=p.getPattern(b,this,b.mozCurrentTransformInverse,J.PathType.STROKE),this.rescaleAndStroke(!1),b.restore()):this.rescaleAndStroke(!0)),C&&this.consumePath(this.current.getClippedPathBoundingBox()),b.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(C){C=void 0===C||C;const b=this.ctx,p=this.current.fillColor;let A=!1;this.current.patternFill&&(b.save(),b.fillStyle=p.getPattern(b,this,b.mozCurrentTransformInverse,J.PathType.FILL),A=!0);const N=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==N&&(this.pendingEOFill?(b.fill("evenodd"),this.pendingEOFill=!1):b.fill()),A&&b.restore(),C&&this.consumePath(N)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=_e}eoClip(){this.pendingClip=Ce}beginText(){this.current.textMatrix=I.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const C=this.pendingTextPaths,b=this.ctx;if(void 0!==C){b.save(),b.beginPath();for(let p=0;p<C.length;p++){const D=C[p];b.setTransform.apply(b,D.transform),b.translate(D.x,D.y),D.addToPath(b,D.fontSize)}b.restore(),b.clip(),b.beginPath(),delete this.pendingTextPaths}else b.beginPath()}setCharSpacing(C){this.current.charSpacing=C}setWordSpacing(C){this.current.wordSpacing=C}setHScale(C){this.current.textHScale=C/100}setLeading(C){this.current.leading=-C}setFont(C,b){const p=this.commonObjs.get(C),D=this.current;if(!p)throw new Error(`Can't find font for ${C}`);if(D.fontMatrix=p.fontMatrix||I.FONT_IDENTITY_MATRIX,(0===D.fontMatrix[0]||0===D.fontMatrix[3])&&(0,I.warn)("Invalid font matrix for font "+C),b<0?(b=-b,D.fontDirection=-1):D.fontDirection=1,this.current.font=p,this.current.fontSize=b,p.isType3Font)return;let N="normal";p.black?N="900":p.bold&&(N="bold");const j=p.italic?"italic":"normal",z=`"${p.loadedName||"sans-serif"}", ${p.fallbackName}`;let pe=b;b<16?pe=16:b>100&&(pe=100),this.current.fontSizeScale=b/pe,this.ctx.font=`${j} ${N} ${pe}px ${z}`}setTextRenderingMode(C){this.current.textRenderingMode=C}setTextRise(C){this.current.textRise=C}moveText(C,b){this.current.x=this.current.lineX+=C,this.current.y=this.current.lineY+=b}setLeadingMoveText(C,b){this.setLeading(-b),this.moveText(C,b)}setTextMatrix(C,b,p,D,A,N){this.current.textMatrix=[C,b,p,D,A,N],this.current.textMatrixScale=Math.hypot(C,b),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(C,b,p,D){const A=this.ctx,N=this.current,j=N.font,z=N.textRenderingMode,pe=N.fontSize/N.fontSizeScale,he=z&I.TextRenderingMode.FILL_STROKE_MASK,ge=!!(z&I.TextRenderingMode.ADD_TO_PATH_FLAG),be=N.patternFill&&!j.missingFile;let ke;(j.disableFontFace||ge||be)&&(ke=j.getPathGenerator(this.commonObjs,C)),j.disableFontFace||be?(A.save(),A.translate(b,p),A.beginPath(),ke(A,pe),D&&A.setTransform.apply(A,D),(he===I.TextRenderingMode.FILL||he===I.TextRenderingMode.FILL_STROKE)&&A.fill(),(he===I.TextRenderingMode.STROKE||he===I.TextRenderingMode.FILL_STROKE)&&A.stroke(),A.restore()):((he===I.TextRenderingMode.FILL||he===I.TextRenderingMode.FILL_STROKE)&&A.fillText(C,b,p),(he===I.TextRenderingMode.STROKE||he===I.TextRenderingMode.FILL_STROKE)&&A.strokeText(C,b,p)),ge&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:A.mozCurrentTransform,x:b,y:p,fontSize:pe,addToPath:ke})}get isFontSubpixelAAEnabled(){const{context:C}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10,!1);C.scale(1.5,1),C.fillText("I",0,10);const b=C.getImageData(0,0,10,10).data;let p=!1;for(let D=3;D<b.length;D+=4)if(b[D]>0&&b[D]<255){p=!0;break}return(0,I.shadow)(this,"isFontSubpixelAAEnabled",p)}showText(C){const b=this.current,p=b.font;if(p.isType3Font)return this.showType3Text(C);const D=b.fontSize;if(0===D)return;const A=this.ctx,N=b.fontSizeScale,j=b.charSpacing,z=b.wordSpacing,pe=b.fontDirection,he=b.textHScale*pe,ge=C.length,be=p.vertical,ke=be?1:-1,Ae=p.defaultVMetrics,Ue=D*b.fontMatrix[0],st=b.textRenderingMode===I.TextRenderingMode.FILL&&!p.disableFontFace&&!b.patternFill;let De;if(A.save(),A.transform.apply(A,b.textMatrix),A.translate(b.x,b.y+b.textRise),A.scale(he,pe>0?-1:1),b.patternFill){A.save();const Ee=b.fillColor.getPattern(A,this,A.mozCurrentTransformInverse,J.PathType.FILL);De=A.mozCurrentTransform,A.restore(),A.fillStyle=Ee}let je=b.lineWidth;const ze=b.textMatrixScale;if(0===ze||0===je){const Ee=b.textRenderingMode&I.TextRenderingMode.FILL_STROKE_MASK;(Ee===I.TextRenderingMode.STROKE||Ee===I.TextRenderingMode.FILL_STROKE)&&(je=this.getSinglePixelWidth())}else je/=ze;1!==N&&(A.scale(N,N),je/=N),A.lineWidth=je;let le,q=0;for(le=0;le<ge;++le){const Ee=C[le];if("number"==typeof Ee){q+=ke*Ee*D/1e3;continue}let Xe=!1;const Ye=(Ee.isSpace?z:0)+j,Ke=Ee.fontChar,ut=Ee.accent;let pt,Vt,Tn,ln=Ee.width;if(be){const Ne=Ee.vmetric||Ae,ae=-(Ee.vmetric?Ne[1]:.5*ln)*Ue;ln=Ne?-Ne[0]:ln,pt=ae/N,Vt=(q+Ne[2]*Ue)/N}else pt=q/N,Vt=0;if(p.remeasure&&ln>0){const Ne=1e3*A.measureText(Ke).width/D*N;if(ln<Ne&&this.isFontSubpixelAAEnabled){const ae=ln/Ne;Xe=!0,A.save(),A.scale(ae,1),pt/=ae}else ln!==Ne&&(pt+=(ln-Ne)/2e3*D/N)}this.contentVisible&&(Ee.isInFont||p.missingFile)&&(st&&!ut?A.fillText(Ke,pt,Vt):(this.paintChar(Ke,pt,Vt,De),ut&&this.paintChar(ut.fontChar,pt+D*ut.offset.x/N,Vt-D*ut.offset.y/N,De))),Tn=be?ln*Ue-Ye*pe:ln*Ue+Ye*pe,q+=Tn,Xe&&A.restore()}be?b.y-=q:b.x+=q*he,A.restore(),this.compose()}showType3Text(C){const b=this.ctx,p=this.current,D=p.font,A=p.fontSize,N=p.fontDirection,j=D.vertical?1:-1,z=p.charSpacing,pe=p.wordSpacing,he=p.textHScale*N,ge=p.fontMatrix||I.FONT_IDENTITY_MATRIX,be=C.length;let Ae,Ue,st,De;if(p.textRenderingMode!==I.TextRenderingMode.INVISIBLE&&0!==A){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,b.save(),b.transform.apply(b,p.textMatrix),b.translate(p.x,p.y),b.scale(he,N),Ae=0;Ae<be;++Ae){if(Ue=C[Ae],"number"==typeof Ue){De=j*Ue*A/1e3,this.ctx.translate(De,0),p.x+=De*he;continue}const je=(Ue.isSpace?pe:0)+z,ze=D.charProcOperatorList[Ue.operatorListId];ze?(this.contentVisible&&(this.processingType3=Ue,this.save(),b.scale(A,A),b.transform.apply(b,ge),this.executeOperatorList(ze),this.restore()),st=I.Util.applyTransform([Ue.width,0],ge)[0]*A+je,b.translate(st,0),p.x+=st*he):(0,I.warn)(`Type3 character "${Ue.operatorListId}" is not available.`)}b.restore(),this.processingType3=null}}setCharWidth(C,b){}setCharWidthAndBounds(C,b,p,D,A,N){this.ctx.rect(p,D,A-p,N-D),this.ctx.clip(),this.endPath()}getColorN_Pattern(C){let b;if("TilingPattern"===C[0]){const p=C[1],D=this.baseTransform||this.ctx.mozCurrentTransform.slice();b=new J.TilingPattern(C,p,this.ctx,{createCanvasGraphics:N=>new Be(N,this.commonObjs,this.objs,this.canvasFactory)},D)}else b=this._getPattern(C[1],C[2]);return b}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(C,b,p){var A;const D=(null==(A=this.selectColor)?void 0:A.call(this,C,b,p))||I.Util.makeHexColor(C,b,p);this.ctx.strokeStyle=D,this.current.strokeColor=D}setFillRGBColor(C,b,p){var A;const D=(null==(A=this.selectColor)?void 0:A.call(this,C,b,p))||I.Util.makeHexColor(C,b,p);this.ctx.fillStyle=D,this.current.fillColor=D,this.current.patternFill=!1}_getPattern(C,b=null){let p;return this.cachedPatterns.has(C)?p=this.cachedPatterns.get(C):(p=(0,J.getShadingPattern)(this.objs.get(C)),this.cachedPatterns.set(C,p)),b&&(p.matrix=b),p}shadingFill(C){if(!this.contentVisible)return;const b=this.ctx;this.save();const p=this._getPattern(C);b.fillStyle=p.getPattern(b,this,b.mozCurrentTransformInverse,J.PathType.SHADING);const D=b.mozCurrentTransformInverse;if(D){const A=b.canvas,N=A.width,j=A.height,z=I.Util.applyTransform([0,0],D),pe=I.Util.applyTransform([0,j],D),he=I.Util.applyTransform([N,0],D),ge=I.Util.applyTransform([N,j],D),be=Math.min(z[0],pe[0],he[0],ge[0]),ke=Math.min(z[1],pe[1],he[1],ge[1]),Ae=Math.max(z[0],pe[0],he[0],ge[0]),Ue=Math.max(z[1],pe[1],he[1],ge[1]);this.ctx.fillRect(be,ke,Ae-be,Ue-ke)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,I.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,I.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(C,b){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(C)&&6===C.length&&this.transform.apply(this,C),this.baseTransform=this.ctx.mozCurrentTransform,b)&&(this.ctx.rect(b[0],b[1],b[2]-b[0],b[3]-b[1]),this.current.updateRectMinMax(this.ctx.mozCurrentTransform,b),this.clip(),this.endPath())}paintFormXObjectEnd(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(C){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const b=this.ctx;C.isolated||(0,I.info)("TODO: Support non-isolated groups."),C.knockout&&(0,I.warn)("Knockout groups not supported.");const p=b.mozCurrentTransform;if(C.matrix&&b.transform.apply(b,C.matrix),!C.bbox)throw new Error("Bounding box is required.");let D=I.Util.getAxialAlignedBoundingBox(C.bbox,b.mozCurrentTransform);D=I.Util.intersect(D,[0,0,b.canvas.width,b.canvas.height])||[0,0,0,0];const N=Math.floor(D[0]),j=Math.floor(D[1]);let z=Math.max(Math.ceil(D[2])-N,1),pe=Math.max(Math.ceil(D[3])-j,1),he=1,ge=1;z>Q&&(he=z/Q,z=Q),pe>Q&&(ge=pe/Q,pe=Q),this.current.startNewPathAndClipBox([0,0,z,pe]);let be="groupAt"+this.groupLevel;C.smask&&(be+="_smask_"+this.smaskCounter++%2);const ke=this.cachedCanvases.getCanvas(be,z,pe,!0),Ae=ke.context;Ae.scale(1/he,1/ge),Ae.translate(-N,-j),Ae.transform.apply(Ae,p),C.smask?this.smaskStack.push({canvas:ke.canvas,context:Ae,offsetX:N,offsetY:j,scaleX:he,scaleY:ge,subtype:C.smask.subtype,backdrop:C.smask.backdrop,transferMap:C.smask.transferMap||null,startTransformInverse:null}):(b.setTransform(1,0,0,1,0,0),b.translate(N,j),b.scale(he,ge),b.save()),H(b,Ae),this.ctx=Ae,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(b),this.groupLevel++}endGroup(C){if(!this.contentVisible)return;this.groupLevel--;const b=this.ctx,p=this.groupStack.pop();if(this.ctx=p,this.ctx.imageSmoothingEnabled=!1,C.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const D=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,D);const A=I.Util.getAxialAlignedBoundingBox([0,0,b.canvas.width,b.canvas.height],D);this.ctx.drawImage(b.canvas,0,0),this.ctx.restore(),this.compose(A)}}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(C,b,p,D,A){if(this.save(),Array.isArray(b)&&4===b.length){const N=b[2]-b[0],j=b[3]-b[1];if(A&&this.annotationCanvasMap){(p=p.slice())[4]-=b[0],p[5]-=b[1],(b=b.slice())[0]=b[1]=0,b[2]=N,b[3]=j;const[z,pe]=I.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:he}=this,ge=Math.ceil(N*this.outputScaleX*he),be=Math.ceil(j*this.outputScaleY*he);this.annotationCanvas=this.canvasFactory.create(ge,be);const{canvas:ke,context:Ae}=this.annotationCanvas,Ue=`var(--zoom-factor) * ${Me.PixelsPerInch.PDF_TO_CSS_UNITS}`;ke.style.width=`calc(${N}px * ${Ue})`,ke.style.height=`calc(${j}px * ${Ue})`,this.annotationCanvasMap.set(C,ke),this.annotationCanvas.savedCtx=this.ctx,this.ctx=Ae,this.ctx.setTransform(z,0,0,-pe,0,j*pe),G(this.ctx),Z(this.ctx,this.foregroundColor)}else Z(this.ctx,this.foregroundColor),this.ctx.rect(b[0],b[1],N,j),this.ctx.clip(),this.endPath()}this.current=new _(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,p),this.transform.apply(this,D)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}paintImageMaskXObject(C){if(!this.contentVisible)return;const b=C.count;(C=this.getObject(C.data,C)).count=b;const p=this.ctx,D=this.processingType3;if(D&&(void 0===D.compiled&&(D.compiled=function m(X){const{width:C,height:b}=X;if(C>1e3||b>1e3)return null;const D=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),A=C+1;let j,z,pe,N=new Uint8Array(A*(b+1));const he=C+7&-8;let ge=new Uint8Array(he*b),be=0;for(const ze of X.data){let q=128;for(;q>0;)ge[be++]=ze&q?0:255,q>>=1}let ke=0;for(be=0,0!==ge[be]&&(N[0]=1,++ke),z=1;z<C;z++)ge[be]!==ge[be+1]&&(N[z]=ge[be]?2:1,++ke),be++;for(0!==ge[be]&&(N[z]=2,++ke),j=1;j<b;j++){be=j*he,pe=j*A,ge[be-he]!==ge[be]&&(N[pe]=ge[be]?1:8,++ke);let ze=(ge[be]?4:0)+(ge[be-he]?8:0);for(z=1;z<C;z++)ze=(ze>>2)+(ge[be+1]?4:0)+(ge[be-he+1]?8:0),D[ze]&&(N[pe+z]=D[ze],++ke),be++;if(ge[be-he]!==ge[be]&&(N[pe+z]=ge[be]?2:4,++ke),ke>1e3)return null}for(be=he*(b-1),pe=j*A,0!==ge[be]&&(N[pe]=8,++ke),z=1;z<C;z++)ge[be]!==ge[be+1]&&(N[pe+z]=ge[be]?4:8,++ke),be++;if(0!==ge[be]&&(N[pe+z]=4,++ke),ke>1e3)return null;const Ae=new Int32Array([0,A,-1,0,-A,0,0,0,1]);let Ue,st,De;for(Te.isNodeJS?st=[]:Ue=new Path2D,j=0;ke&&j<=b;j++){let ze=j*A;const q=ze+C;for(;ze<q&&!N[ze];)ze++;if(ze===q)continue;Ue?Ue.moveTo(ze%A,j):De=[ze%A,j];const le=ze;let Ee=N[ze];do{const Xe=Ae[Ee];do{ze+=Xe}while(!N[ze]);const Ye=N[ze];5!==Ye&&10!==Ye?(Ee=Ye,N[ze]=0):(Ee=Ye&51*Ee>>4,N[ze]&=Ee>>2|Ee<<2),Ue?Ue.lineTo(ze%A,ze/A|0):De.push(ze%A,ze/A|0),N[ze]||--ke}while(le!==ze);Ue||st.push(De),--j}return ge=null,N=null,function(ze){if(ze.save(),ze.scale(1/C,-1/b),ze.translate(0,-b),Ue)ze.fill(Ue);else{ze.beginPath();for(const q of st){ze.moveTo(q[0],q[1]);for(let le=2,Ee=q.length;le<Ee;le+=2)ze.lineTo(q[le],q[le+1])}ze.fill()}ze.beginPath(),ze.restore()}}(C)),D.compiled))return void D.compiled(p);const A=this._createMaskCanvas(C),N=A.canvas;p.save(),p.setTransform(1,0,0,1,0,0),p.drawImage(N,A.offsetX,A.offsetY),p.restore(),this.compose()}paintImageMaskXObjectRepeat(C,b,p=0,D=0,A,N){if(!this.contentVisible)return;C=this.getObject(C.data,C);const j=this.ctx;j.save();const z=j.mozCurrentTransform;j.transform(b,p,D,A,0,0);const pe=this._createMaskCanvas(C);j.setTransform(1,0,0,1,0,0);for(let he=0,ge=N.length;he<ge;he+=2){const be=I.Util.transform(z,[b,p,D,A,N[he],N[he+1]]),[ke,Ae]=I.Util.applyTransform([0,0],be);j.drawImage(pe.canvas,ke,Ae)}j.restore(),this.compose()}paintImageMaskXObjectGroup(C){if(!this.contentVisible)return;const b=this.ctx,p=this.current.fillColor,D=this.current.patternFill;for(let A=0,N=C.length;A<N;A++){const j=C[A],z=j.width,pe=j.height,he=this.cachedCanvases.getCanvas("maskCanvas",z,pe,!1),ge=he.context;ge.save(),O(ge,j),ge.globalCompositeOperation="source-in",ge.fillStyle=D?p.getPattern(ge,this,b.mozCurrentTransformInverse,J.PathType.FILL):p,ge.fillRect(0,0,z,pe),ge.restore(),b.save(),b.transform.apply(b,j.transform),b.scale(1,-1),F(b,he.canvas,0,0,z,pe,0,-1,1,1),b.restore()}this.compose()}paintImageXObject(C){if(!this.contentVisible)return;const b=this.getObject(C);b?this.paintInlineImageXObject(b):(0,I.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(C,b,p,D){if(!this.contentVisible)return;const A=this.getObject(C);if(!A)return void(0,I.warn)("Dependent image isn't ready yet");const N=A.width,j=A.height,z=[];for(let pe=0,he=D.length;pe<he;pe+=2)z.push({transform:[b,0,0,p,D[pe],D[pe+1]],x:0,y:0,w:N,h:j});this.paintInlineImageXObjectGroup(A,z)}paintInlineImageXObject(C){if(!this.contentVisible)return;const b=C.width,p=C.height,D=this.ctx;let A;if(this.save(),D.scale(1/b,-1/p),"function"==typeof HTMLElement&&C instanceof HTMLElement||!C.data)A=C;else{const pe=this.cachedCanvases.getCanvas("inlineImage",b,p,!1);k(pe.context,C,this.current.transferMaps),A=pe.canvas}const N=this._scaleImage(A,D.mozCurrentTransformInverse);D.imageSmoothingEnabled=we(D.mozCurrentTransform,C.interpolate);const[j,z]=F(D,N.img,0,0,N.paintWidth,N.paintHeight,0,-p,b,p);if(this.imageLayer){const pe=this.getCanvasPosition(0,-p);this.imageLayer.appendImage({imgData:C,left:pe[0],top:pe[1],width:j,height:z})}this.compose(),this.restore()}paintInlineImageXObjectGroup(C,b){if(!this.contentVisible)return;const p=this.ctx,D=C.width,A=C.height,N=this.cachedCanvases.getCanvas("inlineImage",D,A,!1);k(N.context,C,this.current.transferMaps);for(let z=0,pe=b.length;z<pe;z++){const he=b[z];if(p.save(),p.transform.apply(p,he.transform),p.scale(1,-1),F(p,N.canvas,he.x,he.y,he.w,he.h,0,-1,1,1),this.imageLayer){const ge=this.getCanvasPosition(he.x,he.y);this.imageLayer.appendImage({imgData:C,left:ge[0],top:ge[1],width:D,height:A})}p.restore()}this.compose()}paintSolidColorImageMask(){!this.contentVisible||(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(C){}markPointProps(C,b){}beginMarkedContent(C){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(C,b){this.markedContentStack.push("OC"===C?{visible:this.optionalContentConfig.isVisible(b)}:{visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(C){const b=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(C);const p=this.ctx;this.pendingClip&&(b||(this.pendingClip===Ce?p.clip("evenodd"):p.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),p.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const C=this.ctx.mozCurrentTransform;if(0===C[1]&&0===C[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(C[0]),Math.abs(C[3]));else{const b=Math.abs(C[0]*C[3]-C[2]*C[1]),p=Math.hypot(C[0],C[2]),D=Math.hypot(C[1],C[3]);this._cachedGetSinglePixelWidth=Math.max(p,D)/b}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:C}=this.current,b=this.ctx.mozCurrentTransform;let p,D;if(0===b[1]&&0===b[2]){const A=Math.abs(b[0]),N=Math.abs(b[3]);if(0===C)p=1/A,D=1/N;else{const j=A*C,z=N*C;p=j<1?1/j:1,D=z<1?1/z:1}}else{const A=Math.abs(b[0]*b[3]-b[2]*b[1]),N=Math.hypot(b[0],b[1]),j=Math.hypot(b[2],b[3]);if(0===C)p=j/A,D=N/A;else{const z=C*A;p=j>z?j/z:1,D=N>z?N/z:1}}this._cachedScaleForStroking=[p,D]}return this._cachedScaleForStroking}rescaleAndStroke(C){const{ctx:b}=this,{lineWidth:p}=this.current,[D,A]=this.getScaleForStroking();if(b.lineWidth=p||1,1===D&&1===A)return void b.stroke();let N,j,z;C&&(N=b.mozCurrentTransform.slice(),j=b.getLineDash().slice(),z=b.lineDashOffset),b.scale(D,A);const pe=Math.max(D,A);b.setLineDash(b.getLineDash().map(he=>he/pe)),b.lineDashOffset/=pe,b.stroke(),C&&(b.setTransform(...N),b.setLineDash(j),b.lineDashOffset=z)}getCanvasPosition(C,b){const p=this.ctx.mozCurrentTransform;return[p[0]*C+p[2]*b+p[4],p[1]*C+p[3]*b+p[5]]}isContentVisible(){for(let C=this.markedContentStack.length-1;C>=0;C--)if(!this.markedContentStack[C].visible)return!1;return!0}}re.CanvasGraphics=Be;for(const X in I.OPS)void 0!==Be.prototype[X]&&(Be.prototype[I.OPS[X]]=Be.prototype[X])},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.TilingPattern=re.PathType=void 0,re.getShadingPattern=function U(g){switch(g[0]){case"RadialAxial":return new ce(g);case"Mesh":return new T(g);case"Dummy":return new W}throw new Error(`Unknown IR type: ${g[0]}`)};var I=He(1),J=He(3);const Ve={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function Te(g,M){if(!M||J.isNodeJS)return;const G=M[2]-M[0],P=M[3]-M[1],F=new Path2D;F.rect(M[0],M[1],G,P),g.clip(F)}re.PathType=Ve;class Me{constructor(){this.constructor===Me&&(0,I.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,I.unreachable)("Abstract method `getPattern` called.")}}class ce extends Me{constructor(M){super(),this._type=M[1],this._bbox=M[2],this._colorStops=M[3],this._p0=M[4],this._p1=M[5],this._r0=M[6],this._r1=M[7],this.matrix=null}_createGradient(M){let G;"axial"===this._type?G=M.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(G=M.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const P of this._colorStops)G.addColorStop(P[0],P[1]);return G}getPattern(M,G,P,F){let m;if(F===Ve.STROKE||F===Ve.FILL){const _=G.current.getClippedPathBoundingBox(F,M.mozCurrentTransform)||[0,0,0,0],k=Math.ceil(_[2]-_[0])||1,O=Math.ceil(_[3]-_[1])||1,H=G.cachedCanvases.getCanvas("pattern",k,O,!0),Z=H.context;Z.clearRect(0,0,Z.canvas.width,Z.canvas.height),Z.beginPath(),Z.rect(0,0,Z.canvas.width,Z.canvas.height),Z.translate(-_[0],-_[1]),P=I.Util.transform(P,[1,0,0,1,_[0],_[1]]),Z.transform.apply(Z,G.baseTransform),this.matrix&&Z.transform.apply(Z,this.matrix),Te(Z,this._bbox),Z.fillStyle=this._createGradient(Z),Z.fill(),m=M.createPattern(H.canvas,"no-repeat");const L=new DOMMatrix(P);try{m.setTransform(L)}catch(V){(0,I.warn)(`RadialAxialShadingPattern.getPattern: "${null==V?void 0:V.message}".`)}}else Te(M,this._bbox),m=this._createGradient(M);return m}}function E(g,M,G,P,F,m,_,k){const O=M.coords,H=M.colors,Z=g.data,L=4*g.width;let V;O[G+1]>O[P+1]&&(V=G,G=P,P=V,V=m,m=_,_=V),O[P+1]>O[F+1]&&(V=P,P=F,F=V,V=_,_=k,k=V),O[G+1]>O[P+1]&&(V=G,G=P,P=V,V=m,m=_,_=V);const te=(O[G]+M.offsetX)*M.scaleX,ue=(O[G+1]+M.offsetY)*M.scaleY,fe=(O[P]+M.offsetX)*M.scaleX,we=(O[P+1]+M.offsetY)*M.scaleY,oe=(O[F]+M.offsetX)*M.scaleX,Se=(O[F+1]+M.offsetY)*M.scaleY;if(ue>=Se)return;const _e=H[m],Ce=H[m+1],Be=H[m+2],X=H[_],C=H[_+1],b=H[_+2],p=H[k],D=H[k+1],A=H[k+2],N=Math.round(ue),j=Math.round(Se);let z,pe,he,ge,be,ke,Ae,Ue;for(let st=N;st<=j;st++){if(st<we){let le;le=st<ue?0:(ue-st)/(ue-we),z=te-(te-fe)*le,pe=_e-(_e-X)*le,he=Ce-(Ce-C)*le,ge=Be-(Be-b)*le}else{let le;le=st>Se?1:we===Se?0:(we-st)/(we-Se),z=fe-(fe-oe)*le,pe=X-(X-p)*le,he=C-(C-D)*le,ge=b-(b-A)*le}let De;De=st<ue?0:st>Se?1:(ue-st)/(ue-Se),be=te-(te-oe)*De,ke=_e-(_e-p)*De,Ae=Ce-(Ce-D)*De,Ue=Be-(Be-A)*De;const je=Math.round(Math.min(z,be)),ze=Math.round(Math.max(z,be));let q=L*st+4*je;for(let le=je;le<=ze;le++)De=(z-le)/(z-be),De<0?De=0:De>1&&(De=1),Z[q++]=pe-(pe-ke)*De|0,Z[q++]=he-(he-Ae)*De|0,Z[q++]=ge-(ge-Ue)*De|0,Z[q++]=255}}function Q(g,M,G){const P=M.coords,F=M.colors;let m,_;switch(M.type){case"lattice":const k=M.verticesPerRow,O=Math.floor(P.length/k)-1,H=k-1;for(m=0;m<O;m++){let Z=m*k;for(let L=0;L<H;L++,Z++)E(g,G,P[Z],P[Z+1],P[Z+k],F[Z],F[Z+1],F[Z+k]),E(g,G,P[Z+k+1],P[Z+1],P[Z+k],F[Z+k+1],F[Z+1],F[Z+k])}break;case"triangles":for(m=0,_=P.length;m<_;m+=3)E(g,G,P[m],P[m+1],P[m+2],F[m],F[m+1],F[m+2]);break;default:throw new Error("illegal figure")}}class T extends Me{constructor(M){super(),this._coords=M[2],this._colors=M[3],this._figures=M[4],this._bounds=M[5],this._bbox=M[7],this._background=M[8],this.matrix=null}_createMeshCanvas(M,G,P){const k=Math.floor(this._bounds[0]),O=Math.floor(this._bounds[1]),H=Math.ceil(this._bounds[2])-k,Z=Math.ceil(this._bounds[3])-O,L=Math.min(Math.ceil(Math.abs(H*M[0]*1.1)),3e3),V=Math.min(Math.ceil(Math.abs(Z*M[1]*1.1)),3e3),te=H/L,ue=Z/V,fe={coords:this._coords,colors:this._colors,offsetX:-k,offsetY:-O,scaleX:1/te,scaleY:1/ue},Se=P.getCanvas("mesh",L+4,V+4,!1),_e=Se.context,Ce=_e.createImageData(L,V);if(G){const X=Ce.data;for(let C=0,b=X.length;C<b;C+=4)X[C]=G[0],X[C+1]=G[1],X[C+2]=G[2],X[C+3]=255}for(const X of this._figures)Q(Ce,X,fe);return _e.putImageData(Ce,2,2),{canvas:Se.canvas,offsetX:k-2*te,offsetY:O-2*ue,scaleX:te,scaleY:ue}}getPattern(M,G,P,F){let m;if(Te(M,this._bbox),F===Ve.SHADING)m=I.Util.singularValueDecompose2dScale(M.mozCurrentTransform);else if(m=I.Util.singularValueDecompose2dScale(G.baseTransform),this.matrix){const k=I.Util.singularValueDecompose2dScale(this.matrix);m=[m[0]*k[0],m[1]*k[1]]}const _=this._createMeshCanvas(m,F===Ve.SHADING?null:this._background,G.cachedCanvases);return F!==Ve.SHADING&&(M.setTransform.apply(M,G.baseTransform),this.matrix&&M.transform.apply(M,this.matrix)),M.translate(_.offsetX,_.offsetY),M.scale(_.scaleX,_.scaleY),M.createPattern(_.canvas,"no-repeat")}}class W extends Me{getPattern(){return"hotpink"}}class y{static get MAX_PATTERN_SIZE(){return(0,I.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(M,G,P,F,m){this.operatorList=M[2],this.matrix=M[3]||[1,0,0,1,0,0],this.bbox=M[4],this.xstep=M[5],this.ystep=M[6],this.paintType=M[7],this.tilingType=M[8],this.color=G,this.ctx=P,this.canvasGraphicsFactory=F,this.baseTransform=m}createPatternCanvas(M){const G=this.operatorList,P=this.bbox,F=this.xstep,m=this.ystep,_=this.paintType,O=this.color,H=this.canvasGraphicsFactory;(0,I.info)("TilingType: "+this.tilingType);const Z=P[0],L=P[1],V=P[2],te=P[3],ue=I.Util.singularValueDecompose2dScale(this.matrix),fe=I.Util.singularValueDecompose2dScale(this.baseTransform),we=[ue[0]*fe[0],ue[1]*fe[1]],oe=this.getSizeAndScale(F,this.ctx.canvas.width,we[0]),Se=this.getSizeAndScale(m,this.ctx.canvas.height,we[1]),_e=M.cachedCanvases.getCanvas("pattern",oe.size,Se.size,!0),Ce=_e.context,Be=H.createCanvasGraphics(Ce);Be.groupLevel=M.groupLevel,this.setFillAndStrokeStyleToContext(Be,_,O);let X=Z,C=L,b=V,p=te;return Z<0&&(X=0,b+=Math.abs(Z)),L<0&&(C=0,p+=Math.abs(L)),Ce.translate(-oe.scale*X,-Se.scale*C),Be.transform(oe.scale,0,0,Se.scale,0,0),Ce.save(),this.clipBbox(Be,X,C,b,p),Be.baseTransform=Be.ctx.mozCurrentTransform.slice(),Be.executeOperatorList(G),Be.endDrawing(),{canvas:_e.canvas,scaleX:oe.scale,scaleY:Se.scale,offsetX:X,offsetY:C}}getSizeAndScale(M,G,P){M=Math.abs(M);const F=Math.max(y.MAX_PATTERN_SIZE,G);let m=Math.ceil(M*P);return m>=F?m=F:P=m/M,{scale:P,size:m}}clipBbox(M,G,P,F,m){M.ctx.rect(G,P,F-G,m-P),M.current.updateRectMinMax(M.ctx.mozCurrentTransform,[G,P,F,m]),M.clip(),M.endPath()}setFillAndStrokeStyleToContext(M,G,P){const F=M.ctx,m=M.current;switch(G){case 1:const _=this.ctx;F.fillStyle=_.fillStyle,F.strokeStyle=_.strokeStyle,m.fillColor=_.fillStyle,m.strokeColor=_.strokeStyle;break;case 2:const k=I.Util.makeHexColor(P[0],P[1],P[2]);F.fillStyle=k,F.strokeStyle=k,m.fillColor=k,m.strokeColor=k;break;default:throw new I.FormatError(`Unsupported paint type: ${G}`)}}getPattern(M,G,P,F){let m=P;F!==Ve.SHADING&&(m=I.Util.transform(m,G.baseTransform),this.matrix&&(m=I.Util.transform(m,this.matrix)));const _=this.createPatternCanvas(G);let k=new DOMMatrix(m);k=k.translate(_.offsetX,_.offsetY),k=k.scale(1/_.scaleX,1/_.scaleY);const O=M.createPattern(_.canvas,"repeat");try{O.setTransform(k)}catch(H){(0,I.warn)(`TilingPattern.getPattern: "${null==H?void 0:H.message}".`)}return O}}re.TilingPattern=y},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.applyMaskImageData=function J({src:Ve,srcPos:Te=0,dest:Me,destPos:ce=0,width:E,height:Q,inverseDecode:T=!1}){const W=I.FeatureTest.isLittleEndian?4278190080:255,[U,S]=T?[0,W]:[W,0],y=E>>3,g=7&E,M=Ve.length;Me=new Uint32Array(Me.buffer);for(let G=0;G<Q;G++){for(const F=Te+y;Te<F;Te++){const m=Te<M?Ve[Te]:255;Me[ce++]=128&m?S:U,Me[ce++]=64&m?S:U,Me[ce++]=32&m?S:U,Me[ce++]=16&m?S:U,Me[ce++]=8&m?S:U,Me[ce++]=4&m?S:U,Me[ce++]=2&m?S:U,Me[ce++]=1&m?S:U}if(0===g)continue;const P=Te<M?Ve[Te++]:255;for(let F=0;F<g;F++)Me[ce++]=P&1<<7-F?S:U}return{srcPos:Te,destPos:ce}};var I=He(1)},(Ze,re)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.GlobalWorkerOptions=void 0;const He=Object.create(null);re.GlobalWorkerOptions=He,He.workerPort=void 0===He.workerPort?null:He.workerPort,He.workerSrc=void 0===He.workerSrc?"":He.workerSrc},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.MessageHandler=void 0;var I=He(1);function Te(ce){switch(ce instanceof Error||"object"==typeof ce&&null!==ce||(0,I.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),ce.name){case"AbortException":return new I.AbortException(ce.message);case"MissingPDFException":return new I.MissingPDFException(ce.message);case"PasswordException":return new I.PasswordException(ce.message,ce.code);case"UnexpectedResponseException":return new I.UnexpectedResponseException(ce.message,ce.status);case"UnknownErrorException":return new I.UnknownErrorException(ce.message,ce.details);default:return new I.UnknownErrorException(ce.message,ce.toString())}}re.MessageHandler=class Me{constructor(E,Q,T){this.sourceName=E,this.targetName=Q,this.comObj=T,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=W=>{const U=W.data;if(U.targetName!==this.sourceName)return;if(U.stream)return void this._processStreamMessage(U);if(U.callback){const y=U.callbackId,g=this.callbackCapabilities[y];if(!g)throw new Error(`Cannot resolve callback ${y}`);if(delete this.callbackCapabilities[y],1===U.callback)g.resolve(U.data);else{if(2!==U.callback)throw new Error("Unexpected callback case");g.reject(Te(U.reason))}return}const S=this.actionHandler[U.action];if(!S)throw new Error(`Unknown action from worker: ${U.action}`);if(U.callbackId){const y=this.sourceName,g=U.sourceName;new Promise(function(M){M(S(U.data))}).then(function(M){T.postMessage({sourceName:y,targetName:g,callback:1,callbackId:U.callbackId,data:M})},function(M){T.postMessage({sourceName:y,targetName:g,callback:2,callbackId:U.callbackId,reason:Te(M)})})}else U.streamId?this._createStreamSink(U):S(U.data)},T.addEventListener("message",this._onComObjOnMessage)}on(E,Q){const T=this.actionHandler;if(T[E])throw new Error(`There is already an actionName called "${E}"`);T[E]=Q}send(E,Q,T){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:E,data:Q},T)}sendWithPromise(E,Q,T){const W=this.callbackId++,U=(0,I.createPromiseCapability)();this.callbackCapabilities[W]=U;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:E,callbackId:W,data:Q},T)}catch(S){U.reject(S)}return U.promise}sendWithStream(E,Q,T,W){const U=this.streamId++,S=this.sourceName,y=this.targetName,g=this.comObj;return new ReadableStream({start:M=>{const G=(0,I.createPromiseCapability)();return this.streamControllers[U]={controller:M,startCall:G,pullCall:null,cancelCall:null,isClosed:!1},g.postMessage({sourceName:S,targetName:y,action:E,streamId:U,data:Q,desiredSize:M.desiredSize},W),G.promise},pull:M=>{const G=(0,I.createPromiseCapability)();return this.streamControllers[U].pullCall=G,g.postMessage({sourceName:S,targetName:y,stream:6,streamId:U,desiredSize:M.desiredSize}),G.promise},cancel:M=>{(0,I.assert)(M instanceof Error,"cancel must have a valid reason");const G=(0,I.createPromiseCapability)();return this.streamControllers[U].cancelCall=G,this.streamControllers[U].isClosed=!0,g.postMessage({sourceName:S,targetName:y,stream:1,streamId:U,reason:Te(M)}),G.promise}},T)}_createStreamSink(E){const Q=E.streamId,T=this.sourceName,W=E.sourceName,U=this.comObj,S=this,y=this.actionHandler[E.action],g={enqueue(M,G=1,P){if(this.isCancelled)return;const F=this.desiredSize;this.desiredSize-=G,F>0&&this.desiredSize<=0&&(this.sinkCapability=(0,I.createPromiseCapability)(),this.ready=this.sinkCapability.promise),U.postMessage({sourceName:T,targetName:W,stream:4,streamId:Q,chunk:M},P)},close(){this.isCancelled||(this.isCancelled=!0,U.postMessage({sourceName:T,targetName:W,stream:3,streamId:Q}),delete S.streamSinks[Q])},error(M){(0,I.assert)(M instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,U.postMessage({sourceName:T,targetName:W,stream:5,streamId:Q,reason:Te(M)}))},sinkCapability:(0,I.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:E.desiredSize,ready:null};g.sinkCapability.resolve(),g.ready=g.sinkCapability.promise,this.streamSinks[Q]=g,new Promise(function(M){M(y(E.data,g))}).then(function(){U.postMessage({sourceName:T,targetName:W,stream:8,streamId:Q,success:!0})},function(M){U.postMessage({sourceName:T,targetName:W,stream:8,streamId:Q,reason:Te(M)})})}_processStreamMessage(E){const Q=E.streamId,T=this.sourceName,W=E.sourceName,U=this.comObj,S=this.streamControllers[Q],y=this.streamSinks[Q];switch(E.stream){case 8:E.success?S.startCall.resolve():S.startCall.reject(Te(E.reason));break;case 7:E.success?S.pullCall.resolve():S.pullCall.reject(Te(E.reason));break;case 6:if(!y){U.postMessage({sourceName:T,targetName:W,stream:7,streamId:Q,success:!0});break}y.desiredSize<=0&&E.desiredSize>0&&y.sinkCapability.resolve(),y.desiredSize=E.desiredSize,new Promise(function(g){g(y.onPull&&y.onPull())}).then(function(){U.postMessage({sourceName:T,targetName:W,stream:7,streamId:Q,success:!0})},function(g){U.postMessage({sourceName:T,targetName:W,stream:7,streamId:Q,reason:Te(g)})});break;case 4:if((0,I.assert)(S,"enqueue should have stream controller"),S.isClosed)break;S.controller.enqueue(E.chunk);break;case 3:if((0,I.assert)(S,"close should have stream controller"),S.isClosed)break;S.isClosed=!0,S.controller.close(),this._deleteStreamController(S,Q);break;case 5:(0,I.assert)(S,"error should have stream controller"),S.controller.error(Te(E.reason)),this._deleteStreamController(S,Q);break;case 2:E.success?S.cancelCall.resolve():S.cancelCall.reject(Te(E.reason)),this._deleteStreamController(S,Q);break;case 1:if(!y)break;new Promise(function(g){g(y.onCancel&&y.onCancel(Te(E.reason)))}).then(function(){U.postMessage({sourceName:T,targetName:W,stream:2,streamId:Q,success:!0})},function(g){U.postMessage({sourceName:T,targetName:W,stream:2,streamId:Q,reason:Te(g)})}),y.sinkCapability.reject(Te(E.reason)),y.isCancelled=!0,delete this.streamSinks[Q];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(E,Q){var T=this;return _asyncToGenerator(function*(){yield Promise.allSettled([E.startCall&&E.startCall.promise,E.pullCall&&E.pullCall.promise,E.cancelCall&&E.cancelCall.promise]),delete T.streamControllers[Q]})()}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(Ze,re,He)=>{var Ve,Te;Object.defineProperty(re,"__esModule",{value:!0}),re.Metadata=void 0;var I=He(1);Ve=new WeakMap,Te=new WeakMap,re.Metadata=class J{constructor({parsedData:ce,rawData:E}){Gt(this,Ve,void 0),Gt(this,Te,void 0),Fi(this,Ve,ce),Fi(this,Te,E)}getRaw(){return Rt(this,Te)}get(ce){var E;return null!=(E=Rt(this,Ve).get(ce))?E:null}getAll(){return(0,I.objectFromMap)(Rt(this,Ve))}has(ce){return Rt(this,Ve).has(ce)}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.OptionalContentConfig=void 0;var I=He(1);class J{constructor(Me,ce){this.visible=!0,this.name=Me,this.intent=ce}}re.OptionalContentConfig=class Ve{constructor(Me){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==Me){this.name=Me.name,this.creator=Me.creator,this._order=Me.order;for(const ce of Me.groups)this._groups.set(ce.id,new J(ce.name,ce.intent));if("OFF"===Me.baseState)for(const ce of this._groups)ce.visible=!1;for(const ce of Me.on)this._groups.get(ce).visible=!0;for(const ce of Me.off)this._groups.get(ce).visible=!1}}_evaluateVisibilityExpression(Me){const ce=Me.length;if(ce<2)return!0;const E=Me[0];for(let Q=1;Q<ce;Q++){const T=Me[Q];let W;if(Array.isArray(T))W=this._evaluateVisibilityExpression(T);else{if(!this._groups.has(T))return(0,I.warn)(`Optional content group not found: ${T}`),!0;W=this._groups.get(T).visible}switch(E){case"And":if(!W)return!1;break;case"Or":if(W)return!0;break;case"Not":return!W;default:return!0}}return"And"===E}isVisible(Me){if(0===this._groups.size)return!0;if(!Me)return(0,I.warn)("Optional content group not defined."),!0;if("OCG"===Me.type)return this._groups.has(Me.id)?this._groups.get(Me.id).visible:((0,I.warn)(`Optional content group not found: ${Me.id}`),!0);if("OCMD"===Me.type){if(Me.expression)return this._evaluateVisibilityExpression(Me.expression);if(!Me.policy||"AnyOn"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(this._groups.get(ce).visible)return!0}return!1}if("AllOn"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(!this._groups.get(ce).visible)return!1}return!0}if("AnyOff"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(!this._groups.get(ce).visible)return!0}return!1}if("AllOff"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(this._groups.get(ce).visible)return!1}return!0}return(0,I.warn)(`Unknown optional content policy ${Me.policy}.`),!0}return(0,I.warn)(`Unknown group type ${Me.type}.`),!0}setVisibility(Me,ce=!0){this._groups.has(Me)?this._groups.get(Me).visible=!!ce:(0,I.warn)(`Optional content group not found: ${Me}`)}getOrder(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){return this._groups.size>0?(0,I.objectFromMap)(this._groups):null}getGroup(Me){return this._groups.get(Me)||null}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFDataTransportStream=void 0;var I=He(1),J=He(5);re.PDFDataTransportStream=class Ve{constructor(E,Q){(0,I.assert)(Q,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=E.progressiveDone||!1,this._contentDispositionFilename=E.contentDispositionFilename||null;const T=E.initialData;if((null==T?void 0:T.length)>0){const W=new Uint8Array(T).buffer;this._queuedChunks.push(W)}this._pdfDataRangeTransport=Q,this._isStreamingSupported=!E.disableStream,this._isRangeSupported=!E.disableRange,this._contentLength=E.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((W,U)=>{this._onReceiveData({begin:W,chunk:U})}),this._pdfDataRangeTransport.addProgressListener((W,U)=>{this._onProgress({loaded:W,total:U})}),this._pdfDataRangeTransport.addProgressiveReadListener(W=>{this._onReceiveData({chunk:W})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(E){const Q=new Uint8Array(E.chunk).buffer;if(void 0===E.begin)this._fullRequestReader?this._fullRequestReader._enqueue(Q):this._queuedChunks.push(Q);else{const T=this._rangeReaders.some(function(W){return W._begin===E.begin&&(W._enqueue(Q),!0)});(0,I.assert)(T,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var E,Q;return null!=(Q=null==(E=this._fullRequestReader)?void 0:E._loaded)?Q:0}_onProgress(E){if(void 0===E.total){const Q=this._rangeReaders[0];null!=Q&&Q.onProgress&&Q.onProgress({loaded:E.loaded})}else{const Q=this._fullRequestReader;null!=Q&&Q.onProgress&&Q.onProgress({loaded:E.loaded,total:E.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(E){const Q=this._rangeReaders.indexOf(E);Q>=0&&this._rangeReaders.splice(Q,1)}getFullReader(){(0,I.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const E=this._queuedChunks;return this._queuedChunks=null,new Te(this,E,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(E,Q){if(Q<=this._progressiveDataLength)return null;const T=new Me(this,E,Q);return this._pdfDataRangeTransport.requestDataRange(E,Q),this._rangeReaders.push(T),T}cancelAllRequests(E){this._fullRequestReader&&this._fullRequestReader.cancel(E);for(const Q of this._rangeReaders.slice(0))Q.cancel(E);this._pdfDataRangeTransport.abort()}};class Te{constructor(E,Q,T=!1,W=null){this._stream=E,this._done=T||!1,this._filename=(0,J.isPdfFile)(W)?W:null,this._queuedChunks=Q||[],this._loaded=0;for(const U of this._queuedChunks)this._loaded+=U.byteLength;this._requests=[],this._headersReady=Promise.resolve(),E._fullRequestReader=this,this.onProgress=null}_enqueue(E){this._done||(this._requests.length>0?this._requests.shift().resolve({value:E,done:!1}):this._queuedChunks.push(E),this._loaded+=E.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var E=this;return _asyncToGenerator(function*(){if(E._queuedChunks.length>0)return{value:E._queuedChunks.shift(),done:!1};if(E._done)return{value:void 0,done:!0};const Q=(0,I.createPromiseCapability)();return E._requests.push(Q),Q.promise})()}cancel(E){this._done=!0;for(const Q of this._requests)Q.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Me{constructor(E,Q,T){this._stream=E,this._begin=Q,this._end=T,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(E){if(!this._done){if(0===this._requests.length)this._queuedChunk=E;else{this._requests.shift().resolve({value:E,done:!1});for(const T of this._requests)T.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var E=this;return _asyncToGenerator(function*(){if(E._queuedChunk){const T=E._queuedChunk;return E._queuedChunk=null,{value:T,done:!1}}if(E._done)return{value:void 0,done:!0};const Q=(0,I.createPromiseCapability)();return E._requests.push(Q),Q.promise})()}cancel(E){this._done=!0;for(const Q of this._requests)Q.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(Ze,re)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.XfaText=void 0;class He{static textContent(J){const Ve=[],Te={items:Ve,styles:Object.create(null)};return function Me(ce){var T;if(!ce)return;let E=null;const Q=ce.name;if("#text"===Q)E=ce.value;else{if(!He.shouldBuildText(Q))return;null!=(T=null==ce?void 0:ce.attributes)&&T.textContent?E=ce.attributes.textContent:ce.value&&(E=ce.value)}if(null!==E&&Ve.push({str:E}),ce.children)for(const W of ce.children)Me(W)}(J),Te}static shouldBuildText(J){return!("textarea"===J||"input"===J||"option"===J||"select"===J)}}re.XfaText=He},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.NodeStandardFontDataFactory=re.NodeCanvasFactory=re.NodeCMapReaderFactory=void 0;var I=He(6);const J=function(ce){return new Promise((E,Q)=>{__webpack_require__(172).readFile(ce,(W,U)=>{!W&&U?E(new Uint8Array(U)):Q(new Error(W))})})};re.NodeCanvasFactory=class Ve extends I.BaseCanvasFactory{_createCanvas(E,Q){return __webpack_require__(3414).createCanvas(E,Q)}},re.NodeCMapReaderFactory=class Te extends I.BaseCMapReaderFactory{_fetchData(E,Q){return J(E).then(T=>({cMapData:T,compressionType:Q}))}},re.NodeStandardFontDataFactory=class Me extends I.BaseStandardFontDataFactory{_fetchData(E){return J(E)}}},(Ze,re,He)=>{var X,U1;Object.defineProperty(re,"__esModule",{value:!0}),re.AnnotationLayer=void 0;var I=He(1),J=He(5),Ve=He(8),Te=He(21),Me=He(22);const E=new WeakSet;function Q(b){return{width:b[2]-b[0],height:b[3]-b[1]}}class T{static create(p){switch(p.data.annotationType){case I.AnnotationType.LINK:return new U(p);case I.AnnotationType.TEXT:return new S(p);case I.AnnotationType.WIDGET:switch(p.data.fieldType){case"Tx":return new g(p);case"Btn":return p.data.radioButton?new G(p):p.data.checkBox?new M(p):new P(p);case"Ch":return new F(p)}return new y(p);case I.AnnotationType.POPUP:return new m(p);case I.AnnotationType.FREETEXT:return new k(p);case I.AnnotationType.LINE:return new O(p);case I.AnnotationType.SQUARE:return new H(p);case I.AnnotationType.CIRCLE:return new Z(p);case I.AnnotationType.POLYLINE:return new L(p);case I.AnnotationType.CARET:return new te(p);case I.AnnotationType.INK:return new ue(p);case I.AnnotationType.POLYGON:return new V(p);case I.AnnotationType.HIGHLIGHT:return new fe(p);case I.AnnotationType.UNDERLINE:return new we(p);case I.AnnotationType.SQUIGGLY:return new oe(p);case I.AnnotationType.STRIKEOUT:return new Se(p);case I.AnnotationType.STAMP:return new _e(p);case I.AnnotationType.FILEATTACHMENT:return new Ce(p);default:return new W(p)}}}class W{constructor(p,{isRenderable:D=!1,ignoreBorder:A=!1,createQuadrilaterals:N=!1}={}){this.isRenderable=D,this.data=p.data,this.layer=p.layer,this.page=p.page,this.viewport=p.viewport,this.linkService=p.linkService,this.downloadManager=p.downloadManager,this.imageResourcesPath=p.imageResourcesPath,this.renderForms=p.renderForms,this.svgFactory=p.svgFactory,this.annotationStorage=p.annotationStorage,this.enableScripting=p.enableScripting,this.hasJSActions=p.hasJSActions,this._fieldObjects=p.fieldObjects,this._mouseState=p.mouseState,D&&(this.container=this._createContainer(A)),N&&(this.quadrilaterals=this._createQuadrilaterals(A))}_createContainer(p=!1){const D=this.data,A=this.page,N=this.viewport,j=document.createElement("section");let{width:z,height:pe}=Q(D.rect);j.setAttribute("data-annotation-id",D.id);const he=I.Util.normalizeRect([D.rect[0],A.view[3]-D.rect[1]+A.view[1],D.rect[2],A.view[3]-D.rect[3]+A.view[1]]);if(D.hasOwnCanvas){const ge=N.transform.slice(),[be,ke]=I.Util.singularValueDecompose2dScale(ge);z=Math.ceil(z*be),pe=Math.ceil(pe*ke),he[0]*=be,he[1]*=ke;for(let Ae=0;Ae<4;Ae++)ge[Ae]=Math.sign(ge[Ae]);j.style.transform=`matrix(${ge.join(",")})`}else j.style.transform=`matrix(${N.transform.join(",")})`;if(j.style.transformOrigin=`${-he[0]}px ${-he[1]}px`,!p&&D.borderStyle.width>0){j.style.borderWidth=`${D.borderStyle.width}px`,D.borderStyle.style!==I.AnnotationBorderStyleType.UNDERLINE&&(z-=2*D.borderStyle.width,pe-=2*D.borderStyle.width);const ge=D.borderStyle.horizontalCornerRadius,be=D.borderStyle.verticalCornerRadius;switch((ge>0||be>0)&&(j.style.borderRadius=`${ge}px / ${be}px`),D.borderStyle.style){case I.AnnotationBorderStyleType.SOLID:j.style.borderStyle="solid";break;case I.AnnotationBorderStyleType.DASHED:j.style.borderStyle="dashed";break;case I.AnnotationBorderStyleType.BEVELED:(0,I.warn)("Unimplemented border style: beveled");break;case I.AnnotationBorderStyleType.INSET:(0,I.warn)("Unimplemented border style: inset");break;case I.AnnotationBorderStyleType.UNDERLINE:j.style.borderBottomStyle="solid"}D.borderColor||D.color?j.style.borderColor=I.Util.makeHexColor(0|D.color[0],0|D.color[1],0|D.color[2]):j.style.borderWidth=0}return j.style.left=`${he[0]}px`,j.style.top=`${he[1]}px`,D.hasOwnCanvas?j.style.width=j.style.height="auto":(j.style.width=`${z}px`,j.style.height=`${pe}px`),j}get _commonActions(){const p=(D,A,N)=>{const j=N.detail[D];N.target.style[A]=Te.ColorConverters[`${j[0]}_HTML`](j.slice(1))};return(0,I.shadow)(this,"_commonActions",{display:D=>{const A=D.detail.display%2==1;D.target.style.visibility=A?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:A,print:0===D.detail.display||3===D.detail.display})},print:D=>{this.annotationStorage.setValue(this.data.id,{print:D.detail.print})},hidden:D=>{D.target.style.visibility=D.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:D.detail.hidden})},focus:D=>{setTimeout(()=>D.target.focus({preventScroll:!1}),0)},userName:D=>{D.target.title=D.detail.userName},readonly:D=>{D.detail.readonly?D.target.setAttribute("readonly",""):D.target.removeAttribute("readonly")},required:D=>{D.detail.required?D.target.setAttribute("required",""):D.target.removeAttribute("required")},bgColor:D=>{p("bgColor","backgroundColor",D)},fillColor:D=>{p("fillColor","backgroundColor",D)},fgColor:D=>{p("fgColor","color",D)},textColor:D=>{p("textColor","color",D)},borderColor:D=>{p("borderColor","borderColor",D)},strokeColor:D=>{p("strokeColor","borderColor",D)}})}_dispatchEventFromSandbox(p,D){const A=this._commonActions;for(const N of Object.keys(D.detail)){const j=p[N]||A[N];j&&j(D)}}_setDefaultPropertiesFromJS(p){if(!this.enableScripting)return;const D=this.annotationStorage.getRawValue(this.data.id);if(!D)return;const A=this._commonActions;for(const[N,j]of Object.entries(D)){const z=A[N];z&&(z({detail:j,target:p}),delete D[N])}}_createQuadrilaterals(p=!1){if(!this.data.quadPoints)return null;const D=[],A=this.data.rect;for(const N of this.data.quadPoints)this.data.rect=[N[2].x,N[2].y,N[1].x,N[1].y],D.push(this._createContainer(p));return this.data.rect=A,D}_createPopup(p,D){let A=this.container;this.quadrilaterals&&(p=p||this.quadrilaterals,A=this.quadrilaterals[0]),p||((p=document.createElement("div")).style.height=A.style.height,p.style.width=A.style.width,A.appendChild(p));const j=new _({container:A,trigger:p,color:D.color,titleObj:D.titleObj,modificationDate:D.modificationDate,contentsObj:D.contentsObj,richText:D.richText,hideWrapper:!0}).render();j.style.left=A.style.width,A.appendChild(j)}_renderQuadrilaterals(p){for(const D of this.quadrilaterals)D.className=p;return this.quadrilaterals}render(){(0,I.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(p,D=null){const A=[];if(this._fieldObjects){const N=this._fieldObjects[p];if(N)for(const{page:j,id:z,exportValues:pe}of N){if(-1===j||z===D)continue;const he="string"==typeof pe?pe:null,ge=document.getElementById(z);!ge||E.has(ge)?A.push({id:z,exportValue:he,domElement:ge}):(0,I.warn)(`_getElementsByName - element not allowed: ${z}`)}return A}for(const N of document.getElementsByName(p)){const{id:j,exportValue:z}=N;j!==D&&(!E.has(N)||A.push({id:j,exportValue:z,domElement:N}))}return A}static get platform(){const p="undefined"!=typeof navigator?navigator.platform:"";return(0,I.shadow)(this,"platform",{isWin:p.includes("Win"),isMac:p.includes("Mac")})}}class U extends W{constructor(p,D=null){super(p,{isRenderable:!!(p.data.url||p.data.dest||p.data.action||p.data.isTooltipOnly||p.data.resetForm||p.data.actions&&(p.data.actions.Action||p.data.actions["Mouse Up"]||p.data.actions["Mouse Down"])),ignoreBorder:!(null==D||!D.ignoreBorder),createQuadrilaterals:!0})}render(){const{data:p,linkService:D}=this,A=document.createElement("a");if(p.url)D.addLinkAttributes(A,p.url,p.newWindow);else if(p.action)this._bindNamedAction(A,p.action);else if(p.dest)this._bindLink(A,p.dest);else{let N=!1;p.actions&&(p.actions.Action||p.actions["Mouse Up"]||p.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(N=!0,this._bindJSAction(A,p)),p.resetForm?this._bindResetFormAction(A,p.resetForm):N||this._bindLink(A,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((N,j)=>{const z=0===j?A:A.cloneNode();return N.appendChild(z),N}):(this.container.className="linkAnnotation",this.container.appendChild(A),this.container)}_bindLink(p,D){p.href=this.linkService.getDestinationHash(D),p.onclick=()=>(D&&this.linkService.goToDestination(D),!1),(D||""===D)&&(p.className="internalLink")}_bindNamedAction(p,D){p.href=this.linkService.getAnchorUrl(""),p.onclick=()=>(this.linkService.executeNamedAction(D),!1),p.className="internalLink"}_bindJSAction(p,D){p.href=this.linkService.getAnchorUrl("");const A=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const N of Object.keys(D.actions)){const j=A.get(N);!j||(p[j]=()=>{var z;return null==(z=this.linkService.eventBus)||z.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D.id,name:N}}),!1})}p.onclick||(p.onclick=()=>!1),p.className="internalLink"}_bindResetFormAction(p,D){const A=p.onclick;if(A||(p.href=this.linkService.getAnchorUrl("")),p.className="internalLink",!this._fieldObjects)return(0,I.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(A||(p.onclick=()=>!1));p.onclick=()=>{var be;A&&A();const{fields:N,refs:j,include:z}=D,pe=[];if(0!==N.length||0!==j.length){const ke=new Set(j);for(const Ae of N){const Ue=this._fieldObjects[Ae]||[];for(const{id:st}of Ue)ke.add(st)}for(const Ae of Object.values(this._fieldObjects))for(const Ue of Ae)ke.has(Ue.id)===z&&pe.push(Ue)}else for(const ke of Object.values(this._fieldObjects))pe.push(...ke);const he=this.annotationStorage,ge=[];for(const ke of pe){const{id:Ae}=ke;switch(ge.push(Ae),ke.type){case"text":case"combobox":case"listbox":he.setValue(Ae,{value:ke.defaultValue||""});break;case"checkbox":case"radiobutton":he.setValue(Ae,{value:ke.defaultValue===ke.exportValues});break;default:continue}const Ue=document.getElementById(Ae);!Ue||!E.has(Ue)||Ue.dispatchEvent(new Event("resetform"))}return this.enableScripting&&(null==(be=this.linkService.eventBus)||be.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:ge,name:"ResetForm"}})),!1}}}class S extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str))})}render(){this.container.className="textAnnotation";const p=document.createElement("img");return p.style.height=this.container.style.height,p.style.width=this.container.style.width,p.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",p.alt="[{{type}} Annotation]",p.dataset.l10nId="text_annotation_type",p.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(p,this.data),this.container.appendChild(p),this.container}}class y extends W{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(p){const{isWin:D,isMac:A}=W.platform;return D&&p.ctrlKey||A&&p.metaKey}_setEventListener(p,D,A,N){D.includes("mouse")?p.addEventListener(D,j=>{var z;null==(z=this.linkService.eventBus)||z.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:A,value:N(j),shift:j.shiftKey,modifier:this._getKeyModifier(j)}})}):p.addEventListener(D,j=>{var z;null==(z=this.linkService.eventBus)||z.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:A,value:N(j)}})})}_setEventListeners(p,D,A){var N;for(const[j,z]of D)("Action"===z||(null==(N=this.data.actions)?void 0:N[z]))&&this._setEventListener(p,j,z,A)}_setBackgroundColor(p){const D=this.data.backgroundColor||null;p.style.backgroundColor=null===D?"transparent":I.Util.makeHexColor(D[0],D[1],D[2])}}class g extends y{constructor(p){super(p,{isRenderable:p.renderForms||!p.data.hasAppearance&&!!p.data.fieldValue})}setPropertyOnSiblings(p,D,A,N){const j=this.annotationStorage;for(const z of this._getElementsByName(p.name,p.id))z.domElement&&(z.domElement[D]=A),j.setValue(z.id,{[N]:A})}render(){var N;const p=this.annotationStorage,D=this.data.id;this.container.className="textWidgetAnnotation";let A=null;if(this.renderForms){const j=p.getValue(D,{value:this.data.fieldValue}),z=j.formattedValue||j.value||"",pe={userValue:null,formattedValue:null,valueOnFocus:""};this.data.multiLine?(A=document.createElement("textarea"),A.textContent=z):(A=document.createElement("input"),A.type="text",A.setAttribute("value",z)),E.add(A),A.disabled=this.data.readOnly,A.name=this.data.fieldName,A.tabIndex=1e3,pe.userValue=z,A.setAttribute("id",D),A.addEventListener("input",ge=>{p.setValue(D,{value:ge.target.value}),this.setPropertyOnSiblings(A,"value",ge.target.value,"value")}),A.addEventListener("resetform",ge=>{var ke;const be=null!=(ke=this.data.defaultFieldValue)?ke:"";A.value=pe.userValue=be,pe.formattedValue=null});let he=ge=>{const{formattedValue:be}=pe;null!=be&&(ge.target.value=be),ge.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){A.addEventListener("focus",be=>{pe.userValue&&(be.target.value=pe.userValue),pe.valueOnFocus=be.target.value}),A.addEventListener("updatefromsandbox",be=>{this._dispatchEventFromSandbox({value(Ae){var Ue;pe.userValue=null!=(Ue=Ae.detail.value)?Ue:"",p.setValue(D,{value:pe.userValue.toString()}),Ae.target.value=pe.userValue},formattedValue(Ae){const{formattedValue:Ue}=Ae.detail;pe.formattedValue=Ue,null!=Ue&&Ae.target!==document.activeElement&&(Ae.target.value=Ue),p.setValue(D,{formattedValue:Ue})},selRange(Ae){Ae.target.setSelectionRange(...Ae.detail.selRange)}},be)}),A.addEventListener("keydown",be=>{var Ue;let ke=-1;if("Escape"===be.key?ke=0:"Enter"===be.key?ke=2:"Tab"===be.key&&(ke=3),-1===ke)return;const{value:Ae}=be.target;pe.valueOnFocus!==Ae&&(pe.userValue=Ae,null==(Ue=this.linkService.eventBus)||Ue.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:Ae,willCommit:!0,commitKey:ke,selStart:be.target.selectionStart,selEnd:be.target.selectionEnd}}))});const ge=he;he=null,A.addEventListener("blur",be=>{var Ae;const{value:ke}=be.target;pe.userValue=ke,this._mouseState.isDown&&pe.valueOnFocus!==ke&&(null==(Ae=this.linkService.eventBus)||Ae.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:ke,willCommit:!0,commitKey:1,selStart:be.target.selectionStart,selEnd:be.target.selectionEnd}})),ge(be)}),null!=(N=this.data.actions)&&N.Keystroke&&A.addEventListener("beforeinput",be=>{var q;const{data:ke,target:Ae}=be,{value:Ue,selectionStart:st,selectionEnd:De}=Ae;let je=st,ze=De;switch(be.inputType){case"deleteWordBackward":{const le=Ue.substring(0,st).match(/\w*[^\w]*$/);le&&(je-=le[0].length);break}case"deleteWordForward":{const le=Ue.substring(st).match(/^[^\w]*\w*/);le&&(ze+=le[0].length);break}case"deleteContentBackward":st===De&&(je-=1);break;case"deleteContentForward":st===De&&(ze+=1)}be.preventDefault(),null==(q=this.linkService.eventBus)||q.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:Ue,change:ke||"",willCommit:!1,selStart:je,selEnd:ze}})}),this._setEventListeners(A,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],be=>be.target.value)}if(he&&A.addEventListener("blur",he),null!==this.data.maxLen&&(A.maxLength=this.data.maxLen),this.data.comb){const be=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;A.classList.add("comb"),A.style.letterSpacing=`calc(${be}px - 1ch)`}}else A=document.createElement("div"),A.textContent=this.data.fieldValue,A.style.verticalAlign="middle",A.style.display="table-cell";return this._setTextStyle(A),this._setBackgroundColor(A),this._setDefaultPropertiesFromJS(A),this.container.appendChild(A),this.container}_setTextStyle(p){const{fontSize:A,fontColor:N}=this.data.defaultAppearanceData,j=p.style;A&&(j.fontSize=`${A}px`),j.color=I.Util.makeHexColor(N[0],N[1],N[2]),null!==this.data.textAlignment&&(j.textAlign=["left","center","right"][this.data.textAlignment])}}class M extends y{constructor(p){super(p,{isRenderable:p.renderForms})}render(){const p=this.annotationStorage,D=this.data,A=D.id;let N=p.getValue(A,{value:D.exportValue===D.fieldValue}).value;"string"==typeof N&&(N="Off"!==N,p.setValue(A,{value:N})),this.container.className="buttonWidgetAnnotation checkBox";const j=document.createElement("input");return E.add(j),j.disabled=D.readOnly,j.type="checkbox",j.name=D.fieldName,N&&j.setAttribute("checked",!0),j.setAttribute("id",A),j.setAttribute("exportValue",D.exportValue),j.tabIndex=1e3,j.addEventListener("change",z=>{const{name:pe,checked:he}=z.target;for(const ge of this._getElementsByName(pe,A)){const be=he&&ge.exportValue===D.exportValue;ge.domElement&&(ge.domElement.checked=be),p.setValue(ge.id,{value:be})}p.setValue(A,{value:he})}),j.addEventListener("resetform",z=>{z.target.checked=(D.defaultFieldValue||"Off")===D.exportValue}),this.enableScripting&&this.hasJSActions&&(j.addEventListener("updatefromsandbox",z=>{this._dispatchEventFromSandbox({value(he){he.target.checked="Off"!==he.detail.value,p.setValue(A,{value:he.target.checked})}},z)}),this._setEventListeners(j,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],z=>z.target.checked)),this._setBackgroundColor(j),this._setDefaultPropertiesFromJS(j),this.container.appendChild(j),this.container}}class G extends y{constructor(p){super(p,{isRenderable:p.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const p=this.annotationStorage,D=this.data,A=D.id;let N=p.getValue(A,{value:D.fieldValue===D.buttonValue}).value;"string"==typeof N&&(N=N!==D.buttonValue,p.setValue(A,{value:N}));const j=document.createElement("input");if(E.add(j),j.disabled=D.readOnly,j.type="radio",j.name=D.fieldName,N&&j.setAttribute("checked",!0),j.setAttribute("id",A),j.tabIndex=1e3,j.addEventListener("change",z=>{const{name:pe,checked:he}=z.target;for(const ge of this._getElementsByName(pe,A))p.setValue(ge.id,{value:!1});p.setValue(A,{value:he})}),j.addEventListener("resetform",z=>{const pe=D.defaultFieldValue;z.target.checked=null!=pe&&pe===D.buttonValue}),this.enableScripting&&this.hasJSActions){const z=D.buttonValue;j.addEventListener("updatefromsandbox",pe=>{this._dispatchEventFromSandbox({value:ge=>{const be=z===ge.detail.value;for(const ke of this._getElementsByName(ge.target.name)){const Ae=be&&ke.id===A;ke.domElement&&(ke.domElement.checked=Ae),p.setValue(ke.id,{value:Ae})}}},pe)}),this._setEventListeners(j,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],pe=>pe.target.checked)}return this._setBackgroundColor(j),this._setDefaultPropertiesFromJS(j),this.container.appendChild(j),this.container}}class P extends U{constructor(p){super(p,{ignoreBorder:p.data.hasAppearance})}render(){const p=super.render();return p.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(p.title=this.data.alternativeText),this._setDefaultPropertiesFromJS(p),p}}class F extends y{constructor(p){super(p,{isRenderable:p.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const p=this.annotationStorage,D=this.data.id,A=p.getValue(D,{value:this.data.fieldValue});let{fontSize:N}=this.data.defaultAppearanceData;N||(N=9);const j=`calc(${N}px * var(--zoom-factor))`,z=document.createElement("select");E.add(z),z.disabled=this.data.readOnly,z.name=this.data.fieldName,z.setAttribute("id",D),z.tabIndex=1e3,z.style.fontSize=`${N}px`,this.data.combo||(z.size=this.data.options.length,this.data.multiSelect&&(z.multiple=!0)),z.addEventListener("resetform",ge=>{const be=this.data.defaultFieldValue;for(const ke of z.options)ke.selected=ke.value===be});for(const ge of this.data.options){const be=document.createElement("option");be.textContent=ge.displayValue,be.value=ge.exportValue,this.data.combo&&(be.style.fontSize=j),A.value.includes(ge.exportValue)&&be.setAttribute("selected",!0),z.appendChild(be)}const pe=(ge,be)=>{const ke=be?"value":"textContent",Ae=ge.target.options;return ge.target.multiple?Array.prototype.filter.call(Ae,Ue=>Ue.selected).map(Ue=>Ue[ke]):-1===Ae.selectedIndex?null:Ae[Ae.selectedIndex][ke]},he=ge=>Array.prototype.map.call(ge.target.options,ke=>({displayValue:ke.textContent,exportValue:ke.value}));return this.enableScripting&&this.hasJSActions?(z.addEventListener("updatefromsandbox",ge=>{this._dispatchEventFromSandbox({value(ke){const Ae=ke.detail.value,Ue=new Set(Array.isArray(Ae)?Ae:[Ae]);for(const st of z.options)st.selected=Ue.has(st.value);p.setValue(D,{value:pe(ke,!0)})},multipleSelection(ke){z.multiple=!0},remove(ke){const Ae=z.options,Ue=ke.detail.remove;Ae[Ue].selected=!1,z.remove(Ue),Ae.length>0&&-1===Array.prototype.findIndex.call(Ae,De=>De.selected)&&(Ae[0].selected=!0),p.setValue(D,{value:pe(ke,!0),items:he(ke)})},clear(ke){for(;0!==z.length;)z.remove(0);p.setValue(D,{value:null,items:[]})},insert(ke){const{index:Ae,displayValue:Ue,exportValue:st}=ke.detail.insert,De=document.createElement("option");De.textContent=Ue,De.value=st,z.insertBefore(De,z.children[Ae]),p.setValue(D,{value:pe(ke,!0),items:he(ke)})},items(ke){const{items:Ae}=ke.detail;for(;0!==z.length;)z.remove(0);for(const Ue of Ae){const{displayValue:st,exportValue:De}=Ue,je=document.createElement("option");je.textContent=st,je.value=De,z.appendChild(je)}z.options.length>0&&(z.options[0].selected=!0),p.setValue(D,{value:pe(ke,!0),items:he(ke)})},indices(ke){const Ae=new Set(ke.detail.indices);for(const Ue of ke.target.options)Ue.selected=Ae.has(Ue.index);p.setValue(D,{value:pe(ke,!0)})},editable(ke){ke.target.disabled=!ke.detail.editable}},ge)}),z.addEventListener("input",ge=>{var Ae;const be=pe(ge,!0),ke=pe(ge,!1);p.setValue(D,{value:be}),null==(Ae=this.linkService.eventBus)||Ae.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:ke,changeEx:be,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(z,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],ge=>ge.target.checked)):z.addEventListener("input",function(ge){p.setValue(D,{value:pe(ge,!0)})}),this._setBackgroundColor(z),this._setDefaultPropertiesFromJS(z),this.container.appendChild(z),this.container}}class m extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!((null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str))})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const A=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===A.length)return this.container;const N=new _({container:this.container,trigger:Array.from(A),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),j=this.page,z=I.Util.normalizeRect([this.data.parentRect[0],j.view[3]-this.data.parentRect[1]+j.view[1],this.data.parentRect[2],j.view[3]-this.data.parentRect[3]+j.view[1]]),pe=z[0]+this.data.parentRect[2]-this.data.parentRect[0],he=z[1];return this.container.style.transformOrigin=`${-pe}px ${-he}px`,this.container.style.left=`${pe}px`,this.container.style.top=`${he}px`,this.container.appendChild(N.render()),this.container}}class _{constructor(p){this.container=p.container,this.trigger=p.trigger,this.color=p.color,this.titleObj=p.titleObj,this.modificationDate=p.modificationDate,this.contentsObj=p.contentsObj,this.richText=p.richText,this.hideWrapper=p.hideWrapper||!1,this.pinned=!1}render(){var pe,he;const D=document.createElement("div");D.className="popupWrapper",this.hideElement=this.hideWrapper?D:this.container,this.hideElement.hidden=!0;const A=document.createElement("div");A.className="popup";const N=this.color;N&&(A.style.backgroundColor=I.Util.makeHexColor(0|.7*(255-N[0])+N[0],0|.7*(255-N[1])+N[1],0|.7*(255-N[2])+N[2]));const j=document.createElement("h1");j.dir=this.titleObj.dir,j.textContent=this.titleObj.str,A.appendChild(j);const z=J.PDFDateString.toDateObject(this.modificationDate);if(z){const ge=document.createElement("span");ge.className="popupDate",ge.textContent="{{date}}, {{time}}",ge.dataset.l10nId="annotation_date_string",ge.dataset.l10nArgs=JSON.stringify({date:z.toLocaleDateString(),time:z.toLocaleTimeString()}),A.appendChild(ge)}if(!(null==(pe=this.richText)?void 0:pe.str)||null!=(he=this.contentsObj)&&he.str&&this.contentsObj.str!==this.richText.str){const ge=this._formatContents(this.contentsObj);A.appendChild(ge)}else Me.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:A}),A.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const ge of this.trigger)ge.addEventListener("click",this._toggle.bind(this)),ge.addEventListener("mouseover",this._show.bind(this,!1)),ge.addEventListener("mouseout",this._hide.bind(this,!1));return A.addEventListener("click",this._hide.bind(this,!0)),D.appendChild(A),D}_formatContents({str:p,dir:D}){const A=document.createElement("p");A.className="popupContent",A.dir=D;const N=p.split(/(?:\r\n?|\n)/);for(let j=0,z=N.length;j<z;++j)A.appendChild(document.createTextNode(N[j])),j<z-1&&A.appendChild(document.createElement("br"));return A}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(p=!1){p&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}_hide(p=!0){p&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}class k extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class O extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A),j=this.svgFactory.createElement("svg:line");return j.setAttribute("x1",p.rect[2]-p.lineCoordinates[0]),j.setAttribute("y1",p.rect[3]-p.lineCoordinates[1]),j.setAttribute("x2",p.rect[2]-p.lineCoordinates[2]),j.setAttribute("y2",p.rect[3]-p.lineCoordinates[3]),j.setAttribute("stroke-width",p.borderStyle.width||1),j.setAttribute("stroke","transparent"),j.setAttribute("fill","transparent"),N.appendChild(j),this.container.append(N),this._createPopup(j,p),this.container}}class H extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A),j=p.borderStyle.width,z=this.svgFactory.createElement("svg:rect");return z.setAttribute("x",j/2),z.setAttribute("y",j/2),z.setAttribute("width",D-j),z.setAttribute("height",A-j),z.setAttribute("stroke-width",j||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","transparent"),N.appendChild(z),this.container.append(N),this._createPopup(z,p),this.container}}class Z extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A),j=p.borderStyle.width,z=this.svgFactory.createElement("svg:ellipse");return z.setAttribute("cx",D/2),z.setAttribute("cy",A/2),z.setAttribute("rx",D/2-j/2),z.setAttribute("ry",A/2-j/2),z.setAttribute("stroke-width",j||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","transparent"),N.appendChild(z),this.container.append(N),this._createPopup(z,p),this.container}}class L extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A);let j=[];for(const pe of p.vertices)j.push(pe.x-p.rect[0]+","+(p.rect[3]-pe.y));j=j.join(" ");const z=this.svgFactory.createElement(this.svgElementName);return z.setAttribute("points",j),z.setAttribute("stroke-width",p.borderStyle.width||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","transparent"),N.appendChild(z),this.container.append(N),this._createPopup(z,p),this.container}}class V extends L{constructor(p){super(p),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class te extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class ue extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A);for(const j of p.inkLists){let z=[];for(const he of j)z.push(`${he.x-p.rect[0]},${p.rect[3]-he.y}`);z=z.join(" ");const pe=this.svgFactory.createElement(this.svgElementName);pe.setAttribute("points",z),pe.setAttribute("stroke-width",p.borderStyle.width||1),pe.setAttribute("stroke","transparent"),pe.setAttribute("fill","transparent"),this._createPopup(pe,p),N.appendChild(pe)}return this.container.append(N),this.container}}class fe extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class we extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class oe extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class Se extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class _e extends W{constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Ce extends W{constructor(p){var N;super(p,{isRenderable:!0});const{filename:D,content:A}=this.data.file;this.filename=(0,J.getFilenameFromUrl)(D),this.content=A,null==(N=this.linkService.eventBus)||N.dispatch("fileattachmentannotation",{source:this,filename:D,content:A})}render(){var D,A;this.container.className="fileAttachmentAnnotation";const p=document.createElement("div");return p.style.height=this.container.style.height,p.style.width=this.container.style.width,p.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((null==(D=this.data.titleObj)?void 0:D.str)||(null==(A=this.data.contentsObj)?void 0:A.str)||this.data.richText)&&this._createPopup(p,this.data),this.container.appendChild(p),this.container}_download(){var p;null==(p=this.downloadManager)||p.openOrDownloadData(this.container,this.content,this.filename)}}class Be{static render(p){const D=[],A=[];for(const j of p.annotations){if(!j)continue;const{width:z,height:pe}=Q(j.rect);if(!(z<=0||pe<=0)){if(j.annotationType===I.AnnotationType.POPUP){A.push(j);continue}D.push(j)}}A.length&&D.push(...A);const N=p.div;for(const j of D){const z=T.create({data:j,layer:N,page:p.page,viewport:p.viewport,linkService:p.linkService,downloadManager:p.downloadManager,imageResourcesPath:p.imageResourcesPath||"",renderForms:!1!==p.renderForms,svgFactory:new J.DOMSVGFactory,annotationStorage:p.annotationStorage||new Ve.AnnotationStorage,enableScripting:p.enableScripting,hasJSActions:p.hasJSActions,fieldObjects:p.fieldObjects,mouseState:p.mouseState||{isDown:!1}});if(z.isRenderable){const pe=z.render();if(j.hidden&&(pe.style.visibility="hidden"),Array.isArray(pe))for(const he of pe)N.appendChild(he);else z instanceof m?N.prepend(pe):N.appendChild(pe)}}Nt(this,X,U1).call(this,N,p.annotationCanvasMap)}static update(p){const{page:D,viewport:A,annotations:N,annotationCanvasMap:j,div:z}=p,pe=A.transform,he=`matrix(${pe.join(",")})`;let ge,be;for(const ke of N){const Ae=z.querySelectorAll(`[data-annotation-id="${ke.id}"]`);if(Ae)for(const Ue of Ae)if(ke.hasOwnCanvas){const st=I.Util.normalizeRect([ke.rect[0],D.view[3]-ke.rect[1]+D.view[1],ke.rect[2],D.view[3]-ke.rect[3]+D.view[1]]);if(!be){ge=Math.abs(pe[0]||pe[1]);const ze=pe.slice();for(let q=0;q<4;q++)ze[q]=Math.sign(ze[q]);be=`matrix(${ze.join(",")})`}const De=st[0]*ge,je=st[1]*ge;Ue.style.left=`${De}px`,Ue.style.top=`${je}px`,Ue.style.transformOrigin=`${-De}px ${-je}px`,Ue.style.transform=be}else Ue.style.transform=he}Nt(this,X,U1).call(this,z,j),z.hidden=!1}}X=new WeakSet,U1=function(p,D){if(D){for(const[A,N]of D){const j=p.querySelector(`[data-annotation-id="${A}"]`);if(!j)continue;const{firstChild:z}=j;"CANVAS"===z.nodeName?j.replaceChild(N,z):j.insertBefore(N,z)}D.clear()}},Gt(Be,X),re.AnnotationLayer=Be},(Ze,re)=>{function He(J){return Math.floor(255*Math.max(0,Math.min(1,J))).toString(16).padStart(2,"0")}Object.defineProperty(re,"__esModule",{value:!0}),re.ColorConverters=void 0,re.ColorConverters=class I{static CMYK_G([Ve,Te,Me,ce]){return["G",1-Math.min(1,.3*Ve+.59*Me+.11*Te+ce)]}static G_CMYK([Ve]){return["CMYK",0,0,0,1-Ve]}static G_RGB([Ve]){return["RGB",Ve,Ve,Ve]}static G_HTML([Ve]){const Te=He(Ve);return`#${Te}${Te}${Te}`}static RGB_G([Ve,Te,Me]){return["G",.3*Ve+.59*Te+.11*Me]}static RGB_HTML([Ve,Te,Me]){return`#${He(Ve)}${He(Te)}${He(Me)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([Ve,Te,Me,ce]){return["RGB",1-Math.min(1,Ve+ce),1-Math.min(1,Me+ce),1-Math.min(1,Te+ce)]}static CMYK_HTML(Ve){return this.RGB_HTML(this.CMYK_RGB(Ve))}static RGB_CMYK([Ve,Te,Me]){const ce=1-Ve,E=1-Te,Q=1-Me;return["CMYK",ce,E,Q,Math.min(ce,E,Q)]}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.XfaLayer=void 0;var I=He(18);re.XfaLayer=class J{static setupStorage(Te,Me,ce,E,Q){const T=E.getValue(Me,{value:null});switch(ce.name){case"textarea":if(null!==T.value&&(Te.textContent=T.value),"print"===Q)break;Te.addEventListener("input",W=>{E.setValue(Me,{value:W.target.value})});break;case"input":if("radio"===ce.attributes.type||"checkbox"===ce.attributes.type){if(T.value===ce.attributes.xfaOn?Te.setAttribute("checked",!0):T.value===ce.attributes.xfaOff&&Te.removeAttribute("checked"),"print"===Q)break;Te.addEventListener("change",W=>{E.setValue(Me,{value:W.target.getAttribute(W.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==T.value&&Te.setAttribute("value",T.value),"print"===Q)break;Te.addEventListener("input",W=>{E.setValue(Me,{value:W.target.value})})}break;case"select":if(null!==T.value)for(const W of ce.children)W.attributes.value===T.value&&(W.attributes.selected=!0);Te.addEventListener("input",W=>{const U=W.target.options;E.setValue(Me,{value:-1===U.selectedIndex?"":U[U.selectedIndex].value})})}}static setAttributes({html:Te,element:Me,storage:ce=null,intent:E,linkService:Q}){const{attributes:T}=Me,W=Te instanceof HTMLAnchorElement;"radio"===T.type&&(T.name=`${T.name}-${E}`);for(const[U,S]of Object.entries(T))if(null!=S&&"dataId"!==U)if("style"!==U)if("textContent"===U)Te.textContent=S;else if("class"===U)S.length&&Te.setAttribute(U,S.join(" "));else{if(W&&("href"===U||"newWindow"===U))continue;Te.setAttribute(U,S)}else Object.assign(Te.style,S);W&&Q.addLinkAttributes(Te,T.href,T.newWindow),ce&&T.dataId&&this.setupStorage(Te,T.dataId,Me,ce)}static render(Te){var y;const Me=Te.annotationStorage,ce=Te.linkService,E=Te.xfaHtml,Q=Te.intent||"display",T=document.createElement(E.name);E.attributes&&this.setAttributes({html:T,element:E,intent:Q,linkService:ce});const W=[[E,-1,T]],U=Te.div;if(U.appendChild(T),Te.viewport){const g=`matrix(${Te.viewport.transform.join(",")})`;U.style.transform=g}"richText"!==Q&&U.setAttribute("class","xfaLayer xfaFont");const S=[];for(;W.length>0;){const[g,M,G]=W[W.length-1];if(M+1===g.children.length){W.pop();continue}const P=g.children[++W[W.length-1][1]];if(null===P)continue;const{name:F}=P;if("#text"===F){const _=document.createTextNode(P.value);S.push(_),G.appendChild(_);continue}let m;if(m=null!=(y=null==P?void 0:P.attributes)&&y.xmlns?document.createElementNS(P.attributes.xmlns,F):document.createElement(F),G.appendChild(m),P.attributes&&this.setAttributes({html:m,element:P,storage:Me,intent:Q,linkService:ce}),P.children&&P.children.length>0)W.push([P,-1,m]);else if(P.value){const _=document.createTextNode(P.value);I.XfaText.shouldBuildText(F)&&S.push(_),m.appendChild(_)}}for(const g of U.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))g.setAttribute("readOnly",!0);return{textDivs:S}}static update(Te){const Me=`matrix(${Te.viewport.transform.join(",")})`;Te.div.style.transform=Me,Te.div.hidden=!1}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.renderTextLayer=function M(G){const P=new g({textContent:G.textContent,textContentStream:G.textContentStream,container:G.container,viewport:G.viewport,textDivs:G.textDivs,textContentItemsStr:G.textContentItemsStr,enhanceTextSelection:G.enhanceTextSelection});return P._render(G.timeout),P};var I=He(1);const Me=new Map,ce=/^\s+$/g;function Q(G,P,F,m){const _=document.createElement("span"),k=G._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==P.str,hasEOL:P.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==P.str,hasEOL:P.hasEOL};G._textDivs.push(_);const O=I.Util.transform(G._viewport.transform,P.transform);let H=Math.atan2(O[1],O[0]);const Z=F[P.fontName];Z.vertical&&(H+=Math.PI/2);const L=Math.hypot(O[2],O[3]),V=L*function E(G,P){const F=Me.get(G);if(F)return F;P.save(),P.font=`30px ${G}`;const m=P.measureText("");let _=m.fontBoundingBoxAscent,k=Math.abs(m.fontBoundingBoxDescent);if(_){P.restore();const H=_/(_+k);return Me.set(G,H),H}P.strokeStyle="red",P.clearRect(0,0,30,30),P.strokeText("g",0,0);let O=P.getImageData(0,0,30,30).data;k=0;for(let H=O.length-1-3;H>=0;H-=4)if(O[H]>0){k=Math.ceil(H/4/30);break}P.clearRect(0,0,30,30),P.strokeText("A",0,30),O=P.getImageData(0,0,30,30).data,_=0;for(let H=0,Z=O.length;H<Z;H+=4)if(O[H]>0){_=30-Math.floor(H/4/30);break}if(P.restore(),_){const H=_/(_+k);return Me.set(G,H),H}return Me.set(G,.8),.8}(Z.fontFamily,m);let te,ue;0===H?(te=O[4],ue=O[5]-V):(te=O[4]+V*Math.sin(H),ue=O[5]-V*Math.cos(H)),_.style.left=`${te}px`,_.style.top=`${ue}px`,_.style.fontSize=`${L}px`,_.style.fontFamily=Z.fontFamily,_.setAttribute("role","presentation"),_.textContent=P.str,_.dir=P.dir,G._fontInspectorEnabled&&(_.dataset.fontName=P.fontName),0!==H&&(k.angle=H*(180/Math.PI));let fe=!1;if(P.str.length>1||G._enhanceTextSelection&&ce.test(P.str))fe=!0;else if(" "!==P.str&&P.transform[0]!==P.transform[3]){const we=Math.abs(P.transform[0]),oe=Math.abs(P.transform[3]);we!==oe&&Math.max(we,oe)/Math.min(we,oe)>1.5&&(fe=!0)}if(fe&&(k.canvasWidth=Z.vertical?P.height*G._viewport.scale:P.width*G._viewport.scale),G._textDivProperties.set(_,k),G._textContentStream&&G._layoutText(_),G._enhanceTextSelection&&k.hasText){let we=1,oe=0;0!==H&&(we=Math.cos(H),oe=Math.sin(H));const Se=(Z.vertical?P.height:P.width)*G._viewport.scale,_e=L;let Ce,Be;0!==H?(Ce=[we,oe,-oe,we,te,ue],Be=I.Util.getAxialAlignedBoundingBox([0,0,Se,_e],Ce)):Be=[te,ue,te+Se,ue+_e],G._bounds.push({left:Be[0],top:Be[1],right:Be[2],bottom:Be[3],div:_,size:[Se,_e],m:Ce})}}function T(G){if(G._canceled)return;const P=G._textDivs,F=G._capability,m=P.length;if(m>1e5)return G._renderingDone=!0,void F.resolve();if(!G._textContentStream)for(let _=0;_<m;_++)G._layoutText(P[_]);G._renderingDone=!0,F.resolve()}function W(G,P,F){let m=0;for(let _=0;_<F;_++){const k=G[P++];k>0&&(m=m?Math.min(k,m):k)}return m}function y(G,P){P.sort(function(_,k){return _.x1-k.x1||_.index-k.index});const m=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const _ of P){let k=0;for(;k<m.length&&m[k].end<=_.y1;)k++;let O=m.length-1;for(;O>=0&&m[O].start>=_.y2;)O--;let H,Z,L,V,te=-1/0;for(L=k;L<=O;L++){let we;H=m[L],Z=H.boundary,we=Z.x2>_.x1?Z.index>_.index?Z.x1New:_.x1:void 0===Z.x2New?(Z.x2+_.x1)/2:Z.x2New,we>te&&(te=we)}for(_.x1New=te,L=k;L<=O;L++)H=m[L],Z=H.boundary,void 0===Z.x2New?Z.x2>_.x1?Z.index>_.index&&(Z.x2New=Z.x2):Z.x2New=te:Z.x2New>te&&(Z.x2New=Math.max(te,Z.x2));const ue=[];let fe=null;for(L=k;L<=O;L++){H=m[L],Z=H.boundary;const we=Z.x2>_.x2?Z:_;fe===we?ue[ue.length-1].end=H.end:(ue.push({start:H.start,end:H.end,boundary:we}),fe=we)}for(m[k].start<_.y1&&(ue[0].start=_.y1,ue.unshift({start:m[k].start,end:_.y1,boundary:m[k].boundary})),_.y2<m[O].end&&(ue[ue.length-1].end=_.y2,ue.push({start:_.y2,end:m[O].end,boundary:m[O].boundary})),L=k;L<=O;L++){if(H=m[L],Z=H.boundary,void 0!==Z.x2New)continue;let we=!1;for(V=k-1;!we&&V>=0&&m[V].start>=Z.y1;V--)we=m[V].boundary===Z;for(V=O+1;!we&&V<m.length&&m[V].end<=Z.y2;V++)we=m[V].boundary===Z;for(V=0;!we&&V<ue.length;V++)we=ue[V].boundary===Z;we||(Z.x2New=te)}Array.prototype.splice.apply(m,[k,O-k+1].concat(ue))}for(const _ of m){const k=_.boundary;void 0===k.x2New&&(k.x2New=Math.max(G,k.x2))}}class g{constructor({textContent:P,textContentStream:F,container:m,viewport:_,textDivs:k,textContentItemsStr:O,enhanceTextSelection:H}){var Z;this._textContent=P,this._textContentStream=F,this._container=m,this._document=m.ownerDocument,this._viewport=_,this._textDivs=k||[],this._textContentItemsStr=O||[],this._enhanceTextSelection=!!H,this._fontInspectorEnabled=!(null==(Z=globalThis.FontInspector)||!Z.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,I.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new I.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(P,F){for(let m=0,_=P.length;m<_;m++)if(void 0!==P[m].str)this._textContentItemsStr.push(P[m].str),Q(this,P[m],F,this._layoutTextCtx);else if("beginMarkedContentProps"===P[m].type||"beginMarkedContent"===P[m].type){const k=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==P[m].id&&this._container.setAttribute("id",`${P[m].id}`),k.appendChild(this._container)}else"endMarkedContent"===P[m].type&&(this._container=this._container.parentNode)}_layoutText(P){const F=this._textDivProperties.get(P);let m="";if(0!==F.canvasWidth&&F.hasText){const{fontSize:_,fontFamily:k}=P.style;(_!==this._layoutTextLastFontSize||k!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${_} ${k}`,this._layoutTextLastFontSize=_,this._layoutTextLastFontFamily=k);const{width:O}=this._layoutTextCtx.measureText(P.textContent);if(O>0){const H=F.canvasWidth/O;this._enhanceTextSelection&&(F.scale=H),m=`scaleX(${H})`}}if(0!==F.angle&&(m=`rotate(${F.angle}deg) ${m}`),m.length>0&&(this._enhanceTextSelection&&(F.originalTransform=m),P.style.transform=m),F.hasText&&this._container.appendChild(P),F.hasEOL){const _=document.createElement("br");_.setAttribute("role","presentation"),this._container.appendChild(_)}}_render(P=0){const F=(0,I.createPromiseCapability)();let m=Object.create(null);const _=this._document.createElement("canvas");if(_.height=_.width=30,this._layoutTextCtx=_.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),F.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const k=()=>{this._reader.read().then(({value:O,done:H})=>{H?F.resolve():(Object.assign(m,O.styles),this._processItems(O.items,m),k())},F.reject)};this._reader=this._textContentStream.getReader(),k()}}F.promise.then(()=>{m=null,P?this._renderTimer=setTimeout(()=>{T(this),this._renderTimer=null},P):T(this)},this._capability.reject)}expandTextDivs(P=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function U(G){const P=G._bounds,F=G._viewport,m=function S(G,P,F){const m=F.map(function(k,O){return{x1:k.left,y1:k.top,x2:k.right,y2:k.bottom,index:O,x1New:void 0,x2New:void 0}});y(G,m);const _=new Array(F.length);for(const k of m)_[k.index]={left:k.x1New,top:0,right:k.x2New,bottom:0};F.map(function(k,O){const H=_[O],Z=m[O];Z.x1=k.top,Z.y1=G-H.right,Z.x2=k.bottom,Z.y2=G-H.left,Z.index=O,Z.x1New=void 0,Z.x2New=void 0}),y(P,m);for(const k of m){const O=k.index;_[O].top=k.x1New,_[O].bottom=k.x2New}return _}(F.width,F.height,P);for(let _=0;_<m.length;_++){const k=P[_].div,O=G._textDivProperties.get(k);if(0===O.angle){O.paddingLeft=P[_].left-m[_].left,O.paddingTop=P[_].top-m[_].top,O.paddingRight=m[_].right-P[_].right,O.paddingBottom=m[_].bottom-P[_].bottom,G._textDivProperties.set(k,O);continue}const H=m[_],Z=P[_],L=Z.m,V=L[0],te=L[1],ue=[[0,0],[0,Z.size[1]],[Z.size[0],0],Z.size],fe=new Float64Array(64);for(let oe=0,Se=ue.length;oe<Se;oe++){const _e=I.Util.applyTransform(ue[oe],L);fe[oe+0]=V&&(H.left-_e[0])/V,fe[oe+4]=te&&(H.top-_e[1])/te,fe[oe+8]=V&&(H.right-_e[0])/V,fe[oe+12]=te&&(H.bottom-_e[1])/te,fe[oe+16]=te&&(H.left-_e[0])/-te,fe[oe+20]=V&&(H.top-_e[1])/V,fe[oe+24]=te&&(H.right-_e[0])/-te,fe[oe+28]=V&&(H.bottom-_e[1])/V,fe[oe+32]=V&&(H.left-_e[0])/-V,fe[oe+36]=te&&(H.top-_e[1])/-te,fe[oe+40]=V&&(H.right-_e[0])/-V,fe[oe+44]=te&&(H.bottom-_e[1])/-te,fe[oe+48]=te&&(H.left-_e[0])/te,fe[oe+52]=V&&(H.top-_e[1])/-V,fe[oe+56]=te&&(H.right-_e[0])/te,fe[oe+60]=V&&(H.bottom-_e[1])/-V}const we=1+Math.min(Math.abs(V),Math.abs(te));O.paddingLeft=W(fe,32,16)/we,O.paddingTop=W(fe,48,16)/we,O.paddingRight=W(fe,0,16)/we,O.paddingBottom=W(fe,16,16)/we,G._textDivProperties.set(k,O)}}(this),this._bounds=null);const F=[],m=[];for(let _=0,k=this._textDivs.length;_<k;_++){const O=this._textDivs[_],H=this._textDivProperties.get(O);!H.hasText||(P?(F.length=0,m.length=0,H.originalTransform&&F.push(H.originalTransform),H.paddingTop>0?(m.push(`${H.paddingTop}px`),F.push(`translateY(${-H.paddingTop}px)`)):m.push(0),m.push(H.paddingRight>0?H.paddingRight/H.scale+"px":0),m.push(H.paddingBottom>0?`${H.paddingBottom}px`:0),H.paddingLeft>0?(m.push(H.paddingLeft/H.scale+"px"),F.push(`translateX(${-H.paddingLeft/H.scale}px)`)):m.push(0),O.style.padding=m.join(" "),F.length&&(O.style.transform=F.join(" "))):(O.style.padding=null,O.style.transform=H.originalTransform))}}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.SVGGraphics=void 0;var I=He(1),J=He(5),Ve=He(3);let Te=class{constructor(){(0,I.unreachable)("Not implemented: SVGGraphics")}};re.SVGGraphics=Te;{let y=function(m){let _=[];const k=[];for(const O of m)"save"!==O.fn?"restore"===O.fn?_=k.pop():_.push(O):(_.push({fnId:92,fn:"group",items:[]}),k.push(_),_=_[_.length-1].items);return _},g=function(m){if(Number.isInteger(m))return m.toString();const _=m.toFixed(10);let k=_.length-1;if("0"!==_[k])return _;do{k--}while("0"===_[k]);return _.substring(0,"."===_[k]?k:k+1)},M=function(m){if(0===m[4]&&0===m[5]){if(0===m[1]&&0===m[2])return 1===m[0]&&1===m[3]?"":`scale(${g(m[0])} ${g(m[3])})`;if(m[0]===m[3]&&m[1]===-m[2]){const _=180*Math.acos(m[0])/Math.PI;return`rotate(${g(_)})`}}else if(1===m[0]&&0===m[1]&&0===m[2]&&1===m[3])return`translate(${g(m[4])} ${g(m[5])})`;return`matrix(${g(m[0])} ${g(m[1])} ${g(m[2])} ${g(m[3])} ${g(m[4])} ${g(m[5])})`};const Me={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},ce="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/1999/xlink",Q=["butt","round","square"],T=["miter","round","bevel"],W=function(m,_="",k=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!k)return URL.createObjectURL(new Blob([m],{type:_}));const O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let H=`data:${_};base64,`;for(let Z=0,L=m.length;Z<L;Z+=3){const V=255&m[Z],te=255&m[Z+1],ue=255&m[Z+2];H+=O[V>>2]+O[(3&V)<<4|te>>4]+O[Z+1<L?(15&te)<<2|ue>>6:64]+O[Z+2<L?63&ue:64]}return H},U=function(){const m=new Uint8Array([137,80,78,71,13,10,26,10]),k=new Int32Array(256);for(let ue=0;ue<256;ue++){let fe=ue;for(let we=0;we<8;we++)fe=1&fe?3988292384^fe>>1&2147483647:fe>>1&2147483647;k[ue]=fe}function H(ue,fe,we,oe){let Se=oe;const _e=fe.length;we[Se]=_e>>24&255,we[Se+1]=_e>>16&255,we[Se+2]=_e>>8&255,we[Se+3]=255&_e,Se+=4,we[Se]=255&ue.charCodeAt(0),we[Se+1]=255&ue.charCodeAt(1),we[Se+2]=255&ue.charCodeAt(2),we[Se+3]=255&ue.charCodeAt(3),Se+=4,we.set(fe,Se),Se+=fe.length;const Ce=function O(ue,fe,we){let oe=-1;for(let Se=fe;Se<we;Se++)oe=oe>>>8^k[255&(oe^ue[Se])];return-1^oe}(we,oe+4,Se);we[Se]=Ce>>24&255,we[Se+1]=Ce>>16&255,we[Se+2]=Ce>>8&255,we[Se+3]=255&Ce}function V(ue){let fe=ue.length;const we=65535,oe=Math.ceil(fe/we),Se=new Uint8Array(2+fe+5*oe+4);let _e=0;Se[_e++]=120,Se[_e++]=156;let Ce=0;for(;fe>we;)Se[_e++]=0,Se[_e++]=255,Se[_e++]=255,Se[_e++]=0,Se[_e++]=0,Se.set(ue.subarray(Ce,Ce+we),_e),_e+=we,Ce+=we,fe-=we;Se[_e++]=1,Se[_e++]=255&fe,Se[_e++]=fe>>8&255,Se[_e++]=255&~fe,Se[_e++]=(65535&~fe)>>8&255,Se.set(ue.subarray(Ce),_e),_e+=ue.length-Ce;const Be=function Z(ue,fe,we){let oe=1,Se=0;for(let _e=fe;_e<we;++_e)oe=(oe+(255&ue[_e]))%65521,Se=(Se+oe)%65521;return Se<<16|oe}(ue,0,ue.length);return Se[_e++]=Be>>24&255,Se[_e++]=Be>>16&255,Se[_e++]=Be>>8&255,Se[_e++]=255&Be,Se}return function(fe,we,oe){return function te(ue,fe,we,oe){const Se=ue.width,_e=ue.height;let Ce,Be,X;const C=ue.data;switch(fe){case I.ImageKind.GRAYSCALE_1BPP:Be=0,Ce=1,X=Se+7>>3;break;case I.ImageKind.RGB_24BPP:Be=2,Ce=8,X=3*Se;break;case I.ImageKind.RGBA_32BPP:Be=6,Ce=8,X=4*Se;break;default:throw new Error("invalid format")}const b=new Uint8Array((1+X)*_e);let p=0,D=0;for(let he=0;he<_e;++he)b[p++]=0,b.set(C.subarray(D,D+X),p),D+=X,p+=X;if(fe===I.ImageKind.GRAYSCALE_1BPP&&oe){p=0;for(let he=0;he<_e;he++){p++;for(let ge=0;ge<X;ge++)b[p++]^=255}}const A=new Uint8Array([Se>>24&255,Se>>16&255,Se>>8&255,255&Se,_e>>24&255,_e>>16&255,_e>>8&255,255&_e,Ce,Be,0,0,0]),N=function L(ue){if(!Ve.isNodeJS)return V(ue);try{let fe;fe=parseInt(process.versions.node)>=8?ue:Buffer.from(ue);const we=__webpack_require__(2258).deflateSync(fe,{level:9});return we instanceof Uint8Array?we:new Uint8Array(we)}catch(fe){(0,I.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+fe)}return V(ue)}(b),z=new Uint8Array(m.length+36+A.length+N.length);let pe=0;return z.set(m,pe),pe+=m.length,H("IHDR",A,z,pe),pe+=12+A.length,H("IDATA",N,z,pe),pe+=12+N.length,H("IEND",new Uint8Array(0),z,pe),W(z,"image/png",we)}(fe,void 0===fe.kind?I.ImageKind.GRAYSCALE_1BPP:fe.kind,we,oe)}}();class S{constructor(){this.fontSizeScale=1,this.fontWeight=Me.fontWeight,this.fontSize=0,this.textMatrix=I.IDENTITY_MATRIX,this.fontMatrix=I.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=I.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=Me.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(_,k){this.x=_,this.y=k}}let G=0,P=0,F=0;re.SVGGraphics=Te=class{constructor(m,_,k=!1){this.svgFactory=new J.DOMSVGFactory,this.current=new S,this.transformMatrix=I.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=m,this.objs=_,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!k,this._operatorIdMapping=[];for(const O in I.OPS)this._operatorIdMapping[I.OPS[O]]=O}save(){this.transformStack.push(this.transformMatrix);const m=this.current;this.extraStack.push(m),this.current=m.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(m){this.save(),this.executeOpTree(m),this.restore()}loadDependencies(m){const _=m.fnArray,k=m.argsArray;for(let O=0,H=_.length;O<H;O++)if(_[O]===I.OPS.dependency)for(const Z of k[O]){const L=Z.startsWith("g_")?this.commonObjs:this.objs,V=new Promise(te=>{L.get(Z,te)});this.current.dependencies.push(V)}return Promise.all(this.current.dependencies)}transform(m,_,k,O,H,Z){this.transformMatrix=I.Util.transform(this.transformMatrix,[m,_,k,O,H,Z]),this.tgrp=null}getSVG(m,_){this.viewport=_;const k=this._initialize(_);return this.loadDependencies(m).then(()=>(this.transformMatrix=I.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(m)),k))}convertOpList(m){const _=this._operatorIdMapping,k=m.argsArray,O=m.fnArray,H=[];for(let Z=0,L=O.length;Z<L;Z++){const V=O[Z];H.push({fnId:V,fn:_[V],args:k[Z]})}return y(H)}executeOpTree(m){for(const _ of m){const k=_.fn,H=_.args;switch(0|_.fnId){case I.OPS.beginText:this.beginText();break;case I.OPS.dependency:break;case I.OPS.setLeading:this.setLeading(H);break;case I.OPS.setLeadingMoveText:this.setLeadingMoveText(H[0],H[1]);break;case I.OPS.setFont:this.setFont(H);break;case I.OPS.showText:case I.OPS.showSpacedText:this.showText(H[0]);break;case I.OPS.endText:this.endText();break;case I.OPS.moveText:this.moveText(H[0],H[1]);break;case I.OPS.setCharSpacing:this.setCharSpacing(H[0]);break;case I.OPS.setWordSpacing:this.setWordSpacing(H[0]);break;case I.OPS.setHScale:this.setHScale(H[0]);break;case I.OPS.setTextMatrix:this.setTextMatrix(H[0],H[1],H[2],H[3],H[4],H[5]);break;case I.OPS.setTextRise:this.setTextRise(H[0]);break;case I.OPS.setTextRenderingMode:this.setTextRenderingMode(H[0]);break;case I.OPS.setLineWidth:this.setLineWidth(H[0]);break;case I.OPS.setLineJoin:this.setLineJoin(H[0]);break;case I.OPS.setLineCap:this.setLineCap(H[0]);break;case I.OPS.setMiterLimit:this.setMiterLimit(H[0]);break;case I.OPS.setFillRGBColor:this.setFillRGBColor(H[0],H[1],H[2]);break;case I.OPS.setStrokeRGBColor:this.setStrokeRGBColor(H[0],H[1],H[2]);break;case I.OPS.setStrokeColorN:this.setStrokeColorN(H);break;case I.OPS.setFillColorN:this.setFillColorN(H);break;case I.OPS.shadingFill:this.shadingFill(H[0]);break;case I.OPS.setDash:this.setDash(H[0],H[1]);break;case I.OPS.setRenderingIntent:this.setRenderingIntent(H[0]);break;case I.OPS.setFlatness:this.setFlatness(H[0]);break;case I.OPS.setGState:this.setGState(H[0]);break;case I.OPS.fill:this.fill();break;case I.OPS.eoFill:this.eoFill();break;case I.OPS.stroke:this.stroke();break;case I.OPS.fillStroke:this.fillStroke();break;case I.OPS.eoFillStroke:this.eoFillStroke();break;case I.OPS.clip:this.clip("nonzero");break;case I.OPS.eoClip:this.clip("evenodd");break;case I.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case I.OPS.paintImageXObject:this.paintImageXObject(H[0]);break;case I.OPS.paintInlineImageXObject:this.paintInlineImageXObject(H[0]);break;case I.OPS.paintImageMaskXObject:this.paintImageMaskXObject(H[0]);break;case I.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(H[0],H[1]);break;case I.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case I.OPS.closePath:this.closePath();break;case I.OPS.closeStroke:this.closeStroke();break;case I.OPS.closeFillStroke:this.closeFillStroke();break;case I.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case I.OPS.nextLine:this.nextLine();break;case I.OPS.transform:this.transform(H[0],H[1],H[2],H[3],H[4],H[5]);break;case I.OPS.constructPath:this.constructPath(H[0],H[1]);break;case I.OPS.endPath:this.endPath();break;case 92:this.group(_.items);break;default:(0,I.warn)(`Unimplemented operator ${k}`)}}}setWordSpacing(m){this.current.wordSpacing=m}setCharSpacing(m){this.current.charSpacing=m}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(m,_,k,O,H,Z){const L=this.current;L.textMatrix=L.lineMatrix=[m,_,k,O,H,Z],L.textMatrixScale=Math.hypot(m,_),L.x=L.lineX=0,L.y=L.lineY=0,L.xcoords=[],L.ycoords=[],L.tspan=this.svgFactory.createElement("svg:tspan"),L.tspan.setAttributeNS(null,"font-family",L.fontFamily),L.tspan.setAttributeNS(null,"font-size",`${g(L.fontSize)}px`),L.tspan.setAttributeNS(null,"y",g(-L.y)),L.txtElement=this.svgFactory.createElement("svg:text"),L.txtElement.appendChild(L.tspan)}beginText(){const m=this.current;m.x=m.lineX=0,m.y=m.lineY=0,m.textMatrix=I.IDENTITY_MATRIX,m.lineMatrix=I.IDENTITY_MATRIX,m.textMatrixScale=1,m.tspan=this.svgFactory.createElement("svg:tspan"),m.txtElement=this.svgFactory.createElement("svg:text"),m.txtgrp=this.svgFactory.createElement("svg:g"),m.xcoords=[],m.ycoords=[]}moveText(m,_){const k=this.current;k.x=k.lineX+=m,k.y=k.lineY+=_,k.xcoords=[],k.ycoords=[],k.tspan=this.svgFactory.createElement("svg:tspan"),k.tspan.setAttributeNS(null,"font-family",k.fontFamily),k.tspan.setAttributeNS(null,"font-size",`${g(k.fontSize)}px`),k.tspan.setAttributeNS(null,"y",g(-k.y))}showText(m){const _=this.current,k=_.font,O=_.fontSize;if(0===O)return;const H=_.fontSizeScale,Z=_.charSpacing,L=_.wordSpacing,V=_.fontDirection,te=_.textHScale*V,ue=k.vertical,fe=ue?1:-1,we=k.defaultVMetrics,oe=O*_.fontMatrix[0];let Se=0;for(const Be of m){if(null===Be){Se+=V*L;continue}if("number"==typeof Be){Se+=fe*Be*O/1e3;continue}const X=(Be.isSpace?L:0)+Z,C=Be.fontChar;let b,p,A,D=Be.width;if(ue){let N;const j=Be.vmetric||we;N=Be.vmetric?j[1]:.5*D,N=-N*oe,D=j?-j[0]:D,b=N/H,p=(Se+j[2]*oe)/H}else b=Se/H,p=0;(Be.isInFont||k.missingFile)&&(_.xcoords.push(_.x+b),ue&&_.ycoords.push(-_.y+p),_.tspan.textContent+=C),A=ue?D*oe-X*V:D*oe+X*V,Se+=A}_.tspan.setAttributeNS(null,"x",_.xcoords.map(g).join(" ")),_.tspan.setAttributeNS(null,"y",ue?_.ycoords.map(g).join(" "):g(-_.y)),ue?_.y-=Se:_.x+=Se*te,_.tspan.setAttributeNS(null,"font-family",_.fontFamily),_.tspan.setAttributeNS(null,"font-size",`${g(_.fontSize)}px`),_.fontStyle!==Me.fontStyle&&_.tspan.setAttributeNS(null,"font-style",_.fontStyle),_.fontWeight!==Me.fontWeight&&_.tspan.setAttributeNS(null,"font-weight",_.fontWeight);const _e=_.textRenderingMode&I.TextRenderingMode.FILL_STROKE_MASK;_e===I.TextRenderingMode.FILL||_e===I.TextRenderingMode.FILL_STROKE?(_.fillColor!==Me.fillColor&&_.tspan.setAttributeNS(null,"fill",_.fillColor),_.fillAlpha<1&&_.tspan.setAttributeNS(null,"fill-opacity",_.fillAlpha)):_.tspan.setAttributeNS(null,"fill",_.textRenderingMode===I.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(_e===I.TextRenderingMode.STROKE||_e===I.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(_.tspan,1/(_.textMatrixScale||1));let Ce=_.textMatrix;0!==_.textRise&&(Ce=Ce.slice(),Ce[5]+=_.textRise),_.txtElement.setAttributeNS(null,"transform",`${M(Ce)} scale(${g(te)}, -1)`),_.txtElement.setAttributeNS(ce,"xml:space","preserve"),_.txtElement.appendChild(_.tspan),_.txtgrp.appendChild(_.txtElement),this._ensureTransformGroup().appendChild(_.txtElement)}setLeadingMoveText(m,_){this.setLeading(-_),this.moveText(m,_)}addFontStyle(m){if(!m.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const _=W(m.data,m.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${m.loadedName}"; src: url(${_}); }\n`}setFont(m){const _=this.current,k=this.commonObjs.get(m[0]);let O=m[1];_.font=k,this.embedFonts&&!k.missingFile&&!this.embeddedFonts[k.loadedName]&&(this.addFontStyle(k),this.embeddedFonts[k.loadedName]=k),_.fontMatrix=k.fontMatrix||I.FONT_IDENTITY_MATRIX;let H="normal";k.black?H="900":k.bold&&(H="bold");const Z=k.italic?"italic":"normal";O<0?(O=-O,_.fontDirection=-1):_.fontDirection=1,_.fontSize=O,_.fontFamily=k.loadedName,_.fontWeight=H,_.fontStyle=Z,_.tspan=this.svgFactory.createElement("svg:tspan"),_.tspan.setAttributeNS(null,"y",g(-_.y)),_.xcoords=[],_.ycoords=[]}endText(){var _;const m=this.current;m.textRenderingMode&I.TextRenderingMode.ADD_TO_PATH_FLAG&&(null==(_=m.txtElement)?void 0:_.hasChildNodes())&&(m.element=m.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(m){m>0&&(this.current.lineWidth=m)}setLineCap(m){this.current.lineCap=Q[m]}setLineJoin(m){this.current.lineJoin=T[m]}setMiterLimit(m){this.current.miterLimit=m}setStrokeAlpha(m){this.current.strokeAlpha=m}setStrokeRGBColor(m,_,k){this.current.strokeColor=I.Util.makeHexColor(m,_,k)}setFillAlpha(m){this.current.fillAlpha=m}setFillRGBColor(m,_,k){this.current.fillColor=I.Util.makeHexColor(m,_,k),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(m){this.current.strokeColor=this._makeColorN_Pattern(m)}setFillColorN(m){this.current.fillColor=this._makeColorN_Pattern(m)}shadingFill(m){const _=this.viewport.width,k=this.viewport.height,O=I.Util.inverseTransform(this.transformMatrix),H=I.Util.applyTransform([0,0],O),Z=I.Util.applyTransform([0,k],O),L=I.Util.applyTransform([_,0],O),V=I.Util.applyTransform([_,k],O),te=Math.min(H[0],Z[0],L[0],V[0]),ue=Math.min(H[1],Z[1],L[1],V[1]),fe=Math.max(H[0],Z[0],L[0],V[0]),we=Math.max(H[1],Z[1],L[1],V[1]),oe=this.svgFactory.createElement("svg:rect");oe.setAttributeNS(null,"x",te),oe.setAttributeNS(null,"y",ue),oe.setAttributeNS(null,"width",fe-te),oe.setAttributeNS(null,"height",we-ue),oe.setAttributeNS(null,"fill",this._makeShadingPattern(m)),this.current.fillAlpha<1&&oe.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(oe)}_makeColorN_Pattern(m){return"TilingPattern"===m[0]?this._makeTilingPattern(m):this._makeShadingPattern(m)}_makeTilingPattern(m){const _=m[1],k=m[2],O=m[3]||I.IDENTITY_MATRIX,[H,Z,L,V]=m[4],te=m[5],ue=m[6],fe=m[7],we="shading"+F++,[oe,Se,_e,Ce]=I.Util.normalizeRect([...I.Util.applyTransform([H,Z],O),...I.Util.applyTransform([L,V],O)]),[Be,X]=I.Util.singularValueDecompose2dScale(O),C=te*Be,b=ue*X,p=this.svgFactory.createElement("svg:pattern");p.setAttributeNS(null,"id",we),p.setAttributeNS(null,"patternUnits","userSpaceOnUse"),p.setAttributeNS(null,"width",C),p.setAttributeNS(null,"height",b),p.setAttributeNS(null,"x",`${oe}`),p.setAttributeNS(null,"y",`${Se}`);const D=this.svg,A=this.transformMatrix,N=this.current.fillColor,j=this.current.strokeColor,z=this.svgFactory.create(_e-oe,Ce-Se);if(this.svg=z,this.transformMatrix=O,2===fe){const pe=I.Util.makeHexColor(..._);this.current.fillColor=pe,this.current.strokeColor=pe}return this.executeOpTree(this.convertOpList(k)),this.svg=D,this.transformMatrix=A,this.current.fillColor=N,this.current.strokeColor=j,p.appendChild(z.childNodes[0]),this.defs.appendChild(p),`url(#${we})`}_makeShadingPattern(m){switch("string"==typeof m&&(m=this.objs.get(m)),m[0]){case"RadialAxial":const _="shading"+F++,k=m[3];let O;switch(m[1]){case"axial":const H=m[4],Z=m[5];O=this.svgFactory.createElement("svg:linearGradient"),O.setAttributeNS(null,"id",_),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"x1",H[0]),O.setAttributeNS(null,"y1",H[1]),O.setAttributeNS(null,"x2",Z[0]),O.setAttributeNS(null,"y2",Z[1]);break;case"radial":const L=m[4],V=m[5],te=m[6],ue=m[7];O=this.svgFactory.createElement("svg:radialGradient"),O.setAttributeNS(null,"id",_),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"cx",V[0]),O.setAttributeNS(null,"cy",V[1]),O.setAttributeNS(null,"r",ue),O.setAttributeNS(null,"fx",L[0]),O.setAttributeNS(null,"fy",L[1]),O.setAttributeNS(null,"fr",te);break;default:throw new Error(`Unknown RadialAxial type: ${m[1]}`)}for(const H of k){const Z=this.svgFactory.createElement("svg:stop");Z.setAttributeNS(null,"offset",H[0]),Z.setAttributeNS(null,"stop-color",H[1]),O.appendChild(Z)}return this.defs.appendChild(O),`url(#${_})`;case"Mesh":return(0,I.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${m[0]}`)}}setDash(m,_){this.current.dashArray=m,this.current.dashPhase=_}constructPath(m,_){const k=this.current;let O=k.x,H=k.y,Z=[],L=0;for(const V of m)switch(0|V){case I.OPS.rectangle:O=_[L++],H=_[L++];const fe=O+_[L++],we=H+_[L++];Z.push("M",g(O),g(H),"L",g(fe),g(H),"L",g(fe),g(we),"L",g(O),g(we),"Z");break;case I.OPS.moveTo:O=_[L++],H=_[L++],Z.push("M",g(O),g(H));break;case I.OPS.lineTo:O=_[L++],H=_[L++],Z.push("L",g(O),g(H));break;case I.OPS.curveTo:O=_[L+4],H=_[L+5],Z.push("C",g(_[L]),g(_[L+1]),g(_[L+2]),g(_[L+3]),g(O),g(H)),L+=6;break;case I.OPS.curveTo2:Z.push("C",g(O),g(H),g(_[L]),g(_[L+1]),g(_[L+2]),g(_[L+3])),O=_[L+2],H=_[L+3],L+=4;break;case I.OPS.curveTo3:O=_[L+2],H=_[L+3],Z.push("C",g(_[L]),g(_[L+1]),g(O),g(H),g(O),g(H)),L+=4;break;case I.OPS.closePath:Z.push("Z")}Z=Z.join(" "),k.path&&m.length>0&&m[0]!==I.OPS.rectangle&&m[0]!==I.OPS.moveTo?Z=k.path.getAttributeNS(null,"d")+Z:(k.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(k.path)),k.path.setAttributeNS(null,"d",Z),k.path.setAttributeNS(null,"fill","none"),k.element=k.path,k.setCurrentPoint(O,H)}endPath(){const m=this.current;if(m.path=null,!this.pendingClip)return;if(!m.element)return void(this.pendingClip=null);const _="clippath"+G++,k=this.svgFactory.createElement("svg:clipPath");k.setAttributeNS(null,"id",_),k.setAttributeNS(null,"transform",M(this.transformMatrix));const O=m.element.cloneNode(!0);if(O.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,k.appendChild(O),this.defs.appendChild(k),m.activeClipUrl){m.clipGroup=null;for(const H of this.extraStack)H.clipGroup=null;k.setAttributeNS(null,"clip-path",m.activeClipUrl)}m.activeClipUrl=`url(#${_})`,this.tgrp=null}clip(m){this.pendingClip=m}closePath(){const m=this.current;if(m.path){const _=`${m.path.getAttributeNS(null,"d")}Z`;m.path.setAttributeNS(null,"d",_)}}setLeading(m){this.current.leading=-m}setTextRise(m){this.current.textRise=m}setTextRenderingMode(m){this.current.textRenderingMode=m}setHScale(m){this.current.textHScale=m/100}setRenderingIntent(m){}setFlatness(m){}setGState(m){for(const[_,k]of m)switch(_){case"LW":this.setLineWidth(k);break;case"LC":this.setLineCap(k);break;case"LJ":this.setLineJoin(k);break;case"ML":this.setMiterLimit(k);break;case"D":this.setDash(k[0],k[1]);break;case"RI":this.setRenderingIntent(k);break;case"FL":this.setFlatness(k);break;case"Font":this.setFont(k);break;case"CA":this.setStrokeAlpha(k);break;case"ca":this.setFillAlpha(k);break;default:(0,I.warn)(`Unimplemented graphic state operator ${_}`)}}fill(){const m=this.current;m.element&&(m.element.setAttributeNS(null,"fill",m.fillColor),m.element.setAttributeNS(null,"fill-opacity",m.fillAlpha),this.endPath())}stroke(){const m=this.current;m.element&&(this._setStrokeAttributes(m.element),m.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(m,_=1){const k=this.current;let O=k.dashArray;1!==_&&O.length>0&&(O=O.map(function(H){return _*H})),m.setAttributeNS(null,"stroke",k.strokeColor),m.setAttributeNS(null,"stroke-opacity",k.strokeAlpha),m.setAttributeNS(null,"stroke-miterlimit",g(k.miterLimit)),m.setAttributeNS(null,"stroke-linecap",k.lineCap),m.setAttributeNS(null,"stroke-linejoin",k.lineJoin),m.setAttributeNS(null,"stroke-width",g(_*k.lineWidth)+"px"),m.setAttributeNS(null,"stroke-dasharray",O.map(g).join(" ")),m.setAttributeNS(null,"stroke-dashoffset",g(_*k.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const m=this.svgFactory.createElement("svg:rect");m.setAttributeNS(null,"x","0"),m.setAttributeNS(null,"y","0"),m.setAttributeNS(null,"width","1px"),m.setAttributeNS(null,"height","1px"),m.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(m)}paintImageXObject(m){const _=m.startsWith("g_")?this.commonObjs.get(m):this.objs.get(m);_?this.paintInlineImageXObject(_):(0,I.warn)(`Dependent image with object ID ${m} is not ready yet`)}paintInlineImageXObject(m,_){const k=m.width,O=m.height,H=U(m,this.forceDataSchema,!!_),Z=this.svgFactory.createElement("svg:rect");Z.setAttributeNS(null,"x","0"),Z.setAttributeNS(null,"y","0"),Z.setAttributeNS(null,"width",g(k)),Z.setAttributeNS(null,"height",g(O)),this.current.element=Z,this.clip("nonzero");const L=this.svgFactory.createElement("svg:image");L.setAttributeNS(E,"xlink:href",H),L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y",g(-O)),L.setAttributeNS(null,"width",g(k)+"px"),L.setAttributeNS(null,"height",g(O)+"px"),L.setAttributeNS(null,"transform",`scale(${g(1/k)} ${g(-1/O)})`),_?_.appendChild(L):this._ensureTransformGroup().appendChild(L)}paintImageMaskXObject(m){const _=this.current,k=m.width,O=m.height,H=_.fillColor;_.maskId="mask"+P++;const Z=this.svgFactory.createElement("svg:mask");Z.setAttributeNS(null,"id",_.maskId);const L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y","0"),L.setAttributeNS(null,"width",g(k)),L.setAttributeNS(null,"height",g(O)),L.setAttributeNS(null,"fill",H),L.setAttributeNS(null,"mask",`url(#${_.maskId})`),this.defs.appendChild(Z),this._ensureTransformGroup().appendChild(L),this.paintInlineImageXObject(m,Z)}paintFormXObjectBegin(m,_){if(Array.isArray(m)&&6===m.length&&this.transform(m[0],m[1],m[2],m[3],m[4],m[5]),_){const k=_[2]-_[0],O=_[3]-_[1],H=this.svgFactory.createElement("svg:rect");H.setAttributeNS(null,"x",_[0]),H.setAttributeNS(null,"y",_[1]),H.setAttributeNS(null,"width",g(k)),H.setAttributeNS(null,"height",g(O)),this.current.element=H,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(m){const _=this.svgFactory.create(m.width,m.height),k=this.svgFactory.createElement("svg:defs");_.appendChild(k),this.defs=k;const O=this.svgFactory.createElement("svg:g");return O.setAttributeNS(null,"transform",M(m.transform)),_.appendChild(O),this.svg=O,_}_ensureClipGroup(){if(!this.current.clipGroup){const m=this.svgFactory.createElement("svg:g");m.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(m),this.current.clipGroup=m}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",M(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFNodeStream=void 0;var I=He(1),J=He(26);const Ve=__webpack_require__(172),Te=__webpack_require__(2001),Me=__webpack_require__(3779),ce=__webpack_require__(6558),E=/^file:\/\/\/[a-zA-Z]:\//;re.PDFNodeStream=class T{constructor(F){this.source=F,this.url=function Q(P){const F=ce.parse(P);return"file:"===F.protocol||F.host?F:/^[a-z]:[/\\]/i.test(P)?ce.parse(`file:///${P}`):(F.host||(F.protocol="file:"),F)}(F.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&F.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var F,m;return null!=(m=null==(F=this._fullRequestReader)?void 0:F._loaded)?m:0}getFullReader(){return(0,I.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new M(this):new y(this),this._fullRequestReader}getRangeReader(F,m){if(m<=this._progressiveDataLength)return null;const _=this.isFsUrl?new G(this,F,m):new g(this,F,m);return this._rangeRequestReaders.push(_),_}cancelAllRequests(F){this._fullRequestReader&&this._fullRequestReader.cancel(F);for(const m of this._rangeRequestReaders.slice(0))m.cancel(F)}};class W{constructor(F){this._url=F.url,this._done=!1,this._storedError=null,this.onProgress=null;const m=F.source;this._contentLength=m.length,this._loaded=0,this._filename=null,this._disableRange=m.disableRange||!1,this._rangeChunkSize=m.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!m.disableStream,this._isRangeSupported=!m.disableRange,this._readableStream=null,this._readCapability=(0,I.createPromiseCapability)(),this._headersCapability=(0,I.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var F=this;return _asyncToGenerator(function*(){if(yield F._readCapability.promise,F._done)return{value:void 0,done:!0};if(F._storedError)throw F._storedError;const m=F._readableStream.read();return null===m?(F._readCapability=(0,I.createPromiseCapability)(),F.read()):(F._loaded+=m.length,F.onProgress&&F.onProgress({loaded:F._loaded,total:F._contentLength}),{value:new Uint8Array(m).buffer,done:!1})})()}cancel(F){this._readableStream?this._readableStream.destroy(F):this._error(F)}_error(F){this._storedError=F,this._readCapability.resolve()}_setReadableStream(F){this._readableStream=F,F.on("readable",()=>{this._readCapability.resolve()}),F.on("end",()=>{F.destroy(),this._done=!0,this._readCapability.resolve()}),F.on("error",m=>{this._error(m)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new I.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class U{constructor(F){this._url=F.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,I.createPromiseCapability)(),this._isStreamingSupported=!F.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var F=this;return _asyncToGenerator(function*(){if(yield F._readCapability.promise,F._done)return{value:void 0,done:!0};if(F._storedError)throw F._storedError;const m=F._readableStream.read();return null===m?(F._readCapability=(0,I.createPromiseCapability)(),F.read()):(F._loaded+=m.length,F.onProgress&&F.onProgress({loaded:F._loaded}),{value:new Uint8Array(m).buffer,done:!1})})()}cancel(F){this._readableStream?this._readableStream.destroy(F):this._error(F)}_error(F){this._storedError=F,this._readCapability.resolve()}_setReadableStream(F){this._readableStream=F,F.on("readable",()=>{this._readCapability.resolve()}),F.on("end",()=>{F.destroy(),this._done=!0,this._readCapability.resolve()}),F.on("error",m=>{this._error(m)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function S(P,F){return{protocol:P.protocol,auth:P.auth,host:P.hostname,port:P.port,path:P.path,method:"GET",headers:F}}class y extends W{constructor(F){super(F);const m=_=>{if(404===_.statusCode){const Z=new I.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=Z,void this._headersCapability.reject(Z)}this._headersCapability.resolve(),this._setReadableStream(_);const k=Z=>this._readableStream.headers[Z.toLowerCase()],{allowRangeRequests:O,suggestedLength:H}=(0,J.validateRangeRequestCapabilities)({getResponseHeader:k,isHttp:F.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=O,this._contentLength=H||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(k)};this._request=null,this._request="http:"===this._url.protocol?Te.request(S(this._url,F.httpHeaders),m):Me.request(S(this._url,F.httpHeaders),m),this._request.on("error",_=>{this._storedError=_,this._headersCapability.reject(_)}),this._request.end()}}class g extends U{constructor(F,m,_){super(F),this._httpHeaders={};for(const O in F.httpHeaders){const H=F.httpHeaders[O];void 0!==H&&(this._httpHeaders[O]=H)}this._httpHeaders.Range=`bytes=${m}-${_-1}`;const k=O=>{if(404!==O.statusCode)this._setReadableStream(O);else{const H=new I.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=H}};this._request=null,this._request="http:"===this._url.protocol?Te.request(S(this._url,this._httpHeaders),k):Me.request(S(this._url,this._httpHeaders),k),this._request.on("error",O=>{this._storedError=O}),this._request.end()}}class M extends W{constructor(F){super(F);let m=decodeURIComponent(this._url.path);E.test(this._url.href)&&(m=m.replace(/^\//,"")),Ve.lstat(m,(_,k)=>{if(_)return"ENOENT"===_.code&&(_=new I.MissingPDFException(`Missing PDF "${m}".`)),this._storedError=_,void this._headersCapability.reject(_);this._contentLength=k.size,this._setReadableStream(Ve.createReadStream(m)),this._headersCapability.resolve()})}}class G extends U{constructor(F,m,_){super(F);let k=decodeURIComponent(this._url.path);E.test(this._url.href)&&(k=k.replace(/^\//,"")),this._setReadableStream(Ve.createReadStream(k,{start:m,end:_-1}))}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.createResponseStatusError=function ce(Q,T){return 404===Q||0===Q&&T.startsWith("file:")?new I.MissingPDFException('Missing PDF "'+T+'".'):new I.UnexpectedResponseException(`Unexpected server response (${Q}) while retrieving PDF "${T}".`,Q)},re.extractFilenameFromHeader=function Me(Q){const T=Q("Content-Disposition");if(T){let W=(0,J.getFilenameFromContentDispositionHeader)(T);if(W.includes("%"))try{W=decodeURIComponent(W)}catch(U){}if((0,Ve.isPdfFile)(W))return W}return null},re.validateRangeRequestCapabilities=function Te({getResponseHeader:Q,isHttp:T,rangeChunkSize:W,disableRange:U}){const S={allowRangeRequests:!1,suggestedLength:void 0},y=parseInt(Q("Content-Length"),10);return!Number.isInteger(y)||(S.suggestedLength=y,y<=2*W)||U||!T||"bytes"!==Q("Accept-Ranges")||"identity"!==(Q("Content-Encoding")||"identity")||(S.allowRangeRequests=!0),S},re.validateResponseStatus=function E(Q){return 200===Q||206===Q};var I=He(1),J=He(27),Ve=He(5)},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.getFilenameFromContentDispositionHeader=function J(Ve){let Te=!0,Me=ce("filename\\*","i").exec(Ve);if(Me){Me=Me[1];let y=W(Me);return y=unescape(y),y=U(y),y=S(y),Q(y)}if(Me=function T(y){const g=[];let M;const G=ce("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(M=G.exec(y));){let[,F,m,_]=M;if(F=parseInt(F,10),F in g){if(0===F)break}else g[F]=[m,_]}const P=[];for(let F=0;F<g.length&&F in g;++F){let[m,_]=g[F];_=W(_),m&&(_=unescape(_),0===F&&(_=U(_))),P.push(_)}return P.join("")}(Ve),Me)return Q(S(Me));if(Me=ce("filename","i").exec(Ve),Me){Me=Me[1];let y=W(Me);return y=S(y),Q(y)}function ce(y,g){return new RegExp("(?:^|;)\\s*"+y+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',g)}function E(y,g){if(y){if(!/^[\x00-\xFF]+$/.test(g))return g;try{const M=new TextDecoder(y,{fatal:!0}),G=(0,I.stringToBytes)(g);g=M.decode(G),Te=!1}catch(M){}}return g}function Q(y){return Te&&/[\x80-\xff]/.test(y)&&(y=E("utf-8",y),Te&&(y=E("iso-8859-1",y))),y}function W(y){if(y.startsWith('"')){const g=y.slice(1).split('\\"');for(let M=0;M<g.length;++M){const G=g[M].indexOf('"');-1!==G&&(g[M]=g[M].slice(0,G),g.length=M+1),g[M]=g[M].replace(/\\(.)/g,"$1")}y=g.join('"')}return y}function U(y){const g=y.indexOf("'");return-1===g?y:E(y.slice(0,g),y.slice(g+1).replace(/^[^']*'/,""))}function S(y){return!y.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(y)?y:y.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(g,M,G,P){if("q"===G||"Q"===G)return E(M,P=(P=P.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(F,m){return String.fromCharCode(parseInt(m,16))}));try{P=atob(P)}catch(F){}return E(M,P)})}return""};var I=He(1)},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFNetworkStream=void 0;var I=He(1),J=He(26);class ce{constructor(U,S={}){this.url=U,this.isHttp=/^https?:/i.test(U),this.httpHeaders=this.isHttp&&S.httpHeaders||Object.create(null),this.withCredentials=S.withCredentials||!1,this.getXhr=S.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(U,S,y){const g={begin:U,end:S};for(const M in y)g[M]=y[M];return this.request(g)}requestFull(U){return this.request(U)}request(U){const S=this.getXhr(),y=this.currXhrId++,g=this.pendingRequests[y]={xhr:S};S.open("GET",this.url),S.withCredentials=this.withCredentials;for(const M in this.httpHeaders){const G=this.httpHeaders[M];void 0!==G&&S.setRequestHeader(M,G)}return this.isHttp&&"begin"in U&&"end"in U?(S.setRequestHeader("Range",`bytes=${U.begin}-${U.end-1}`),g.expectedStatus=206):g.expectedStatus=200,S.responseType="arraybuffer",U.onError&&(S.onerror=function(M){U.onError(S.status)}),S.onreadystatechange=this.onStateChange.bind(this,y),S.onprogress=this.onProgress.bind(this,y),g.onHeadersReceived=U.onHeadersReceived,g.onDone=U.onDone,g.onError=U.onError,g.onProgress=U.onProgress,S.send(null),y}onProgress(U,S){var g;const y=this.pendingRequests[U];!y||null==(g=y.onProgress)||g.call(y,S)}onStateChange(U,S){var F,m,_;const y=this.pendingRequests[U];if(!y)return;const g=y.xhr;if(g.readyState>=2&&y.onHeadersReceived&&(y.onHeadersReceived(),delete y.onHeadersReceived),4!==g.readyState||!(U in this.pendingRequests))return;if(delete this.pendingRequests[U],0===g.status&&this.isHttp)return void(null==(F=y.onError)||F.call(y,g.status));const M=g.status||200;if((200!==M||206!==y.expectedStatus)&&M!==y.expectedStatus)return void(null==(m=y.onError)||m.call(y,g.status));const P=function Me(W){const U=W.response;return"string"!=typeof U?U:(0,I.stringToBytes)(U).buffer}(g);if(206===M){const k=g.getResponseHeader("Content-Range"),O=/bytes (\d+)-(\d+)\/(\d+)/.exec(k);y.onDone({begin:parseInt(O[1],10),chunk:P})}else P?y.onDone({begin:0,chunk:P}):null==(_=y.onError)||_.call(y,g.status)}getRequestXhr(U){return this.pendingRequests[U].xhr}isPendingRequest(U){return U in this.pendingRequests}abortRequest(U){const S=this.pendingRequests[U].xhr;delete this.pendingRequests[U],S.abort()}}re.PDFNetworkStream=class E{constructor(U){this._source=U,this._manager=new ce(U.url,{httpHeaders:U.httpHeaders,withCredentials:U.withCredentials}),this._rangeChunkSize=U.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(U){const S=this._rangeRequestReaders.indexOf(U);S>=0&&this._rangeRequestReaders.splice(S,1)}getFullReader(){return(0,I.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new Q(this._manager,this._source),this._fullRequestReader}getRangeReader(U,S){const y=new T(this._manager,U,S);return y.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(y),y}cancelAllRequests(U){var S;null==(S=this._fullRequestReader)||S.cancel(U);for(const y of this._rangeRequestReaders.slice(0))y.cancel(U)}};class Q{constructor(U,S){this._manager=U;const y={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=S.url,this._fullRequestId=U.requestFull(y),this._headersReceivedCapability=(0,I.createPromiseCapability)(),this._disableRange=S.disableRange||!1,this._contentLength=S.length,this._rangeChunkSize=S.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const U=this._fullRequestId,S=this._manager.getRequestXhr(U),y=G=>S.getResponseHeader(G),{allowRangeRequests:g,suggestedLength:M}=(0,J.validateRangeRequestCapabilities)({getResponseHeader:y,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});g&&(this._isRangeSupported=!0),this._contentLength=M||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(y),this._isRangeSupported&&this._manager.abortRequest(U),this._headersReceivedCapability.resolve()}_onDone(U){if(U&&(this._requests.length>0?this._requests.shift().resolve({value:U.chunk,done:!1}):this._cachedChunks.push(U.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const S of this._requests)S.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(U){this._storedError=(0,J.createResponseStatusError)(U,this._url),this._headersReceivedCapability.reject(this._storedError);for(const S of this._requests)S.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(U){var S;null==(S=this.onProgress)||S.call(this,{loaded:U.loaded,total:U.lengthComputable?U.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var U=this;return _asyncToGenerator(function*(){if(U._storedError)throw U._storedError;if(U._cachedChunks.length>0)return{value:U._cachedChunks.shift(),done:!1};if(U._done)return{value:void 0,done:!0};const S=(0,I.createPromiseCapability)();return U._requests.push(S),S.promise})()}cancel(U){this._done=!0,this._headersReceivedCapability.reject(U);for(const S of this._requests)S.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class T{constructor(U,S,y){this._manager=U;const g={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=U.url,this._requestId=U.requestRange(S,y,g),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var U;null==(U=this.onClosed)||U.call(this,this)}_onDone(U){const S=U.chunk;this._requests.length>0?this._requests.shift().resolve({value:S,done:!1}):this._queuedChunk=S,this._done=!0;for(const y of this._requests)y.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(U){this._storedError=(0,J.createResponseStatusError)(U,this._url);for(const S of this._requests)S.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(U){var S;this.isStreamingSupported||null==(S=this.onProgress)||S.call(this,{loaded:U.loaded})}get isStreamingSupported(){return!1}read(){var U=this;return _asyncToGenerator(function*(){if(U._storedError)throw U._storedError;if(null!==U._queuedChunk){const y=U._queuedChunk;return U._queuedChunk=null,{value:y,done:!1}}if(U._done)return{value:void 0,done:!0};const S=(0,I.createPromiseCapability)();return U._requests.push(S),S.promise})()}cancel(U){this._done=!0;for(const S of this._requests)S.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFFetchStream=void 0;var I=He(1),J=He(26);function Ve(Q,T,W){return{method:"GET",headers:Q,signal:null==W?void 0:W.signal,mode:"cors",credentials:T?"include":"same-origin",redirect:"follow"}}function Te(Q){const T=new Headers;for(const W in Q){const U=Q[W];void 0!==U&&T.append(W,U)}return T}re.PDFFetchStream=class Me{constructor(T){this.source=T,this.isHttp=/^https?:/i.test(T.url),this.httpHeaders=this.isHttp&&T.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var T,W;return null!=(W=null==(T=this._fullRequestReader)?void 0:T._loaded)?W:0}getFullReader(){return(0,I.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new ce(this),this._fullRequestReader}getRangeReader(T,W){if(W<=this._progressiveDataLength)return null;const U=new E(this,T,W);return this._rangeRequestReaders.push(U),U}cancelAllRequests(T){this._fullRequestReader&&this._fullRequestReader.cancel(T);for(const W of this._rangeRequestReaders.slice(0))W.cancel(T)}};class ce{constructor(T){this._stream=T,this._reader=null,this._loaded=0,this._filename=null;const W=T.source;this._withCredentials=W.withCredentials||!1,this._contentLength=W.length,this._headersCapability=(0,I.createPromiseCapability)(),this._disableRange=W.disableRange||!1,this._rangeChunkSize=W.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!W.disableStream,this._isRangeSupported=!W.disableRange,this._headers=Te(this._stream.httpHeaders);const U=W.url;fetch(U,Ve(this._headers,this._withCredentials,this._abortController)).then(S=>{if(!(0,J.validateResponseStatus)(S.status))throw(0,J.createResponseStatusError)(S.status,U);this._reader=S.body.getReader(),this._headersCapability.resolve();const y=G=>S.headers.get(G),{allowRangeRequests:g,suggestedLength:M}=(0,J.validateRangeRequestCapabilities)({getResponseHeader:y,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=g,this._contentLength=M||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(y),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new I.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var T=this;return _asyncToGenerator(function*(){yield T._headersCapability.promise;const{value:W,done:U}=yield T._reader.read();return U?{value:W,done:U}:(T._loaded+=W.byteLength,T.onProgress&&T.onProgress({loaded:T._loaded,total:T._contentLength}),{value:new Uint8Array(W).buffer,done:!1})})()}cancel(T){this._reader&&this._reader.cancel(T),this._abortController&&this._abortController.abort()}}class E{constructor(T,W,U){this._stream=T,this._reader=null,this._loaded=0;const S=T.source;this._withCredentials=S.withCredentials||!1,this._readCapability=(0,I.createPromiseCapability)(),this._isStreamingSupported=!S.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=Te(this._stream.httpHeaders),this._headers.append("Range",`bytes=${W}-${U-1}`);const y=S.url;fetch(y,Ve(this._headers,this._withCredentials,this._abortController)).then(g=>{if(!(0,J.validateResponseStatus)(g.status))throw(0,J.createResponseStatusError)(g.status,y);this._readCapability.resolve(),this._reader=g.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var T=this;return _asyncToGenerator(function*(){yield T._readCapability.promise;const{value:W,done:U}=yield T._reader.read();return U?{value:W,done:U}:(T._loaded+=W.byteLength,T.onProgress&&T.onProgress({loaded:T._loaded}),{value:new Uint8Array(W).buffer,done:!1})})()}cancel(T){this._reader&&this._reader.cancel(T),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(Ze){var re=__webpack_module_cache__[Ze];if(void 0!==re)return re.exports;var He=__webpack_module_cache__[Ze]={exports:{}};return __webpack_modules__[Ze](He,He.exports,__w_pdfjs_require__),He.exports}var __webpack_exports__={};return(()=>{var Ze=__webpack_exports__;Object.defineProperty(Ze,"__esModule",{value:!0}),Object.defineProperty(Ze,"AnnotationLayer",{enumerable:!0,get:function(){return J.AnnotationLayer}}),Object.defineProperty(Ze,"AnnotationMode",{enumerable:!0,get:function(){return re.AnnotationMode}}),Object.defineProperty(Ze,"CMapCompressionType",{enumerable:!0,get:function(){return re.CMapCompressionType}}),Object.defineProperty(Ze,"GlobalWorkerOptions",{enumerable:!0,get:function(){return Ve.GlobalWorkerOptions}}),Object.defineProperty(Ze,"InvalidPDFException",{enumerable:!0,get:function(){return re.InvalidPDFException}}),Object.defineProperty(Ze,"LoopbackPort",{enumerable:!0,get:function(){return He.LoopbackPort}}),Object.defineProperty(Ze,"MissingPDFException",{enumerable:!0,get:function(){return re.MissingPDFException}}),Object.defineProperty(Ze,"OPS",{enumerable:!0,get:function(){return re.OPS}}),Object.defineProperty(Ze,"PDFDataRangeTransport",{enumerable:!0,get:function(){return He.PDFDataRangeTransport}}),Object.defineProperty(Ze,"PDFDateString",{enumerable:!0,get:function(){return I.PDFDateString}}),Object.defineProperty(Ze,"PDFWorker",{enumerable:!0,get:function(){return He.PDFWorker}}),Object.defineProperty(Ze,"PasswordResponses",{enumerable:!0,get:function(){return re.PasswordResponses}}),Object.defineProperty(Ze,"PermissionFlag",{enumerable:!0,get:function(){return re.PermissionFlag}}),Object.defineProperty(Ze,"PixelsPerInch",{enumerable:!0,get:function(){return I.PixelsPerInch}}),Object.defineProperty(Ze,"RenderingCancelledException",{enumerable:!0,get:function(){return I.RenderingCancelledException}}),Object.defineProperty(Ze,"SVGGraphics",{enumerable:!0,get:function(){return ce.SVGGraphics}}),Object.defineProperty(Ze,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return re.UNSUPPORTED_FEATURES}}),Object.defineProperty(Ze,"UnexpectedResponseException",{enumerable:!0,get:function(){return re.UnexpectedResponseException}}),Object.defineProperty(Ze,"Util",{enumerable:!0,get:function(){return re.Util}}),Object.defineProperty(Ze,"VerbosityLevel",{enumerable:!0,get:function(){return re.VerbosityLevel}}),Object.defineProperty(Ze,"XfaLayer",{enumerable:!0,get:function(){return E.XfaLayer}}),Object.defineProperty(Ze,"build",{enumerable:!0,get:function(){return He.build}}),Object.defineProperty(Ze,"createPromiseCapability",{enumerable:!0,get:function(){return re.createPromiseCapability}}),Object.defineProperty(Ze,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return re.createValidAbsoluteUrl}}),Object.defineProperty(Ze,"getDocument",{enumerable:!0,get:function(){return He.getDocument}}),Object.defineProperty(Ze,"getFilenameFromUrl",{enumerable:!0,get:function(){return I.getFilenameFromUrl}}),Object.defineProperty(Ze,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return I.getPdfFilenameFromUrl}}),Object.defineProperty(Ze,"getXfaPageViewport",{enumerable:!0,get:function(){return I.getXfaPageViewport}}),Object.defineProperty(Ze,"isPdfFile",{enumerable:!0,get:function(){return I.isPdfFile}}),Object.defineProperty(Ze,"loadScript",{enumerable:!0,get:function(){return I.loadScript}}),Object.defineProperty(Ze,"renderTextLayer",{enumerable:!0,get:function(){return Me.renderTextLayer}}),Object.defineProperty(Ze,"shadow",{enumerable:!0,get:function(){return re.shadow}}),Object.defineProperty(Ze,"version",{enumerable:!0,get:function(){return He.version}});var re=__w_pdfjs_require__(1),He=__w_pdfjs_require__(4),I=__w_pdfjs_require__(5),J=__w_pdfjs_require__(20),Ve=__w_pdfjs_require__(13),Te=__w_pdfjs_require__(3),Me=__w_pdfjs_require__(23),ce=__w_pdfjs_require__(24),E=__w_pdfjs_require__(22);if(Te.isNodeJS){const{PDFNodeStream:W}=__w_pdfjs_require__(25);(0,He.setPDFNetworkStreamFactory)(U=>new W(U))}else{const{PDFNetworkStream:W}=__w_pdfjs_require__(28),{PDFFetchStream:U}=__w_pdfjs_require__(29);(0,He.setPDFNetworkStreamFactory)(S=>(0,I.isValidFetchUrl)(S.url)?new U(S):new W(S))}})(),__webpack_exports__})(),module.exports=He()},2813:function(Ze,re,He){var Te,I=He(7156).default;Te=()=>(()=>{"use strict";var J=[,(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.DefaultXfaLayerFactory=E.DefaultTextLayerFactory=E.DefaultStructTreeLayerFactory=E.DefaultAnnotationLayerFactory=void 0;var T=Q(2),W=Q(4),U=Q(5),S=Q(7),y=Q(8),g=Q(9);E.DefaultAnnotationLayerFactory=class M{createAnnotationLayerBuilder(_,k,O=null,H="",Z=!0,L=W.NullL10n,V=!1,te=null,ue=null,fe=null,we=null){return new T.AnnotationLayerBuilder({pageDiv:_,pdfPage:k,imageResourcesPath:H,renderForms:Z,linkService:new U.SimpleLinkService,l10n:L,annotationStorage:O,enableScripting:V,hasJSActionsPromise:te,fieldObjectsPromise:fe,mouseState:ue,annotationCanvasMap:we})}},E.DefaultStructTreeLayerFactory=class G{createStructTreeLayerBuilder(_){return new S.StructTreeLayerBuilder({pdfPage:_})}},E.DefaultTextLayerFactory=class P{createTextLayerBuilder(_,k,O,H=!1,Z,L){return new y.TextLayerBuilder({textLayerDiv:_,pageIndex:k,viewport:O,enhanceTextSelection:H,eventBus:Z,highlighter:L})}},E.DefaultXfaLayerFactory=class F{createXfaLayerBuilder(_,k,O=null,H=null){return new g.XfaLayerBuilder({pageDiv:_,pdfPage:k,annotationStorage:O,linkService:new U.SimpleLinkService,xfaHtml:H})}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.AnnotationLayerBuilder=void 0;var T=Q(3),W=Q(4);E.AnnotationLayerBuilder=class U{constructor({pageDiv:y,pdfPage:g,linkService:M,downloadManager:G,annotationStorage:P=null,imageResourcesPath:F="",renderForms:m=!0,l10n:_=W.NullL10n,enableScripting:k=!1,hasJSActionsPromise:O=null,fieldObjectsPromise:H=null,mouseState:Z=null,annotationCanvasMap:L=null}){this.pageDiv=y,this.pdfPage=g,this.linkService=M,this.downloadManager=G,this.imageResourcesPath=F,this.renderForms=m,this.l10n=_,this.annotationStorage=P,this.enableScripting=k,this._hasJSActionsPromise=O,this._fieldObjectsPromise=H,this._mouseState=Z,this._annotationCanvasMap=L,this.div=null,this._cancelled=!1}render(y,g="display"){var M=this;return I(function*(){const[G,P=!1,F=null]=yield Promise.all([M.pdfPage.getAnnotations({intent:g}),M._hasJSActionsPromise,M._fieldObjectsPromise]);if(M._cancelled||0===G.length)return;const m={viewport:y.clone({dontFlip:!0}),div:M.div,annotations:G,page:M.pdfPage,imageResourcesPath:M.imageResourcesPath,renderForms:M.renderForms,linkService:M.linkService,downloadManager:M.downloadManager,annotationStorage:M.annotationStorage,enableScripting:M.enableScripting,hasJSActions:P,fieldObjects:F,mouseState:M._mouseState,annotationCanvasMap:M._annotationCanvasMap};M.div?T.AnnotationLayer.update(m):(M.div=document.createElement("div"),M.div.className="annotationLayer",M.pageDiv.appendChild(M.div),m.div=M.div,T.AnnotationLayer.render(m),M.l10n.translate(M.div))})()}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},ce=>{let E;E="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:He(6036),ce.exports=E},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.NullL10n=void 0,E.fixupLangCode=function U(g){return W[null==g?void 0:g.toLowerCase()]||g},E.getL10nFallback=T;const Q={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading\u2026",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts."};function T(g,M){switch(g){case"find_match_count":g=`find_match_count[${1===M.total?"one":"other"}]`;break;case"find_match_count_limit":g=`find_match_count_limit[${1===M.limit?"one":"other"}]`}return Q[g]||""}const W={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};E.NullL10n={getLanguage:()=>I(function*(){return"en-us"})(),getDirection:()=>I(function*(){return"ltr"})(),get:(g,M=null,G=T(g,M))=>I(function*(){return function S(g,M){return M?g.replace(/\{\{\s*(\w+)\s*\}\}/g,(G,P)=>P in M?M[P]:"{{"+P+"}}"):g}(G,M)})(),translate:g=>I(function*(){})()}},(ce,E,Q)=>{var M,G,j1,F,sz;Object.defineProperty(E,"__esModule",{value:!0}),E.SimpleLinkService=E.PDFLinkService=E.LinkTarget=void 0;var T=Q(6);const U={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function S(k,{url:O,target:H,rel:Z,enabled:L=!0}={}){if(!O||"string"!=typeof O)throw new Error('A valid "url" parameter must provided.');const V=(0,T.removeNullCharacters)(O);L?k.href=k.title=V:(k.href="",k.title=`Disabled: ${V}`,k.onclick=()=>!1);let te="";switch(H){case U.NONE:break;case U.SELF:te="_self";break;case U.BLANK:te="_blank";break;case U.PARENT:te="_parent";break;case U.TOP:te="_top"}k.target=te,k.rel="string"==typeof Z?Z:"noopener noreferrer nofollow"}E.LinkTarget=U;const _=class{constructor({eventBus:O,externalLinkTarget:H=null,externalLinkRel:Z=null,ignoreDestinationZoom:L=!1}={}){Gt(this,G),Gt(this,M,new Map),this.eventBus=O,this.externalLinkTarget=H,this.externalLinkRel=Z,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=L,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(O,H=null){this.baseUrl=H,this.pdfDocument=O,Rt(this,M).clear()}setViewer(O){this.pdfViewer=O}setHistory(O){this.pdfHistory=O}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(O){this.pdfViewer.currentPageNumber=O}get rotation(){return this.pdfViewer.pagesRotation}set rotation(O){this.pdfViewer.pagesRotation=O}goToDestination(O){var H=this;return I(function*(){var V;if(!H.pdfDocument)return;let Z,L;"string"==typeof O?(Z=O,L=yield H.pdfDocument.getDestination(O)):(Z=null,L=yield O),Array.isArray(L)?Nt(V=H,G,j1).call(V,O,Z,L):console.error(`PDFLinkService.goToDestination: "${L}" is not a valid destination array, for dest="${O}".`)})()}goToPage(O){if(!this.pdfDocument)return;const H="string"==typeof O&&this.pdfViewer.pageLabelToPageNumber(O)||0|O;Number.isInteger(H)&&H>0&&H<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(H)),this.pdfViewer.scrollPageIntoView({pageNumber:H})):console.error(`PDFLinkService.goToPage: "${O}" is not a valid page.`)}addLinkAttributes(O,H,Z=!1){S(O,{url:H,target:Z?U.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(O){if("string"==typeof O){if(O.length>0)return this.getAnchorUrl("#"+escape(O))}else if(Array.isArray(O)){const H=JSON.stringify(O);if(H.length>0)return this.getAnchorUrl("#"+escape(H))}return this.getAnchorUrl("")}getAnchorUrl(O){return(this.baseUrl||"")+O}setHash(O){var L;if(!this.pdfDocument)return;let H,Z;if(O.includes("=")){const V=(0,T.parseQueryString)(O);if(V.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:V.get("search").replace(/"/g,""),phraseSearch:"true"===V.get("phrase")}),V.has("page")&&(H=0|V.get("page")||1),V.has("zoom")){const te=V.get("zoom").split(","),ue=te[0],fe=parseFloat(ue);ue.includes("Fit")?"Fit"===ue||"FitB"===ue?Z=[null,{name:ue}]:"FitH"===ue||"FitBH"===ue||"FitV"===ue||"FitBV"===ue?Z=[null,{name:ue},te.length>1?0|te[1]:null]:"FitR"===ue?5!==te.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):Z=[null,{name:ue},0|te[1],0|te[2],0|te[3],0|te[4]]:console.error(`PDFLinkService.setHash: "${ue}" is not a valid zoom value.`):Z=[null,{name:"XYZ"},te.length>1?0|te[1]:null,te.length>2?0|te[2]:null,fe?fe/100:ue]}Z?this.pdfViewer.scrollPageIntoView({pageNumber:H||this.page,destArray:Z,allowNegativeOffset:!0}):H&&(this.page=H),V.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:V.get("pagemode")}),V.has("nameddest")&&this.goToDestination(V.get("nameddest"))}else{Z=unescape(O);try{Z=JSON.parse(Z),Array.isArray(Z)||(Z=Z.toString())}catch(V){}if("string"==typeof Z||Nt(L=_,F,sz).call(L,Z))return void this.goToDestination(Z);console.error(`PDFLinkService.setHash: "${unescape(O)}" is not a valid destination.`)}}executeNamedAction(O){var H,Z;switch(O){case"GoBack":null==(H=this.pdfHistory)||H.back();break;case"GoForward":null==(Z=this.pdfHistory)||Z.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:O})}cachePageRef(O,H){if(!H)return;const Z=0===H.gen?`${H.num}R`:`${H.num}R${H.gen}`;Rt(this,M).set(Z,O)}_cachedPageNumber(O){if(!O)return null;const H=0===O.gen?`${O.num}R`:`${O.num}R${O.gen}`;return Rt(this,M).get(H)||null}isPageVisible(O){return this.pdfViewer.isPageVisible(O)}isPageCached(O){return this.pdfViewer.isPageCached(O)}};let y=_;M=new WeakMap,G=new WeakSet,j1=function(O,H=null,Z){const L=Z[0];let V;if("object"==typeof L&&null!==L){if(V=this._cachedPageNumber(L),!V)return void this.pdfDocument.getPageIndex(L).then(te=>{this.cachePageRef(te+1,L),Nt(this,G,j1).call(this,O,H,Z)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${L}" is not a valid page reference, for dest="${O}".`)})}else{if(!Number.isInteger(L))return void console.error(`PDFLinkService.#goToDestinationHelper: "${L}" is not a valid destination reference, for dest="${O}".`);V=L+1}!V||V<1||V>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${V}" is not a valid page number, for dest="${O}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:H,explicitDest:Z,pageNumber:V})),this.pdfViewer.scrollPageIntoView({pageNumber:V,destArray:Z,ignoreDestinationZoom:this._ignoreDestinationZoom}))},F=new WeakSet,sz=function(O){if(!Array.isArray(O))return!1;const H=O.length;if(H<2)return!1;const Z=O[0];if(!("object"==typeof Z&&Number.isInteger(Z.num)&&Number.isInteger(Z.gen)||Number.isInteger(Z)&&Z>=0))return!1;const L=O[1];if("object"!=typeof L||"string"!=typeof L.name)return!1;let V=!0;switch(L.name){case"XYZ":if(5!==H)return!1;break;case"Fit":case"FitB":return 2===H;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==H)return!1;break;case"FitR":if(6!==H)return!1;V=!1;break;default:return!1}for(let te=2;te<H;te++){const ue=O[te];if(!("number"==typeof ue||V&&null===ue))return!1}return!0},Gt(y,F),E.PDFLinkService=y,E.SimpleLinkService=class g{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(O){}get rotation(){return 0}set rotation(O){}goToDestination(O){return I(function*(){})()}goToPage(O){}addLinkAttributes(O,H,Z=!1){S(O,{url:H,enabled:this.externalLinkEnabled})}getDestinationHash(O){return"#"}getAnchorUrl(O){return"#"}setHash(O){}executeNamedAction(O){}cachePageRef(O,H){}isPageVisible(O){return!0}isPageCached(O){return!0}}},(ce,E)=>{var Ue,oz;Object.defineProperty(E,"__esModule",{value:!0}),E.animationStarted=E.VERTICAL_PADDING=E.UNKNOWN_SCALE=E.TextLayerMode=E.SpreadMode=E.SidebarView=E.ScrollMode=E.SCROLLBAR_PADDING=E.RenderingStates=E.RendererType=E.ProgressBar=E.PresentationModeState=E.OutputScale=E.MIN_SCALE=E.MAX_SCALE=E.MAX_AUTO_SCALE=E.DEFAULT_SCALE_VALUE=E.DEFAULT_SCALE_DELTA=E.DEFAULT_SCALE=E.AutoPrintRegExp=void 0,E.apiPageLayoutToViewerModes=function ke(De){let je=O.VERTICAL,ze=H.NONE;switch(De){case"SinglePage":je=O.PAGE;break;case"OneColumn":break;case"TwoPageLeft":je=O.PAGE;case"TwoColumnLeft":ze=H.ODD;break;case"TwoPageRight":je=O.PAGE;case"TwoColumnRight":ze=H.EVEN}return{scrollMode:je,spreadMode:ze}},E.apiPageModeToSidebarView=function Ae(De){switch(De){case"UseNone":return m.NONE;case"UseThumbs":return m.THUMBS;case"UseOutlines":return m.OUTLINE;case"UseAttachments":return m.ATTACHMENTS;case"UseOC":return m.LAYERS}return m.NONE},E.approximateFraction=function _e(De){if(Math.floor(De)===De)return[De,1];const je=1/De;if(je>8)return[1,8];if(Math.floor(je)===je)return[1,je];const q=De>1?je:De;let Ke,le=0,Ee=1,Xe=1,Ye=1;for(;;){const ut=le+Xe,pt=Ee+Ye;if(pt>8)break;q<=ut/pt?(Xe=ut,Ye=pt):(le=ut,Ee=pt)}return Ke=q-le/Ee<Xe/Ye-q?q===De?[le,Ee]:[Ee,le]:q===De?[Xe,Ye]:[Ye,Xe],Ke},E.backtrackBeforeAllVisibleElements=X,E.binarySearchFirstItem=Se,E.getActiveOrFocusedElement=function be(){let De=document,je=De.activeElement||De.querySelector(":focus");for(;null!=je&&je.shadowRoot;)De=je.shadowRoot,je=De.activeElement||De.querySelector(":focus");return je},E.getPageSizeInches=function Be({view:De,userUnit:je,rotate:ze}){const[q,le,Ee,Xe]=De,Ye=ze%180!=0,Ke=(Ee-q)/72*je,ut=(Xe-le)/72*je;return{width:Ye?ut:Ke,height:Ye?Ke:ut}},E.getVisibleElements=function C({scrollEl:De,views:je,sortByVisibility:ze=!1,horizontal:q=!1,rtl:le=!1}){const Ee=De.scrollTop,Xe=Ee+De.clientHeight,Ye=De.scrollLeft,Ke=Ye+De.clientWidth,Vt=[],ln=new Set,Tn=je.length;let Ne=Se(je,q?function pt(tt){const at=tt.div,gt=at.offsetLeft+at.clientLeft;return le?gt<Ke:gt+at.clientWidth>Ye}:function ut(tt){const at=tt.div;return at.offsetTop+at.clientTop+at.clientHeight>Ee});Ne>0&&Ne<Tn&&!q&&(Ne=X(Ne,je,Ee));let ae=q?Ke:-1;for(let tt=Ne;tt<Tn;tt++){const at=je[tt],gt=at.div,hn=gt.offsetLeft+gt.clientLeft,bn=gt.offsetTop+gt.clientTop,hi=gt.clientWidth,Fn=gt.clientHeight,Li=hn+hi,yi=bn+Fn;if(-1===ae)yi>=Xe&&(ae=yi);else if((q?hn:bn)>ae)break;if(yi<=Ee||bn>=Xe||Li<=Ye||hn>=Ke)continue;const ms=Math.max(0,Ee-bn)+Math.max(0,yi-Xe),Fs=(hi-(Math.max(0,Ye-hn)+Math.max(0,Li-Ke)))/hi;Vt.push({id:at.id,x:hn,y:bn,view:at,percent:(Fn-ms)/Fn*Fs*100|0,widthPercent:100*Fs|0}),ln.add(at.id)}const de=Vt[0],We=Vt[Vt.length-1];return ze&&Vt.sort(function(tt,at){const gt=tt.percent-at.percent;return Math.abs(gt)>.001?-gt:tt.id-at.id}),{first:de,last:We,views:Vt,ids:ln}},E.isPortraitOrientation=function z(De){return De.width<=De.height},E.isValidRotation=function A(De){return Number.isInteger(De)&&De%90==0},E.isValidScrollMode=function N(De){return Number.isInteger(De)&&Object.values(O).includes(De)&&De!==O.UNKNOWN},E.isValidSpreadMode=function j(De){return Number.isInteger(De)&&Object.values(H).includes(De)&&De!==H.UNKNOWN},E.noContextMenuHandler=function b(De){De.preventDefault()},E.normalizeWheelEventDelta=function D(De){let je=p(De);return 0===De.deltaMode?je/=900:1===De.deltaMode&&(je/=30),je},E.normalizeWheelEventDirection=p,E.parseQueryString=function ue(De){const je=new Map;for(const[ze,q]of new URLSearchParams(De))je.set(ze.toLowerCase(),q);return je},E.removeNullCharacters=function oe(De,je=!1){return"string"!=typeof De?(console.error("The argument must be a string."),De):(je&&(De=De.replace(we," ")),De.replace(fe,""))},E.roundToDivide=function Ce(De,je){const ze=De%je;return 0===ze?De:Math.round(De-ze+je)},E.scrollIntoView=function V(De,je,ze=!1){let q=De.offsetParent;if(!q)return void console.error("offsetParent is not set -- cannot scroll");let le=De.offsetTop+De.clientTop,Ee=De.offsetLeft+De.clientLeft;for(;q.clientHeight===q.scrollHeight&&q.clientWidth===q.scrollWidth||ze&&(q.classList.contains("markedContent")||"hidden"===getComputedStyle(q).overflow);)if(le+=q.offsetTop,Ee+=q.offsetLeft,q=q.offsetParent,!q)return;je&&(void 0!==je.top&&(le+=je.top),void 0!==je.left&&(Ee+=je.left,q.scrollLeft=Ee)),q.scrollTop=le},E.watchScroll=function te(De,je){const ze=function(Ee){le||(le=window.requestAnimationFrame(function(){le=null;const Ye=De.scrollLeft,Ke=q.lastX;Ye!==Ke&&(q.right=Ye>Ke),q.lastX=Ye;const ut=De.scrollTop,pt=q.lastY;ut!==pt&&(q.down=ut>pt),q.lastY=ut,je(q)}))},q={right:!0,down:!0,lastX:De.scrollLeft,lastY:De.scrollTop,_eventHandler:ze};let le=null;return De.addEventListener("scroll",ze,!0),q},E.DEFAULT_SCALE_VALUE="auto",E.DEFAULT_SCALE=1,E.DEFAULT_SCALE_DELTA=1.1,E.MIN_SCALE=.1,E.MAX_SCALE=10,E.UNKNOWN_SCALE=0,E.MAX_AUTO_SCALE=1.25,E.SCROLLBAR_PADDING=40,E.VERTICAL_PADDING=5,E.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},E.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const m={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};E.SidebarView=m,E.RendererType={CANVAS:"canvas",SVG:"svg"},E.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const O={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};E.ScrollMode=O;const H={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};E.SpreadMode=H,E.AutoPrintRegExp=/\bprint\s*\(/,E.OutputScale=class L{constructor(){const je=window.devicePixelRatio||1;this.sx=je,this.sy=je}get scaled(){return 1!==this.sx||1!==this.sy}};const fe=/\x00/g,we=/[\x01-\x1F]/g;function Se(De,je,ze=0){let q=ze,le=De.length-1;if(le<0||!je(De[le]))return De.length;if(je(De[q]))return q;for(;q<le;){const Ee=q+le>>1;je(De[Ee])?le=Ee:q=Ee+1}return q}function X(De,je,ze){if(De<2)return De;let q=je[De].div,le=q.offsetTop+q.clientTop;le>=ze&&(q=je[De-1].div,le=q.offsetTop+q.clientTop);for(let Ee=De-2;Ee>=0&&(q=je[Ee].div,!(q.offsetTop+q.clientTop+q.clientHeight<=le));--Ee)De=Ee;return De}function p(De){let je=Math.hypot(De.deltaX,De.deltaY);const ze=Math.atan2(De.deltaY,De.deltaX);return-.25*Math.PI<ze&&ze<.75*Math.PI&&(je=-je),je}const pe=new Promise(function(De){window.requestAnimationFrame(De)});E.animationStarted=pe,Ue=new WeakSet,oz=function(){this._indeterminate?this.div.classList.add("indeterminate"):(this.div.classList.remove("indeterminate"),document.documentElement.style.setProperty("--progressBar-percent",`${this._percent}%`))},E.ProgressBar=class ge{constructor(je){if(Gt(this,Ue),arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");this.visible=!0,this.div=document.querySelector(je+" .progress"),this.bar=this.div.parentNode,this.percent=0}get percent(){return this._percent}set percent(je){this._indeterminate=isNaN(je),this._percent=function he(De,je,ze){return Math.min(Math.max(De,je),ze)}(je,0,100),Nt(this,Ue,oz).call(this)}setWidth(je){if(!je)return;const q=je.parentNode.offsetWidth-je.offsetWidth;q>0&&document.documentElement.style.setProperty("--progressBar-end-offset",`${q}px`)}hide(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"))}show(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.StructTreeLayerBuilder=void 0;const Q={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},T=/^H(\d+)$/;E.StructTreeLayerBuilder=class W{constructor({pdfPage:S}){this.pdfPage=S}render(S){return this._walk(S)}_setAttributes(S,y){void 0!==S.alt&&y.setAttribute("aria-label",S.alt),void 0!==S.id&&y.setAttribute("aria-owns",S.id),void 0!==S.lang&&y.setAttribute("lang",S.lang)}_walk(S){if(!S)return null;const y=document.createElement("span");if("role"in S){const{role:g}=S,M=g.match(T);M?(y.setAttribute("role","heading"),y.setAttribute("aria-level",M[1])):Q[g]&&y.setAttribute("role",Q[g])}if(this._setAttributes(S,y),S.children)if(1===S.children.length&&"id"in S.children[0])this._setAttributes(S.children[0],y);else for(const g of S.children)y.appendChild(this._walk(g));return y}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.TextLayerBuilder=void 0;var T=Q(3);E.TextLayerBuilder=class U{constructor({textLayerDiv:y,eventBus:g,pageIndex:M,viewport:G,highlighter:P=null,enhanceTextSelection:F=!1}){this.textLayerDiv=y,this.eventBus=g,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=M+1,this.viewport=G,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=P,this.enhanceTextSelection=F,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const y=document.createElement("div");y.className="endOfContent",this.textLayerDiv.appendChild(y)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(y=0){var M;if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,null==(M=this.highlighter)||M.setTextMapping(this.textDivs,this.textContentItemsStr);const g=document.createDocumentFragment();this.textLayerRenderTask=(0,T.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:g,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:y,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{var G;this.textLayerDiv.appendChild(g),this._finishRendering(),null==(G=this.highlighter)||G.enable()},function(G){})}cancel(){var y;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),null==(y=this.highlighter)||y.disable()}setTextContentStream(y){this.cancel(),this.textContentStream=y}setTextContent(y){this.cancel(),this.textContent=y}_bindMouse(){const y=this.textLayerDiv;let g=null;y.addEventListener("mousedown",M=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(g&&(clearTimeout(g),g=null));const G=y.querySelector(".endOfContent");if(!G)return;let P=M.target!==y;if(P=P&&"none"!==window.getComputedStyle(G).getPropertyValue("-moz-user-select"),P){const F=y.getBoundingClientRect(),m=Math.max(0,(M.pageY-F.top)/F.height);G.style.top=(100*m).toFixed(2)+"%"}G.classList.add("active")}),y.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(g=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),g=null},300));const M=y.querySelector(".endOfContent");!M||(M.style.top="",M.classList.remove("active"))})}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.XfaLayerBuilder=void 0;var T=Q(3);E.XfaLayerBuilder=class W{constructor({pageDiv:S,pdfPage:y,annotationStorage:g=null,linkService:M,xfaHtml:G=null}){this.pageDiv=S,this.pdfPage=y,this.annotationStorage=g,this.linkService=M,this.xfaHtml=G,this.div=null,this._cancelled=!1}render(S,y="display"){if("print"===y){const g={viewport:S.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:y},M=document.createElement("div");this.pageDiv.appendChild(M),g.div=M;const G=T.XfaLayer.render(g);return Promise.resolve(G)}return this.pdfPage.getXfa().then(g=>{if(this._cancelled||!g)return{textDivs:[]};const M={viewport:S.clone({dontFlip:!0}),div:this.div,xfaHtml:g,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:y};return this.div?T.XfaLayer.update(M):(this.div=document.createElement("div"),this.pageDiv.appendChild(this.div),M.div=this.div,T.XfaLayer.render(M))}).catch(g=>{console.error(g)})}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFViewer=E.PDFSinglePageViewer=void 0;var T=Q(6),W=Q(11);E.PDFViewer=class U extends W.BaseViewer{},E.PDFSinglePageViewer=class S extends W.BaseViewer{_resetView(){super._resetView(),this._scrollMode=T.ScrollMode.PAGE,this._spreadMode=T.SpreadMode.NONE}set scrollMode(g){}_updateScrollMode(){}set spreadMode(g){}_updateSpreadMode(){}}},(ce,E,Q)=>{var L,V,te,$1,fe,we,oe,Se,_e,Ce,Be,X,az,b,lz,D,Fg,N,mC,z,cz,he,W1,be,uz,Ae,dz,st,hz;Object.defineProperty(E,"__esModule",{value:!0}),E.PagesCountLimit=E.PDFPageViewBuffer=E.BaseViewer=void 0;var T=Q(3),W=Q(6),U=Q(2),S=Q(4),y=Q(12),g=Q(14),M=Q(5),G=Q(7),P=Q(15),F=Q(8),m=Q(9);const k="enablePermissions",O={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};E.PagesCountLimit=O;class H{constructor(q){Gt(this,te),Gt(this,L,new Set),Gt(this,V,0),Fi(this,V,q)}push(q){const le=Rt(this,L);le.has(q)&&le.delete(q),le.add(q),le.size>Rt(this,V)&&Nt(this,te,$1).call(this)}resize(q,le=null){Fi(this,V,q);const Ee=Rt(this,L);if(le){const Xe=Ee.size;let Ye=1;for(const Ke of Ee)if(le.has(Ke.id)&&(Ee.delete(Ke),Ee.add(Ke)),++Ye>Xe)break}for(;Ee.size>Rt(this,V);)Nt(this,te,$1).call(this)}has(q){return Rt(this,L).has(q)}[Symbol.iterator](){return Rt(this,L).keys()}}L=new WeakMap,V=new WeakMap,te=new WeakSet,$1=function(){const q=Rt(this,L).keys().next().value;null==q||q.destroy(),Rt(this,L).delete(q)},E.PDFPageViewBuffer=H;const je=class{constructor(q){var Ee,Xe,Ye,Ke;if(Gt(this,X),Gt(this,b),Gt(this,D),Gt(this,N),Gt(this,z),Gt(this,he),Gt(this,be),Gt(this,Ae),Gt(this,st),Gt(this,fe,null),Gt(this,we,T.AnnotationMode.ENABLE_FORMS),Gt(this,oe,null),Gt(this,Se,!1),Gt(this,_e,0),Gt(this,Ce,null),Gt(this,Be,null),this.constructor===je)throw new Error("Cannot initialize BaseViewer.");const le="2.14.305";if(T.version!==le)throw new Error(`The API version "${T.version}" does not match the Viewer version "${le}".`);if(this.container=q.container,this.viewer=q.viewer||q.container.firstElementChild,"DIV"!==(null==(Ee=this.container)?void 0:Ee.tagName.toUpperCase())||"DIV"!==(null==(Xe=this.viewer)?void 0:Xe.tagName.toUpperCase()))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=q.eventBus,this.linkService=q.linkService||new M.SimpleLinkService,this.downloadManager=q.downloadManager||null,this.findController=q.findController||null,this._scriptingManager=q.scriptingManager||null,this.removePageBorders=q.removePageBorders||!1,this.textLayerMode=null!=(Ye=q.textLayerMode)?Ye:W.TextLayerMode.ENABLE,Fi(this,we,null!=(Ke=q.annotationMode)?Ke:T.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=q.imageResourcesPath||"",this.enablePrintAutoRotate=q.enablePrintAutoRotate||!1,this.renderer=q.renderer||W.RendererType.CANVAS,this.useOnlyCssZoom=q.useOnlyCssZoom||!1,this.maxCanvasPixels=q.maxCanvasPixels,this.l10n=q.l10n||S.NullL10n,Fi(this,Se,q.enablePermissions||!1),this.pageColors=q.pageColors||null,q.pageColors&&(!CSS.supports("color",q.pageColors.background)||!CSS.supports("color",q.pageColors.foreground))&&((q.pageColors.background||q.pageColors.foreground)&&console.warn("Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!q.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new g.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=q.renderingQueue,this._doc=document.documentElement,this.scroll=(0,W.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=W.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss(),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(q){return this._pages[q]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(q){return null==q?void 0:q.pdfPage})}get renderForms(){return Rt(this,we)===T.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(q){if(!Number.isInteger(q))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(q,!0)||console.error(`currentPageNumber: "${q}" is not a valid page.`)}_setCurrentPageNumber(q,le=!1){var Xe,Ye;if(this._currentPageNumber===q)return le&&Nt(this,he,W1).call(this),!0;if(!(0<q&&q<=this.pagesCount))return!1;const Ee=this._currentPageNumber;return this._currentPageNumber=q,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:q,pageLabel:null!=(Ye=null==(Xe=this._pageLabels)?void 0:Xe[q-1])?Ye:null,previous:Ee}),le&&Nt(this,he,W1).call(this),!0}get currentPageLabel(){var q,le;return null!=(le=null==(q=this._pageLabels)?void 0:q[this._currentPageNumber-1])?le:null}set currentPageLabel(q){if(!this.pdfDocument)return;let le=0|q;if(this._pageLabels){const Ee=this._pageLabels.indexOf(q);Ee>=0&&(le=Ee+1)}this._setCurrentPageNumber(le,!0)||console.error(`currentPageLabel: "${q}" is not a valid page.`)}get currentScale(){return this._currentScale!==W.UNKNOWN_SCALE?this._currentScale:W.DEFAULT_SCALE}set currentScale(q){if(isNaN(q))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(q,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(q){!this.pdfDocument||this._setScale(q,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(q){if(!(0,W.isValidRotation)(q))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||((q%=360)<0&&(q+=360),this._pagesRotation===q))return;this._pagesRotation=q;const le=this._currentPageNumber,Ee={rotation:q};for(const Xe of this._pages)Xe.update(Ee);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:q,pageNumber:le}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}setDocument(q){var le=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null)),this.pdfDocument=q,!q)return;const Ee=q.isPureXfa,Xe=q.numPages,Ye=q.getPage(1),Ke=q.getOptionalContentConfig(),ut=Rt(this,Se)?q.getPermissions():Promise.resolve();if(Xe>O.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const pt=this._scrollMode=W.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:pt})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:Xe})},()=>{}),this._onBeforeDraw=pt=>{const Vt=this._pages[pt.pageNumber-1];!Vt||Rt(this,fe).push(Vt)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=pt=>{pt.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:pt.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,Rt(this,Be)&&(document.removeEventListener("visibilitychange",Rt(this,Be)),Fi(this,Be,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([Ye,ut]).then(([pt,Vt])=>{if(q!==this.pdfDocument)return;this._firstPageCapability.resolve(pt),this._optionalContentConfigPromise=Ke,Nt(this,X,az).call(this,Vt);const ln=this._scrollMode===W.ScrollMode.PAGE?null:this.viewer,Tn=this.currentScale,Ne=pt.getViewport({scale:Tn*T.PixelsPerInch.PDF_TO_CSS_UNITS}),ae=this.textLayerMode===W.TextLayerMode.DISABLE||Ee?null:this,de=Rt(this,we)!==T.AnnotationMode.DISABLE?this:null,We=Ee?this:null;for(let at=1;at<=Xe;++at){const gt=new y.PDFPageView({container:ln,eventBus:this.eventBus,id:at,scale:Tn,defaultViewport:Ne.clone(),optionalContentConfigPromise:Ke,renderingQueue:this.renderingQueue,textLayerFactory:ae,textLayerMode:this.textLayerMode,annotationLayerFactory:de,annotationMode:Rt(this,we),xfaLayerFactory:We,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(gt)}const tt=this._pages[0];tt&&(tt.setPdfPage(pt),this.linkService.cachePageRef(1,pt.ref)),this._scrollMode===W.ScrollMode.PAGE?Nt(this,D,Fg).call(this):this._spreadMode!==W.SpreadMode.NONE&&this._updateSpreadMode(),Nt(this,b,lz).call(this).then(I(function*(){if(le.findController&&le.findController.setDocument(q),le._scriptingManager&&le._scriptingManager.setDocument(q),q.loadingParams.disableAutoFetch||Xe>O.FORCE_LAZY_PAGE_INIT)return void le._pagesCapability.resolve();let at=Xe-1;if(at<=0)le._pagesCapability.resolve();else for(let gt=2;gt<=Xe;++gt){const hn=q.getPage(gt).then(bn=>{const hi=le._pages[gt-1];hi.pdfPage||hi.setPdfPage(bn),le.linkService.cachePageRef(gt,bn.ref),0==--at&&le._pagesCapability.resolve()},bn=>{console.error(`Unable to get page ${gt} to initialize viewer`,bn),0==--at&&le._pagesCapability.resolve()});gt%O.PAUSE_EAGER_PAGE_INIT==0&&(yield hn)}})),this.eventBus.dispatch("pagesinit",{source:this}),q.getMetadata().then(({info:at})=>{q===this.pdfDocument&&at.Language&&(this.viewer.lang=at.Language)}),this.defaultRenderingQueue&&this.update()}).catch(pt=>{console.error("Unable to initialize viewer",pt),this._pagesCapability.reject(pt)})}setPageLabels(q){var le,Ee;if(this.pdfDocument){q?Array.isArray(q)&&this.pdfDocument.numPages===q.length?this._pageLabels=q:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let Xe=0,Ye=this._pages.length;Xe<Ye;Xe++)this._pages[Xe].setPageLabel(null!=(Ee=null==(le=this._pageLabels)?void 0:le[Xe])?Ee:null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=W.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,Fi(this,fe,new H(10)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,T.createPromiseCapability)(),this._onePageRenderedCapability=(0,T.createPromiseCapability)(),this._pagesCapability=(0,T.createPromiseCapability)(),this._scrollMode=W.ScrollMode.VERTICAL,this._previousScrollMode=W.ScrollMode.UNKNOWN,this._spreadMode=W.SpreadMode.NONE,Fi(this,Ce,{previousPageNumber:1,scrollDown:!0,pages:[]}),this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),Rt(this,Be)&&(document.removeEventListener("visibilitychange",Rt(this,Be)),Fi(this,Be,null)),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(k),null!==Rt(this,oe)&&(Fi(this,we,Rt(this,oe)),Fi(this,oe,null))}_scrollUpdate(){0!==this.pagesCount&&this.update()}_setScaleUpdatePages(q,le,Ee=!1,Xe=!1){if(this._currentScaleValue=le.toString(),Nt(this,z,cz).call(this,q))return void(Xe&&this.eventBus.dispatch("scalechanging",{source:this,scale:q,presetValue:le}));this._doc.style.setProperty("--zoom-factor",q);const Ye={scale:q};for(const Ke of this._pages)Ke.update(Ye);if(this._currentScale=q,!Ee){let ut,Ke=this._currentPageNumber;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(Ke=this._location.pageNumber,ut=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:Ke,destArray:ut,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:q,presetValue:Xe?le:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==W.SpreadMode.NONE&&this._scrollMode!==W.ScrollMode.HORIZONTAL?2:1}_setScale(q,le=!1){let Ee=parseFloat(q);if(Ee>0)this._setScaleUpdatePages(Ee,q,le,!1);else{const Xe=this._pages[this._currentPageNumber-1];if(!Xe)return;let Ye=W.SCROLLBAR_PADDING,Ke=W.VERTICAL_PADDING;this.isInPresentationMode?Ye=Ke=4:this.removePageBorders?Ye=Ke=0:this._scrollMode===W.ScrollMode.HORIZONTAL&&([Ye,Ke]=[Ke,Ye]);const ut=(this.container.clientWidth-Ye)/Xe.width*Xe.scale/this._pageWidthScaleFactor,pt=(this.container.clientHeight-Ke)/Xe.height*Xe.scale;switch(q){case"page-actual":Ee=1;break;case"page-width":Ee=ut;break;case"page-height":Ee=pt;break;case"page-fit":Ee=Math.min(ut,pt);break;case"auto":const Vt=(0,W.isPortraitOrientation)(Xe)?ut:Math.min(pt,ut);Ee=Math.min(W.MAX_AUTO_SCALE,Vt);break;default:return void console.error(`_setScale: "${q}" is an unknown zoom value.`)}this._setScaleUpdatePages(Ee,q,le,!0)}}pageLabelToPageNumber(q){if(!this._pageLabels)return null;const le=this._pageLabels.indexOf(q);return le<0?null:le+1}scrollPageIntoView({pageNumber:q,destArray:le=null,allowNegativeOffset:Ee=!1,ignoreDestinationZoom:Xe=!1}){if(!this.pdfDocument)return;const Ye=Number.isInteger(q)&&this._pages[q-1];if(!Ye)return void console.error(`scrollPageIntoView: "${q}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!le)return void this._setCurrentPageNumber(q,!0);let ln,Tn,Ke=0,ut=0,pt=0,Vt=0;const Ne=Ye.rotation%180!=0,ae=(Ne?Ye.height:Ye.width)/Ye.scale/T.PixelsPerInch.PDF_TO_CSS_UNITS,de=(Ne?Ye.width:Ye.height)/Ye.scale/T.PixelsPerInch.PDF_TO_CSS_UNITS;let We=0;switch(le[1].name){case"XYZ":Ke=le[2],ut=le[3],We=le[4],Ke=null!==Ke?Ke:0,ut=null!==ut?ut:de;break;case"Fit":case"FitB":We="page-fit";break;case"FitH":case"FitBH":ut=le[2],We="page-width",null===ut&&this._location?(Ke=this._location.left,ut=this._location.top):("number"!=typeof ut||ut<0)&&(ut=de);break;case"FitV":case"FitBV":Ke=le[2],pt=ae,Vt=de,We="page-height";break;case"FitR":Ke=le[2],ut=le[3],pt=le[4]-Ke,Vt=le[5]-ut,ln=(this.container.clientWidth-(this.removePageBorders?0:W.SCROLLBAR_PADDING))/pt/T.PixelsPerInch.PDF_TO_CSS_UNITS,Tn=(this.container.clientHeight-(this.removePageBorders?0:W.VERTICAL_PADDING))/Vt/T.PixelsPerInch.PDF_TO_CSS_UNITS,We=Math.min(Math.abs(ln),Math.abs(Tn));break;default:return void console.error(`scrollPageIntoView: "${le[1].name}" is not a valid destination type.`)}if(Xe||(We&&We!==this._currentScale?this.currentScaleValue=We:this._currentScale===W.UNKNOWN_SCALE&&(this.currentScaleValue=W.DEFAULT_SCALE_VALUE)),"page-fit"===We&&!le[4])return void Nt(this,N,mC).call(this,Ye);const tt=[Ye.viewport.convertToViewportPoint(Ke,ut),Ye.viewport.convertToViewportPoint(Ke+pt,ut+Vt)];let at=Math.min(tt[0][0],tt[1][0]),gt=Math.min(tt[0][1],tt[1][1]);Ee||(at=Math.max(at,0),gt=Math.max(gt,0)),Nt(this,N,mC).call(this,Ye,{left:at,top:gt})}_updateLocation(q){const le=this._currentScale,Ee=this._currentScaleValue,Xe=parseFloat(Ee)===le?Math.round(1e4*le)/100:Ee,Ye=q.id,ut=this.container,pt=this._pages[Ye-1].getPagePoint(ut.scrollLeft-q.x,ut.scrollTop-q.y),Vt=Math.round(pt[0]),ln=Math.round(pt[1]);let Tn=`#page=${Ye}`;this.isInPresentationMode||(Tn+=`&zoom=${Xe},${Vt},${ln}`),this._location={pageNumber:Ye,scale:Xe,top:ln,left:Vt,rotation:this._pagesRotation,pdfOpenParams:Tn}}update(){const q=this._getVisiblePages(),le=q.views,Ee=le.length;if(0===Ee)return;const Xe=Math.max(10,2*Ee+1);Rt(this,fe).resize(Xe,q.ids),this.renderingQueue.renderHighestPriority(q);const Ye=this._spreadMode===W.SpreadMode.NONE&&(this._scrollMode===W.ScrollMode.PAGE||this._scrollMode===W.ScrollMode.VERTICAL),Ke=this._currentPageNumber;let ut=!1;for(const pt of le){if(pt.percent<100)break;if(pt.id===Ke&&Ye){ut=!0;break}}this._setCurrentPageNumber(ut?Ke:le[0].id),this._updateLocation(q.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(q){return this.container.contains(q)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===W.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===W.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const q=this._scrollMode===W.ScrollMode.PAGE?Rt(this,Ce).pages:this._pages,le=this._scrollMode===W.ScrollMode.HORIZONTAL;return(0,W.getVisibleElements)({scrollEl:this.container,views:q,sortByVisibility:!0,horizontal:le,rtl:le&&this._isContainerRtl})}isPageVisible(q){return!!this.pdfDocument&&(Number.isInteger(q)&&q>0&&q<=this.pagesCount?this._getVisiblePages().ids.has(q):(console.error(`isPageVisible: "${q}" is not a valid page.`),!1))}isPageCached(q){if(!this.pdfDocument)return!1;if(!(Number.isInteger(q)&&q>0&&q<=this.pagesCount))return console.error(`isPageCached: "${q}" is not a valid page.`),!1;const le=this._pages[q-1];return Rt(this,fe).has(le)}cleanup(){for(const q of this._pages)q.renderingState!==W.RenderingStates.FINISHED&&q.reset()}_cancelRendering(){for(const q of this._pages)q.cancelRendering()}forceRendering(q){const le=q||this._getVisiblePages(),Ee=Nt(this,Ae,dz).call(this,le),Ye=this.renderingQueue.getHighestPriority(le,this._pages,Ee,this._spreadMode!==W.SpreadMode.NONE&&this._scrollMode!==W.ScrollMode.HORIZONTAL);return Nt(this,st,hz).call(this,le.ids),!!Ye&&(Nt(this,be,uz).call(this,Ye).then(()=>{this.renderingQueue.renderView(Ye)}),!0)}createTextLayerBuilder(q,le,Ee,Xe=!1,Ye,Ke){return new F.TextLayerBuilder({textLayerDiv:q,eventBus:Ye,pageIndex:le,viewport:Ee,enhanceTextSelection:!this.isInPresentationMode&&Xe,highlighter:Ke})}createTextHighlighter(q,le){return new P.TextHighlighter({eventBus:le,pageIndex:q,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder(q,le,Ee=null,Xe="",Ye=!0,Ke=S.NullL10n,ut=null,pt=null,Vt=null,ln=null,Tn=null){var Ne,ae,de,We;return new U.AnnotationLayerBuilder({pageDiv:q,pdfPage:le,annotationStorage:Ee||(null==(Ne=this.pdfDocument)?void 0:Ne.annotationStorage),imageResourcesPath:Xe,renderForms:Ye,linkService:this.linkService,downloadManager:this.downloadManager,l10n:Ke,enableScripting:null!=ut?ut:this.enableScripting,hasJSActionsPromise:pt||(null==(ae=this.pdfDocument)?void 0:ae.hasJSActions()),fieldObjectsPromise:ln||(null==(de=this.pdfDocument)?void 0:de.getFieldObjects()),mouseState:Vt||(null==(We=this._scriptingManager)?void 0:We.mouseState),annotationCanvasMap:Tn})}createXfaLayerBuilder(q,le,Ee=null){var Xe;return new m.XfaLayerBuilder({pageDiv:q,pdfPage:le,annotationStorage:Ee||(null==(Xe=this.pdfDocument)?void 0:Xe.annotationStorage),linkService:this.linkService})}createStructTreeLayerBuilder(q){return new G.StructTreeLayerBuilder({pdfPage:q})}get hasEqualPageSizes(){const q=this._pages[0];for(let le=1,Ee=this._pages.length;le<Ee;++le){const Xe=this._pages[le];if(Xe.width!==q.width||Xe.height!==q.height)return!1}return!0}getPagesOverview(){return this._pages.map(q=>{const le=q.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,W.isPortraitOrientation)(le)?{width:le.width,height:le.height,rotation:le.rotation}:{width:le.height,height:le.width,rotation:(le.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)}set optionalContentConfigPromise(q){if(!(q instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${q}`);if(!this.pdfDocument||!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=q;const le={optionalContentConfigPromise:q};for(const Ee of this._pages)Ee.update(le);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:q})}get scrollMode(){return this._scrollMode}set scrollMode(q){if(this._scrollMode!==q){if(!(0,W.isValidScrollMode)(q))throw new Error(`Invalid scroll mode: ${q}`);this.pagesCount>O.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=q,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:q}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(q=null){const le=this._scrollMode,Ee=this.viewer;Ee.classList.toggle("scrollHorizontal",le===W.ScrollMode.HORIZONTAL),Ee.classList.toggle("scrollWrapped",le===W.ScrollMode.WRAPPED),this.pdfDocument&&q&&(le===W.ScrollMode.PAGE?Nt(this,D,Fg).call(this):this._previousScrollMode===W.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(q,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(q){if(this._spreadMode!==q){if(!(0,W.isValidSpreadMode)(q))throw new Error(`Invalid spread mode: ${q}`);this._spreadMode=q,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:q}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(q=null){if(!this.pdfDocument)return;const le=this.viewer,Ee=this._pages;if(this._scrollMode===W.ScrollMode.PAGE)Nt(this,D,Fg).call(this);else if(le.textContent="",this._spreadMode===W.SpreadMode.NONE)for(const Xe of this._pages)le.appendChild(Xe.div);else{const Xe=this._spreadMode-1;let Ye=null;for(let Ke=0,ut=Ee.length;Ke<ut;++Ke)null===Ye?(Ye=document.createElement("div"),Ye.className="spread",le.appendChild(Ye)):Ke%2===Xe&&(Ye=Ye.cloneNode(!1),le.appendChild(Ye)),Ye.appendChild(Ee[Ke].div)}!q||(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(q,!0),this.update())}_getPageAdvance(q,le=!1){switch(this._scrollMode){case W.ScrollMode.WRAPPED:{const{views:Ee}=this._getVisiblePages(),Xe=new Map;for(const{id:Ye,y:Ke,percent:ut,widthPercent:pt}of Ee){if(0===ut||pt<100)continue;let Vt=Xe.get(Ke);Vt||Xe.set(Ke,Vt||(Vt=[])),Vt.push(Ye)}for(const Ye of Xe.values()){const Ke=Ye.indexOf(q);if(-1===Ke)continue;const ut=Ye.length;if(1===ut)break;if(le)for(let pt=Ke-1,Vt=0;pt>=Vt;pt--){const Tn=Ye[pt+1]-1;if(Ye[pt]<Tn)return q-Tn}else for(let pt=Ke+1,Vt=ut;pt<Vt;pt++){const Tn=Ye[pt-1]+1;if(Ye[pt]>Tn)return Tn-q}if(le){const pt=Ye[0];if(pt<q)return q-pt+1}else{const pt=Ye[ut-1];if(pt>q)return pt-q+1}break}break}case W.ScrollMode.HORIZONTAL:break;case W.ScrollMode.PAGE:case W.ScrollMode.VERTICAL:{if(this._spreadMode===W.SpreadMode.NONE)break;const Ee=this._spreadMode-1;if(le&&q%2!==Ee)break;if(!le&&q%2===Ee)break;const{views:Xe}=this._getVisiblePages(),Ye=le?q-1:q+1;for(const{id:Ke,percent:ut,widthPercent:pt}of Xe)if(Ke===Ye){if(ut>0&&100===pt)return 2;break}break}}return 1}nextPage(){const q=this._currentPageNumber,le=this.pagesCount;if(q>=le)return!1;const Ee=this._getPageAdvance(q,!1)||1;return this.currentPageNumber=Math.min(q+Ee,le),!0}previousPage(){const q=this._currentPageNumber;if(q<=1)return!1;const le=this._getPageAdvance(q,!0)||1;return this.currentPageNumber=Math.max(q-le,1),!0}increaseScale(q=1){let le=this._currentScale;do{le=(le*W.DEFAULT_SCALE_DELTA).toFixed(2),le=Math.ceil(10*le)/10,le=Math.min(W.MAX_SCALE,le)}while(--q>0&&le<W.MAX_SCALE);this.currentScaleValue=le}decreaseScale(q=1){let le=this._currentScale;do{le=(le/W.DEFAULT_SCALE_DELTA).toFixed(2),le=Math.floor(10*le)/10,le=Math.max(W.MIN_SCALE,le)}while(--q>0&&le>W.MIN_SCALE);this.currentScaleValue=le}updateContainerHeightCss(){const q=this.container.clientHeight;q!==Rt(this,_e)&&(Fi(this,_e,q),this._doc.style.setProperty("--viewer-container-height",`${q}px`))}};let Z=je;fe=new WeakMap,we=new WeakMap,oe=new WeakMap,Se=new WeakMap,_e=new WeakMap,Ce=new WeakMap,Be=new WeakMap,X=new WeakSet,az=function(q){!q||(q.includes(T.PermissionFlag.COPY)||this.viewer.classList.add(k),!q.includes(T.PermissionFlag.MODIFY_ANNOTATIONS)&&!q.includes(T.PermissionFlag.FILL_INTERACTIVE_FORMS)&&Rt(this,we)===T.AnnotationMode.ENABLE_FORMS&&(Fi(this,oe,Rt(this,we)),Fi(this,we,T.AnnotationMode.ENABLE)))},b=new WeakSet,lz=function(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const q=new Promise(le=>{Fi(this,Be,()=>{"hidden"===document.visibilityState&&(le(),document.removeEventListener("visibilitychange",Rt(this,Be)),Fi(this,Be,null))}),document.addEventListener("visibilitychange",Rt(this,Be))});return Promise.race([this._onePageRenderedCapability.promise,q])},D=new WeakSet,Fg=function(){if(this._scrollMode!==W.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const q=this._currentPageNumber,le=Rt(this,Ce),Ee=this.viewer;if(Ee.textContent="",le.pages.length=0,this._spreadMode!==W.SpreadMode.NONE||this.isInPresentationMode){const Xe=new Set,Ye=this._spreadMode-1;-1===Ye?Xe.add(q-1):q%2!==Ye?(Xe.add(q-1),Xe.add(q)):(Xe.add(q-2),Xe.add(q-1));const Ke=document.createElement("div");if(Ke.className="spread",this.isInPresentationMode){const ut=document.createElement("div");ut.className="dummyPage",Ke.appendChild(ut)}for(const ut of Xe){const pt=this._pages[ut];!pt||(Ke.appendChild(pt.div),le.pages.push(pt))}Ee.appendChild(Ke)}else{const Xe=this._pages[q-1];Ee.appendChild(Xe.div),le.pages.push(Xe)}le.scrollDown=q>=le.previousPageNumber,le.previousPageNumber=q},N=new WeakSet,mC=function(q,le=null){const{div:Ee,id:Xe}=q;if(this._scrollMode===W.ScrollMode.PAGE&&(this._setCurrentPageNumber(Xe),Nt(this,D,Fg).call(this),this.update()),!le&&!this.isInPresentationMode){const Ye=Ee.offsetLeft+Ee.clientLeft,Ke=Ye+Ee.clientWidth,{scrollLeft:ut,clientWidth:pt}=this.container;(this._scrollMode===W.ScrollMode.HORIZONTAL||Ye<ut||Ke>ut+pt)&&(le={left:0,top:0})}(0,W.scrollIntoView)(Ee,le)},z=new WeakSet,cz=function(q){return q===this._currentScale||Math.abs(q-this._currentScale)<1e-15},he=new WeakSet,W1=function(){const q=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),Nt(this,N,mC).call(this,q)},be=new WeakSet,uz=function(q){var le=this;return I(function*(){var Ee,Xe;if(q.pdfPage)return q.pdfPage;try{const Ye=yield le.pdfDocument.getPage(q.id);return q.pdfPage||q.setPdfPage(Ye),null!=(Xe=(Ee=le.linkService)._cachedPageNumber)&&Xe.call(Ee,Ye.ref)||le.linkService.cachePageRef(q.id,Ye.ref),Ye}catch(Ye){return console.error("Unable to get page for page view",Ye),null}})()},Ae=new WeakSet,dz=function(q){var le,Ee;if(1===(null==(le=q.first)?void 0:le.id))return!0;if((null==(Ee=q.last)?void 0:Ee.id)===this.pagesCount)return!1;switch(this._scrollMode){case W.ScrollMode.PAGE:return Rt(this,Ce).scrollDown;case W.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down},st=new WeakSet,hz=function(q){for(const le of q){const Ee=this._pages[le-1];null==Ee||Ee.toggleLoadingIconSpinner(!0)}for(const le of Rt(this,fe))q.has(le.id)||le.toggleLoadingIconSpinner(!1)},E.BaseViewer=Z},(ce,E,Q)=>{var M;Object.defineProperty(E,"__esModule",{value:!0}),E.PDFPageView=void 0;var T=Q(3),W=Q(6),U=Q(13),S=Q(4);const y=U.compatibilityParams.maxCanvasPixels||16777216;M=new WeakMap,E.PDFPageView=class g{constructor(P){var k,O,H,Z;Gt(this,M,T.AnnotationMode.ENABLE_FORMS);const F=P.container,m=P.defaultViewport;this.id=P.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=P.scale||W.DEFAULT_SCALE,this.viewport=m,this.pdfPageRotate=m.rotation,this._optionalContentConfigPromise=P.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=null!=(k=P.textLayerMode)?k:W.TextLayerMode.ENABLE,Fi(this,M,null!=(O=P.annotationMode)?O:T.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=P.imageResourcesPath||"",this.useOnlyCssZoom=P.useOnlyCssZoom||!1,this.maxCanvasPixels=P.maxCanvasPixels||y,this.pageColors=P.pageColors||null,this.eventBus=P.eventBus,this.renderingQueue=P.renderingQueue,this.textLayerFactory=P.textLayerFactory,this.annotationLayerFactory=P.annotationLayerFactory,this.xfaLayerFactory=P.xfaLayerFactory,this.textHighlighter=null==(H=P.textHighlighterFactory)?void 0:H.createTextHighlighter(this.id-1,this.eventBus),this.structTreeLayerFactory=P.structTreeLayerFactory,this.renderer=P.renderer||W.RendererType.CANVAS,this.l10n=P.l10n||S.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=W.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!(null!=(Z=this.renderingQueue)&&Z.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const _=document.createElement("div");_.className="page",_.style.width=Math.floor(this.viewport.width)+"px",_.style.height=Math.floor(this.viewport.height)+"px",_.setAttribute("data-page-number",this.id),_.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(L=>{_.setAttribute("aria-label",L)}),this.div=_,null==F||F.appendChild(_)}setPdfPage(P){this.pdfPage=P,this.pdfPageRotate=P.rotate,this.viewport=P.getViewport({scale:this.scale*T.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_renderAnnotationLayer(){var P=this;return I(function*(){let F=null;try{yield P.annotationLayer.render(P.viewport,"display")}catch(m){F=m}finally{P.eventBus.dispatch("annotationlayerrendered",{source:P,pageNumber:P.id,error:F})}})()}_renderXfaLayer(){var P=this;return I(function*(){let F=null;try{const m=yield P.xfaLayer.render(P.viewport,"display");P.textHighlighter&&P._buildXfaTextContentItems(m.textDivs)}catch(m){F=m}finally{P.eventBus.dispatch("xfalayerrendered",{source:P,pageNumber:P.id,error:F})}})()}_buildXfaTextContentItems(P){var F=this;return I(function*(){const m=yield F.pdfPage.getTextContent(),_=[];for(const k of m.items)_.push(k.str);F.textHighlighter.setTextMapping(P,_),F.textHighlighter.enable()})()}_resetZoomLayer(P=!1){if(!this.zoomLayer)return;const F=this.zoomLayer.firstChild;this.paintedViewportMap.delete(F),F.width=0,F.height=0,P&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:P=!1,keepAnnotationLayer:F=!1,keepXfaLayer:m=!1}={}){var L,V;this.cancelRendering({keepAnnotationLayer:F,keepXfaLayer:m}),this.renderingState=W.RenderingStates.INITIAL;const _=this.div;_.style.width=Math.floor(this.viewport.width)+"px",_.style.height=Math.floor(this.viewport.height)+"px";const k=_.childNodes,O=P&&this.zoomLayer||null,H=F&&(null==(L=this.annotationLayer)?void 0:L.div)||null,Z=m&&(null==(V=this.xfaLayer)?void 0:V.div)||null;for(let te=k.length-1;te>=0;te--){const ue=k[te];switch(ue){case O:case H:case Z:continue}ue.remove()}_.removeAttribute("data-loaded"),H&&this.annotationLayer.hide(),Z&&this.xfaLayer.hide(),O||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(te=>{var ue;null==(ue=this.loadingIconDiv)||ue.setAttribute("aria-label",te)}),_.appendChild(this.loadingIconDiv)}update({scale:P=0,rotation:F=null,optionalContentConfigPromise:m=null}){if(this.scale=P||this.scale,"number"==typeof F&&(this.rotation=F),m instanceof Promise&&(this._optionalContentConfigPromise=m),this.viewport=this.viewport.clone({scale:this.scale*T.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this._isStandalone){const{style:O}=document.documentElement;O.setProperty("--zoom-factor",this.scale)}if(this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let k=!1;if(this.canvas&&this.maxCanvasPixels>0){const O=this.outputScale;(Math.floor(this.viewport.width)*O.sx|0)*(Math.floor(this.viewport.height)*O.sy|0)>this.maxCanvasPixels&&(k=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&k)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:P=!1,keepXfaLayer:F=!1}={}){var m;this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!P||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.xfaLayer&&(!F||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,null==(m=this.textHighlighter)||m.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:P,redrawAnnotationLayer:F=!1,redrawXfaLayer:m=!1}){const _=this.viewport.width,k=this.viewport.height,O=this.div;P.style.width=P.parentNode.style.width=O.style.width=Math.floor(_)+"px",P.style.height=P.parentNode.style.height=O.style.height=Math.floor(k)+"px";const H=this.viewport.rotation-this.paintedViewportMap.get(P).rotation,Z=Math.abs(H);let L=1,V=1;if((90===Z||270===Z)&&(L=k/_,V=_/k),P.style.transform=`rotate(${H}deg) scale(${L}, ${V})`,this.textLayer){const te=this.textLayer.viewport,fe=Math.abs(this.viewport.rotation-te.rotation);let we=_/te.width;(90===fe||270===fe)&&(we=_/te.height);const oe=this.textLayer.textLayerDiv;let Se,_e;switch(fe){case 0:Se=_e=0;break;case 90:Se=0,_e="-"+oe.style.height;break;case 180:Se="-"+oe.style.width,_e="-"+oe.style.height;break;case 270:Se="-"+oe.style.width,_e=0;break;default:console.error("Bad rotation value.")}oe.style.transform=`rotate(${fe}deg) scale(${we}) translate(${Se}, ${_e})`,oe.style.transformOrigin="0% 0%"}F&&this.annotationLayer&&this._renderAnnotationLayer(),m&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(P,F){return this.viewport.convertToPdfPoint(P,F)}toggleLoadingIconSpinner(P=!1){var F;null==(F=this.loadingIconDiv)||F.classList.toggle("notVisible",!P)}draw(){var V,te,ue,P=this;this.renderingState!==W.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:F,pdfPage:m}=this;if(!m)return this.renderingState=W.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=W.RenderingStates.RUNNING;const _=document.createElement("div");_.style.width=F.style.width,_.style.height=F.style.height,_.classList.add("canvasWrapper"),null!=(V=this.annotationLayer)&&V.div?F.insertBefore(_,this.annotationLayer.div):F.appendChild(_);let k=null;if(this.textLayerMode!==W.TextLayerMode.DISABLE&&this.textLayerFactory){const fe=document.createElement("div");fe.className="textLayer",fe.style.width=_.style.width,fe.style.height=_.style.height,null!=(te=this.annotationLayer)&&te.div?F.insertBefore(fe,this.annotationLayer.div):F.appendChild(fe),k=this.textLayerFactory.createTextLayerBuilder(fe,this.id-1,this.viewport,this.textLayerMode===W.TextLayerMode.ENABLE_ENHANCE,this.eventBus,this.textHighlighter)}this.textLayer=k,Rt(this,M)!==T.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(F,m,null,this.imageResourcesPath,Rt(this,M)===T.AnnotationMode.ENABLE_FORMS,this.l10n,null,null,null,null,this._annotationCanvasMap))),null!=(ue=this.xfaLayer)&&ue.div&&F.appendChild(this.xfaLayer.div);let O=null;this.renderingQueue&&(O=fe=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=W.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=W.RenderingStates.RUNNING,fe()});fe()});const H=function(){var fe=I(function*(we=null){if(Z===P.paintTask&&(P.paintTask=null),we instanceof T.RenderingCancelledException)P._renderError=null;else if(P._renderError=we,P.renderingState=W.RenderingStates.FINISHED,P.loadingIconDiv&&(P.loadingIconDiv.remove(),delete P.loadingIconDiv),P._resetZoomLayer(!0),P.eventBus.dispatch("pagerendered",{source:P,pageNumber:P.id,cssTransform:!1,timestamp:performance.now(),error:P._renderError}),we)throw we});return function(){return fe.apply(this,arguments)}}(),Z=this.renderer===W.RendererType.SVG?this.paintOnSvg(_):this.paintOnCanvas(_);Z.onRenderContinue=O,this.paintTask=Z;const L=Z.promise.then(()=>H(null).then(()=>{if(k){const fe=m.streamTextContent({includeMarkedContent:!0});k.setTextContentStream(fe),k.render()}this.annotationLayer&&this._renderAnnotationLayer()}),function(fe){return H(fe)});return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder(F,m,null)),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=fe=>{fe.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(we=>{if(!we||!this.canvas)return;const oe=this.structTreeLayer.render(we);oe.classList.add("structTree"),this.canvas.appendChild(oe)}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder(m)),F.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),L}paintOnCanvas(P){const F=(0,T.createPromiseCapability)(),m={promise:F.promise,onRenderContinue(oe){oe()},cancel(){we.cancel()}},_=this.viewport,k=document.createElement("canvas");k.hidden=!0;let O=!0;const H=function(){O&&(k.hidden=!1,O=!1)};P.appendChild(k),this.canvas=k;const Z=k.getContext("2d",{alpha:!1}),L=this.outputScale=new W.OutputScale;if(this.useOnlyCssZoom){const oe=_.clone({scale:T.PixelsPerInch.PDF_TO_CSS_UNITS});L.sx*=oe.width/_.width,L.sy*=oe.height/_.height}if(this.maxCanvasPixels>0){const Se=Math.sqrt(this.maxCanvasPixels/(_.width*_.height));L.sx>Se||L.sy>Se?(L.sx=Se,L.sy=Se,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const V=(0,W.approximateFraction)(L.sx),te=(0,W.approximateFraction)(L.sy);k.width=(0,W.roundToDivide)(_.width*L.sx,V[0]),k.height=(0,W.roundToDivide)(_.height*L.sy,te[0]),k.style.width=(0,W.roundToDivide)(_.width,V[1])+"px",k.style.height=(0,W.roundToDivide)(_.height,te[1])+"px",this.paintedViewportMap.set(k,_);const fe={canvasContext:Z,transform:L.scaled?[L.sx,0,0,L.sy,0,0]:null,viewport:this.viewport,annotationMode:Rt(this,M),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},we=this.pdfPage.render(fe);return we.onContinue=function(oe){H(),m.onRenderContinue?m.onRenderContinue(oe):oe()},we.promise.then(function(){H(),F.resolve()},function(oe){H(),F.reject(oe)}),m}paintOnSvg(P){let F=!1;const m=()=>{if(F)throw new T.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},_=this.pdfPage,k=this.viewport.clone({scale:T.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:_.getOperatorList({annotationMode:Rt(this,M)}).then(H=>(m(),new T.SVGGraphics(_.commonObjs,_.objs).getSVG(H,k).then(L=>{m(),this.svg=L,this.paintedViewportMap.set(L,k),L.style.width=P.style.width,L.style.height=P.style.height,this.renderingState=W.RenderingStates.FINISHED,P.appendChild(L)}))),onRenderContinue(H){H()},cancel(){F=!0}}}setPageLabel(P){this.pageLabel="string"==typeof P?P:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.compatibilityParams=E.OptionKind=E.AppOptions=void 0;const Q=Object.create(null);E.compatibilityParams=Q;{const y=navigator.userAgent||"",g=navigator.platform||"",M=navigator.maxTouchPoints||1,G=/Android/.test(y);(/\b(iPad|iPhone|iPod)(?=;)/.test(y)||"MacIntel"===g&&M>1||G)&&(Q.maxCanvasPixels=5242880)}const T={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};E.OptionKind=T;const W={annotationMode:{value:2,kind:T.VIEWER+T.PREFERENCE},cursorToolOnLoad:{value:0,kind:T.VIEWER+T.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:T.VIEWER},defaultZoomValue:{value:"",kind:T.VIEWER+T.PREFERENCE},disableHistory:{value:!1,kind:T.VIEWER},disablePageLabels:{value:!1,kind:T.VIEWER+T.PREFERENCE},enablePermissions:{value:!1,kind:T.VIEWER+T.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:T.VIEWER+T.PREFERENCE},enableScripting:{value:!0,kind:T.VIEWER+T.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:T.VIEWER},externalLinkTarget:{value:0,kind:T.VIEWER+T.PREFERENCE},historyUpdateUrl:{value:!1,kind:T.VIEWER+T.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:T.VIEWER+T.PREFERENCE},imageResourcesPath:{value:"./images/",kind:T.VIEWER},maxCanvasPixels:{value:16777216,compatibility:Q.maxCanvasPixels,kind:T.VIEWER},pageColorsBackground:{value:"Canvas",kind:T.VIEWER+T.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:T.VIEWER+T.PREFERENCE},pdfBugEnabled:{value:!1,kind:T.VIEWER+T.PREFERENCE},printResolution:{value:150,kind:T.VIEWER},renderer:{value:"canvas",kind:T.VIEWER},sidebarViewOnLoad:{value:-1,kind:T.VIEWER+T.PREFERENCE},scrollModeOnLoad:{value:-1,kind:T.VIEWER+T.PREFERENCE},spreadModeOnLoad:{value:-1,kind:T.VIEWER+T.PREFERENCE},textLayerMode:{value:1,kind:T.VIEWER+T.PREFERENCE},useOnlyCssZoom:{value:!1,kind:T.VIEWER+T.PREFERENCE},viewerCssTheme:{value:0,kind:T.VIEWER+T.PREFERENCE},viewOnLoad:{value:0,kind:T.VIEWER+T.PREFERENCE},cMapPacked:{value:!0,kind:T.API},cMapUrl:{value:"../web/cmaps/",kind:T.API},disableAutoFetch:{value:!1,kind:T.API+T.PREFERENCE},disableFontFace:{value:!1,kind:T.API+T.PREFERENCE},disableRange:{value:!1,kind:T.API+T.PREFERENCE},disableStream:{value:!1,kind:T.API+T.PREFERENCE},docBaseUrl:{value:"",kind:T.API},enableXfa:{value:!0,kind:T.API+T.PREFERENCE},fontExtraProperties:{value:!1,kind:T.API},isEvalSupported:{value:!0,kind:T.API},maxImageSize:{value:-1,kind:T.API},pdfBug:{value:!1,kind:T.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:T.API},verbosity:{value:1,kind:T.API},workerPort:{value:null,kind:T.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:T.WORKER}};W.disablePreferences={value:!1,kind:T.VIEWER},W.locale={value:navigator.language||"en-US",kind:T.VIEWER},W.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:T.VIEWER},W.renderer.kind+=T.PREFERENCE;const U=Object.create(null);E.AppOptions=class S{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(g){var P;const M=U[g];if(void 0!==M)return M;const G=W[g];return void 0!==G?null!=(P=G.compatibility)?P:G.value:void 0}static getAll(g=null){var G;const M=Object.create(null);for(const P in W){const F=W[P];if(g){if(0==(g&F.kind))continue;if(g===T.PREFERENCE){const _=F.value,k=typeof _;if("boolean"===k||"string"===k||"number"===k&&Number.isInteger(_)){M[P]=_;continue}throw new Error(`Invalid type for preference: ${P}`)}}const m=U[P];M[P]=void 0!==m?m:null!=(G=F.compatibility)?G:F.value}return M}static set(g,M){U[g]=M}static setAll(g){for(const M in g)U[M]=g[M]}static remove(g){delete U[g]}static _hasUserOptions(){return Object.keys(U).length>0}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFRenderingQueue=void 0;var T=Q(3),W=Q(6);E.PDFRenderingQueue=class S{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(g){this.pdfViewer=g}setThumbnailViewer(g){this.pdfThumbnailViewer=g}isHighestPriority(g){return this.highestPriorityPage===g.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(g){var M;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(g)&&(this.isThumbnailViewEnabled&&(null==(M=this.pdfThumbnailViewer)?void 0:M.forceRendering())||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(g,M,G,P=!1){const F=g.views,m=F.length;if(0===m)return null;for(let Z=0;Z<m;Z++){const L=F[Z].view;if(!this.isViewFinished(L))return L}const _=g.first.id,k=g.last.id;if(k-_+1>m){const Z=g.ids;for(let L=1,V=k-_;L<V;L++){const te=G?_+L:k-L;if(Z.has(te))continue;const ue=M[te-1];if(!this.isViewFinished(ue))return ue}}let O=G?k:_-2,H=M[O];return H&&!this.isViewFinished(H)||P&&(O+=G?1:-1,H=M[O],H&&!this.isViewFinished(H))?H:null}isViewFinished(g){return g.renderingState===W.RenderingStates.FINISHED}renderView(g){switch(g.renderingState){case W.RenderingStates.FINISHED:return!1;case W.RenderingStates.PAUSED:this.highestPriorityPage=g.renderingId,g.resume();break;case W.RenderingStates.RUNNING:this.highestPriorityPage=g.renderingId;break;case W.RenderingStates.INITIAL:this.highestPriorityPage=g.renderingId,g.draw().finally(()=>{this.renderHighestPriority()}).catch(M=>{M instanceof T.RenderingCancelledException||console.error(`renderView: "${M}"`)})}return!0}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.TextHighlighter=void 0,E.TextHighlighter=class Q{constructor({findController:W,eventBus:U,pageIndex:S}){this.findController=W,this.matches=[],this.eventBus=U,this.pageIdx=S,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(W,U){this.textDivs=W,this.textContentItemsStr=U}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=W=>{(W.pageIndex===this.pageIdx||-1===W.pageIndex)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){!this.enabled||(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(W,U){if(!W)return[];const{textContentItemsStr:S}=this;let y=0,g=0;const M=S.length-1,G=[];for(let P=0,F=W.length;P<F;P++){let m=W[P];for(;y!==M&&m>=g+S[y].length;)g+=S[y].length,y++;y===S.length&&console.error("Could not find a matching mapping");const _={begin:{divIdx:y,offset:m-g}};for(m+=U[P];y!==M&&m>g+S[y].length;)g+=S[y].length,y++;_.end={divIdx:y,offset:m-g},G.push(_)}return G}_renderMatches(W){if(0===W.length)return;const{findController:U,pageIdx:S}=this,{textContentItemsStr:y,textDivs:g}=this,M=S===U.selected.pageIdx,G=U.selected.matchIdx;let F=null;function _(Z,L){const V=Z.divIdx;return g[V].textContent="",k(V,0,Z.offset,L)}function k(Z,L,V,te){let ue=g[Z];if(ue.nodeType===Node.TEXT_NODE){const oe=document.createElement("span");ue.parentNode.insertBefore(oe,ue),oe.appendChild(ue),g[Z]=oe,ue=oe}const fe=y[Z].substring(L,V),we=document.createTextNode(fe);if(te){const oe=document.createElement("span");return oe.className=`${te} appended`,oe.appendChild(we),ue.appendChild(oe),te.includes("selected")?oe.offsetLeft:0}return ue.appendChild(we),0}let O=G,H=O+1;if(U.state.highlightAll)O=0,H=W.length;else if(!M)return;for(let Z=O;Z<H;Z++){const L=W[Z],V=L.begin,te=L.end,ue=M&&Z===G,fe=ue?" selected":"";let we=0;if(F&&V.divIdx===F.divIdx?k(F.divIdx,F.offset,V.offset):(null!==F&&k(F.divIdx,F.offset,undefined),_(V)),V.divIdx===te.divIdx)we=k(V.divIdx,V.offset,te.offset,"highlight"+fe);else{we=k(V.divIdx,V.offset,undefined,"highlight begin"+fe);for(let oe=V.divIdx+1,Se=te.divIdx;oe<Se;oe++)g[oe].className="highlight middle"+fe;_(te,"highlight end"+fe)}F=te,ue&&U.scrollMatchIntoView({element:g[V.divIdx],selectedLeft:we,pageIndex:S,matchIndex:G})}F&&k(F.divIdx,F.offset,undefined)}_updateMatches(){if(!this.enabled)return;const{findController:W,matches:U,pageIdx:S}=this,{textContentItemsStr:y,textDivs:g}=this;let M=-1;for(let F=0,m=U.length;F<m;F++){const _=U[F];for(let O=Math.max(M,_.begin.divIdx),H=_.end.divIdx;O<=H;O++){const Z=g[O];Z.textContent=y[O],Z.className=""}M=_.end.divIdx+1}null!=W&&W.highlightMatches&&(this.matches=this._convertMatches(W.pageMatches[S]||null,W.pageMatchesLength[S]||null),this._renderMatches(this.matches))}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.DownloadManager=void 0;var T=Q(3);function W(S,y){const g=document.createElement("a");if(!g.click)throw new Error('DownloadManager: "a.click()" is not supported.');g.href=S,g.target="_parent","download"in g&&(g.download=y),(document.body||document.documentElement).appendChild(g),g.click(),g.remove()}E.DownloadManager=class U{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(y,g){(0,T.createValidAbsoluteUrl)(y,"http://example.com")?W(y+"#pdfjs.action=download",g):console.error(`downloadUrl - not a valid URL: ${y}`)}downloadData(y,g,M){W(URL.createObjectURL(new Blob([y],{type:M})),g)}openOrDownloadData(y,g,M){const G=(0,T.isPdfFile)(M),P=G?"application/pdf":"";if(G){let m,F=this._openBlobUrls.get(y);F||(F=URL.createObjectURL(new Blob([g],{type:P})),this._openBlobUrls.set(y,F)),m="?file="+encodeURIComponent(F+"#"+M);try{return window.open(m),!0}catch(_){console.error(`openOrDownloadData: ${_}`),URL.revokeObjectURL(F),this._openBlobUrls.delete(y)}}return this.downloadData(g,M,P),!1}download(y,g,M,G="download"){W(URL.createObjectURL(y),M)}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.WaitOnType=E.EventBus=E.AutomationEventBus=void 0,E.waitOnEventOrTimeout=function T({target:S,name:y,delay:g=0}){return new Promise(function(M,G){if("object"!=typeof S||!y||"string"!=typeof y||!(Number.isInteger(g)&&g>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function P(k){S instanceof W?S._off(y,F):S.removeEventListener(y,F),_&&clearTimeout(_),M(k)}const F=P.bind(null,Q.EVENT);S instanceof W?S._on(y,F):S.addEventListener(y,F);const m=P.bind(null,Q.TIMEOUT),_=setTimeout(m,g)})};const Q={EVENT:"event",TIMEOUT:"timeout"};E.WaitOnType=Q;class W{constructor(){this._listeners=Object.create(null)}on(y,g,M=null){this._on(y,g,{external:!0,once:null==M?void 0:M.once})}off(y,g,M=null){this._off(y,g,{external:!0,once:null==M?void 0:M.once})}dispatch(y,g){const M=this._listeners[y];if(!M||0===M.length)return;let G;for(const{listener:P,external:F,once:m}of M.slice(0))m&&this._off(y,P),F?(G||(G=[])).push(P):P(g);if(G){for(const P of G)P(g);G=null}}_on(y,g,M=null){var P;((P=this._listeners)[y]||(P[y]=[])).push({listener:g,external:!0===(null==M?void 0:M.external),once:!0===(null==M?void 0:M.once)})}_off(y,g,M=null){const G=this._listeners[y];if(G)for(let P=0,F=G.length;P<F;P++)if(G[P].listener===g)return void G.splice(P,1)}}E.EventBus=W,E.AutomationEventBus=class U extends W{dispatch(y,g){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.GenericL10n=void 0,Q(19);var T=Q(4);const W=document.webL10n;E.GenericL10n=class U{constructor(y){this._lang=y,this._ready=new Promise((g,M)=>{W.setLanguage((0,T.fixupLangCode)(y),()=>{g(W)})})}getLanguage(){var y=this;return I(function*(){return(yield y._ready).getLanguage()})()}getDirection(){var y=this;return I(function*(){return(yield y._ready).getDirection()})()}get(y,g=null,M=(0,T.getL10nFallback)(y,g)){var G=this;return I(function*(){return(yield G._ready).get(y,g,M)})()}translate(y){var g=this;return I(function*(){return(yield g._ready).translate(y)})()}}},()=>{document.webL10n=function(ce,E,Q){var T={},W="",U="textContent",S="",y={},g="loading";function _(oe,Se,_e){Se=Se||function(X){},_e=_e||function(){};var Ce=new XMLHttpRequest;Ce.open("GET",oe,!0),Ce.overrideMimeType&&Ce.overrideMimeType("text/plain; charset=utf-8"),Ce.onreadystatechange=function(){4==Ce.readyState&&(200==Ce.status||0===Ce.status?Se(Ce.responseText):_e())},Ce.onerror=_e,Ce.ontimeout=_e;try{Ce.send(null)}catch(Be){_e()}}function O(oe,Se){oe&&(oe=oe.toLowerCase()),Se=Se||function(){},function H(){T={},W="",S=""}(),S=oe;var _e=function G(){return E.querySelectorAll('link[type="application/l10n"]')}(),Ce=_e.length;if(0!==Ce){var b,p=0;b=function(){++p>=Ce&&(Se(),g="complete")};for(var A=0;A<Ce;A++)new D(_e[A]).load(oe,b)}else{var Be=function P(){var oe=E.querySelector('script[type="application/l10n"]');return oe?JSON.parse(oe.innerHTML):null}();if(Be&&Be.locales&&Be.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(T=Be.locales[oe])){var X=Be.default_locale.toLowerCase();for(var C in Be.locales){if((C=C.toLowerCase())===oe){T=Be.locales[oe];break}C===X&&(T=Be.locales[X])}}Se()}else console.log("no resource to load, early way out");g="complete"}function D(j){var z=j.href;this.load=function(pe,he){!function k(oe,Se,_e,Ce){var Be=oe.replace(/[^\/]*$/,"")||"./";function X(b){return b.lastIndexOf("\\")<0?b:b.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}_(oe,function(b){W+=b,function C(b,p){var D={},A=/^\s*|\s*$/,N=/^\s*#|^\s*$/,j=/^\s*\[(.*)\]\s*$/,z=/^\s*@import\s+url\((.*)\)\s*$/i,pe=/^([^=\s]*)\s*=\s*(.+)$/;function he(be,ke,Ae){var Ue=be.replace(A,"").split(/[\r\n]+/),st="*",De=Se.split("-",1)[0],je=!1,ze="";!function q(){for(;;){if(!Ue.length)return void Ae();var le=Ue.shift();if(!N.test(le)){if(ke){if(ze=j.exec(le)){st=ze[1].toLowerCase(),je="*"!==st&&st!==Se&&st!==De;continue}if(je)continue;if(ze=z.exec(le))return void ge(Be+ze[1],q)}var Ee=le.match(pe);Ee&&3==Ee.length&&(D[Ee[1]]=X(Ee[2]))}}}()}function ge(be,ke){_(be,function(Ae){he(Ae,!1,ke)},function(){console.warn(be+" not found."),ke()})}he(b,!0,function(){p(D)})}(b,function(p){for(var D in p){var A,N,j=D.lastIndexOf(".");j>0?(A=D.substring(0,j),N=D.substring(j+1)):(A=D,N=U),T[A]||(T[A]={}),T[A][N]=p[D]}_e&&_e()})},Ce)}(z,pe,he,function(){console.warn(z+" not found."),console.warn('"'+pe+'" resource not found'),S="",he()})}}}function L(oe,Se,_e){var Ce=T[oe];if(!Ce){if(console.warn("#"+oe+" is undefined."),!_e)return null;Ce=_e}var Be={};for(var X in Ce){var C=Ce[X];C=te(C=V(C,Se,oe,X),Se,oe),Be[X]=C}return Be}function V(oe,Se,_e,Ce){var X=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(oe);if(!X||!X.length)return oe;var p,C=X[1],b=X[2];return Se&&b in Se?p=Se[b]:b in T&&(p=T[b]),C in y&&(oe=(0,y[C])(oe,p,_e,Ce)),oe}function te(oe,Se,_e){return oe.replace(/\{\{\s*(.+?)\s*\}\}/g,function(Be,X){return Se&&X in Se?Se[X]:X in T?T[X]:(console.log("argument {{"+X+"}} for #"+_e+" is undefined."),Be)})}function ue(oe){var Se=function m(oe){if(!oe)return{};var Se=oe.getAttribute("data-l10n-id"),_e=oe.getAttribute("data-l10n-args"),Ce={};if(_e)try{Ce=JSON.parse(_e)}catch(Be){console.warn("could not parse arguments for #"+Se)}return{id:Se,args:Ce}}(oe);if(Se.id){var _e=L(Se.id,Se.args);if(!_e)return void console.warn("#"+Se.id+" is undefined.");if(_e[U]){if(0===function fe(oe){if(oe.children)return oe.children.length;if(void 0!==oe.childElementCount)return oe.childElementCount;for(var Se=0,_e=0;_e<oe.childNodes.length;_e++)Se+=1===oe.nodeType?1:0;return Se}(oe))oe[U]=_e[U];else{for(var Ce=oe.childNodes,Be=!1,X=0,C=Ce.length;X<C;X++)3===Ce[X].nodeType&&/\S/.test(Ce[X].nodeValue)&&(Be?Ce[X].nodeValue="":(Ce[X].nodeValue=_e[U],Be=!0));if(!Be){var b=E.createTextNode(_e[U]);oe.insertBefore(b,oe.firstChild)}}delete _e[U]}for(var p in _e)oe[p]=_e[p]}}return y.plural=function(oe,Se,_e,Ce){var Be=parseFloat(Se);if(isNaN(Be)||Ce!=U)return oe;y._pluralRules||(y._pluralRules=function Z(oe){function _e(C,b){return-1!==b.indexOf(C)}function Ce(C,b,p){return b<=C&&C<=p}var Be={0:function(C){return"other"},1:function(C){return Ce(C%100,3,10)?"few":0===C?"zero":Ce(C%100,11,99)?"many":2==C?"two":1==C?"one":"other"},2:function(C){return 0!==C&&C%10==0?"many":2==C?"two":1==C?"one":"other"},3:function(C){return 1==C?"one":"other"},4:function(C){return Ce(C,0,1)?"one":"other"},5:function(C){return Ce(C,0,2)&&2!=C?"one":"other"},6:function(C){return 0===C?"zero":C%10==1&&C%100!=11?"one":"other"},7:function(C){return 2==C?"two":1==C?"one":"other"},8:function(C){return Ce(C,3,6)?"few":Ce(C,7,10)?"many":2==C?"two":1==C?"one":"other"},9:function(C){return 0===C||1!=C&&Ce(C%100,1,19)?"few":1==C?"one":"other"},10:function(C){return Ce(C%10,2,9)&&!Ce(C%100,11,19)?"few":C%10!=1||Ce(C%100,11,19)?"other":"one"},11:function(C){return Ce(C%10,2,4)&&!Ce(C%100,12,14)?"few":C%10==0||Ce(C%10,5,9)||Ce(C%100,11,14)?"many":C%10==1&&C%100!=11?"one":"other"},12:function(C){return Ce(C,2,4)?"few":1==C?"one":"other"},13:function(C){return Ce(C%10,2,4)&&!Ce(C%100,12,14)?"few":1!=C&&Ce(C%10,0,1)||Ce(C%10,5,9)||Ce(C%100,12,14)?"many":1==C?"one":"other"},14:function(C){return Ce(C%100,3,4)?"few":C%100==2?"two":C%100==1?"one":"other"},15:function(C){return 0===C||Ce(C%100,2,10)?"few":Ce(C%100,11,19)?"many":1==C?"one":"other"},16:function(C){return C%10==1&&11!=C?"one":"other"},17:function(C){return 3==C?"few":0===C?"zero":6==C?"many":2==C?"two":1==C?"one":"other"},18:function(C){return 0===C?"zero":Ce(C,0,2)&&0!==C&&2!=C?"one":"other"},19:function(C){return Ce(C,2,10)?"few":Ce(C,0,1)?"one":"other"},20:function(C){return!Ce(C%10,3,4)&&C%10!=9||Ce(C%100,10,19)||Ce(C%100,70,79)||Ce(C%100,90,99)?C%1e6==0&&0!==C?"many":C%10!=2||_e(C%100,[12,72,92])?C%10!=1||_e(C%100,[11,71,91])?"other":"one":"two":"few"},21:function(C){return 0===C?"zero":1==C?"one":"other"},22:function(C){return Ce(C,0,1)||Ce(C,11,99)?"one":"other"},23:function(C){return Ce(C%10,1,2)||C%20==0?"one":"other"},24:function(C){return Ce(C,3,10)||Ce(C,13,19)?"few":_e(C,[2,12])?"two":_e(C,[1,11])?"one":"other"}},X={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[oe.replace(/-.*$/,"")];return X in Be?Be[X]:(console.warn("plural form unknown for ["+oe+"]"),function(){return"other"})}(S));var X="["+y._pluralRules(Be)+"]";return 0===Be&&_e+"[zero]"in T?oe=T[_e+"[zero]"][Ce]:1==Be&&_e+"[one]"in T?oe=T[_e+"[one]"][Ce]:2==Be&&_e+"[two]"in T?oe=T[_e+"[two]"][Ce]:_e+X in T?oe=T[_e+X][Ce]:_e+"[other]"in T&&(oe=T[_e+"[other]"][Ce]),oe},{get:function(oe,Se,_e){var X,Ce=oe.lastIndexOf("."),Be=U;Ce>0&&(Be=oe.substring(Ce+1),oe=oe.substring(0,Ce)),_e&&((X={})[Be]=_e);var C=L(oe,Se,X);return C&&Be in C?C[Be]:"{{"+oe+"}}"},getData:function(){return T},getText:function(){return W},getLanguage:function(){return S},setLanguage:function(oe,Se){O(oe,function(){Se&&Se()})},getDirection:function(){var Se=S.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(Se)>=0?"rtl":"ltr"},translate:function we(oe){for(var Se=function F(oe){return oe?oe.querySelectorAll("*[data-l10n-id]"):[]}(oe=oe||E.documentElement),_e=Se.length,Ce=0;Ce<_e;Ce++)ue(Se[Ce]);ue(oe)},getReadyState:function(){return g},ready:function(oe){oe&&("complete"==g||"interactive"==g?ce.setTimeout(function(){oe()}):E.addEventListener&&E.addEventListener("localized",function Se(){E.removeEventListener("localized",Se),oe()}))}}}(window,document)},(ce,E,Q)=>{var te,fz,fe,G1,oe,q1,_e,pz,Be,mz,C,gz,p,Y1,A,_z,j,vz,pe,gC,ge,Lg,ke,wf,Ue,yz,De,K1,ze,X1,le,_C,Xe,bz,Ke,Q1,pt,wz,ln,Ng;Object.defineProperty(E,"__esModule",{value:!0}),E.PDFFindController=E.FindState=void 0;var T=Q(6),W=Q(3),U=Q(21);const S={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};E.FindState=S;const G={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},P=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),F=[...P.values()].map(Ne=>String.fromCharCode(Ne)).join(""),m=new RegExp("\\p{M}+","gu"),_=new RegExp("([.*+?^${}()|[\\]\\\\])|(\\p{P})|(\\s+)|(\\p{M})|(\\p{L})","gu"),k=new RegExp("([^\\p{M}])\\p{M}*$","u"),O=new RegExp("^\\p{M}*([^\\p{M}])","u");let H=null;function Z(Ne){if(!H){const Fn=Object.keys(G).join("");H=new RegExp(`([${Fn}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`,"gum")}const ae=[];let de;for(;null!==(de=m.exec(Ne));)ae.push([de[0].length,de.index]);let We=Ne.normalize("NFD");const tt=[[0,0]];let at=0,gt=0,hn=0,bn=0,hi=!1;return We=We.replace(H,(Fn,Li,yi,ms,fi,$n)=>{var Fs;if($n-=hn,Li){const Ls=G[Fn],Ks=Ls.length;for(let Or=1;Or<Ks;Or++)tt.push([$n-gt+Or,gt-Or]);return gt-=Ks-1,Ls}if(yi){const Ls=yi.endsWith("\n"),Ks=Ls?yi.length-2:yi.length;hi=!0;let Or=Ks;$n+bn===(null==(Fs=ae[at])?void 0:Fs[1])&&(Or-=ae[at][0],++at);for(let xi=1;xi<Or+1;xi++)tt.push([$n-1-gt+xi,gt-xi]);return gt-=Or,hn+=Or,Ls?(tt.push([($n+=Ks-1)-gt+1,1+gt]),gt+=1,hn+=1,bn+=1,yi.slice(0,Ks)):yi}return ms?(tt.push([$n-gt+1,1+gt]),gt+=1,hn+=1,bn+=1,ms.charAt(0)):(tt.push([$n-gt+1,gt-1]),gt-=1,hn+=1,bn+=1," ")}),tt.push([We.length,gt]),[We,tt,hi]}function L(Ne,ae,de){if(!Ne)return[ae,de];const We=ae,tt=ae+de;let at=(0,T.binarySearchFirstItem)(Ne,hn=>hn[0]>=We);Ne[at][0]>We&&--at;let gt=(0,T.binarySearchFirstItem)(Ne,hn=>hn[0]>=tt,at);return Ne[gt][0]>tt&&--gt,[We+Ne[at][1],de+Ne[gt][1]-Ne[at][1]]}te=new WeakSet,fz=function(ae){if(!ae)return;const de=this._pdfDocument,{type:We}=ae;(null===this._state||Nt(this,_e,pz).call(this,ae))&&(this._dirtyMatch=!0),this._state=ae,"highlightallchange"!==We&&Nt(this,ln,Ng).call(this,S.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||de&&this._pdfDocument!==de)return;Nt(this,j,vz).call(this);const tt=!this._highlightMatches,at=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),We?this._dirtyMatch?Nt(this,ke,wf).call(this):"again"===We?(Nt(this,ke,wf).call(this),tt&&this._state.highlightAll&&Nt(this,ge,Lg).call(this)):"highlightallchange"===We?(at?Nt(this,ke,wf).call(this):this._highlightMatches=!0,Nt(this,ge,Lg).call(this)):Nt(this,ke,wf).call(this):this._findTimeout=setTimeout(()=>{Nt(this,ke,wf).call(this),this._findTimeout=null},250)})},fe=new WeakSet,G1=function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,W.createPromiseCapability)()},oe=new WeakSet,q1=function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=Z(this._state.query)),this._normalizedQuery},_e=new WeakSet,pz=function(ae){if(ae.query!==this._state.query)return!0;switch(ae.type){case"again":const de=this._selected.pageIdx+1,We=this._linkService;return de>=1&&de<=We.pagesCount&&de!==We.page&&!We.isPageVisible(de);case"highlightallchange":return!1}return!0},Be=new WeakSet,mz=function(ae,de,We){let tt=ae.slice(0,de).match(k);if(tt){const at=ae.charCodeAt(de),gt=tt[1].charCodeAt(0);if((0,U.getCharacterType)(at)===(0,U.getCharacterType)(gt))return!1}if(tt=ae.slice(de+We).match(O),tt){const at=ae.charCodeAt(de+We-1),gt=tt[1].charCodeAt(0);if((0,U.getCharacterType)(at)===(0,U.getCharacterType)(gt))return!1}return!0},C=new WeakSet,gz=function(ae,de,We,tt){const at=[],gt=[],hn=this._pageDiffs[We];let bn;for(;null!==(bn=ae.exec(tt));){if(de&&!Nt(this,Be,mz).call(this,tt,bn.index,bn[0].length))continue;const[hi,Fn]=L(hn,bn.index,bn[0].length);Fn&&(at.push(hi),gt.push(Fn))}this._pageMatches[We]=at,this._pageMatchesLength[We]=gt},p=new WeakSet,Y1=function(ae,de){const{matchDiacritics:We}=this._state;let tt=!1;return(ae=ae.replace(_,(gt,hn,bn,hi,Fn,Li)=>hn?`[ ]*\\${hn}[ ]*`:bn?`[ ]*${bn}[ ]*`:hi?"[ ]+":We?Fn||Li:Fn?P.has(Fn.charCodeAt(0))?Fn:"":de?(tt=!0,`${Li}\\p{M}*`):Li)).endsWith("[ ]*")&&(ae=ae.slice(0,ae.length-"[ ]*".length)),We&&de&&(tt=!0,ae=`${ae}(?=[${F}]|[^\\p{M}]|$)`),[tt,ae]},A=new WeakSet,_z=function(ae){let de=Rt(this,oe,q1);if(0===de.length)return;const{caseSensitive:We,entireWord:tt,phraseSearch:at}=this._state,gt=this._pageContents[ae],hn=this._hasDiacritics[ae];let bn=!1;if(at)[bn,de]=Nt(this,p,Y1).call(this,de,hn);else{const Li=de.match(/\S+/g);Li&&(de=Li.sort().reverse().map(yi=>{const[ms,fi]=Nt(this,p,Y1).call(this,yi,hn);return bn||(bn=ms),`(${fi})`}).join("|"))}de=new RegExp(de,`g${bn?"u":""}${We?"":"i"}`),Nt(this,C,gz).call(this,de,tt,ae,gt),this._state.highlightAll&&Nt(this,pe,gC).call(this,ae),this._resumePageIdx===ae&&(this._resumePageIdx=null,Nt(this,De,K1).call(this));const Fn=this._pageMatches[ae].length;Fn>0&&(this._matchesCountTotal+=Fn,Nt(this,pt,wz).call(this))},j=new WeakSet,vz=function(){if(this._extractTextPromises.length>0)return;let ae=Promise.resolve();for(let de=0,We=this._linkService.pagesCount;de<We;de++){const tt=(0,W.createPromiseCapability)();this._extractTextPromises[de]=tt.promise,ae=ae.then(()=>this._pdfDocument.getPage(de+1).then(at=>at.getTextContent()).then(at=>{const gt=[];for(const hn of at.items)gt.push(hn.str),hn.hasEOL&>.push("\n");[this._pageContents[de],this._pageDiffs[de],this._hasDiacritics[de]]=Z(gt.join("")),tt.resolve()},at=>{console.error(`Unable to get text content for page ${de+1}`,at),this._pageContents[de]="",this._pageDiffs[de]=null,this._hasDiacritics[de]=!1,tt.resolve()}))}},pe=new WeakSet,gC=function(ae){this._scrollMatches&&this._selected.pageIdx===ae&&(this._linkService.page=ae+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:ae})},ge=new WeakSet,Lg=function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})},ke=new WeakSet,wf=function(){const ae=this._state.findPrevious,de=this._linkService.page-1,We=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=de,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,Nt(this,ge,Lg).call(this);for(let at=0;at<We;at++)this._pendingFindMatches.has(at)||(this._pendingFindMatches.add(at),this._extractTextPromises[at].then(()=>{this._pendingFindMatches.delete(at),Nt(this,A,_z).call(this,at)}))}if(""===Rt(this,oe,q1))return void Nt(this,ln,Ng).call(this,S.FOUND);if(this._resumePageIdx)return;const tt=this._offset;if(this._pagesToSearch=We,null!==tt.matchIdx){const at=this._pageMatches[tt.pageIdx].length;if(!ae&&tt.matchIdx+1<at||ae&&tt.matchIdx>0)return tt.matchIdx=ae?tt.matchIdx-1:tt.matchIdx+1,void Nt(this,le,_C).call(this,!0);Nt(this,ze,X1).call(this,ae)}Nt(this,De,K1).call(this)},Ue=new WeakSet,yz=function(ae){const de=this._offset,We=ae.length,tt=this._state.findPrevious;return We?(de.matchIdx=tt?We-1:0,Nt(this,le,_C).call(this,!0),!0):(Nt(this,ze,X1).call(this,tt),!!(de.wrapped&&(de.matchIdx=null,this._pagesToSearch<0))&&(Nt(this,le,_C).call(this,!1),!0))},De=new WeakSet,K1=function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let ae=null;do{const de=this._offset.pageIdx;if(ae=this._pageMatches[de],!ae){this._resumePageIdx=de;break}}while(!Nt(this,Ue,yz).call(this,ae))},ze=new WeakSet,X1=function(ae){const de=this._offset,We=this._linkService.pagesCount;de.pageIdx=ae?de.pageIdx-1:de.pageIdx+1,de.matchIdx=null,this._pagesToSearch--,(de.pageIdx>=We||de.pageIdx<0)&&(de.pageIdx=ae?We-1:0,de.wrapped=!0)},le=new WeakSet,_C=function(ae=!1){let de=S.NOT_FOUND;const We=this._offset.wrapped;if(this._offset.wrapped=!1,ae){const tt=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,de=We?S.WRAPPED:S.FOUND,-1!==tt&&tt!==this._selected.pageIdx&&Nt(this,pe,gC).call(this,tt)}Nt(this,ln,Ng).call(this,de,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,Nt(this,pe,gC).call(this,this._selected.pageIdx))},Xe=new WeakSet,bz=function(ae){const de=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||de&&this._pdfDocument!==de||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),Nt(this,ln,Ng).call(this,S.FOUND),this._highlightMatches=!1,Nt(this,ge,Lg).call(this))})},Ke=new WeakSet,Q1=function(){var at;const{pageIdx:ae,matchIdx:de}=this._selected;let We=0,tt=this._matchesCountTotal;if(-1!==de){for(let gt=0;gt<ae;gt++)We+=(null==(at=this._pageMatches[gt])?void 0:at.length)||0;We+=de+1}return(We<1||We>tt)&&(We=tt=0),{current:We,total:tt}},pt=new WeakSet,wz=function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:Nt(this,Ke,Q1).call(this)})},ln=new WeakSet,Ng=function(ae,de=!1){var We,tt;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:ae,previous:de,matchesCount:Nt(this,Ke,Q1).call(this),rawQuery:null!=(tt=null==(We=this._state)?void 0:We.query)?tt:null})},E.PDFFindController=class V{constructor({linkService:ae,eventBus:de}){Gt(this,te),Gt(this,fe),Gt(this,oe),Gt(this,_e),Gt(this,Be),Gt(this,C),Gt(this,p),Gt(this,A),Gt(this,j),Gt(this,pe),Gt(this,ge),Gt(this,ke),Gt(this,Ue),Gt(this,De),Gt(this,ze),Gt(this,le),Gt(this,Xe),Gt(this,Ke),Gt(this,pt),Gt(this,ln),this._linkService=ae,this._eventBus=de,Nt(this,fe,G1).call(this),de._on("find",Nt(this,te,fz).bind(this)),de._on("findbarclose",Nt(this,Xe,bz).bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(ae){this._pdfDocument&&Nt(this,fe,G1).call(this),ae&&(this._pdfDocument=ae,this._firstPageCapability.resolve())}scrollMatchIntoView({element:ae=null,selectedLeft:de=0,pageIndex:We=-1,matchIndex:tt=-1}){this._scrollMatches&&ae&&-1!==tt&&tt===this._selected.matchIdx&&-1!==We&&We===this._selected.pageIdx&&(this._scrollMatches=!1,(0,T.scrollIntoView)(ae,{top:-50,left:de+-400},!0))}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.CharacterType=void 0,E.getCharacterType=function m(_){return function T(_){return _<11904}(_)?function W(_){return 0==(65408&_)}(_)?function y(_){return 32===_||9===_||13===_||10===_}(_)?Q.SPACE:function U(_){return _>=97&&_<=122||_>=65&&_<=90}(_)||function S(_){return _>=48&&_<=57}(_)||95===_?Q.ALPHA_LETTER:Q.PUNCT:function F(_){return 3584==(65408&_)}(_)?Q.THAI_LETTER:160===_?Q.SPACE:Q.ALPHA_LETTER:function g(_){return _>=13312&&_<=40959||_>=63744&&_<=64255}(_)?Q.HAN_LETTER:function M(_){return _>=12448&&_<=12543}(_)?Q.KATAKANA_LETTER:function G(_){return _>=12352&&_<=12447}(_)?Q.HIRAGANA_LETTER:function P(_){return _>=65376&&_<=65439}(_)?Q.HALFWIDTH_KATAKANA_LETTER:Q.ALPHA_LETTER};const Q={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};E.CharacterType=Q},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFHistory=void 0,E.isDestArraysEqual=P,E.isDestHashesEqual=G;var T=Q(6),W=Q(17);function g(){return document.location.hash}function G(F,m){return"string"==typeof F&&"string"==typeof m&&(F===m||(0,T.parseQueryString)(F).get("nameddest")===m)}function P(F,m){function _(k,O){if(typeof k!=typeof O||Array.isArray(k)||Array.isArray(O))return!1;if(null!==k&&"object"==typeof k&&null!==O){if(Object.keys(k).length!==Object.keys(O).length)return!1;for(const H in k)if(!_(k[H],O[H]))return!1;return!0}return k===O||Number.isNaN(k)&&Number.isNaN(O)}if(!Array.isArray(F)||!Array.isArray(m)||F.length!==m.length)return!1;for(let k=0,O=F.length;k<O;k++)if(!_(F[k],m[k]))return!1;return!0}E.PDFHistory=class M{constructor({linkService:m,eventBus:_}){this.linkService=m,this.eventBus=_,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",k=>{this._isPagesLoaded=!!k.pagesCount},{once:!0})})}initialize({fingerprint:m,resetHistory:_=!1,updateUrl:k=!1}){if(!m||"string"!=typeof m)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const O=""!==this._fingerprint&&this._fingerprint!==m;this._fingerprint=m,this._updateUrl=!0===k,this._initialized=!0,this._bindEvents();const H=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=g(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(H,!0)||_){const{hash:L,page:V,rotation:te}=this._parseCurrentHash(!0);return!L||O||_?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:L,page:V,rotation:te},!0)}const Z=H.destination;this._updateInternalState(Z,H.uid,!0),void 0!==Z.rotation&&(this._initialRotation=Z.rotation),Z.dest?(this._initialBookmark=JSON.stringify(Z.dest),this._destination.page=null):Z.hash?this._initialBookmark=Z.hash:Z.page&&(this._initialBookmark=`page=${Z.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:m=null,explicitDest:_,pageNumber:k}){if(!this._initialized)return;if(m&&"string"!=typeof m)return void console.error(`PDFHistory.push: "${m}" is not a valid namedDest parameter.`);if(!Array.isArray(_))return void console.error(`PDFHistory.push: "${_}" is not a valid explicitDest parameter.`);if(!this._isValidPage(k)&&(null!==k||this._destination))return void console.error(`PDFHistory.push: "${k}" is not a valid pageNumber parameter.`);const O=m||JSON.stringify(_);if(!O)return;let H=!1;if(this._destination&&(G(this._destination.hash,O)||P(this._destination.dest,_))){if(this._destination.page)return;H=!0}this._popStateInProgress&&!H||(this._pushOrReplaceState({dest:_,hash:O,page:k,rotation:this.linkService.rotation},H),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(m){var _;if(this._initialized){if(!this._isValidPage(m))return void console.error(`PDFHistory.pushPage: "${m}" is not a valid page number.`);(null==(_=this._destination)?void 0:_.page)!==m&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${m}`,page:m,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const m=window.history.state;this._isValidState(m)&&m.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const m=window.history.state;this._isValidState(m)&&m.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(m,_=!1){const k=_||!this._destination,O={fingerprint:this._fingerprint,uid:k?this._uid:this._uid+1,destination:m};let H;if(this._updateInternalState(m,O.uid),this._updateUrl&&(null==m?void 0:m.hash)){const Z=document.location.href.split("#")[0];Z.startsWith("file://")||(H=`${Z}#${m.hash}`)}k?window.history.replaceState(O,"",H):window.history.pushState(O,"",H)}_tryPushCurrentPosition(m=!1){if(!this._position)return;let _=this._position;if(m&&(_=Object.assign(Object.create(null),this._position),_.temporary=!0),!this._destination)return void this._pushOrReplaceState(_);if(this._destination.temporary)return void this._pushOrReplaceState(_,!0);if(this._destination.hash===_.hash||!this._destination.page&&this._numPositionUpdates<=50)return;let k=!1;if(this._destination.page>=_.first&&this._destination.page<=_.page){if(void 0!==this._destination.dest||!this._destination.first)return;k=!0}this._pushOrReplaceState(_,k)}_isValidPage(m){return Number.isInteger(m)&&m>0&&m<=this.linkService.pagesCount}_isValidState(m,_=!1){if(!m)return!1;if(m.fingerprint!==this._fingerprint){if(!_)return!1;{if("string"!=typeof m.fingerprint||m.fingerprint.length!==this._fingerprint.length)return!1;const[k]=performance.getEntriesByType("navigation");if("reload"!==(null==k?void 0:k.type))return!1}}return!(!Number.isInteger(m.uid)||m.uid<0||null===m.destination||"object"!=typeof m.destination)}_updateInternalState(m,_,k=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),k&&(null==m?void 0:m.temporary)&&delete m.temporary,this._destination=m,this._uid=_,this._maxUid=Math.max(this._maxUid,_),this._numPositionUpdates=0}_parseCurrentHash(m=!1){const _=unescape(g()).substring(1),k=(0,T.parseQueryString)(_),O=k.get("nameddest")||"";let H=0|k.get("page");return(!this._isValidPage(H)||m&&O.length>0)&&(H=null),{hash:_,page:H,rotation:this.linkService.rotation}}_updateViewarea({location:m}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:m.pdfOpenParams.substring(1),page:this.linkService.page,first:m.pageNumber,rotation:m.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:m}){const _=g(),k=this._currentHash!==_;if(this._currentHash=_,!m){this._uid++;const{hash:H,page:Z,rotation:L}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:H,page:Z,rotation:L},!0)}if(!this._isValidState(m))return;this._popStateInProgress=!0,k&&(this._blockHashChange++,(0,W.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const O=m.destination;this._updateInternalState(O,m.uid,!0),(0,T.isValidRotation)(O.rotation)&&(this.linkService.rotation=O.rotation),O.dest?this.linkService.goToDestination(O.dest):O.hash?this.linkService.setHash(O.hash):O.page&&(this.linkService.page=O.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFScriptingManager=void 0;var T=Q(6),W=Q(3);E.PDFScriptingManager=class U{constructor({eventBus:y,sandboxBundleSrc:g=null,scriptingFactory:M=null,docPropertiesLookup:G=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=y,this._sandboxBundleSrc=g,this._scriptingFactory=M,this._docPropertiesLookup=G,this._scriptingFactory||window.addEventListener("updatefromsandbox",P=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:P.detail})})}setViewer(y){this._pdfViewer=y}setDocument(y){var g=this;return I(function*(){var F;if(g._pdfDocument&&(yield g._destroyScripting()),g._pdfDocument=y,!y)return;const[M,G,P]=yield Promise.all([y.getFieldObjects(),y.getCalculationOrderIds(),y.getJSActions()]);if(M||P){if(y===g._pdfDocument){try{g._scripting=g._createScripting()}catch(m){return console.error(`PDFScriptingManager.setDocument: "${null==m?void 0:m.message}".`),void(yield g._destroyScripting())}g._internalEvents.set("updatefromsandbox",m=>{(null==m?void 0:m.source)===window&&g._updateFromSandbox(m.detail)}),g._internalEvents.set("dispatcheventinsandbox",m=>{var _;null==(_=g._scripting)||_.dispatchEventInSandbox(m.detail)}),g._internalEvents.set("pagechanging",({pageNumber:m,previous:_})=>{m!==_&&(g._dispatchPageClose(_),g._dispatchPageOpen(m))}),g._internalEvents.set("pagerendered",({pageNumber:m})=>{!g._pageOpenPending.has(m)||m===g._pdfViewer.currentPageNumber&&g._dispatchPageOpen(m)}),g._internalEvents.set("pagesdestroy",function(){var m=I(function*(_){var k,O;yield g._dispatchPageClose(g._pdfViewer.currentPageNumber),yield null==(k=g._scripting)?void 0:k.dispatchEventInSandbox({id:"doc",name:"WillClose"}),null==(O=g._closeCapability)||O.resolve()});return function(_){return m.apply(this,arguments)}}()),g._domEvents.set("mousedown",m=>{g._mouseState.isDown=!0}),g._domEvents.set("mouseup",m=>{g._mouseState.isDown=!1});for(const[m,_]of g._internalEvents)g._eventBus._on(m,_);for(const[m,_]of g._domEvents)window.addEventListener(m,_,!0);try{const m=yield g._getDocProperties();if(y!==g._pdfDocument)return;yield g._scripting.createSandbox({objects:M,calculationOrder:G,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:B1(V1({},m),{actions:P})}),g._eventBus.dispatch("sandboxcreated",{source:g})}catch(m){return console.error(`PDFScriptingManager.setDocument: "${null==m?void 0:m.message}".`),void(yield g._destroyScripting())}yield null==(F=g._scripting)?void 0:F.dispatchEventInSandbox({id:"doc",name:"Open"}),yield g._dispatchPageOpen(g._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{y===g._pdfDocument&&(g._ready=!0)})}}else yield g._destroyScripting()})()}dispatchWillSave(y){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"WillSave"})})()}dispatchDidSave(y){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"DidSave"})})()}dispatchWillPrint(y){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"WillPrint"})})()}dispatchDidPrint(y){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"DidPrint"})})()}get mouseState(){return this._mouseState}get destroyPromise(){var y;return(null==(y=this._destroyCapability)?void 0:y.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,W.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,W.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,W.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,W.shadow)(this,"_visitedPages",new Map)}_updateFromSandbox(y){var g=this;return I(function*(){var k;const M=g._pdfViewer.isInPresentationMode||g._pdfViewer.isChangingPresentationMode,{id:G,siblings:P,command:F,value:m}=y;if(!G){switch(F){case"clear":console.clear();break;case"error":console.error(m);break;case"layout":if(M)return;const O=(0,T.apiPageLayoutToViewerModes)(m);g._pdfViewer.spreadMode=O.spreadMode;break;case"page-num":g._pdfViewer.currentPageNumber=m+1;break;case"print":yield g._pdfViewer.pagesPromise,g._eventBus.dispatch("print",{source:g});break;case"println":console.log(m);break;case"zoom":if(M)return;g._pdfViewer.currentScaleValue=m;break;case"SaveAs":g._eventBus.dispatch("save",{source:g});break;case"FirstPage":g._pdfViewer.currentPageNumber=1;break;case"LastPage":g._pdfViewer.currentPageNumber=g._pdfViewer.pagesCount;break;case"NextPage":g._pdfViewer.nextPage();break;case"PrevPage":g._pdfViewer.previousPage();break;case"ZoomViewIn":if(M)return;g._pdfViewer.increaseScale();break;case"ZoomViewOut":if(M)return;g._pdfViewer.decreaseScale()}return}if(M&&y.focus)return;delete y.id,delete y.siblings;const _=P?[G,...P]:[G];for(const O of _){const H=document.getElementById(O);H?H.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:y})):null==(k=g._pdfDocument)||k.annotationStorage.setValue(O,y)}})()}_dispatchPageOpen(y,g=!1){var M=this;return I(function*(){const G=M._pdfDocument,P=M._visitedPages;if(g&&(M._closeCapability=(0,W.createPromiseCapability)()),!M._closeCapability)return;const F=M._pdfViewer.getPageView(y-1);if((null==F?void 0:F.renderingState)!==T.RenderingStates.FINISHED)return void M._pageOpenPending.add(y);M._pageOpenPending.delete(y);const m=I(function*(){var k,O;const _=yield P.has(y)?null:null==(k=F.pdfPage)?void 0:k.getJSActions();G===M._pdfDocument&&(yield null==(O=M._scripting)?void 0:O.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:y,actions:_}))})();P.set(y,m)})()}_dispatchPageClose(y){var g=this;return I(function*(){var F;const M=g._pdfDocument,G=g._visitedPages;if(!g._closeCapability||g._pageOpenPending.has(y))return;const P=G.get(y);!P||(G.set(y,null),yield P,M===g._pdfDocument&&(yield null==(F=g._scripting)?void 0:F.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:y})))})()}_getDocProperties(){var y=this;return I(function*(){if(y._docPropertiesLookup)return y._docPropertiesLookup(y._pdfDocument);const{docPropertiesLookup:g}=Q(24);return g(y._pdfDocument)})()}_createScripting(){if(this._destroyCapability=(0,W.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:y}=Q(24);return new y(this._sandboxBundleSrc)}_destroyScripting(){var y=this;return I(function*(){var g,M;if(!y._scripting)return y._pdfDocument=null,void(null==(g=y._destroyCapability)||g.resolve());y._closeCapability&&(yield Promise.race([y._closeCapability.promise,new Promise(G=>{setTimeout(G,1e3)})]).catch(G=>{}),y._closeCapability=null),y._pdfDocument=null;try{yield y._scripting.destroySandbox()}catch(G){}for(const[G,P]of y._internalEvents)y._eventBus._off(G,P);y._internalEvents.clear();for(const[G,P]of y._domEvents)window.removeEventListener(G,P,!0);y._domEvents.clear(),y._pageOpenPending.clear(),y._visitedPages.clear(),y._scripting=null,delete y._mouseState.isDown,y._ready=!1,null==(M=y._destroyCapability)||M.resolve()})()}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.GenericScripting=void 0,E.docPropertiesLookup=function W(y){return U.apply(this,arguments)};var T=Q(3);function U(){return(U=I(function*(y){const M="".split("#")[0];let{info:G,metadata:P,contentDispositionFilename:F,contentLength:m}=yield y.getMetadata();if(!m){const{length:_}=yield y.getDownloadInfo();m=_}return B1(V1({},G),{baseURL:M,filesize:m,filename:F||(0,T.getPdfFilenameFromUrl)(""),metadata:null==P?void 0:P.getRaw(),authors:null==P?void 0:P.get("dc:creator"),numPages:y.numPages,URL:""})})).apply(this,arguments)}E.GenericScripting=class S{constructor(g){this._ready=(0,T.loadScript)(g,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}createSandbox(g){var M=this;return I(function*(){(yield M._ready).create(g)})()}dispatchEventInSandbox(g){var M=this;return I(function*(){const G=yield M._ready;setTimeout(()=>G.dispatchEvent(g),0)})()}destroySandbox(){var g=this;return I(function*(){(yield g._ready).nukeSandbox()})()}}}],Ve={};function Te(ce){var E=Ve[ce];if(void 0!==E)return E.exports;var Q=Ve[ce]={exports:{}};return J[ce](Q,Q.exports,Te),Q.exports}var Me={};return(()=>{var ce=Me;Object.defineProperty(ce,"__esModule",{value:!0}),Object.defineProperty(ce,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return U.AnnotationLayerBuilder}}),Object.defineProperty(ce,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return E.DefaultAnnotationLayerFactory}}),Object.defineProperty(ce,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return E.DefaultStructTreeLayerFactory}}),Object.defineProperty(ce,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return E.DefaultTextLayerFactory}}),Object.defineProperty(ce,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return E.DefaultXfaLayerFactory}}),Object.defineProperty(ce,"DownloadManager",{enumerable:!0,get:function(){return S.DownloadManager}}),Object.defineProperty(ce,"EventBus",{enumerable:!0,get:function(){return y.EventBus}}),Object.defineProperty(ce,"GenericL10n",{enumerable:!0,get:function(){return g.GenericL10n}}),Object.defineProperty(ce,"LinkTarget",{enumerable:!0,get:function(){return Q.LinkTarget}}),Object.defineProperty(ce,"NullL10n",{enumerable:!0,get:function(){return M.NullL10n}}),Object.defineProperty(ce,"PDFFindController",{enumerable:!0,get:function(){return G.PDFFindController}}),Object.defineProperty(ce,"PDFHistory",{enumerable:!0,get:function(){return P.PDFHistory}}),Object.defineProperty(ce,"PDFLinkService",{enumerable:!0,get:function(){return Q.PDFLinkService}}),Object.defineProperty(ce,"PDFPageView",{enumerable:!0,get:function(){return F.PDFPageView}}),Object.defineProperty(ce,"PDFScriptingManager",{enumerable:!0,get:function(){return m.PDFScriptingManager}}),Object.defineProperty(ce,"PDFSinglePageViewer",{enumerable:!0,get:function(){return W.PDFSinglePageViewer}}),Object.defineProperty(ce,"PDFViewer",{enumerable:!0,get:function(){return W.PDFViewer}}),Object.defineProperty(ce,"ProgressBar",{enumerable:!0,get:function(){return T.ProgressBar}}),Object.defineProperty(ce,"SimpleLinkService",{enumerable:!0,get:function(){return Q.SimpleLinkService}}),Object.defineProperty(ce,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return _.StructTreeLayerBuilder}}),Object.defineProperty(ce,"TextLayerBuilder",{enumerable:!0,get:function(){return k.TextLayerBuilder}}),Object.defineProperty(ce,"XfaLayerBuilder",{enumerable:!0,get:function(){return O.XfaLayerBuilder}}),Object.defineProperty(ce,"parseQueryString",{enumerable:!0,get:function(){return T.parseQueryString}});var E=Te(1),Q=Te(5),T=Te(6),W=Te(10),U=Te(2),S=Te(16),y=Te(17),g=Te(18),M=Te(4),G=Te(20),P=Te(22),F=Te(12),m=Te(23),_=Te(7),k=Te(8),O=Te(9)})(),Me})(),Ze.exports=Te()},87:function(Ze,re){var He,J;!function(Ve,Te){"use strict";He=function(){var Ve=function(){var E,Q,Me="+1,-1,100,1234,8ball,a,ab,abc,abcd,accept,aerial_tramway,airplane,alarm_clock,alien,ambulance,anchor,angel,anger,angry,anguished,ant,apple,aquarius,aries,arrow_backward,arrow_double_down,arrow_double_up,arrow_down,arrow_down_small,arrow_forward,arrow_heading_down,arrow_heading_up,arrow_left,arrow_lower_left,arrow_lower_right,arrow_right,arrow_right_hook,arrow_up,arrow_up_down,arrow_up_small,arrow_upper_left,arrow_upper_right,arrows_clockwise,arrows_counterclockwise,art,articulated_lorry,astonished,atm,b,baby,baby_bottle,baby_chick,baby_symbol,back,baggage_claim,balloon,ballot_box_with_check,bamboo,banana,bangbang,bank,bar_chart,barber,baseball,basketball,bath,bathtub,battery,bear,bee,beer,beers,beetle,beginner,bell,bento,bicyclist,bike,bikini,bird,birthday,black_circle,black_joker,black_medium_small_square,black_medium_square,black_nib,black_small_square,black_square,black_square_button,blossom,blowfish,blue_book,blue_car,blue_heart,blush,boar,boat,bomb,book,bookmark,bookmark_tabs,books,boom,boot,bouquet,bow,bowling,bowtie,boy,bread,bride_with_veil,bridge_at_night,briefcase,broken_heart,bug,bulb,bullettrain_front,bullettrain_side,bus,busstop,bust_in_silhouette,busts_in_silhouette,cactus,cake,calendar,calling,camel,camera,cancer,candy,capital_abcd,capricorn,car,card_index,carousel_horse,cat,cat2,cd,chart,chart_with_downwards_trend,chart_with_upwards_trend,checkered_flag,cherries,cherry_blossom,chestnut,chicken,children_crossing,chocolate_bar,christmas_tree,church,cinema,circus_tent,city_sunrise,city_sunset,cl,clap,clapper,clipboard,clock1,clock10,clock1030,clock11,clock1130,clock12,clock1230,clock130,clock2,clock230,clock3,clock330,clock4,clock430,clock5,clock530,clock6,clock630,clock7,clock730,clock8,clock830,clock9,clock930,closed_book,closed_lock_with_key,closed_umbrella,cloud,clubs,cn,cocktail,coffee,cold_sweat,collision,computer,confetti_ball,confounded,confused,congratulations,construction,construction_worker,convenience_store,cookie,cool,cop,copyright,corn,couple,couple_with_heart,couplekiss,cow,cow2,credit_card,crescent_moon,crocodile,crossed_flags,crown,cry,crying_cat_face,crystal_ball,cupid,curly_loop,currency_exchange,curry,custard,customs,cyclone,dancer,dancers,dango,dart,dash,date,de,deciduous_tree,department_store,diamond_shape_with_a_dot_inside,diamonds,disappointed,disappointed_relieved,dizzy,dizzy_face,do_not_litter,dog,dog2,dollar,dolls,dolphin,donut,door,doughnut,dragon,dragon_face,dress,dromedary_camel,droplet,dvd,e-mail,ear,ear_of_rice,earth_africa,earth_americas,earth_asia,egg,eggplant,eight,eight_pointed_black_star,eight_spoked_asterisk,electric_plug,elephant,email,end,envelope,es,euro,european_castle,european_post_office,evergreen_tree,exclamation,expressionless,eyeglasses,eyes,facepunch,factory,fallen_leaf,family,fast_forward,fax,fearful,feelsgood,feet,ferris_wheel,file_folder,finnadie,fire,fire_engine,fireworks,first_quarter_moon,first_quarter_moon_with_face,fish,fish_cake,fishing_pole_and_fish,fist,five,flags,flashlight,floppy_disk,flower_playing_cards,flushed,foggy,football,fork_and_knife,fountain,four,four_leaf_clover,fr,free,fried_shrimp,fries,frog,frowning,fu,fuelpump,full_moon,full_moon_with_face,game_die,gb,gem,gemini,ghost,gift,gift_heart,girl,globe_with_meridians,goat,goberserk,godmode,golf,grapes,green_apple,green_book,green_heart,grey_exclamation,grey_question,grimacing,grin,grinning,guardsman,guitar,gun,haircut,hamburger,hammer,hamster,hand,handbag,hankey,hash,hatched_chick,hatching_chick,headphones,hear_no_evil,heart,heart_decoration,heart_eyes,heart_eyes_cat,heartbeat,heartpulse,hearts,heavy_check_mark,heavy_division_sign,heavy_dollar_sign,heavy_exclamation_mark,heavy_minus_sign,heavy_multiplication_x,heavy_plus_sign,helicopter,herb,hibiscus,high_brightness,high_heel,hocho,honey_pot,honeybee,horse,horse_racing,hospital,hotel,hotsprings,hourglass,hourglass_flowing_sand,house,house_with_garden,hurtrealbad,hushed,ice_cream,icecream,id,ideograph_advantage,imp,inbox_tray,incoming_envelope,information_desk_person,information_source,innocent,interrobang,iphone,it,izakaya_lantern,jack_o_lantern,japan,japanese_castle,japanese_goblin,japanese_ogre,jeans,joy,joy_cat,jp,key,keycap_ten,kimono,kiss,kissing,kissing_cat,kissing_closed_eyes,kissing_face,kissing_heart,kissing_smiling_eyes,koala,koko,kr,large_blue_circle,large_blue_diamond,large_orange_diamond,last_quarter_moon,last_quarter_moon_with_face,laughing,leaves,ledger,left_luggage,left_right_arrow,leftwards_arrow_with_hook,lemon,leo,leopard,libra,light_rail,link,lips,lipstick,lock,lock_with_ink_pen,lollipop,loop,loudspeaker,love_hotel,love_letter,low_brightness,m,mag,mag_right,mahjong,mailbox,mailbox_closed,mailbox_with_mail,mailbox_with_no_mail,man,man_with_gua_pi_mao,man_with_turban,mans_shoe,maple_leaf,mask,massage,meat_on_bone,mega,melon,memo,mens,metal,metro,microphone,microscope,milky_way,minibus,minidisc,mobile_phone_off,money_with_wings,moneybag,monkey,monkey_face,monorail,mortar_board,mount_fuji,mountain_bicyclist,mountain_cableway,mountain_railway,mouse,mouse2,movie_camera,moyai,muscle,mushroom,musical_keyboard,musical_note,musical_score,mute,nail_care,name_badge,neckbeard,necktie,negative_squared_cross_mark,neutral_face,new,new_moon,new_moon_with_face,newspaper,ng,nine,no_bell,no_bicycles,no_entry,no_entry_sign,no_good,no_mobile_phones,no_mouth,no_pedestrians,no_smoking,non-potable_water,nose,notebook,notebook_with_decorative_cover,notes,nut_and_bolt,o,o2,ocean,octocat,octopus,oden,office,ok,ok_hand,ok_woman,older_man,older_woman,on,oncoming_automobile,oncoming_bus,oncoming_police_car,oncoming_taxi,one,open_file_folder,open_hands,open_mouth,ophiuchus,orange_book,outbox_tray,ox,package,page_facing_up,page_with_curl,pager,palm_tree,panda_face,paperclip,parking,part_alternation_mark,partly_sunny,passport_control,paw_prints,peach,pear,pencil,pencil2,penguin,pensive,performing_arts,persevere,person_frowning,person_with_blond_hair,person_with_pouting_face,phone,pig,pig2,pig_nose,pill,pineapple,pisces,pizza,plus1,point_down,point_left,point_right,point_up,point_up_2,police_car,poodle,poop,post_office,postal_horn,postbox,potable_water,pouch,poultry_leg,pound,pouting_cat,pray,princess,punch,purple_heart,purse,pushpin,put_litter_in_its_place,question,rabbit,rabbit2,racehorse,radio,radio_button,rage,rage1,rage2,rage3,rage4,railway_car,rainbow,raised_hand,raised_hands,raising_hand,ram,ramen,rat,recycle,red_car,red_circle,registered,relaxed,relieved,repeat,repeat_one,restroom,revolving_hearts,rewind,ribbon,rice,rice_ball,rice_cracker,rice_scene,ring,rocket,roller_coaster,rooster,rose,rotating_light,round_pushpin,rowboat,ru,rugby_football,runner,running,running_shirt_with_sash,sa,sagittarius,sailboat,sake,sandal,santa,satellite,satisfied,saxophone,school,school_satchel,scissors,scorpius,scream,scream_cat,scroll,seat,secret,see_no_evil,seedling,seven,shaved_ice,sheep,shell,ship,shipit,shirt,shit,shoe,shower,signal_strength,six,six_pointed_star,ski,skull,sleeping,sleepy,slot_machine,small_blue_diamond,small_orange_diamond,small_red_triangle,small_red_triangle_down,smile,smile_cat,smiley,smiley_cat,smiling_imp,smirk,smirk_cat,smoking,snail,snake,snowboarder,snowflake,snowman,sob,soccer,soon,sos,sound,space_invader,spades,spaghetti,sparkle,sparkler,sparkles,sparkling_heart,speak_no_evil,speaker,speech_balloon,speedboat,squirrel,star,star2,stars,station,statue_of_liberty,steam_locomotive,stew,straight_ruler,strawberry,stuck_out_tongue,stuck_out_tongue_closed_eyes,stuck_out_tongue_winking_eye,sun_with_face,sunflower,sunglasses,sunny,sunrise,sunrise_over_mountains,surfer,sushi,suspect,suspension_railway,sweat,sweat_drops,sweat_smile,sweet_potato,swimmer,symbols,syringe,tada,tanabata_tree,tangerine,taurus,taxi,tea,telephone,telephone_receiver,telescope,tennis,tent,thought_balloon,three,thumbsdown,thumbsup,ticket,tiger,tiger2,tired_face,tm,toilet,tokyo_tower,tomato,tongue,top,tophat,tractor,traffic_light,train,train2,tram,triangular_flag_on_post,triangular_ruler,trident,triumph,trolleybus,trollface,trophy,tropical_drink,tropical_fish,truck,trumpet,tshirt,tulip,turtle,tv,twisted_rightwards_arrows,two,two_hearts,two_men_holding_hands,two_women_holding_hands,u5272,u5408,u55b6,u6307,u6708,u6709,u6e80,u7121,u7533,u7981,u7a7a,uk,umbrella,unamused,underage,unlock,up,us,v,vertical_traffic_light,vhs,vibration_mode,video_camera,video_game,violin,virgo,volcano,vs,walking,waning_crescent_moon,waning_gibbous_moon,warning,watch,water_buffalo,watermelon,wave,wavy_dash,waxing_crescent_moon,waxing_gibbous_moon,wc,weary,wedding,whale,whale2,wheelchair,white_check_mark,white_circle,white_flower,white_large_square,white_medium_small_square,white_medium_square,white_small_square,white_square_button,wind_chime,wine_glass,wink,wolf,woman,womans_clothes,womans_hat,womens,worried,wrench,x,yellow_heart,yen,yum,zap,zero,zzz".split(/,/),ce=Me.reduce(function(_,k){return _[k]=!0,_},{});function T(){var _={named:/:([a-z0-9A-Z_-]+):/,smile:/:-?\)/g,open_mouth:/:o/gi,scream:/:-o/gi,smirk:/[:;]-?]/g,grinning:/[:;]-?d/gi,stuck_out_tongue_closed_eyes:/x-d/gi,stuck_out_tongue_winking_eye:/[:;]-?p/gi,rage:/:-?[\[@]/g,frowning:/:-?\(/g,sob:/:['\u2019]-?\(|:'\(/g,kissing_heart:/:-?\*/g,wink:/;-?\)/g,pensive:/:-?\//g,confounded:/:-?s/gi,flushed:/:-?\|/g,relaxed:/:-?\$/g,mask:/:-x/gi,heart:/<3|<3/g,broken_heart:/<\/3|</3/g,thumbsup:/:\+1:/g,thumbsdown:/:\-1:/g};return U.ignore_emoticons&&(_={named:/:([a-z0-9A-Z_-]+):/,thumbsup:/:\+1:/g,thumbsdown:/:\-1:/g}),Object.keys(_).map(function(k){return[_[k],k]})}function W(){var _=E.map(function(k){var O=k[0],H=O.source||O;return"("+(H=H.replace(/(^|[^\[])\^/g,"$1"))+")"}).join("|");return new RegExp(_,"gi")}var U={blacklist:{ids:[],classes:["no-emojify"],elements:["script","textarea","a","pre","code"]},tag_type:null,only_crawl_id:null,img_dir:"images/emoji",ignore_emoticons:!1,mode:"img"};function S(_){return" "===_||"\t"===_||"\r"===_||"\n"===_||""===_||_===String.fromCharCode(160)}var y={img:"img",sprite:"span","data-uri":"span"};function g(_){var k=null;if(_.replacer)k=_.replacer.apply({config:U},[":"+_.emojiName+":",_.emojiName]);else{var O=U.tag_type||y[U.mode];k=_.win.document.createElement(O),"img"!==O?k.setAttribute("class","emoji emoji-"+_.emojiName):(k.setAttribute("align","absmiddle"),k.setAttribute("alt",":"+_.emojiName+":"),k.setAttribute("class","emoji"),k.setAttribute("src",U.img_dir+"/"+_.emojiName+".png")),k.setAttribute("title",":"+_.emojiName+":")}_.node.splitText(_.match.index),_.node.nextSibling.nodeValue=_.node.nextSibling.nodeValue.substr(_.match[0].length,_.node.nextSibling.nodeValue.length),k.appendChild(_.node.splitText(_.match.index)),_.node.parentNode.insertBefore(k,_.node.nextSibling)}function M(_){if(_[1]&&_[2]){var k=_[2];return ce[k]?k:void 0}for(var O=3;O<_.length-1;O++)if(_[O])return E[O-2][1]}function G(_,k){var O=this.config.tag_type||y[this.config.mode];return"img"!==O?"<"+O+" class='emoji emoji-"+k+"' title=':"+k+":'></"+O+">":"<img align='absmiddle' alt=':"+k+":' class='emoji' src='"+this.config.img_dir+"/"+k+".png' title=':"+k+":' />"}function P(){this.lastEmojiTerminatedAt=-1}return P.prototype={validate:function(_,k,O){var H=this,Z=M(_);if(Z){var L=_[0],V=L.length;if(0===k||O.length===L.length+k)return te();var ue=this.lastEmojiTerminatedAt===k;return ue||S(O.charAt(k-1))||S(O.charAt(L.length+k))&&ue?te():void 0}function te(){return H.lastEmojiTerminatedAt=V+k,Z}}},{defaultConfig:U,emojiNames:Me,setConfig:function(_){Object.keys(U).forEach(function(k){k in _&&(U[k]=_[k])})},replace:function F(_,k){if(!_)return _;k||(k=G),E=T(),Q=W();var O=new P;return _.replace(Q,function(){var H=Array.prototype.slice.call(arguments,0,-2),V=O.validate(H,arguments[arguments.length-2],arguments[arguments.length-1]);return V?k.apply({config:U},[arguments[0],V]):arguments[0]})},run:function m(_,k){void 0===_&&(_=U.only_crawl_id?document.getElementById(U.only_crawl_id):document.body);var O=_.ownerDocument,H=O.defaultView||O.parentWindow,Z=function(oe,Se){var _e;if(oe.hasChildNodes())for(_e=oe.firstChild;_e;)Se(_e)&&Z(_e,Se),_e=_e.nextSibling};E=T(),Q=W();var V=[],te=new RegExp(U.blacklist.elements.join("|"),"i"),ue=new RegExp(U.blacklist.classes.join("|"),"i");if(void 0!==H.document.createTreeWalker)for(var we,fe=H.document.createTreeWalker(_,H.NodeFilter.SHOW_TEXT|H.NodeFilter.SHOW_ELEMENT,function(oe){return 1!==oe.nodeType?H.NodeFilter.FILTER_ACCEPT:oe.tagName.match(te)||"svg"===oe.tagName||oe.className.match(ue)?H.NodeFilter.FILTER_REJECT:H.NodeFilter.FILTER_SKIP},!1);null!==(we=fe.nextNode());)V.push(we);else Z(_,function(oe){return!(void 0!==oe.tagName&&oe.tagName.match(te)||void 0!==oe.className&&oe.className.match(ue)||(1===oe.nodeType||V.push(oe),0))});V.forEach(function(oe){for(var Se,_e=[],Ce=new P;null!==(Se=Q.exec(oe.data));)Ce.validate(Se,Se.index,Se.input)&&_e.push(Se);for(var Be=_e.length;Be-- >0;){var X=M(_e[Be]);g({node:oe,match:_e[Be],emojiName:X,replacer:k,win:H})}})}}}();return Ve},void 0!==(J=He.apply(re,[]))&&(Ze.exports=J)}()},3414:()=>{},172:()=>{},2001:()=>{},3779:()=>{},6558:()=>{},2258:()=>{},7156:Ze=>{function re(I,J,Ve,Te,Me,ce,E){try{var Q=I[ce](E),T=Q.value}catch(W){return void Ve(W)}Q.done?J(T):Promise.resolve(T).then(Te,Me)}Ze.exports=function He(I){return function(){var J=this,Ve=arguments;return new Promise(function(Te,Me){var ce=I.apply(J,Ve);function E(T){re(ce,Te,Me,E,Q,"next",T)}function Q(T){re(ce,Te,Me,E,Q,"throw",T)}E(void 0)})}},Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports}},Ze=>{Ze(Ze.s=4585)}]); \ No newline at end of file diff --git a/main.e27f8f4d565f88dd.js b/main.e27f8f4d565f88dd.js new file mode 100644 index 0000000..d9810d9 --- /dev/null +++ b/main.e27f8f4d565f88dd.js @@ -0,0 +1 @@ +var tue=Object.defineProperty,nue=Object.defineProperties,iue=Object.getOwnPropertyDescriptors,iz=Object.getOwnPropertySymbols,rue=Object.prototype.hasOwnProperty,sue=Object.prototype.propertyIsEnumerable,N1=(Ze,re,He)=>re in Ze?tue(Ze,re,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ze[re]=He,V1=(Ze,re)=>{for(var He in re||(re={}))rue.call(re,He)&&N1(Ze,He,re[He]);if(iz)for(var He of iz(re))sue.call(re,He)&&N1(Ze,He,re[He]);return Ze},B1=(Ze,re)=>nue(Ze,iue(re)),pC=(Ze,re,He)=>(N1(Ze,"symbol"!=typeof re?re+"":re,He),He),H1=(Ze,re,He)=>{if(!re.has(Ze))throw TypeError("Cannot "+He)},Rt=(Ze,re,He)=>(H1(Ze,re,"read from private field"),He?He.call(Ze):re.get(Ze)),Gt=(Ze,re,He)=>{if(re.has(Ze))throw TypeError("Cannot add the same private member more than once");re instanceof WeakSet?re.add(Ze):re.set(Ze,He)},Fi=(Ze,re,He,I)=>(H1(Ze,re,"write to private field"),I?I.call(Ze,He):re.set(Ze,He),He),rz=(Ze,re,He,I)=>({set _(J){Fi(Ze,re,J,He)},get _(){return Rt(Ze,re,I)}}),Nt=(Ze,re,He)=>(H1(Ze,re,"access private method"),He);(self.webpackChunkgh_open_data_page=self.webpackChunkgh_open_data_page||[]).push([[179],{4585:(Ze,re,He)=>{"use strict";function I(n){return"function"==typeof n}function J(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 Ve=J(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 Te(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Me{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(I(i))try{i()}catch(s){t=s instanceof Ve?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{Q(s)}catch(o){t=null!=t?t:[],o instanceof Ve?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Ve(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Q(t);else{if(t instanceof Me){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&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)&&Te(e,t)}remove(t){const{_finalizers:e}=this;e&&Te(e,t),t instanceof Me&&t._removeParent(this)}}Me.EMPTY=(()=>{const n=new Me;return n.closed=!0,n})();const ce=Me.EMPTY;function E(n){return n instanceof Me||n&&"closed"in n&&I(n.remove)&&I(n.add)&&I(n.unsubscribe)}function Q(n){I(n)?n():n.unsubscribe()}const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},$={setTimeout(n,t,...e){const{delegate:i}=$;return null!=i&&i.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=$;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function U(n){$.setTimeout(()=>{const{onUnhandledError:t}=T;if(!t)throw n;t(n)})}function S(){}const b=G("C",void 0,void 0);function G(n,t,e){return{kind:n,value:t,error:e}}let P=null;function F(n){if(T.useDeprecatedSynchronousErrorHandling){const t=!P;if(t&&(P={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=P;if(P=null,e)throw i}}else n()}class _ extends Me{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,E(t)&&t.add(this)):this.destination=ue}static create(t,e,i){return new Z(t,e,i)}next(t){this.isStopped?te(function M(n){return G("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?te(function g(n){return G("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?te(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const k=Function.prototype.bind;function O(n,t){return k.call(n,t)}class H{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){L(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){L(i)}else L(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){L(e)}}}class Z extends _{constructor(t,e,i){let r;if(super(),I(t)||!t)r={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let s;this&&T.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&O(t.next,s),error:t.error&&O(t.error,s),complete:t.complete&&O(t.complete,s)}):r=t}this.destination=new H(r)}}function L(n){T.useDeprecatedSynchronousErrorHandling?function m(n){T.useDeprecatedSynchronousErrorHandling&&P&&(P.errorThrown=!0,P.error=n)}(n):U(n)}function te(n,t){const{onStoppedNotification:e}=T;e&&$.setTimeout(()=>e(n,t))}const ue={closed:!0,next:S,error:function V(n){throw n},complete:S},fe="function"==typeof Symbol&&Symbol.observable||"@@observable";function we(n){return n}function Se(n){return 0===n.length?we:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let _e=(()=>{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 s=function X(n){return n&&n instanceof _||function Be(n){return n&&I(n.next)&&I(n.error)&&I(n.complete)}(n)&&E(n)}(e)?e:new Z(e,i,r);return F(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Ce(i))((r,s)=>{const o=new Z({next:a=>{try{e(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[fe](){return this}pipe(...e){return Se(e)(this)}toPromise(e){return new(e=Ce(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Ce(n){var t;return null!==(t=null!=n?n:T.Promise)&&void 0!==t?t:Promise}const C=J(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let y=(()=>{class n extends _e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new p(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new C}next(e){F(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){F(()=>{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(){F(()=>{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=this.currentObservers=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:s}=this;return i||r?ce:(this.currentObservers=null,s.push(e),new Me(()=>{this.currentObservers=null,Te(s,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:s}=this;i?e.error(r):s&&e.complete()}asObservable(){const e=new _e;return e.source=this,e}}return n.create=(t,e)=>new p(t,e),n})();class p extends y{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:ce}}function D(n){return I(null==n?void 0:n.lift)}function A(n){return t=>{if(D(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")}}function N(n,t,e,i,r){return new j(n,t,e,i,r)}class j extends _{constructor(t,e,i,r,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(c){t.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function z(n,t){return A((e,i)=>{let r=0;e.subscribe(N(i,s=>{i.next(n.call(t,s,r++))}))})}function Ke(n){return this instanceof Ke?(this.v=n,this):new Ke(n)}function ut(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(x){i[x]&&(r[x]=function(B){return new Promise(function(se,me){s.push([x,B,se,me])>1||a(x,B)})})}function a(x,B){try{!function c(x){x.value instanceof Ke?Promise.resolve(x.value.v).then(d,f):v(s[0][2],x)}(i[x](B))}catch(se){v(s[0][3],se)}}function d(x){a("next",x)}function f(x){a("throw",x)}function v(x,B){x(B),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Vt(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 q(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(s){e[s]=n[s]&&function(o){return new Promise(function(a,c){!function r(s,o,a,c){Promise.resolve(c).then(function(d){s({value:d,done:a})},o)}(a,c,(o=n[s](o)).done,o.value)})}}}const at=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function gt(n){return I(null==n?void 0:n.then)}function hn(n){return I(n[fe])}function yn(n){return Symbol.asyncIterator&&I(null==n?void 0:n[Symbol.asyncIterator])}function hi(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 Li=function Fn(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function bi(n){return I(null==n?void 0:n[Li])}function ms(n){return ut(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield Ke(e.read());if(r)return yield Ke(void 0);yield yield Ke(i)}}finally{e.releaseLock()}})}function fi(n){return I(null==n?void 0:n.getReader)}function Wn(n){if(n instanceof _e)return n;if(null!=n){if(hn(n))return function Fs(n){return new _e(t=>{const e=n[fe]();if(I(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(at(n))return function Ls(n){return new _e(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(gt(n))return function Ks(n){return new _e(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,U)})}(n);if(yn(n))return xi(n);if(bi(n))return function Or(n){return new _e(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(fi(n))return function fl(n){return xi(ms(n))}(n)}throw hi(n)}function xi(n){return new _e(t=>{(function pl(n,t){var e,i,r,s;return function st(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(f){try{d(i.next(f))}catch(v){o(v)}}function c(f){try{d(i.throw(f))}catch(v){o(v)}}function d(f){f.done?s(f.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(f.value).then(a,c)}d((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Vt(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ea(n,t,e,i=0,r=!1){const s=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(s),!r)return s}function lr(n,t,e=1/0){return I(t)?lr((i,r)=>z((s,o)=>t(i,s,r,o))(Wn(n(i,r))),e):("number"==typeof t&&(e=t),A((i,r)=>function vC(n,t,e,i,r,s,o,a){const c=[];let d=0,f=0,v=!1;const x=()=>{v&&!c.length&&!d&&t.complete()},B=me=>d<i?se(me):c.push(me),se=me=>{s&&t.next(me),d++;let Oe=!1;Wn(e(me,f++)).subscribe(N(t,Fe=>{null==r||r(Fe),s?B(Fe):t.next(Fe)},()=>{Oe=!0},void 0,()=>{if(Oe)try{for(d--;c.length&&d<i;){const Fe=c.shift();o?ea(t,o,()=>se(Fe)):se(Fe)}x()}catch(Fe){t.error(Fe)}}))};return n.subscribe(N(t,B,()=>{v=!0,x()})),()=>{null==a||a()}}(i,r,n,e)))}function uc(n=1/0){return lr(we,n)}const Ns=new _e(n=>n.complete());function Vg(n){return n&&I(n.schedule)}function gd(n){return n[n.length-1]}function Cf(n){return I(gd(n))?n.pop():void 0}function ru(n){return Vg(gd(n))?n.pop():void 0}function Bg(n,t=0){return A((e,i)=>{e.subscribe(N(i,r=>ea(i,n,()=>i.next(r),t),()=>ea(i,n,()=>i.complete(),t),r=>ea(i,n,()=>i.error(r),t)))})}function Hg(n,t=0){return A((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function zg(n,t){if(!n)throw new Error("Iterable cannot be null");return new _e(e=>{ea(e,t,()=>{const i=n[Symbol.asyncIterator]();ea(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function pi(n,t){return t?function SC(n,t){if(null!=n){if(hn(n))return function wC(n,t){return Wn(n).pipe(Hg(t),Bg(t))}(n,t);if(at(n))return function CC(n,t){return new _e(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(gt(n))return function _d(n,t){return Wn(n).pipe(Hg(t),Bg(t))}(n,t);if(yn(n))return zg(n,t);if(bi(n))return function vd(n,t){return new _e(e=>{let i;return ea(e,t,()=>{i=n[Li](),ea(e,t,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){return void e.error(o)}s?e.complete():e.next(r)},0,!0)}),()=>I(null==i?void 0:i.return)&&i.return()})}(n,t);if(fi(n))return function DC(n,t){return zg(ms(n),t)}(n,t)}throw hi(n)}(n,t):Wn(n)}function Ni(...n){const t=ru(n),e=function yC(n,t){return"number"==typeof gd(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Wn(i[0]):uc(e)(pi(i,t)):Ns}function bd(n={}){const{connector:t=(()=>new y),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return s=>{let o,a,c,d=0,f=!1,v=!1;const x=()=>{null==a||a.unsubscribe(),a=void 0},B=()=>{x(),o=c=void 0,f=v=!1},se=()=>{const me=o;B(),null==me||me.unsubscribe()};return A((me,Oe)=>{d++,!v&&!f&&x();const Fe=c=null!=c?c:t();Oe.add(()=>{d--,0===d&&!v&&!f&&(a=Df(se,r))}),Fe.subscribe(Oe),!o&&d>0&&(o=new Z({next:et=>Fe.next(et),error:et=>{v=!0,x(),a=Df(B,e,et),Fe.error(et)},complete:()=>{f=!0,x(),a=Df(B,i),Fe.complete()}}),Wn(me).subscribe(o))})(s)}}function Df(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new Z({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function oi(n){for(let t in n)if(n[t]===oi)return t;throw Error("Could not find renamed property on target object.")}function Sf(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function ai(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ai).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 yd(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Ug=oi({__forward_ref__:oi});function Pn(n){return n.__forward_ref__=Pn,n.toString=function(){return ai(this())},n}function tn(n){return Af(n)?n():n}function Af(n){return"function"==typeof n&&n.hasOwnProperty(Ug)&&n.__forward_ref__===Pn}class nt extends Error{constructor(t,e){super(function su(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function fn(n){return"string"==typeof n?n:null==n?"":String(n)}function ou(n,t){throw new nt(-201,!1)}function gs(n,t){null==n&&function Zn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function dt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ht(n){return{providers:n.providers||[],imports:n.imports||[]}}function Mf(n){return qg(n,wd)||qg(n,Yg)}function qg(n,t){return n.hasOwnProperty(t)?n[t]:null}function li(n){return n&&(n.hasOwnProperty(Ef)||n.hasOwnProperty(IC))?n[Ef]:null}const wd=oi({\u0275prov:oi}),Ef=oi({\u0275inj:oi}),Yg=oi({ngInjectableDef:oi}),IC=oi({ngInjectorDef:oi});var qt=(()=>((qt=qt||{})[qt.Default=0]="Default",qt[qt.Host=1]="Host",qt[qt.Self=2]="Self",qt[qt.SkipSelf=4]="SkipSelf",qt[qt.Optional=8]="Optional",qt))();let xf;function Xs(n){const t=xf;return xf=n,t}function Cr(n,t,e){const i=Mf(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&qt.Optional?null:void 0!==t?t:void ou(ai(n))}function Qs(n){return{toString:n}.toString()}var Zs=(()=>((Zs=Zs||{})[Zs.OnPush=0]="OnPush",Zs[Zs.Default=1]="Default",Zs))(),Js=(()=>{return(n=Js||(Js={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Js;var n})();const ni=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),ml={},Gn=[],Ur=oi({\u0275cmp:oi}),kf=oi({\u0275dir:oi}),_s=oi({\u0275pipe:oi}),Qg=oi({\u0275mod:oi}),Lo=oi({\u0275fac:oi}),eo=oi({__NG_ELEMENT_ID__:oi});let Cd=0;function Ct(n){return Qs(()=>{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===Zs.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Gn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Js.Emulated,id:"c"+Cd++,styles:n.styles||Gn,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.dependencies,o=n.features;return r.inputs=Zg(n.inputs,i),r.outputs=Zg(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(ta).filter(Dd):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(er).filter(Dd):null,r})}function ta(n){return Jn(n)||Dr(n)}function Dd(n){return null!==n}function Ut(n){return Qs(()=>({type:n.type,bootstrap:n.bootstrap||Gn,declarations:n.declarations||Gn,imports:n.imports||Gn,exports:n.exports||Gn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Zg(n,t){if(null==n)return ml;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const qe=Ct;function ki(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 Jn(n){return n[Ur]||null}function Dr(n){return n[kf]||null}function er(n){return n[_s]||null}function Vs(n,t){const e=n[Qg]||null;if(!e&&!0===t)throw new Error(`Type ${ai(n)} does not have '\u0275mod' property.`);return e}function Zr(n){return Array.isArray(n)&&"object"==typeof n[1]}function mo(n){return Array.isArray(n)&&!0===n[1]}function If(n){return 0!=(8&n.flags)}function Md(n){return 2==(2&n.flags)}function Ed(n){return 1==(1&n.flags)}function go(n){return null!==n.template}function xd(n){return 0!=(256&n[2])}function vl(n,t){return n.hasOwnProperty(Lo)?n[Lo]:null}class Td{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Zt(){return uu}function uu(n){return n.type.prototype.ngOnChanges&&(n.setInput=Pd),n_}function n_(){const n=Bf(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===ml)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Pd(n,t,e,i){const r=Bf(n)||function Rd(n,t){return n[Vf]=t}(n,{previous:ml,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],c=o[a];s[a]=new Td(c&&c.currentValue,t,o===ml),n[i]=t}Zt.ngInherit=!0;const Vf="__ngSimpleChanges__";function Bf(n){return n[Vf]||null}function Ti(n){for(;Array.isArray(n);)n=n[0];return n}function hu(n,t){return Ti(t[n])}function to(n,t){return Ti(t[n.index])}function qi(n,t){return n.data[t]}function Yi(n,t){return n[t]}function Hs(n,t){const e=t[n];return Zr(e)?e:e[0]}function i_(n){return 4==(4&n[2])}function fu(n){return 64==(64&n[2])}function No(n,t){return null==t?null:n[t]}function vc(n){n[18]=0}function pu(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 nn={lFrame:c_(null),bindingsEnabled:!0};function r_(){return nn.bindingsEnabled}function ct(){return nn.lFrame.lView}function Rn(){return nn.lFrame.tView}function zt(n){return nn.lFrame.contextLView=n,n[8]}function $t(n){return nn.lFrame.contextLView=null,n}function K(){let n=bl();for(;null!==n&&64===n.type;)n=n.parent;return n}function bl(){return nn.lFrame.currentTNode}function Ki(n,t){const e=nn.lFrame;e.currentTNode=n,e.isParent=t}function xn(){return nn.lFrame.isParent}function jf(){nn.lFrame.isParent=!1}function Jr(){const n=nn.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Cc(){return nn.lFrame.bindingIndex++}function Fr(n){const t=nn.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function GC(n,t){const e=nn.lFrame;e.bindingIndex=e.bindingRootIndex=n,Wf(t)}function Wf(n){nn.lFrame.currentDirectiveIndex=n}function vo(n){const t=nn.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function a_(){return nn.lFrame.currentQueryIndex}function $f(n){nn.lFrame.currentQueryIndex=n}function YC(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function l_(n,t,e){if(e&qt.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&qt.Host||(r=YC(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=nn.lFrame=Ea();return i.currentTNode=t,i.lView=n,!0}function Gf(n){const t=Ea(),e=n[1];nn.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Ea(){const n=nn.lFrame,t=null===n?null:n.child;return null===t?c_(n):t}function c_(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 u_(){const n=nn.lFrame;return nn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const no=u_;function qf(){const n=u_();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 es(){return nn.lFrame.selectedIndex}function xa(n){nn.lFrame.selectedIndex=n}function Pi(){const n=nn.lFrame;return qi(n.tView,n.selectedIndex)}function ia(){nn.lFrame.currentNamespace="svg"}function Yf(){!function Kf(){nn.lFrame.currentNamespace=null}()}function Vd(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:d,ngOnDestroy:f}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),c&&(n.viewHooks||(n.viewHooks=[])).push(-e,c),d&&((n.viewHooks||(n.viewHooks=[])).push(e,d),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,d)),null!=f&&(n.destroyHooks||(n.destroyHooks=[])).push(e,f)}}function gu(n,t,e){Hd(n,t,3,e)}function Bd(n,t,e,i){(3&n[2])===e&&Hd(n,t,e,i)}function bo(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Hd(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let c=void 0!==i?65535&n[18]:0;c<o;c++)if("number"==typeof t[c+1]){if(a=t[c],null!=i&&a>=i)break}else t[c]<0&&(n[18]+=65536),(a<s||-1==s)&&(yl(n,e,t,c),n[18]=(4294901760&n[18])+c+2),c++}function yl(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class _u{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function vu(n,t,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const s=e[i++],o=e[i++],a=e[i++];n.setAttribute(t,o,a,s)}else{const s=r,o=e[++i];zd(s)?n.setProperty(t,s,o):n.setAttribute(t,s,o),i++}}return i}function Er(n){return 3===n||4===n||6===n}function zd(n){return 64===n.charCodeAt(0)}function bu(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||yo(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function yo(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Ud(n){return-1!==n}function sa(n){return 32767&n}function Cl(n,t){let e=function wl(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Lr=!0;function Dc(n){const t=Lr;return Lr=n,t}let Qf=0;const Bo={};function Sc(n,t){const e=Jf(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Zf(i.data,n),Zf(t,null),Zf(i.blueprint,null));const r=ka(n,t),s=n.injectorIndex;if(Ud(r)){const o=sa(r),a=Cl(r,t),c=a[1].data;for(let d=0;d<8;d++)t[s+d]=a[o+d]|c[o+d]}return t[s+8]=r,s}function Zf(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Jf(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function ka(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=ip(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function jd(n,t,e){!function yu(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(eo)&&(i=e[eo]),null==i&&(i=e[eo]=Qf++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Wd(n,t,e){if(e&qt.Optional)return n;ou()}function ep(n,t,e,i){if(e&qt.Optional&&void 0===i&&(i=null),0==(e&(qt.Self|qt.Host))){const r=n[9],s=Xs(void 0);try{return r?r.get(t,i,e&qt.Optional):Cr(t,i,e&qt.Optional)}finally{Xs(s)}}return Wd(i,0,e)}function g_(n,t,e,i=qt.Default,r){if(null!==n){if(1024&t[2]){const o=function b_(n,t,e,i,r){let s=n,o=t;for(;null!==s&&null!==o&&1024&o[2]&&!(256&o[2]);){const a=__(s,o,e,i|qt.Self,Bo);if(a!==Bo)return a;let c=s.parent;if(!c){const d=o[21];if(d){const f=d.get(e,Bo,i);if(f!==Bo)return f}c=ip(o),o=o[15]}s=c}return r}(n,t,e,i,Bo);if(o!==Bo)return o}const s=__(n,t,e,i,Bo);if(s!==Bo)return s}return ep(t,e,i,r)}function __(n,t,e,i,r){const s=function tD(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(eo)?n[eo]:void 0;return"number"==typeof t?t>=0?255&t:v_:t}(e);if("function"==typeof s){if(!l_(t,n,i))return i&qt.Host?Wd(r,0,i):ep(t,e,i,r);try{const o=s(i);if(null!=o||i&qt.Optional)return o;ou()}finally{no()}}else if("number"==typeof s){let o=null,a=Jf(n,t),c=-1,d=i&qt.Host?t[16][6]:null;for((-1===a||i&qt.SkipSelf)&&(c=-1===a?ka(n,t):t[a+8],-1!==c&&tp(i,!1)?(o=t[1],a=sa(c),t=Cl(c,t)):a=-1);-1!==a;){const f=t[1];if($d(s,a,f.data)){const v=eD(a,t,e,o,i,d);if(v!==Bo)return v}c=t[a+8],-1!==c&&tp(i,t[1].data[a+8]===d)&&$d(s,a,t)?(o=f,a=sa(c),t=Cl(c,t)):a=-1}}return r}function eD(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],f=wu(a,o,e,null==i?Md(a)&&Lr:i!=o&&0!=(3&a.type),r&qt.Host&&s===a);return null!==f?Dl(t,o,f,a):Bo}function wu(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,c=n.directiveStart,f=s>>20,x=r?a+f:n.directiveEnd;for(let B=i?a:a+f;B<x;B++){const se=o[B];if(B<c&&e===se||B>=c&&se.type===e)return B}if(r){const B=o[c];if(B&&go(B)&&B.type===e)return c}return null}function Dl(n,t,e,i){let r=n[e];const s=t.data;if(function d_(n){return n instanceof _u}(r)){const o=r;o.resolving&&function jg(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new nt(-200,`Circular dependency in DI detected for ${n}${e}`)}(function $n(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():fn(n)}(s[e]));const a=Dc(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?Xs(o.injectImpl):null;l_(n,i,qt.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function Nd(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=uu(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==c&&Xs(c),Dc(a),o.resolving=!1,no()}}return r}function $d(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function tp(n,t){return!(n&qt.Self||n&qt.Host&&t)}class Sl{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return g_(this._tNode,this._lView,t,i,e)}}function v_(){return new Sl(K(),ct())}function un(n){return Qs(()=>{const t=n.prototype.constructor,e=t[Lo]||np(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Lo]||np(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function np(n){return Af(n)?()=>{const t=np(tn(n));return t&&t()}:vl(n)}function ip(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function ys(n){return function JC(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<i;){const s=e[r];if(Er(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(K(),n)}const Ac="__parameters__";function Mc(n,t,e){return Qs(()=>{const i=function Cu(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(c,d,f){const v=c.hasOwnProperty(Ac)?c[Ac]:Object.defineProperty(c,Ac,{value:[]})[Ac];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(o),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class lt{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=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Wr(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),Wr(i,t)):t!==n&&t.push(i)}return t}function Ho(n,t){n.forEach(e=>Array.isArray(e)?Ho(e,t):t(e))}function qd(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Du(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ml(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function ns(n,t,e){let i=Ec(n,t);return i>=0?n[1|i]=e:(i=~i,function rD(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 op(n,t){const e=Ec(n,t);if(e>=0)return n[1|e]}function Ec(n,t){return function ap(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const Uo={},Xd="__NG_DI_FLAG__",Su="ngTempTokenPath",E_=/\n/gm,kc="__source";let Au;function xl(n){const t=Au;return Au=n,t}function x_(n,t=qt.Default){if(void 0===Au)throw new nt(-203,!1);return null===Au?Cr(n,void 0,t):Au.get(n,t&qt.Optional?null:void 0,t)}function Re(n,t=qt.Default){return(function Kg(){return xf}()||x_)(tn(n),t)}function qn(n,t=qt.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),Re(n,t)}function Mu(n){const t=[];for(let e=0;e<n.length;e++){const i=tn(n[e]);if(Array.isArray(i)){if(0===i.length)throw new nt(900,!1);let r,s=qt.Default;for(let o=0;o<i.length;o++){const a=i[o],c=lD(a);"number"==typeof c?-1===c?r=a.token:s|=c:r=a}t.push(Re(r,s))}else t.push(Re(i))}return t}function Ia(n,t){return n[Xd]=t,n.prototype[Xd]=t,n}function lD(n){return n[Xd]}const Cs=Ia(Mc("Optional"),8),Co=Ia(Mc("SkipSelf"),4);let mp,ih,Rc;function Ss(n){var t;return(null===(t=function gp(){if(void 0===ih&&(ih=null,ni.trustedTypes))try{ih=ni.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ih}())||void 0===t?void 0:t.createHTML(n))||n}function L_(n){var t;return(null===(t=function vp(){if(void 0===Rc&&(Rc=null,ni.trustedTypes))try{Rc=ni.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Rc}())||void 0===t?void 0:t.createHTML(n))||n}class Oa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class hD extends Oa{getTypeName(){return"HTML"}}class fD extends Oa{getTypeName(){return"Style"}}class pD extends Oa{getTypeName(){return"Script"}}class mD extends Oa{getTypeName(){return"URL"}}class N_ extends Oa{getTypeName(){return"ResourceURL"}}function As(n){return n instanceof Oa?n.changingThisBreaksApplicationSecurity:n}function jo(n,t){const e=function yp(n){return n instanceof Oa&&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 z_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Ss(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Wo{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=Ss(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ss(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const gD=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,vD=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Tu(n){return(n=String(n)).match(gD)||n.match(vD)?n:"unsafe:"+n}function $o(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Pu(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const j_=$o("area,br,col,hr,img,wbr"),W_=$o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$_=$o("rp,rt"),rh=Pu(j_,Pu(W_,$o("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Pu($_,$o("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Pu($_,W_)),sh=$o("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),oh=$o("srcset"),G_=Pu(sh,oh,$o("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$o("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),q_=$o("script,style,template");class bD{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!rh.hasOwnProperty(e))return this.sanitizedSomething=!0,!q_.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!G_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=s.value;sh[a]&&(c=Tu(c)),oh[a]&&(n=c,c=(n=String(n)).split(",").map(t=>Tu(t.trim())).join(", ")),this.buf.push(" ",o,'="',Y_(c),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();rh.hasOwnProperty(e)&&!j_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Y_(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 yD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wD=/([^\#-~ |!])/g;function Y_(n){return n.replace(/&/g,"&").replace(yD,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wD,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ah;function K_(n,t){let e=null;try{ah=ah||function ku(n){const t=new Wo(n);return function Pl(){try{return!!(new window.DOMParser).parseFromString(Ss(""),"text/html")}catch(n){return!1}}()?new z_(t):t}(n);let i=t?String(t):"";e=ah.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ah.getInertBodyElement(i)}while(i!==s);return Ss((new bD).sanitizeChildren(Ms(e)||e))}finally{if(e){const i=Ms(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Ms(n){return"content"in n&&function CD(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var jn=(()=>((jn=jn||{})[jn.NONE=0]="NONE",jn[jn.HTML=1]="HTML",jn[jn.STYLE=2]="STYLE",jn[jn.SCRIPT=3]="SCRIPT",jn[jn.URL=4]="URL",jn[jn.RESOURCE_URL=5]="RESOURCE_URL",jn))();function X_(n){const t=Ru();return t?L_(t.sanitize(jn.HTML,n)||""):jo(n,"HTML")?L_(As(n)):K_(function F_(){return void 0!==mp?mp:"undefined"!=typeof document?document:void 0}(),fn(n))}function zs(n){const t=Ru();return t?t.sanitize(jn.URL,n)||"":jo(n,"URL")?As(n):Tu(fn(n))}function Ru(){const n=ct();return n&&n[12]}const Dp=new lt("ENVIRONMENT_INITIALIZER"),J_=new lt("INJECTOR",-1),ev=new lt("INJECTOR_DEF_TYPES");class tv{get(t,e=Uo){if(e===Uo){const i=new Error(`NullInjectorError: No provider for ${ai(t)}!`);throw i.name="NullInjectorError",i}return e}}function ED(...n){return{\u0275providers:nv(0,n)}}function nv(n,...t){const e=[],i=new Set;let r;return Ho(t,s=>{const o=s;Sp(o,e,[],i)&&(r||(r=[]),r.push(o))}),void 0!==r&&iv(r,e),e}function iv(n,t){for(let e=0;e<n.length;e++){const{providers:r}=n[e];Ho(r,s=>{t.push(s)})}}function Sp(n,t,e,i){if(!(n=tn(n)))return!1;let r=null,s=li(n);const o=!s&&Jn(n);if(s||o){if(o&&!o.standalone)return!1;r=n}else{const c=n.ngModule;if(s=li(c),!s)return!1;r=c}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const c="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const d of c)Sp(d,t,e,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let d;i.add(r);try{Ho(s.imports,f=>{Sp(f,t,e,i)&&(d||(d=[]),d.push(f))})}finally{}void 0!==d&&iv(d,t)}if(!a){const d=vl(r)||(()=>new r);t.push({provide:r,useFactory:d,deps:Gn},{provide:ev,useValue:r,multi:!0},{provide:Dp,useValue:()=>Re(r),multi:!0})}const c=s.providers;null==c||a||Ho(c,f=>{t.push(f)})}}return r!==n&&void 0!==n.providers}const xD=oi({provide:String,useValue:oi});function Ap(n){return null!==n&&"object"==typeof n&&xD in n}function Rl(n){return"function"==typeof n}const Iu=new lt("Set Injector scope."),Ou={},TD={};let Mp;function lh(){return void 0===Mp&&(Mp=new tv),Mp}class Fa{}class ov extends Fa{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,kp(t,o=>this.processProvider(o)),this.records.set(J_,Oc(void 0,this)),r.has("environment")&&this.records.set(Fa,Oc(void 0,this));const s=this.records.get(Iu);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(ev.multi,Gn,qt.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=xl(this),i=Xs(void 0);try{return t()}finally{xl(e),Xs(i)}}get(t,e=Uo,i=qt.Default){this.assertNotDestroyed();const r=xl(this),s=Xs(void 0);try{if(!(i&qt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function OD(n){return"function"==typeof n||"object"==typeof n&&n instanceof lt}(t)&&Mf(t);a=c&&this.injectableDefInScope(c)?Oc(Ep(t),Ou):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&qt.Self?lh():this.parent).get(t,e=i&qt.Optional&&e===Uo?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Su]=o[Su]||[]).unshift(ai(t)),r)throw o;return function k_(n,t,e,i){const r=n[Su];throw t[kc]&&r.unshift(t[kc]),n.message=function Qd(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=ai(t);if(Array.isArray(t))r=t.map(ai).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(E_,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Su]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Xs(s),xl(r)}}resolveInjectorInitializers(){const t=xl(this),e=Xs(void 0);try{const i=this.get(Dp.multi,Gn,qt.Self);for(const r of i)r()}finally{xl(t),Xs(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(ai(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let e=Rl(t=tn(t))?t:tn(t&&t.provide);const i=function RD(n){return Ap(n)?Oc(void 0,n.useValue):Oc(xp(n),Ou)}(t);if(Rl(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Oc(void 0,Ou,!0),r.factory=()=>Mu(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Ou&&(e.value=TD,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ID(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=tn(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Ep(n){const t=Mf(n),e=null!==t?t.factory:vl(n);if(null!==e)return e;if(n instanceof lt)throw new nt(204,!1);if(n instanceof Function)return function PD(n){const t=n.length;if(t>0)throw Ml(t,"?"),new nt(204,!1);const e=function RC(n){const t=n&&(n[wd]||n[Yg]);if(t){const e=function yi(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 nt(204,!1)}function xp(n,t,e){let i;if(Rl(n)){const r=tn(n);return vl(r)||Ep(r)}if(Ap(n))i=()=>tn(n.useValue);else if(function sv(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Mu(n.deps||[]));else if(function rv(n){return!(!n||!n.useExisting)}(n))i=()=>Re(tn(n.useExisting));else{const r=tn(n&&(n.useClass||n.provide));if(!function ch(n){return!!n.deps}(n))return vl(r)||Ep(r);i=()=>new r(...Mu(n.deps))}return i}function Oc(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function FD(n){return!!n.\u0275providers}function kp(n,t){for(const e of n)Array.isArray(e)?kp(e,t):FD(e)?kp(e.\u0275providers,t):t(e)}class av{}class VD{resolveComponentFactory(t){throw function ND(n){const t=Error(`No component factory found for ${ai(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Il=(()=>{class n{}return n.NULL=new VD,n})();function BD(){return Fc(K(),ct())}function Fc(n,t){return new yt(to(n,t))}let yt=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=BD,n})();function HD(n){return n instanceof yt?n.nativeElement:n}class Ol{}let Us=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function zD(){const n=ct(),e=Hs(K().index,n);return(Zr(e)?e:n)[11]}(),n})(),UD=(()=>{class n{}return n.\u0275prov=dt({token:n,providedIn:"root",factory:()=>null}),n})();class Fl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const jD=new Fl("14.1.3"),Lc={};function ph(n){return n.ngOriginalError}class aa{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&&ph(t);for(;e&&ph(e);)e=ph(e);return e||null}}const Fp=new Map;let XD=0;const Np="__ngContext__";function $r(n,t){Zr(t)?(n[Np]=t[20],function ZD(n){Fp.set(n[20],n)}(t)):n[Np]=t}function ss(n){const t=n[Np];return"number"==typeof t?function hv(n){return Fp.get(n)||null}(t):t||null}function Vp(n){const t=ss(n);return t?Zr(t)?t:t.lView:null}const rS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ni))();function Nc(n){return n.ownerDocument.defaultView}function la(n){return n instanceof Function?n():n}var Es=(()=>((Es=Es||{})[Es.Important=1]="Important",Es[Es.DashCase=2]="DashCase",Es))();function zp(n,t){return undefined(n,t)}function Vc(n){const t=n[3];return mo(t)?t[3]:t}function Up(n){return Nu(n[13])}function _h(n){return Nu(n[4])}function Nu(n){for(;null!==n&&!mo(n);)n=n[4];return n}function Do(n,t,e,i,r){if(null!=i){let s,o=!1;mo(i)?s=i:Zr(i)&&(o=!0,i=i[0]);const a=Ti(i);0===n&&null!==e?null==r?Dv(t,e,a):Nl(t,e,a,r||null,!0):1===n&&null!==e?Nl(t,e,a,r||null,!0):2===n?function kv(n,t,e){const i=bh(n,t);i&&function hS(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function mS(n,t,e,i,r){const s=e[7];s!==Ti(e)&&Do(t,n,i,s,r);for(let a=10;a<e.length;a++){const c=e[a];xr(c[1],c,n,t,i,s)}}(t,n,s,e,r)}}function Wp(n,t,e){return n.createElement(t,e)}function $p(n,t){const e=n[9],i=e.indexOf(t),r=t[3];512&t[2]&&(t[2]&=-513,pu(r,-1)),e.splice(i,1)}function Gp(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&$p(r,i),t>0&&(n[e-1][4]=i[4]);const s=Du(n,10+t);!function dS(n,t){xr(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Kn(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&xr(n,t,e,3,null,null),function vn(n){let t=n[13];if(!t)return qp(n[1],n);for(;t;){let e=null;if(Zr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Zr(t)&&qp(t[1],t),t=t[3];null===t&&(t=n),Zr(t)&&qp(t[1],t),e=t&&t[4]}t=e}}(t)}}function qp(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function vh(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof _u)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],c=s[o+1];try{c.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function yv(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Ti(t[o]),c=i[r=e[s+2]],d=e[s+3];"boolean"==typeof d?a.removeEventListener(e[s],c,d):d>=0?i[r=d]():i[r=-d].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)(0,i[s])();t[7]=null}}(n,t),1===t[1].type&&t[11].destroy();const e=t[17];if(null!==e&&mo(t[3])){e!==t[3]&&$p(e,t);const i=t[19];null!==i&&i.detachView(n)}!function JD(n){Fp.delete(n[20])}(t)}}function wv(n,t,e){return function Cv(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Js.None||r===Js.Emulated)return null}return to(i,e)}(n,t.parent,e)}function Nl(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Dv(n,t,e){n.appendChild(t,e)}function Sv(n,t,e,i,r){null!==i?Nl(n,t,e,i,r):Dv(n,t,e)}function bh(n,t){return n.parentNode(t)}function Av(n,t,e){return Ev(n,t,e)}let Ev=function Mv(n,t,e){return 40&n.type?to(n,e):null};function wh(n,t,e,i){const r=wv(n,i,t),s=t[11],a=Av(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let c=0;c<e.length;c++)Sv(s,r,e[c],a,!1);else Sv(s,r,e,a,!1)}function Bc(n,t){if(null!==t){const e=t.type;if(3&e)return to(t,n);if(4&e)return Kp(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Bc(n,i);{const r=n[t.index];return mo(r)?Kp(-1,r):Ti(r)}}if(32&e)return zp(t,n)()||Ti(n[t.index]);{const i=xv(n,t);return null!==i?Array.isArray(i)?i[0]:Bc(Vc(n[16]),i):Bc(n,t.next)}}return null}function xv(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Kp(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return Bc(i,r)}return t[7]}function nr(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],c=e.type;if(o&&0===t&&(a&&$r(Ti(a),i),e.flags|=4),64!=(64&e.flags))if(8&c)nr(n,t,e.child,i,r,s,!1),Do(t,n,r,a,s);else if(32&c){const d=zp(e,i);let f;for(;f=d();)Do(t,n,r,f,s);Do(t,n,r,a,s)}else 16&c?Tv(n,t,i,e,r,s):Do(t,n,r,a,s);e=o?e.projectionNext:e.next}}function xr(n,t,e,i,r,s){nr(e,i,n.firstChild,t,r,s,!1)}function Tv(n,t,e,i,r,s){const o=e[16],c=o[6].projection[i.projection];if(Array.isArray(c))for(let d=0;d<c.length;d++)Do(t,n,r,c[d],s);else nr(n,t,c,o[3],r,s,!0)}function Rv(n,t,e){n.setAttribute(t,"style",e)}function Xp(n,t,e){""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e)}function Iv(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Ov="ng-template";function _S(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Iv(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Fv(n){return 4===n.type&&n.value!==Ov}function Lv(n,t,e){return t===(4!==n.type||e?n.value:Ov)}function Nv(n,t,e){let i=4;const r=n.attrs||[],s=function Hc(n){for(let t=0;t<n.length;t++)if(Er(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!Lv(n,c,e)||""===c&&1===t.length){if(So(i))return!1;o=!0}}else{const d=8&i?c:t[++a];if(8&i&&null!==n.attrs){if(!_S(n.attrs,d,e)){if(So(i))return!1;o=!0}continue}const v=vS(8&i?"class":c,r,Fv(n),e);if(-1===v){if(So(i))return!1;o=!0;continue}if(""!==d){let x;x=v>s?"":r[v+1].toLowerCase();const B=8&i?x:null;if(B&&-1!==Iv(B,d,0)||2&i&&d!==x){if(So(i))return!1;o=!0}}}}else{if(!o&&!So(i)&&!So(c))return!1;if(o&&So(c))continue;o=!1,i=c|1&i}}return So(i)||o}function So(n){return 0==(1&n)}function vS(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function yS(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function Vv(n,t,e=!1){for(let i=0;i<t.length;i++)if(Nv(n,t[i],e))return!0;return!1}function wS(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Bv(n,t){return n?":not("+t.trim()+")":t}function CS(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!So(o)&&(t+=Bv(s,r),r=""),i=o,s=s||!So(i);e++}return""!==r&&(t+=Bv(s,r)),t}const dn={};function be(n){zv(Rn(),ct(),es()+n,!1)}function zv(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&gu(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Bd(t,s,0,e)}xa(e)}function $v(n,t=null,e=null,i){const r=Gv(n,t,e,i);return r.resolveInjectorInitializers(),r}function Gv(n,t=null,e=null,i,r=new Set){const s=[e||Gn,ED(n)];return i=i||("object"==typeof n?void 0:ai(n)),new ov(s,t||lh(),i||null,r)}let Ii=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return $v({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return $v({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=Uo,n.NULL=new tv,n.\u0275prov=dt({token:n,providedIn:"any",factory:()=>Re(J_)}),n.__NG_ELEMENT_ID__=-1,n})();function R(n,t=qt.Default){const e=ct();return null===e?Re(n,t):g_(K(),e,tn(n),t)}function Vl(){throw new Error("invalid")}function Vu(n,t){return n<<17|t<<2}function Ao(n){return n>>17&32767}function Bu(n){return 2|n}function Mo(n){return(131068&n)>>2}function rm(n,t){return-131069&n|t<<2}function sm(n){return 1|n}function XT(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];$f(r),o.contentQueries(2,t[s],s)}}}function ob(n,t,e,i,r,s,o,a,c,d,f){const v=t.blueprint.slice();return v[0]=r,v[2]=76|i,(null!==f||n&&1024&n[2])&&(v[2]|=1024),vc(v),v[3]=v[15]=n,v[8]=e,v[10]=o||n&&n[10],v[11]=a||n&&n[11],v[12]=c||n&&n[12]||null,v[9]=d||n&&n[9]||null,v[6]=s,v[20]=function QD(){return XD++}(),v[21]=f,v[16]=2==t.type?n[16]:v,v}function Mh(n,t,e,i,r){let s=n.data[t];if(null===s)s=function WS(n,t,e,i,r){const s=bl(),o=xn(),c=n.data[t]=function Ez(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=c),null!==s&&(o?null==s.child&&null!==c.parent&&(s.child=c):null===s.next&&(s.next=c)),c}(n,t,e,i,r),function $C(){return nn.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function Ma(){const n=nn.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Ki(s,!0),s}function Eh(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function ab(n,t,e){Gf(t);try{const i=n.viewQuery;null!==i&&JS(1,i,e);const r=n.template;null!==r&&QT(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&XT(n,t),n.staticViewQueries&&JS(2,n.viewQuery,e);const s=n.components;null!==s&&function Dz(n,t){for(let e=0;e<t.length;e++)jz(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,qf()}}function cm(n,t,e,i){const r=t[2];if(128!=(128&r)){Gf(t);try{vc(t),function s_(n){return nn.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&QT(n,t,e,2,i);const o=3==(3&r);if(o){const d=n.preOrderCheckHooks;null!==d&&gu(t,d,null)}else{const d=n.preOrderHooks;null!==d&&Bd(t,d,0,null),bo(t,0)}if(function zz(n){for(let t=Up(n);null!==t;t=_h(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(512&r[2])&&pu(s,1),r[2]|=512}}}(t),function Hz(n){for(let t=Up(n);null!==t;t=_h(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];fu(i)&&cm(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&XT(n,t),o){const d=n.contentCheckHooks;null!==d&&gu(t,d)}else{const d=n.contentHooks;null!==d&&Bd(t,d,1),bo(t,1)}!function sb(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)xa(~r);else{const s=r,o=e[++i],a=e[++i];GC(o,s),a(2,t[s])}}}finally{xa(-1)}}(n,t);const a=n.components;null!==a&&function Cz(n,t){for(let e=0;e<t.length;e++)Uz(n,t[e])}(t,a);const c=n.viewQuery;if(null!==c&&JS(2,c,i),o){const d=n.viewCheckHooks;null!==d&&gu(t,d)}else{const d=n.viewHooks;null!==d&&Bd(t,d,2),bo(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,pu(t[3],-1))}finally{qf()}}}function Sz(n,t,e,i){const r=t[10],o=i_(t);try{!o&&r.begin&&r.begin(),o&&ab(n,t,i),cm(n,t,e,i)}finally{!o&&r.end&&r.end()}}function QT(n,t,e,i,r){const s=es(),o=2&i;try{xa(-1),o&&t.length>22&&zv(n,t,22,!1),e(i,r)}finally{xa(s)}}function ZT(n,t,e){if(If(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function $S(n,t,e){!r_()||(function Rz(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||Sc(e,t),$r(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const c=n.data[a],d=go(c);d&&Nz(t,e,c);const f=Dl(t,n,a,e);$r(f,t),null!==o&&Vz(0,a-r,f,c,0,o),d&&(Hs(e.index,t)[8]=f)}}(n,t,e,to(e,t)),128==(128&e.flags)&&function Iz(n,t,e){const i=e.directiveStart,r=e.directiveEnd,s=e.index,o=function qC(){return nn.lFrame.currentDirectiveIndex}();try{xa(s);for(let a=i;a<r;a++){const c=n.data[a],d=t[a];Wf(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&sP(c,d)}}finally{xa(-1),Wf(o)}}(n,t,e))}function GS(n,t,e=to){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function JT(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=qS(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function qS(n,t,e,i,r,s,o,a,c,d){const f=22+i,v=f+r,x=function Az(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:dn);return e}(f,v),B="function"==typeof d?d():d;return x[1]={type:n,blueprint:x,template:e,queries:null,viewQuery:a,declTNode:t,data:x.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:v,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:B,incompleteFirstPass:!1}}function eP(n,t,e,i){const r=hP(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&fP(n).push(i,r.length-1))}function tP(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function nP(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,c=null;for(let d=t.directiveStart;d<i;d++){const f=r[d],v=f.inputs,x=null===s||Fv(t)?null:Bz(v,s);o.push(x),a=tP(v,d,a),c=tP(f.outputs,d,c)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=c}function ko(n,t,e,i,r,s,o,a){const c=to(t,e);let f,d=t.inputs;!a&&null!=d&&(f=d[i])?(eA(n,e,f,i,r),Md(t)&&iP(e,t.index)):3&t.type&&(i=function xz(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,s.setProperty(c,i,r))}function iP(n,t){const e=Hs(t,n);16&e[2]||(e[2]|=32)}function YS(n,t,e,i){let r=!1;if(r_()){const s=function Oz(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Vv(e,o.selectors,!1)&&(r||(r=[]),jd(Sc(e,t),n,o.type),go(o)?(oP(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,aP(e,n.data.length,s.length);for(let f=0;f<s.length;f++){const v=s[f];v.providersResolver&&v.providersResolver(v)}let a=!1,c=!1,d=Eh(n,t,s.length,null);for(let f=0;f<s.length;f++){const v=s[f];e.mergedAttrs=bu(e.mergedAttrs,v.hostAttrs),lP(n,e,t,d,v),Lz(d,v,o),null!==v.contentQueries&&(e.flags|=8),(null!==v.hostBindings||null!==v.hostAttrs||0!==v.hostVars)&&(e.flags|=128);const x=v.type.prototype;!a&&(x.ngOnChanges||x.ngOnInit||x.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!c&&(x.ngOnChanges||x.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),c=!0),d++}nP(n,e)}o&&function Fz(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new nt(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=bu(e.mergedAttrs,e.attrs),r}function rP(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const c=~t.index;(function Pz(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=c&&a.push(c),a.push(i,r,o)}}function sP(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function oP(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function Lz(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;go(t)&&(e[""]=n)}}function aP(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function lP(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=vl(r.type)),o=new _u(s,go(r),R);n.blueprint[i]=o,e[i]=o,rP(n,t,0,i,Eh(n,e,r.hostVars,dn),r)}function Nz(n,t,e){const i=to(t,n),r=JT(e),s=n[10],o=lb(n,ob(n,r,null,e.onPush?32:16,i,t,s,s.createRenderer(i,e),null,null,null));n[t.index]=o}function Ba(n,t,e,i,r,s){const o=to(n,t);!function KS(n,t,e,i,r,s,o){if(null==s)n.removeAttribute(t,r,e);else{const a=null==o?fn(s):o(s,i||"",r);n.setAttribute(t,r,a,e)}}(t[11],o,s,n.value,e,i,r)}function Vz(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let c=0;c<o.length;){const d=o[c++],f=o[c++],v=o[c++];null!==a?i.setInput(e,v,d,f):e[f]=v}}}function Bz(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function cP(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function Uz(n,t){const e=Hs(t,n);if(fu(e)){const i=e[1];48&e[2]?cm(i,e,i.template,e[8]):e[5]>0&&XS(e)}}function XS(n){for(let i=Up(n);null!==i;i=_h(i))for(let r=10;r<i.length;r++){const s=i[r];if(fu(s))if(512&s[2]){const o=s[1];cm(o,s,o.template,s[8])}else s[5]>0&&XS(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=Hs(e[i],n);fu(r)&&r[5]>0&&XS(r)}}function jz(n,t){const e=Hs(t,n),i=e[1];(function Wz(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),ab(i,e,e[8])}function lb(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function QS(n){for(;n;){n[2]|=32;const t=Vc(n);if(xd(n)&&!t)return n;n=t}return null}function dP(n){!function uP(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=Vp(e);if(null!==i){const r=i[1];Sz(r,i,r.template,e)}}}(n[8])}function JS(n,t,e){$f(0),t(n,e)}const Gz=(()=>Promise.resolve(null))();function hP(n){return n[7]||(n[7]=[])}function fP(n){return n.cleanup||(n.cleanup=[])}function pP(n,t,e){return(null===n||go(n))&&(e=function Uf(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function mP(n,t){const e=n[9],i=e?e.get(aa,null):null;i&&i.handleError(t)}function eA(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],c=t[o],d=n.data[o];null!==d.setInput?d.setInput(c,r,i,a):c[a]=r}}function Bl(n,t,e){const i=hu(t,n);!function _v(n,t,e){n.setValue(t,e)}(n[11],i,e)}function cb(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=yd(r,a):2==s&&(i=yd(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}function ub(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Ti(s)),mo(s))for(let a=10;a<s.length;a++){const c=s[a],d=c[1].firstChild;null!==d&&ub(c[1],c,d,i)}const o=e.type;if(8&o)ub(n,t,e.child,i);else if(32&o){const a=zp(e,t);let c;for(;c=a();)i.push(c)}else if(16&o){const a=xv(t,e);if(Array.isArray(a))i.push(...a);else{const c=Vc(t[16]);ub(c[1],c,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class um{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return ub(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(mo(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Gp(t,i),Du(e,i))}this._attachedToViewContainer=!1}Kn(this._lView[1],this._lView)}onDestroy(t){eP(this._lView[1],this._lView,null,t)}markForCheck(){QS(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function ZS(n,t,e){const i=t[10];i.begin&&i.begin();try{cm(n,t,n.template,e)}catch(r){throw mP(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ua(n,t){xr(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t}}class qz extends um{constructor(t){super(t),this._view=t}detectChanges(){dP(this._view)}checkNoChanges(){}get context(){return null}}class tA extends Il{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Jn(t);return new dm(e,this.ngModule)}}function gP(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Kz{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,Lc,i);return r!==Lc||e===Lc?r:this.parentInjector.get(t,e,i)}}class dm extends av{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function DS(n){return n.map(CS).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gP(this.componentDef.inputs)}get outputs(){return gP(this.componentDef.outputs)}create(t,e,i,r){let s=(r=r||this.ngModule)instanceof Fa?r:null==r?void 0:r.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new Kz(t,s):t,a=o.get(Ol,null);if(null===a)throw new nt(407,!1);const c=o.get(UD,null),d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",v=i?function Mz(n,t,e){return n.selectRootElement(t,e===Js.ShadowDom)}(d,i,this.componentDef.encapsulation):Wp(a.createRenderer(null,this.componentDef),f,function Yz(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),x=this.componentDef.onPush?288:272,B=function eU(n,t){return{components:[],scheduler:n||rS,clean:Gz,playerHandler:t||null,flags:0}}(),se=qS(0,null,null,1,0,null,null,null,null,null),me=ob(null,se,B,x,null,null,a,d,c,o,null);let Oe,Fe;Gf(me);try{const et=function Zz(n,t,e,i,r,s){const o=e[1];e[22]=n;const c=Mh(o,22,2,"#host",null),d=c.mergedAttrs=t.hostAttrs;null!==d&&(cb(c,d,!0),null!==n&&(vu(r,n,d),null!==c.classes&&Xp(r,n,c.classes),null!==c.styles&&Rv(r,n,c.styles)));const f=i.createRenderer(n,t),v=ob(e,JT(t),null,t.onPush?32:16,e[22],c,i,f,s||null,null,null);return o.firstCreatePass&&(jd(Sc(c,e),o,t.type),oP(o,c),aP(c,e.length,1)),lb(e,v),e[22]=v}(v,this.componentDef,me,a,d);if(v)if(i)vu(d,v,["ng-version",jD.full]);else{const{attrs:We,classes:ot}=function Hv(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!So(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);We&&vu(d,v,We),ot&&ot.length>0&&Xp(d,v,ot.join(" "))}if(Fe=qi(se,22),void 0!==e){const We=Fe.projection=[];for(let ot=0;ot<this.ngContentSelectors.length;ot++){const Tt=e[ot];We.push(null!=Tt?Array.from(Tt):null)}}Oe=function Jz(n,t,e,i,r){const s=e[1],o=function Tz(n,t,e){const i=K();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),lP(n,i,t,Eh(n,t,1,null),e),nP(n,i));const r=Dl(t,n,i.directiveStart,i);$r(r,t);const s=to(i,t);return s&&$r(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,null!==r)for(const c of r)c(o,t);if(t.contentQueries){const c=K();t.contentQueries(1,o,c.directiveStart)}const a=K();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(xa(a.index),rP(e[1],a,0,a.directiveStart,a.directiveEnd,t),sP(t,o)),o}(et,this.componentDef,me,B,[tU]),ab(se,me,null)}finally{qf()}return new Qz(this.componentType,Oe,Fc(Fe,me),me,Fe)}}class Qz extends class LD{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new qz(r),this.componentType=t}setInput(t,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[t])){const s=this._rootLView;eA(s[1],s,r,t,e),iP(s,this._tNode.index)}}get injector(){return new Sl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function tU(){const n=K();Vd(ct()[1],n)}function _t(n){let t=function _P(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(go(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=nA(n.inputs),o.declaredInputs=nA(n.declaredInputs),o.outputs=nA(n.outputs);const a=r.hostBindings;a&&sU(n,a);const c=r.viewQuery,d=r.contentQueries;if(c&&iU(n,c),d&&rU(n,d),Sf(n.inputs,r.inputs),Sf(n.declaredInputs,r.declaredInputs),Sf(n.outputs,r.outputs),go(r)&&r.data.animation){const f=n.data;f.animation=(f.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===_t&&(e=!1)}}t=Object.getPrototypeOf(t)}!function nU(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=bu(r.hostAttrs,e=bu(e,r.hostAttrs))}}(i)}function nA(n){return n===ml?{}:n===Gn?[]:n}function iU(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function rU(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function sU(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let db=null;function Hu(){if(!db){const n=ni.Symbol;if(n&&n.iterator)db=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(db=i)}}}return db}function hm(n){return!!iA(n)&&(Array.isArray(n)||!(n instanceof Map)&&Hu()in n)}function iA(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Ha(n,t,e){return n[t]=e}function ks(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function zu(n,t,e,i){const r=ks(n,t,e);return ks(n,t+1,i)||r}function Yt(n,t,e,i){const r=ct();return ks(r,Cc(),t)&&(Rn(),Ba(Pi(),r,n,t,e,i)),Yt}function Th(n,t,e,i,r,s){const a=zu(n,function na(){return nn.lFrame.bindingIndex}(),e,r);return Fr(2),a?t+fn(e)+i+fn(r)+s:dn}function mt(n,t,e,i,r,s,o,a){const c=ct(),d=Rn(),f=n+22,v=d.firstCreatePass?function pU(n,t,e,i,r,s,o,a,c){const d=t.consts,f=Mh(t,n,4,o||null,No(d,a));YS(t,e,f,No(d,c)),Vd(t,f);const v=f.tViews=qS(2,f,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,d);return null!==t.queries&&(t.queries.template(t,f),v.queries=t.queries.embeddedTView(f)),f}(f,d,c,t,e,i,r,s,o):d.data[f];Ki(v,!1);const x=c[11].createComment("");wh(d,c,x,v),$r(x,c),lb(c,c[f]=cP(x,c,x,v)),Ed(v)&&$S(d,c,v),null!=o&&GS(c,v,a)}function zi(n){return Yi(function WC(){return nn.lFrame.contextLView}(),22+n)}function Pe(n,t,e){const i=ct();return ks(i,Cc(),t)&&ko(Rn(),Pi(),i,n,t,i[11],e,!1),Pe}function rA(n,t,e,i,r){const o=r?"class":"style";eA(n,e,t.inputs[o],o,i)}function Y(n,t,e,i){const r=ct(),s=Rn(),o=22+n,a=r[11],c=r[o]=Wp(a,t,function mu(){return nn.lFrame.currentNamespace}()),d=s.firstCreatePass?function gU(n,t,e,i,r,s,o){const a=t.consts,d=Mh(t,n,2,r,No(a,s));return YS(t,e,d,No(a,o)),null!==d.attrs&&cb(d,d.attrs,!1),null!==d.mergedAttrs&&cb(d,d.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,d),d}(o,s,r,0,t,e,i):s.data[o];Ki(d,!0);const f=d.mergedAttrs;null!==f&&vu(a,c,f);const v=d.classes;null!==v&&Xp(a,c,v);const x=d.styles;return null!==x&&Rv(a,c,x),64!=(64&d.flags)&&wh(s,r,c,d),0===function Fd(){return nn.lFrame.elementDepthCount}()&&$r(c,r),function yc(){nn.lFrame.elementDepthCount++}(),Ed(d)&&($S(s,r,d),ZT(s,d,r)),null!==i&&GS(r,d),Y}function ee(){let n=K();xn()?jf():(n=n.parent,Ki(n,!1));const t=n;!function zC(){nn.lFrame.elementDepthCount--}();const e=Rn();return e.firstCreatePass&&(Vd(e,n),If(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function f_(n){return 0!=(16&n.flags)}(t)&&rA(e,t,ct(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ZC(n){return 0!=(32&n.flags)}(t)&&rA(e,t,ct(),t.stylesWithoutHost,!1),ee}function ft(n,t,e,i){return Y(n,t,e,i),ee(),ft}function dr(n,t,e){const i=ct(),r=Rn(),s=n+22,o=r.firstCreatePass?function _U(n,t,e,i,r){const s=t.consts,o=No(s,i),a=Mh(t,n,8,"ng-container",o);return null!==o&&cb(a,o,!0),YS(t,e,a,No(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,e):r.data[s];Ki(o,!0);const a=i[s]=i[11].createComment("");return wh(r,i,a,o),$r(a,i),Ed(o)&&($S(r,i,o),ZT(r,o,i)),null!=e&&GS(i,o),dr}function hr(){let n=K();const t=Rn();return xn()?jf():(n=n.parent,Ki(n,!1)),t.firstCreatePass&&(Vd(t,n),If(n)&&t.queries.elementEnd(n)),hr}function oo(n,t,e){return dr(n,t,e),hr(),oo}function ii(){return ct()}function pm(n){return!!n&&"function"==typeof n.then}function EP(n){return!!n&&"function"==typeof n.subscribe}const sA=EP;function vt(n,t,e,i){const r=ct(),s=Rn(),o=K();return xP(s,r,r[11],o,n,t,0,i),vt}function fb(n,t){const e=K(),i=ct(),r=Rn();return xP(r,i,pP(vo(r.data),e,i),e,n,t),fb}function xP(n,t,e,i,r,s,o,a){const c=Ed(i),f=n.firstCreatePass&&fP(n),v=t[8],x=hP(t);let B=!0;if(3&i.type||a){const Oe=to(i,t),Fe=a?a(Oe):Oe,et=x.length,We=a?Tt=>a(Ti(Tt[i.index])):i.index;let ot=null;if(!a&&c&&(ot=function vU(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],c=r[s+2];return a.length>c?a[c]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==ot)(ot.__ngLastListenerFn__||ot).__ngNextListenerFn__=s,ot.__ngLastListenerFn__=s,B=!1;else{s=TP(i,t,v,s,!1);const Tt=e.listen(Fe,r,s);x.push(s,Tt),f&&f.push(r,We,et,et+1)}}else s=TP(i,t,v,s,!1);const se=i.outputs;let me;if(B&&null!==se&&(me=se[r])){const Oe=me.length;if(Oe)for(let Fe=0;Fe<Oe;Fe+=2){const Wt=t[me[Fe]][me[Fe+1]].subscribe(s),Sn=x.length;x.push(s,Wt),f&&f.push(r,i.index,Sn,-(Sn+1))}}}function kP(n,t,e,i){try{return!1!==e(i)}catch(r){return mP(n,r),!1}}function TP(n,t,e,i,r){return function s(o){if(o===Function)return i;QS(2&n.flags?Hs(n.index,t):t);let c=kP(t,0,i,o),d=s.__ngNextListenerFn__;for(;d;)c=kP(t,0,d,o)&&c,d=d.__ngNextListenerFn__;return r&&!1===c&&(o.preventDefault(),o.returnValue=!1),c}}function Qe(n=1){return function KC(n){return(nn.lFrame.contextLView=function XC(n,t){for(;n>0;)t=t[15],n--;return t}(n,nn.lFrame.contextLView))[8]}(n)}function bU(n,t){let e=null;const i=function bS(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<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Vv(n,s,!0):wS(i,s))return r}else e=r}return e}function Ui(n){const t=ct()[16][6];if(!t.projection){const i=t.projection=Ml(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?bU(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Vn(n,t=0,e){const i=ct(),r=Rn(),s=Mh(r,22+n,16,null,e||null);null===s.projection&&(s.projection=t),jf(),64!=(64&s.flags)&&function pS(n,t,e){Tv(t[11],0,t,e,wv(n,e,t),Av(e.parent||t[6],e,t))}(r,i,s)}function HP(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Ao(s):Mo(s),c=!1;for(;0!==a&&(!1===c||o);){const f=n[a+1];CU(n[a],t)&&(c=!0,n[a+1]=i?sm(f):Bu(f)),a=i?Ao(f):Mo(f)}c&&(n[e+1]=i?Bu(s):sm(s))}function CU(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Ec(n,t)>=0}function js(n,t,e){return da(n,t,e,!1),js}function Kt(n,t){return da(n,t,null,!0),Kt}function da(n,t,e,i){const r=ct(),s=Rn(),o=Fr(2);s.firstUpdatePass&&function YP(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[es()],o=function qP(n,t){return t>=n.expandoStartIndex}(n,e);(function ZP(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function PU(n,t,e,i){const r=vo(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=mm(e=aA(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=aA(r,n,t,e,i),null===s){let c=function RU(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Mo(i))return n[Ao(i)]}(n,t,i);void 0!==c&&Array.isArray(c)&&(c=aA(null,n,t,c[1],i),c=mm(c,t.attrs,i),function IU(n,t,e,i){n[Ao(e?t.classBindings:t.styleBindings)]=i}(n,t,i,c))}else s=function OU(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=mm(i,n[s].hostAttrs,e);return mm(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function yU(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Ao(o),c=Mo(o);n[i]=e;let f,d=!1;if(Array.isArray(e)){const v=e;f=v[1],(null===f||Ec(v,f)>0)&&(d=!0)}else f=e;if(r)if(0!==c){const x=Ao(n[a+1]);n[i+1]=Vu(x,a),0!==x&&(n[x+1]=rm(n[x+1],i)),n[a+1]=function VS(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Vu(a,0),0!==a&&(n[a+1]=rm(n[a+1],i)),a=i;else n[i+1]=Vu(c,0),0===a?a=i:n[c+1]=rm(n[c+1],i),c=i;d&&(n[i+1]=Bu(n[i+1])),HP(n,f,i,!0),HP(n,f,i,!1),function wU(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&Ec(s,t)>=0&&(e[i+1]=sm(e[i+1]))}(t,f,n,i,s),o=Vu(a,c),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==dn&&ks(r,o,t)&&function XP(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const c=n.data,d=c[a+1];pb(function tb(n){return 1==(1&n)}(d)?QP(c,t,e,r,Mo(d),o):void 0)||(pb(s)||function eb(n){return 2==(2&n)}(d)&&(s=QP(c,null,e,r,a,o)),function Pv(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let s=-1===i.indexOf("-")?void 0:Es.DashCase;null==r?n.removeStyle(e,i,s):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=Es.Important),n.setStyle(e,i,r,s))}}(i,o,hu(es(),e),r,s))}(s,s.data[es()],r,r[11],n,r[o+1]=function NU(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=ai(As(n)))),n}(t,e),i,o)}function aA(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=mm(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function mm(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),ns(n,o,!!e||t[++s]))}return void 0===n?null:n}function QP(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const c=n[r],d=Array.isArray(c),f=d?c[1]:c,v=null===f;let x=e[r+1];x===dn&&(x=v?Gn:void 0);let B=v?op(x,i):f===i?x:void 0;if(d&&!pb(B)&&(B=op(c,i)),pb(B)&&(a=B,o))return a;const se=n[r+1];r=o?Ao(se):Mo(se)}if(null!==t){let c=s?t.residualClasses:t.residualStyles;null!=c&&(a=op(c,i))}return a}function pb(n){return void 0!==n}function ie(n,t=""){const e=ct(),i=Rn(),r=n+22,s=i.firstCreatePass?Mh(i,r,1,t,null):i.data[r],o=e[r]=function jp(n,t){return n.createText(t)}(e[11],t);wh(i,e,o,s),Ki(s,!1)}function Yn(n){return ci("",n,""),Yn}function ci(n,t,e){const i=ct(),r=function kh(n,t,e,i){return ks(n,Cc(),e)?t+fn(e)+i:dn}(i,n,t,e);return r!==dn&&Bl(i,es(),r),ci}function lA(n,t,e,i,r){const s=ct(),o=Th(s,n,t,e,i,r);return o!==dn&&Bl(s,es(),o),lA}function ja(n,t,e){const i=ct();return ks(i,Cc(),t)&&ko(Rn(),Pi(),i,n,t,i[11],e,!0),ja}function mb(n,t,e){const i=ct();if(ks(i,Cc(),t)){const s=Rn(),o=Pi();ko(s,o,i,n,t,pP(vo(s.data),o,i),e,!0)}return mb}const Uu=void 0;var ij=["en",[["a","p"],["AM","PM"],Uu],[["AM","PM"],Uu,Uu],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Uu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Uu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Uu,"{1} 'at' {0}",Uu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function nj(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Vh={};function Ws(n){const t=function sj(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=gR(t);if(e)return e;const i=t.split("-")[0];if(e=gR(i),e)return e;if("en"===i)return ij;throw new nt(701,!1)}function gR(n){return n in Vh||(Vh[n]=ni.ng&&ni.ng.common&&ni.ng.common.locales&&ni.ng.common.locales[n]),Vh[n]}var xt=(()=>((xt=xt||{})[xt.LocaleId=0]="LocaleId",xt[xt.DayPeriodsFormat=1]="DayPeriodsFormat",xt[xt.DayPeriodsStandalone=2]="DayPeriodsStandalone",xt[xt.DaysFormat=3]="DaysFormat",xt[xt.DaysStandalone=4]="DaysStandalone",xt[xt.MonthsFormat=5]="MonthsFormat",xt[xt.MonthsStandalone=6]="MonthsStandalone",xt[xt.Eras=7]="Eras",xt[xt.FirstDayOfWeek=8]="FirstDayOfWeek",xt[xt.WeekendRange=9]="WeekendRange",xt[xt.DateFormat=10]="DateFormat",xt[xt.TimeFormat=11]="TimeFormat",xt[xt.DateTimeFormat=12]="DateTimeFormat",xt[xt.NumberSymbols=13]="NumberSymbols",xt[xt.NumberFormats=14]="NumberFormats",xt[xt.CurrencyCode=15]="CurrencyCode",xt[xt.CurrencySymbol=16]="CurrencySymbol",xt[xt.CurrencyName=17]="CurrencyName",xt[xt.Currencies=18]="Currencies",xt[xt.Directionality=19]="Directionality",xt[xt.PluralCase=20]="PluralCase",xt[xt.ExtraData=21]="ExtraData",xt))();const Bh="en-US";let _R=Bh;function dA(n,t,e,i,r){if(n=tn(n),Array.isArray(n))for(let s=0;s<n.length;s++)dA(n[s],t,e,i,r);else{const s=Rn(),o=ct();let a=Rl(n)?n:tn(n.provide),c=xp(n);const d=K(),f=1048575&d.providerIndexes,v=d.directiveStart,x=d.providerIndexes>>20;if(Rl(n)||!n.multi){const B=new _u(c,r,R),se=fA(a,t,r?f:f+x,v);-1===se?(jd(Sc(d,o),s,a),hA(s,n,t.length),t.push(a),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(B),o.push(B)):(e[se]=B,o[se]=B)}else{const B=fA(a,t,f+x,v),se=fA(a,t,f,f+x),me=B>=0&&e[B],Oe=se>=0&&e[se];if(r&&!Oe||!r&&!me){jd(Sc(d,o),s,a);const Fe=function n4(n,t,e,i,r){const s=new _u(n,e,R);return s.multi=[],s.index=t,s.componentProviders=0,UR(s,r,i&&!e),s}(r?t4:e4,e.length,r,i,c);!r&&Oe&&(e[se].providerFactory=Fe),hA(s,n,t.length,0),t.push(a),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(Fe),o.push(Fe)}else hA(s,n,B>-1?B:se,UR(e[r?se:B],c,!r&&i));!r&&i&&Oe&&e[se].componentProviders++}}}function hA(n,t,e,i){const r=Rl(t),s=function kD(n){return!!n.useClass}(t);if(r||s){const c=(s?tn(t.useClass):t).prototype.ngOnDestroy;if(c){const d=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const f=d.indexOf(e);-1===f?d.push(e,[i,c]):d[f+1].push(i,c)}else d.push(e,c)}}}function UR(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function fA(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function e4(n,t,e,i){return pA(this.multi,[])}function t4(n,t,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Dl(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),pA(r,s);for(let c=o;c<a.length;c++)s.push(a[c])}else s=[],pA(r,s);return s}function pA(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function kt(n,t=[]){return e=>{e.providersResolver=(i,r)=>function Jj(n,t,e){const i=Rn();if(i.firstCreatePass){const r=go(n);dA(e,i.data,i.blueprint,r,!0),dA(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class ju{}class jR{}class WR extends ju{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tA(this);const i=Vs(t);this._bootstrapComponents=la(i.bootstrap),this._r3Injector=Gv(t,e,[{provide:ju,useValue:this},{provide:Il,useValue:this.componentFactoryResolver}],ai(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 mA extends jR{constructor(t){super(),this.moduleType=t}create(t){return new WR(this.moduleType,t)}}class r4 extends ju{constructor(t,e,i){super(),this.componentFactoryResolver=new tA(this),this.instance=null;const r=new ov([...t,{provide:ju,useValue:this},{provide:Il,useValue:this.componentFactoryResolver}],e||lh(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function yb(n,t,e=null){return new r4(n,t,e).injector}function _A(n,t,e){const i=Jr()+n,r=ct();return r[i]===dn?Ha(r,i,e?t.call(e):t()):function fm(n,t){return n[t]}(r,i)}function wb(n,t,e,i){return ZR(ct(),Jr(),n,t,e,i)}function ym(n,t){const e=n[t];return e===dn?void 0:e}function ZR(n,t,e,i,r,s){const o=t+e;return ks(n,o,r)?Ha(n,o+1,s?i.call(s,r):i(r)):ym(n,o+1)}function JR(n,t,e,i,r,s,o){const a=t+e;return zu(n,a,r,s)?Ha(n,a+2,o?i.call(o,r,s):i(r,s)):ym(n,a+2)}function eI(n,t,e,i,r,s,o,a){const c=t+e;return function hb(n,t,e,i,r){const s=zu(n,t,e,i);return ks(n,t+2,r)||s}(n,c,r,s,o)?Ha(n,c+3,a?i.call(a,r,s,o):i(r,s,o)):ym(n,c+3)}function ui(n,t){const e=Rn();let i;const r=n+22;e.firstCreatePass?(i=function C4(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 s=i.factory||(i.factory=vl(i.type)),o=Xs(R);try{const a=Dc(!1),c=s();return Dc(a),function mU(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,ct(),r,c),c}finally{Xs(o)}}function wi(n,t,e){const i=n+22,r=ct(),s=Yi(r,i);return wm(r,i)?ZR(r,Jr(),t,s.transform,e,s):s.transform(e)}function wm(n,t){return n[1].data[t].pure}function vA(n){return t=>{setTimeout(n,void 0,t)}}const bt=class A4 extends y{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,c=e||(()=>null),d=i;if(t&&"object"==typeof t){const v=t;a=null===(r=v.next)||void 0===r?void 0:r.bind(v),c=null===(s=v.error)||void 0===s?void 0:s.bind(v),d=null===(o=v.complete)||void 0===o?void 0:o.bind(v)}this.__isAsync&&(c=vA(c),a&&(a=vA(a)),d&&(d=vA(d)));const f=super.subscribe({next:a,error:c,complete:d});return t instanceof Me&&t.add(f),f}};function M4(){return this._results[Hu()]()}class zh{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=Hu(),i=zh.prototype;i[e]||(i[e]=M4)}get changes(){return this._changes||(this._changes=new bt)}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=Wr(t);(this._changesDetected=!function D_(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let fr=(()=>{class n{}return n.__NG_ELEMENT_ID__=k4,n})();const E4=fr,x4=class extends E4{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=ob(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(i)),ab(i,r,t),new um(r)}};function k4(){return Cb(K(),ct())}function Cb(n,t){return 4&n.type?new x4(t,n,Fc(n,t)):null}let Oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=T4,n})();function T4(){return aI(K(),ct())}const P4=Oi,sI=class extends P4{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Fc(this._hostTNode,this._hostLView)}get injector(){return new Sl(this._hostTNode,this._hostLView)}get parentInjector(){const t=ka(this._hostTNode,this._hostLView);if(Ud(t)){const e=Cl(t,this._hostLView),i=sa(t);return new Sl(e[1].data[i+8],e)}return new Sl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=oI(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const o=t.createEmbeddedView(e||{},s);return this.insert(o,r),o}createComponent(t,e,i,r,s){const o=t&&!function io(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const v=e||{};a=v.index,i=v.injector,r=v.projectableNodes,s=v.environmentInjector||v.ngModuleRef}const c=o?t:new dm(Jn(t)),d=i||this.parentInjector;if(!s&&null==c.ngModule){const x=(o?d:this.parentInjector).get(Fa,null);x&&(s=x)}const f=c.create(d,r,void 0,s);return this.insert(f.hostView,a),f}insert(t,e){const i=t._lView,r=i[1];if(function HC(n){return mo(n[3])}(i)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const v=i[3],x=new sI(v,v[6],v[3]);x.detach(x.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function bv(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],qd(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function so(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=64}(r,i,o,s);const a=Kp(s,o),c=i[11],d=bh(c,o[7]);return null!==d&&function vv(n,t,e,i,r,s){i[0]=r,i[6]=t,xr(n,i,e,1,r,s)}(r,o[6],c,i,d,a),t.attachToViewContainerRef(),qd(bA(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=oI(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Gp(this._lContainer,e);i&&(Du(bA(this._lContainer),e),Kn(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Gp(this._lContainer,e);return i&&null!=Du(bA(this._lContainer),e)?new um(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function oI(n){return n[8]}function bA(n){return n[8]||(n[8]=[])}function aI(n,t){let e;const i=t[n.index];if(mo(i))e=i;else{let r;if(8&n.type)r=Ti(i);else{const s=t[11];r=s.createComment("");const o=to(n,t);Nl(s,bh(s,o),r,function fS(n,t){return n.nextSibling(t)}(s,o),!1)}t[n.index]=e=cP(i,t,r,n),lb(t,e)}return new sI(e,n,t)}class yA{constructor(t){this.queryList=t,this.matches=null}clone(){return new yA(this.queryList)}setDirty(){this.queryList.setDirty()}}class wA{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new wA(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==hI(t,e).matches&&this.queries[e].setDirty()}}class lI{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class CA{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new CA(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class DA{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new DA(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,O4(e,s)),this.matchTNodeWithReadOption(t,e,wu(e,t,s,!1,!1))}else i===fr?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,wu(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===yt||r===Oi||r===fr&&4&e.type)this.addMatch(e.index,-2);else{const s=wu(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function O4(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function L4(n,t,e,i){return-1===e?function F4(n,t){return 11&n.type?Fc(n,t):4&n.type?Cb(n,t):null}(t,n):-2===e?function N4(n,t,e){return e===yt?Fc(t,n):e===fr?Cb(t,n):e===Oi?aI(t,n):void 0}(n,t,i):Dl(n,n[1],e,t)}function cI(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let c=0;c<o.length;c+=2){const d=o[c];a.push(d<0?null:L4(t,s[d],o[c+1],e.metadata.read))}r.matches=a}return r.matches}function SA(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=cI(n,t,r,e);for(let a=0;a<s.length;a+=2){const c=s[a];if(c>0)i.push(o[a/2]);else{const d=s[a+1],f=t[-c];for(let v=10;v<f.length;v++){const x=f[v];x[17]===x[3]&&SA(x[1],x,d,i)}if(null!==f[9]){const v=f[9];for(let x=0;x<v.length;x++){const B=v[x];SA(B[1],B,d,i)}}}}}return i}function Dt(n){const t=ct(),e=Rn(),i=a_();$f(i+1);const r=hI(e,i);if(n.dirty&&i_(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?SA(e,t,i,[]):cI(e,t,r,i);n.reset(s,HD),n.notifyOnChanges()}return!0}return!1}function Hn(n,t,e){const i=Rn();i.firstCreatePass&&(dI(i,new lI(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),uI(i,ct(),t)}function Dn(n,t,e,i){const r=Rn();if(r.firstCreatePass){const s=K();dI(r,new lI(t,e,i),s.index),function B4(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}uI(r,ct(),e)}function St(){return function V4(n,t){return n[19].queries[t].queryList}(ct(),a_())}function uI(n,t,e){const i=new zh(4==(4&e));eP(n,t,i,i.destroy),null===t[19]&&(t[19]=new wA),t[19].queries.push(new yA(i))}function dI(n,t,e){null===n.queries&&(n.queries=new CA),n.queries.track(new DA(t,e))}function hI(n,t){return n.queries.getByIndex(t)}function Hl(n,t){return Cb(n,t)}function Sb(...n){}const Ab=new lt("Application Initializer");let Mb=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Sb,this.reject=Sb,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<this.appInits.length;r++){const s=this.appInits[r]();if(pm(s))e.push(s);else if(sA(s)){const o=new Promise((a,c)=>{s.subscribe({complete:a,error:c})});e.push(o)}}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)(Re(Ab,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $h=new lt("AppId",{providedIn:"root",factory:function PI(){return`${kA()}${kA()}${kA()}`}});function kA(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const RI=new lt("Platform Initializer"),Gh=new lt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),II=new lt("appBootstrapListener"),Ts=new lt("AnimationModuleType");let sW=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const fa=new lt("LocaleId",{providedIn:"root",factory:()=>qn(fa,qt.Optional|qt.SkipSelf)||function oW(){return"undefined"!=typeof $localize&&$localize.locale||Bh}()});class lW{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let TA=(()=>{class n{compileModuleSync(e){return new mA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=la(Vs(e).declarations).reduce((o,a)=>{const c=Jn(a);return c&&o.push(new dm(c)),o},[]);return new lW(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dW=(()=>Promise.resolve(0))();function PA(n){"undefined"==typeof Zone?dW.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class jt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new bt(!1),this.onMicrotaskEmpty=new bt(!1),this.onStable=new bt(!1),this.onError=new bt(!1),"undefined"==typeof Zone)throw new nt(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new s("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 hW(){let n=ni.requestAnimationFrame,t=ni.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 mW(n){const t=()=>{!function pW(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ni,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,IA(n),n.isCheckStableRunning=!0,RA(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),IA(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return LI(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),NI(n)}},onInvoke:(e,i,r,s,o,a,c)=>{try{return LI(n),e.invoke(r,s,o,a,c)}finally{n.shouldCoalesceRunChangeDetection&&t(),NI(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,IA(n),RA(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jt.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(jt.isInAngularZone())throw new nt(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,fW,Sb,Sb);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const fW={};function RA(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 IA(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function LI(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function NI(n){n._nesting--,RA(n)}class gW{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new bt,this.onMicrotaskEmpty=new bt,this.onStable=new bt,this.onError=new bt}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 VI=new lt(""),Eb=new lt("");let Dm,OA=(()=>{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,Dm||(function _W(n){Dm=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:()=>{jt.assertNotInAngularZone(),PA(()=>{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())PA(()=>{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 s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,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)(Re(jt),Re(FA),Re(Eb))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),FA=(()=>{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==Dm?void 0:Dm.findTestabilityInTree(this,e,i))&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Wa=null;const BI=new lt("AllowMultipleToken"),LA=new lt("PlatformDestroyListeners");class HI{constructor(t,e){this.name=t,this.token=e}}function UI(n,t,e=[]){const i=`Platform: ${t}`,r=new lt(i);return(s=[])=>{let o=NA();if(!o||o.injector.get(BI,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function yW(n){if(Wa&&!Wa.get(BI,!1))throw new nt(400,!1);Wa=n;const t=n.get(WI);(function zI(n){const t=n.get(RI,null);t&&t.forEach(e=>e())})(n)}(function jI(n=[],t){return Ii.create({name:t,providers:[{provide:Iu,useValue:"platform"},{provide:LA,useValue:new Set([()=>Wa=null])},...n]})}(a,i))}return function CW(n){const t=NA();if(!t)throw new nt(401,!1);return t}()}}function NA(){var n;return null!==(n=null==Wa?void 0:Wa.get(WI))&&void 0!==n?n:null}let WI=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function DW(n,t){let e;return e="noop"===n?new gW:("zone.js"===n?void 0:n)||new jt(t),e}(null==i?void 0:i.ngZone,function $I(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:jt,useValue:r}];return r.run(()=>{const o=Ii.create({providers:s,parent:this.injector,name:e.moduleType.name}),a=e.create(o),c=a.injector.get(aa,null);if(!c)throw new nt(402,!1);return r.runOutsideAngular(()=>{const d=r.onError.subscribe({next:f=>{c.handleError(f)}});a.onDestroy(()=>{xb(this._modules,a),d.unsubscribe()})}),function GI(n,t,e){try{const i=e();return pm(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(c,r,()=>{const d=a.injector.get(Mb);return d.runInitializers(),d.donePromise.then(()=>(function vR(n){gs(n,"Expected localeId to be defined"),"string"==typeof n&&(_R=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(fa,Bh)||Bh),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=qI({},i);return function vW(n,t,e){const i=new mA(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(qh);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new nt(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 nt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(LA,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)(Re(Ii))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function qI(n,t){return Array.isArray(t)?t.reduce(qI,n):Object.assign(Object.assign({},n),t)}let qh=(()=>{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 s=new _e(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),o=new _e(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{jt.assertNotInAngularZone(),PA(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{jt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=Ni(s,o.pipe(bd()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof av;if(!this._injector.get(Mb).done)throw!r&&function jh(n){const t=Jn(n)||Dr(n)||er(n);return null!==t&&t.standalone}(e),new nt(405,false);let o;o=r?e:this._injector.get(Il).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const a=function bW(n){return n.isBoundToModule}(o)?void 0:this._injector.get(ju),d=o.create(Ii.NULL,[],i||o.selector,a),f=d.location.nativeElement,v=d.injector.get(VI,null);return null==v||v.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),xb(this.components,d),null==v||v.unregisterApplication(f)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new nt(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;xb(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(II,[]).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),()=>xb(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new nt(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)(Re(jt),Re(Fa),Re(aa))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xb(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let KI=!0,XI=!1;function Sm(){return XI=!0,KI}let Xn=(()=>{class n{}return n.__NG_ELEMENT_ID__=MW,n})();function MW(n){return function EW(n,t,e){if(Md(n)&&!e){const i=Hs(n.index,t);return new um(i,i)}return 47&n.type?new um(t[16],t):null}(K(),ct(),16==(16&n))}class eO{constructor(){}supports(t){return hm(t)}create(t){return new IW(t)}}const RW=(n,t)=>t;class IW{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||RW}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,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<nO(i,r,s)?e:i,a=nO(o,r,s),c=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const d=a-r,f=c-r;if(d!=f){for(let x=0;x<d;x++){const B=x<s.length?s[x]:s[x]=0,se=B+x;f<=se&&se<d&&(s[x]=B+1)}s[o.previousIndex]=f-d}}a!==c&&t(o,a,c)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!hm(t))throw new nt(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function uU(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Hu()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,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 s;return null===t?s=this._itTail:(s=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,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new OW(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,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,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._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 tO),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 tO),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 OW{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 FW{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 tO{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new FW,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 nO(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class iO{constructor(){}supports(t){return t instanceof Map||iA(t)}create(){return new LW}}class LW{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||iA(t)))throw new nt(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),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 s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new NW(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 NW{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 rO(){return new qo([new eO])}let qo=(()=>{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||rO()),deps:[[n,new Co,new Cs]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new nt(901,!1)}}return n.\u0275prov=dt({token:n,providedIn:"root",factory:rO}),n})();function sO(){return new Am([new iO])}let Am=(()=>{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||sO()),deps:[[n,new Co,new Cs]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new nt(901,!1)}}return n.\u0275prov=dt({token:n,providedIn:"root",factory:sO}),n})();const HW=UI(null,"core",[]);let zW=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(Re(qh))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();function Ul(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let Pb=null;function $a(){return Pb}const Qt=new lt("DocumentToken");let Rb=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return function $W(){return Re(oO)}()},providedIn:"platform"}),n})();const GW=new lt("Location Initialized");let oO=(()=>{class n extends Rb{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $a().getBaseHref(this._doc)}onPopState(e){const i=$a().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=$a().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){aO()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){aO()?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)(Re(Qt))},n.\u0275prov=dt({token:n,factory:function(){return function qW(){return new oO(Re(Qt))}()},providedIn:"platform"}),n})();function aO(){return!!window.history.pushState}function UA(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 lO(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 jl(n){return n&&"?"!==n[0]?"?"+n:n}let $u=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return qn(cO)},providedIn:"root"}),n})();const jA=new lt("appBaseHref");let cO=(()=>{class n extends $u{constructor(e,i){var r,s,o;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(o=null!==(r=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==r?r:null===(s=qn(Qt).location)||void 0===s?void 0:s.origin)&&void 0!==o?o:""}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 UA(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+jl(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+jl(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+jl(s));this._platformLocation.replaceState(e,i,o)}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)(Re(Rb),Re(jA,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YW=(()=>{class n extends $u{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=UA(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+jl(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+jl(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}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)(Re(Rb),Re(jA,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Ib=(()=>{class n{constructor(e){this._subject=new bt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=lO(uO(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+jl(i))}normalize(e){return n.stripTrailingSlash(function XW(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,uO(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+jl(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jl(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=jl,n.joinWithSlash=UA,n.stripTrailingSlash=lO,n.\u0275fac=function(e){return new(e||n)(Re($u))},n.\u0275prov=dt({token:n,factory:function(){return function KW(){return new Ib(Re($u))}()},providedIn:"root"}),n})();function uO(n){return n.replace(/\/index.html$/,"")}var ao=(()=>((ao=ao||{})[ao.Decimal=0]="Decimal",ao[ao.Percent=1]="Percent",ao[ao.Currency=2]="Currency",ao[ao.Scientific=3]="Scientific",ao))(),pr=(()=>((pr=pr||{})[pr.Format=0]="Format",pr[pr.Standalone=1]="Standalone",pr))(),zn=(()=>((zn=zn||{})[zn.Narrow=0]="Narrow",zn[zn.Abbreviated=1]="Abbreviated",zn[zn.Wide=2]="Wide",zn[zn.Short=3]="Short",zn))(),Qi=(()=>((Qi=Qi||{})[Qi.Short=0]="Short",Qi[Qi.Medium=1]="Medium",Qi[Qi.Long=2]="Long",Qi[Qi.Full=3]="Full",Qi))(),on=(()=>((on=on||{})[on.Decimal=0]="Decimal",on[on.Group=1]="Group",on[on.List=2]="List",on[on.PercentSign=3]="PercentSign",on[on.PlusSign=4]="PlusSign",on[on.MinusSign=5]="MinusSign",on[on.Exponential=6]="Exponential",on[on.SuperscriptingExponent=7]="SuperscriptingExponent",on[on.PerMille=8]="PerMille",on[on.Infinity=9]="Infinity",on[on.NaN=10]="NaN",on[on.TimeSeparator=11]="TimeSeparator",on[on.CurrencyDecimal=12]="CurrencyDecimal",on[on.CurrencyGroup=13]="CurrencyGroup",on))();function Ob(n,t){return Ko(Ws(n)[xt.DateFormat],t)}function Fb(n,t){return Ko(Ws(n)[xt.TimeFormat],t)}function Lb(n,t){return Ko(Ws(n)[xt.DateTimeFormat],t)}function Yo(n,t){const e=Ws(n),i=e[xt.NumberSymbols][t];if(void 0===i){if(t===on.CurrencyDecimal)return e[xt.NumberSymbols][on.Decimal];if(t===on.CurrencyGroup)return e[xt.NumberSymbols][on.Group]}return i}function hO(n){if(!n[xt.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[xt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ko(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function $A(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const c$=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Mm={},u$=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Br=(()=>((Br=Br||{})[Br.Short=0]="Short",Br[Br.ShortGMT=1]="ShortGMT",Br[Br.Long=2]="Long",Br[Br.Extended=3]="Extended",Br))(),an=(()=>((an=an||{})[an.FullYear=0]="FullYear",an[an.Month=1]="Month",an[an.Date=2]="Date",an[an.Hours=3]="Hours",an[an.Minutes=4]="Minutes",an[an.Seconds=5]="Seconds",an[an.FractionalSeconds=6]="FractionalSeconds",an[an.Day=7]="Day",an))(),En=(()=>((En=En||{})[En.DayPeriods=0]="DayPeriods",En[En.Days=1]="Days",En[En.Months=2]="Months",En[En.Eras=3]="Eras",En))();function d$(n,t,e,i){let r=function y$(n){if(mO(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,s=1,o=1]=n.split("-").map(a=>+a);return Nb(r,s-1,o)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(c$))return function w$(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,s=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-e,a=Number(n[5]||0)-i,c=Number(n[6]||0),d=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(t,o,a,c,d),t}(i)}const t=new Date(n);if(!mO(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=Wl(e,t)||t;let a,o=[];for(;t;){if(a=u$.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const f=o.pop();if(!f)break;t=f}}let c=r.getTimezoneOffset();i&&(c=pO(i,c),r=function b$(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function v$(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(pO(t,r)-r))}(r,i,!0));let d="";return o.forEach(f=>{const v=function _$(n){if(qA[n])return qA[n];let t;switch(n){case"G":case"GG":case"GGG":t=Mi(En.Eras,zn.Abbreviated);break;case"GGGG":t=Mi(En.Eras,zn.Wide);break;case"GGGGG":t=Mi(En.Eras,zn.Narrow);break;case"y":t=Tr(an.FullYear,1,0,!1,!0);break;case"yy":t=Tr(an.FullYear,2,0,!0,!0);break;case"yyy":t=Tr(an.FullYear,3,0,!1,!0);break;case"yyyy":t=Tr(an.FullYear,4,0,!1,!0);break;case"Y":t=zb(1);break;case"YY":t=zb(2,!0);break;case"YYY":t=zb(3);break;case"YYYY":t=zb(4);break;case"M":case"L":t=Tr(an.Month,1,1);break;case"MM":case"LL":t=Tr(an.Month,2,1);break;case"MMM":t=Mi(En.Months,zn.Abbreviated);break;case"MMMM":t=Mi(En.Months,zn.Wide);break;case"MMMMM":t=Mi(En.Months,zn.Narrow);break;case"LLL":t=Mi(En.Months,zn.Abbreviated,pr.Standalone);break;case"LLLL":t=Mi(En.Months,zn.Wide,pr.Standalone);break;case"LLLLL":t=Mi(En.Months,zn.Narrow,pr.Standalone);break;case"w":t=GA(1);break;case"ww":t=GA(2);break;case"W":t=GA(1,!0);break;case"d":t=Tr(an.Date,1);break;case"dd":t=Tr(an.Date,2);break;case"c":case"cc":t=Tr(an.Day,1);break;case"ccc":t=Mi(En.Days,zn.Abbreviated,pr.Standalone);break;case"cccc":t=Mi(En.Days,zn.Wide,pr.Standalone);break;case"ccccc":t=Mi(En.Days,zn.Narrow,pr.Standalone);break;case"cccccc":t=Mi(En.Days,zn.Short,pr.Standalone);break;case"E":case"EE":case"EEE":t=Mi(En.Days,zn.Abbreviated);break;case"EEEE":t=Mi(En.Days,zn.Wide);break;case"EEEEE":t=Mi(En.Days,zn.Narrow);break;case"EEEEEE":t=Mi(En.Days,zn.Short);break;case"a":case"aa":case"aaa":t=Mi(En.DayPeriods,zn.Abbreviated);break;case"aaaa":t=Mi(En.DayPeriods,zn.Wide);break;case"aaaaa":t=Mi(En.DayPeriods,zn.Narrow);break;case"b":case"bb":case"bbb":t=Mi(En.DayPeriods,zn.Abbreviated,pr.Standalone,!0);break;case"bbbb":t=Mi(En.DayPeriods,zn.Wide,pr.Standalone,!0);break;case"bbbbb":t=Mi(En.DayPeriods,zn.Narrow,pr.Standalone,!0);break;case"B":case"BB":case"BBB":t=Mi(En.DayPeriods,zn.Abbreviated,pr.Format,!0);break;case"BBBB":t=Mi(En.DayPeriods,zn.Wide,pr.Format,!0);break;case"BBBBB":t=Mi(En.DayPeriods,zn.Narrow,pr.Format,!0);break;case"h":t=Tr(an.Hours,1,-12);break;case"hh":t=Tr(an.Hours,2,-12);break;case"H":t=Tr(an.Hours,1);break;case"HH":t=Tr(an.Hours,2);break;case"m":t=Tr(an.Minutes,1);break;case"mm":t=Tr(an.Minutes,2);break;case"s":t=Tr(an.Seconds,1);break;case"ss":t=Tr(an.Seconds,2);break;case"S":t=Tr(an.FractionalSeconds,1);break;case"SS":t=Tr(an.FractionalSeconds,2);break;case"SSS":t=Tr(an.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Bb(Br.Short);break;case"ZZZZZ":t=Bb(Br.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Bb(Br.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Bb(Br.Long);break;default:return null}return qA[n]=t,t}(f);d+=v?v(r,e,c):"''"===f?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function Nb(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function Wl(n,t){const e=function QW(n){return Ws(n)[xt.LocaleId]}(n);if(Mm[e]=Mm[e]||{},Mm[e][t])return Mm[e][t];let i="";switch(t){case"shortDate":i=Ob(n,Qi.Short);break;case"mediumDate":i=Ob(n,Qi.Medium);break;case"longDate":i=Ob(n,Qi.Long);break;case"fullDate":i=Ob(n,Qi.Full);break;case"shortTime":i=Fb(n,Qi.Short);break;case"mediumTime":i=Fb(n,Qi.Medium);break;case"longTime":i=Fb(n,Qi.Long);break;case"fullTime":i=Fb(n,Qi.Full);break;case"short":const r=Wl(n,"shortTime"),s=Wl(n,"shortDate");i=Vb(Lb(n,Qi.Short),[r,s]);break;case"medium":const o=Wl(n,"mediumTime"),a=Wl(n,"mediumDate");i=Vb(Lb(n,Qi.Medium),[o,a]);break;case"long":const c=Wl(n,"longTime"),d=Wl(n,"longDate");i=Vb(Lb(n,Qi.Long),[c,d]);break;case"full":const f=Wl(n,"fullTime"),v=Wl(n,"fullDate");i=Vb(Lb(n,Qi.Full),[f,v])}return i&&(Mm[e][t]=i),i}function Vb(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ma(n,t,e="-",i,r){let s="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,s=e));let o=String(n);for(;o.length<t;)o="0"+o;return i&&(o=o.slice(o.length-t)),s+o}function Tr(n,t,e=0,i=!1,r=!1){return function(s,o){let a=function f$(n,t){switch(n){case an.FullYear:return t.getFullYear();case an.Month:return t.getMonth();case an.Date:return t.getDate();case an.Hours:return t.getHours();case an.Minutes:return t.getMinutes();case an.Seconds:return t.getSeconds();case an.FractionalSeconds:return t.getMilliseconds();case an.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,s);if((e>0||a>-e)&&(a+=e),n===an.Hours)0===a&&-12===e&&(a=12);else if(n===an.FractionalSeconds)return function h$(n,t){return ma(n,3).substring(0,t)}(a,t);const c=Yo(o,on.MinusSign);return ma(a,t,c,i,r)}}function Mi(n,t,e=pr.Format,i=!1){return function(r,s){return function p$(n,t,e,i,r,s){switch(e){case En.Months:return function e$(n,t,e){const i=Ws(n),s=Ko([i[xt.MonthsFormat],i[xt.MonthsStandalone]],t);return Ko(s,e)}(t,r,i)[n.getMonth()];case En.Days:return function JW(n,t,e){const i=Ws(n),s=Ko([i[xt.DaysFormat],i[xt.DaysStandalone]],t);return Ko(s,e)}(t,r,i)[n.getDay()];case En.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const d=function r$(n){const t=Ws(n);return hO(t),(t[xt.ExtraData][2]||[]).map(i=>"string"==typeof i?$A(i):[$A(i[0]),$A(i[1])])}(t),f=function s$(n,t,e){const i=Ws(n);hO(i);const s=Ko([i[xt.ExtraData][0],i[xt.ExtraData][1]],t)||[];return Ko(s,e)||[]}(t,r,i),v=d.findIndex(x=>{if(Array.isArray(x)){const[B,se]=x,me=o>=B.hours&&a>=B.minutes,Oe=o<se.hours||o===se.hours&&a<se.minutes;if(B.hours<se.hours){if(me&&Oe)return!0}else if(me||Oe)return!0}else if(x.hours===o&&x.minutes===a)return!0;return!1});if(-1!==v)return f[v]}return function ZW(n,t,e){const i=Ws(n),s=Ko([i[xt.DayPeriodsFormat],i[xt.DayPeriodsStandalone]],t);return Ko(s,e)}(t,r,i)[o<12?0:1];case En.Eras:return function t$(n,t){return Ko(Ws(n)[xt.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,s,n,t,e,i)}}function Bb(n){return function(t,e,i){const r=-1*i,s=Yo(e,on.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(n){case Br.Short:return(r>=0?"+":"")+ma(o,2,s)+ma(Math.abs(r%60),2,s);case Br.ShortGMT:return"GMT"+(r>=0?"+":"")+ma(o,1,s);case Br.Long:return"GMT"+(r>=0?"+":"")+ma(o,2,s)+":"+ma(Math.abs(r%60),2,s);case Br.Extended:return 0===i?"Z":(r>=0?"+":"")+ma(o,2,s)+":"+ma(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}function fO(n){return Nb(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function GA(n,t=!1){return function(e,i){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=fO(e),o=function g$(n){const t=Nb(n,0,1).getDay();return Nb(n,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return ma(r,n,Yo(i,on.MinusSign))}}function zb(n,t=!1){return function(e,i){return ma(fO(e).getFullYear(),n,Yo(i,on.MinusSign),t)}}const qA={};function pO(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function mO(n){return n instanceof Date&&!isNaN(n.valueOf())}const C$=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function QA(n){const t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}function bO(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Gu=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,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&&(hm(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 ${ai(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)(R(qo),R(Am),R(yt),R(Us))},n.\u0275dir=qe({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class F${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 zc=(()=>{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,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new F$(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),CO(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{CO(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(fr),R(qo))},n.\u0275dir=qe({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function CO(n,t){n.context.$implicit=t.item}let mr=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new N$,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){DO("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){DO("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)(R(Oi),R(fr))},n.\u0275dir=qe({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class N${constructor(){this.$implicit=null,this.ngIf=null}}function DO(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ai(t)}'.`)}class JA{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let qu=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),xm=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new JA(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(fr),R(qu,9))},n.\u0275dir=qe({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),SO=(()=>{class n{constructor(e,i,r){r._addDefault(new JA(e,i))}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(fr),R(qu,9))},n.\u0275dir=qe({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),MO=(()=>{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,s]=e.split("."),o=-1===r.indexOf("-")?void 0:Es.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${i}${s}`:i,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_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)(R(yt),R(Am),R(Us))},n.\u0275dir=qe({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})();function ga(n,t){return new nt(2100,!1)}class H${createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class z${createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const U$=new z$,j$=new H$;let Ga=(()=>{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(pm(e))return U$;if(EP(e))return j$;throw ga()}_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)(R(Xn,16))},n.\u0275pipe=ki({name:"async",type:n,pure:!1,standalone:!0}),n})(),EO=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw ga();return e.toUpperCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"uppercase",type:n,pure:!0,standalone:!0}),n})();const q$=new lt("DATE_PIPE_DEFAULT_TIMEZONE");let eM=(()=>{class n{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",r,s){var o;if(null==e||""===e||e!=e)return null;try{return d$(e,i,s||this.locale,null!==(o=null!=r?r:this.defaultTimezone)&&void 0!==o?o:void 0)}catch(a){throw ga()}}}return n.\u0275fac=function(e){return new(e||n)(R(fa,16),R(q$,24))},n.\u0275pipe=ki({name:"date",type:n,pure:!0,standalone:!0}),n})(),tM=(()=>{class n{constructor(e){this._locale=e}transform(e,i,r){if(!function nM(n){return!(null==n||""===n||n!=n)}(e))return null;r=r||this._locale;try{return function x$(n,t,e){return function KA(n,t,e,i,r,s,o=!1){let a="",c=!1;if(isFinite(n)){let d=function T$(n){let i,r,s,o,a,t=Math.abs(n)+"",e=0;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(r<0&&(r=s),r+=+t.slice(s+1),t=t.substring(0,s)):r<0&&(r=t.length),s=0;"0"===t.charAt(s);s++);if(s===(a=t.length))i=[0],r=1;else{for(a--;"0"===t.charAt(a);)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(t.charAt(s))}return r>22&&(i=i.splice(0,21),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(n);o&&(d=function k$(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(d));let f=t.minInt,v=t.minFrac,x=t.maxFrac;if(s){const et=s.match(C$);if(null===et)throw new Error(`${s} is not a valid digit info`);const We=et[1],ot=et[3],Tt=et[5];null!=We&&(f=QA(We)),null!=ot&&(v=QA(ot)),null!=Tt?x=QA(Tt):null!=ot&&v>x&&(x=v)}!function P$(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,r=i.length-n.integerLen;const s=Math.min(Math.max(t,r),e);let o=s+n.integerLen,a=i[o];if(o>0){i.splice(Math.max(n.integerLen,o));for(let v=o;v<i.length;v++)i[v]=0}else{r=Math.max(0,r),n.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let v=1;v<o;v++)i[v]=0}if(a>=5)if(o-1<0){for(let v=0;v>o;v--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let c=0!==s;const d=t+n.integerLen,f=i.reduceRight(function(v,x,B,se){return se[B]=(x+=v)<10?x:x-10,c&&(0===se[B]&&B>=d?se.pop():c=!1),x>=10?1:0},0);f&&(i.unshift(f),n.integerLen++)}(d,v,x);let B=d.digits,se=d.integerLen;const me=d.exponent;let Oe=[];for(c=B.every(et=>!et);se<f;se++)B.unshift(0);for(;se<0;se++)B.unshift(0);se>0?Oe=B.splice(se,B.length):(Oe=B,B=[0]);const Fe=[];for(B.length>=t.lgSize&&Fe.unshift(B.splice(-t.lgSize,B.length).join(""));B.length>t.gSize;)Fe.unshift(B.splice(-t.gSize,B.length).join(""));B.length&&Fe.unshift(B.join("")),a=Fe.join(Yo(e,i)),Oe.length&&(a+=Yo(e,r)+Oe.join("")),me&&(a+=Yo(e,on.Exponential)+"+"+me)}else a=Yo(e,on.Infinity);return a=n<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(n,function XA(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";e.posPre=a.substring(0,a.indexOf("#"));for(let f=0;f<c.length;f++){const v=c.charAt(f);"0"===v?e.minFrac=e.maxFrac=f+1:"#"===v?e.maxFrac=f+1:e.posSuf+=v}const d=a.split(",");if(e.gSize=d[1]?d[1].length:0,e.lgSize=d[2]||d[1]?(d[2]||d[1]).length:0,s){const f=r.length-e.posPre.length-e.posSuf.length,v=s.indexOf("#");e.negPre=s.substring(0,v).replace(/'/g,""),e.negSuf=s.slice(v+f).replace(/'/g,"")}else e.negPre=t+e.posPre,e.negSuf=e.posSuf;return e}(function WA(n,t){return Ws(n)[xt.NumberFormats][t]}(t,ao.Decimal),Yo(t,on.MinusSign)),t,on.Group,on.Decimal,e)}(function iM(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}(e),r,i)}catch(s){throw ga()}}}return n.\u0275fac=function(e){return new(e||n)(R(fa,16))},n.\u0275pipe=ki({name:"number",type:n,pure:!0,standalone:!0}),n})();let kO=(()=>{class n{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw ga();return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"slice",type:n,pure:!1,standalone:!0}),n})(),_a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const TO="browser";function $l(n){return n===TO}let s5=(()=>{class n{}return n.\u0275prov=dt({token:n,providedIn:"root",factory:()=>new o5(Re(Qt),window)}),n})();class o5{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function a5(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=PO(this.window.history)||PO(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function PO(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class RO{}class rM extends class l5 extends class WW{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function jW(n){Pb||(Pb=n)}(new rM)}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 c5(){return km=km||document.querySelector("base"),km?km.getAttribute("href"):null}();return null==e?null:function u5(n){jb=jb||document.createElement("a"),jb.setAttribute("href",n);const t=jb.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){km=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return bO(document.cookie,t)}}let jb,km=null;const IO=new lt("TRANSITION_ID"),h5=[{provide:Ab,useFactory:function d5(n,t,e){return()=>{e.get(Mb).donePromise.then(()=>{const i=$a(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[IO,Qt,Ii],multi:!0}];let p5=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const Wb=new lt("EventManagerPlugins");let $b=(()=>{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 s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(Re(Wb),Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class OO{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=$a().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let FO=(()=>{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=dt({token:n,factory:n.\u0275fac}),n})(),Tm=(()=>{class n extends FO{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}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(LO),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(LO))}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();function LO(n){$a().remove(n)}const sM={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/"},oM=/%COMP%/g;function Gb(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Gb(n,r,e):(r=r.replace(oM,n),e.push(r))}return e}function BO(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let qb=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new aM(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Js.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new y5(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Js.ShadowDom:return new w5(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Gb(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)(Re($b),Re(Tm),Re($h))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class aM{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(sM[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(zO(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(zO(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 s=sM[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=sM[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&(Es.DashCase|Es.Important)?t.style.setProperty(e,i,r&Es.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Es.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,BO(i)):this.eventManager.addEventListener(t,e,BO(i))}}function zO(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class y5 extends aM{constructor(t,e,i,r){super(t),this.component=i;const s=Gb(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function _5(n){return"_ngcontent-%COMP%".replace(oM,n)}(r+"-"+i.id),this.hostAttr=function v5(n){return"_nghost-%COMP%".replace(oM,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 w5 extends aM{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 s=Gb(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let C5=(()=>{class n extends OO{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)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const UO=["alt","control","meta","shift"],S5={"\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"},jO={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"},A5={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let M5=(()=>{class n extends OO{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$a().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(UO.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),o+=c+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function E5(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&&jO.hasOwnProperty(t)&&(t=jO[t]))}return S5[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),UO.forEach(s=>{s!=r&&(0,A5[s])(e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const P5=UI(HW,"browser",[{provide:Gh,useValue:TO},{provide:RI,useValue:function x5(){rM.makeCurrent()},multi:!0},{provide:Qt,useFactory:function T5(){return function O_(n){mp=n}(document),document},deps:[]}]),$O=new lt(""),GO=[{provide:Eb,useClass:class f5{addToWindow(t){ni.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ni.getAllAngularTestabilities=()=>t.getAllTestabilities(),ni.getAllAngularRootElements=()=>t.getAllRootElements(),ni.frameworkStabilizers||(ni.frameworkStabilizers=[]),ni.frameworkStabilizers.push(i=>{const r=ni.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(c){o=o||c,s--,0==s&&i(o)};r.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?$a().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},deps:[]},{provide:VI,useClass:OA,deps:[jt,FA,Eb]},{provide:OA,useClass:OA,deps:[jt,FA,Eb]}],qO=[{provide:Iu,useValue:"root"},{provide:aa,useFactory:function k5(){return new aa},deps:[]},{provide:Wb,useClass:C5,multi:!0,deps:[Qt,jt,Gh]},{provide:Wb,useClass:M5,multi:!0,deps:[Qt]},{provide:qb,useClass:qb,deps:[$b,Tm,$h]},{provide:Ol,useExisting:qb},{provide:FO,useExisting:Tm},{provide:Tm,useClass:Tm,deps:[Qt]},{provide:$b,useClass:$b,deps:[Wb,jt]},{provide:RO,useClass:p5,deps:[]},[]];let YO=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:$h,useValue:e.appId},{provide:IO,useExisting:$h},h5]}}}return n.\u0275fac=function(e){return new(e||n)(Re($O,12))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[...qO,...GO],imports:[_a,zW]}),n})(),cM=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:function(e){let i=null;return i=e?new e:function I5(){return new cM(Re(Qt))}(),i},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let Yu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(e){let i=null;return i=e?new(e||n):Re(QO),i},providedIn:"root"}),n})(),QO=(()=>{class n extends Yu{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case jn.NONE:return i;case jn.HTML:return jo(i,"HTML")?As(i):K_(this._doc,String(i)).toString();case jn.STYLE:return jo(i,"Style")?As(i):i;case jn.SCRIPT:if(jo(i,"Script"))return As(i);throw new Error("unsafe value used in a script context");case jn.URL:return jo(i,"URL")?As(i):Tu(String(i));case jn.RESOURCE_URL:if(jo(i,"ResourceURL"))return As(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 V_(n){return new hD(n)}(e)}bypassSecurityTrustStyle(e){return function xu(n){return new fD(n)}(e)}bypassSecurityTrustScript(e){return function wp(n){return new pD(n)}(e)}bypassSecurityTrustUrl(e){return function B_(n){return new mD(n)}(e)}bypassSecurityTrustResourceUrl(e){return function H_(n){return new N_(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:function(e){let i=null;return i=e?new e:function H5(n){return new QO(n.get(Qt))}(Re(Ii)),i},providedIn:"root"}),n})();function Ft(n){return null!=n&&"false"!=`${n}`}function Gr(n,t=0){return ZO(n)?Number(n):t}function ZO(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Yb(n){return Array.isArray(n)?n:[n]}function Pr(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Gl(n){return n instanceof yt?n.nativeElement:n}function At(...n){return pi(n,ru(n))}const{isArray:U5}=Array;function dM(n){return z(t=>function j5(n,t){return U5(t)?n(...t):n(t)}(n,t))}const W5=["addListener","removeListener"],$5=["addEventListener","removeEventListener"],G5=["on","off"];function di(n,t,e,i){if(I(e)&&(i=e,e=void 0),i)return di(n,t,e).pipe(dM(i));const[r,s]=function K5(n){return I(n.addEventListener)&&I(n.removeEventListener)}(n)?$5.map(o=>a=>n[o](t,a,e)):function q5(n){return I(n.addListener)&&I(n.removeListener)}(n)?W5.map(JO(n,t)):function Y5(n){return I(n.on)&&I(n.off)}(n)?G5.map(JO(n,t)):[];if(!r&&at(n))return lr(o=>di(o,t,e))(Wn(n));if(!r)throw new TypeError("Invalid event target");return new _e(o=>{const a=(...c)=>o.next(1<c.length?c:c[0]);return r(a),()=>s(a)})}function JO(n,t){return e=>i=>n[e](t,i)}class X5 extends Me{constructor(t,e){super()}schedule(t,e=0){return this}}const Kb={setInterval(n,t,...e){const{delegate:i}=Kb;return null!=i&&i.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Kb;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class hM extends X5{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 Kb.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;Kb.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(s){i=!0,r=s||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,Te(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const Pm={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Pm;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(s=>{e=void 0,n(s)});return new Me(()=>null==e?void 0:e(r))},requestAnimationFrame(...n){const{delegate:t}=Pm;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Pm;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...n)},delegate:void 0},fM={now:()=>(fM.delegate||Date).now(),delegate:void 0};class Rm{constructor(t,e=Rm.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Rm.now=fM.now;class pM extends Rm{constructor(t,e=Rm.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 Xb=new class Z5 extends pM{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Q5 extends hM{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Pm.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);t.actions.some(r=>r.id===e)||(Pm.cancelAnimationFrame(e),t._scheduled=void 0)}});let mM,J5=1;const Qb={};function eF(n){return n in Qb&&(delete Qb[n],!0)}const eG={setImmediate(n){const t=J5++;return Qb[t]=!0,mM||(mM=Promise.resolve()),mM.then(()=>eF(t)&&n()),t},clearImmediate(n){eF(n)}},{setImmediate:tG,clearImmediate:nG}=eG,Zb={setImmediate(...n){const{delegate:t}=Zb;return((null==t?void 0:t.setImmediate)||tG)(...n)},clearImmediate(n){const{delegate:t}=Zb;return((null==t?void 0:t.clearImmediate)||nG)(n)},delegate:void 0},gM=new class rG extends pM{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class iG extends hM{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Zb.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);t.actions.some(r=>r.id===e)||(Zb.clearImmediate(e),t._scheduled=void 0)}}),Jb=new pM(hM),sG=Jb;function _M(n=0,t,e=sG){let i=-1;return null!=t&&(Vg(t)?e=t:i=t),new _e(r=>{let s=function aG(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},s)})}function vM(n,t=Jb){return function oG(n){return A((t,e)=>{let i=!1,r=null,s=null,o=!1;const a=()=>{if(null==s||s.unsubscribe(),s=null,i){i=!1;const d=r;r=null,e.next(d)}o&&e.complete()},c=()=>{s=null,o&&e.complete()};t.subscribe(N(e,d=>{i=!0,r=d,s||Wn(n(d)).subscribe(s=N(e,a,c))},()=>{o=!0,(!i||!s||s.closed)&&e.complete()}))})}(()=>_M(n,t))}function ji(n,t){return A((e,i)=>{let r=0;e.subscribe(N(i,s=>n.call(t,s,r++)&&i.next(s)))})}function Ot(n){return A((t,e)=>{Wn(n).subscribe(N(e,()=>e.complete(),S)),!e.closed&&t.subscribe(e)})}function Im(...n){return function lG(){return uc(1)}()(pi(n,ru(n)))}function cs(...n){const t=ru(n);return A((e,i)=>{(t?Im(n,e,t):Im(n,e)).subscribe(i)})}let bM;try{bM="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){bM=!1}let Yh,Zi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?$l(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&&!bM)&&"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)(Re(Gh))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const tF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function nF(){if(Yh)return Yh;if("object"!=typeof document||!document)return Yh=new Set(tF),Yh;let n=document.createElement("input");return Yh=new Set(tF.filter(t=>(n.setAttribute("type",t),n.type===t))),Yh}let Om,ey,Xu,yM;function Ku(n){return function cG(){if(null==Om&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Om=!0}))}finally{Om=Om||!1}return Om}()?n:!!n.capture}function iF(){if(null==Xu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xu=!1,Xu;if("scrollBehavior"in document.documentElement.style)Xu=!0;else{const n=Element.prototype.scrollTo;Xu=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Xu}function Fm(){if("object"!=typeof document||!document)return 0;if(null==ey){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),ey=0,0===n.scrollLeft&&(n.scrollLeft=1,ey=0===n.scrollLeft?1:2),n.remove()}return ey}function rF(n){if(function uG(){if(null==yM){const n="undefined"!=typeof document?document.head:null;yM=!(!n||!n.createShadowRoot&&!n.attachShadow)}return yM}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function sF(){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 Qu(n){return n.composedPath?n.composedPath()[0]:n.target}function wM(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const dG=new lt("cdk-dir-doc",{providedIn:"root",factory:function hG(){return qn(Qt)}}),fG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let us=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new bt,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function pG(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?fG.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)(Re(dG,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Lm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const mG=["contentWrapper"],gG=["*"],oF=new lt("VIRTUAL_SCROLL_STRATEGY");let Nm=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new y,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 _e(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(vM(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):At()}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(ji(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Gl(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>di(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)(Re(jt),Re(Zi),Re(Qt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aF=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new y,this._elementScrolled=new _e(o=>this.ngZone.runOutsideAngular(()=>di(this.elementRef.nativeElement,"scroll").pipe(Ot(this._destroyed)).subscribe(o)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Fm()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Fm()?e.left=e.right:1==Fm()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;iF()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const o=this.dir&&"rtl"==this.dir.value;return"start"==e?e=o?r:i:"end"==e&&(e=o?i:r),o&&2==Fm()?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:o&&1==Fm()?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Nm),R(jt),R(us,8))},n.\u0275dir=qe({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})();const vG=new lt("VIRTUAL_SCROLLABLE");let lF=(()=>{class n extends aF{constructor(e,i,r,s){super(e,i,r,s)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Nm),R(jt),R(us,8))},n.\u0275dir=qe({type:n,features:[_t]}),n})(),Vm=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new y,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.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,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(vM(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)(Re(Zi),Re(jt),Re(Qt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wG="undefined"!=typeof requestAnimationFrame?Xb:gM;let CG=(()=>{class n extends lF{constructor(e,i,r,s,o,a,c,d){super(e,a,r,o),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=s,this.scrollable=d,this._platform=qn(Zi),this._detachedSubject=new y,this._renderedRangeSubject=new y,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new _e(f=>this._scrollStrategy.scrolledIndexChange.subscribe(v=>Promise.resolve().then(()=>this.ngZone.run(()=>f.next(v))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Me.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ft(e)}ngOnInit(){!this._platform.isBrowser||(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(cs(null),vM(0,wG)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ot(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function yG(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const s="horizontal"==this.orientation,o=s?"X":"Y";let c=`translate${o}(${Number((s&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(c+=` translate${o}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(null!=e?e:"horizontal"===this.orientation?"start":"top")-this.measureViewportOffset())}measureViewportOffset(e){var i;let r;const s="left",o="right",a="rtl"==(null===(i=this.dir)||void 0===i?void 0:i.value);r="start"==e?a?o:s:"end"==e?a?s:o:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(jt),R(oF,8),R(us,8),R(Nm),R(Vm),R(vG,8))},n.\u0275cmp=Ct({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Hn(mG,7),2&e){let r;Dt(r=St())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&Kt("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[kt([{provide:aF,useFactory:(t,e)=>t||e,deps:[lF,n]}]),_t],ngContentSelectors:gG,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0,1),Vn(2),ee(),ft(3,"div",2)),2&e&&(be(3),js("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),Kh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})(),ty=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Lm,Kh,Lm,Kh]}),n})();function ny(n,t=we){return n=null!=n?n:DG,A((e,i)=>{let r,s=!0;e.subscribe(N(i,o=>{const a=t(o);(s||!n(r,a))&&(s=!1,r=a,i.next(o))}))})}function DG(n,t){return n===t}function Ci(n){return n<=0?()=>Ns:A((t,e)=>{let i=0;t.subscribe(N(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function CM(n){return z(()=>n)}function DM(n,t){return t?e=>Im(t.pipe(Ci(1),function SG(){return A((n,t)=>{n.subscribe(N(t,S))})}()),e.pipe(DM(n))):lr((e,i)=>n(e,i).pipe(Ci(1),CM(e)))}function _i(n,t,e){const i=I(n)||t||e?{next:n,error:t,complete:e}:n;return i?A((r,s)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let a=!0;r.subscribe(N(s,c=>{var d;null===(d=i.next)||void 0===d||d.call(i,c),s.next(c)},()=>{var c;a=!1,null===(c=i.complete)||void 0===c||c.call(i),s.complete()},c=>{var d;a=!1,null===(d=i.error)||void 0===d||d.call(i,c),s.error(c)},()=>{var c,d;a&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(d=i.finalize)||void 0===d||d.call(i)}))}):we}function ds(n,t){return A((e,i)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&i.complete();e.subscribe(N(i,c=>{null==r||r.unsubscribe();let d=0;const f=s++;Wn(n(c,f)).subscribe(r=N(i,v=>i.next(t?t(c,v,f,d++):v),()=>{r=null,a()}))},()=>{o=!0,a()}))})}const{isArray:AG}=Array,{getPrototypeOf:MG,prototype:EG,keys:xG}=Object;function cF(n){if(1===n.length){const t=n[0];if(AG(t))return{args:t,keys:null};if(function kG(n){return n&&"object"==typeof n&&MG(n)===EG}(t)){const e=xG(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}function uF(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function qa(...n){const t=ru(n),e=Cf(n),{args:i,keys:r}=cF(n);if(0===i.length)return pi([],t);const s=new _e(function TG(n,t,e=we){return i=>{dF(t,()=>{const{length:r}=n,s=new Array(r);let o=r,a=r;for(let c=0;c<r;c++)dF(t,()=>{const d=pi(n[c],t);let f=!1;d.subscribe(N(i,v=>{s[c]=v,f||(f=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,t,r?o=>uF(r,o):we));return e?s.pipe(dM(e)):s}function dF(n,t,e){n?ea(e,n,t):t()}class SM extends y{constructor(t=1/0,e=1/0,i=fM){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;e||(i.push(t),!r&&i.push(s.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,s=r.slice();for(let o=0;o<s.length&&!t.closed;o+=i?1:2)t.next(s[o]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,s=(r?1:2)*t;if(t<1/0&&s<i.length&&i.splice(0,i.length-s),!r){const o=e.now();let a=0;for(let c=1;c<i.length&&i[c]<=o;c+=2)a=c;a&&i.splice(0,a+1)}}}class gr extends y{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 AM(){return A((n,t)=>{let e=null;n._refCount++;const i=N(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class MM extends _e{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,D(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 Me;const e=this.getSubject();t.add(this.source.subscribe(N(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Me.EMPTY)}return t}refCount(){return AM()(this)}}function Bm(n){return!!n&&(n instanceof _e||I(n.lift)&&I(n.subscribe))}class EM{}function iy(n){return n&&"function"==typeof n.connect&&!(n instanceof MM)}class hF extends EM{constructor(t){super(),this._data=t}connect(){return Bm(this._data)?this._data:At(this._data)}disconnect(){}}class fF{applyChanges(t,e,i,r,s){t.forEachOperation((o,a,c)=>{let d,f;if(null==o.previousIndex){const v=i(o,a,c);d=e.createEmbeddedView(v.templateRef,v.context,v.index),f=1}else null==c?(e.remove(a),f=3):(d=e.get(a),e.move(d,c),f=2);s&&s({context:null==d?void 0:d.context,operation:f,record:o})})}detach(){}}class ry{constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new y,e&&e.length&&(t?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(s=>this._markSelected(s)),e.filter(s=>!i.has(s)).forEach(s=>this._unmarkSelected(s));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,t))return!0;return!1}return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let PG=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hm=new lt("_ViewRepeater"),RG=[[["caption"]],[["colgroup"],["col"]]],IG=["caption","colgroup, col"];function xM(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=Ft(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Xh=new lt("CDK_TABLE");let Qh=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Zh=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),sy=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class NG{}const VG=xM(NG);let ql=(()=>{class n extends VG{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=Ft(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)(R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,Qh,5),Dn(r,Zh,5),Dn(r,sy,5)),2&e){let s;Dt(s=St())&&(i.cell=s.first),Dt(s=St())&&(i.headerCell=s.first),Dt(s=St())&&(i.footerCell=s.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[kt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),_t]}),n})();class kM{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}}let TM=(()=>{class n extends kM{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(R(ql),R(yt))},n.\u0275dir=qe({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[_t]}),n})(),PM=(()=>{class n extends kM{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const s=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(R(ql),R(yt))},n.\u0275dir=qe({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[_t]}),n})();class gF{constructor(){this.tasks=[],this.endTasks=[]}}const RM=new lt("_COALESCED_STYLE_SCHEDULER");let _F=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new y}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 gF,this._getScheduleObservable().pipe(Ot(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new gF;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?pi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Ci(1))}}return n.\u0275fac=function(e){return new(e||n)(Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),IM=(()=>{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 zm?e.headerCell.template:this instanceof Um?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo))},n.\u0275dir=qe({type:n,features:[Zt]}),n})();class BG extends IM{}const HG=xM(BG);let zm=(()=>{class n extends HG{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo),R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[_t,Zt]}),n})();class zG extends IM{}const UG=xM(zG);let Um=(()=>{class n extends UG{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo),R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[_t,Zt]}),n})(),oy=(()=>{class n extends IM{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(R(fr),R(qo),R(Xh,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[_t]}),n})(),Yl=(()=>{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)(R(Oi))},n.\u0275dir=qe({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),OM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({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&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),LM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({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&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),ay=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const vF=["top","bottom","left","right"];class jG{constructor(t,e,i,r,s=!0,o=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=s,this._needsPositionStickyOnElement=o,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 s=0;s<r.children.length;s++)i.push(r.children[s])}this._coalescedStyleScheduler.schedule(()=>{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(x=>x)&&!i.some(x=>x))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,a=this._getCellWidths(s,r),c=this._getStickyStartColumnPositions(a,e),d=this._getStickyEndColumnPositions(a,i),f=e.lastIndexOf(!0),v=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const x="rtl"===this.direction,B=x?"right":"left",se=x?"left":"right";for(const me of t)for(let Oe=0;Oe<o;Oe++){const Fe=me.children[Oe];e[Oe]&&this._addStickyStyle(Fe,B,c[Oe],Oe===f),i[Oe]&&this._addStickyStyle(Fe,se,d[Oe],Oe===v)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===f?[]:a.slice(0,f+1).map((me,Oe)=>e[Oe]?me:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===v?[]:a.slice(v).map((me,Oe)=>i[Oe+v]?me:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],a=[],c=[];for(let f=0,v=0;f<r.length;f++){if(!s[f])continue;o[f]=v;const x=r[f];c[f]=this._isNativeHtmlTable?Array.from(x.children):[x];const B=x.getBoundingClientRect().height;v+=B,a[f]=B}const d=s.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var f,v;for(let x=0;x<r.length;x++){if(!s[x])continue;const B=o[x],se=x===d;for(const me of c[x])this._addStickyStyle(me,i,B,se)}"top"===i?null===(f=this._positionListener)||void 0===f||f.stickyHeaderRowsUpdated({sizes:a,offsets:o,elements:c}):null===(v=this._positionListener)||void 0===v||v.stickyFooterRowsUpdated({sizes:a,offsets:o,elements:c})})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const i=t.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{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]);vF.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 vF)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 s=0;s<r.length;s++)i.push(r[s].getBoundingClientRect().width);return this._cachedCellWidths=i,i}_getStickyStartColumnPositions(t,e){const i=[];let r=0;for(let s=0;s<t.length;s++)e[s]&&(i[s]=r,r+=t[s]);return i}_getStickyEndColumnPositions(t,e){const i=[];let r=0;for(let s=t.length;s>0;s--)e[s]&&(i[s]=r,r+=t[s]);return i}}const NM=new lt("CDK_SPL");let ly=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(yt))},n.\u0275dir=qe({type:n,selectors:[["","rowOutlet",""]]}),n})(),cy=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(yt))},n.\u0275dir=qe({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),uy=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(yt))},n.\u0275dir=qe({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),dy=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(yt))},n.\u0275dir=qe({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),hy=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f,v,x,B){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=o,this._platform=c,this._viewRepeater=d,this._coalescedStyleScheduler=f,this._viewportRuler=v,this._stickyPositioningListener=x,this._ngZone=B,this._onDestroy=new y,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 bt,this.viewChange=new gr({start:0,end:Number.MAX_VALUE}),s||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=Ft(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ft(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(Ot(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(),iy(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,s,o)=>this._getEmbeddedViewArgs(r.item,o),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&&jt.isInAngularZone()?this._ngZone.onStable.pipe(Ci(1),Ot(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 s=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,s,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const s=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(o=>o.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((s,o)=>{this._addStickyColumnStyles([s],this._headerRowDefs[o])}),this._rowDefs.forEach(s=>{const o=[];for(let a=0;a<i.length;a++)this._renderRows[a].rowDef===s&&o.push(i[a]);this._addStickyColumnStyles(o,s)}),r.forEach((s,o)=>{this._addStickyColumnStyles([s],this._footerRowDefs[o])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r<this._data.length;r++){let s=this._data[r];const o=this._getRenderRowsForData(s,r,i.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(let a=0;a<o.length;a++){let c=o[a];const d=this._cachedRenderRowsMap.get(c.data);d.has(c.rowDef)?d.get(c.rowDef).push(c):d.set(c.rowDef,[c]),e.push(c)}}return e}_getRenderRowsForData(e,i,r){return this._getRowDefs(e,i).map(o=>{const a=r&&r.has(o)?r.get(o):[];if(a.length){const c=a.shift();return c.dataIndex=i,c}return{data:e,rowDef:o,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),fy(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=fy(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=fy(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=fy(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(o,a)=>o||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(e,!1);return s&&this._forceRenderFooterRows(),i||r||s}_switchDataSource(e){this._data=[],iy(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;iy(this.dataSource)?e=this.dataSource.connect(this):Bm(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=At(this.dataSource)),this._renderChangeSubscription=e.pipe(Ot(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)),s=r.map(a=>a.sticky),o=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,s,o,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r<e.viewContainer.length;r++){const s=e.viewContainer.get(r);i.push(s.rootNodes[0])}return i}_getRowDefs(e,i){if(1==this._rowDefs.length)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(s=>!s.when||s.when(i,e));else{let s=this._rowDefs.find(o=>o.when&&o.when(i,e))||this._defaultRowDef;s&&r.push(s)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,s={}){const o=e.viewContainer.createEmbeddedView(i.template,s,r);return this._renderCellTemplateForItem(i,s),o}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Yl.mostRecentCellOutlet&&Yl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i<r;i++){const o=e.get(i).context;o.count=r,o.first=0===i,o.last=i===r-1,o.even=i%2==0,o.odd=!o.even,this.multiTemplateDataRows?(o.dataIndex=this._renderRows[i].dataIndex,o.renderIndex=i):o.index=this._renderRows[i].dataIndex}}_getCellTemplates(e){return e&&e.columns?Array.from(e.columns,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 s=this._document.createElement(r.tag);s.setAttribute("role","rowgroup");for(const o of r.outlets)s.appendChild(o.elementRef.nativeElement);e.appendChild(s)}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 jG(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:At()).pipe(Ot(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 s=r.createEmbeddedView(e.templateRef),o=s.rootNodes[0];1===s.rootNodes.length&&(null==o?void 0:o.nodeType)===this._document.ELEMENT_NODE&&(o.setAttribute("role","row"),o.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return n.\u0275fac=function(e){return new(e||n)(R(qo),R(Xn),R(yt),ys("role"),R(us,8),R(Qt),R(Zi),R(Hm),R(RM),R(Vm),R(NM,12),R(jt,8))},n.\u0275cmp=Ct({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,ay,5),Dn(r,ql,5),Dn(r,oy,5),Dn(r,zm,5),Dn(r,Um,5)),2&e){let s;Dt(s=St())&&(i._noDataRow=s.first),Dt(s=St())&&(i._contentColumnDefs=s),Dt(s=St())&&(i._contentRowDefs=s),Dt(s=St())&&(i._contentHeaderRowDefs=s),Dt(s=St())&&(i._contentFooterRowDefs=s)}},viewQuery:function(e,i){if(1&e&&(Hn(ly,7),Hn(cy,7),Hn(uy,7),Hn(dy,7)),2&e){let r;Dt(r=St())&&(i._rowOutlet=r.first),Dt(r=St())&&(i._headerRowOutlet=r.first),Dt(r=St())&&(i._footerRowOutlet=r.first),Dt(r=St())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&Kt("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[kt([{provide:Xh,useExisting:n},{provide:Hm,useClass:fF},{provide:RM,useClass:_F},{provide:NM,useValue:null}])],ngContentSelectors:IG,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Ui(RG),Vn(0),Vn(1,1),oo(2,0)(3,1)(4,2)(5,3))},dependencies:[ly,cy,uy,dy],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function fy(n,t){return n.concat(Array.from(t))}let $G=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[ty]}),n})();function va(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function my(n,t=Jb){return A((e,i)=>{let r=null,s=null,o=null;const a=()=>{if(r){r.unsubscribe(),r=null;const d=s;s=null,i.next(d)}};function c(){const d=o+n,f=t.now();if(f<d)return r=this.schedule(void 0,d-f),void i.add(r);a()}e.subscribe(N(i,d=>{s=d,o=t.now(),r||(r=t.schedule(c,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{s=r=null}))})}function DF(n){return ji((t,e)=>n<=e)}let SF=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t8=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Gl(e);return new _e(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new y,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(Re(SF))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AF=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new bt,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Gr(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(my(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(R(t8),R(yt),R(jt))},n.\u0275dir=qe({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),VM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[SF]}),n})(),n8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const MF=new Set;let Jh,i8=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):s8}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function r8(n){if(!MF.has(n))try{Jh||(Jh=document.createElement("style"),Jh.setAttribute("type","text/css"),document.head.appendChild(Jh)),Jh.sheet&&(Jh.sheet.insertRule(`@media ${n} {body{ }}`,0),MF.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function s8(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let jc=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new y}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return EF(Yb(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=qa(EF(Yb(e)).map(o=>this._registerQuery(o).observable));return s=Im(s.pipe(Ci(1)),s.pipe(DF(1),my(0))),s.pipe(z(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:c,query:d})=>{a.matches=a.matches||c,a.breakpoints[d]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new _e(o=>{const a=c=>this._zone.run(()=>o.next(c));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(cs(i),z(({matches:o})=>({query:e,matches:o})),Ot(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(Re(i8),Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function EF(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Za_XSmall="(max-width: 599.98px)",Za_Small="(min-width: 600px) and (max-width: 959.98px)";function gy(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const kF="cdk-describedby-message",_y="cdk-describedby-host";let BM=0,HM=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+BM++,this._document=e,this._id=qn($h)+"-"+BM++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=zM(i,r);"string"!=typeof i?(TF(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){var s;if(!i||!this._isElementNode(e))return;const o=zM(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(s=this._messagesContainer)||void 0===s?void 0:s.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${_y}="${this._id}"]`);for(let r=0;r<i.length;r++)this._removeCdkDescribedByReferenceIds(i[r]),i[r].removeAttribute(_y);null===(e=this._messagesContainer)||void 0===e||e.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");TF(r,this._id),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(zM(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i,r;null===(r=null===(i=this._messageRegistry.get(e))||void 0===i?void 0:i.messageElement)||void 0===r||r.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let s=0;s<i.length;s++)i[s].remove();const r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){const i=gy(e,"aria-describedby").filter(r=>0!=r.indexOf(kF));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function o8(n,t,e){const i=gy(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(_y,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function a8(n,t,e){const r=gy(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(_y)}_isElementDescribedByMessage(e,i){const r=gy(e,"aria-describedby"),s=this._messageRegistry.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function zM(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function TF(n,t){n.id||(n.id=`${kF}-${t}-${BM++}`)}class UM extends class l8{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new y,this._typeaheadSubscription=Me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new y,this.change=new y,t instanceof zh&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(_i(e=>this._pressedLetters.push(e)),my(t),ji(()=>this._pressedLetters.length>0),z(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||va(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof zh?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let c8=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function d8(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 u8(n){try{return n.frameElement}catch(t){return null}}(function b8(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===RF(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=RF(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _8(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!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function v8(n){return!function f8(n){return function m8(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function h8(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function p8(n){return function g8(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||PF(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function PF(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function RF(n){if(!PF(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class y8{constructor(t,e,i,r,s=!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,s||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<e.length;i++){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=e.length-1;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(Ci(1)).subscribe(t)}}let w8=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new y8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(Re(c8),Re(jt),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C8=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Ft(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Ft(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=sF(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(w8),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Zt]}),n})();function jM(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function WM(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 D8=new lt("cdk-input-modality-detector-options"),S8={ignoreKeys:[18,17,224,91,16]},ef=Ku({passive:!0,capture:!0});let A8=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new gr(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,c;null!==(c=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)&&void 0!==c&&c.some(d=>d===o.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Qu(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(jM(o)?"keyboard":"mouse"),this._mostRecentTarget=Qu(o))},this._onTouchstart=o=>{WM(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Qu(o))},this._options=Object.assign(Object.assign({},S8),s),this.modalityDetected=this._modality.pipe(DF(1)),this.modalityChanged=this.modalityDetected.pipe(ny()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ef),r.addEventListener("mousedown",this._onMousedown,ef),r.addEventListener("touchstart",this._onTouchstart,ef)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ef),document.removeEventListener("mousedown",this._onMousedown,ef),document.removeEventListener("touchstart",this._onTouchstart,ef))}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi),Re(jt),Re(Qt),Re(D8,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const M8=new lt("liveAnnouncerElement",{providedIn:"root",factory:function E8(){return null}}),x8=new lt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let OF=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s<i.length;s++)i[s].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),this._document.body.appendChild(r),r}}return n.\u0275fac=function(e){return new(e||n)(Re(M8,8),Re(jt),Re(Qt),Re(x8,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const k8=new lt("cdk-focus-monitor-default-options"),vy=Ku({passive:!0,capture:!0});let ba=(()=>{class n{constructor(e,i,r,s,o){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 y,this._rootNodeFocusAndBlurListener=a=>{for(let d=Qu(a);d;d=d.parentElement)"focus"===a.type?this._onFocus(a,d):this._onBlur(a,d)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Gl(e);if(!this._platform.isBrowser||1!==r.nodeType)return At(null);const s=rF(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new y,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Gl(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 s=Gl(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),"function"==typeof s.focus&&s.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),s=Qu(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),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,vy),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,vy)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ot(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!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,vy),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,vy),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,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,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 s=e.labels;if(s)for(let o=0;o<s.length;o++)if(s[o].contains(i))return!0;return!1}}return n.\u0275fac=function(e){return new(e||n)(Re(jt),Re(Zi),Re(A8),Re(Qt,8),Re(k8,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),FF=(()=>{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new bt}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(ba))},n.\u0275dir=qe({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const LF="cdk-high-contrast-black-on-white",NF="cdk-high-contrast-white-on-black",$M="cdk-high-contrast-active";let VF=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=qn(jc).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,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){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($M,LF,NF),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add($M,LF):2===i&&e.add($M,NF)}}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GM=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(Re(VF))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[VM]}),n})(),T8=(()=>{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})(),P8=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const I8=new lt("mat-sanity-checks",{providedIn:"root",factory:function R8(){return!0}});let bn=(()=>{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!wM()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(Re(VF),Re(I8,8),Re(Qt))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Lm,Lm]}),n})();function Ql(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ft(t)}}}function Zl(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 Jl(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ft(t)}}}function Ym(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Gr(e):this.defaultTabIndex}}}function qM(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}function O8(n){return class extends n{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new _e(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()}}}const YM=new lt("MAT_DATE_LOCALE",{providedIn:"root",factory:function F8(){return qn(fa)}});class sr{constructor(){this._localeChanges=new y,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const Ja=new lt("mat-date-formats");let Zu=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function HF(n,t,e="mat"){n.changes.pipe(cs(n)).subscribe(({length:i})=>{Km(t,`${e}-2-line`,!1),Km(t,`${e}-3-line`,!1),Km(t,`${e}-multi-line`,!1),2===i||3===i?Km(t,`${e}-${i}-line`,!0):i>3&&Km(t,`${e}-multi-line`,!0)})}function Km(n,t,e){n.nativeElement.classList.toggle(t,e)}let zF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn,bn]}),n})();class L8{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 UF={enterDuration:225,exitDuration:150},XM=Ku({passive:!0}),jF=["mousedown","touchstart"],WF=["mouseup","mouseleave","touchend","touchcancel"];class $F{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=Gl(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},UF),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function V8(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,c=e-r.top,d=s.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=a-o+"px",f.style.top=c-o+"px",f.style.height=2*o+"px",f.style.width=2*o+"px",null!=i.color&&(f.style.backgroundColor=i.color),f.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(f);const v=window.getComputedStyle(f),B=v.transitionDuration,se="none"===v.transitionProperty||"0s"===B||"0s, 0s"===B,me=new L8(this,f,i,se);f.style.transform="scale3d(1, 1, 1)",me.state=0,i.persistent||(this._mostRecentTransientRipple=me);let Oe=null;return!se&&(d||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Fe=()=>this._finishRippleTransition(me),et=()=>this._destroyRipple(me);f.addEventListener("transitionend",Fe),f.addEventListener("transitioncancel",et),Oe={onTransitionEnd:Fe,onTransitionCancel:et}}),this._activeRipples.set(me,Oe),(se||!d)&&this._finishRippleTransition(me),me}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i=Object.assign(Object.assign({},UF),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=Gl(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jF))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(WF),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=jM(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!WM(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{!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,XM)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(jF.forEach(t=>{this._triggerElement.removeEventListener(t,this,XM)}),this._pointerUpEventsRegistered&&WF.forEach(t=>{this._triggerElement.removeEventListener(t,this,XM)}))}}const GF=new lt("mat-ripple-global-options");let ec=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new $F(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)(R(yt),R(jt),R(Zi),R(GF,8),R(Ts,8))},n.\u0275dir=qe({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Kt("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})(),Xm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn,bn]}),n})(),B8=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(R(Ts,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&Kt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),qF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn]}),n})();const H8=[[["caption"]],[["colgroup"],["col"]]],z8=["caption","colgroup, col"];let QM=(()=>{class n extends hy{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=Ct({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&Kt("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[kt([{provide:Hm,useClass:fF},{provide:hy,useExisting:n},{provide:Xh,useExisting:n},{provide:RM,useClass:_F},{provide:NM,useValue:null}]),_t],ngContentSelectors:z8,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Ui(H8),Vn(0),Vn(1,1),oo(2,0)(3,1)(4,2)(5,3))},dependencies:[ly,cy,uy,dy],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})(),ZM=(()=>{class n extends Qh{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matCellDef",""]],features:[kt([{provide:Qh,useExisting:n}]),_t]}),n})(),JM=(()=>{class n extends Zh{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matHeaderCellDef",""]],features:[kt([{provide:Zh,useExisting:n}]),_t]}),n})(),eE=(()=>{class n extends ql{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=qe({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[kt([{provide:ql,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),_t]}),n})(),tE=(()=>{class n extends TM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[_t]}),n})(),nE=(()=>{class n extends PM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[_t]}),n})(),YF=(()=>{class n extends zm{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[kt([{provide:zm,useExisting:n}]),_t]}),n})(),KF=(()=>{class n extends oy{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[kt([{provide:oy,useExisting:n}]),_t]}),n})(),XF=(()=>{class n extends OM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[kt([{provide:OM,useExisting:n}]),_t],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),QF=(()=>{class n extends LM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[kt([{provide:LM,useExisting:n}]),_t],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[Yl],encapsulation:2}),n})(),Q8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[$G,bn,bn]}),n})();class J8 extends EM{constructor(t=[]){super(),this._renderData=new gr([]),this._filter=new gr(""),this._internalPageChanges=new y,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(ZO(r)){const s=Number(r);return s<9007199254740991?s:r}return r},this.sortData=(e,i)=>{const r=i.active,s=i.direction;return r&&""!=s?e.sort((o,a)=>{let c=this.sortingDataAccessor(o,r),d=this.sortingDataAccessor(a,r);const f=typeof c,v=typeof d;f!==v&&("number"===f&&(c+=""),"number"===v&&(d+=""));let x=0;return null!=c&&null!=d?c>d?x=1:c<d&&(x=-1):null!=c?x=1:null!=d&&(x=-1),x*("asc"==s?1:-1)}):e},this.filterPredicate=(e,i)=>{const r=Object.keys(e).reduce((o,a)=>o+e[a]+"\u25ec","").toLowerCase(),s=i.trim().toLowerCase();return-1!=r.indexOf(s)},this._data=new gr(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?Ni(this._sort.sortChange,this._sort.initialized):At(null),i=this._paginator?Ni(this._paginator.page,this._internalPageChanges,this._paginator.initialized):At(null),s=qa([this._data,this._filter]).pipe(z(([c])=>this._filterData(c))),o=qa([s,e]).pipe(z(([c])=>this._orderData(c))),a=qa([o,i]).pipe(z(([c])=>this._pageData(c)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=a.subscribe(c=>this._renderData.next(c))}_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}}class e6 extends J8{}class iE extends e6{_updateChangeSubscription(){var t;this.initStreams();const e=this._sort,i=this._paginator,r=this._internalPageChanges,s=this._filter,o=this._renderData,a=e?Ni(e.sortChange,e.initialized):At(null),c=i?Ni(i.page,r,i.initialized):At(null),f=qa([this._data,s]).pipe(z(([B])=>this._filterData(B))),v=qa([f,a]).pipe(z(([B])=>this._orderData(B))),x=qa([v,c]).pipe(z(([B])=>this._pageData(B)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=new Me,this._renderChangesSubscription.add(x.subscribe(B=>this.dataToRender$.next(B))),this._renderChangesSubscription.add(this.dataOfRange$.subscribe(B=>o.next(B)))}initStreams(){this.streamsReady||(this.dataToRender$=new SM(1),this.dataOfRange$=new SM(1),this.streamsReady=!0)}}let t6=(()=>{class n{constructor(){this.indexChange=new y,this.stickyChange=new y,this.renderedRangeStream=new gr({start:0,end:0}),this.scrolledIndexChange=this.indexChange.pipe(ny()),this._dataLength=0}get dataLength(){return this._dataLength}set dataLength(e){this._dataLength=e,this.onDataLengthChanged()}attach(e){this.viewport=e,this.viewport.renderedRangeStream.subscribe(this.renderedRangeStream),this.onDataLengthChanged()}detach(){this.indexChange.complete(),this.stickyChange.complete(),this.renderedRangeStream.complete()}onContentScrolled(){this.updateContent()}onDataLengthChanged(){this.viewport&&this.viewport.setTotalContentSize(this.dataLength*this.rowHeight+this.headerHeight+this.footerHeight),this.updateContent()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(e,i){!this.viewport||!this.rowHeight||this.viewport.scrollToOffset((e-1)*this.rowHeight+this.headerHeight,i)}setConfig(e){const{rowHeight:i,headerHeight:r,footerHeight:s,bufferMultiplier:o}=e;this.rowHeight===i&&this.headerHeight===r&&this.footerHeight===s&&this.bufferMultiplier===o||(this.rowHeight=i,this.headerHeight=r,this.footerHeight=s,this.bufferMultiplier=o,this.onDataLengthChanged())}updateContent(){if(!this.viewport||!this.rowHeight)return;const e=this.viewport.getOffsetToRenderedContentStart(),i=e/this.rowHeight,r=Math.ceil(this.viewport.getViewportSize()/this.rowHeight),s=Math.ceil(r*this.bufferMultiplier),o=i+r+2*s,a=e+s*this.rowHeight,c=this.viewport.measureScrollOffset(),f=(c-a)/this.rowHeight;if(this.indexChange.next(c/this.rowHeight),Math.abs(f)<1)return this.viewport.setRenderedContentOffset(e),void this.viewport.setRenderedRange({start:i,end:o});if(0===e&&f<0)return this.viewport.setRenderedContentOffset(e),void this.viewport.setRenderedRange({start:i,end:o});const B=Math.sign(f)*Math.floor(Math.abs(f)),se=Math.max(0,e+B*this.rowHeight);this.viewport.setRenderedContentOffset(se);const me=Math.max(0,i+B);this.viewport.setRenderedRange({start:me,end:me+r+2*s}),this.stickyChange.next(se)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();function n6(n){return n.scrollStrategy}const ZF=".mat-header-row .mat-table-sticky, .mat-header-row.mat-table-sticky",JF=".mat-footer-row .mat-table-sticky, .mat-header-row.mat-table-sticky";let i6=(()=>{class n{constructor(e){this.zone=e,this.destroyed$=new y,this.rowHeight=48,this.headerEnabled=true,this.headerHeight=56,this.footerEnabled=false,this.footerHeight=48,this.bufferMultiplier=.7,this.scrollStrategy=new t6,this.dataSourceChanges=new y,this.resetStickyPositions=new y}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete(),this.dataSourceChanges.complete()}isStickyEnabled(){return!!this.scrollStrategy.viewport&&this.table._headerRowDefs.map(e=>e.sticky).reduce((e,i)=>e&&i,!0)}ngAfterContentInit(){const e=this.table._switchDataSource;this.table._switchDataSource=r=>{e.call(this.table,r),this.connectDataSource(r)};const i=this.table.updateStickyColumnStyles;this.table.updateStickyColumnStyles=()=>{const r=this.table._stickyColumnStylesNeedReset;i.call(this.table),r&&this.resetStickyPositions.next()},this.connectDataSource(this.table.dataSource),qa([this.scrollStrategy.stickyChange,this.resetStickyPositions.pipe(cs(void 0),DM(()=>this.getScheduleObservable()),_i(()=>{this.stickyPositions=null}))]).pipe(ji(()=>this.isStickyEnabled()),Ot(this.destroyed$)).subscribe(([r])=>{this.stickyPositions||this.initStickyPositions(),this.setSticky(r)})}connectDataSource(e){if(this.dataSourceChanges.next(),!(e instanceof iE))throw new Error("[tvsItemSize] requires TableVirtualScrollDataSource be set as [dataSource] of [mat-table]");e.dataToRender$.pipe(ny(),Ot(this.dataSourceChanges),Ot(this.destroyed$),_i(i=>this.scrollStrategy.dataLength=i.length),ds(i=>this.scrollStrategy.renderedRangeStream.pipe(z(({start:r,end:s})=>"number"!=typeof r||"number"!=typeof s?i:i.slice(r,s))))).subscribe(i=>{this.zone.run(()=>{e.dataOfRange$.next(i)})})}ngOnChanges(){this.scrollStrategy.setConfig({rowHeight:+this.rowHeight||48,headerHeight:this.headerEnabled?+this.headerHeight||56:0,footerHeight:this.footerEnabled?+this.footerHeight||48:0,bufferMultiplier:+this.bufferMultiplier||.7})}setSticky(e){this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(ZF).forEach(i=>{const r=i.parentElement;let s=0;this.stickyPositions.has(r)&&(s=this.stickyPositions.get(r)),i.style.top=s-e+"px"}),this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(JF).forEach(i=>{const r=i.parentElement;let s=0;this.stickyPositions.has(r)&&(s=this.stickyPositions.get(r)),i.style.bottom=`${-s+e}px`})}initStickyPositions(){this.stickyPositions=new Map,this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(ZF).forEach(e=>{const i=e.parentElement;this.stickyPositions.has(i)||this.stickyPositions.set(i,i.offsetTop)}),this.scrollStrategy.viewport.elementRef.nativeElement.querySelectorAll(JF).forEach(e=>{const i=e.parentElement;this.stickyPositions.has(i)||this.stickyPositions.set(i,-i.offsetTop)})}getScheduleObservable(){return this.zone.isStable?pi(Promise.resolve(void 0)):this.zone.onStable.pipe(Ci(1))}}return n.\u0275fac=function(e){return new(e||n)(R(jt))},n.\u0275dir=qe({type:n,selectors:[["cdk-virtual-scroll-viewport","tvsItemSize",""]],contentQueries:function(e,i,r){if(1&e&&Dn(r,QM,5),2&e){let s;Dt(s=St())&&(i.table=s.first)}},inputs:{rowHeight:["tvsItemSize","rowHeight"],headerEnabled:"headerEnabled",headerHeight:"headerHeight",footerEnabled:"footerEnabled",footerHeight:"footerHeight",bufferMultiplier:"bufferMultiplier"},features:[kt([{provide:oF,useFactory:n6,deps:[Pn(()=>n)]}]),Zt]}),n})(),r6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[[]]}),n})();const by=J(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function eL(n){return new _e(t=>{Wn(n()).subscribe(t)})}function ya(n,t){const e=I(n)?n:()=>n,i=r=>r.error(e());return new _e(t?r=>t.schedule(i,0,r):i)}function yy(n){return A((t,e)=>{let i=!1;t.subscribe(N(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function tL(n=s6){return A((t,e)=>{let i=!1;t.subscribe(N(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function s6(){return new by}function tc(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ji((r,s)=>n(r,s,i)):we,Ci(1),e?yy(t):tL(()=>new by))}function Wc(n,t){return I(t)?lr(n,t,1):lr(n,1)}function tl(n){return A((t,e)=>{let s,i=null,r=!1;i=t.subscribe(N(e,void 0,void 0,o=>{s=Wn(n(o,tl(n)(t))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}function o6(n,t,e,i,r){return(s,o)=>{let a=e,c=t,d=0;s.subscribe(N(o,f=>{const v=d++;c=a?n(c,f,v):(a=!0,f),i&&o.next(c)},r&&(()=>{a&&o.next(c),o.complete()})))}}function nL(n,t){return A(o6(n,t,arguments.length>=2,!0))}function rE(n){return n<=0?()=>Ns:A((t,e)=>{let i=[];t.subscribe(N(e,r=>{i.push(r),n<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function iL(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ji((r,s)=>n(r,s,i)):we,rE(1),e?yy(t):tL(()=>new by))}function rL(n,t=!1){return A((e,i)=>{let r=0;e.subscribe(N(i,s=>{const o=n(s,r++);(o||t)&&i.next(s),!o&&i.complete()}))})}function wy(n){return A((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const In="primary";class a6{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function tf(n){return new a6(n)}function l6(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.length<n.length))return null;const r={};for(let s=0;s<i.length;s++){const o=i[s],a=n[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function nl(n,t){const e=n?Object.keys(n):void 0,i=t?Object.keys(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!sL(n[r],t[r]))return!1;return!0}function sL(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),i=[...t].sort();return e.every((r,s)=>i[s]===r)}return n===t}function oL(n){return Array.prototype.concat.apply([],n)}function aL(n){return n.length>0?n[n.length-1]:null}function hs(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function nc(n){return sA(n)?n:pm(n)?pi(Promise.resolve(n)):At(n)}const d6={exact:function uL(n,t,e){if(!ed(n.segments,t.segments)||!Cy(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!uL(n.children[i],t.children[i],e))return!1;return!0},subset:dL},lL={exact:function h6(n,t){return nl(n,t)},subset:function f6(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>sL(n[e],t[e]))},ignored:()=>!0};function cL(n,t,e){return d6[e.paths](n.root,t.root,e.matrixParams)&&lL[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function dL(n,t,e){return hL(n,t,t.segments,e)}function hL(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ed(r,e)||t.hasChildren()||!Cy(r,e,i))}if(n.segments.length===e.length){if(!ed(n.segments,e)||!Cy(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!dL(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(ed(n.segments,r)&&Cy(n.segments,r,i)&&n.children[In])&&hL(n.children[In],t,s,i)}}function Cy(n,t,e){return t.every((i,r)=>lL[e](n[r].parameters,i.parameters))}class Ju{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tf(this.queryParams)),this._queryParamMap}toString(){return g6.serialize(this)}}class Bn{constructor(t,e){this.segments=t,this.children=e,this.parent=null,hs(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dy(this)}}class Qm{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=tf(this.parameters)),this._parameterMap}toString(){return gL(this)}}function ed(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let fL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return new oE},providedIn:"root"}),n})();class oE{parse(t){const e=new A6(t);return new Ju(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Zm(t.root,!0)}`,i=function b6(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Sy(e)}=${Sy(r)}`).join("&"):`${Sy(e)}=${Sy(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function _6(n){return encodeURI(n)}(t.fragment)}`:""}`}}const g6=new oE;function Dy(n){return n.segments.map(t=>gL(t)).join("/")}function Zm(n,t){if(!n.hasChildren())return Dy(n);if(t){const e=n.children[In]?Zm(n.children[In],!1):"",i=[];return hs(n.children,(r,s)=>{s!==In&&i.push(`${s}:${Zm(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function m6(n,t){let e=[];return hs(n.children,(i,r)=>{r===In&&(e=e.concat(t(i,r)))}),hs(n.children,(i,r)=>{r!==In&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===In?[Zm(n.children[In],!1)]:[`${r}:${Zm(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[In]?`${Dy(n)}/${e[0]}`:`${Dy(n)}/(${e.join("//")})`}}function pL(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sy(n){return pL(n).replace(/%3B/gi,";")}function aE(n){return pL(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ay(n){return decodeURIComponent(n)}function mL(n){return Ay(n.replace(/\+/g,"%20"))}function gL(n){return`${aE(n.path)}${function v6(n){return Object.keys(n).map(t=>`;${aE(t)}=${aE(n[t])}`).join("")}(n.parameters)}`}const y6=/^[^\/()?;=#]+/;function My(n){const t=n.match(y6);return t?t[0]:""}const w6=/^[^=?&#]+/,D6=/^[^&#]+/;class A6{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bn([],{}):new Bn([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[In]=new Bn(t,e)),i}parseSegment(){const t=My(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new nt(4009,!1);return this.capture(t),new Qm(Ay(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=My(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=My(this.remaining);r&&(i=r,this.capture(i))}t[Ay(e)]=Ay(i)}parseQueryParam(t){const e=function C6(n){const t=n.match(w6);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function S6(n){const t=n.match(D6);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=mL(e),s=mL(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=My(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new nt(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=In);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[In]:new Bn([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new nt(4011,!1)}}function lE(n){return n.segments.length>0?new Bn([],{[In]:n}):n}function Ey(n){const t={};for(const i of Object.keys(n.children)){const s=Ey(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function M6(n){if(1===n.numberOfChildren&&n.children[In]){const t=n.children[In];return new Bn(n.segments.concat(t.segments),t.children)}return n}(new Bn(n.segments,t))}function td(n){return n instanceof Ju}function k6(n,t,e,i,r){var s;if(0===e.length)return nf(t.root,t.root,t.root,i,r);const a=function bL(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new vL(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return hs(s.outlets,(c,d)=>{a[d]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new vL(e,t,i)}(e);return a.toRoot()?nf(t.root,t.root,new Bn([],{}),i,r):function c(f){var v;const x=function P6(n,t,e,i){if(n.isAbsolute)return new rf(t.root,!0,0);if(-1===i)return new rf(e,e===t.root,0);return function yL(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new nt(4005,!1);r=i.segments.length}return new rf(i,!1,r-s)}(e,i+(Jm(n.commands[0])?0:1),n.numberOfDoubleDots)}(a,t,null===(v=n.snapshot)||void 0===v?void 0:v._urlSegment,f),B=x.processChildren?tg(x.segmentGroup,x.index,a.commands):uE(x.segmentGroup,x.index,a.commands);return nf(t.root,x.segmentGroup,B,i,r)}(null===(s=n.snapshot)||void 0===s?void 0:s._lastPathIndex)}function Jm(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function eg(n){return"object"==typeof n&&null!=n&&n.outlets}function nf(n,t,e,i,r){let o,s={};i&&hs(i,(c,d)=>{s[d]=Array.isArray(c)?c.map(f=>`${f}`):`${c}`}),o=n===t?e:_L(n,t,e);const a=lE(Ey(o));return new Ju(a,s,r)}function _L(n,t,e){const i={};return hs(n.children,(r,s)=>{i[s]=r===t?e:_L(r,t,e)}),new Bn(n.segments,i)}class vL{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Jm(i[0]))throw new nt(4003,!1);const r=i.find(eg);if(r&&r!==aL(i))throw new nt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class rf{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function uE(n,t,e){if(n||(n=new Bn([],{})),0===n.segments.length&&n.hasChildren())return tg(n,t,e);const i=function I6(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return s;const o=n.segments[r],a=e[i];if(eg(a))break;const c=`${a}`,d=i<e.length-1?e[i+1]:null;if(r>0&&void 0===c)break;if(c&&d&&"object"==typeof d&&void 0===d.outlets){if(!CL(c,d,o))return s;i+=2}else{if(!CL(c,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){const s=new Bn(n.segments.slice(0,i.pathIndex),{});return s.children[In]=new Bn(n.segments.slice(i.pathIndex),n.children),tg(s,0,r)}return i.match&&0===r.length?new Bn(n.segments,{}):i.match&&!n.hasChildren()?dE(n,t,e):i.match?tg(n,0,r):dE(n,t,e)}function tg(n,t,e){if(0===e.length)return new Bn(n.segments,{});{const i=function R6(n){return eg(n[0])?n[0].outlets:{[In]:n}}(e),r={};return hs(i,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=uE(n.children[o],t,s))}),hs(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new Bn(n.segments,r)}}function dE(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r<e.length;){const s=e[r];if(eg(s)){const c=O6(s.outlets);return new Bn(i,c)}if(0===r&&Jm(e[0])){i.push(new Qm(n.segments[t].path,wL(e[0]))),r++;continue}const o=eg(s)?s.outlets[In]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&Jm(a)?(i.push(new Qm(o,wL(a))),r+=2):(i.push(new Qm(o,{})),r++)}return new Bn(i,{})}function O6(n){const t={};return hs(n,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=dE(new Bn([],{}),0,e))}),t}function wL(n){const t={};return hs(n,(e,i)=>t[i]=`${e}`),t}function CL(n,t,e){return n==e.path&&nl(t,e.parameters)}class ic{constructor(t,e){this.id=t,this.url=e}}class hE extends ic{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class rc extends ic{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ng extends ic{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fE extends ic{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class F6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class L6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class N6 extends ic{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class V6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class B6 extends ic{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class H6{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class z6{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class U6{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class j6{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W6{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $6{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DL{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class SL{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=pE(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=pE(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mE(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return mE(t,this._root).map(e=>e.value)}}function pE(n,t){if(n===t.value)return t;for(const e of t.children){const i=pE(n,e);if(i)return i}return null}function mE(n,t){if(n===t.value)return[t];for(const e of t.children){const i=mE(n,e);if(i.length)return i.unshift(t),i}return[]}class sc{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function sf(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class AL extends SL{constructor(t,e){super(t),this.snapshot=e,gE(this,t)}toString(){return this.snapshot.toString()}}function ML(n,t){const e=function q6(n,t){const o=new xy([],{},{},"",{},In,t,null,n.root,-1,{});return new xL("",new sc(o,[]))}(n,t),i=new gr([new Qm("",{})]),r=new gr({}),s=new gr({}),o=new gr({}),a=new gr(""),c=new af(i,r,o,a,s,In,t,e.root);return c.snapshot=e.root,new AL(new sc(c,[]),e)}class af{constructor(t,e,i,r,s,o,a,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(z(t=>tf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(t=>tf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function EL(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function Y6(n){return n.reduce((t,e)=>{var i;return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),t.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(i))}class xy{constructor(t,e,i,r,s,o,a,c,d,f,v,x){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._urlSegment=d,this._lastPathIndex=f,this._correctedLastPathIndex=null!=x?x:f,this._resolve=v}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=tf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xL extends SL{constructor(t,e){super(e),this.url=t,gE(this,e)}toString(){return kL(this._root)}}function gE(n,t){t.value._routerState=n,t.children.forEach(e=>gE(n,e))}function kL(n){const t=n.children.length>0?` { ${n.children.map(kL).join(", ")} } `:"";return`${n.value}${t}`}function _E(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,nl(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),nl(t.params,e.params)||n.params.next(e.params),function c6(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!nl(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),nl(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function vE(n,t){const e=nl(n.params,t.params)&&function p6(n,t){return ed(n,t)&&n.every((e,i)=>nl(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||vE(n.parent,t.parent))}function ig(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function X6(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ig(n,i,r);return ig(n,i)})}(n,t,e);return new sc(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>ig(n,a)),o}}const i=function Q6(n){return new af(new gr(n.url),new gr(n.params),new gr(n.queryParams),new gr(n.fragment),new gr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>ig(n,s));return new sc(i,r)}}const bE="ngNavigationCancelingError";function TL(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=td(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=PL(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function PL(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[bE]=!0,i.cancellationCode=t,e&&(i.url=e),i}function RL(n){return IL(n)&&td(n.url)}function IL(n){return n&&n[bE]}class Z6{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new rg,this.attachRef=null}}let rg=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Z6,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ky=!1;let yE=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.changeDetector=s,this.environmentInjector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new bt,this.deactivateEvents=new bt,this.attachEvents=new bt,this.detachEvents=new bt,this.name=r||In,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new nt(4012,ky);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new nt(4012,ky);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new nt(4012,ky);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new nt(4013,ky);this._activatedRoute=e;const r=this.location,o=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new J6(e,a,r.injector);if(i&&function eq(n){return!!n.resolveComponentFactory}(i)){const d=i.resolveComponentFactory(o);this.activated=r.createComponent(d,r.length,c)}else this.activated=r.createComponent(o,{index:r.length,injector:c,environmentInjector:null!=i?i:this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(R(rg),R(Oi),ys("name"),R(Xn),R(Fa))},n.\u0275dir=qe({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class J6{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===af?this.route:t===rg?this.childContexts:this.parent.get(t,e)}}let OL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&ft(0,"router-outlet")},dependencies:[yE],encapsulation:2}),n})();function FL(n,t){var e;return n.providers&&!n._injector&&(n._injector=yb(n.providers,t,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:t}function CE(n){const t=n.children&&n.children.map(CE),e=t?Object.assign(Object.assign({},n),{children:t}):Object.assign({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==In&&(e.component=OL),e}function Xo(n){return n.outlet||In}function LL(n,t){const e=n.filter(i=>Xo(i)===t);return e.push(...n.filter(i=>Xo(i)!==t)),e}function NL(n){var t;if(!n)return null;if(null!==(t=n.routeConfig)&&void 0!==t&&t._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class sq{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),_E(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=sf(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),hs(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=sf(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=sf(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=sf(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new $6(s.value.snapshot))}),t.children.length&&this.forwardEvent(new j6(t.value.snapshot))}activateRoutes(t,e,i){var r;const s=t.value,o=e?e.value:null;if(_E(s),s===o)if(s.component){const a=i.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,i);else if(s.component){const a=i.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const c=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),_E(c.route.value),this.activateChildRoutes(t,null,a.children)}else{const c=NL(s.snapshot),d=null!==(r=null==c?void 0:c.get(Il))&&void 0!==r?r:null;a.attachRef=null,a.route=s,a.resolver=d,a.injector=c,a.outlet&&a.outlet.activateWith(s,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,i)}}class VL{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ty{constructor(t,e){this.component=t,this.route=e}}function oq(n,t,e){const i=n._root;return sg(i,t?t._root:null,e,[i.value])}function Py(n,t,e){const i=NL(t);return(null!=i?i:e).get(n)}function sg(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=sf(t);return n.children.forEach(o=>{(function lq(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function cq(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!ed(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ed(n.url,t.url)||!nl(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vE(n,t)||!nl(n.queryParams,t.queryParams);default:return!vE(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new VL(i)):(s.data=o.data,s._resolvedData=o._resolvedData),sg(n,t,s.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ty(a.outlet.component,o))}else o&&og(t,a,r),r.canActivateChecks.push(new VL(i)),sg(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),hs(s,(o,a)=>og(o,e.getContext(a),r)),r}function og(n,t,e){const i=sf(n),r=n.value;hs(i,(s,o)=>{og(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new Ty(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ag(n){return"function"==typeof n}function DE(n){return n instanceof by||"EmptyError"===(null==n?void 0:n.name)}const Ry=Symbol("INITIAL_VALUE");function lf(){return ds(n=>qa(n.map(t=>t.pipe(Ci(1),cs(Ry)))).pipe(z(t=>{for(const e of t)if(!0!==e){if(e===Ry)return Ry;if(!1===e||e instanceof Ju)return e}return!0}),ji(t=>t!==Ry),Ci(1)))}function BL(n){return function oe(...n){return Se(n)}(_i(t=>{if(td(t))throw TL(0,t)}),z(t=>!0===t))}const SE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function HL(n,t,e,i,r){const s=AE(n,t,e);return s.matched?function Mq(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?At(r.map(o=>{const a=n.get(o),c=function mq(n){return n&&ag(n.canMatch)}(a)?a.canMatch(t,e):a(t,e);return nc(c)})).pipe(lf(),BL()):At(!0)}(i=FL(t,i),t,e).pipe(z(o=>!0===o?s:Object.assign({},SE))):At(s)}function AE(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},SE):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(t.matcher||l6)(e,n,t);if(!s)return Object.assign({},SE);const o={};hs(s.posParams,(c,d)=>{o[d]=c.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Iy(n,t,e,i,r="corrected"){if(e.length>0&&function kq(n,t,e){return e.some(i=>Oy(n,t,i)&&Xo(i)!==In)}(n,e,i)){const o=new Bn(t,function xq(n,t,e,i){const r={};r[In]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Xo(s)!==In){const o=new Bn([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[Xo(s)]=o}return r}(n,t,i,new Bn(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function Tq(n,t,e){return e.some(i=>Oy(n,t,i))}(n,e,i)){const o=new Bn(n.segments,function Eq(n,t,e,i,r,s){const o={};for(const a of i)if(Oy(n,e,a)&&!r[Xo(a)]){const c=new Bn([],{});c._sourceSegment=n,c._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[Xo(a)]=c}return Object.assign(Object.assign({},r),o)}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new Bn(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function Oy(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function zL(n,t,e,i){return!!(Xo(n)===i||i!==In&&Oy(t,e,n))&&("**"===n.path||AE(t,n,e).matched)}function UL(n,t,e){return 0===t.length&&!n.children[e]}const Fy=!1;class Ly{constructor(t){this.segmentGroup=t||null}}class jL{constructor(t){this.urlTree=t}}function lg(n){return ya(new Ly(n))}function WL(n){return ya(new jL(n))}class Oq{constructor(t,e,i,r,s){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0}apply(){const t=Iy(this.urlTree.root,[],[],this.config).segmentGroup,e=new Bn(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,In).pipe(z(s=>this.createUrlTree(Ey(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(tl(s=>{if(s instanceof jL)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Ly?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,In).pipe(z(r=>this.createUrlTree(Ey(r),t.queryParams,t.fragment))).pipe(tl(r=>{throw r instanceof Ly?this.noMatchError(r):r}))}noMatchError(t){return new nt(4002,Fy)}createUrlTree(t,e,i){const r=lE(t);return new Ju(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(z(s=>new Bn([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return pi(r).pipe(Wc(s=>{const o=i.children[s],a=LL(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(z(c=>({segment:c,outlet:s})))}),nL((s,o)=>(s[o.outlet]=o.segment,s),{}),iL())}expandSegment(t,e,i,r,s,o){return pi(i).pipe(Wc(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(tl(d=>{if(d instanceof Ly)return At(null);throw d}))),tc(a=>!!a),tl((a,c)=>{if(DE(a))return UL(e,r,s)?At(new Bn([],{})):lg(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return zL(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):lg(e):lg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?WL(s):this.lineralizeSegments(i,s).pipe(lr(o=>{const a=new Bn(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:c,remainingSegments:d,positionalParamSegments:f}=AE(e,r,s);if(!a)return lg(e);const v=this.applyRedirectCommands(c,r.redirectTo,f);return r.redirectTo.startsWith("/")?WL(v):this.lineralizeSegments(r,v).pipe(lr(x=>this.expandSegment(t,e,i,x.concat(d),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){return"**"===i.path?(t=FL(i,t),i.loadChildren?(i._loadedRoutes?At({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(z(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Bn(r,{})))):At(new Bn(r,{}))):HL(e,i,r,t).pipe(ds(({matched:o,consumedSegments:a,remainingSegments:c})=>{var d;return o?(t=null!==(d=i._injector)&&void 0!==d?d:t,this.getChildConfig(t,i,r).pipe(lr(v=>{var x;const B=null!==(x=v.injector)&&void 0!==x?x:t,se=v.routes,{segmentGroup:me,slicedSegments:Oe}=Iy(e,a,c,se),Fe=new Bn(me.segments,me.children);if(0===Oe.length&&Fe.hasChildren())return this.expandChildren(B,se,Fe).pipe(z(Tt=>new Bn(a,Tt)));if(0===se.length&&0===Oe.length)return At(new Bn(a,{}));const et=Xo(i)===s;return this.expandSegment(B,Fe,se,Oe,et?In:s,!0).pipe(z(ot=>new Bn(a.concat(ot.segments),ot.children)))}))):lg(e)}))}getChildConfig(t,e,i){return e.children?At({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?At({routes:e._loadedRoutes,injector:e._loadedInjector}):function Aq(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?At(!0):At(r.map(o=>{const a=n.get(o),c=function dq(n){return n&&ag(n.canLoad)}(a)?a.canLoad(t,e):a(t,e);return nc(c)})).pipe(lf(),BL())}(t,e,i).pipe(lr(r=>r?this.configLoader.loadChildren(t,e).pipe(_i(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function Rq(n){return ya(PL(Fy,3))}())):At({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return At(i);if(r.numberOfChildren>1||!r.children[In])return ya(new nt(4e3,Fy));r=r.children[In]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new Ju(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return hs(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return hs(e.children,(a,c)=>{o[c]=this.createSegmentGroup(t,a,i,r)}),new Bn(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new nt(4001,Fy);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Lq{}class Bq{constructor(t,e,i,r,s,o,a,c){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=s,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a,this.urlSerializer=c}recognize(){const t=Iy(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,In).pipe(z(e=>{if(null===e)return null;const i=new xy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},In,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new sc(i,e),s=new xL(this.url,r);return this.inheritParamsAndData(s._root),s}))}inheritParamsAndData(t){const e=t.value,i=EL(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return pi(Object.keys(i.children)).pipe(Wc(r=>{const s=i.children[r],o=LL(e,r);return this.processSegmentGroup(t,o,s,r)}),nL((r,s)=>r&&s?(r.push(...s),r):null),rL(r=>null!==r),yy(null),iL(),z(r=>{if(null===r)return null;const s=$L(r);return function Hq(n){n.sort((t,e)=>t.value.outlet===In?-1:e.value.outlet===In?1:t.value.outlet.localeCompare(e.value.outlet))}(s),s}))}processSegment(t,e,i,r,s){return pi(e).pipe(Wc(o=>{var a;return this.processSegmentAgainstRoute(null!==(a=o._injector)&&void 0!==a?a:t,o,i,r,s)}),tc(o=>!!o),tl(o=>{if(DE(o))return UL(i,r,s)?At([]):At(null);throw o}))}processSegmentAgainstRoute(t,e,i,r,s){var o,a;if(e.redirectTo||!zL(e,i,r,s))return At(null);let c;if("**"===e.path){const d=r.length>0?aL(r).parameters:{},f=qL(i)+r.length;c=At({snapshot:new xy(r,d,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,KL(e),Xo(e),null!==(a=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==a?a:null,e,GL(i),f,XL(e),f),consumedSegments:[],remainingSegments:[]})}else c=HL(i,e,r,t).pipe(z(({matched:d,consumedSegments:f,remainingSegments:v,parameters:x})=>{var B,se;if(!d)return null;const me=qL(i)+f.length;return{snapshot:new xy(f,x,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,KL(e),Xo(e),null!==(se=null!==(B=e.component)&&void 0!==B?B:e._loadedComponent)&&void 0!==se?se:null,e,GL(i),me,XL(e),me),consumedSegments:f,remainingSegments:v}}));return c.pipe(ds(d=>{var f,v;if(null===d)return At(null);const{snapshot:x,consumedSegments:B,remainingSegments:se}=d;t=null!==(f=e._injector)&&void 0!==f?f:t;const me=null!==(v=e._loadedInjector)&&void 0!==v?v:t,Oe=function zq(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Fe,slicedSegments:et}=Iy(i,B,se,Oe.filter(ot=>void 0===ot.redirectTo),this.relativeLinkResolution);if(0===et.length&&Fe.hasChildren())return this.processChildren(me,Oe,Fe).pipe(z(ot=>null===ot?null:[new sc(x,ot)]));if(0===Oe.length&&0===et.length)return At([new sc(x,[])]);const We=Xo(e)===s;return this.processSegment(me,Oe,Fe,et,We?In:s).pipe(z(ot=>null===ot?null:[new sc(x,ot)]))}))}}function Uq(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function $L(n){const t=[],e=new Set;for(const i of n){if(!Uq(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=$L(i.children);t.push(new sc(i.value,r))}return t.filter(i=>!e.has(i))}function GL(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function qL(n){var t,e;let i=n,r=null!==(t=i._segmentIndexShift)&&void 0!==t?t:0;for(;i._sourceSegment;)i=i._sourceSegment,r+=null!==(e=i._segmentIndexShift)&&void 0!==e?e:0;return r-1}function KL(n){return n.data||{}}function XL(n){return n.resolve||{}}const ME=Symbol("RouteTitle");function QL(n){return"string"==typeof n.title||null===n.title}function EE(n){return ds(t=>{const e=n(t);return e?pi(e).pipe(z(()=>t)):At(t)})}let ZL=(()=>{class n{buildTitle(e){var i;let r,s=e.root;for(;void 0!==s;)r=null!==(i=this.getResolvedTitleForRoute(s))&&void 0!==i?i:r,s=s.children.find(o=>o.outlet===In);return r}getResolvedTitleForRoute(e){return e.data[ME]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:function(){return qn(JL)},providedIn:"root"}),n})(),JL=(()=>{class n extends ZL{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(Re(cM))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Xq{}class Zq extends class Qq{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const xE=new lt("",{providedIn:"root",factory:()=>({})}),kE=new lt("ROUTES");let TE=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return At(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=nc(e.loadComponent()).pipe(_i(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),wy(()=>{this.componentLoaders.delete(e)})),r=new MM(i,()=>new y).pipe(AM());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return At({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(z(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let c,d,f=!1;Array.isArray(a)?d=a:(c=a.create(e).injector,d=oL(c.get(kE,[],qt.Self|qt.Optional)));return{routes:d.map(CE),injector:c}}),wy(()=>{this.childrenLoaders.delete(i)})),o=new MM(s,()=>new y).pipe(AM());return this.childrenLoaders.set(i,o),o}loadModuleFactoryOrRoutes(e){return nc(e()).pipe(lr(i=>i instanceof jR||Array.isArray(i)?At(i):pi(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(Re(Ii),Re(TA))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class eY{}class tY{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function nY(n){throw n}function iY(n,t,e){return t.parse("/")}const rY={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sY={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function tN(){var n,t;const e=qn(fL),i=qn(rg),r=qn(Ib),s=qn(Ii),o=qn(TA),a=null!==(n=qn(kE,{optional:!0}))&&void 0!==n?n:[],c=null!==(t=qn(xE,{optional:!0}))&&void 0!==t?t:{},d=qn(JL),f=qn(ZL,{optional:!0}),v=qn(eY,{optional:!0}),x=qn(Xq,{optional:!0}),B=new Ps(null,e,i,r,s,o,oL(a));return v&&(B.urlHandlingStrategy=v),x&&(B.routeReuseStrategy=x),B.titleStrategy=null!=f?f:d,function oY(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(c,B),B}let Ps=(()=>{class n{constructor(e,i,r,s,o,a,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new y,this.errorHandler=nY,this.malformedUriErrorHandler=iY,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>At(void 0),this.urlHandlingStrategy=new tY,this.routeReuseStrategy=new Zq,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=o.get(TE),this.configLoader.onLoadEndListener=x=>this.triggerEvent(new z6(x)),this.configLoader.onLoadStartListener=x=>this.triggerEvent(new H6(x)),this.ngModule=o.get(ju),this.console=o.get(sW);const v=o.get(jt);this.isNgZoneEnabled=v instanceof jt&&jt.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function u6(){return new Ju(new Bn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ML(this.currentUrlTree,this.rootComponentType),this.transitions=new gr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(ji(r=>0!==r.id),z(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ds(r=>{let s=!1,o=!1;return At(r).pipe(_i(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ds(a=>{const c=this.browserUrlTree.toString(),d=!this.navigated||a.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return nN(a.source)&&(this.browserUrlTree=a.extractedUrl),At(a).pipe(ds(v=>{const x=this.transitions.getValue();return i.next(new hE(v.id,this.serializeUrl(v.extractedUrl),v.source,v.restoredState)),x!==this.transitions.getValue()?Ns:Promise.resolve(v)}),function Fq(n,t,e,i){return ds(r=>function Iq(n,t,e,i,r){return new Oq(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(z(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),_i(v=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:v.urlAfterRedirects}),r.urlAfterRedirects=v.urlAfterRedirects}),function Wq(n,t,e,i,r,s){return lr(o=>function Vq(n,t,e,i,r,s,o="emptyOnly",a="legacy"){return new Bq(n,t,e,i,r,o,a,s).recognize().pipe(ds(c=>null===c?function Nq(n){return new _e(t=>t.error(n))}(new Lq):At(c)))}(n,t,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r,s).pipe(z(a=>Object.assign(Object.assign({},o),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),_i(v=>{if(r.targetSnapshot=v.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!v.extras.skipLocationChange){const B=this.urlHandlingStrategy.merge(v.urlAfterRedirects,v.rawUrl);this.setBrowserUrl(B,v)}this.browserUrlTree=v.urlAfterRedirects}const x=new F6(v.id,this.serializeUrl(v.extractedUrl),this.serializeUrl(v.urlAfterRedirects),v.targetSnapshot);i.next(x)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:x,extractedUrl:B,source:se,restoredState:me,extras:Oe}=a,Fe=new hE(x,this.serializeUrl(B),se,me);i.next(Fe);const et=ML(B,this.rootComponentType).snapshot;return At(r=Object.assign(Object.assign({},a),{targetSnapshot:et,urlAfterRedirects:B,extras:Object.assign(Object.assign({},Oe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ns}),_i(a=>{const c=new L6(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),z(a=>r=Object.assign(Object.assign({},a),{guards:oq(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function _q(n,t){return lr(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?At(Object.assign(Object.assign({},e),{guardsResult:!0})):function vq(n,t,e,i){return pi(n).pipe(lr(r=>function Sq(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?At(s.map(a=>{const c=Py(a,t,r);return nc(function pq(n){return n&&ag(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):c(n,t,e,i)).pipe(tc())})).pipe(lf()):At(!0)}(r.component,r.route,e,t,i)),tc(r=>!0!==r,!0))}(o,i,r,n).pipe(lr(a=>a&&function uq(n){return"boolean"==typeof n}(a)?function bq(n,t,e,i){return pi(t).pipe(Wc(r=>Im(function wq(n,t){return null!==n&&t&&t(new U6(n)),At(!0)}(r.route.parent,i),function yq(n,t){return null!==n&&t&&t(new W6(n)),At(!0)}(r.route,i),function Dq(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function aq(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>eL(()=>At(o.guards.map(c=>{const d=Py(c,o.node,e);return nc(function fq(n){return n&&ag(n.canActivateChild)}(d)?d.canActivateChild(i,n):d(i,n)).pipe(tc())})).pipe(lf())));return At(s).pipe(lf())}(n,r.path,e),function Cq(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return At(!0);const r=i.map(s=>eL(()=>{const o=Py(s,t,e);return nc(function hq(n){return n&&ag(n.canActivate)}(o)?o.canActivate(t,n):o(t,n)).pipe(tc())}));return At(r).pipe(lf())}(n,r.route,e))),tc(r=>!0!==r,!0))}(i,s,n,t):At(a)),z(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),_i(a=>{if(r.guardsResult=a.guardsResult,td(a.guardsResult))throw TL(0,a.guardsResult);const c=new N6(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(c)}),ji(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),EE(a=>{if(a.guards.canActivateChecks.length)return At(a).pipe(_i(c=>{const d=new V6(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(d)}),ds(c=>{let d=!1;return At(c).pipe(function $q(n,t){return lr(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return At(e);let s=0;return pi(r).pipe(Wc(o=>function Gq(n,t,e,i){const r=n.routeConfig,s=n._resolve;return void 0!==(null==r?void 0:r.title)&&!QL(r)&&(s[ME]=r.title),function qq(n,t,e,i){const r=function Yq(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return At({});const s={};return pi(r).pipe(lr(o=>function Kq(n,t,e,i){const r=Py(n,t,i);return nc(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(tc(),_i(a=>{s[o]=a}))),rE(1),CM(s),tl(o=>DE(o)?Ns:ya(o)))}(s,n,t,i).pipe(z(o=>(n._resolvedData=o,n.data=EL(n,e).resolve,r&&QL(r)&&(n.data[ME]=r.title),null)))}(o.route,i,n,t)),_i(()=>s++),rE(1),lr(o=>s===r.length?At(e):Ns))})}(this.paramsInheritanceStrategy,this.ngModule.injector),_i({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",2))}}))}),_i(c=>{const d=new B6(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(d)}))}),EE(a=>{const c=d=>{var f;const v=[];(null===(f=d.routeConfig)||void 0===f?void 0:f.loadComponent)&&!d.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(d.routeConfig).pipe(_i(x=>{d.component=x}),z(()=>{})));for(const x of d.children)v.push(...c(x));return v};return qa(c(a.targetSnapshot.root)).pipe(yy(),Ci(1))}),EE(()=>this.afterPreactivation()),z(a=>{const c=function K6(n,t,e){const i=ig(n,t._root,e?e._root:void 0);return new AL(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r=Object.assign(Object.assign({},a),{targetRouterState:c})}),_i(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>z(i=>(new sq(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),_i({next(){s=!0},complete(){s=!0}}),wy(()=>{var a;s||o||this.cancelNavigationTransition(r,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),tl(a=>{var c;if(o=!0,IL(a)){RL(a)||(this.navigated=!0,this.restoreHistory(r,!0));const d=new ng(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(d),RL(a)){const f=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),v={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||nN(r.source)};this.scheduleNavigation(f,"imperative",null,v,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const d=new fE(r.id,this.serializeUrl(r.extractedUrl),a,null!==(c=r.targetSnapshot)&&void 0!==c?c:void 0);i.next(d);try{r.resolve(this.errorHandler(a))}catch(f){r.reject(f)}}return Ns}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const s={replaceUrl:!0},o=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(o){const c=Object.assign({},o);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(s.state=c)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(CE),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:c}=i,d=r||this.routerState.root,f=c?this.currentUrlTree.fragment:o;let v=null;switch(a){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=s||null}return null!==v&&(v=this.removeEmptyProps(v)),k6(d,this.currentUrlTree,e,v,null!=f?f:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=td(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function aY(n){for(let t=0;t<n.length;t++){if(null==n[t])throw new nt(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?Object.assign({},rY):!1===i?Object.assign({},sY):i,td(e))return cL(this.currentUrlTree,e,r);const s=this.parseUrl(e);return cL(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{var i;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new rc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,c;if(this.disposed)return Promise.resolve(!1);let d,f,v;o?(d=o.resolve,f=o.reject,v=o.promise):v=new Promise((se,me)=>{d=se,f=me});const x=++this.navigationId;let B;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),B=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):B=0,this.setTransition({id:x,targetPageId:B,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:d,reject:f,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.catch(se=>Promise.reject(se))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const s=new ng(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=dt({token:n,factory:function(){return tN()},providedIn:"root"}),n})();function nN(n){return"imperative"!==n}let By=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.commands=null,this.onChanges=new y,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:Ul(this.skipLocationChange),replaceUrl:Ul(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ul(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(R(Ps),R(af),ys("tabindex"),R(Us),R(yt))},n.\u0275dir=qe({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&vt("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Zt]}),n})(),Hy=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new y,this.subscription=e.events.subscribe(s=>{s instanceof rc&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:Ul(this.skipLocationChange),replaceUrl:Ul(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ul(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(R(Ps),R(af),R($u))},n.\u0275dir=qe({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&vt("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&Yt("target",i.target)("href",i.href,zs)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Zt]}),n})(),iN=(()=>{class n{constructor(e,i,r,s,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=s,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new bt,this.routerEventsSubscription=e.events.subscribe(c=>{c instanceof rc&&this.update()})}ngAfterContentInit(){At(this.links.changes,this.linksWithHrefs.changes,At(null)).pipe(uc()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=pi(i).pipe(uc()).subscribe(r=>{this.isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function lY(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Ps),R(yt),R(Us),R(Xn),R(By,8),R(Hy,8))},n.\u0275dir=qe({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,By,5),Dn(r,Hy,5)),2&e){let s;Dt(s=St())&&(i.links=s),Dt(s=St())&&(i.linksWithHrefs=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Zt]}),n})();class rN{}let sN=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ji(e=>e instanceof rc),Wc(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){var r,s,o;const a=[];for(const c of i){c.providers&&!c._injector&&(c._injector=yb(c.providers,e,`Route: ${c.path}`));const d=null!==(r=c._injector)&&void 0!==r?r:e,f=null!==(s=c._loadedInjector)&&void 0!==s?s:d;c.loadChildren&&!c._loadedRoutes&&void 0===c.canLoad||c.loadComponent&&!c._loadedComponent?a.push(this.preloadConfig(d,c)):(c.children||c._loadedRoutes)&&a.push(this.processRoutes(f,null!==(o=c.children)&&void 0!==o?o:c._loadedRoutes))}return pi(a).pipe(uc())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):At(null);const s=r.pipe(lr(o=>{var a;return null===o?At(void 0):(i._loadedRoutes=o.routes,i._loadedInjector=o.injector,this.processRoutes(null!==(a=o.injector)&&void 0!==a?a:e,o.routes))}));return i.loadComponent&&!i._loadedComponent?pi([s,this.loader.loadComponent(i)]).pipe(uc()):s})}}return n.\u0275fac=function(e){return new(e||n)(Re(Ps),Re(TA),Re(Fa),Re(rN),Re(TE))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const oN=new lt("");let cY=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof hE?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof rc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof DL&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new DL(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const aN=new lt("ROUTER_FORROOT_GUARD"),lN=new lt(""),uY=[Ib,{provide:fL,useClass:oE},{provide:Ps,useFactory:tN},rg,{provide:af,useFactory:function dY(n){return n.routerState.root},deps:[Ps]},TE];function hY(){return new HI("Router",Ps)}let cN=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[uY,[],uN(e),{provide:aN,useFactory:gY,deps:[[Ps,new Cs,new Co]]},{provide:xE,useValue:i||{}},null!=i&&i.useHash?{provide:$u,useClass:YW}:{provide:$u,useClass:cO},{provide:oN,useFactory:()=>{const n=qn(Ps),t=qn(s5),e=qn(xE);return e.scrollOffset&&t.setOffset(e.scrollOffset),new cY(n,t,e)}},null!=i&&i.preloadingStrategy?DY(i.preloadingStrategy):[],{provide:HI,multi:!0,useFactory:hY},null!=i&&i.initialNavigation?vY(i):[],[{provide:dN,useFactory:_Y},{provide:II,multi:!0,useExisting:dN}]]}}static forChild(e){return{ngModule:n,providers:[uN(e)]}}}return n.\u0275fac=function(e){return new(e||n)(Re(aN,8))},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();function gY(n){return"guarded"}function uN(n){return[{provide:kE,multi:!0,useValue:n}]}function _Y(){const n=qn(Ii);return t=>{var e,i;const r=n.get(qh);if(t!==r.components[0])return;const s=n.get(Ps),o=n.get(hN);1===n.get(PE)&&s.initialNavigation(),null===(e=n.get(lN,null,qt.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(oN,null,qt.Optional))||void 0===i||i.init(),s.resetRootComponentType(r.componentTypes[0]),o.next(),o.complete()}}const dN=new lt("");function vY(n){return["disabled"===n.initialNavigation?[{provide:Ab,multi:!0,useFactory:()=>{const n=qn(Ps);return()=>{n.setUpLocationChangeListener()}}},{provide:PE,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:PE,useValue:0},{provide:Ab,multi:!0,deps:[Ii],useFactory:n=>{const t=n.get(GW,Promise.resolve(null));let e=!1;return()=>t.then(()=>new Promise(r=>{const s=n.get(Ps),o=n.get(hN);(function i(r){n.get(Ps).events.pipe(ji(o=>o instanceof rc||o instanceof ng||o instanceof fE),z(o=>o instanceof rc||o instanceof ng&&(0===o.code||1===o.code)&&null),ji(o=>null!==o),Ci(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),s.afterPreactivation=()=>(r(!0),e||o.closed?At(void 0):o),s.initialNavigation()}))}}]:[]]}const hN=new lt("",{factory:()=>new y}),PE=new lt("",{providedIn:"root",factory:()=>1});function DY(n){return[sN,{provide:lN,useExisting:sN},{provide:rN,useExisting:n}]}var Rs=He(7489);function fN(n,t,e){let i,r=!1;return n&&"object"==typeof n?({bufferSize:i=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=n):i=null!=n?n:1/0,bd({connector:()=>new SM(i,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}const zy=JSON.parse('{"id":"Abwassersurveillance_AMELAG","branch":"main","externalLinks":[{"$type":"github","url":"https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG"},{"$type":"zenodo","url":"https://doi.org/10.5281/zenodo.14275391"}],"doi":"10.5281/zenodo.14275391","contributors":[],"lastUpdated":"2024-12-04","tags":["COVID-19","SARS-CoV-2","Abwasserbasierte epidemiologische \xdcberwachung","Wastewater-Based Epidemiological Monitoring","Open Data","Offene Daten"],"name":"Abwassersurveillance AMELAG","authors":["Robert Koch-Institut, Fachgebiet 32"],"description":"<p>Das Vorhaben \u201eAbwassermonitoring f\xfcr die epidemiologische Lagebewertung\u201c (AMELAG) l\xe4uft vom 22.11.2022 bis zum 31.12.2024. Beh\xf6rden, Kl\xe4ranlagen und Labore arbeiten zusammen, um Proben zu nehmen, zu analysieren und zu bewerten. Das Ziel dieses Vorhabens ist es, SARS-CoV-2-Nachweise aus dem Abwasser als zus\xe4tzlichen Indikator zur epidemiologischen Lagebewertung auf L\xe4nder- und Bundesebene zu etablieren. Ebenso ist es das Ziel, Strukturen und Prozesse f\xfcr ein bundesweites Netzwerk f\xfcr die Abwassersurveillance weiter auszubauen, Konzepte f\xfcr eine Verstetigung zu erstellen und die M\xf6glichkeiten f\xfcr ein Monitoring von weiteren Krankheitserregern im Abwasser zu erforschen.<br />\\nAbwassersurveillance ist eine Technik, um Erreger im Abwasser nachzuweisen, um Gesundheitsschutzma\xdfnahmen besser steuern zu k\xf6nnen. Abwasserdaten erlauben keine genaue Einsch\xe4tzung von Krankheitsschwere oder der Belastung des Gesundheitssystems. Bei der epidemiologischen Bewertung sollten die Daten mit anderen Indikatoren, z.B. aus der syndromischen Surveillance, kombiniert werden.</p>\\n","readme":"## Informationen zum Datensatz und Entstehungskontext\\n\\nDas Vorhaben \u201eAbwassermonitoring f\xfcr die epidemiologische Lagebewertung\u201c (AMELAG) l\xe4uft vom 22.11.2022 bis zum 31.12.2024. Beh\xf6rden, Kl\xe4ranlagen und Labore arbeiten zusammen, um Proben zu nehmen, zu analysieren und zu bewerten. Das Ziel dieses Vorhabens ist es, SARS-CoV-2-Nachweise aus dem Abwasser als zus\xe4tzlichen Indikator zur epidemiologischen Lagebewertung auf L\xe4nder- und Bundesebene zu etablieren. Ebenso ist es das Ziel, Strukturen und Prozesse f\xfcr ein bundesweites Netzwerk f\xfcr die Abwassersurveillance weiter auszubauen, Konzepte f\xfcr eine Verstetigung zu erstellen und die M\xf6glichkeiten f\xfcr ein Monitoring von weiteren Krankheitserregern im Abwasser zu erforschen. Aktuell werden Abwasserproben von ausgew\xe4hlten Kl\xe4ranlagen auf SARS-CoV-2 und Influenzaviren untersucht. \\nBei der Abwassersurveillance werden Erreger im Abwasser gemessen um Gesundheitsschutzma\xdfnahmen besser steuern zu k\xf6nnen. Abwassersurveillance kann einen Beitrag f\xfcr eine Reihe von [Anwendungsf\xe4llen](https://www.rki.de/DE/Content/Infekt/EpidBull/Archiv/2024/Ausgaben/34_24.pdf?__blob=publicationFile) liefern. Abwasserdaten unterliegen speziellen Limitationen, beispielsweise erlauben sie keine genaue Einsch\xe4tzung von Krankheitsschwere oder Belastung des Gesundheitssystems. Bei der epidemiologischen Bewertung sollten die Daten mit anderen Indikatoren, z.B. aus der syndromischen Surveillance, kombiniert werden. \\n\\n### Administrative und organisatorische Angaben\\n\\nAMELAG ist ein vom [Bundesministerium f\xfcr Gesundheit (BMG)](https://www.bundesgesundheitsministerium.de/index.html) gef\xf6rdertes Vorhaben und wird in Kooperation mit dem Bundesministerium f\xfcr Umwelt, Naturschutz, nukleare Sicherheit und [Verbraucherschutz (BMUV)](https://www.bmuv.de/) durchgef\xfchrt.\\nDas Vorhaben wird vom Robert Koch-Institut (RKI) und [Umweltbundesamt (UBA)](https://www.umweltbundesamt.de/) gemeinsam durchgef\xfchrt. Weitere Informationen zu AMELAG finden Sie auf der [Projektwebseite](https://rki.de/abwassersurveillance). \\nDie Durchf\xfchrung der Probenahme erfolgt durch die teilnehmenden Kl\xe4ranlagen. Die Analyse der Proben erfolgt durch die teilnehmenden Labore. Neben kommerziellen Laboren, Landeslaboren und dem Umweltbundesamt f\xfchrt der zentrale Sanit\xe4tsdienst der Bundeswehr einen Teil der Analytik durch.\\n\\nEin Teil der Kl\xe4ranlagen und Labore sind gleichzeitig in Projekten der Bundesl\xe4nder zur Abwassersurveillance beteiligt (Baden-W\xfcrttemberg, Bayern, Berlin, Brandenburg, Hamburg, Hessen, Rheinland-Pfalz, Sachsen-Anhalt). \\nWeitere Kl\xe4ranlagen und Labore sind Teil der folgenden Forschungsprojekte:\\n-\\t[WBEready](https://www.fiw.rwth-aachen.de/aktuelles-veranstaltungen/aktuelles/wbeready) - Einen Forschungskonsortium bestehend aus Emschergenossenschaft und LippeverbandEGLV, Forschungsinstitut f\xfcr Wasserwirtschaft und Klimazukunft an der RWTH Aachen FiW, Universit\xe4tsklinikum Frankfurt, Goethe-Universit\xe4t Frankfurt am Main, Universit\xe4tsmedizin Essen (Institut f\xfcr k\xfcnstliche Intelligenz, Institut f\xfcr Urban Public Health), RWTH Aachen, Institut f\xfcr Siedlungswasserwirtschaft.\\n-\\tEtablierung von Verfahren f\xfcr den Nachweis von Viren im Abwasser zur Bewertung der Infektionslage in der Bev\xf6lkerung (Universit\xe4t Dresden)\\n-\\tEntwicklung einer landesweiten Abwassersurveillance in Th\xfcringen mittels Mobilit\xe4tsdaten und k\xfcnstlicher Intelligenz (Forschungskonsortium der Universit\xe4t Weimar, Universit\xe4t Jena, Universit\xe4t Hamburg, Hochschule Hamm-Lippstadt, SMA Development GmbH, KOWUG Kommunale Wasser- und Umwelttechnik GmbH, Analytik Jena GmbH) \\n-\\tEtablierung einer Multiplex-PCR aus Abwasser und f\xfcr Detektion und Charakterisierung von RSV im Rahmen des SARS-CoV-2-Abwasser-Monitoring (AMELAG) (Universit\xe4t Bonn und D\xfcsseldorf). \\n\\nDie Firma [ENDA](https://enda.eu/) wurde mit der Datenhaltung beauftragt. Die erhobenen Daten werden dort in einer Datenbank (PiA-Monitor) gespeichert und weiterverarbeitet. \\n\\nDie Verarbeitung, Aufbereitung und Ver\xf6ffentlichung der Daten erfolgen durch das Fachgebiet MF 4 | Fach- und Forschungsdatenmanagement. Fragen zum Datenmanagement und zur Publikationsinfrastruktur k\xf6nnen an das Open Data-Team des Fachgebiets MF4 unter [OpenData@rki.de](mailto:OpenData@rki.de) gerichtet werden.\\n\\n#### Datenerhebung\\n\\nIn AMELAG wurden aufbauend auf die im Rahmen des [ESI-CorA-Projekts](https://doi.org/10.5281/zenodo.10781652) erstellten Handreichungen zur Probennahme und Laboranalytik [technische Leitf\xe4den](http://www.rki.de/abwassersurveillance) entwickelt. Die SARS-CoV-2-Rohdaten der im ESI-CorA-Projekt analysierten Abwasserproben wurden in AMELAG nachgenutzt und sind in den ausgewerteten Daten enthalten.\\nAn jeder beteiligten Kl\xe4ranlage werden in aller Regel zwei Mal pro Woche Rohabwasserproben entnommen und zusammen mit den Begleitparametern (z.B. Volumenstrom, pH-Wert, Temperatur), die f\xfcr die Normalisierung und Qualit\xe4tssicherung n\xf6tig sind, erhoben. Die Rohabwasserproben sollen, sofern m\xf6glich, nach dem Sandfang der Kl\xe4ranlage entnommen werden. Es wird eine 24-Stunden-Mischprobe entnommen, welche mit einem automatischen Probennehmer durchgef\xfchrt wird. Die 24-Stunden-Probennahmen erfolgen in der Regel jeweils montags auf dienstags und mittwochs auf donnerstags. Im Regelfall wird ein Liter der Probe in Probenflaschen abgef\xfcllt und an das Analyselabor versendet.\\nIm Labor erfolgt die Aufkonzentrierung, Extraktion der viralen Nukleins\xe4ure und Quantifizierung der viralen Gensequenzen durch digitale PCR (dPCR) oder quantitative real time PCR (qRT-PCR). Bei SARS-CoV-2 werden mindestens zwei Genfragmente (Vorzugsweise N1, N2, E, ORF oder RdRp) bestimmt und bei den Influenzaviren ein Genfragment (M1 f\xfcr Influenza-A-Virus und M1, NS1, NS2 oder HA f\xfcr Influenza-B-Virus).\\n\\n> Robert Koch-Institut, Fachgebiet 32 (2024): \\"ESI-CorA: SARS-CoV-2-Abwassersurveillance\\" [Data set]. Zenodo. DOI: [10.5281/zenodo.10781653](https://doi.org/10.5281/zenodo.10781652)\\n\\n#### Datenfluss\\n\\n![Datenfluss AMELAG](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/.github/pictures/AMELAG_Datenfluss.png?raw=true \\"Datenfluss AMELAG\\")\\n \\nBeim UBA laufen die Metadaten zu den Kl\xe4ranlagen und den Laboren sowie die regelm\xe4\xdfig erhobenen Monitoringdaten zentral in einer Webanwendung, dem PiA-Monitor (Pathogene im Abwasser), zusammen, werden dort gespeichert und weiterverarbeitet. Die regelm\xe4\xdfig zu erfassenden Monitoringdaten der Kl\xe4ranlagen und die Analysedaten der Labore werden zusammengef\xfchrt und von den datenliefernden Stellen \xfcber die Web-Anwendung der Datenbank importiert. Das UBA, das RKI und die Landesbeh\xf6rden k\xf6nnen auf die Daten im Rahmen ihrer jeweiligen Rechte zugreifen.\\n\\n### Plausibilit\xe4tspr\xfcfung und Weiterverarbeitung der Daten\\n\\nMit dem Datenimport werden die Daten auf Plausibilit\xe4t gepr\xfcft. Dabei werden die Formate, Vollst\xe4ndigkeit der Angaben (Pflichtfeldangaben), Wertebereiche der Monitoringdaten, Plausibilit\xe4t der Datumsangaben und die \xdcbereinstimmung mit hinterlegten Metadaten gepr\xfcft. Nur Datens\xe4tze, welche die Qualit\xe4tspr\xfcfung erfolgreich durchlaufen, werden auch in die Datenbank importiert. F\xfcr SARS-CoV-2 wird der geometrische Mittelwert der Viruslast (Genkopien/Liter) aus den zwei oder mehr gemessenen Zielgenen ermittelt.\\n\\n#### Normalisierungsverfahren\\n\\nEine variierende Abwasserzusammensetzung, z. B. aufgrund von unregelm\xe4\xdfigen industriellen Einfl\xfcssen oder Starkregenereignissen, kann zu ver\xe4nderten Konzentrationen von SARS-CoV-2 f\xfchren. Um diese externen Einfl\xfcsse zu ber\xfccksichtigen, kann die gemessene Viruslast normalisiert werden. \\nIn AMELAG wird die SARS-CoV-2-Last auf den Durchfluss der Kl\xe4ranlage normalisiert. Dabei ist der Trockenwetterzufluss der Kl\xe4ranlage die Referenz. Folgende Formel wurde hierbei verwendet: \\n\\n$$ Gene_{normalisiert} = {Q_{KA\\\\_aktuell}}/{Q_{KA\\\\_median}} \\\\cdot Gene_{gemittelt} $$\\n\\nwo: \\n\\n- $Q_{KA\\\\_aktuell}$ : Volumenstrom der Kl\xe4ranlage im Probenahmezeitraum und \\n- $Q_{KA\\\\_median}$ : Median des Volumenstrom der Kl\xe4ranlage \\n\\nDie Normalisierung erfolgt automatisiert mit dem Datenimport. Die gemessenen Viruslasten von Influenzaviren werden derzeit nicht normalisiert, da sich f\xfcr die Influenzavirusdaten keine verbesserte Datenqualit\xe4t durch die Normalisierung feststellen l\xe4sst. \\n\\n### Datenauswertung\\n\\nDie Auswertung der Daten erfolgt am RKI \xfcber R-Skripte. Die Skripte sind in den [Kontextmaterialien](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Kontextmaterialien) enthalten. Eine genaue Beschreibung der Methodikist in den [technischen Leitf\xe4den](http://www.rki.de/abwassersurveillance) hinterlget. Die Ergebnisse werden w\xf6chentlich im AMELAG [Wochenbericht](https://edoc.rki.de/handle/176904/11665) auf der RKI-Webseite ver\xf6ffentlicht. \\n\\nF\xfcr jeden Standort werden die Messwerte f\xfcr SARS-CoV-2 (normalisiert) und Influenza A und B-Virus (nicht normalisiert) in Genkopien pro Liter (Genkopien/L) angegeben. Zus\xe4tzlich werden die Messwerte der logarithmierten und ggf. normalisierten Genkopien mittels einer lokal gewichteten Regression (LOESS) gegl\xe4ttet und zugeh\xf6rige Konfidenzintervalle berechnet. \\n\\nF\xfcr SARS-CoV-2 wird ein Trend berechnet. Der Trend f\xfcr eine Kl\xe4ranlage ergibt sich aus der Ver\xe4nderung des von der LOESS-Methode gesch\xe4tzten Werts an einem Mittwoch einer Woche gegen\xfcber dem f\xfcr den vorherigen Mittwoch vorhergesagten Wert, wobei die Werte vorher zur\xfcck auf die Originalskala transformiert wurden. \\n- `fallend`: die gegl\xe4ttete Viruslast ist um mehr als 15% zur Vorwoche gesunken \\n- `ansteigend`: die gegl\xe4ttete Viruslast ist um mehr als 15% zur Vorwoche gestiegen\\n- `gleichbleibend`: die gegl\xe4ttete Viruslast hat sich nicht mehr als 15% zur Vorwoche ver\xe4ndert \\n- `keine Daten vorhanden`: f\xfcr den Mittwoch dieser oder der vergangenen Woche leigt kein gegl\xe4tteter LOESS-Wert vor\\n- `NA`: ist f\xfcr alle Tage au\xdfer Mittwoch eingetragen. \\n\\n#### Aggregation der Standortwerte\\n\\nEs werden die einzelnen Zeitreihen der Standorte aggregiert, um einen bundesweiten Verlauf der SARS-CoV-2 bzw. Influenzaviren-Viruslast im Abwasser abzubilden. Daf\xfcr werden in jeder Woche, in der f\xfcr mindestens 10 Standorte Messwerte vorliegen, der Mittelwert \xfcber die \xfcber eine Woche gemittelten logarithmierten Messwerte der einzelnen Standorte berechnet. Dabei wird nach den angeschlossenen Einwohnern der Kl\xe4ranlage gewichtet. F\xfcr Influenzaviren erfolgt derzeit keine Gewichtung nach Einwohnern. \\n\\n### Hinweise zur Datenauswertung\\n\\nBei der Datenbewertung sind einige Besonderheiten zu beachten:\\n\\n* Es wurden an den unterschiedlichen Kl\xe4ranlagen und f\xfcr die unterschiedlichen Viren verschiedene Zielgene gemessen \\n * SARS-CoV-2: eine Kombination aus vorzugsweise N1, N2, E, ORF oder RdRp\\n * Influenza A-Virus: M1\\n * InfluenzaB-Virus: M1, NS1, NS2, HA\\n* Der Standort Hamburg ist mit zwei Zul\xe4ufen vertreten: \u201cHamburg Nord\u201d und \u201cHamburg S\xfcd\u201d.\\n* Bei Werten unterhalb der Bestimmungsgrenze (BG) wird mit der H\xe4lfte der Bestimmungsgrenze als Wert gerechnet (0,5 * BG).\\n\\n#### Limitationen \\n\\nAbwasserdaten erlauben keinen R\xfcckschluss auf die Krankheitsschwere oder die Belastung des Gesundheitssystems. Aus Abwasserdaten kann nach aktuellem Stand nicht pr\xe4zise auf Inzidenz/Pr\xe4valenz oder die Untererfassung (die sog. \u201eDunkelziffer\u201d) geschlossen werden. F\xfcr die epidemiologische Lagebewertung sollten die Daten immer in Zusammenschau mit anderen Indikatoren, z.B. aus der syndromischen Surveillance, betrachtet werden.\\nAbsolute Viruslasten k\xf6nnen insbesondere \xfcber l\xe4ngere Zeitr\xe4ume nicht direkt im Hinblick auf die Anzahl an Infizierten verglichen werden, da sich die ausgeschiedene Virusmenge pro infizierter Person beispielsweise zwischen verschiedenen Virusvarianten unterscheiden kann.\\nDie ermittelten Werte werden durch eine Vielzahl von Faktoren (z.B. Ver\xe4nderungen der Abwasserzuleitung, Starkregenereignisse oder touristische Ereignisse) beeinflusst, was durch die Normalisierung nur teilweise ausgeglichen werden kann.\\n\\nVon der Probenahme bis zur Daten\xfcbermittlung und Ver\xf6ffentlichung vom RKI kann es zu einem Zeitverzug von bis zu zwei Wochen kommen.\\n\\n## Inhalt und Aufbau des Datensatzes \\n\\nIm AMELAG-Datensatz werden Daten und Kontextmaterialien zu SARS-CoV-2-Nachweisen im Abwasser bereitgestellt. Die im Projekt erhobenen Daten liegen f\xfcr [einzelne Standorte](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Normalisierten-Daten-zur-SARS-CoV-2-Viruslast) und als [aggregierte Zeitreihe](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Zeitreihe-der-SARS-CoV-2-Viruslast) vor.\\n\\nIm Datensatz zus\xe4tzlich enthalten sind:\\n- Lizenz-Datei mit der Nutzungslizenz des Datensatzes in Deutsch und Englisch\\n- Datensatzdokumentation in deutscher Sprache\\n- Metadaten zur automatisierten Weiterverarbeitung\\n- Kontexmaterialien zur Datenanalyse\\n\\n### Daten f\xfcr die einzelnen Standorte\\n\\nIn der Datei [`amelag_einzelstandorte.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) sind die normalisierten Daten zur SARS-CoV-2-Viruslast und die nicht normalisierten Daten zur Influenza A- und B-Viruslast f\xfcr die einzelnen Standorte angegeben. \\n\\n> [amelag_einzelstandorte.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv)\\n\\n#### Variablen und Variablenauspr\xe4gungen \\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_START: {\\"id\\": \\"amelag_einzelstandorte\\", \\"lang\\": \\"de\\"} --\x3e\\n\\nDie Datei [amelag_einzelstandorte.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) enth\xe4lt die in der folgenden Tabelle abgebildeten Variablen und deren Auspr\xe4gungen. Ein maschinenlesbares Datenschema ist im [Data Package Standard](https://datapackage.org/) in [tableschema_amelag_einzelstandorte.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.json) hinterlegt:\\n> [tableschema_amelag_einzelstandorte.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.json)\\n\\n\x3c!-- DATA_SCHEMA_TABLE_START --\x3e\\n| Variable | Typ | Auspr\xe4gungen | Beschreibung |\\n|:----------------------|:--------|:-----------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\\n| standort | string | Eintrag kann nicht leer sein | Standort der Kl\xe4ranlage. |\\n| bundesland | string | Werte: `BB`, `BE`, `BW`, `BY`, `HB`, `HE`, `HH`, \u2026 | K\xfcrzel des Bundeslandes, in dem sich die Kl\xe4ranlage befindet. |\\n| datum | date | Format: `YYYY-MM-DD`<br>Fehlende Werte: `NA` | Datum, an dem die 24-Stunden-Mischprobenahme in der Kl\xe4ranlage begonnen hat. |\\n| viruslast | number | Werte: `\u22650`<br>Fehlende Werte: `NA` | Gemessene Viruslast (in Genkopien pro Liter). |\\n| loess_vorhersage | number | Werte: `\u22650`<br>Fehlende Werte: `NA` | Vorhergesagte Viruslast (mittels einer LOESS-Regression, optimiert mittels AICc-Kriterium f\xfcr die 10er-logarithmierten Viruslasten). |\\n| loess_obere_schranke | number | Werte: `\u22650`<br>Fehlende Werte: `NA` | Obere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| loess_untere_schranke | number | Werte: `\u22650`<br>Fehlende Werte: `NA` | Untere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| loess_aenderung | number | Fehlende Werte: `NA` | \xc4nderung des LOESS-Vorhersagewerts zur Vorwoche, d.h. Quotient aus aktuellem Wert und dem Vorwochenwert. |\\n| einwohner | integer | Werte: `\u22650`<br>Fehlende Werte: `NA` | Anzahl an Einwohnern, die an die Kl\xe4ranlage angeschlossen sind. |\\n| laborwechsel | string | Werte: `ja`, `nein`<br>Fehlende Werte: `NA` | Gibt an, ob es Laborwechsel bzw. \xc4nderungen in den Labormethoden gab. |\\n| trend | string | Werte: `Ansteigend`, `Fallend`, `Unver\xe4ndert`, `keine Daten vorhanden`<br>Fehlende Werte: `NA` | Kategorisierte Ver\xe4nderung des gegl\xe4tteten LOESS-Wertes von einem Mittwoch zum Mittwoch der Vorwoche (siehe [Datenauswertung](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Datenauswertung)) |\\n| normalisierung | string | Werte: `ja`, `nein`<br>Fehlende Werte: `NA` | Gibt an, ob die Viruslast nach Durchfluss normalisiert wurde. |\\n| typ | string | Werte: `SARS-CoV-2`, `Influenza A`, `Influenza B`, `Influenza A+B` | Virustyp. |\\n| unter_bg | string | Werte: `ja`, `nein`<br>Fehlende Werte: `NA` | Gibt an, ob mindestens die H\xe4lfte der gemessenen Gene unterhalb der Bestimmungsgrenze liegen. |\\n\\n\x3c!-- DATA_SCHEMA_TABLE_END --\x3e\\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_END --\x3e\\n\\n\\n\\n### Daten \xfcber alle Standorte aggregiert\\n\\nIn der Datei [`amelag_aggregierte_kurve.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) ist die Zeitreihe der SARS-CoV-2-, Influenza A- und Influenza B-Viruslast auf aggregierter bzw. bundesweiter Ebene enthalten.\\n\\n> [amelag_aggregierte_kurve.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv)\\n\\n#### Variablen und Variablenauspr\xe4gungen \\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_START: {\\"id\\": \\"amelag_aggregierte_kurve\\", \\"lang\\": \\"de\\"} --\x3e\\n\\nDie Datei [amelag_aggregierte_kurve.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) enth\xe4lt die in der folgenden Tabelle abgebildeten Variablen und deren Auspr\xe4gungen. Ein maschinenlesbares Datenschema ist im [Data Package Standard](https://datapackage.org/) in [tableschema_amelag_aggregierte_kurve.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.json) hinterlegt:\\n> [tableschema_amelag_aggregierte_kurve.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.json)\\n\\n\x3c!-- DATA_SCHEMA_TABLE_START --\x3e\\n| Variable | Typ | Auspr\xe4gungen | Beschreibung |\\n|:----------------------|:--------|:-------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\\n| datum | date | Format: `YYYY-MM-DD` | Datum des Mittwochs einer Woche. Die Daten der unterliegenden Einzelzeitreihen werden innerhalb des Zeitraums vom vorherigen Donnerstag bis zum angegebenen Mittwoch gemittelt. |\\n| n | integer | Werte: `\u22650`<br>Fehlende Werte: `NA` | Anzahl der Standorte, die mindestens einen Messwert im durch \\"datum\\" beschriebenen Zeitraum \xfcbermittelt haben. |\\n| anteil_bev | number | Werte: `\u22650`<br>Fehlende Werte: `NA` | Anteil der Gesamtbev\xf6lkerung in Deutschland, der an die \xfcbermittelnden Kl\xe4ranlagen angeschlossen ist. |\\n| viruslast | number | Werte: `\u22650`<br>Fehlende Werte: `NA` | Gemessene Viruslast (in Genkopien pro Liter), gemittelt \xfcber alle Standorte und f\xfcr SARS-CoV-2 gewichtet nach angeschlossenen Einwohnern der Kl\xe4ranlagen. Vor der Mittelung \xfcber die Standorte wurden alle Messwerte der Standorte in den letzten 7 Tagen jeweils mittels 10er-Logarithmus transformiert und \xfcber die einzelnen Standorte gemittelt. Die angegebene Viruslast ist der auf die Originalskala zur\xfccktransformierte Mittelwert. |\\n| loess_vorhersage | number | Werte: `\u22650`<br>Fehlende Werte: `NA` | Vorhergesagte Viruslast (mittels einer LOESS-Regression, zur\xfccktransformiert auf die Originalskala). |\\n| loess_obere_schranke | number | Werte: `\u22650` | Obere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| loess_untere_schranke | number | Werte: `\u22650` | Untere Grenze des punktweisen 95%-Konfidenzintervalls des LOESS-Vorhersagewerts. |\\n| normalisierung | string | Werte: `ja`, `nein`<br>Fehlende Werte: `NA` | Gibt an, ob die unterliegenden Einzelzeitreihen nach Durchfluss normalisiert sind. |\\n| typ | string | Werte: `SARS-CoV-2`, `Influenza A`, `Influenza B`, `Influenza A+B` | Virustyp. |\\n\\n\x3c!-- DATA_SCHEMA_TABLE_END --\x3e\\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_END --\x3e\\n### Kontextmaterialien\\n\\nZur Reproduktion der Ergebnisse des [AMELAG Wochenberichts](https://edoc.rki.de/handle/176904/11665) werden die zur Erstellung der Analyse verwendeten R-Skripte bereitgestellt. Die Skripte befinden sich im Ordner \\"[Kontextmatrialien](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\" des Datensatzes.\\n\\n> [Kontextmatrialien](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\n\\n### Metadaten \\n\\nZur Erh\xf6hung der Auffindbarkeit sind die bereitgestellten Daten mit Metadaten beschrieben. \xdcber GitHub Actions werden Metadaten an die entsprechenden Plattformen verteilt. F\xfcr jede Plattform existiert eine spezifische Metadatendatei, diese sind im Metadatenordner hinterlegt: \\n\\n> [Metadaten/](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/) \xa0 \\n\\nVersionierung und DOI-Vergabe erfolgt \xfcber [Zenodo.org](https://zenodo.org). Die f\xfcr den Import in Zenodo bereitgestellten Metadaten sind in der [zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json) hinterlegt. Die Dokumentation der einzelnen Metadatenvariablen ist unter https://developers.zenodo.org/#representation nachlesbar. \xa0\\n \\n> [Metadaten/zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json) \\n\\nIn der zenodo.json ist neben der Publikationsdatum (`\\"publication_date\\"`) auch der Datenstand in folgendem Format enthalten (Beispiel): \\n\\n```\\n \\"dates\\": [\\n {\\n \\"start\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"end\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"type\\": \\"Collected\\",\\n \\"description\\": \\"Date when the Dataset was created\\"\\n }\\n ],\\n``` \\n\\n## Hinweise zur Nachnutzung der Daten \\n\\nOffene Forschungsdaten des RKI werden auf [Zenodo.org](http://Zenodo.org/), [GitHub.com](http://GitHub.com/), [OpenCoDE](https://gitlab.opencode.de) und [Edoc.rki.de](http://Edoc.rki.de/) bereitgestellt: \\n\\n- https://zenodo.org/communities/robertkochinstitut \\n- https://github.com/robert-koch-institut \\n- https://gitlab.opencode.de/robert-koch-institut \\n- https://edoc.rki.de/ \\n \\n### Lizenz \\n\\nDer Datensatz \\"Abwassersurveillance AMELAG\\" ist lizenziert unter der [Creative Commons Namensnennung 4.0 International Public License | CC-BY 4.0 International](https://creativecommons.org/licenses/by/4.0/deed.de). \\n\\nDie im Datensatz bereitgestellten Daten sind, unter Bedingung der Namensnennung des Robert Koch-Instituts als Quelle, frei verf\xfcgbar. Das bedeutet, jede Person hat das Recht die Daten zu verarbeiten und zu ver\xe4ndern, Derivate des Datensatzes zu erstellen und sie f\xfcr kommerzielle und nicht kommerzielle Zwecke zu nutzen. Weitere Informationen zur Lizenz finden sich in der [LICENSE](https://github.com/robert-koch-institut/Daten_der_Notaufnahmesurveillance/blob/main/LICENSE) bzw. [LIZENZ](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/LIZENZ) Datei des Datensatzes. \\n\\n\\n \\n# Wastewater surveillance AMELAG \\n\\n[Robert Koch Institute](https://www.rki.de/EN) | RKI \\nNordufer 20 \\n13353 Berlin \\n\\n<br>\\n\\n**Unit 32 | Surveillance** \\n\\n<br>\\n\\n**Cite** \\nFachgebiet 32, Robert Koch-Institut (2024): Abwassersurveillance AMELAG, Berlin: Zenodo. [DOI: 10.5281/zenodo.12635858](https://doi.org/10.5281/zenodo.12635858)\\n\\n---\\n\\n## Information on the dataset and context of origin\\n\\nIn AMELAG (\u201cAbwassermonitoring f\xfcr die epidemiologische Lagebewertung\u201d, German for wastewater monitoring for epidemiological situation assessment), running from 22.11.2022 to 31.12.2024, local authorities, wastewater treatment plants (WWTP) and laboratories are working together to take, analyze and evaluate wastewater samples. The project aims at testing wastewater samples for selected pathogens and to establish it as an additional indicator for the epidemiological situation assessment at state and federal level. Further aims of the project include further development of structures and processes for a nationwide wastewater surveillance network, to develop concepts for continuity and to research the possibilities for monitoring other pathogens in wastewater. Currently, wastewater samples from selected treatment plants are being tested for SARS-CoV-2 and influenza viruses. \\n\\nWastewater surveillance is a technique for detecting pathogens in wastewater to better control health protection measures. Wastewater surveillance has a range of [applications](https://www.rki.de/DE/Content/Infekt/EpidBull/Archiv/2024/Ausgaben/34_24.pdf?__blob=publicationFile). Wastewater data, however, underlie several limiations. For example, they do not allow for an accurate assessment of disease severity or the burden on the healthcare system. In epidemiological assessments, the data should be combined with other indicators, e.g. from syndromic surveillance. \\n\\n### Administrative and organizational information\\n\\nAMELAG is a project funded by the [Federal Ministry of Health (BMG)](https://www.bundesgesundheitsministerium.de/en/index.html) and is being conducted in cooperation with the Federal Ministry for the Environment, Nature Conservation, Nuclear Safety and [Consumer Protection (BMUV)](https://www.bmuv.de/en/).\\nThe project is being carried out jointly by the Robert Koch Institute (RKI) and the [Federal Environment Agency (UBA)](https://www.umweltbundesamt.de/en). Further information on AMELAG can be found on the [project website](https://www.rki.de/EN/Content/Institute/DepartmentsUnits/InfDiseaseEpidem/Div32/WastewaterSurveillance/WastewaterSurveillance.html). \\nThe participating WWTPs are responsible for taking samples, which are analyzed by the participating laboratories. In addition to commercial laboratories, state laboratories and the Federal Environment Agency, the Central Medical Service of the German Armed Forces also carries out part of the analysis.\\n\\nSome of the WWTPs and laboratories are also involved in wastewater surveillance projects in the federal states (Baden-W\xfcrttemberg, Bavaria, Berlin, Brandenburg, Hamburg, Hesse, Rhineland-Palatinate, Saxony-Anhalt). \\nOther WWTPs and laboratories are part of the following research projects:\\n- [WBEready](https://www.fiw.rwth-aachen.de/aktuelles-veranstaltungen/aktuelles/wbeready) - A research consortium consisting of Emschergenossenschaft and LippeverbandEGLV, Research Institute for Water Management and Climate Future at RWTH Aachen FiW, University Hospital Frankfurt, Goethe University Frankfurt am Main, University Medicine Essen (Institute for Artificial Intelligence, Institute for Urban Public Health), RWTH Aachen, Institute for Urban Water Management.\\n- Establishment of methods for the detection of viruses in wastewater to assess the infection situation in the population (University of Dresden)\\n- Development of a state-wide wastewater surveillance system in Thuringia using mobility data and artificial intelligence (research consortium of the University of Weimar, University of Jena, University of Hamburg, Hamm-Lippstadt University of Applied Sciences, SMA Development GmbH, KOWUG Kommunale Wasser- und Umwelttechnik GmbH, Analytik Jena GmbH) \\n- Establishment of a multiplex PCR from wastewater and for detection and characterization of RSV in the context of SARS-CoV-2 wastewater monitoring (AMELAG) (University of Bonn and D\xfcsseldorf). \\n\\nThe company [ENDA](https://enda.eu/) was commissioned with data management. The data collected are stored and processed in a database (PiA-Monitor). \\n\\nThe data are processed, edited and published by the Department MF 4 | Subject and Research Data Management. Questions about data management and the publication infrastructure can be directed to the Open Data team of the MF4 department at [OpenData@rki.de](mailto:OpenData@rki.de).\\n\\n#### Data collection\\n\\nIn AMELAG, [technical guidelines](http://www.rki.de/abwassersurveillance) were developed based on the handouts for sampling and laboratory analysis created as part of the [ESI-CorA project](https://doi.org/10.5281/zenodo.10781652). The raw data of the SARS-CoV-2 samples analyzed in the ESI-CorA project are reused in AMELAG and included in the evaluated data.\\nRaw wastewater samples are generally collected twice a week at each participating WWTP, along with essential parameters such as volume flow, pH value, and temperature. These parameters are necessary for normalization and quality assurance. Where possible, the raw sewage samples should be taken after the grit chamber of the WWTP. A 24-hour composite sample is collected using an automatic sampler. The 24-hour samples are usually taken from Mondays to Tuesdays, and from Wednesdays to Thursdays. As a rule, one liter of the sample is filled into sample bottles and sent to the analysis laboratory.\\nIn the laboratory, the viral nucleic acid is concentrated, extracted and the viral gene sequences are quantified by digital PCR (dPCR) or quantitative real-time PCR (qRT-PCR). For SARS-CoV-2, at least two representative gene fragments (preferably N1, N2, E, ORF or RdRp) are determined, for the Influenza virus only one gene fragment (M1 for Influenza A Virus and M1, NS1, NS2 or HA for Influenza B Virus). \\n\\n> Robert Koch Institute, Department 32 (2024): \\"ESI-CorA: SARS-CoV-2 wastewater surveillance\\" [Dataset]. Zenodo. DOI: [10.5281/zenodo.10781653](https://doi.org/10.5281/zenodo.10781652)\\n\\n#### Data flow\\n\\n![Data flow AMELAG](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/.github/pictures/AMELAG_Datenfluss.png?raw=true \\"Data flow AMELAG\\")\\n \\nAt the UBA, metadata on the WWTPs and the laboratories as well as the regularly collected monitoring data are centrally stored and processed further in a web application, the PiA-Monitor (Pathogens in Wastewater). The monitoring data to be collected regularly from the WWTP and the data of the laboratories are merged and imported into the database by the data providers via the web application. The UBA, the RKI and the federal states can access the data within the scope of their respective rights.\\n\\n### Plausibility check and further processing of the data\\n\\nA plausibility check is run on the data as they are imported. The formats, completeness of the information (mandatory fields), value ranges of the monitoring data, plausibility of the dates and compliance with stored metadata are checked. Only data records that successfully pass the quality check are imported into the database. For SARS-CoV-2, the geometric mean of the viral load (gene copies/L) is then determined from the two or more measured target genes.\\n\\n#### Normalization procedure\\n\\nA varying wastewater composition, e.g. due to irregular industrial influences or heavy rainfall events, can lead to changing concentrations of SARS-CoV-2. To take these external influences into account, the measured viral load can be normalized. \\nIn AMELAG, normalization of the SARS-CoV-2 data is performed according to flow rate. The dry weather inflow of the WWTP is the reference. The following formula was used: \\n\\n$$ Gene_{normalized} = {Q_{KA\\\\_current}}/{Q_{KA\\\\_median}} \\\\cdot Gene_{averaged} $$\\n\\nwhere: \\n\\n- $Q_{KA\\\\_aktuell}$ : Volume flow of the wastewater treatment plant in the sampling period and \\n- $Q_{KA\\\\_median}$ : Median of the volume flow of the wastewater treatment plant \\n\\nNormalization is automated with the data import. The measured Influenza data are currently not normalized as the normalization does not show an imporved data quality for influenza viruses. \\n\\n### Data evaluation\\n\\nThe data are evaluated at the RKI using R scripts. The scripts are contained in the [context materials](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Kontextmaterialien). A detailed description of the methodology is provided in the [technical guidelines](http://www.rki.de/abwassersurveillance). The results are published in the RKI\xb4s [weekly report](https://www.rki.de/DE/Content/Institut/OrgEinheiten/Abt3/FG32/Abwassersurveillance/Bericht_Abwassersurveillance.html). \\nFor each WWTP, the measured values for SARS-CoV-2 (normalized) and Inlfuenza A and B viruses (not normalized) are reported in gene copies per liter (gene copies/L). In addition, the measured values of the logarithmized normalized gene copies are smoothed using a locally weighted regression (LOESS) and associated confidence intervals are calculated. \\n\\nA trend is calculated for SARS-CoV-2. The trend for a WWTP results from the change in the value estimated by the LOESS method on a Wednesday of a week compared to the value predicted for the previous Wednesday, whereby the values were previously transformed back to the original scale. \\n- `falling`: The smoothed viral load has fallen by more than 15% compared to the previous week \\n- `increasing`: The smoothed viral load has increased by more than 15% compared to the previous week\\n- `stable`: The smoothed viral load has not changed by more than 15% compared to the previous week \\n- `No data available`: No smoothed LOESS value is available for the Wednesday of this or the previous week\\n- `NA`: Is entered for all days except Wednesday. \\n\\n#### Aggregation of the WWTP values\\n\\nThe individual time series of the WWTP are aggregated in order to depict a nationwide course of the SARS-CoV-2 and Influenzavirus viral loads in wastewater. For each week in which measured values are available for at least 10 sites, the average of the logarithmized measured values of the individual sites averaged over one week is calculated. This value is then weighted by the number of inhabitants connected to the WWTPs. The influenza data are currently not weighted by the number of inhabitants.\\n\\n### Notes on data evaluation\\n\\nSome things to take into account when evaluating the data:\\n\\n* Different target genes were measured at the different sites\\n * SARS-CoV-2: a combination of preferably N1, N2, E, ORF oder RdRp\\n * Influenza A-Virus: M1\\n * Influenza B-Virus: M1, NS1, NS2, HA\\n* The Hamburg site is represented by two inflows: \\"Hamburg North\\" and \\"Hamburg South\\".\\n* For values below the limit of quantification (LOQ), half of the LOQ is used as the value (0.5 * LOQ).\\n\\n#### Limitations \\n\\nWastewater data do not allow conclusions to be drawn about disease severity or the burden on the healthcare system. At present, it is not possible to draw precise conclusions about incidence/prevalence or underreporting from wastewater data. When assessing a sitaution epidemiologically, the data should always be considered in combination with other indicators, such as those from syndromic surveillance.\\nAbsolute viral loads cannot be compared directly to the number of infected persons, especially over longer periods of time, as, for example, the amount of virus excreted per infected person can differ between different virus variants.\\nThe values determined are influenced by a variety of factors (e.g. changes in the wastewater supply, heavy rainfall events, or tourist events), which can only be partially compensated for by normalization.\\nThe time delay from sampling to transmission and further publication by the RKI can take up to two weeks. \\n\\n## Content and structure of the dataset \\n\\nThe AMELAG dataset provides data and contextual material on SARS-CoV-2 detections in wastewater. The data collected in the project are available for [individual sites](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Normalisierten-Daten-zur-SARS-CoV-2-Viruslast) and as [aggregated time series](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Zeitreihe-der-SARS-CoV-2-Viruslast).\\n\\nThe dataset also contains:\\n- License file with the license to use the dataset in German and English\\n- Dataset documentation in German\\n- Metadata for automated further processing\\n- Context materials for data analysis\\n\\n### Data for individual WWTP \\n\\nThe file [`amelag_einzelstandorte.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) contains the normalized SARS-CoV-2 and not normalized influenza virus viral load data for the individual sites. \\n\\n> [amelag_einzelstandorte.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv)\\n\\n#### Variables and variable values \\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_START: {\\"id\\": \\"amelag_einzelstandorte\\", \\"lang\\": \\"en\\"} --\x3e\\n\\nThe file [amelag_einzelstandorte.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_einzelstandorte.tsv) contains the variables and their values shown in the following table. A machine-readable data schema is stored in [Data Package Format](https://datapackage.org/) in [tableschema_amelag_einzelstandorte.en.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.en.json):\\n> [tableschema_amelag_einzelstandorte.en.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.en.json)\\n\\n\x3c!-- DATA_SCHEMA_TABLE_START --\x3e\\n| Variable | Type | Characteristic | Description |\\n|:----------------------|:--------|:------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\\n| standort | string | Value can not be missing | Location of the wastewater treatment. |\\n| bundesland | string | Values: `BB`, `BE`, `BW`, `BY`, `HB`, `HE`, `HH`, \u2026 | Federal state (abbreviated) in which the wastewater treatment plant is located. |\\n| datum | date | Format: `YYYY-MM-DD`<br>Missing values: `NA` | Date on which the 24-hour composite sample started in the wastewater treatment plant. |\\n| viruslast | number | Values: `\u22650`<br>Missing values: `NA` | Measured viral load in gene copies per liter. |\\n| loess_vorhersage | number | Values: `\u22650`<br>Missing values: `NA` | Predicated viral load (using a LOESS regression, optimized using AICc criterion for the 10s logarithmized viral loads). |\\n| loess_obere_schranke | number | Values: `\u22650`<br>Missing values: `NA` | Upper bound of the pointwise 95% confidence interval of the LOESS predicted value. |\\n| loess_untere_schranke | number | Values: `\u22650`<br>Missing values: `NA` | Lower bound of the pointwise 95% confidence interval of the LOESS predicted value. |\\n| loess_aenderung | number | Missing values: `NA` | Change in the LOESS predicted value compared to the previous week, i.e. ratio of the current value and the previous week\'s value. |\\n| einwohner | integer | Values: `\u22650`<br>Missing values: `NA` | Number of inhabitants connected to the site\'s sewage treatment plant. |\\n| laborwechsel | string | Values: `ja`, `nein`<br>Missing values: `NA` | Indicates whether change in laboratory or change in laboratory mathods occurred. |\\n| trend | string | Values: `Ansteigend`, `Fallend`, `Unver\xe4ndert`, `keine Daten vorhanden`<br>Missing values: `NA` | Categorized change in the smoothed LOESS value from a Wednesday to the Wednesday of the previous week (see [data evaluation](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main?tab=readme-ov-file#Datenauswertung)) |\\n| normalisierung | string | Values: `ja`, `nein`<br>Missing values: `NA` | Indicates whether values were normalized by flowrate (`ja`=yes, `nein`=no) |\\n| typ | string | Values: `SARS-CoV-2`, `Influenza A`, `Influenza B`, `Influenza A+B` | Virus type. |\\n| unter_bg | string | Values: `ja`, `nein`<br>Missing values: `NA` | Indicates if at least half of the measured genes are under the limit of quantification (`ja`=yes, `nein`=no). |\\n\\n\x3c!-- DATA_SCHEMA_TABLE_END --\x3e\\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_END --\x3e\\n\\n### Data aggregated across all WWTP \\n\\nIn the file [`amelag_aggregated_curve.tsv`](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) contains the time series of the SARS-CoV-2 and influenza virus viral loads on an aggregated or nationwide level.\\n\\n> [amelag_aggregierte_kurve.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv)\\n\\n#### Variables and variable characteristics \\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_START: {\\"id\\": \\"amelag_aggregierte_kurve\\", \\"lang\\": \\"en\\"} --\x3e\\n\\nThe file [amelag_aggregierte_kurve.tsv](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/amelag_aggregierte_kurve.tsv) contains the variables and their values shown in the following table. A machine-readable data schema is stored in [Data Package Format](https://datapackage.org/) in [tableschema_amelag_aggregierte_kurve.en.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.en.json):\\n> [tableschema_amelag_aggregierte_kurve.en.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.en.json)\\n\\n\x3c!-- DATA_SCHEMA_TABLE_START --\x3e\\n| Variable | Type | Characteristic | Description |\\n|:----------------------|:--------|:--------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\\n| datum | date | Format: `YYYY-MM-DD` | Date of Wednesdays of a week. The data of the underlying individual time series are averaged within the period from the previous Thursday to the specified Wednesday. |\\n| n | integer | Values: `\u22650`<br>Missing values: `NA` | Number of locations that have transmitted at least one measured value in the period defined by \\"date\\". |\\n| anteil_bev | number | Values: `\u22650`<br>Missing values: `NA` | Proportion of the total population in Germany that is connected to the transmitting sewage treatment plants. |\\n| viruslast | number | Values: `\u22650`<br>Missing values: `NA` | Measured viral load (in gene copies per liter averaged over all sites and, for SARS-CoV-2, weighted by connected inhabitants of the wastewater treatment plants). Before averaging across the sites, all measured values of the sites in the last 7 days were transformed using the logarithm of 10 and averaged across the individual sites. The indicated viral load is the mean value transformed back to the original scale. |\\n| loess_vorhersage | number | Values: `\u22650`<br>Missing values: `NA` | Predicted viral load (predicted using a LOESS regression, transformed back to the original scale). |\\n| loess_obere_schranke | number | Values: `\u22650` | Upper bound of the 95% confidence interval of the LOESS predicted value. |\\n| loess_untere_schranke | number | Values: `\u22650` | Lower bound of the 95% confidence interval of the LOESS predicted value. |\\n| normalisierung | string | Values: `ja`, `nein`<br>Missing values: `NA` | Indicates whether individual time series were normalized by flowrate (`ja`=yes, `nein`=no). |\\n| typ | string | Values: `SARS-CoV-2`, `Influenza A`, `Influenza B`, `Influenza A+B` | Virus type. |\\n\\n\x3c!-- DATA_SCHEMA_TABLE_END --\x3e\\n\\n\x3c!-- DATA_SCHEMA_SPECIFICATION_END --\x3e\\n\\n### Context materials\\n\\nTo reproduce the results of the [AMELAG weekly report](https://edoc.rki.de/handle/176904/11665), the R scripts used to create the analysis are provided. The scripts can be found in the \\"[Contextual materials](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\" folder of the dataset.\\n\\n> [Context Matrials](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Kontextmaterialien)\\n\\n### Metadata\\n\\nTo increase findability, the provided data are described with metadata. The Metadata are distributed to the relevant platforms via GitHub Actions. There is a specific metadata file for each platform; these are stored in the metadata folder:\\n\\n> [Metadaten/](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/tree/main/Metadaten/)\\n\\nVersioning and DOI assignment are performed via [Zenodo.org](https://zenodo.org). The metadata prepared for import into Zenodo are stored in the [zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json). Documentation of the individual metadata variables can be found at https://developers.zenodo.org/representation.\\n\\n> [Metadaten/zenodo.json](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/Metadaten/zenodo.json)\\n\\nThe zenodo.json includes the publication date and the date of the data status in the following format (example):\\n```\\n \\"publication_date\\": \\"2024-06-19\\",\\n \\"dates\\": [\\n {\\n \\"start\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"end\\": \\"2023-09-11T15:00:21+02:00\\",\\n \\"type\\": \\"Collected\\",\\n \\"description\\": \\"Date when the Dataset was created\\"\\n }\\n ],\\n```\\n\\n## Guidelines for Reuse of the Data\\n\\nOpen data from the RKI are available on [Zenodo.org](http://Zenodo.org/), [GitHub.com](http://GitHub.com/), [OpenCoDE](https://gitlab.opencode.de), and [Edoc.rki.de](http://Edoc.rki.de/):\\n\\n- https://zenodo.org/communities/robertkochinstitut\\n- https://github.com/robert-koch-institut\\n- https://gitlab.opencode.de/robert-koch-institut\\n- https://edoc.rki.de/\\n\\n### License\\n\\nThe \\"Abwassersurveillance AMELAG\\" dataset is licensed under the [Creative Commons Attribution 4.0 International Public License | CC-BY](https://creativecommons.org/licenses/by/4.0/deed.en).\\n\\nThe data provided in the dataset are freely available, with the condition of attributing the Robert Koch Institute as the source, for anyone to process and modify, create derivatives of the dataset and use them for commercial and non-commercial purposes. \\nFurther information about the license can be found in the [LICENSE](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/LICENSE) or [LIZENZ](https://github.com/robert-koch-institut/Abwassersurveillance_AMELAG/blob/main/LIZENZ) file of the dataset.","licence":"CC-BY-4.0","content":[{"$type":"file","path":"Readme.md","name":"Readme.md","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Readme.md","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Readme.md","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Readme.md","size":61722,"lfs":false},{"$type":"file","path":"[Dokumentation]_Abwassersurveillance_AMELAG.pdf","name":"[Dokumentation]_Abwassersurveillance_AMELAG.pdf","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/[Dokumentation]_Abwassersurveillance_AMELAG.pdf","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/[Dokumentation]_Abwassersurveillance_AMELAG.pdf","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/[Dokumentation]_Abwassersurveillance_AMELAG.pdf","size":251133,"lfs":false},{"$type":"file","path":"amelag_aggregierte_kurve.tsv","name":"amelag_aggregierte_kurve.tsv","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_aggregierte_kurve.tsv","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_aggregierte_kurve.tsv","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_aggregierte_kurve.tsv","size":26466,"lfs":false},{"$type":"file","path":"amelag_einzelstandorte.tsv","name":"amelag_einzelstandorte.tsv","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_einzelstandorte.tsv","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_einzelstandorte.tsv","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/amelag_einzelstandorte.tsv","size":14875086,"lfs":false},{"$type":"file","path":"datapackage.en.json","name":"datapackage.en.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/datapackage.en.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/datapackage.en.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/datapackage.en.json","size":1038,"lfs":false},{"$type":"file","path":"datapackage.json","name":"datapackage.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/datapackage.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/datapackage.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/datapackage.json","size":1053,"lfs":false},{"content":[{"content":[{"$type":"file","path":"Kontextmaterialien/renv/.gitignore","name":".gitignore","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/.gitignore","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/.gitignore","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/.gitignore","size":56,"lfs":false},{"$type":"file","path":"Kontextmaterialien/renv/activate.R","name":"activate.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/activate.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/activate.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/activate.R","size":36558,"lfs":false},{"$type":"file","path":"Kontextmaterialien/renv/settings.json","name":"settings.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/settings.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/settings.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv/settings.json","size":412,"lfs":false}],"path":"Kontextmaterialien/renv","name":"renv","$type":"folder"},{"content":[{"$type":"file","path":"Kontextmaterialien/Scripts/aggregation_calculation.R","name":"aggregation_calculation.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/aggregation_calculation.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/aggregation_calculation.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/aggregation_calculation.R","size":3513,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/functions_packages.R","name":"functions_packages.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/functions_packages.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/functions_packages.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/functions_packages.R","size":8518,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/loess_calculation.R","name":"loess_calculation.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/loess_calculation.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/loess_calculation.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/loess_calculation.R","size":6937,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_aggregated_curve.R","name":"plot_aggregated_curve.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_aggregated_curve.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_aggregated_curve.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_aggregated_curve.R","size":1521,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_heatmap.R","name":"plot_heatmap.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_heatmap.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_heatmap.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_heatmap.R","size":2216,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_loq_plot.R","name":"plot_loq_plot.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_loq_plot.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_loq_plot.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_loq_plot.R","size":819,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Scripts/plot_single_places.R","name":"plot_single_places.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_single_places.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_single_places.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Scripts/plot_single_places.R","size":2887,"lfs":false}],"path":"Kontextmaterialien/Scripts","name":"Scripts","$type":"folder"},{"$type":"file","path":"Kontextmaterialien/.Rprofile","name":".Rprofile","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/.Rprofile","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/.Rprofile","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/.Rprofile","size":26,"lfs":false},{"$type":"file","path":"Kontextmaterialien/Readme.md","name":"Readme.md","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Readme.md","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Readme.md","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/Readme.md","size":10878,"lfs":false},{"$type":"file","path":"Kontextmaterialien/amelag_open_code.Rproj","name":"amelag_open_code.Rproj","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/amelag_open_code.Rproj","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/amelag_open_code.Rproj","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/amelag_open_code.Rproj","size":205,"lfs":false},{"$type":"file","path":"Kontextmaterialien/main.R","name":"main.R","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/main.R","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/main.R","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/main.R","size":2606,"lfs":false},{"$type":"file","path":"Kontextmaterialien/renv.lock","name":"renv.lock","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv.lock","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv.lock","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Kontextmaterialien/renv.lock","size":36633,"lfs":false}],"path":"Kontextmaterialien","name":"Kontextmaterialien","$type":"folder"},{"content":[{"content":[{"$type":"file","path":"Metadaten/schemas/amelag_aggregierte_kurve.csvs","name":"amelag_aggregierte_kurve.csvs","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_aggregierte_kurve.csvs","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_aggregierte_kurve.csvs","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_aggregierte_kurve.csvs","size":485,"lfs":false},{"$type":"file","path":"Metadaten/schemas/amelag_einzelstandorte.csvs","name":"amelag_einzelstandorte.csvs","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_einzelstandorte.csvs","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_einzelstandorte.csvs","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/amelag_einzelstandorte.csvs","size":846,"lfs":false},{"$type":"file","path":"Metadaten/schemas/tableschema_amelag_aggregierte_kurve.en.json","name":"tableschema_amelag_aggregierte_kurve.en.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.en.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.en.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.en.json","size":2800,"lfs":false},{"$type":"file","path":"Metadaten/schemas/tableschema_amelag_aggregierte_kurve.json","name":"tableschema_amelag_aggregierte_kurve.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_aggregierte_kurve.json","size":2840,"lfs":false},{"$type":"file","path":"Metadaten/schemas/tableschema_amelag_einzelstandorte.en.json","name":"tableschema_amelag_einzelstandorte.en.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.en.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.en.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.en.json","size":4307,"lfs":false},{"$type":"file","path":"Metadaten/schemas/tableschema_amelag_einzelstandorte.json","name":"tableschema_amelag_einzelstandorte.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/schemas/tableschema_amelag_einzelstandorte.json","size":4213,"lfs":false}],"path":"Metadaten/schemas","name":"schemas","$type":"folder"},{"$type":"file","path":"Metadaten/govdata.ttl","name":"govdata.ttl","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/govdata.ttl","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/govdata.ttl","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/govdata.ttl","size":7248,"lfs":false},{"$type":"file","path":"Metadaten/nfdi4health.json","name":"nfdi4health.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/nfdi4health.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/nfdi4health.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/nfdi4health.json","size":2791,"lfs":false},{"$type":"file","path":"Metadaten/zenodo-invenio.json","name":"zenodo-invenio.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo-invenio.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo-invenio.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo-invenio.json","size":2945,"lfs":false},{"$type":"file","path":"Metadaten/zenodo.json","name":"zenodo.json","downloadUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo.json","previewUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo.json","visitUrl":"https://raw.githubusercontent.com/robert-koch-institut/Abwassersurveillance_AMELAG/main/Metadaten/zenodo.json","size":3220,"lfs":false}],"path":"Metadaten","name":"Metadaten","$type":"folder"}]}');let pN=(()=>{class n{constructor(){}getDatasource(){return Object.assign(Object.assign({},zy),{lastUpdated:new Date(zy.lastUpdated),externalLinks:zy.externalLinks,content:zy.content})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Uy=(()=>{class n{constructor(e){this._ngTitle=e,this._title=""}set title(e){this._title=e,this._ngTitle.setTitle(`RKI Open Data - ${e}`)}get title(){return this._title}}return n.\u0275fac=function(e){return new(e||n)(Re(cM))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mN(...n){const t=Cf(n),{args:e,keys:i}=cF(n),r=new _e(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let c=o,d=o;for(let f=0;f<o;f++){let v=!1;Wn(e[f]).subscribe(N(s,x=>{v||(v=!0,d--),a[f]=x},()=>c--,void 0,()=>{(!c||!v)&&(d||s.next(i?uF(i,a):a),s.complete())}))}});return t?r.pipe(dM(t)):r}class gN{}class _N{}class il{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),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{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 il?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 il;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof il?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 s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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 SY{encodeKey(t){return vN(t)}encodeValue(t){return vN(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const MY=/%(\d[a-f0-9])/gi,EY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vN(n){return encodeURIComponent(n).replace(MY,(t,e)=>{var i;return null!==(i=EY[e])&&void 0!==i?i:t})}function jy(n){return`${n}`}class Gc{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new SY,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function AY(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],c=e.get(o)||[];c.push(a),e.set(o,c)}),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(jy):[jy(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(s=>{e.push({param:i,value:s,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 Gc({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(jy(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(jy(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 xY{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 bN(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function yN(n){return"undefined"!=typeof Blob&&n instanceof Blob}function wN(n){return"undefined"!=typeof FormData&&n instanceof FormData}class cg{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function kY(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,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new il),this.context||(this.context=new xY),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new Gc,this.urlWithParams=e}serializeBody(){return null===this.body?null:bN(this.body)||yN(this.body)||wN(this.body)||function TY(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Gc?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||wN(this.body)?null:yN(this.body)?this.body.type||null:bN(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Gc?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,c=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let d=t.headers||this.headers,f=t.params||this.params;const v=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(d=Object.keys(t.setHeaders).reduce((x,B)=>x.set(B,t.setHeaders[B]),d)),t.setParams&&(f=Object.keys(t.setParams).reduce((x,B)=>x.set(B,t.setParams[B]),f)),new cg(i,r,o,{params:f,headers:d,context:v,reportProgress:c,responseType:s,withCredentials:a})}}var Rr=(()=>((Rr=Rr||{})[Rr.Sent=0]="Sent",Rr[Rr.UploadProgress=1]="UploadProgress",Rr[Rr.ResponseHeader=2]="ResponseHeader",Rr[Rr.DownloadProgress=3]="DownloadProgress",Rr[Rr.Response=4]="Response",Rr[Rr.User=5]="User",Rr))();class RE{constructor(t,e=200,i="OK"){this.headers=t.headers||new il,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}}class IE extends RE{constructor(t={}){super(t),this.type=Rr.ResponseHeader}clone(t={}){return new IE({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})}}class Wy extends RE{constructor(t={}){super(t),this.type=Rr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Wy({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})}}class CN extends RE{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function OE(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 nd=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof cg)s=e;else{let c,d;c=r.headers instanceof il?r.headers:new il(r.headers),r.params&&(d=r.params instanceof Gc?r.params:new Gc({fromObject:r.params})),s=new cg(e,i,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:d,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=At(s).pipe(Wc(c=>this.handler.handle(c)));if(e instanceof cg||"events"===r.observe)return o;const a=o.pipe(ji(c=>c instanceof Wy));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(z(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(z(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(z(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(z(c=>c.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 Gc).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,OE(r,i))}post(e,i,r={}){return this.request("POST",e,OE(r,i))}put(e,i,r={}){return this.request("PUT",e,OE(r,i))}}return n.\u0275fac=function(e){return new(e||n)(Re(gN))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class DN{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const SN=new lt("HTTP_INTERCEPTORS");let PY=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const RY=/^\)\]\}',?\n/;let AN=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _e(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((B,se)=>r.setRequestHeader(B,se.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const B=e.detectContentTypeHeader();null!==B&&r.setRequestHeader("Content-Type",B)}if(e.responseType){const B=e.responseType.toLowerCase();r.responseType="json"!==B?B:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const B=r.statusText||"OK",se=new il(r.getAllResponseHeaders()),me=function IY(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new IE({headers:se,status:r.status,statusText:B,url:me}),o},c=()=>{let{headers:B,status:se,statusText:me,url:Oe}=a(),Fe=null;204!==se&&(Fe=void 0===r.response?r.responseText:r.response),0===se&&(se=Fe?200:0);let et=se>=200&&se<300;if("json"===e.responseType&&"string"==typeof Fe){const We=Fe;Fe=Fe.replace(RY,"");try{Fe=""!==Fe?JSON.parse(Fe):null}catch(ot){Fe=We,et&&(et=!1,Fe={error:ot,text:Fe})}}et?(i.next(new Wy({body:Fe,headers:B,status:se,statusText:me,url:Oe||void 0})),i.complete()):i.error(new CN({error:Fe,headers:B,status:se,statusText:me,url:Oe||void 0}))},d=B=>{const{url:se}=a(),me=new CN({error:B,status:r.status||0,statusText:r.statusText||"Unknown Error",url:se||void 0});i.error(me)};let f=!1;const v=B=>{f||(i.next(a()),f=!0);let se={type:Rr.DownloadProgress,loaded:B.loaded};B.lengthComputable&&(se.total=B.total),"text"===e.responseType&&!!r.responseText&&(se.partialText=r.responseText),i.next(se)},x=B=>{let se={type:Rr.UploadProgress,loaded:B.loaded};B.lengthComputable&&(se.total=B.total),i.next(se)};return r.addEventListener("load",c),r.addEventListener("error",d),r.addEventListener("timeout",d),r.addEventListener("abort",d),e.reportProgress&&(r.addEventListener("progress",v),null!==s&&r.upload&&r.upload.addEventListener("progress",x)),r.send(s),i.next({type:Rr.Sent}),()=>{r.removeEventListener("error",d),r.removeEventListener("abort",d),r.removeEventListener("load",c),r.removeEventListener("timeout",d),e.reportProgress&&(r.removeEventListener("progress",v),null!==s&&r.upload&&r.upload.removeEventListener("progress",x)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(Re(RO))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const FE=new lt("XSRF_COOKIE_NAME"),LE=new lt("XSRF_HEADER_NAME");class MN{}let OY=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=bO(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Gh),Re(FE))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),NE=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(MN),Re(LE))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),FY=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(SN,[]);this.chain=i.reduceRight((r,s)=>new DN(r,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(Re(_N),Re(Ii))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),LY=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:NE,useClass:PY}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:FE,useValue:e.cookieName}:[],e.headerName?{provide:LE,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[NE,{provide:SN,useExisting:NE,multi:!0},{provide:MN,useClass:OY},{provide:FE,useValue:"XSRF-TOKEN"},{provide:LE,useValue:"X-XSRF-TOKEN"}]}),n})(),NY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[nd,{provide:gN,useClass:FY},AN,{provide:_N,useExisting:AN}],imports:[LY.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();const VY=["*"];let $y;function ug(n){var t;return(null===(t=function BY(){if(void 0===$y&&($y=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&($y=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return $y}())||void 0===t?void 0:t.createHTML(n))||n}function EN(n){return Error(`Unable to find icon with the name "${n}"`)}function xN(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function kN(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class id{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Gy=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,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,s){return this._addSvgIconConfig(e,i,new id(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(jn.HTML,r);if(!o)throw kN(r);const a=ug(o);return this._addSvgIconConfig(e,i,new id("",a,s))}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 id(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(jn.HTML,i);if(!s)throw kN(i);const o=ug(s);return this._addSvgIconSetConfig(e,new id("",o,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(jn.RESOURCE_URL,e);if(!i)throw xN(e);const r=this._cachedIconsByUrl.get(i);return r?At(qy(r)):this._loadSvgIconFromConfig(new id(e,null)).pipe(_i(s=>this._cachedIconsByUrl.set(i,s)),z(s=>qy(s)))}getNamedSvgIcon(e,i=""){const r=TN(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):ya(EN(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?At(qy(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(z(i=>qy(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?At(r):mN(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(tl(a=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(jn.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(d)),At(null)})))).pipe(z(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw EN(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(_i(i=>e.svgText=i),z(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?At(null):this._fetchIcon(e).pipe(_i(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(ug("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(ug("<svg></svg>")),r=e.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function HY(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(jn.RESOURCE_URL,r);if(!a)throw xN(r);const c=this._inProgressUrlFetches.get(a);if(c)return c;const d=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(z(f=>ug(f)),wy(()=>this._inProgressUrlFetches.delete(a)),bd());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(TN(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;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return UY(s)?new id(s.url,null,s.options):new id(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(Re(nd,8),Re(Yu),Re(Qt,8),Re(aa))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qy(n){return n.cloneNode(!0)}function TN(n,t){return n+":"+t}function UY(n){return!(!n.url||!n.options)}const jY=Zl(class{constructor(n){this._elementRef=n}}),WY=new lt("MAT_ICON_DEFAULT_OPTIONS"),$Y=new lt("mat-icon-location",{providedIn:"root",factory:function GY(){const n=qn(Qt),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),PN=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],qY=PN.map(n=>`[${n}]`).join(", "),YY=/^url\(['"]?#(.*?)['"]?\)$/;let cf=(()=>{class n extends jY{constructor(e,i,r,s,o,a){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Me.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=Ft(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,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(qY),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)PN.forEach(o=>{const a=i[s],c=a.getAttribute(o),d=c?c.match(YY):null;if(d){let f=r.get(a);f||(f=[],r.set(a,f)),f.push({name:o,value:d[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(Ci(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Gy),ys("aria-hidden"),R($Y),R(aa),R(WY,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(Yt("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),Kt("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:[_t],ngContentSelectors:VY,decls:1,vars:0,template:function(e,i){1&e&&(Ui(),Vn(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})(),KY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn,bn]}),n})();const RN=["mat-button",""],IN=["*"],ZY=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],JY=Zl(Ql(Jl(class{constructor(n){this._elementRef=n}})));let rl=(()=>{class n extends JY{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 s of ZY)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);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)(R(yt),R(ba),R(Ts,8))},n.\u0275cmp=Ct({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(ec,5),2&e){let r;Dt(r=St())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Yt("disabled",i.disabled||null),Kt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_t],attrs:RN,ngContentSelectors:IN,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&&(Ui(),Y(0,"span",0),Vn(1),ee(),ft(2,"span",1)(3,"span",2)),2&e&&(be(2),Kt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),Pe("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[ec],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})(),VE=(()=>{class n extends rl{constructor(e,i,r,s){super(i,e,r),this._ngZone=s,this._haltDisabledEvents=o=>{this.disabled&&(o.preventDefault(),o.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return n.\u0275fac=function(e){return new(e||n)(R(ba),R(yt),R(Ts,8),R(jt,8))},n.\u0275cmp=Ct({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){2&e&&(Yt("tabindex",i.disabled?-1:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),Kt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[_t],attrs:RN,ngContentSelectors:IN,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&&(Ui(),Y(0,"span",0),Vn(1),ee(),ft(2,"span",1)(3,"span",2)),2&e&&(be(2),Kt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),Pe("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[ec],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})(),BE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Xm,bn,bn]}),n})();function ON(n,t=Jb){const e=_M(n,t);return DM(()=>e)}class FN{}const oc="*";function To(n,t){return{type:7,name:n,definitions:t,options:{}}}function _r(n,t=null){return{type:4,styles:t,timings:n}}function LN(n,t=null){return{type:2,steps:n,options:t}}function _n(n){return{type:6,styles:n,offset:null}}function vr(n,t,e){return{type:0,name:n,styles:t,options:e}}function rd(n){return{type:5,steps:n}}function or(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function tK(n=null){return{type:9,options:n}}function nK(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function NN(n){Promise.resolve(null).then(n)}class dg{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(){NN(()=>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 VN{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 s=this.players.length;0==s?NN(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,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}}class zE{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 sd extends zE{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Yy extends zE{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 iK extends zE{constructor(t){super(),this.element=t instanceof yt?t.nativeElement:t}}class UE{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof sd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yy?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof iK?(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 rK extends UE{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=s}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||Ii.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 Ky=(()=>{class n extends UE{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new bt,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,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,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(s,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}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)(R(Il),R(Oi),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_t]}),n})(),Xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const BN=iF();class sK{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=Pr(-this._previousScrollPosition.left),t.style.top=Pr(-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,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),BN&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),BN&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_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 oK{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 HN{enable(){}disable(){}attach(){}}function jE(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function zN(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class aK{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();jE(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 lK=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new HN,this.close=o=>new oK(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new sK(this._viewportRuler,this._document),this.reposition=o=>new aK(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(Re(Nm),Re(Vm),Re(jt),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class hg{constructor(t){if(this.scrollStrategy=new HN,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 cK{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class uK{constructor(t,e,i,r,s,o,a,c,d,f=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=f,this._backdropElement=null,this._backdropClick=new y,this._attachments=new y,this._detachments=new y,this._locationChanges=Me.EMPTY,this._backdropClickHandler=v=>this._backdropClick.next(v),this._backdropTransitionendHandler=v=>{this._disposeBackdrop(v.target)},this._keydownEvents=new y,this._outsidePointerEvents=new y,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(Ci(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=Pr(this._config.width),t.height=Pr(this._config.height),t.minWidth=Pr(this._config.minWidth),t.minHeight=Pr(this._config.minHeight),t.maxWidth=Pr(this._config.maxWidth),t.maxHeight=Pr(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=Yb(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ot(Ni(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 Qy=(()=>{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||wM()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),wM()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const UN="cdk-overlay-connected-position-bounding-box",dK=/([A-Za-z%]+)$/;class jN{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new y,this._resizeSubscription=Me.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(UN),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)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,s=[];let o;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,r,a),d=this._getOverlayPoint(c,e,a),f=this._getOverlayFit(d,e,i,a);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(f,d,i)?s.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!o||o.overlayFit.visibleArea<f.visibleArea)&&(o={overlayFit:f,overlayPoint:d,originPoint:c,position:a,overlayRect:e})}if(s.length){let a=null,c=-1;for(const d of s){const f=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);f>c&&(c=f,a=d)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&od(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(UN),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,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=$N(e);let{x:o,y:a}=t,c=this._getOffset(r,"x"),d=this._getOffset(r,"y");c&&(o+=c),d&&(a+=d);let x=0-a,B=a+s.height-i.height,se=this._subtractOverflows(s.width,0-o,o+s.width-i.width),me=this._subtractOverflows(s.height,x,B),Oe=se*me;return{visibleArea:Oe,isCompletelyWithinViewport:s.width*s.height===Oe,fitsInViewportVertically:me===s.height,fitsInViewportHorizontally:se==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=WN(this._overlayRef.getConfig().minHeight),a=WN(this._overlayRef.getConfig().minWidth),d=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&d}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=$N(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),c=Math.max(s.top-i.top-t.y,0),d=Math.max(s.left-i.left-t.x,0);let f=0,v=0;return f=r.width<=s.width?d||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,v=r.height<=s.height?c||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:f,y:v},{x:t.x+f,y:t.y+v}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new cK(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,f,v,x;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const B=Math.min(i.bottom-t.y+i.top,t.y),se=this._lastBoundingBoxSize.height;s=2*B,o=t.y-B,s>se&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-se/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)x=i.width-t.x+this._viewportMargin,f=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)v=t.x,f=i.right-t.x;else{const B=Math.min(i.right-t.x+i.left,t.x),se=this._lastBoundingBoxSize.width;f=2*B,v=t.x-B,f>se&&!this._isInitialRender&&!this._growAfterOpen&&(v=t.x-se/2)}return{top:o,left:v,bottom:a,right:x,width:f,height:s}}_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 s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Pr(i.height),r.top=Pr(i.top),r.bottom=Pr(i.bottom),r.width=Pr(i.width),r.left=Pr(i.left),r.right=Pr(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",s&&(r.maxHeight=Pr(s)),o&&(r.maxWidth=Pr(o))}this._lastBoundingBoxSize=i,od(this._boundingBox.style,r)}_resetBoundingBoxStyles(){od(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){od(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const f=this._viewportRuler.getViewportScrollPosition();od(i,this._getExactOverlayY(e,t,f)),od(i,this._getExactOverlayX(e,t,f))}else i.position="static";let a="",c=this._getOffset(e,"x"),d=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Pr(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Pr(o.maxWidth):s&&(i.maxWidth="")),od(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Pr(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Pr(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zN(t,i),isOriginOutsideView:jE(t,i),isOverlayClipped:zN(e,i),isOverlayOutsideView:jE(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&&Yb(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 yt)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 od(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function WN(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(dK);return e&&"px"!==e?null:parseFloat(t)}return n||null}function $N(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 GN="cdk-global-overlay-wrapper";class hK{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(GN),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:s,maxWidth:o,maxHeight:a}=i,c=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),d=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a),f=this._xPosition,v=this._xOffset,x="rtl"===this._overlayRef.getConfig().direction;let B="",se="",me="";c?me="flex-start":"center"===f?(me="center",x?se=v:B=v):x?"left"===f||"end"===f?(me="flex-end",B=v):("right"===f||"start"===f)&&(me="flex-start",se=v):"left"===f||"start"===f?(me="flex-start",B=v):("right"===f||"end"===f)&&(me="flex-end",se=v),t.position=this._cssPosition,t.marginLeft=c?"0":B,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":se,e.justifyContent=me,e.alignItems=d?"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(GN),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let fK=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new hK}flexibleConnectedTo(e){return new jN(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(Re(Vm),Re(Qt),Re(Zi),Re(Qy))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qN=(()=>{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)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pK=(()=>{class n extends qN{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._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)(Re(Qt),Re(jt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mK=(()=>{class n extends qN{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Qu(s)},this._clickListener=s=>{const o=Qu(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const f=c[d];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(o)||f.overlayElement.contains(a))break;const v=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>v.next(s)):v.next(s)}}}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)(Re(Qt),Re(Zi),Re(jt,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gK=0,Po=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f,v,x,B){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=c,this._document=d,this._directionality=f,this._location=v,this._outsideClickDispatcher=x,this._animationsModuleType=B}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new hg(e);return o.direction=o.direction||this._directionality.value,new uK(s,i,r,o,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-"+gK++,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(qh)),new rK(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(Re(lK),Re(Qy),Re(Il),Re(fK),Re(pK),Re(Ii),Re(jt),Re(Qt),Re(us),Re(Ib),Re(mK),Re(Ts,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const _K=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],YN=new lt("cdk-connected-overlay-scroll-strategy");let KN=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(R(yt))},n.\u0275dir=qe({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),vK=(()=>{class n{constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Me.EMPTY,this._attachSubscription=Me.EMPTY,this._detachSubscription=Me.EMPTY,this._positionSubscription=Me.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new bt,this.positionChange=new bt,this.attach=new bt,this.detach=new bt,this.overlayKeydown=new bt,this.overlayOutsideClick=new bt,this._templatePortal=new Yy(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ft(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ft(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ft(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ft(e)}get push(){return this._push}set push(e){this._push=Ft(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_K);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!va(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new hg({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof KN?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(rL(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(fr),R(Oi),R(YN),R(us,8))},n.\u0275dir=qe({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Zt]}),n})();const yK={provide:YN,deps:[Po],useFactory:function bK(n){return()=>n.scrollStrategies.reposition()}};let fg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Po,yK],imports:[Lm,Xy,ty,ty]}),n})(),wK=(()=>{class n extends Qy{constructor(e,i){super(e,i)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(e){const i=this._getEventName();i&&(this._fullScreenListener&&this._document.removeEventListener(i,this._fullScreenListener),this._document.addEventListener(i,e),this._fullScreenListener=e)}_getEventName(){if(!this._fullScreenEventName){const e=this._document;e.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":e.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":e.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":e.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){const e=this._document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||null}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Zi))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const CK=["mat-menu-item",""];function DK(n,t){1&n&&(ia(),Y(0,"svg",2),ft(1,"polygon",3),ee())}const XN=["*"];function SK(n,t){if(1&n){const e=ii();Y(0,"div",0),vt("keydown",function(r){return zt(e),$t(Qe()._handleKeydown(r))})("click",function(){return zt(e),$t(Qe().closed.emit("click"))})("@transformMenu.start",function(r){return zt(e),$t(Qe()._onAnimationStart(r))})("@transformMenu.done",function(r){return zt(e),$t(Qe()._onAnimationDone(r))}),Y(1,"div",1),Vn(2),ee()()}if(2&n){const e=Qe();Pe("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Yt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Zy={transformMenu:To("transformMenu",[vr("void",_n({opacity:0,transform:"scale(0.8)"})),or("void => enter",_r("120ms cubic-bezier(0, 0, 0.2, 1)",_n({opacity:1,transform:"scale(1)"}))),or("* => void",_r("100ms 25ms linear",_n({opacity:0})))]),fadeInItems:To("fadeInItems",[vr("showing",_n({opacity:1})),or("void => *",[_n({opacity:0}),_r("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},AK=new lt("MatMenuContent"),WE=new lt("MAT_MENU_PANEL"),MK=Jl(Ql(class{}));let Jy=(()=>{class n extends MK{constructor(e,i,r,s,o){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new y,this._focused=new y,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<r.length;s++)r[s].remove();return(null===(e=i.textContent)||void 0===e?void 0:e.trim())||""}_setHighlighted(e){var i;this._highlighted=e,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Qt),R(ba),R(WE,8),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,i){1&e&&vt("click",function(s){return i._checkDisabled(s)})("mouseenter",function(){return i._handleMouseEnter()}),2&e&&(Yt("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),Kt("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[_t],attrs:CK,ngContentSelectors:XN,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(e,i){1&e&&(Ui(),Vn(0),ft(1,"div",0),mt(2,DK,2,0,"svg",1)),2&e&&(be(1),Pe("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),be(1),Pe("ngIf",i._triggersSubmenu))},dependencies:[mr,ec],encapsulation:2,changeDetection:0}),n})();const QN=new lt("mat-menu-default-options",{providedIn:"root",factory:function EK(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let xK=0,pg=(()=>{class n{constructor(e,i,r,s){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new zh,this._tabSubscription=Me.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new y,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new bt,this.close=this.closed,this.panelId="mat-menu-panel-"+xK++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ft(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ft(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new UM(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cs(this._directDescendantItems),ds(e=>Ni(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=r.activeItem)||void 0===i?void 0:i._hasFocus())){const s=e.toArray(),o=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[o]&&!s[o].disabled?r.setActiveItem(o):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(cs(this._directDescendantItems),ds(i=>Ni(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:va(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(cs(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(jt),R(QN),R(Xn))},n.\u0275dir=qe({type:n,contentQueries:function(e,i,r){if(1&e&&(Dn(r,AK,5),Dn(r,Jy,5),Dn(r,Jy,4)),2&e){let s;Dt(s=St())&&(i.lazyContent=s.first),Dt(s=St())&&(i._allItems=s),Dt(s=St())&&(i.items=s)}},viewQuery:function(e,i){if(1&e&&Hn(fr,5),2&e){let r;Dt(r=St())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),kK=(()=>{class n extends pg{constructor(e,i,r,s){super(e,i,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(jt),R(QN),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Yt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[kt([{provide:WE,useExisting:n}]),_t],ngContentSelectors:XN,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Ui(),mt(0,SK,3,6,"ng-template"))},dependencies:[Gu],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Zy.transformMenu,Zy.fadeInItems]},changeDetection:0}),n})();const ZN=new lt("mat-menu-scroll-strategy"),PK={provide:ZN,deps:[Po],useFactory:function TK(n){return()=>n.scrollStrategies.reposition()}},JN=Ku({passive:!0});let RK=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=c,this._focusMonitor=d,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Me.EMPTY,this._hoverSubscription=Me.EMPTY,this._menuCloseSubscription=Me.EMPTY,this._handleTouchStart=v=>{WM(v)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new bt,this.onMenuOpen=this.menuOpened,this.menuClosed=new bt,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof pg?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,JN),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,JN),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),s=r.positionStrategy;this._setPosition(e,s),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof pg&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ot(e.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){var i;if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof pg?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(ji(s=>"void"===s.toState),Ci(1),Ot(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(i=null==r?void 0:r.lazyContent)||void 0===i||i.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new hg({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const s="start"===r.connectionPair.overlayX?"after":"before",o="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(s,o)):e.setPositionClasses(s,o)})}_setPosition(e,i){let[r,s]="before"===e.xPosition?["end","start"]:["start","end"],[o,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,d]=[o,a],[f,v]=[r,s],x=0;if(this.triggersSubmenu()){if(v=r="before"===e.xPosition?"start":"end",s=f="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const B=this._parentMaterialMenu.items.first;this._parentInnerPadding=B?B._getHostElement().offsetTop:0}x="bottom"===o?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===o?"bottom":"top",d="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:c,overlayX:f,overlayY:o,offsetY:x},{originX:s,originY:c,overlayX:v,overlayY:o,offsetY:x},{originX:r,originY:d,overlayX:f,overlayY:a,offsetY:-x},{originX:s,originY:d,overlayX:v,overlayY:a,offsetY:-x}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ni(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:At(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ji(o=>o!==this._menuItemInstance),ji(()=>this._menuOpen)):At(),i)}_handleMousedown(e){jM(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ji(e=>e===this._menuItemInstance&&!e.disabled),ON(0,gM)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof pg&&this.menu._isAnimating?this.menu._animationDone.pipe(Ci(1),ON(0,gM),Ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Yy(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(yt),R(Oi),R(ZN),R(WE,8),R(Jy,10),R(us,8),R(ba),R(jt))},n.\u0275dir=qe({type:n,hostVars:3,hostBindings:function(e,i){1&e&&vt("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&e&&Yt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),IK=(()=>{class n extends RK{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[_t]}),n})(),OK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[PK],imports:[_a,bn,Xm,fg,Kh,bn]}),n})();function FK(n,t){if(1&n&&(Y(0,"a",17),ie(1),ee()),2&n){const e=Qe();Pe("title",e.datasource.name),be(1),ci(" ",e.datasource.name," ")}}function LK(n,t){if(1&n&&(Y(0,"div",18),ie(1),ee()),2&n){const e=Qe();Pe("title",e.titleService.title),be(1),ci(" ",e.titleService.title," ")}}const e2=function(){return{exact:!0}};let NK=(()=>{class n{constructor(e,i,r,s){this.elemRef=e,this.datasourceService=i,this.breakpointObs=r,this.titleService=s,this.shrinkHeader=!1,this.datasource=this.datasourceService.getDatasource(),this.onScrollDebounced=Rs.debounce(o=>this.onScroll(o),50,{leading:!0}),this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(o=>o.matches),fN())}ngOnInit(){}onScroll(e){var i;if(e.target){const r=this._getBoundingBox(e.target);if(r)if(this.shrinkHeader)this.shrinkHeader=r.scroll.top>0;else{const s=this._getBoundingBox(this.elemRef.nativeElement);this.shrinkHeader=r.scroll.top>(null!==(i=null==s?void 0:s.bb.height)&&void 0!==i?i:30)/2}}}_getBoundingBox(e){return e instanceof Window?this._getBoundingBox(e.document):e instanceof Document?this._getBoundingBox(e.documentElement):e instanceof HTMLElement?{bb:e.getBoundingClientRect(),scroll:{height:e.scrollHeight,width:e.scrollWidth,top:e.scrollTop,left:e.scrollLeft}}:void 0}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(pN),R(jc),R(Uy))},n.\u0275cmp=Ct({type:n,selectors:[["app-nav-header"]],hostBindings:function(e,i){1&e&&vt("resize",function(s){return i.onScrollDebounced(s)},0,Nc)("scroll",function(s){return i.onScroll(s)},!1,Nc)},decls:30,vars:15,consts:[[1,"nav-header"],[1,"left-col"],[1,"link-container"],["routerLink","","routerLinkActive","active",1,"nav-link",3,"routerLinkActiveOptions"],["routerLink","imprint","routerLinkActive","active",1,"nav-link"],["routerLink","privacy","routerLinkActive","active",1,"nav-link"],[1,"title-container"],["class","title","routerLink","",3,"title",4,"ngIf","ngIfElse"],["betterTitle",""],["mat-icon-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","","routerLinkActive","active",3,"routerLinkActiveOptions"],["mat-menu-item","","routerLink","imprint","routerLinkActive","active"],["mat-menu-item","","routerLink","privacy","routerLinkActive","active"],[1,"right-col"],["href","https://www.rki.de","target","_blank","title","Externer Link - RKI Homepage",1,"rki-logo-link"],["src","./assets/RKI_Logo.png","title","Logo Robert Koch - Institut",1,"rki-logo"],["routerLink","",1,"title",3,"title"],[1,"title",3,"title"]],template:function(e,i){if(1&e&&(Y(0,"header"),ui(1,"async"),Y(2,"div",0)(3,"div",1)(4,"div",2)(5,"a",3),ie(6,"Datensatz"),ee(),Y(7,"a",4),ie(8,"Impressum"),ee(),Y(9,"a",5),ie(10,"Datenschutzerkl\xe4rung"),ee()(),Y(11,"div",6),mt(12,FK,2,2,"a",7),ui(13,"async"),mt(14,LK,2,2,"ng-template",null,8,Hl),Y(16,"button",9)(17,"mat-icon"),ie(18,"menu"),ee()(),Y(19,"mat-menu",null,10)(21,"button",11),ie(22,"Datensatz"),ee(),Y(23,"button",12),ie(24,"Impressum"),ee(),Y(25,"button",13),ie(26,"Datenschutzerkl\xe4rung"),ee()()()(),Y(27,"div",14)(28,"a",15),ft(29,"img",16),ee()()()()),2&e){const r=zi(15),s=zi(20);Kt("shrink",i.shrinkHeader)("small",wi(1,9,i.isSmall$)),be(5),Pe("routerLinkActiveOptions",_A(13,e2)),be(7),Pe("ngIf",wi(13,11,i.isSmall$))("ngIfElse",r),be(4),Pe("matMenuTriggerFor",s),be(5),Pe("routerLinkActiveOptions",_A(14,e2))}},dependencies:[mr,cf,rl,kK,Jy,IK,By,Hy,iN,Ga]}),n})(),VK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"app-component"],[1,"app-content"]],template:function(e,i){1&e&&(Y(0,"div",0),ft(1,"app-nav-header"),Y(2,"main",1),ft(3,"router-outlet"),ee()())},dependencies:[yE,NK]}),n})();const BK=["*",[["mat-toolbar-row"]]],HK=["*","mat-toolbar-row"],zK=Zl(class{constructor(n){this._elementRef=n}});let UK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),jK=(()=>{class n extends zK{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)(R(yt),R(Zi),R(Qt))},n.\u0275cmp=Ct({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,UK,5),2&e){let s;Dt(s=St())&&(i._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&Kt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[_t],ngContentSelectors:HK,decls:2,vars:0,template:function(e,i){1&e&&(Ui(BK),Vn(0),Vn(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})(),WK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn,bn]}),n})();var ad=He(6036),mg=He.t(ad,2),Qo=He(2813),t2=He.t(Qo,2);const $K=["pdfViewerContainer"];function n2(n,t){const e=new n.EventBus;return function GK(n,t){di(n,"documentload").pipe(Ot(t)).subscribe(()=>{const e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),di(n,"pagerendered").pipe(Ot(t)).subscribe(({pageNumber:e,cssTransform:i,source:r})=>{const s=document.createEvent("CustomEvent");s.initCustomEvent("pagerendered",!0,!0,{pageNumber:e,cssTransform:i}),r.div.dispatchEvent(s)}),di(n,"textlayerrendered").pipe(Ot(t)).subscribe(({pageNumber:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e}),i.textLayerDiv.dispatchEvent(r)}),di(n,"pagechanging").pipe(Ot(t)).subscribe(({pageNumber:e,source:i})=>{const r=document.createEvent("UIEvents");r.initEvent("pagechanging",!0,!0),r.pageNumber=e,i.container.dispatchEvent(r)}),di(n,"pagesinit").pipe(Ot(t)).subscribe(({source:e})=>{const i=document.createEvent("CustomEvent");i.initCustomEvent("pagesinit",!0,!0,null),e.container.dispatchEvent(i)}),di(n,"pagesloaded").pipe(Ot(t)).subscribe(({pagesCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e}),i.container.dispatchEvent(r)}),di(n,"scalechange").pipe(Ot(t)).subscribe(({scale:e,presetValue:i,source:r})=>{const s=document.createEvent("UIEvents");s.initEvent("scalechange",!0,!0),s.scale=e,s.presetValue=i,r.container.dispatchEvent(s)}),di(n,"updateviewarea").pipe(Ot(t)).subscribe(({location:e,source:i})=>{const r=document.createEvent("UIEvents");r.initEvent("updateviewarea",!0,!0),r.location=e,i.container.dispatchEvent(r)}),di(n,"find").pipe(Ot(t)).subscribe(({source:e,type:i,query:r,phraseSearch:s,caseSensitive:o,highlightAll:a,findPrevious:c})=>{if(e===window)return;const d=document.createEvent("CustomEvent");d.initCustomEvent("find"+i,!0,!0,{query:r,phraseSearch:s,caseSensitive:o,highlightAll:a,findPrevious:c}),window.dispatchEvent(d)}),di(n,"attachmentsloaded").pipe(Ot(t)).subscribe(({attachmentsCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e}),i.container.dispatchEvent(r)}),di(n,"sidebarviewchanged").pipe(Ot(t)).subscribe(({view:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("sidebarviewchanged",!0,!0,{view:e}),i.outerContainer.dispatchEvent(r)}),di(n,"pagemode").pipe(Ot(t)).subscribe(({mode:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("pagemode",!0,!0,{mode:e}),i.pdfViewer.container.dispatchEvent(r)}),di(n,"namedaction").pipe(Ot(t)).subscribe(({action:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("namedaction",!0,!0,{action:e}),i.pdfViewer.container.dispatchEvent(r)}),di(n,"presentationmodechanged").pipe(Ot(t)).subscribe(({active:e,switchInProgress:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("presentationmodechanged",!0,!0,{active:e,switchInProgress:i}),window.dispatchEvent(r)}),di(n,"outlineloaded").pipe(Ot(t)).subscribe(({outlineCount:e,source:i})=>{const r=document.createEvent("CustomEvent");r.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e}),i.container.dispatchEvent(r)})}(e,t),e}function ew(n,t,e){n[t]=e}function gg(){return"undefined"==typeof window}gg()||ew(mg,"verbosity",ad.VerbosityLevel.INFOS);var ld=(()=>{return(n=ld||(ld={}))[n.DISABLED=0]="DISABLED",n[n.ENABLED=1]="ENABLED",n[n.ENHANCED=2]="ENHANCED",ld;var n})();let qK=(()=>{class n{constructor(e,i){if(this.element=e,this.ngZone=i,this.isVisible=!1,this._cMapsUrl=void 0!==mg?`https://unpkg.com/pdfjs-dist@${ad.version}/cmaps/`:null,this._imageResourcesPath=void 0!==mg?`https://unpkg.com/pdfjs-dist@${ad.version}/web/images/`:null,this._renderText=!0,this._renderTextMode=ld.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.resizeTimeout=null,this.pageScrollTimeout=null,this.isInitialized=!1,this.destroy$=new y,this.afterLoadComplete=new bt,this.pageRendered=new bt,this.pageInitialized=new bt,this.textLayerRendered=new bt,this.onError=new bt,this.onProgress=new bt,this.pageChange=new bt(!0),gg())return;let r;r=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:`https://cdn.jsdelivr.net/npm/pdfjs-dist@${ad.version}/legacy/build/pdf.worker.min.js`,ew(ad.GlobalWorkerOptions,"workerSrc",r)}set cMapsUrl(e){this._cMapsUrl=e}set page(e){const i=e=parseInt(e,10)||1;this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,i!==e&&this.pageChange.emit(e)}set renderText(e){this._renderText=e}set renderTextMode(e){this._renderTextMode=e}set originalSize(e){this._originalSize=e}set showAll(e){this._showAll=e}set stickToPage(e){this._stickToPage=e}set zoom(e){e<=0||(this._zoom=e)}get zoom(){return this._zoom}set zoomScale(e){this._zoomScale=e}get zoomScale(){return this._zoomScale}set rotation(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")}set externalLinkTarget(e){this._externalLinkTarget=e}set autoresize(e){this._canAutoResize=Boolean(e)}set fitToPage(e){this._fitToPage=Boolean(e)}set showBorders(e){this._showBorders=Boolean(e)}static getLinkTarget(e){switch(e){case"blank":return Qo.LinkTarget.BLANK;case"none":return Qo.LinkTarget.NONE;case"self":return Qo.LinkTarget.SELF;case"parent":return Qo.LinkTarget.PARENT;case"top":return Qo.LinkTarget.TOP}return null}ngAfterViewChecked(){if(this.isInitialized)return;const e=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=e?!1===this.isVisible&&null!=e&&(this.isVisible=!0,setTimeout(()=>{this.initialize(),this.ngOnChanges({src:this.src})})):this.isVisible=!1}ngOnInit(){this.initialize(),this.setupResizeListener()}ngOnDestroy(){this.clear(),this.destroy$.next(),this.loadingTask=null}get pdfLinkService(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService}get pdfViewer(){return this.getCurrentViewer()}get pdfFindController(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController}ngOnChanges(e){if(!gg()&&this.isVisible)if("src"in e)this.loadPDF();else if(this._pdf){if("renderText"in e?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:ld.DISABLED,this.resetPdfDocument()):"showAll"in e&&this.resetPdfDocument(),"page"in e){const{page:i}=e;if(i.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}}updateSize(){const e=this.getCurrentViewer();pi(this._pdf.getPage(e.currentPageNumber)).pipe(Ot(this.destroy$)).subscribe({next:i=>{const r=this._rotation||i.rotate,s=i.getViewport({scale:this._zoom,rotation:r}).width*n.CSS_UNITS;let o=this._zoom,a=!0;if(!this._originalSize||this._fitToPage&&s>this.pdfViewerContainer.nativeElement.clientWidth){const c=i.getViewport({scale:1,rotation:r});o=this.getScale(c.width,c.height),a=!this._stickToPage}e._setScale(o,a)}})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.destroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))}getPDFLinkServiceConfig(){const e={},i=n.getLinkTarget(this._externalLinkTarget);return i&&(e.externalLinkTarget=i),e}setupMultiPageViewer(){ew(mg,"disableTextLayer",!this._renderText);const e=n2(t2,this.destroy$);di(e,"pagerendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageRendered.emit(r)}),di(e,"pagesinit").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageInitialized.emit(r)}),di(e,"pagechanging").pipe(Ot(this.destroy$)).subscribe(({pageNumber:r})=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=window.setTimeout(()=>{this._latestScrolledPage=r,this.pageChange.emit(r)},100)}),di(e,"textlayerrendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.textLayerRendered.emit(r)}),this.pdfMultiPageLinkService=new Qo.PDFLinkService(Object.assign({eventBus:e},this.getPDFLinkServiceConfig())),this.pdfMultiPageFindController=new Qo.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:e});const i={eventBus:e,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:ld.DISABLED,findController:this.pdfMultiPageFindController,renderer:"canvas",l10n:void 0,imageResourcesPath:this._imageResourcesPath};this.pdfMultiPageViewer=new Qo.PDFViewer(i),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)}setupSinglePageViewer(){ew(mg,"disableTextLayer",!this._renderText);const e=n2(t2,this.destroy$);di(e,"pagechanging").pipe(Ot(this.destroy$)).subscribe(({pageNumber:r})=>{r!==this._page&&(this.page=r)}),di(e,"pagerendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageRendered.emit(r)}),di(e,"pagesinit").pipe(Ot(this.destroy$)).subscribe(r=>{this.pageInitialized.emit(r)}),di(e,"textlayerrendered").pipe(Ot(this.destroy$)).subscribe(r=>{this.textLayerRendered.emit(r)}),this.pdfSinglePageLinkService=new Qo.PDFLinkService(Object.assign({eventBus:e},this.getPDFLinkServiceConfig())),this.pdfSinglePageFindController=new Qo.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:e});const i={eventBus:e,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:ld.DISABLED,findController:this.pdfSinglePageFindController,renderer:"canvas",l10n:void 0};this.pdfSinglePageViewer=new Qo.PDFSinglePageViewer(i),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page}getValidPageNumber(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e}getDocumentParams(){const e=typeof this.src;if(!this._cMapsUrl)return this.src;const i={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?i.url=this.src:"object"===e&&(void 0!==this.src.byteLength?i.data=this.src:Object.assign(i,this.src)),i}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src)return void this.update();this.clear(),this.loadingTask=ad.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=i=>{this.onProgress.emit(i)};const e=this.src;pi(this.loadingTask.promise).pipe(Ot(this.destroy$)).subscribe({next:i=>{this._pdf=i,this.lastLoaded=e,this.afterLoadComplete.emit(i),this.pdfMultiPageViewer||(this.setupMultiPageViewer(),this.setupSinglePageViewer()),this.resetPdfDocument(),this.update()},error:i=>{this.lastLoaded=null,this.onError.emit(i)}})}update(){this.page=this._page,this.render()}render(){this._page=this.getValidPageNumber(this._page);const e=this.getCurrentViewer();(0!==this._rotation||e.pagesRotation!==this._rotation)&&setTimeout(()=>{e.pagesRotation=this._rotation}),this._stickToPage&&setTimeout(()=>{e.currentPageNumber=this._page}),this.updateSize()}getScale(e,i){const r=this._showBorders?2*n.BORDER_WIDTH:0,s=this.pdfViewerContainer.nativeElement.clientWidth-r,o=this.pdfViewerContainer.nativeElement.clientHeight-r;if(0===o||0===i||0===s||0===e)return 1;let a=1;switch(this._zoomScale){case"page-fit":a=Math.min(o/i,s/e);break;case"page-height":a=o/i;break;default:a=s/e}return this._zoom*a/n.CSS_UNITS}getCurrentViewer(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer}resetPdfDocument(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))}initialize(){gg()||!this.isVisible||(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())}setupResizeListener(){gg()||this.ngZone.runOutsideAngular(()=>{di(window,"resize").pipe(my(100),ji(()=>this._canAutoResize&&!!this._pdf),Ot(this.destroy$)).subscribe(()=>{this.updateSize()})})}}return n.CSS_UNITS=96/72,n.BORDER_WIDTH=9,n.\u0275fac=function(e){return new(e||n)(R(yt),R(jt))},n.\u0275cmp=Ct({type:n,selectors:[["pdf-viewer"]],viewQuery:function(e,i){if(1&e&&Hn($K,5),2&e){let r;Dt(r=St())&&(i.pdfViewerContainer=r.first)}},inputs:{src:"src",cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"]},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[Zt],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(e,i){1&e&&(Y(0,"div",0,1),ft(2,"div",2),ee())},styles:[".ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] {--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--zoom-factor: 1;--viewport-scale-factor: 1;--shadow: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=);--viewer-container-height: 0;--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\")}@media screen and (forced-colors: active){[_nghost-%COMP%] {--pdfViewer-padding-bottom: 9px;--page-margin: 9px auto 0;--page-border: none;--spreadHorizontalWrapped-margin-LR: 4.5px}}[_nghost-%COMP%] .textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}[_nghost-%COMP%] .textLayer span, [_nghost-%COMP%] .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}[_nghost-%COMP%] .textLayer span.markedContent{top:0;height:0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.appended{position:initial}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::selection{background:blue}[_nghost-%COMP%] .textLayer br::selection{background:transparent}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}[_nghost-%COMP%] .annotationLayer section{position:absolute;text-align:initial}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{position:relative;top:0;left:0;z-index:-1}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:yellow;box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled], [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid black}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea :focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;width:20em}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:9px}[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popupDate{display:inline-block;margin-left:5px}[_nghost-%COMP%] .annotationLayer .popupContent{border-top:1px solid #333333;margin-top:2px;padding-top:2px}[_nghost-%COMP%] .annotationLayer .richText>*{white-space:pre-wrap}[_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation{cursor:pointer}[_nghost-%COMP%] .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%] .xfaLayer .highlight.appended{position:initial}[_nghost-%COMP%] .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%] .xfaLayer ::selection{background:blue}[_nghost-%COMP%] .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%] .xfaContentarea{position:absolute}[_nghost-%COMP%] .xfaPrintOnly{display:none}[_nghost-%COMP%] .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%] .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-feature-settings:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%] .xfaLayer div{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%] .xfaLayer a{color:#00f}[_nghost-%COMP%] .xfaRich li{margin-left:3em}[_nghost-%COMP%] .xfaFont{color:#000;font-weight:400;font-feature-settings:\"kern\" off;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%] .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%] .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%] .xfaLabel{height:100%;width:100%}[_nghost-%COMP%] .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%] .xfaLeft>.xfaCaption, [_nghost-%COMP%] .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaRight>.xfaCaption, [_nghost-%COMP%] .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%] .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%] .xfaTop>.xfaCaption, [_nghost-%COMP%] .xfaTop>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaBottom>.xfaCaption, [_nghost-%COMP%] .xfaBottom>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%] .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%] .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%] .xfaTextfield:focus, [_nghost-%COMP%] .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%] .xfaCheckbox:focus, [_nghost-%COMP%] .xfaRadio:focus{outline:auto}[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%] .xfaTop>.xfaTextfield, [_nghost-%COMP%] .xfaTop>.xfaSelect, [_nghost-%COMP%] .xfaBottom>.xfaTextfield, [_nghost-%COMP%] .xfaBottom>.xfaSelect{flex:0 1 auto}[_nghost-%COMP%] .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%] .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}[_nghost-%COMP%] .xfaCheckbox, [_nghost-%COMP%] .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%] .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%] .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .xfaLrTb, [_nghost-%COMP%] .xfaRlTb, [_nghost-%COMP%] .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%] .xfaTb>div{justify-content:left}[_nghost-%COMP%] .xfaPosition{position:relative}[_nghost-%COMP%] .xfaArea{position:relative}[_nghost-%COMP%] .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%] .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%] .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%] .xfaNonInteractive input, [_nghost-%COMP%] .xfaNonInteractive textarea, [_nghost-%COMP%] .xfaDisabled input, [_nghost-%COMP%] .xfaDisabled textarea, [_nghost-%COMP%] .xfaReadOnly input, [_nghost-%COMP%] .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{background:transparent}[_nghost-%COMP%] .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}[_nghost-%COMP%] .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;border-image:var(--shadow) 9 9 repeat;background-color:#fff}[_nghost-%COMP%] .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped, [_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .spread .dummyPage, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQQAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/ilPcHRpbWl6ZWQgd2l0aCBodHRwczovL2V6Z2lmLmNvbS9vcHRpbWl6ZQAh+QQJBwAQACwAAAAAGAAYAAAFmiAkjiTkOGVaBgjZNGSgkgKjjM8zLoI8iy+BKCdiCX8iBeMAhEEIPRXLxViYUE9CbCQoFAzFhHY3zkaT3oPvBz1zE4UBsr1eWZH4vAowOBwGAHk8AoQLfH6Agm0Ed3qOAXWOIgQKiWyFJQgDgJEpdG+WEACNEFNFmKVlVzJQk6qdkwqBoi1mebJ3ALNGeIZHtGSwNDS1RZKueCEAIfkECQcAEAAsAAAAABgAGAAABZcgJI4kpChlWgYCWRQkEKgjURgjw4zOg9CjVwuiEyEeO6CxkBC9nA+HiuUqLEyoBZI0Mx4SAFFgQCDZuguBoGv6Dtg0gvpqdhxQQDkBzuUr/4A1JwMKP39pc2mDhYCIc4GQYn6QCwCMeY91l0p6dBAEJ0OfcFRimZ91Mwt0alxxAIZyRmuAsKxDLKKvZbM1tJxmvGKRpn8hACH5BAkHABAALAAAAAAYABgAAAWhICSOJGQYZVoGAnkcJBKoI3EAY1GMCtPSosSBINKJBIwGkHdwBGGQA0OhYpEGQxNqkYzNIITBACEKKBaxxNfBeOCO4vMy0Hg8nDHFeCktkKtfNAtoS4UqAicKBj9zBAKPC4iKi4aRkISGmWWBmjUIAIyHkCUEAKCVo2WmREecVqoCgZhgP4NHrGWCj7e3szSpuxAsoVWxnp6cVV4kyZW+KSEAIfkECQcAEAAsAAAAABgAGAAABZkgJI4kBABlWgYEOQykEKgjMSDjcYxG0dKi108nEhQKQN4rCIMkCgbawjWYnSCLY2yGVSgEooBhWqsGGwxc0RtNBgoMhmJ1QgETjANYFeBKyUmBKQQIdT9JDmgPDQ6EhoKJD4sOgpWWgiwChyqEBH5hmptSoSOZgJ4kLKWkYTF7C2SaqaM/hEWygay4mYG8t6uffFuzl1iANCEAIfkECQcAEAAsAAAAABgAGAAABZ0gJI4khCBlmhKkopBCoI6LIozDMAIHO4uuBVBnOiR+I4FrCDwAZsKdQnaCLIwwmRUA8JmioprWUCjcwlwUMnAoG0qL03k2KCS8cC0UjOzDCQKBfHQFDAwFU4CCfgqFhy9+kZJWgzSKSAcPZn+BfQENDw8OljGWJAFeDoZPYTBnC1GdSXqnsoBolSulX2GyP6hgvnG0KrS3NJNhuSQhACH5BAkHABAALAAAAAAYABgAAAWaICSOJCQIZZoupGGQRKCOC0CMijIiwz2LABtQZxoMfjQhxAXszWQ7gOwECRhh0MCJJRJARTUoIHFAgbfI6uBwAJS01J/i4PClVYHvfV8lbLlIBmwFbQt+aGmChG18jXeGT4dICQxlb4g/AQUMDER9XjR6BAdiDQwINDBmkAsPDVh4cX4imw53iLKuaVqAcUsPqEiidkt6j4AzIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiREEGWaBiSCtCoZCMsIAKOg1LEo0KKbaKFQ9EYLoOkFuQlirNxzCQkUW9GZ0hQd4nyDAWr4G/esYSbyZFYZwu3jqiuvr8u8I2BwOAwASXh1e31/doeHC3klWnElfAlTd46MfQUGk2stCVEGBQWSdCciDg5VDAVYKoEiDQ0iBwxGcj9RDw8+qHIzebc2DJJQJK6qiKVyIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiS0LGWaBiRBtCoZCKgoCCMB1DF0sz6cCQDo5W62l28XAyZFpyECBv3lnCbhUqHMIo0Qg4Jbmn1jRCa4iV27TzfXGjEecOFWMN1OdvvfPGUuXSoKBw6EXokrAwcHRVU0UAeEBANAAAmUI1gNDyhjJgUHLW0iDg8FIqOnBQZrDA9TELE2rEYIDw4jta2LMpCrqld/YQpgIQAh+QQJBwAQACwAAAAAGAAYAAAFmyAkjiS0LGWaBiRBkKw6BgIqCsJcyyMe4yJajhcEml5H26o1PN2QQd3uFiv2AADlAgflIbDdZLgkABOJgep5LfWty4p4zeU+w+XsvJWXliEKDwdEBgMKYQ4PDw1qK3EDCCMAiQ5BCV0LCj+FSDQkgCgGBiYHAy2MIgoMghAHqw4HAGsNDEMFBTekdgwKI7aRB2MwkL2rVHoQoWchACH5BAkHABAALAAAAAAYABgAAAWWICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkfbqjU83ZBB3e4WK0qrCxyU55peid0qcUwuixyNx6PhILsAcAJazXYj4lvz2MkLiFsHDAlEcABKZwwMBX8pBgoKQxAIigpBA1sLBj+PSDQkB4uSACYDlTMyBgWDEKVnl2QFBUigN61gBQYjtLV5JZ4jtlR6omMhACH5BAkHABAALAAAAAAYABgAAAWaICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkdbidYanm7I4AjwYDh6saJuJ3JUG1mZi9srPA7EcRimJLrfJYWZUVC8TziXnEG3u/E+cIJaPAFrPQl1aQAIbRAGBZGHJQiMUQKRBkEKbQsAPZaEXQcslSYKmjMyAAdXj34ACkNEiUgDA5t+PAQHn6Ogjkuzry2DNwhuIQAh+QQFBwAQACwAAAAAGAAYAAAFnCAkjiS0LGVaBgBJEGSguo8zCsK4CPIsMg+ECCcKEH0ix6MwhJl4KiOp8UCdmrEbo6EoHpxF8A6aBBZ6vhf5dmAkkGr0CoWs21WGQ2FvsI9xC3l7B311fy93iWGKJQQOhHCAJQB6A3IqcWwJLU90i2FkUiMKlhBELEI6MwgDXRAGhQgAYD6tTqRFAJxpA6mvrqazSKJJhUWMpjlIIQA7) center no-repeat}[_nghost-%COMP%] .pdfViewer .page .loadingIcon.notVisible{background:none}[_nghost-%COMP%] .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;user-select:none!important;cursor:not-allowed}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{padding-bottom:0}[_nghost-%COMP%] .pdfPresentationMode .spread{margin:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}"]}),n})(),YK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})(),r2=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(R(Us),R(yt))},n.\u0275dir=qe({type:n}),n})(),cd=(()=>{class n extends r2{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,features:[_t]}),n})();const fs=new lt("NgValueAccessor"),XK={provide:fs,useExisting:Pn(()=>tw),multi:!0},ZK=new lt("CompositionEventMode");let tw=(()=>{class n extends r2{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function QK(){const n=$a()?$a().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Us),R(yt),R(ZK,8))},n.\u0275dir=qe({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&vt("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[kt([XK]),_t]}),n})();function qc(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function o2(n){return null!=n&&"number"==typeof n.length}const Ir=new lt("NgValidators"),Yc=new lt("NgAsyncValidators"),e7=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _g{static min(t){return a2(t)}static max(t){return l2(t)}static required(t){return function c2(n){return qc(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function u2(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function d2(n){return qc(n.value)||e7.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function h2(n){return t=>qc(t.value)||!o2(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function f2(n){return t=>o2(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function p2(n){if(!n)return nw;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(qc(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return y2(t)}static composeAsync(t){return w2(t)}}function a2(n){return t=>{if(qc(t.value)||qc(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function l2(n){return t=>{if(qc(t.value)||qc(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function nw(n){return null}function m2(n){return null!=n}function g2(n){return pm(n)?pi(n):n}function _2(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function v2(n,t){return t.map(e=>e(n))}function b2(n){return n.map(t=>function t7(n){return!n.validate}(t)?t:e=>t.validate(e))}function y2(n){if(!n)return null;const t=n.filter(m2);return 0==t.length?null:function(e){return _2(v2(e,t))}}function $E(n){return null!=n?y2(b2(n)):null}function w2(n){if(!n)return null;const t=n.filter(m2);return 0==t.length?null:function(e){return mN(v2(e,t).map(g2)).pipe(z(_2))}}function GE(n){return null!=n?w2(b2(n)):null}function C2(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function D2(n){return n._rawValidators}function S2(n){return n._rawAsyncValidators}function qE(n){return n?Array.isArray(n)?n:[n]:[]}function iw(n,t){return Array.isArray(n)?n.includes(t):n===t}function A2(n,t){const e=qE(t);return qE(n).forEach(r=>{iw(e,r)||e.push(r)}),e}function M2(n,t){return qE(t).filter(e=>!iw(n,e))}class E2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=$E(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=GE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class wa extends E2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Is extends E2{get formDirective(){return null}get path(){return null}}let k2=(()=>{class n extends class x2{constructor(t){this._cd=t}get isTouched(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.touched)}get isUntouched(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.untouched)}get isPristine(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.pristine)}get isDirty(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.dirty)}get isValid(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.valid)}get isInvalid(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.invalid)}get isPending(){var t,e;return!(null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e||!e.pending)}get isSubmitted(){var t;return!(null===(t=this._cd)||void 0===t||!t.submitted)}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(R(wa,2))},n.\u0275dir=qe({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Kt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[_t]}),n})();const vg="VALID",sw="INVALID",uf="PENDING",bg="DISABLED";function QE(n){return(ow(n)?n.validators:n)||null}function P2(n){return Array.isArray(n)?$E(n):n||null}function ZE(n,t){return(ow(t)?t.asyncValidators:n)||null}function R2(n){return Array.isArray(n)?GE(n):n||null}function ow(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class F2{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=P2(this._rawValidators),this._composedAsyncValidatorFn=R2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===vg}get invalid(){return this.status===sw}get pending(){return this.status==uf}get disabled(){return this.status===bg}get enabled(){return this.status!==bg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=P2(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=R2(t)}addValidators(t){this.setValidators(A2(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(A2(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(M2(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(M2(t,this._rawAsyncValidators))}hasValidator(t){return iw(this._rawValidators,t)}hasAsyncValidator(t){return iw(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=uf,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=bg,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=vg,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vg||this.status===uf)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?bg:vg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=uf,this._hasOwnPendingAsyncValidator=!0;const e=g2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new bt,this.statusChanges=new bt}_calculateStatus(){return this._allControlsDisabled()?bg:this.errors?sw:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(uf)?uf:this._anyControlsHaveStatus(sw)?sw:vg}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ow(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class JE extends F2{constructor(t,e,i){super(QE(e),ZE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function O2(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new nt(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function I2(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new nt(1e3,"");if(!i[e])throw new nt(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function yg(n,t){var e,i;ex(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&(null===(i=(e=t.valueAccessor).setDisabledState)||void 0===i||i.call(e,!0)),function d7(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&L2(n,t)})}(n,t),function f7(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function h7(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&L2(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function u7(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function lw(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),uw(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function cw(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ex(n,t){const e=D2(n);null!==t.validator?n.setValidators(C2(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=S2(n);null!==t.asyncValidator?n.setAsyncValidators(C2(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();cw(t._rawValidators,r),cw(t._rawAsyncValidators,r)}function uw(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=D2(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=S2(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return cw(t._rawValidators,i),cw(t._rawAsyncValidators,i),e}function L2(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function N2(n,t){ex(n,t)}function B2(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const v7={provide:Is,useExisting:Pn(()=>Kc)},wg=(()=>Promise.resolve(null))();let Kc=(()=>{class n extends Is{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new bt,this.form=new JE({},$E(e),GE(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){wg.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),yg(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){wg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){wg.then(()=>{const i=this._findContainer(e.path),r=new JE({});N2(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){wg.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){wg.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,B2(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(R(Ir,10),R(Yc,10))},n.\u0275dir=qe({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&vt("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kt([v7]),_t]}),n})();function H2(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function z2(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const U2=class extends F2{constructor(t=null,e,i){super(QE(e),ZE(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ow(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=z2(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){H2(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){H2(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){z2(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},w7={provide:wa,useExisting:Pn(()=>ix)},$2=(()=>Promise.resolve(null))();let ix=(()=>{class n extends wa{constructor(e,i,r,s,o){super(),this._changeDetectorRef=o,this.control=new U2,this._registered=!1,this.update=new bt,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function nx(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===tw?e=s:function g7(n){return Object.getPrototypeOf(n.constructor)===cd}(s)?i=s:r=s}),r||i||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function tx(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){yg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){$2.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Ul(i);$2.then(()=>{var s;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()})}_getPath(e){return this._parent?function aw(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(R(Is,9),R(Ir,10),R(Yc,10),R(fs,10),R(Xn,8))},n.\u0275dir=qe({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[kt([w7]),_t,Zt]}),n})();const D7={provide:fs,useExisting:Pn(()=>rx),multi:!0};let rx=(()=>{class n extends cd{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&vt("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[kt([D7]),_t]}),n})(),G2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const sx=new lt("NgModelWithFormControlWarning"),x7={provide:Is,useExisting:Pn(()=>Xc)};let Xc=(()=>{class n extends Is{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new bt,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(uw(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return yg(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){lw(e.control||null,e,!1),function _7(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,B2(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(lw(i||null,e),(n=>n instanceof U2)(r)&&(yg(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);N2(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function p7(n,t){return uw(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ex(this.form,this),this._oldForm&&uw(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(R(Ir,10),R(Yc,10))},n.\u0275dir=qe({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&vt("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kt([x7]),_t,Zt]}),n})();function tV(n){return"number"==typeof n?n:parseFloat(n)}let ud=(()=>{class n{constructor(){this._validator=nw}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nw,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,features:[Zt]}),n})();const V7={provide:Ir,useExisting:Pn(()=>ux),multi:!0};let ux=(()=>{class n extends ud{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>tV(e),this.createValidator=e=>l2(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Yt("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[kt([V7]),_t]}),n})();const B7={provide:Ir,useExisting:Pn(()=>dx),multi:!0};let dx=(()=>{class n extends ud{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>tV(e),this.createValidator=e=>a2(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Yt("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[kt([B7]),_t]}),n})(),oV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[G2]}),n})(),aV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[oV]}),n})(),G7=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:sx,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[oV]}),n})();const Y7=["connectionContainer"],K7=["inputContainer"],X7=["label"];function Q7(n,t){1&n&&(dr(0),Y(1,"div",14),ft(2,"div",15)(3,"div",16)(4,"div",17),ee(),Y(5,"div",18),ft(6,"div",15)(7,"div",16)(8,"div",17),ee(),hr())}function Z7(n,t){if(1&n){const e=ii();Y(0,"div",19),vt("cdkObserveContent",function(){return zt(e),$t(Qe().updateOutlineGap())}),Vn(1,1),ee()}2&n&&Pe("cdkObserveContentDisabled","outline"!=Qe().appearance)}function J7(n,t){if(1&n&&(dr(0),Vn(1,2),Y(2,"span"),ie(3),ee(),hr()),2&n){const e=Qe(2);be(3),Yn(e._control.placeholder)}}function e9(n,t){1&n&&Vn(0,3,["*ngSwitchCase","true"])}function t9(n,t){1&n&&(Y(0,"span",23),ie(1," *"),ee())}function n9(n,t){if(1&n){const e=ii();Y(0,"label",20,21),vt("cdkObserveContent",function(){return zt(e),$t(Qe().updateOutlineGap())}),mt(2,J7,4,1,"ng-container",12),mt(3,e9,1,0,"ng-content",12),mt(4,t9,2,0,"span",22),ee()}if(2&n){const e=Qe();Kt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Pe("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Yt("for",e._control.id)("aria-owns",e._control.id),be(2),Pe("ngSwitchCase",!1),be(1),Pe("ngSwitchCase",!0),be(1),Pe("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function i9(n,t){1&n&&(Y(0,"div",24),Vn(1,4),ee())}function r9(n,t){if(1&n&&(Y(0,"div",25),ft(1,"span",26),ee()),2&n){const e=Qe();be(1),Kt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function s9(n,t){1&n&&(Y(0,"div"),Vn(1,5),ee()),2&n&&Pe("@transitionMessages",Qe()._subscriptAnimationState)}function o9(n,t){if(1&n&&(Y(0,"div",30),ie(1),ee()),2&n){const e=Qe(2);Pe("id",e._hintLabelId),be(1),Yn(e.hintLabel)}}function a9(n,t){if(1&n&&(Y(0,"div",27),mt(1,o9,2,2,"div",28),Vn(2,6),ft(3,"div",29),Vn(4,7),ee()),2&n){const e=Qe();Pe("@transitionMessages",e._subscriptAnimationState),be(1),Pe("ngIf",e.hintLabel)}}const l9=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c9=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],u9=new lt("MatError"),d9={transitionMessages:To("transitionMessages",[vr("enter",_n({opacity:1,transform:"translateY(0%)"})),or("void => enter",[_n({opacity:0,transform:"translateY(-5px)"}),_r("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Cg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n}),n})();const h9=new lt("MatHint");let px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["mat-label"]]}),n})(),f9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["mat-placeholder"]]}),n})();const p9=new lt("MatPrefix"),lV=new lt("MatSuffix");let m9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","matSuffix",""]],features:[kt([{provide:lV,useExisting:n}])]}),n})(),cV=0;const _9=Zl(class{constructor(n){this._elementRef=n}},"primary"),v9=new lt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),dw=new lt("MatFormField");let b9=(()=>{class n extends _9{constructor(e,i,r,s,o,a,c){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new y,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+cV++,this._labelId="mat-form-field-label-"+cV++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=(null==s?void 0:s.appearance)||"legacy",s&&(this._hideRequiredMarker=Boolean(s.hideRequiredMarker),s.color&&(this.color=this.defaultColor=s.color))}get appearance(){return this._appearance}set appearance(e){var i;const r=this._appearance;this._appearance=e||(null===(i=this._defaults)||void 0===i?void 0:i.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ft(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(cs(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ot(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Ni(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(cs(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(cs(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ot(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,di(this._label.nativeElement,"transitionend").pipe(Ci(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const f=i.querySelectorAll(`${r}, ${s}`);for(let v=0;v<f.length;v++)f[v].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const c=i.querySelectorAll(r),d=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const f=i.getBoundingClientRect();if(0===f.width&&0===f.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const v=this._getStartEnd(f),x=e.children,B=this._getStartEnd(x[0].getBoundingClientRect());let se=0;for(let me=0;me<x.length;me++)se+=x[me].offsetWidth;o=Math.abs(B-v)-5,a=se>0?.75*se+10:0}for(let f=0;f<c.length;f++)c[f].style.width=`${o}px`;for(let f=0;f<d.length;f++)d[f].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(us,8),R(v9,8),R(Zi),R(jt),R(Ts,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,Cg,5),Dn(r,Cg,7),Dn(r,px,5),Dn(r,px,7),Dn(r,f9,5),Dn(r,u9,5),Dn(r,h9,5),Dn(r,p9,5),Dn(r,lV,5)),2&e){let s;Dt(s=St())&&(i._controlNonStatic=s.first),Dt(s=St())&&(i._controlStatic=s.first),Dt(s=St())&&(i._labelChildNonStatic=s.first),Dt(s=St())&&(i._labelChildStatic=s.first),Dt(s=St())&&(i._placeholderChild=s.first),Dt(s=St())&&(i._errorChildren=s),Dt(s=St())&&(i._hintChildren=s),Dt(s=St())&&(i._prefixChildren=s),Dt(s=St())&&(i._suffixChildren=s)}},viewQuery:function(e,i){if(1&e&&(Hn(Y7,7),Hn(K7,5),Hn(X7,5)),2&e){let r;Dt(r=St())&&(i._connectionContainerRef=r.first),Dt(r=St())&&(i._inputContainerRef=r.first),Dt(r=St())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&Kt("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[kt([{provide:dw,useExisting:n}]),_t],ngContentSelectors:c9,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(Ui(l9),Y(0,"div",0)(1,"div",1,2),vt("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),mt(3,Q7,9,0,"ng-container",3),mt(4,Z7,2,1,"div",4),Y(5,"div",5,6),Vn(7),Y(8,"span",7),mt(9,n9,5,16,"label",8),ee()(),mt(10,i9,2,0,"div",9),ee(),mt(11,r9,2,4,"div",10),Y(12,"div",11),mt(13,s9,2,1,"div",12),mt(14,a9,5,2,"div",13),ee()()),2&e&&(be(3),Pe("ngIf","outline"==i.appearance),be(1),Pe("ngIf",i._prefixChildren.length),be(5),Pe("ngIf",i._hasFloatingLabel()),be(1),Pe("ngIf",i._suffixChildren.length),be(1),Pe("ngIf","outline"!=i.appearance),be(1),Pe("ngSwitch",i._getDisplayedMessages()),be(1),Pe("ngSwitchCase","error"),be(1),Pe("ngSwitchCase","hint"))},dependencies:[mr,qu,xm,AF],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[d9.transitionMessages]},changeDetection:0}),n})(),mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[_a,bn,VM,bn]}),n})();const y9=["*"],dV=new lt("MatChipRemove"),hV=new lt("MatChipAvatar"),fV=new lt("MatChipTrailingIcon");class w9{constructor(t){this._elementRef=t}}const C9=Ym(Zl(Jl(w9),"primary"),-1);let Dg=(()=>{class n extends C9{constructor(e,i,r,s,o,a,c,d){super(e),this._ngZone=i,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new y,this._onBlur=new y,this.selectionChange=new bt,this.destroyed=new bt,this.removed=new bt,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new $F(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=d&&parseInt(d)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=Ft(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Ft(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Ft(e)}get removable(){return this._removable}set removable(e){this._removable=Ft(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(jt),R(Zi),R(GF,8),R(Xn),R(Qt),R(Ts,8),ys("tabindex"))},n.\u0275dir=qe({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,hV,5),Dn(r,fV,5),Dn(r,dV,5)),2&e){let s;Dt(s=St())&&(i.avatar=s.first),Dt(s=St())&&(i.trailingIcon=s.first),Dt(s=St())&&(i.removeIcon=s.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&vt("click",function(s){return i._handleClick(s)})("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Yt("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),Kt("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[_t]}),n})();const pV=new lt("mat-chips-default-options"),x9=qM(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new y}});let k9=0;class T9{constructor(t,e){this.source=t,this.value=e}}let gx=(()=>{class n extends x9{constructor(e,i,r,s,o,a,c){super(a,s,o,c),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new y,this._uid="mat-chip-list-"+k9++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,f)=>d===f,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new bt,this.valueChange=new bt,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=Ft(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(_g.required))&&void 0!==s&&s}set required(e){this._required=Ft(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ft(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Ft(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return Ni(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return Ni(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return Ni(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return Ni(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new UM(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ot(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Ot(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(cs(null),Ot(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new ry(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&e<this.chips.length}_setSelectionByValue(e,i=!0){if(this._clearSelection(),this.chips.forEach(r=>r.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(s=>null!=s.value&&this._compareWith(s.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new T9(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(us,8),R(Kc,8),R(Xc,8),R(Zu),R(wa,10))},n.\u0275cmp=Ct({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,Dg,5),2&e){let s;Dt(s=St())&&(i.chips=s)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&vt("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(s){return i._keydown(s)}),2&e&&(ja("id",i._uid),Yt("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),Kt("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[kt([{provide:Cg,useExisting:n}]),_t],ngContentSelectors:y9,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0),Vn(1),ee())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),P9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Zu,{provide:pV,useValue:{separatorKeyCodes:[13]}}],imports:[bn]}),n})();class mV extends class R9{constructor(){this.expansionModel=new ry(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((e,i)=>[...e,...this.getDescendants(i),i],[]);this.expansionModel.select(...t.map(e=>this._trackByValue(e)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(r=>this._getDescendants(t,r)):Bm(i)&&i.pipe(Ci(1),ji(Boolean)).subscribe(r=>{for(const s of r)this._getDescendants(t,s)})}}const hw=new lt("CDK_TREE_NODE_OUTLET_NODE");let df=(()=>{class n{constructor(e,i){this.viewContainer=e,this._node=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(hw,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkTreeNodeOutlet",""]]}),n})();class I9{constructor(t){this.$implicit=t}}let Sg=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(R(fr))},n.\u0275dir=qe({type:n,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),n})(),sl=(()=>{class n{constructor(e,i){this._differs=e,this._changeDetectorRef=i,this._onDestroy=new y,this._levels=new Map,this.viewChange=new gr({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const e=this._nodeDefs.filter(i=>!i.when);this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let e;iy(this._dataSource)?e=this._dataSource.connect(this):Bm(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=At(this._dataSource)),e&&(this._dataSubscription=e.pipe(Ot(this._onDestroy)).subscribe(i=>this.renderNodeChanges(i)))}renderNodeChanges(e,i=this._dataDiffer,r=this._nodeOutlet.viewContainer,s){const o=i.diff(e);!o||(o.forEachOperation((a,c,d)=>{if(null==a.previousIndex)this.insertNode(e[d],d,r,s);else if(null==d)r.remove(c),this._levels.delete(a.item);else{const f=r.get(c);r.move(f,d)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(s=>s.when&&s.when(i,e))||this._defaultNodeDef}insertNode(e,i,r,s){const o=this._getNodeDef(e,i),a=new I9(e);a.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==s&&this._levels.has(s)?this._levels.get(s)+1:0,this._levels.set(e,a.level),(r||this._nodeOutlet.viewContainer).createEmbeddedView(o.template,a,i),ol.mostRecentTreeNode&&(ol.mostRecentTreeNode.data=e)}}return n.\u0275fac=function(e){return new(e||n)(R(qo),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["cdk-tree"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,Sg,5),2&e){let s;Dt(s=St())&&(i._nodeDefs=s)}},viewQuery:function(e,i){if(1&e&&Hn(df,7),2&e){let r;Dt(r=St())&&(i._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[df],encapsulation:2}),n})(),ol=(()=>{class n{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new y,this._dataChanges=new y,n.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(e){this._elementRef.nativeElement.setAttribute("role",e)}get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function O9(n){let t=n.parentElement;for(;t&&!F9(t);)t=t.parentElement;return t?t.classList.contains("cdk-nested-tree-node")?Gr(t.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return n.mostRecentTreeNode=null,n.\u0275fac=function(e){return new(e||n)(R(yt),R(sl))},n.\u0275dir=qe({type:n,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(e,i){2&e&&Yt("aria-expanded",i.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),n})();function F9(n){const t=n.classList;return!(!(null==t?void 0:t.contains("cdk-nested-tree-node"))&&!(null==t?void 0:t.contains("cdk-tree")))}let fw=(()=>{class n extends ol{constructor(e,i,r){super(e,i),this._differs=r}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):Bm(e)&&e.pipe(Ot(this._destroyed)).subscribe(i=>this.updateChildrenNodes(i)),this.nodeOutlet.changes.pipe(Ot(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(e){const i=this._getNodeOutlet();e&&(this._children=e),i&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,i.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const e=this._getNodeOutlet();e&&(e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const e=this.nodeOutlet;return e&&e.find(i=>!i._node||i._node===this)}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(sl),R(qo))},n.\u0275dir=qe({type:n,selectors:[["cdk-nested-tree-node"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,df,5),2&e){let s;Dt(s=St())&&(i.nodeOutlet=s)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[kt([{provide:ol,useExisting:n},{provide:hw,useExisting:n}]),_t]}),n})(),vx=(()=>{class n{constructor(e,i){this._tree=e,this._treeNode=i,this._recursive=!1}get recursive(){return this._recursive}set recursive(e){this._recursive=Ft(e)}_toggle(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(R(sl),R(ol))},n.\u0275dir=qe({type:n,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,i){1&e&&vt("click",function(s){return i._toggle(s)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),n})(),gV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const N9=Ym(Ql(ol));let _V=(()=>{class n extends N9{constructor(e,i,r){super(e,i),this.tabIndex=Number(r)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(sl),ys("tabindex"))},n.\u0275dir=qe({type:n,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[kt([{provide:ol,useExisting:n}]),_t]}),n})(),vV=(()=>{class n extends Sg{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[kt([{provide:Sg,useExisting:n}]),_t]}),n})(),bV=(()=>{class n extends fw{constructor(e,i,r,s){super(e,i,r),this._disabled=!1,this.tabIndex=Number(s)||0}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?e:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(sl),R(qo),ys("tabindex"))},n.\u0275dir=qe({type:n,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[kt([{provide:fw,useExisting:n},{provide:ol,useExisting:n},{provide:hw,useExisting:n}]),_t]}),n})(),pw=(()=>{class n{constructor(e,i){this.viewContainer=e,this._node=i}}return n.\u0275fac=function(e){return new(e||n)(R(Oi),R(hw,8))},n.\u0275dir=qe({type:n,selectors:[["","matTreeNodeOutlet",""]],features:[kt([{provide:df,useExisting:n}])]}),n})(),yV=(()=>{class n extends sl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-tree"]],viewQuery:function(e,i){if(1&e&&Hn(pw,7),2&e){let r;Dt(r=St())&&(i._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[kt([{provide:sl,useExisting:n}]),_t],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,i){1&e&&oo(0,0)},dependencies:[pw],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),n})(),wV=(()=>{class n extends vx{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275dir=qe({type:n,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[kt([{provide:vx,useExisting:n}]),_t]}),n})(),B9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[gV,bn,bn]}),n})();class H9 extends EM{constructor(){super(...arguments),this._data=new gr([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return Ni(t.viewChange,this._data).pipe(z(()=>this.data))}disconnect(){}}class mw{constructor(t){this.startScrollPosition=0,this.interruptListenersAttached=!1,this.timer=null,t.scrollViews&&0!==t.scrollViews.length?this.isInlineScrolling=!0:(t.scrollViews=[t.document.documentElement,t.document.body,t.document.body.parentNode],this.isInlineScrolling=!1),this.pageScrollOptions=t}static getScrollingTargetPosition(t,e){const i=t.document.body,r=t.document.documentElement,a=t.document.defaultView&&t.document.defaultView.pageYOffset||r.scrollTop||i.scrollTop,c=t.document.defaultView&&t.document.defaultView.pageXOffset||r.scrollLeft||i.scrollLeft,d=r.clientTop||i.clientTop||0,f=r.clientLeft||i.clientLeft||0;if(null==e)return{top:a,left:c};const v=e.getBoundingClientRect(),B=v.left+c-f;return{top:Math.round(v.top+a-d),left:Math.round(B)}}static getInlineScrollingTargetPosition(t,e){const i={top:e.offsetTop,left:e.offsetLeft};if(t.advancedInlineOffsetCalculation&&1===t.scrollViews.length){const r={top:0,left:0},s=e.ownerDocument.defaultView;let o=!1,a=e.parentElement;for(;!o&&null!=a;)"relative"===s.getComputedStyle(a).getPropertyValue("position")&&(r.top+=a.offsetTop,r.left+=a.offsetLeft),a=a.parentElement,o=a===t.scrollViews[0];o&&(i.top+=r.top,i.left+=r.left)}return i}getScrollPropertyValue(t){return this.pageScrollOptions.verticalScrolling?t.scrollTop:t.scrollLeft}getScrollClientPropertyValue(t){return this.pageScrollOptions.verticalScrolling?t.clientHeight:t.clientWidth}extractScrollTargetPosition(){const t=this.getScrollTargetElement();return null==t?{top:NaN,left:NaN}:this.isInlineScrolling?mw.getInlineScrollingTargetPosition(this.pageScrollOptions,t):mw.getScrollingTargetPosition(this.pageScrollOptions,t)}getCurrentOffset(){return this.pageScrollOptions.scrollOffset}setScrollPosition(t){return this.pageScrollOptions.scrollViews.reduce((e,i)=>{const r=this.getScrollPropertyValue(i);if(i&&null!=r){const s=Math.abs(r-t),o=s<this.pageScrollOptions._minScrollDistance;if(this.pageScrollOptions.verticalScrolling?i.scrollTop=t:i.scrollLeft=t,o||s>Math.abs(this.getScrollPropertyValue(i)-t))return!0}return e},!1)}fireEvent(t){this.pageScrollOptions.scrollFinishListener&&this.pageScrollOptions.scrollFinishListener.emit(t)}attachInterruptListeners(t){this.interruptListenersAttached&&this.detachInterruptListeners(),this.interruptListener=e=>{t.report(e,this)},this.pageScrollOptions.interruptEvents.forEach(e=>this.pageScrollOptions.document.body.addEventListener(e,this.interruptListener)),this.interruptListenersAttached=!0}detachInterruptListeners(){this.pageScrollOptions.interruptEvents.forEach(t=>this.pageScrollOptions.document.body.removeEventListener(t,this.interruptListener)),this.interruptListenersAttached=!1}getScrollTargetElement(){if("string"==typeof this.pageScrollOptions.scrollTarget){const t=this.pageScrollOptions.scrollTarget;return null!==t.match(/^#[^\s]+$/g)?this.pageScrollOptions.document.getElementById(t.substr(1)):this.pageScrollOptions.document.querySelector(t)}return this.pageScrollOptions.scrollTarget}}const bx=new lt("ngxps_config"),z9={_interval:10,_minScrollDistance:2,_logLevel:1,namespace:"default",verticalScrolling:!0,duration:1250,scrollOffset:0,advancedInlineOffsetCalculation:!1,interruptEvents:["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],interruptKeys:[" ","Escape","Tab","Enter","PageUp","PageDown","Home","End","ArrowUp","ArrowRight","ArrowLeft","ArrowDown"],interruptible:!0,scrollInView:!0,easingLogic:(n,t,e,i)=>e*n/i+t};let yx=(()=>{class n{constructor(e){this.runningInstances=[],this.onInterrupted={report:(i,r)=>{if(!r.pageScrollOptions.interruptible)return;let s=!0;"keyup"===i.type?-1===this.config.interruptKeys.indexOf(i.key)&&(s=!1):"mousedown"===i.type&&(r.pageScrollOptions.scrollViews.some(o=>o.contains(i.target))||(s=!1)),s&&this.stopAll(r.pageScrollOptions.namespace)}},this.config=Object.assign(Object.assign({},z9),e)}stopInternal(e,i){const r=this.runningInstances.indexOf(i);return r>=0&&this.runningInstances.splice(r,1),i.interruptListenersAttached&&i.detachInterruptListeners(),!!i.timer&&(clearInterval(i.timer),i.timer=void 0,i.fireEvent(!e),!0)}create(e){return new mw(Object.assign(Object.assign({},this.config),e))}start(e){if(e.pageScrollOptions=Object.assign(Object.assign({},this.config),e.pageScrollOptions),this.stopAll(e.pageScrollOptions.namespace),null===e.pageScrollOptions.scrollViews||0===e.pageScrollOptions.scrollViews.length)return void((this.config._logLevel>=2||this.config._logLevel>=1&&Sm())&&console.warn("No scrollViews specified, thus ngx-page-scroll does not know which DOM elements to scroll"));let i=!1,r=e.getScrollClientPropertyValue(e.pageScrollOptions.scrollViews[0]);e.startScrollPosition=0,e.pageScrollOptions.scrollViews.forEach(d=>{if(null==d)return;const f=e.getScrollPropertyValue(d);!i&&f&&(e.startScrollPosition=f,i=!0,r=e.getScrollClientPropertyValue(d))});const s=e.getCurrentOffset(),o=e.extractScrollTargetPosition();if(e.targetScrollPosition=Math.round((e.pageScrollOptions.verticalScrolling?o.top:o.left)-s),e.distanceToScroll=e.targetScrollPosition-e.startScrollPosition,isNaN(e.distanceToScroll))return(this.config._logLevel>=2||this.config._logLevel>=1&&Sm())&&console.log("Scrolling not possible, as we can't find the specified target"),void e.fireEvent(!1);const a=Math.abs(e.distanceToScroll)<e.pageScrollOptions._minScrollDistance;return e.executionDuration=e.pageScrollOptions.duration,null!=e.pageScrollOptions.speed&&null==e.pageScrollOptions.duration&&(e.executionDuration=Math.abs(e.distanceToScroll)/e.pageScrollOptions.speed*1e3),a||e.executionDuration<=e.pageScrollOptions._interval?((this.config._logLevel>=2||this.config._logLevel>=1&&Sm())&&console.log(a?"Scrolling not possible, as we can't get any closer to the destination":"Scroll duration shorter that interval length, jumping to target"),e.setScrollPosition(e.targetScrollPosition),void e.fireEvent(!0)):!e.pageScrollOptions.scrollInView&&e.targetScrollPosition>e.startScrollPosition&&e.targetScrollPosition<=e.startScrollPosition+r?((this.config._logLevel>=2||this.config._logLevel>=1&&Sm())&&console.log("Not scrolling, as target already in view"),void e.fireEvent(!0)):(e.pageScrollOptions.interruptible&&e.attachInterruptListeners(this.onInterrupted),e.startTime=(new Date).getTime(),e.endTime=e.startTime+e.executionDuration,e.timer=setInterval(d=>{const f=(new Date).getTime();let v,x=!1;d.endTime<=f?(v=d.targetScrollPosition,x=!0):v=Math.round(d.pageScrollOptions.easingLogic(f-d.startTime,d.startScrollPosition,d.distanceToScroll,d.executionDuration)),this.config._logLevel>=5&&Sm()&&console.warn("Scroll Position: "+v),d.setScrollPosition(v)||(x=!0),x&&this.stopInternal(!1,d)},this.config._interval,e),void this.runningInstances.push(e))}scroll(e){this.start(this.create(e))}stopAll(e){if(this.runningInstances.length>0){let i=!1;for(let r=0;r<this.runningInstances.length;++r){const s=this.runningInstances[r];(!e||s.pageScrollOptions.namespace===e)&&(i=!0,this.stopInternal(!0,s),r--)}return i}return!1}stop(e){return this.stopInternal(!0,e)}}return n.\u0275fac=function(e){return new(e||n)(Re(bx))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),CV=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[yx,{provide:bx,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[yx,{provide:bx,useValue:{}}]}),n})(),U9=(()=>{class n{constructor(e,i,r){this.pageScrollService=e,this.router=i,this.pageScrollAdjustHash=!1,this.pageScrollFinish=new bt,this.document=r}ngOnChanges(e){this.pageScrollInstance=void 0}ngOnDestroy(){this.pageScrollInstance&&this.pageScrollService.stop(this.pageScrollInstance)}getPageScrollTarget(){return this.pageScrollTarget||this.href||(this.fragment?"#"+this.fragment:"")}generatePageScrollInstance(){if(null==this.pageScrollInstance){const e={document:this.document,scrollTarget:this.getPageScrollTarget()};this.pageScroll&&(e.namespace=this.pageScroll),null!=this.pageScrollHorizontal&&(e.verticalScrolling=!this.pageScrollHorizontal),null!=this.pageScrollOffset&&(e.scrollOffset=this.pageScrollOffset),null!=this.pageScrollInterruptible&&(e.interruptible=this.pageScrollInterruptible),null!=this.pageScrollInView&&(e.scrollInView=this.pageScrollInView),this.pageScrollEasing&&(e.easingLogic=this.pageScrollEasing),null!=this.pageScrollDuration&&(e.duration=this.pageScrollDuration),null!=this.pageScrollSpeed&&(e.speed=this.pageScrollSpeed),this.pageScrollFinish&&(e.scrollFinishListener=this.pageScrollFinish),this.pageScrollInstance=this.pageScrollService.create(e)}return this.pageScrollInstance}pushRouterState(){this.pageScrollAdjustHash&&"string"==typeof this.pageScrollInstance.pageScrollOptions.scrollTarget&&"#"===this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(0,1)&&this.router.navigate([],{fragment:this.pageScrollInstance.pageScrollOptions.scrollTarget.substr(1),queryParamsHandling:"preserve"})}scroll(){const e=this.generatePageScrollInstance();this.pushRouterState(),this.pageScrollService.start(e)}handleClick(e){if(this.routerLink&&null!=this.router){let i;if(i="string"==typeof this.routerLink?this.router.parseUrl(this.routerLink):this.router.createUrlTree(this.routerLink),!this.router.isActive(i,!0))return this.router.events.pipe(ji(r=>r instanceof rc||r instanceof fE||r instanceof ng),Ci(1)).subscribe(r=>{r instanceof rc&&setTimeout(()=>{this.scroll()},0)}),!1}return this.scroll(),!1}}return n.\u0275fac=function(e){return new(e||n)(R(yx),R(Ps,8),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","pageScroll",""]],hostBindings:function(e,i){1&e&&vt("click",function(s){return i.handleClick(s)})},inputs:{routerLink:"routerLink",href:"href",fragment:"fragment",pageScrollTarget:"pageScrollTarget",pageScrollHorizontal:"pageScrollHorizontal",pageScrollOffset:"pageScrollOffset",pageScrollDuration:"pageScrollDuration",pageScrollSpeed:"pageScrollSpeed",pageScrollEasing:"pageScrollEasing",pageScrollInterruptible:"pageScrollInterruptible",pageScrollInView:"pageScrollInView",pageScrollAdjustHash:"pageScrollAdjustHash",pageScroll:"pageScroll"},outputs:{pageScrollFinish:"pageScrollFinish"},features:[Zt]}),n})(),j9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[CV]}),n})();const DV=Ku({passive:!0});let W9=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ns;const i=Gl(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new y,o="cdk-text-field-autofilled",a=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:c.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,DV),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,DV)}}),s}stopMonitoring(e){const i=Gl(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(Re(Zi),Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const AV=new lt("MAT_INPUT_VALUE_ACCESSOR"),$9=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let G9=0;const q9=qM(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new y}});let Y9=(()=>{class n extends q9{constructor(e,i,r,s,o,a,c,d,f,v){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=d,this._formField=v,this._uid="mat-input-"+G9++,this.focused=!1,this.stateChanges=new y,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(se=>nF().has(se)),this._iOSKeyupListener=se=>{const me=se.target;!me.value&&0===me.selectionStart&&0===me.selectionEnd&&(me.setSelectionRange(1,1),me.setSelectionRange(0,0))};const x=this._elementRef.nativeElement,B=x.nodeName.toLowerCase();this._inputValueAccessor=c||x,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&f.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===B,this._isTextarea="textarea"===B,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=x.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ft(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,s;return null!==(s=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(_g.required))&&void 0!==s&&s}set required(e){this._required=Ft(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&nF().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ft(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const i=this._formField,r=!i||"legacy"!==i.appearance||null!==(e=i._hasLabel)&&void 0!==e&&e.call(i)?this.placeholder:null;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){$9.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Zi),R(wa,10),R(Kc,8),R(Xc,8),R(Zu),R(AV,10),R(W9),R(jt),R(dw,8))},n.\u0275dir=qe({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(ja("disabled",i.disabled)("required",i.required),Yt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Kt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[kt([{provide:Cg,useExisting:n}]),_t,Zt]}),n})(),K9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Zu],imports:[SV,mx,bn,SV,mx]}),n})();const X9=["input"],Q9=["label"],Z9=function(n){return{enterDuration:n}},J9=["*"],eX=new lt("mat-checkbox-default-options",{providedIn:"root",factory:MV});function MV(){return{color:"accent",clickAction:"check-indeterminate"}}let tX=0;const EV=MV(),nX={provide:fs,useExisting:Pn(()=>xV),multi:!0};class iX{}const rX=Ym(Zl(Jl(Ql(class{constructor(n){this._elementRef=n}}))));let sX=(()=>{class n extends rX{constructor(e,i,r,s,o,a,c){super(i),this._changeDetectorRef=r,this._ngZone=s,this._animationMode=a,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new bt,this.indeterminateChange=new bt,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||EV,this.color=this.defaultColor=this._options.color||EV.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`${e}${++tX}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ft(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=Ft(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Ft(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Ft(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(s)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=qe({type:n,viewQuery:function(e,i){if(1&e&&(Hn(X9,5),Hn(Q9,5),Hn(ec,5)),2&e){let r;Dt(r=St())&&(i._inputElement=r.first),Dt(r=St())&&(i._labelElement=r.first),Dt(r=St())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[_t]}),n})(),xV=(()=>{class n extends sX{constructor(e,i,r,s,o,a,c){super("mat-checkbox-",e,i,s,o,a,c),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const i=new iX;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(ba),R(jt),ys("tabindex"),R(Ts,8),R(eX,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(ja("id",i.id),Yt("tabindex",null)("aria-label",null)("aria-labelledby",null),Kt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[kt([nX]),_t],ngContentSelectors:J9,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Ui(),Y(0,"label",0,1)(2,"span",2)(3,"input",3,4),vt("change",function(s){return i._onInteractionEvent(s)})("click",function(s){return i._onInputClick(s)}),ee(),Y(5,"span",5),ft(6,"span",6),ee(),ft(7,"span",7),Y(8,"span",8),ia(),Y(9,"svg",9),ft(10,"path",10),ee(),Yf(),ft(11,"span",11),ee()(),Y(12,"span",12,13),vt("cdkObserveContent",function(){return i._onLabelTextChange()}),Y(14,"span",14),ie(15,"\xa0"),ee(),Vn(16),ee()()),2&e){const r=zi(1),s=zi(13);Yt("for",i.inputId),be(2),Kt("mat-checkbox-inner-container-no-side-margin",!s.textContent||!s.textContent.trim()),be(1),Pe("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),Yt("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),be(2),Pe("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",wb(19,Z9,"NoopAnimations"===i._animationMode?0:150))}},dependencies:[ec,AF],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),kV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})(),lX=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Xm,bn,VM,kV,bn,kV]}),n})();function TV(n){return new nt(3e3,!1)}function jX(){return"undefined"!=typeof window&&void 0!==window.document}function wx(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Qc(n){switch(n.length){case 0:return new dg;case 1:return n[0];default:return new VN(n)}}function PV(n,t,e,i,r=new Map,s=new Map){const o=[],a=[];let c=-1,d=null;if(i.forEach(f=>{const v=f.get("offset"),x=v==c,B=x&&d||new Map;f.forEach((se,me)=>{let Oe=me,Fe=se;if("offset"!==me)switch(Oe=t.normalizePropertyName(Oe,o),Fe){case"!":Fe=r.get(me);break;case oc:Fe=s.get(me);break;default:Fe=t.normalizeStyleValue(me,Oe,Fe,o)}B.set(Oe,Fe)}),x||a.push(B),d=B,c=v}),o.length)throw function PX(n){return new nt(3502,!1)}();return a}function Cx(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Dx(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Dx(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Dx(e,"destroy",n)))}}function Dx(n,t,e){const i=e.totalTime,s=Sx(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Sx(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Ro(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function RV(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Ax=(n,t)=>!1,IV=(n,t,e)=>[],OV=null;function Mx(n){const t=n.parentNode||n.host;return t===OV?null:t}(wx()||"undefined"!=typeof Element)&&(jX()?(OV=(()=>document.documentElement)(),Ax=(n,t)=>{for(;t;){if(t===n)return!0;t=Mx(t)}return!1}):Ax=(n,t)=>n.contains(t),IV=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let dd=null,FV=!1;const LV=Ax,NV=IV;let VV=(()=>{class n{validateStyleProperty(e){return function $X(n){dd||(dd=function GX(){return"undefined"!=typeof document?document.body:null}()||{},FV=!!dd.style&&"WebkitAppearance"in dd.style);let t=!0;return dd.style&&!function WX(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in dd.style,!t&&FV&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in dd.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return LV(e,i)}getParentElement(e){return Mx(e)}query(e,i,r){return NV(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],c){return new dg(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Ex=(()=>{class n{}return n.NOOP=new VV,n})();const xx="ng-enter",gw="ng-leave",_w="ng-trigger",vw=".ng-trigger",HV="ng-animating",kx=".ng-animating";function Zc(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Tx(parseFloat(t[1]),t[2])}function Tx(n,t){return"s"===t?1e3*n:n}function bw(n,t,e){return n.hasOwnProperty("duration")?n:function KX(n,t,e){let r,s=0,o="";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(TV()),{duration:0,delay:0,easing:""};r=Tx(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(s=Tx(parseFloat(c),a[4]));const d=a[5];d&&(o=d)}else r=n;if(!e){let a=!1,c=t.length;r<0&&(t.push(function cX(){return new nt(3100,!1)}()),a=!0),s<0&&(t.push(function uX(){return new nt(3101,!1)}()),a=!0),a&&t.splice(c,0,TV())}return{duration:r,delay:s,easing:o}}(n,t,e)}function Ag(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function zV(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Jc(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 jV(n,t,e){return e?t+":"+e+";":""}function WV(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=jV(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=jV(0,JX(e),n.style[e]));n.setAttribute("style",t)}function al(n,t,e){n.style&&(t.forEach((i,r)=>{const s=Rx(r);e&&!e.has(r)&&e.set(r,n.style[s]),n.style[s]=i}),wx()&&WV(n))}function hd(n,t){n.style&&(t.forEach((e,i)=>{const r=Rx(i);n.style[r]=""}),wx()&&WV(n))}function Mg(n){return Array.isArray(n)?1==n.length?n[0]:LN(n):n}const Px=new RegExp("{{\\s*(.+?)\\s*}}","g");function $V(n){let t=[];if("string"==typeof n){let e;for(;e=Px.exec(n);)t.push(e[1]);Px.lastIndex=0}return t}function yw(n,t,e){const i=n.toString(),r=i.replace(Px,(s,o)=>{let a=t[o];return null==a&&(e.push(function hX(n){return new nt(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function ww(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const ZX=/-+([a-z0-9])/g;function Rx(n){return n.replace(ZX,(...t)=>t[1].toUpperCase())}function JX(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Io(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 fX(n){return new nt(3004,!1)}()}}function GV(n,t){return window.getComputedStyle(n)[t]}function sQ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function oQ(n,t,e){if(":"==n[0]){const c=function aQ(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)<parseFloat(e);default:return t.push(function EX(n){return new nt(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof c)return void t.push(c);n=c}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function MX(n){return new nt(3015,!1)}()),t;const r=i[1],s=i[2],o=i[3];t.push(qV(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(qV(o,r))}(i,e,t)):e.push(n),e}const Aw=new Set(["true","1"]),Mw=new Set(["false","0"]);function qV(n,t){const e=Aw.has(n)||Mw.has(n),i=Aw.has(t)||Mw.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Aw.has(n):Mw.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Aw.has(t):Mw.has(t)),o&&a}}const lQ=new RegExp("s*:selfs*,?","g");function Ix(n,t,e,i){return new cQ(n).build(t,e,i)}class cQ{constructor(t){this._driver=t}build(t,e,i){const r=new hQ(e);return this._resetContextStyleTimingState(r),Io(this,Mg(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 s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function mX(){return new nt(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const c=a,d=c.name;d.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,s.push(this.visitState(c,e))}),c.name=d}else if(1==a.type){const c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,o.push(c)}else e.errors.push(function gX(){return new nt(3007,!1)}())}),{type:7,name:t.name,states:s,transitions:o,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 s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{$V(c).forEach(d=>{o.hasOwnProperty(d)||s.add(d)})})}),s.size&&(ww(s.values()),e.errors.push(function _X(n,t){return new nt(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=Io(this,Mg(t.animation),e);return{type:1,matchers:sQ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:fd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Io(this,i,e)),options:fd(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=Io(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:fd(t.options)}}visitAnimate(t,e){const i=function pQ(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ox(bw(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Ox(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=bw(e,t);return Ox(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:_n({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const d={};i.easing&&(d.easing=i.easing),o=_n(d)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(o,e);c.isEmptyStep=a,r=c}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===oc?i.push(a):e.errors.push(new nt(3002,!1)):i.push(zV(a));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let c of a.values())if(c.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{const d=e.collectedStyles.get(e.currentQuerySelector),f=d.get(c);let v=!0;f&&(s!=r&&s>=f.startTime&&r<=f.endTime&&(e.errors.push(function bX(n,t,e,i,r){return new nt(3010,!1)}()),v=!1),s=f.startTime),v&&d.set(c,{startTime:s,endTime:r}),e.options&&function QX(n,t,e){const i=t.params||{},r=$V(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function dX(n){return new nt(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 yX(){return new nt(3011,!1)}()),i;let s=0;const o=[];let a=!1,c=!1,d=0;const f=t.steps.map(Fe=>{const et=this._makeStyleAst(Fe,e);let We=null!=et.offset?et.offset:function fQ(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}(et.styles),ot=0;return null!=We&&(s++,ot=et.offset=We),c=c||ot<0||ot>1,a=a||ot<d,d=ot,o.push(ot),et});c&&e.errors.push(function wX(){return new nt(3012,!1)}()),a&&e.errors.push(function CX(){return new nt(3200,!1)}());const v=t.steps.length;let x=0;s>0&&s<v?e.errors.push(function DX(){return new nt(3202,!1)}()):0==s&&(x=1/(v-1));const B=v-1,se=e.currentTime,me=e.currentAnimateTimings,Oe=me.duration;return f.forEach((Fe,et)=>{const We=x>0?et==B?1:x*et:o[et],ot=We*Oe;e.currentTime=se+me.delay+ot,me.duration=ot,this._validateStyleAst(Fe,e),Fe.offset=We,i.styles.push(Fe)}),i}visitReference(t,e){return{type:8,animation:Io(this,Mg(t.animation),e),options:fd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:fd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:fd(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function uQ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(lQ,"")),n=n.replace(/@\*/g,vw).replace(/@\w+/g,e=>vw+"-"+e.slice(1)).replace(/:animating/g,kx),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Ro(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,Mg(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:fd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function SX(){return new nt(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:bw(t.timings,e.errors,!0);return{type:12,animation:Io(this,Mg(t.animation),e),timings:i,options:null}}}class hQ{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 fd(n){return n?(n=Ag(n)).params&&(n.params=function dQ(n){return n?Ag(n):null}(n.params)):n={},n}function Ox(n,t,e){return{duration:n,delay:t,easing:e}}function Fx(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Ew{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 _Q=new RegExp(":enter","g"),bQ=new RegExp(":leave","g");function Lx(n,t,e,i,r,s=new Map,o=new Map,a,c,d=[]){return(new yQ).buildKeyframes(n,t,e,i,r,s,o,a,c,d)}class yQ{buildKeyframes(t,e,i,r,s,o,a,c,d,f=[]){d=d||new Ew;const v=new Nx(t,e,d,r,s,f,[]);v.options=c;const x=c.delay?Zc(c.delay):0;v.currentTimeline.delayNextStep(x),v.currentTimeline.setStyles([o],null,v.errors,c),Io(this,i,v);const B=v.timelines.filter(se=>se.containsAnimation());if(B.length&&a.size){let se;for(let me=B.length-1;me>=0;me--){const Oe=B[me];if(Oe.element===e){se=Oe;break}}se&&!se.allowOnlyTimelineStyles()&&se.setStyles([a],null,v.errors,c)}return B.length?B.map(se=>se.buildKeyframes()):[Fx(e,[],[],[],0,x,"",!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),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}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 s=e.currentTimeline.currentTime;const o=null!=i.duration?Zc(i.duration):null,a=null!=i.delay?Zc(i.delay):null;return 0!==o&&t.forEach(c=>{const d=e.appendInstructionToTimeline(c,o,a);s=Math.max(s,d.duration+d.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Io(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=xw);const o=Zc(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Io(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Zc(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Io(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return bw(e.params?yw(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 s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,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 s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(c=>{a.forwardTime((c.offset||0)*s),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Zc(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xw);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((d,f)=>{e.currentQueryIndex=f;const v=e.createSubContext(t.options,d);s&&v.delayNextStep(s),d===e.element&&(c=v.currentTimeline),Io(this,t.animation,v),v.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,v.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let c=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime}const f=e.currentTimeline;c&&f.delayNextStep(c);const v=f.currentTime;Io(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-v+(r.startTime-i.currentTimeline.startTime)}}const xw={};class Nx{constructor(t,e,i,r,s,o,a,c){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new kw(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=Zc(i.duration)),null!=i.delay&&(r.delay=Zc(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=yw(s[a],o,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,s=new Nx(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=xw,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:""},s=new wQ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(_Q,"."+this._enterClassName)).replace(bQ,"."+this._leaveClassName);let d=this._driver.query(this.element,t,1!=i);0!==i&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),a.push(...d)}return!s&&0==a.length&&o.push(function AX(n){return new nt(3014,!1)}()),a}}class kw{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 kw(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||oc),this._currentKeyframe.set(e,oc);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){var s;e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function CQ(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let s of i)e.set(s,oc)}else Jc(r,e)}),e}(t,this._globalTimelineStyles);for(let[c,d]of a){const f=yw(d,o,i);this._pendingStyles.set(c,f),this._localTimelineStyles.has(c)||this._backFill.set(c,null!==(s=this._globalTimelineStyles.get(c))&&void 0!==s?s:oc),this._updateStyle(c,f)}}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,c)=>{const d=Jc(a,new Map,this._backFill);d.forEach((f,v)=>{"!"===f?t.add(v):f===oc&&e.add(v)}),i||d.set("offset",c/this.duration),r.push(d)});const s=t.size?ww(t.values()):[],o=e.size?ww(e.values()):[];if(i){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return Fx(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class wQ extends kw{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.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 s=[],o=i+e,a=e/o,c=Jc(t[0]);c.set("offset",0),s.push(c);const d=Jc(t[0]);d.set("offset",XV(a)),s.push(d);const f=t.length-1;for(let v=1;v<=f;v++){let x=Jc(t[v]);const B=x.get("offset");x.set("offset",XV((e+B*i)/o)),s.push(x)}i=o,e=0,r="",t=s}return Fx(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function XV(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Vx{}const DQ=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 SQ extends Vx{normalizePropertyName(t,e){return Rx(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(DQ.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function pX(n,t){return new nt(3005,!1)}())}return o+s}}function QV(n,t,e,i,r,s,o,a,c,d,f,v,x){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:d,postStyleProps:f,totalTime:v,errors:x}}const Bx={};class ZV{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function AQ(n,t,e,i,r){return n.some(s=>s(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,s,o,a,c,d,f){var v;const x=[],B=this.ast.options&&this.ast.options.params||Bx,me=this.buildStyles(i,a&&a.params||Bx,x),Oe=c&&c.params||Bx,Fe=this.buildStyles(r,Oe,x),et=new Set,We=new Map,ot=new Map,Tt="void"===r,Wt={params:MQ(Oe,B),delay:null===(v=this.ast.options)||void 0===v?void 0:v.delay},Sn=f?[]:Lx(t,e,this.ast.animation,s,o,me,Fe,Wt,d,x);let ti=0;if(Sn.forEach(Wi=>{ti=Math.max(Wi.duration+Wi.delay,ti)}),x.length)return QV(e,this._triggerName,i,r,Tt,me,Fe,[],[],We,ot,ti,x);Sn.forEach(Wi=>{const Gs=Wi.element,qs=Ro(We,Gs,new Set);Wi.preStyleProps.forEach(lo=>qs.add(lo));const Ys=Ro(ot,Gs,new Set);Wi.postStyleProps.forEach(lo=>Ys.add(lo)),Gs!==e&&et.add(Gs)});const Hr=ww(et.values());return QV(e,this._triggerName,i,r,Tt,me,Fe,Sn,Hr,We,ot,ti)}}function MQ(n,t){const e=Ag(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class EQ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Ag(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=yw(o,r,e));const c=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,c,o,e),i.set(c,o)})}),i}}class kQ{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 EQ(r.style,r.options&&r.options.params||{},i))}),JV(this.states,"true","1"),JV(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new ZV(t,r,this.states))}),this.fallbackTransition=function TQ(n,t,e){return new ZV(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,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(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function JV(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 PQ=new Ew;class RQ{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=[],s=Ix(this._driver,e,i,[]);if(i.length)throw function RX(n){return new nt(3503,!1)}();this._animations.set(t,s)}_buildPlayer(t,e,i){const r=t.element,s=PV(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations.get(t);let o;const a=new Map;if(s?(o=Lx(this._driver,e,s,xx,gw,new Map,new Map,i,PQ,r),o.forEach(f=>{const v=Ro(a,f.element,new Map);f.postStyleProps.forEach(x=>v.set(x,null))})):(r.push(function IX(){return new nt(3300,!1)}()),o=[]),r.length)throw function OX(n){return new nt(3504,!1)}();a.forEach((f,v)=>{f.forEach((x,B)=>{f.set(B,this._driver.computeStyle(v,B,oc))})});const d=Qc(o.map(f=>{const v=a.get(f.element);return this._buildPlayer(f,new Map,v)}));return this._playersById.set(t,d),d.onDestroy(()=>this.destroy(t)),this.players.push(d),d}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 FX(n){return new nt(3301,!1)}();return e}listen(t,e,i,r){const s=Sx(e,"","","");return Cx(this._getPlayer(t),i,s,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 s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const eB="ng-animate-queued",Hx="ng-animate-disabled",NQ=[],tB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VQ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zo="__ng_removed";class zx{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function UQ(n){return null!=n?n:null}(i?t.value:t),i){const s=Ag(t);delete s.value,this.options=s}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 Eg="void",Ux=new zx(Eg);class BQ{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,Jo(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function LX(n,t){return new nt(3302,!1)}();if(null==i||0==i.length)throw function NX(n){return new nt(3303,!1)}();if(!function jQ(n){return"start"==n||"done"==n}(i))throw function VX(n,t){return new nt(3400,!1)}();const s=Ro(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Ro(this._engine.statesByElement,t,new Map);return a.has(e)||(Jo(t,_w),Jo(t,_w+"-"+e),a.set(e,Ux)),()=>{this._engine.afterFlush(()=>{const c=s.indexOf(o);c>=0&&s.splice(c,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 BX(n){return new nt(3401,!1)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new jx(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Jo(t,_w),Jo(t,_w+"-"+e),this._engine.statesByElement.set(t,a=new Map));let c=a.get(e);const d=new zx(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&d.absorbOptions(c.options),a.set(e,d),c||(c=Ux),d.value!==Eg&&c.value===d.value){if(!function GQ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(c.params,d.params)){const me=[],Oe=s.matchStyles(c.value,c.params,me),Fe=s.matchStyles(d.value,d.params,me);me.length?this._engine.reportError(me):this._engine.afterFlush(()=>{hd(t,Oe),al(t,Fe)})}return}const x=Ro(this._engine.playersByElement,t,[]);x.forEach(me=>{me.namespaceId==this.id&&me.triggerName==e&&me.queued&&me.destroy()});let B=s.matchTransition(c.value,d.value,t,d.params),se=!1;if(!B){if(!r)return;B=s.fallbackTransition,se=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:B,fromState:c,toState:d,player:o,isFallbackTransition:se}),se||(Jo(t,eB),o.onStart(()=>{hf(t,eB)})),o.onDone(()=>{let me=this.players.indexOf(o);me>=0&&this.players.splice(me,1);const Oe=this._engine.playersByElement.get(t);if(Oe){let Fe=Oe.indexOf(o);Fe>=0&&Oe.splice(Fe,1)}}),this.players.push(o),x.push(o),o}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,vw,!0);i.forEach(r=>{if(r[Zo])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(s.forEach((c,d)=>{if(o.set(d,c.value),this._triggers.has(d)){const f=this.trigger(t,d,Eg,r);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Qc(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(s=>{const o=s.name;if(r.has(o))return;r.add(o);const c=this._triggers.get(o).fallbackTransition,d=i.get(o)||Ux,f=new zx(Eg),v=new jx(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:c,fromState:d,toState:f,player:v,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 s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Zo];(!s||s===tB)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Jo(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const c=Sx(s,i.triggerName,i.fromState.value,i.toState.value);c._data=t,Cx(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o: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 HQ{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,s)=>{}}_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 BQ(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 o=!1,a=this.driver.getParentElement(e);for(;a;){const c=r.get(a);if(c){const d=i.indexOf(c);i.splice(d+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||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 s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}return e}trigger(t,e,i,r){if(Tw(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Tw(e))return;const s=e[Zo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.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),Jo(t,Hx)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),hf(t,Hx))}removeNode(t,e,i,r){if(Tw(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[Zo]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return Tw(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,vw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,kx,!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 Qc(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[Zo];if(i&&i.setForRemoval){if(t[Zo]=tB,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(Hx)&&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;i<this.collectedEnterElements.length;i++)Jo(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Qc(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function HX(n){return new nt(3402,!1)}()}_flushAnimations(t,e){const i=new Ew,r=[],s=new Map,o=[],a=new Map,c=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(wt=>{f.add(wt);const Bt=this.driver.query(wt,".ng-animate-queued",!0);for(let en=0;en<Bt.length;en++)f.add(Bt[en])});const v=this.bodyNode,x=Array.from(this.statesByElement.keys()),B=rB(x,this.collectedEnterElements),se=new Map;let me=0;B.forEach((wt,Bt)=>{const en=xx+me++;se.set(Bt,en),wt.forEach(kn=>Jo(kn,en))});const Oe=[],Fe=new Set,et=new Set;for(let wt=0;wt<this.collectedLeaveElements.length;wt++){const Bt=this.collectedLeaveElements[wt],en=Bt[Zo];en&&en.setForRemoval&&(Oe.push(Bt),Fe.add(Bt),en.hasAnimation?this.driver.query(Bt,".ng-star-inserted",!0).forEach(kn=>Fe.add(kn)):et.add(Bt))}const We=new Map,ot=rB(x,Array.from(Fe));ot.forEach((wt,Bt)=>{const en=gw+me++;We.set(Bt,en),wt.forEach(kn=>Jo(kn,en))}),t.push(()=>{B.forEach((wt,Bt)=>{const en=se.get(Bt);wt.forEach(kn=>hf(kn,en))}),ot.forEach((wt,Bt)=>{const en=We.get(Bt);wt.forEach(kn=>hf(kn,en))}),Oe.forEach(wt=>{this.processLeaveNode(wt)})});const Tt=[],Wt=[];for(let wt=this._namespaceList.length-1;wt>=0;wt--)this._namespaceList[wt].drainQueuedTransitions(e).forEach(en=>{const kn=en.player,Gi=en.element;if(Tt.push(kn),this.collectedEnterElements.length){const wr=Gi[Zo];if(wr&&wr.setForMove){if(wr.previousTriggersValues&&wr.previousTriggersValues.has(en.triggerName)){const Ei=wr.previousTriggersValues.get(en.triggerName),On=this.statesByElement.get(en.element);if(On&&On.has(en.triggerName)){const ps=On.get(en.triggerName);ps.value=Ei,On.set(en.triggerName,ps)}}return void kn.destroy()}}const co=!v||!this.driver.containsElement(v,Gi),zr=We.get(Gi),Da=se.get(Gi),vi=this._buildInstruction(en,i,Da,zr,co);if(vi.errors&&vi.errors.length)return void Wt.push(vi);if(co)return kn.onStart(()=>hd(Gi,vi.fromStyles)),kn.onDestroy(()=>al(Gi,vi.toStyles)),void r.push(kn);if(en.isFallbackTransition)return kn.onStart(()=>hd(Gi,vi.fromStyles)),kn.onDestroy(()=>al(Gi,vi.toStyles)),void r.push(kn);const Og=[];vi.timelines.forEach(wr=>{wr.stretchStartingKeyframe=!0,this.disabledNodes.has(wr.element)||Og.push(wr)}),vi.timelines=Og,i.append(Gi,vi.timelines),o.push({instruction:vi,player:kn,element:Gi}),vi.queriedElements.forEach(wr=>Ro(a,wr,[]).push(kn)),vi.preStyleProps.forEach((wr,Ei)=>{if(wr.size){let On=c.get(Ei);On||c.set(Ei,On=new Set),wr.forEach((ps,iu)=>On.add(iu))}}),vi.postStyleProps.forEach((wr,Ei)=>{let On=d.get(Ei);On||d.set(Ei,On=new Set),wr.forEach((ps,iu)=>On.add(iu))})});if(Wt.length){const wt=[];Wt.forEach(Bt=>{wt.push(function zX(n,t){return new nt(3505,!1)}())}),Tt.forEach(Bt=>Bt.destroy()),this.reportError(wt)}const Sn=new Map,ti=new Map;o.forEach(wt=>{const Bt=wt.element;i.has(Bt)&&(ti.set(Bt,Bt),this._beforeAnimationBuild(wt.player.namespaceId,wt.instruction,Sn))}),r.forEach(wt=>{const Bt=wt.element;this._getPreviousPlayers(Bt,!1,wt.namespaceId,wt.triggerName,null).forEach(kn=>{Ro(Sn,Bt,[]).push(kn),kn.destroy()})});const Hr=Oe.filter(wt=>oB(wt,c,d)),Wi=new Map;iB(Wi,this.driver,et,d,oc).forEach(wt=>{oB(wt,c,d)&&Hr.push(wt)});const qs=new Map;B.forEach((wt,Bt)=>{iB(qs,this.driver,new Set(wt),c,"!")}),Hr.forEach(wt=>{var Bt,en;const kn=Wi.get(wt),Gi=qs.get(wt);Wi.set(wt,new Map([...Array.from(null!==(Bt=null==kn?void 0:kn.entries())&&void 0!==Bt?Bt:[]),...Array.from(null!==(en=null==Gi?void 0:Gi.entries())&&void 0!==en?en:[])]))});const Ys=[],lo=[],$i={};o.forEach(wt=>{const{element:Bt,player:en,instruction:kn}=wt;if(i.has(Bt)){if(f.has(Bt))return en.onDestroy(()=>al(Bt,kn.toStyles)),en.disabled=!0,en.overrideTotalTime(kn.totalTime),void r.push(en);let Gi=$i;if(ti.size>1){let zr=Bt;const Da=[];for(;zr=zr.parentNode;){const vi=ti.get(zr);if(vi){Gi=vi;break}Da.push(zr)}Da.forEach(vi=>ti.set(vi,Gi))}const co=this._buildAnimation(en.namespaceId,kn,Sn,s,qs,Wi);if(en.setRealPlayer(co),Gi===$i)Ys.push(en);else{const zr=this.playersByElement.get(Gi);zr&&zr.length&&(en.parentPlayer=Qc(zr)),r.push(en)}}else hd(Bt,kn.fromStyles),en.onDestroy(()=>al(Bt,kn.toStyles)),lo.push(en),f.has(Bt)&&r.push(en)}),lo.forEach(wt=>{const Bt=s.get(wt.element);if(Bt&&Bt.length){const en=Qc(Bt);wt.setRealPlayer(en)}}),r.forEach(wt=>{wt.parentPlayer?wt.syncPlayerEvents(wt.parentPlayer):wt.destroy()});for(let wt=0;wt<Oe.length;wt++){const Bt=Oe[wt],en=Bt[Zo];if(hf(Bt,gw),en&&en.hasAnimation)continue;let kn=[];if(a.size){let co=a.get(Bt);co&&co.length&&kn.push(...co);let zr=this.driver.query(Bt,kx,!0);for(let Da=0;Da<zr.length;Da++){let vi=a.get(zr[Da]);vi&&vi.length&&kn.push(...vi)}}const Gi=kn.filter(co=>!co.destroyed);Gi.length?WQ(this,Bt,Gi):this.processLeaveNode(Bt)}return Oe.length=0,Ys.forEach(wt=>{this.players.push(wt),wt.onDone(()=>{wt.destroy();const Bt=this.players.indexOf(wt);this.players.splice(Bt,1)}),wt.play()}),Ys}elementContainsData(t,e){let i=!1;const r=e[Zo];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,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const c=!s||s==Eg;a.forEach(d=>{d.queued||!c&&d.triggerName!=r||o.push(d)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const d=c.element,f=d!==s,v=Ro(i,d,[]);this._getPreviousPlayers(d,f,o,a,e.toState).forEach(B=>{const se=B.getRealPlayer();se.beforeDestroy&&se.beforeDestroy(),B.destroy(),v.push(B)})}hd(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,c=e.element,d=[],f=new Set,v=new Set,x=e.timelines.map(se=>{const me=se.element;f.add(me);const Oe=me[Zo];if(Oe&&Oe.removedBeforeQueried)return new dg(se.duration,se.delay);const Fe=me!==c,et=function $Q(n){const t=[];return sB(n,t),t}((i.get(me)||NQ).map(Sn=>Sn.getRealPlayer())).filter(Sn=>!!Sn.element&&Sn.element===me),We=s.get(me),ot=o.get(me),Tt=PV(0,this._normalizer,0,se.keyframes,We,ot),Wt=this._buildPlayer(se,Tt,et);if(se.subTimeline&&r&&v.add(me),Fe){const Sn=new jx(t,a,me);Sn.setRealPlayer(Wt),d.push(Sn)}return Wt});d.forEach(se=>{Ro(this.playersByQueriedElement,se.element,[]).push(se),se.onDone(()=>function zQ(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,se.element,se))}),f.forEach(se=>Jo(se,HV));const B=Qc(x);return B.onDestroy(()=>{f.forEach(se=>hf(se,HV)),al(c,e.toStyles)}),v.forEach(se=>{Ro(r,se,[]).push(B)}),B}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new dg(t.duration,t.delay)}}class jx{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new dg,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=>Cx(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){Ro(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 Tw(n){return n&&1===n.nodeType}function nB(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function iB(n,t,e,i,r){const s=[];e.forEach(c=>s.push(nB(c)));const o=[];i.forEach((c,d)=>{const f=new Map;c.forEach(v=>{const x=t.computeStyle(d,v,r);f.set(v,x),(!x||0==x.length)&&(d[Zo]=VQ,o.push(d))}),n.set(d,f)});let a=0;return e.forEach(c=>nB(c,s[a++])),o}function rB(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let c=s.get(a);if(c)return c;const d=a.parentNode;return c=e.has(d)?d:r.has(d)?1:o(d),s.set(a,c),c}return t.forEach(a=>{const c=o(a);1!==c&&e.get(c).push(a)}),e}function Jo(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function hf(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function WQ(n,t,e){Qc(e).onDone(()=>n.processLeaveNode(t))}function sB(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof VN?sB(i.players,t):t.push(i)}}function oB(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class Pw{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new HQ(t,e,i),this._timelineEngine=new RQ(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const c=[],f=Ix(this._driver,s,c,[]);if(c.length)throw function TX(n,t){return new nt(3404,!1)}();a=function xQ(n,t,e){return new kQ(n,t,e)}(r,f,this._normalizer),this._triggerCache[o]=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[s,o]=RV(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=RV(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let YQ=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&al(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(al(this._element,this._initialStyles),this._endStyles&&(al(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(hd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hd(this._element,this._endStyles),this._endStyles=null),al(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Wx(n){let t=null;return n.forEach((e,i)=>{(function KQ(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class aB{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:GV(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class XQ{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return LV(t,e)}getParentElement(t){return Mx(t)}query(t,e,i){return NV(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const c={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(c.easing=s);const d=new Map,f=o.filter(B=>B instanceof aB);(function eQ(n,t){return 0===n||0===t})(i,r)&&f.forEach(B=>{B.currentSnapshot.forEach((se,me)=>d.set(me,se))});let v=function XX(n){return n.length?n[0]instanceof Map?n:n.map(t=>zV(t)):[]}(e).map(B=>Jc(B));v=function tQ(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<t.length;s++){let o=t[s];r.forEach(a=>o.set(a,GV(n,a)))}}return t}(t,v,d);const x=function qQ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Wx(t[0]),t.length>1&&(i=Wx(t[t.length-1]))):t instanceof Map&&(e=Wx(t)),e||i?new YQ(n,e,i):null}(t,v);return new aB(t,v,c,x)}}let QQ=(()=>{class n extends FN{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Js.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?LN(e):e;return lB(this._renderer,null,i,"register",[r]),new ZQ(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(Re(Ol),Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class ZQ extends class eK{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new JQ(this._id,t,e||{},this._renderer)}}class JQ{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 lB(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 lB(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const cB="@.disabled";let eZ=(()=>{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=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let f=this._rendererCache.get(s);return f||(f=new uB("",s,this.engine),this._rendererCache.set(s,f)),f}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const c=f=>{Array.isArray(f)?f.forEach(c):this.engine.registerTrigger(o,a,e,f.name,f)};return i.data.animation.forEach(c),new tZ(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(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)(Re(Ol),Re(Pw),Re(jt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();class uB{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==cB?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 tZ extends uB{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==cB?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 nZ(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function iZ(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const dB=[{provide:FN,useClass:QQ},{provide:Vx,useFactory:function sZ(){return new SQ}},{provide:Pw,useClass:(()=>{class n extends Pw{constructor(e,i,r,s){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Ex),Re(Vx),Re(qh))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})()},{provide:Ol,useFactory:function oZ(n,t,e){return new eZ(n,t,e)},deps:[qb,Pw,jt]}],$x=[{provide:Ex,useFactory:()=>new XQ},{provide:Ts,useValue:"BrowserAnimations"},...dB],hB=[{provide:Ex,useClass:VV},{provide:Ts,useValue:"NoopAnimations"},...dB];let aZ=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?hB:$x}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:$x,imports:[YO]}),n})();let ff={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const cZ=/[&<>"']/,uZ=/[&<>"']/g,dZ=/[<>"']|&(?!#?\w+;)/,hZ=/[<>"']|&(?!#?\w+;)/g,fZ={"&":"&","<":"<",">":">",'"':""","'":"'"},pB=n=>fZ[n];function qr(n,t){if(t){if(cZ.test(n))return n.replace(uZ,pB)}else if(dZ.test(n))return n.replace(hZ,pB);return n}const pZ=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function mB(n){return n.replace(pZ,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const mZ=/(^|[^\[])\^/g;function Di(n,t){n="string"==typeof n?n:n.source,t=t||"";const e={replace:(i,r)=>(r=(r=r.source||r).replace(mZ,"$1"),n=n.replace(i,r),e),getRegex:()=>new RegExp(n,t)};return e}const gZ=/[^\w:]/g,_Z=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function gB(n,t,e){if(n){let i;try{i=decodeURIComponent(mB(e)).replace(gZ,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!_Z.test(e)&&(e=function wZ(n,t){Iw[" "+n]||(Iw[" "+n]=vZ.test(n)?n+"/":Fw(n,"/",!0));const e=-1===(n=Iw[" "+n]).indexOf(":");return"//"===t.substring(0,2)?e?t:n.replace(bZ,"$1")+t:"/"===t.charAt(0)?e?t:n.replace(yZ,"$1")+t:n+t}(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(i){return null}return e}const Iw={},vZ=/^[^:]+:\/*[^/]*$/,bZ=/^([^:]+:)[\s\S]*$/,yZ=/^([^:]+:\/*[^/]*)[\s\S]*$/,Ow={exec:function(){}};function Ca(n){let e,i,t=1;for(;t<arguments.length;t++)for(i in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function _B(n,t){const i=n.replace(/\|/g,(s,o,a)=>{let c=!1,d=o;for(;--d>=0&&"\\"===a[d];)c=!c;return c?"|":" |"}).split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function Fw(n,t,e){const i=n.length;if(0===i)return"";let r=0;for(;r<i;){const s=n.charAt(i-r-1);if(s!==t||e){if(s===t||!e)break;r++}else r++}return n.slice(0,i-r)}function vB(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function bB(n,t){if(t<1)return"";let e="";for(;t>1;)1&t&&(e+=n),t>>=1,n+=n;return e+n}function yB(n,t,e,i){const r=t.href,s=t.title?qr(t.title):null,o=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;const a={type:"link",raw:e,href:r,title:s,text:o,tokens:i.inlineTokens(o,[])};return i.state.inLink=!1,a}return{type:"image",raw:e,href:r,title:s,text:qr(o)}}class Gx{constructor(t){this.options=t||ff}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const i=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Fw(i,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const i=e[0],r=function DZ(n,t){const e=n.match(/^(\s+)(?:```)/);if(null===e)return t;const i=e[1];return t.split("\n").map(r=>{const s=r.match(/^\s+/);if(null===s)return r;const[o]=s;return o.length>=i.length?r.slice(i.length):r}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(/#$/.test(i)){const s=Fw(i,"#");(this.options.pedantic||!s||/ $/.test(s))&&(i=s.trim())}const r={type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const i=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let i,r,s,o,a,c,d,f,v,x,B,se,me=e[1].trim();const Oe=me.length>1,Fe={type:"list",raw:"",ordered:Oe,start:Oe?+me.slice(0,-1):"",loose:!1,items:[]};me=Oe?`\\d{1,9}\\${me.slice(-1)}`:`\\${me}`,this.options.pedantic&&(me=Oe?me:"[*+-]");const et=new RegExp(`^( {0,3}${me})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(se=!1,(e=et.exec(t))&&!this.rules.block.hr.test(t));){if(i=e[0],t=t.substring(i.length),f=e[2].split("\n",1)[0],v=t.split("\n",1)[0],this.options.pedantic?(o=2,B=f.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,B=f.slice(o),o+=e[1].length),c=!1,!f&&/^ *$/.test(v)&&(i+=v+"\n",t=t.substring(v.length+1),se=!0),!se){const ot=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),Tt=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Wt=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),Sn=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;t&&(x=t.split("\n",1)[0],f=x,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Wt.test(f)||Sn.test(f)||ot.test(f)||Tt.test(t)));){if(f.search(/[^ ]/)>=o||!f.trim())B+="\n"+f.slice(o);else{if(c)break;B+="\n"+f}!c&&!f.trim()&&(c=!0),i+=x+"\n",t=t.substring(x.length+1)}}Fe.loose||(d?Fe.loose=!0:/\n *\n *$/.test(i)&&(d=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(B),r&&(s="[ ] "!==r[0],B=B.replace(/^\[[ xX]\] +/,""))),Fe.items.push({type:"list_item",raw:i,task:!!r,checked:s,loose:!1,text:B}),Fe.raw+=i}Fe.items[Fe.items.length-1].raw=i.trimRight(),Fe.items[Fe.items.length-1].text=B.trimRight(),Fe.raw=Fe.raw.trimRight();const We=Fe.items.length;for(a=0;a<We;a++){this.lexer.state.top=!1,Fe.items[a].tokens=this.lexer.blockTokens(Fe.items[a].text,[]);const ot=Fe.items[a].tokens.filter(Wt=>"space"===Wt.type),Tt=ot.every(Wt=>{const Sn=Wt.raw.split("");let ti=0;for(const Hr of Sn)if("\n"===Hr&&(ti+=1),ti>1)return!0;return!1});!Fe.loose&&ot.length&&Tt&&(Fe.loose=!0,Fe.items[a].loose=!0)}return Fe}}html(t){const e=this.rules.block.html.exec(t);if(e){const i={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(e[0]):qr(e[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}}def(t){const e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}table(t){const e=this.rules.block.table.exec(t);if(e){const i={type:"table",header:_B(e[1]).map(r=>({text:r})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];let s,o,a,c,r=i.align.length;for(s=0;s<r;s++)i.align[s]=/^ *-+: *$/.test(i.align[s])?"right":/^ *:-+: *$/.test(i.align[s])?"center":/^ *:-+ *$/.test(i.align[s])?"left":null;for(r=i.rows.length,s=0;s<r;s++)i.rows[s]=_B(i.rows[s],i.header.length).map(d=>({text:d}));for(r=i.header.length,o=0;o<r;o++)i.header[o].tokens=[],this.lexer.inline(i.header[o].text,i.header[o].tokens);for(r=i.rows.length,o=0;o<r;o++)for(c=i.rows[o],a=0;a<c.length;a++)c[a].tokens=[],this.lexer.inline(c[a].text,c[a].tokens);return i}}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e){const i={type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const i={type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}text(t){const e=this.rules.block.text.exec(t);if(e){const i={type:"text",raw:e[0],text:e[0],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:qr(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):qr(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const i=e[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const o=Fw(i.slice(0,-1),"\\");if((i.length-o.length)%2==0)return}else{const o=function CZ(n,t){if(-1===n.indexOf(t[1]))return-1;const e=n.length;let i=0,r=0;for(;r<e;r++)if("\\"===n[r])r++;else if(n[r]===t[0])i++;else if(n[r]===t[1]&&(i--,i<0))return r;return-1}(e[2],"()");if(o>-1){const c=(0===e[0].indexOf("!")?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let r=e[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);o&&(r=o[1],s=o[3])}else s=e[3]?e[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(i)?r.slice(1):r.slice(1,-1)),yB(e,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=e[r.toLowerCase()],!r||!r.href){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return yB(i,r,i[0],this.lexer)}}emStrong(t,e,i=""){let r=this.rules.inline.emStrong.lDelim.exec(t);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;const s=r[1]||r[2]||"";if(!s||s&&(""===i||this.rules.inline.punctuation.exec(i))){const o=r[0].length-1;let a,c,d=o,f=0;const v="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,e=e.slice(-1*t.length+o);null!=(r=v.exec(e));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(c=a.length,r[3]||r[4]){d+=c;continue}if((r[5]||r[6])&&o%3&&!((o+c)%3)){f+=c;continue}if(d-=c,d>0)continue;if(c=Math.min(c,c+d+f),Math.min(o,c)%2){const B=t.slice(1,o+r.index+c);return{type:"em",raw:t.slice(0,o+r.index+c+1),text:B,tokens:this.lexer.inlineTokens(B,[])}}const x=t.slice(2,o+r.index+c-1);return{type:"strong",raw:t.slice(0,o+r.index+c+1),text:x,tokens:this.lexer.inlineTokens(x,[])}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(/\n/g," ");const r=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return r&&s&&(i=i.substring(1,i.length-1)),i=qr(i,!0),{type:"codespan",raw:e[0],text:i}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}autolink(t,e){const i=this.rules.inline.autolink.exec(t);if(i){let r,s;return"@"===i[2]?(r=qr(this.options.mangle?e(i[1]):i[1]),s="mailto:"+r):(r=qr(i[1]),s=r),{type:"link",raw:i[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t,e){let i;if(i=this.rules.inline.url.exec(t)){let r,s;if("@"===i[2])r=qr(this.options.mangle?e(i[0]):i[0]),s="mailto:"+r;else{let o;do{o=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(o!==i[0]);r=qr(i[0]),s="www."===i[1]?"http://"+r:r}return{type:"link",raw:i[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t,e){const i=this.rules.inline.text.exec(t);if(i){let r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):qr(i[0]):i[0]:qr(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}}const sn={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ow,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};sn.def=Di(sn.def).replace("label",sn._label).replace("title",sn._title).getRegex(),sn.bullet=/(?:[*+-]|\d{1,9}[.)])/,sn.listItemStart=Di(/^( *)(bull) */).replace("bull",sn.bullet).getRegex(),sn.list=Di(sn.list).replace(/bull/g,sn.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+sn.def.source+")").getRegex(),sn._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",sn._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,sn.html=Di(sn.html,"i").replace("comment",sn._comment).replace("tag",sn._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sn.paragraph=Di(sn._paragraph).replace("hr",sn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sn._tag).getRegex(),sn.blockquote=Di(sn.blockquote).replace("paragraph",sn.paragraph).getRegex(),sn.normal=Ca({},sn),sn.gfm=Ca({},sn.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),sn.gfm.table=Di(sn.gfm.table).replace("hr",sn.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sn._tag).getRegex(),sn.gfm.paragraph=Di(sn._paragraph).replace("hr",sn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",sn.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sn._tag).getRegex(),sn.pedantic=Ca({},sn.normal,{html:Di("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",sn._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ow,paragraph:Di(sn.normal._paragraph).replace("hr",sn.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",sn.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Lt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ow,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ow,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function SZ(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function wB(n){let e,i,t="";const r=n.length;for(e=0;e<r;e++)i=n.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),t+="&#"+i+";";return t}Lt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Lt.punctuation=Di(Lt.punctuation).replace(/punctuation/g,Lt._punctuation).getRegex(),Lt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Lt.escapedEmSt=/\\\*|\\_/g,Lt._comment=Di(sn._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Lt.emStrong.lDelim=Di(Lt.emStrong.lDelim).replace(/punct/g,Lt._punctuation).getRegex(),Lt.emStrong.rDelimAst=Di(Lt.emStrong.rDelimAst,"g").replace(/punct/g,Lt._punctuation).getRegex(),Lt.emStrong.rDelimUnd=Di(Lt.emStrong.rDelimUnd,"g").replace(/punct/g,Lt._punctuation).getRegex(),Lt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Lt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Lt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Lt.autolink=Di(Lt.autolink).replace("scheme",Lt._scheme).replace("email",Lt._email).getRegex(),Lt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Lt.tag=Di(Lt.tag).replace("comment",Lt._comment).replace("attribute",Lt._attribute).getRegex(),Lt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Lt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Lt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Lt.link=Di(Lt.link).replace("label",Lt._label).replace("href",Lt._href).replace("title",Lt._title).getRegex(),Lt.reflink=Di(Lt.reflink).replace("label",Lt._label).replace("ref",sn._label).getRegex(),Lt.nolink=Di(Lt.nolink).replace("ref",sn._label).getRegex(),Lt.reflinkSearch=Di(Lt.reflinkSearch,"g").replace("reflink",Lt.reflink).replace("nolink",Lt.nolink).getRegex(),Lt.normal=Ca({},Lt),Lt.pedantic=Ca({},Lt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Di(/^!?\[(label)\]\((.*?)\)/).replace("label",Lt._label).getRegex(),reflink:Di(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Lt._label).getRegex()}),Lt.gfm=Ca({},Lt.normal,{escape:Di(Lt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Lt.gfm.url=Di(Lt.gfm.url,"i").replace("email",Lt.gfm._extended_email).getRegex(),Lt.breaks=Ca({},Lt.gfm,{br:Di(Lt.br).replace("{2,}","*").getRegex(),text:Di(Lt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class ac{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ff,this.options.tokenizer=this.options.tokenizer||new Gx,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:sn.normal,inline:Lt.normal};this.options.pedantic?(e.block=sn.pedantic,e.inline=Lt.pedantic):this.options.gfm&&(e.block=sn.gfm,e.inline=this.options.breaks?Lt.breaks:Lt.gfm),this.tokenizer.rules=e}static get rules(){return{block:sn,inline:Lt}}static lex(t,e){return new ac(e).lex(t)}static lexInline(t,e){return new ac(e).inlineTokens(t)}lex(t){let e;for(t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens}blockTokens(t,e=[]){let i,r,s,o;for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,(a,c,d)=>c+" ".repeat(d.length));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(i=a.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?e.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=t.slice(1);let d;this.options.extensions.startBlock.forEach(function(f){d=f.call({lexer:this},c),"number"==typeof d&&d>=0&&(a=Math.min(a,d))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){r=e[e.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i),o=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(t,e){this.inlineQueue.push({src:t,tokens:e})}inlineTokens(t,e=[]){let i,r,s,a,c,d,o=t;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(o));)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+bB("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,a.index)+"["+bB("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(o));)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>!!(i=f.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.emStrong(t,o,d)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.autolink(t,wB)){t=t.substring(i.raw.length),e.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t,wB))){t=t.substring(i.raw.length),e.push(i);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const v=t.slice(1);let x;this.options.extensions.startInline.forEach(function(B){x=B.call({lexer:this},v),"number"==typeof x&&x>=0&&(f=Math.min(f,x))}),f<1/0&&f>=0&&(s=t.substring(0,f+1))}if(i=this.tokenizer.inlineText(s,SZ)){t=t.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(d=i.raw.slice(-1)),c=!0,r=e[e.length-1],r&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return e}}class pf{constructor(t){this.options=t||ff}code(t,e,i){const r=(e||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(t,r);null!=s&&s!==t&&(i=!0,t=s)}return t=t.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+qr(r,!0)+'">'+(i?t:qr(t,!0))+"</code></pre>\n":"<pre><code>"+(i?t:qr(t,!0))+"</code></pre>\n"}blockquote(t){return`<blockquote>\n${t}</blockquote>\n`}html(t){return t}heading(t,e,i,r){return this.options.headerIds?`<h${e} id="${this.options.headerPrefix+r.slug(i)}">${t}</h${e}>\n`:`<h${e}>${t}</h${e}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(t,e,i){const r=e?"ol":"ul";return"<"+r+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"</"+r+">\n"}listitem(t){return`<li>${t}</li>\n`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>\n`}table(t,e){return e&&(e=`<tbody>${e}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"}tablerow(t){return`<tr>\n${t}</tr>\n`}tablecell(t,e){const i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>\n`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,e,i){if(null===(t=gB(this.options.sanitize,this.options.baseUrl,t)))return i;let r='<a href="'+qr(t)+'"';return e&&(r+=' title="'+e+'"'),r+=">"+i+"</a>",r}image(t,e,i){if(null===(t=gB(this.options.sanitize,this.options.baseUrl,t)))return i;let r=`<img src="${t}" alt="${i}"`;return e&&(r+=` title="${e}"`),r+=this.options.xhtml?"/>":">",r}text(t){return t}}class CB{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,i){return""+i}image(t,e,i){return""+i}br(){return""}}class DB{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let i=t,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[t];do{r++,i=t+"-"+r}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=r,this.seen[i]=0),i}slug(t,e={}){const i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)}}class lc{constructor(t){this.options=t||ff,this.options.renderer=this.options.renderer||new pf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new CB,this.slugger=new DB}static parse(t,e){return new lc(e).parse(t)}static parseInline(t,e){return new lc(e).parseInline(t)}parse(t,e=!0){let r,s,o,a,c,d,f,v,x,B,se,me,Oe,Fe,et,We,ot,Tt,Wt,i="";const Sn=t.length;for(r=0;r<Sn;r++)if(B=t[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[B.type]&&(Wt=this.options.extensions.renderers[B.type].call({parser:this},B),!1!==Wt||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(B.type)))i+=Wt||"";else switch(B.type){case"space":continue;case"hr":i+=this.renderer.hr();continue;case"heading":i+=this.renderer.heading(this.parseInline(B.tokens),B.depth,mB(this.parseInline(B.tokens,this.textRenderer)),this.slugger);continue;case"code":i+=this.renderer.code(B.text,B.lang,B.escaped);continue;case"table":for(v="",f="",a=B.header.length,s=0;s<a;s++)f+=this.renderer.tablecell(this.parseInline(B.header[s].tokens),{header:!0,align:B.align[s]});for(v+=this.renderer.tablerow(f),x="",a=B.rows.length,s=0;s<a;s++){for(d=B.rows[s],f="",c=d.length,o=0;o<c;o++)f+=this.renderer.tablecell(this.parseInline(d[o].tokens),{header:!1,align:B.align[o]});x+=this.renderer.tablerow(f)}i+=this.renderer.table(v,x);continue;case"blockquote":x=this.parse(B.tokens),i+=this.renderer.blockquote(x);continue;case"list":for(se=B.ordered,me=B.start,Oe=B.loose,a=B.items.length,x="",s=0;s<a;s++)et=B.items[s],We=et.checked,ot=et.task,Fe="",et.task&&(Tt=this.renderer.checkbox(We),Oe?et.tokens.length>0&&"paragraph"===et.tokens[0].type?(et.tokens[0].text=Tt+" "+et.tokens[0].text,et.tokens[0].tokens&&et.tokens[0].tokens.length>0&&"text"===et.tokens[0].tokens[0].type&&(et.tokens[0].tokens[0].text=Tt+" "+et.tokens[0].tokens[0].text)):et.tokens.unshift({type:"text",text:Tt}):Fe+=Tt),Fe+=this.parse(et.tokens,Oe),x+=this.renderer.listitem(Fe,ot,We);i+=this.renderer.list(x,se,me);continue;case"html":i+=this.renderer.html(B.text);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(B.tokens));continue;case"text":for(x=B.tokens?this.parseInline(B.tokens):B.text;r+1<Sn&&"text"===t[r+1].type;)B=t[++r],x+="\n"+(B.tokens?this.parseInline(B.tokens):B.text);i+=e?this.renderer.paragraph(x):x;continue;default:{const ti='Token with "'+B.type+'" type was not found.';if(this.options.silent)return void console.error(ti);throw new Error(ti)}}return i}parseInline(t,e){e=e||this.renderer;let r,s,o,i="";const a=t.length;for(r=0;r<a;r++)if(s=t[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(o=this.options.extensions.renderers[s.type].call({parser:this},s),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)))i+=o||"";else switch(s.type){case"escape":case"text":i+=e.text(s.text);break;case"html":i+=e.html(s.text);break;case"link":i+=e.link(s.href,s.title,this.parseInline(s.tokens,e));break;case"image":i+=e.image(s.href,s.title,s.text);break;case"strong":i+=e.strong(this.parseInline(s.tokens,e));break;case"em":i+=e.em(this.parseInline(s.tokens,e));break;case"codespan":i+=e.codespan(s.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(s.tokens,e));break;default:{const c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return void console.error(c);throw new Error(c)}}return i}}function cn(n,t,e){if(null==n)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof n)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");if("function"==typeof t&&(e=t,t=null),vB(t=Ca({},cn.defaults,t||{})),e){const i=t.highlight;let r;try{r=ac.lex(n,t)}catch(a){return e(a)}const s=function(a){let c;if(!a)try{t.walkTokens&&cn.walkTokens(r,t.walkTokens),c=lc.parse(r,t)}catch(d){a=d}return t.highlight=i,a?e(a):e(null,c)};if(!i||i.length<3||(delete t.highlight,!r.length))return s();let o=0;return cn.walkTokens(r,function(a){"code"===a.type&&(o++,setTimeout(()=>{i(a.text,a.lang,function(c,d){if(c)return s(c);null!=d&&d!==a.text&&(a.text=d,a.escaped=!0),o--,0===o&&s()})},0))}),void(0===o&&s())}try{const i=ac.lex(n,t);return t.walkTokens&&cn.walkTokens(i,t.walkTokens),lc.parse(i,t)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+qr(i.message+"",!0)+"</pre>";throw i}}cn.options=cn.setOptions=function(n){return Ca(cn.defaults,n),function lZ(n){ff=n}(cn.defaults),cn},cn.getDefaults=function fB(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},cn.defaults=ff,cn.use=function(...n){const t=Ca({},...n),e=cn.defaults.extensions||{renderers:{},childTokens:{}};let i;n.forEach(r=>{if(r.extensions&&(i=!0,r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const o=e.renderers?e.renderers[s.name]:null;e.renderers[s.name]=o?function(...a){let c=s.renderer.apply(this,a);return!1===c&&(c=o.apply(this,a)),c}:s.renderer}if(s.tokenizer){if(!s.level||"block"!==s.level&&"inline"!==s.level)throw new Error("extension level must be 'block' or 'inline'");e[s.level]?e[s.level].unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&("block"===s.level?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:"inline"===s.level&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}s.childTokens&&(e.childTokens[s.name]=s.childTokens)})),r.renderer){const s=cn.defaults.renderer||new pf;for(const o in r.renderer){const a=s[o];s[o]=(...c)=>{let d=r.renderer[o].apply(s,c);return!1===d&&(d=a.apply(s,c)),d}}t.renderer=s}if(r.tokenizer){const s=cn.defaults.tokenizer||new Gx;for(const o in r.tokenizer){const a=s[o];s[o]=(...c)=>{let d=r.tokenizer[o].apply(s,c);return!1===d&&(d=a.apply(s,c)),d}}t.tokenizer=s}if(r.walkTokens){const s=cn.defaults.walkTokens;t.walkTokens=function(o){r.walkTokens.call(this,o),s&&s.call(this,o)}}i&&(t.extensions=e),cn.setOptions(t)})},cn.walkTokens=function(n,t){for(const e of n)switch(t.call(cn,e),e.type){case"table":for(const i of e.header)cn.walkTokens(i.tokens,t);for(const i of e.rows)for(const r of i)cn.walkTokens(r.tokens,t);break;case"list":cn.walkTokens(e.items,t);break;default:cn.defaults.extensions&&cn.defaults.extensions.childTokens&&cn.defaults.extensions.childTokens[e.type]?cn.defaults.extensions.childTokens[e.type].forEach(function(i){cn.walkTokens(e[i],t)}):e.tokens&&cn.walkTokens(e.tokens,t)}},cn.parseInline=function(n,t){if(null==n)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof n)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");vB(t=Ca({},cn.defaults,t||{}));try{const e=ac.lexInline(n,t);return t.walkTokens&&cn.walkTokens(e,t.walkTokens),lc.parseInline(e,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+qr(e.message+"",!0)+"</pre>";throw e}},cn.Parser=lc,cn.parser=lc.parse,cn.Renderer=pf,cn.TextRenderer=CB,cn.Lexer=ac,cn.lexer=ac.lex,cn.Tokenizer=Gx,cn.Slugger=DB,cn.parse=cn;const AZ=["*"];let qx=(()=>{class n{constructor(){this._buttonClick$=new y,this.copied$=this._buttonClick$.pipe(ds(()=>Ni(At(!0),_M(3e3).pipe(CM(!1)))),ny(),fN(1)),this.copiedText$=this.copied$.pipe(cs(!1),z(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,i){1&e&&(Y(0,"button",0),vt("click",function(){return i.onCopyToClipboardClick()}),ui(1,"async"),ie(2),ui(3,"async"),ee()),2&e&&(Kt("copied",wi(1,3,i.copied$)),be(2),Yn(wi(3,5,i.copiedText$)))},dependencies:[Ga],encapsulation:2,changeDetection:0}),n})();class xZ{}var xg=(()=>{return(n=xg||(xg={})).CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers",xg;var n})();class SB{}const AB=new lt("SECURITY_CONTEXT");let Lw=(()=>{class n{constructor(e,i,r,s,o,a){this.platform=e,this.securityContext=i,this.http=r,this.clipboardOptions=s,this.sanitizer=a,this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_MARKED_OPTIONS={renderer:new pf},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this._reload$=new y,this.reload$=this._reload$.asObservable(),this.options=o}get options(){return this._options}set options(e){this._options=Object.assign(Object.assign({},this.DEFAULT_MARKED_OPTIONS),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}parse(e,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:s,emoji:o,mermaid:a,markedOptions:c=this.options}=i;a&&(this.renderer=this.extendRenderer(c.renderer||new pf));const d=this.trimIndentation(e),f=r?this.decodeHtml(d):d,v=o?this.parseEmoji(f):f,x=this.parseMarked(v,c,s);return this.sanitizer.sanitize(this.securityContext,x)||""}render(e,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:s,clipboardOptions:o,katex:a,katexOptions:c,mermaid:d,mermaidOptions:f}=i;s&&this.renderClipboard(e,r,Object.assign(Object.assign(Object.assign({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),o)),a&&this.renderKatex(e,Object.assign(Object.assign({},this.DEFAULT_KATEX_OPTIONS),c)),d&&this.renderMermaid(e,Object.assign(Object.assign({},this.DEFAULT_MERMAID_OPTIONS),f)),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(z(i=>this.handleExtension(e,i)))}highlight(e){if(!$l(this.platform)||"undefined"==typeof Prism||void 0===Prism.highlightAllUnder)return;e||(e=document);const i=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!$l(this.platform))return e;const i=document.createElement("textarea");return i.innerHTML=e,i.value}extendRenderer(e){const i=e;if(!0===i.\u0275NgxMarkdownRendererExtended)return e;const r=e.code;return e.code=function(s,o,a){return"mermaid"===o?`<div class="mermaid">${s}</div>`:r.call(this,s,o,a)},i.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,i){const r=e.lastIndexOf("://"),s=r>-1?e.substring(r+4):e,o=s.lastIndexOf("/"),a=o>-1?s.substring(o+1).split("?")[0]:"",c=a.lastIndexOf("."),d=c>-1?a.substring(c+1):"";return d&&"md"!==d?"```"+d+"\n"+i+"\n```":i}parseMarked(e,i,r=!1){return $l(this.platform)?r?cn.parseInline(e,i):cn.parse(e,i):e}parseEmoji(e){if(!$l(this.platform))return e;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,i){if($l(this.platform)){if("undefined"==typeof katex||"undefined"==typeof renderMathInElement)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,i)}}renderClipboard(e,i,r){if(!$l(this.platform))return;if("undefined"==typeof ClipboardJS)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:s,buttonTemplate:o}=r,a=e.querySelectorAll("pre");for(let c=0;c<a.length;c++){const d=a.item(c),f=document.createElement("div");f.style.position="relative",d.parentNode.insertBefore(f,d),f.appendChild(d);const v=document.createElement("div");let x,B;v.style.position="absolute",v.style.top=".5em",v.style.right=".5em",v.style.opacity="0",v.style.transition="opacity 250ms ease-out",f.insertAdjacentElement("beforeend",v),d.onmouseover=()=>v.style.opacity="1",d.onmouseout=()=>v.style.opacity="0",x=s?i.createComponent(s).hostView:o?i.createEmbeddedView(o):i.createComponent(qx).hostView,x.rootNodes.forEach(se=>{se.onmouseover=()=>v.style.opacity="1",v.appendChild(se),B=new ClipboardJS(se,{text:()=>d.innerText})}),x.onDestroy(()=>B.destroy())}}renderMermaid(e,i=this.DEFAULT_MERMAID_OPTIONS){if(!$l(this.platform))return;if("undefined"==typeof mermaid||void 0===mermaid.init)throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=e.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.init(r))}trimIndentation(e){if(!e)return"";let i;return e.split("\n").map(r=>{let s=i;return r.length>0&&(s=isNaN(s)?r.search(/\S|$/):Math.min(r.search(/\S|$/),s)),isNaN(i)&&(i=s),s?r.substring(s):r}).join("\n")}}return n.\u0275fac=function(e){return new(e||n)(Re(Gh),Re(AB),Re(nd,8),Re(xZ,8),Re(SB,8),Re(Yu))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Yx=(()=>{class n{constructor(e,i,r){this.element=e,this.markdownService=i,this.viewContainerRef=r,this.error=new bt,this.load=new bt,this.ready=new bt,this._commandLine=!1,this._clipboard=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new y}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Ot(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,i=!1){const s={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},o=this.markdownService.parse(e,{decodeHtml:i,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid});this.element.nativeElement.innerHTML=o,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,xg.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,xg.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,i){const r=e.querySelectorAll("pre");for(let s=0;s<r.length;s++){const o=i instanceof Array?i:[i];r.item(s).classList.add(...o)}}setPluginOptions(e,i){const r=e.querySelectorAll("pre");for(let s=0;s<r.length;s++)Object.keys(i).forEach(o=>{const a=i[o];if(a){const c=this.toLispCase(o);r.item(s).setAttribute(c,a.toString())}})}toLispCase(e){const i=e.match(/([A-Z])/g);if(!i)return e;let r=e.toString();for(let s=0,o=i.length;s<o;s++)r=r.replace(new RegExp(i[s]),"-"+i[s].toLowerCase());return"-"===r.slice(0,1)&&(r=r.slice(1)),r}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Lw),R(Oi))},n.\u0275cmp=Ct({type:n,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[Zt],ngContentSelectors:AZ,decls:1,vars:0,template:function(e,i){1&e&&(Ui(),Vn(0))},encapsulation:2}),n})(),LZ=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[Lw,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:AB,useValue:e&&null!=e.sanitize?e.sanitize:jn.HTML}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[_a]}),n})();var MB;function NZ(n,t){if(1&n&&(ia(),ft(0,"circle",4)),2&n){const e=Qe(),i=zi(1);js("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Yt("r",e._getCircleRadius())}}function VZ(n,t){if(1&n&&(ia(),ft(0,"circle",4)),2&n){const e=Qe(),i=zi(1);js("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Yt("r",e._getCircleRadius())}}!function(n){let t;var r;let e,i;(r=t=n.SecurityLevel||(n.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(e=n.Theme||(n.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(i=n.LogLevel||(n.LogLevel={}))}(MB||(MB={}));const HZ=Zl(class{constructor(n){this._elementRef=n}},"primary"),zZ=new lt("mat-progress-spinner-default-options",{providedIn:"root",factory:function UZ(){return{diameter:100}}});class cc extends HZ{constructor(t,e,i,r,s,o,a,c){super(t),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=Me.EMPTY,this.mode="determinate";const d=cc._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),d.has(i.head)||d.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,"mat-spinner"===t.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),s&&(s.color&&(this.color=this.defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&o&&c&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&c.run(()=>o.markForCheck())}))}get diameter(){return this._diameter}set diameter(t){this._diameter=Gr(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Gr(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Gr(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=rF(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(t){var e;const i=50*(null!==(e=t.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=cc._diameters;let r=i.get(t);if(!r||!r.has(e)){const s=this._document.createElement("style");s.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),s.textContent=this._getAnimationText(),t.appendChild(s),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}cc._diameters=new WeakMap,cc.\u0275fac=function(t){return new(t||cc)(R(yt),R(Zi),R(Qt,8),R(Ts,8),R(zZ),R(Xn),R(Vm),R(jt))},cc.\u0275cmp=Ct({type:cc,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Yt("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),js("width",e.diameter,"px")("height",e.diameter,"px"),Kt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[_t],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(ia(),Y(0,"svg",0,1),mt(2,NZ,1,11,"circle",2),mt(3,VZ,1,9,"circle",3),ee()),2&t&&(js("width",e.diameter,"px")("height",e.diameter,"px"),Pe("ngSwitch","indeterminate"===e.mode),Yt("viewBox",e._getViewBox()),be(2),Pe("ngSwitchCase",!0),be(1),Pe("ngSwitchCase",!1))},dependencies:[qu,xm],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let WZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn,_a,bn]}),n})();const $Z=["mat-calendar-body",""];function GZ(n,t){if(1&n&&(Y(0,"tr",2)(1,"td",3),ie(2),ee()()),2&n){const e=Qe();be(1),js("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Yt("colspan",e.numCols),be(1),ci(" ",e.label," ")}}function qZ(n,t){if(1&n&&(Y(0,"td",3),ie(1),ee()),2&n){const e=Qe(2);js("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Yt("colspan",e._firstRowOffset),be(1),ci(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function YZ(n,t){if(1&n){const e=ii();Y(0,"td",7)(1,"button",8),vt("click",function(r){const o=zt(e).$implicit;return $t(Qe(2)._cellClicked(o,r))})("focus",function(r){const o=zt(e).$implicit;return $t(Qe(2)._emitActiveDateChange(o,r))}),Y(2,"div",9),ie(3),ee(),ft(4,"div",10),ee()()}if(2&n){const e=t.$implicit,i=t.index,r=Qe().index,s=Qe();js("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),Yt("data-mat-row",r)("data-mat-col",i),be(1),Kt("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",s._isActiveCell(r,i))("mat-calendar-body-range-start",s._isRangeStart(e.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",s._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",s._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",s._isInPreview(e.compareValue)),Pe("ngClass",e.cssClasses)("tabindex",s._isActiveCell(r,i)?0:-1),Yt("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",s._isSelected(e.compareValue))("aria-current",s.todayValue===e.compareValue?"date":null),be(1),Kt("mat-calendar-body-selected",s._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",s.todayValue===e.compareValue),be(1),ci(" ",e.displayValue," ")}}function KZ(n,t){if(1&n&&(Y(0,"tr",4),mt(1,qZ,2,6,"td",5),mt(2,YZ,5,47,"td",6),ee()),2&n){const e=t.$implicit,i=t.index,r=Qe();be(1),Pe("ngIf",0===i&&r._firstRowOffset),be(1),Pe("ngForOf",e)}}function XZ(n,t){if(1&n&&(Y(0,"th",5)(1,"span",6),ie(2),ee(),Y(3,"span",7),ie(4),ee()()),2&n){const e=t.$implicit;be(2),Yn(e.long),be(2),Yn(e.narrow)}}const QZ=["*"];function ZZ(n,t){}function JZ(n,t){if(1&n){const e=ii();Y(0,"mat-month-view",5),vt("activeDateChange",function(r){return zt(e),$t(Qe().activeDate=r)})("_userSelection",function(r){return zt(e),$t(Qe()._dateSelected(r))}),ee()}if(2&n){const e=Qe();Pe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function eJ(n,t){if(1&n){const e=ii();Y(0,"mat-year-view",6),vt("activeDateChange",function(r){return zt(e),$t(Qe().activeDate=r)})("monthSelected",function(r){return zt(e),$t(Qe()._monthSelectedInYearView(r))})("selectedChange",function(r){return zt(e),$t(Qe()._goToDateInView(r,"month"))}),ee()}if(2&n){const e=Qe();Pe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function tJ(n,t){if(1&n){const e=ii();Y(0,"mat-multi-year-view",7),vt("activeDateChange",function(r){return zt(e),$t(Qe().activeDate=r)})("yearSelected",function(r){return zt(e),$t(Qe()._yearSelectedInMultiYearView(r))})("selectedChange",function(r){return zt(e),$t(Qe()._goToDateInView(r,"year"))}),ee()}if(2&n){const e=Qe();Pe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function nJ(n,t){}const iJ=["button"];function rJ(n,t){1&n&&(ia(),Y(0,"svg",3),ft(1,"path",4),ee())}const sJ=[[["","matDatepickerToggleIcon",""]]],oJ=["[matDatepickerToggleIcon]"],aJ=[[["input","matStartDate",""]],[["input","matEndDate",""]]],lJ=["input[matStartDate]","input[matEndDate]"];class Xx{constructor(t,e,i,r,s={},o=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=s,this.compareValue=o,this.rawValue=a}}let mf=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new bt,this.previewChange=new bt,this.activeDateChange=new bt,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const s=this._getCellFromElement(r.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:s}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?s-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Qx(e,this.startValue,this.endValue)}_isRangeEnd(e){return Zx(e,this.startValue,this.endValue)}_isInRange(e){return Jx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Qx(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let s=this.rows[i][r-1];if(!s){const o=this.rows[i-1];s=o&&o[o.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let s=this.rows[i][r+1];if(!s){const o=this.rows[i+1];s=o&&o[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(e){return Zx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Jx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Qx(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Zx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Jx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(EB(e)?i=e:EB(e.parentNode)&&(i=e.parentNode),i){const r=i.getAttribute("data-mat-row"),s=i.getAttribute("data-mat-col");if(r&&s)return this.rows[parseInt(r)][parseInt(s)]}return null}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(jt))},n.\u0275cmp=Ct({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[Zt],attrs:$Z,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&(mt(0,GZ,3,6,"tr",0),mt(1,KZ,3,2,"tr",1)),2&e&&(Pe("ngIf",i._firstRowOffset<i.labelMinRequiredCells),be(1),Pe("ngForOf",i.rows))},dependencies:[Gu,zc,mr],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),n})();function EB(n){return"TD"===n.nodeName}function Qx(n,t,e){return null!==e&&t!==e&&n<e&&n===t}function Zx(n,t,e){return null!==t&&t!==e&&n>=t&&n===e}function Jx(n,t,e,i){return i&&null!==t&&null!==e&&t!==e&&n>=t&&n<=e}class Os{constructor(t,e){this.start=t,this.end=e}}let eu=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new y,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){Vl()},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),cJ=(()=>{class n extends eu{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(Re(sr))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),uJ=(()=>{class n extends eu{constructor(e){super(new Os(null,null),e)}add(e){let{start:i,end:r}=this.selection;null==i?i=e:null==r?r=e:(i=e,r=null),super.updateSelection(new Os(i,r),this)}isValid(){const{start:e,end:i}=this.selection;return null==e&&null==i||(null!=e&&null!=i?this._isValidDateInstance(e)&&this._isValidDateInstance(i)&&this._adapter.compareDate(e,i)<=0:(null==e||this._isValidDateInstance(e))&&(null==i||this._isValidDateInstance(i)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(Re(sr))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const xB={provide:eu,deps:[[new Cs,new Co,eu],sr],useFactory:function dJ(n,t){return n||new cJ(t)}},fJ={provide:eu,deps:[[new Cs,new Co,eu],sr],useFactory:function hJ(n,t){return n||new uJ(t)}},Nw=new lt("MAT_DATE_RANGE_SELECTION_STRATEGY");let pJ=(()=>{class n{constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:r,end:s}=i;return null==r?r=e:null==s&&e&&this._dateAdapter.compareDate(e,r)>=0?s=e:(r=e,s=null),new Os(r,s)}createPreview(e,i){let r=null,s=null;return i.start&&!i.end&&e&&(r=i.start,s=e),new Os(r,s)}}return n.\u0275fac=function(e){return new(e||n)(Re(sr))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const gJ={provide:Nw,deps:[[new Cs,new Co,Nw],sr],useFactory:function mJ(n,t){return n||new pJ(t)}};let kB=(()=>{class n{constructor(e,i,r,s,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rangeStrategy=o,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new bt,this._userSelection=new bt,this.activeDateChange=new bt,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cs(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._getDateFromDayOfMonth(i);let s,o;this._selected instanceof Os?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),(s!==i||o!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!va(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const s=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((o,a)=>({long:o,narrow:i[a]}));this._weekdays=s.slice(e).concat(s.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,s=this._firstWeekOffset;r<e;r++,s++){7==s&&(this._weeks.push([]),s=0);const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),r+1),a=this._shouldEnableDate(o),c=this._dateAdapter.format(o,this._dateFormats.display.dateA11yLabel),d=this.dateClass?this.dateClass(o,"month"):void 0;this._weeks[this._weeks.length-1].push(new Xx(r+1,i[r],c,a,d,this._getCellCompareValue(o),o))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),s=this._dateAdapter.getDate(e);return new Date(i,r,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Os?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Xn),R(Ja,8),R(sr,8),R(us,8),R(Nw,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&Hn(mf,5),2&e){let r;Dt(r=St())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Zt],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,i){1&e&&(Y(0,"table",0)(1,"thead",1)(2,"tr"),mt(3,XZ,5,2,"th",2),ee(),Y(4,"tr"),ft(5,"th",3),ee()(),Y(6,"tbody",4),vt("selectedValueChange",function(s){return i._dateSelected(s)})("activeDateChange",function(s){return i._updateActiveDate(s)})("previewChange",function(s){return i._previewChanged(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),ee()()),2&e&&(be(3),Pe("ngForOf",i._weekdays),be(3),Pe("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},dependencies:[zc,mf],encapsulation:2,changeDetection:0}),n})(),TB=(()=>{class n{constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new bt,this.yearSelected=new bt,this.activeDateChange=new bt,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),PB(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cs(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,s=[];r<24;r++)s.push(i+r),4==s.length&&(this._years.push(s.map(o=>this._createCellForYear(o))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value,r=this._dateAdapter.createDate(i,0,1),s=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(s)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return kg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),s=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Xx(e,r,r,this._shouldEnableYear(e),s)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let r=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(e){if(this._selectedYear=null,e instanceof Os){const i=e.start||e.end;i&&(this._selectedYear=this._dateAdapter.getYear(i))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}}return n.\u0275fac=function(e){return new(e||n)(R(Xn),R(sr,8),R(us,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(e,i){if(1&e&&Hn(mf,5),2&e){let r;Dt(r=St())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,i){1&e&&(Y(0,"table",0)(1,"thead",1)(2,"tr"),ft(3,"th",2),ee()(),Y(4,"tbody",3),vt("selectedValueChange",function(s){return i._yearSelected(s)})("activeDateChange",function(s){return i._updateActiveDate(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),ee()()),2&e&&(be(4),Pe("rows",i._years)("todayValue",i._todayYear)("startValue",i._selectedYear)("endValue",i._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",i._getActiveCell()))},dependencies:[mf],encapsulation:2,changeDetection:0}),n})();function PB(n,t,e,i,r){const s=n.getYear(t),o=n.getYear(e),a=RB(n,i,r);return Math.floor((s-a)/24)===Math.floor((o-a)/24)}function kg(n,t,e,i){return function _J(n,t){return(n%t+t)%t}(n.getYear(t)-RB(n,e,i),24)}function RB(n,t,e){let i=0;return e?i=n.getYear(e)-24+1:t&&(i=n.getYear(t)),i}let IB=(()=>{class n{constructor(e,i,r,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new bt,this.monthSelected=new bt,this.activeDateChange=new bt,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cs(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const s=this._getDateFromMonth(i);this.selectedChange.emit(s)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),s=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(r,"year"):void 0;return new Xx(e,i.toLocaleUpperCase(),s,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(s)==e;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>s}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return e<r||e===r&&i<s}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(e){this._selectedMonth=e instanceof Os?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Xn),R(Ja,8),R(sr,8),R(us,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-year-view"]],viewQuery:function(e,i){if(1&e&&Hn(mf,5),2&e){let r;Dt(r=St())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,i){1&e&&(Y(0,"table",0)(1,"thead",1)(2,"tr"),ft(3,"th",2),ee()(),Y(4,"tbody",3),vt("selectedValueChange",function(s){return i._monthSelected(s)})("activeDateChange",function(s){return i._updateActiveDate(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),ee()()),2&e&&(be(4),Pe("label",i._yearLabel)("rows",i._months)("todayValue",i._todayMonth)("startValue",i._selectedMonth)("endValue",i._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",i._dateAdapter.getMonth(i.activeDate)))},dependencies:[mf],encapsulation:2,changeDetection:0}),n})(),Tg=(()=>{class n{constructor(){this.changes=new y,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vJ=0,bJ=(()=>{class n{constructor(e,i,r,s,o){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=s,this._buttonDescriptionId="mat-calendar-button-"+vJ++,this.calendar.stateChanges.subscribe(()=>o.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-kg(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(s,o)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):PB(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(R(Tg),R(Pn(()=>nk)),R(sr,8),R(Ja,8),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:QZ,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0)(1,"div",1)(2,"button",2),vt("click",function(){return i.currentPeriodClicked()}),Y(3,"span"),ie(4),ee(),ia(),Y(5,"svg",3),ft(6,"polygon",4),ee()(),Yf(),ft(7,"div",5),Vn(8),Y(9,"button",6),vt("click",function(){return i.previousClicked()}),ee(),Y(10,"button",7),vt("click",function(){return i.nextClicked()}),ee()()()),2&e&&(be(2),Yt("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),be(1),Yt("id",i._buttonDescriptionId),be(1),Yn(i.periodButtonText),be(1),Kt("mat-calendar-invert","month"!==i.calendar.currentView),be(4),Pe("disabled",!i.previousEnabled()),Yt("aria-label",i.prevButtonLabel),be(1),Pe("disabled",!i.nextEnabled()),Yt("aria-label",i.nextButtonLabel))},dependencies:[rl],encapsulation:2,changeDetection:0}),n})(),nk=(()=>{class n{constructor(e,i,r,s){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new bt,this.yearSelected=new bt,this.monthSelected=new bt,this.viewChanged=new bt(!0),this._userSelection=new bt,this.stateChanges=new y,this._intlChanges=e.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Os?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new sd(this.headerComponent||bJ),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,s=i||r||e.dateFilter;if(s&&!s.firstChange){const o=this._getCurrentViewComponent();o&&(this._changeDetectorRef.detectChanges(),o._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof Os||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(R(Tg),R(sr,8),R(Ja,8),R(Xn))},n.\u0275cmp=Ct({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(Hn(kB,5),Hn(IB,5),Hn(TB,5)),2&e){let r;Dt(r=St())&&(i.monthView=r.first),Dt(r=St())&&(i.yearView=r.first),Dt(r=St())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[kt([xB]),Zt],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&(mt(0,ZZ,0,0,"ng-template",0),Y(1,"div",1),mt(2,JZ,1,8,"mat-month-view",2),mt(3,eJ,1,6,"mat-year-view",3),mt(4,tJ,1,6,"mat-multi-year-view",4),ee()),2&e&&(Pe("cdkPortalOutlet",i._calendarHeaderPortal),be(1),Pe("ngSwitch",i.currentView),be(1),Pe("ngSwitchCase","month"),be(1),Pe("ngSwitchCase","year"),be(1),Pe("ngSwitchCase","multi-year"))},dependencies:[qu,xm,FF,Ky,kB,IB,TB],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();const OB={transformPanel:To("transformPanel",[or("void => enter-dropdown",_r("120ms cubic-bezier(0, 0, 0.2, 1)",rd([_n({opacity:0,transform:"scale(1, 0.8)"}),_n({opacity:1,transform:"scale(1, 1)"})]))),or("void => enter-dialog",_r("150ms cubic-bezier(0, 0, 0.2, 1)",rd([_n({opacity:0,transform:"scale(0.7)"}),_n({transform:"none",opacity:1})]))),or("* => void",_r("100ms linear",_n({opacity:0})))]),fadeInCalendar:To("fadeInCalendar",[vr("void",_n({opacity:0})),vr("enter",_n({opacity:1})),or("void => *",_r("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let yJ=0;const FB=new lt("mat-datepicker-scroll-strategy"),CJ={provide:FB,deps:[Po],useFactory:function wJ(n){return()=>n.scrollStrategies.reposition()}},DJ=Zl(class{constructor(n){this._elementRef=n}});let SJ=(()=>{class n extends DJ{constructor(e,i,r,s,o,a){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=s,this._rangeSelectionStrategy=o,this._subscriptions=new Me,this._animationDone=new y,this._actionsPortal=null,this._closeButtonText=a.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,s=i instanceof Os;if(s&&this._rangeSelectionStrategy){const o=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(o,this)}else r&&(s||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(eu),R(sr),R(Nw,8),R(Tg))},n.\u0275cmp=Ct({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&Hn(nk,5),2&e){let r;Dt(r=St())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&fb("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(mb("@transformPanel",i._animationState),Kt("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[_t],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){if(1&e&&(Y(0,"div",0)(1,"mat-calendar",1),vt("yearSelected",function(s){return i.datepicker._selectYear(s)})("monthSelected",function(s){return i.datepicker._selectMonth(s)})("viewChanged",function(s){return i.datepicker._viewChanged(s)})("_userSelection",function(s){return i._handleUserSelection(s)}),ee(),mt(2,nJ,0,0,"ng-template",2),Y(3,"button",3),vt("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),ie(4),ee()()),2&e){let r;Kt("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),Yt("aria-modal",!0)("aria-labelledby",null!==(r=i._dialogLabelId)&&void 0!==r?r:void 0),be(1),Pe("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),be(1),Pe("cdkPortalOutlet",i._actionsPortal),be(1),Kt("cdk-visually-hidden",!i._closeButtonFocused),Pe("color",i.color||"primary"),be(1),Yn(i._closeButtonText)}},dependencies:[Gu,rl,C8,Ky,nk],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[OB.transformPanel,OB.fadeInCalendar]},changeDetection:0}),n})(),Vw=(()=>{class n{constructor(e,i,r,s,o,a,c){this._overlay=e,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=a,this._model=c,this._inputStateChanges=Me.EMPTY,this._document=qn(Qt),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new bt,this.monthSelected=new bt,this.viewChanged=new bt(!0),this.openedStream=new bt,this.closedStream=new bt,this._opened=!1,this.id="mat-datepicker-"+yJ++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new y,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Ft(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=Ft(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Ft(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function z5(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}(e)}get opened(){return this._opened}set opened(e){Ft(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof jN&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){var i;this._actionsPortal=e,null===(i=this._componentRef)||void 0===i||i.instance._assignActions(e,!0)}removeActions(e){var i;e===this._actionsPortal&&(this._actionsPortal=null,null===(i=this._componentRef)||void 0===i||i.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=sF(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:r,location:s}=this._componentRef;r._startExitAnimation(),r._animationDone.pipe(Ci(1)).subscribe(()=>{const o=this._document.activeElement;e&&(!o||o===this._document.activeElement||s.nativeElement.contains(o))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(i):i()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new sd(SJ,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new hg({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(s=>{s&&s.preventDefault(),this.close()}),r.keydownEvents().subscribe(s=>{const o=s.keyCode;(38===o||40===o||37===o||39===o||33===o||34===o)&&s.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Ci(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",s="above"===this.yPosition?"bottom":"top",o="top"===s?"bottom":"top";return e.withPositions([{originX:i,originY:o,overlayX:i,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o}])}_getCloseStream(e){return Ni(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ji(i=>27===i.keyCode&&!va(i)||this.datepickerInput&&va(i,"altKey")&&38===i.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(jt),R(Oi),R(FB),R(sr,8),R(us,8),R(eu))},n.\u0275dir=qe({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Zt]}),n})(),AJ=(()=>{class n extends Vw{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[kt([xB,{provide:Vw,useExisting:n}]),_t],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})();class Bw{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let LB=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new bt,this.dateInput=new bt,this.stateChanges=new y,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Me.EMPTY,this._localeSubscription=Me.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!o||this._matchesFilter(o)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMinDate();return!a||!o||this._dateAdapter.compareDate(a,o)<=0?null:{matDatepickerMin:{min:a,actual:o}}},this._maxValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMaxDate();return!a||!o||this._dateAdapter.compareDate(a,o)>=0?null:{matDatepickerMax:{max:a,actual:o}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=Ft(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Bw(this,this._elementRef.nativeElement)),this.dateChange.emit(new Bw(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){NB(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const s=!this._dateAdapter.sameDate(r,this.value);!r||s?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(r),this.dateInput.emit(new Bw(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Bw(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Zt]}),n})();function NB(n,t){const e=Object.keys(n);for(let i of e){const{previousValue:r,currentValue:s}=n[i];if(!t.isDateInstance(r)||!t.isDateInstance(s))return!0;if(!t.sameDate(r,s))return!0}return!1}const MJ={provide:fs,useExisting:Pn(()=>ik),multi:!0},EJ={provide:Ir,useExisting:Pn(()=>ik),multi:!0};let ik=(()=>{class n extends LB{constructor(e,i,r,s){super(e,i,r),this._formField=s,this._closedSubscription=Me.EMPTY,this._validator=_g.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(sr,8),R(Ja,8),R(dw,8))},n.\u0275dir=qe({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&vt("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)}),2&e&&(ja("disabled",i.disabled),Yt("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[kt([MJ,EJ,{provide:AV,useExisting:n}]),_t]}),n})(),xJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),kJ=(()=>{class n{constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=Me.EMPTY;const s=Number(r);this.tabIndex=s||0===s?s:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Ft(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:At(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:At(),r=this.datepicker?Ni(this.datepicker.openedStream,this.datepicker.closedStream):At();this._stateChanges.unsubscribe(),this._stateChanges=Ni(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(R(Tg),R(Xn),ys("tabindex"))},n.\u0275cmp=Ct({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,xJ,5),2&e){let s;Dt(s=St())&&(i._customIcon=s.first)}},viewQuery:function(e,i){if(1&e&&Hn(iJ,5),2&e){let r;Dt(r=St())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&vt("click",function(s){return i._open(s)}),2&e&&(Yt("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),Kt("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Zt],ngContentSelectors:oJ,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(Ui(sJ),Y(0,"button",0,1),mt(2,rJ,2,0,"svg",2),Vn(3),ee()),2&e&&(Pe("disabled",i.disabled)("disableRipple",i.disableRipple),Yt("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),be(2),Pe("ngIf",!i._customIcon))},dependencies:[mr,rl],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),n})();const Hw=new lt("MAT_DATE_RANGE_INPUT_PARENT"),VB=qM((()=>{class n extends LB{constructor(e,i,r,s,o,a,c,d){super(i,c,d),this._rangeInput=e,this._elementRef=i,this._defaultErrorStateMatcher=r,this._injector=s,this._parentForm=o,this._parentFormGroup=a,this._dir=qn(us,qt.Optional)}ngOnInit(){const e=this._injector.get(wa,null,qt.Self|qt.Optional);e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e);const i=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==i||i._validatorOnChange()}}return n.\u0275fac=function(e){return new(e||n)(R(Hw),R(yt),R(Zu),R(Ii),R(Kc,8),R(Xc,8),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,features:[_t]}),n})());let BB=(()=>{class n extends VB{constructor(e,i,r,s,o,a,c,d){super(e,i,r,s,o,a,c,d),this._startValidator=f=>{const v=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(f.value)),x=this._model?this._model.selection.end:null;return!v||!x||this._dateAdapter.compareDate(v,x)<=0?null:{matStartDateInvalid:{end:x,actual:v}}},this._validator=_g.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||(null!==(i=e.oldValue)&&void 0!==i&&i.start?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const i=new Os(e,this._model.selection.end);this._model.updateSelection(i,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}getMirrorValue(){const e=this._elementRef.nativeElement,i=e.value;return i.length>0?i:e.placeholder}_onKeydown(e){var i;const r=this._rangeInput._endInput,s=this._elementRef.nativeElement,o="rtl"!==(null===(i=this._dir)||void 0===i?void 0:i.value);(39===e.keyCode&&o||37===e.keyCode&&!o)&&s.selectionStart===s.value.length&&s.selectionEnd===s.value.length?(e.preventDefault(),r._elementRef.nativeElement.setSelectionRange(0,0),r.focus()):super._onKeydown(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Hw),R(yt),R(Zu),R(Ii),R(Kc,8),R(Xc,8),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(e,i){1&e&&vt("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ja("disabled",i.disabled),Yt("id",i._rangeInput.id)("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[kt([{provide:fs,useExisting:n,multi:!0},{provide:Ir,useExisting:n,multi:!0}]),_t]}),n})(),HB=(()=>{class n extends VB{constructor(e,i,r,s,o,a,c,d){super(e,i,r,s,o,a,c,d),this._endValidator=f=>{const v=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(f.value)),x=this._model?this._model.selection.start:null;return!v||!x||this._dateAdapter.compareDate(v,x)>=0?null:{matEndDateInvalid:{start:x,actual:v}}},this._validator=_g.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||(null!==(i=e.oldValue)&&void 0!==i&&i.end?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const i=new Os(this._model.selection.start,e);this._model.updateSelection(i,this)}}_onKeydown(e){var i;const r=this._rangeInput._startInput,s=this._elementRef.nativeElement,o="rtl"!==(null===(i=this._dir)||void 0===i?void 0:i.value);if(8!==e.keyCode||s.value)if((37===e.keyCode&&o||39===e.keyCode&&!o)&&0===s.selectionStart&&0===s.selectionEnd){e.preventDefault();const a=r._elementRef.nativeElement.value.length;r._elementRef.nativeElement.setSelectionRange(a,a),r.focus()}else super._onKeydown(e);else r.focus()}}return n.\u0275fac=function(e){return new(e||n)(R(Hw),R(yt),R(Zu),R(Ii),R(Kc,8),R(Xc,8),R(sr,8),R(Ja,8))},n.\u0275dir=qe({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,i){1&e&&vt("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ja("disabled",i.disabled),Yt("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[kt([{provide:fs,useExisting:n,multi:!0},{provide:Ir,useExisting:n,multi:!0}]),_t]}),n})(),TJ=0,PJ=(()=>{class n{constructor(e,i,r,s,o){if(this._changeDetectorRef=e,this._elementRef=i,this._dateAdapter=s,this._formField=o,this._closedSubscription=Me.EMPTY,this.id="mat-date-range-input-"+TJ++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new y,null!=o&&o._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const a=i.nativeElement.classList;a.add("mat-mdc-input-element"),a.add("mat-mdc-form-field-input-control")}this.ngControl=r}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var e,i;const r=(null===(e=this._startInput)||void 0===e?void 0:e._getPlaceholder())||"",s=(null===(i=this._endInput)||void 0===i?void 0:i._getPlaceholder())||"";return r||s?`${r} ${this.separator} ${s}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{var i,r;null===(i=this._startInput)||void 0===i||i._onTouched(),null===(r=this._endInput)||void 0===r||r._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(e){this._required=Ft(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._startInput,r=this._endInput,s=i&&i._matchesFilter(i.value),o=r&&r._matchesFilter(i.value);this._dateFilter=e,i&&i._matchesFilter(i.value)!==s&&i._validatorOnChange(),r&&r._matchesFilter(r.value)!==o&&r._validatorOnChange()}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._revalidate())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const i=Ft(e);i!==this._groupDisabled&&(this._groupDisabled=i,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),i=!!this._endInput&&this._endInput.isEmpty();return e&&i}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),Ni(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){NB(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Xn),R(yt),R(Is,10),R(sr,8),R(dw,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-date-range-input"]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,BB,5),Dn(r,HB,5)),2&e){let s;Dt(s=St())&&(i._startInput=s.first),Dt(s=St())&&(i._endInput=s.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,i){2&e&&(Yt("id",null)("aria-labelledby",i._getAriaLabelledby())("aria-describedby",i._ariaDescribedBy)("data-mat-calendar",i.rangePicker?i.rangePicker.id:null),Kt("mat-date-range-input-hide-placeholders",i._shouldHidePlaceholders())("mat-date-range-input-required",i.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[kt([{provide:Cg,useExisting:n},{provide:Hw,useExisting:n}]),Zt],ngContentSelectors:lJ,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(e,i){1&e&&(Ui(aJ),Y(0,"div",0),vt("cdkFocusChange",function(s){return i._updateFocus(s)}),Y(1,"div",1),Vn(2),Y(3,"span",2),ie(4),ee()(),Y(5,"span",3),ie(6),ee(),Y(7,"div",4),Vn(8,1),ee()()),2&e&&(be(4),Yn(i._getInputMirrorValue()),be(1),Kt("mat-date-range-input-separator-hidden",i._shouldHideSeparator()),be(1),Yn(i.separator))},dependencies:[FF],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),n})(),RJ=(()=>{class n extends Vw{_forwardContentValues(e){super._forwardContentValues(e);const i=this.datepickerInput;i&&(e.comparisonStart=i.comparisonStart,e.comparisonEnd=i.comparisonEnd)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[kt([fJ,gJ,{provide:Vw,useExisting:n}]),_t],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})(),IJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Tg,CJ],imports:[_a,BE,fg,GM,Xy,bn,Kh]}),n})();class OJ{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,i.readOnly=!0,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const t=this._textarea;t&&(t.remove(),this._textarea=void 0)}}let FJ=(()=>{class n{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new OJ(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LJ=new lt("CDK_COPY_TO_CLIPBOARD_CONFIG");let NJ=(()=>{class n{constructor(e,i,r){this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new bt,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let i=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const s=()=>{const o=r.copy();o||!--i||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(o)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(s,1))};s()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(R(FJ),R(jt),R(LJ,8))},n.\u0275dir=qe({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,i){1&e&&vt("click",function(){return i.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),VJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();const BJ=["mat-sort-header",""];function HJ(n,t){if(1&n){const e=ii();Y(0,"div",3),vt("@arrowPosition.start",function(){return zt(e),$t(Qe()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return zt(e),$t(Qe()._disableViewStateAnimation=!1)}),ft(1,"div",4),Y(2,"div",5),ft(3,"div",6)(4,"div",7)(5,"div",8),ee()()}if(2&n){const e=Qe();Pe("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),be(2),Pe("@indicator",e._getArrowDirectionState()),be(1),Pe("@leftPointer",e._getArrowDirectionState()),be(1),Pe("@rightPointer",e._getArrowDirectionState())}}const zJ=["*"],zB=new lt("MAT_SORT_DEFAULT_OPTIONS"),UJ=O8(Ql(class{}));let rk=(()=>{class n extends UJ{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new y,this.start="asc",this._direction="",this.sortChange=new bt}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ft(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,s;if(!e)return"";const o=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!(null===(s=this._defaultOptions)||void 0===s||!s.disableClear);let a=function jJ(n,t){let e=["asc","desc"];return"desc"==n&&e.reverse(),t||e.push(""),e}(e.start||this.start,o),c=a.indexOf(this.direction)+1;return c>=a.length&&(c=0),a[c]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(R(zB,8))},n.\u0275dir=qe({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:[_t,Zt]}),n})();const tu=P8.ENTERING+" "+T8.STANDARD_CURVE,gf={indicator:To("indicator",[vr("active-asc, asc",_n({transform:"translateY(0px)"})),vr("active-desc, desc",_n({transform:"translateY(10px)"})),or("active-asc <=> active-desc",_r(tu))]),leftPointer:To("leftPointer",[vr("active-asc, asc",_n({transform:"rotate(-45deg)"})),vr("active-desc, desc",_n({transform:"rotate(45deg)"})),or("active-asc <=> active-desc",_r(tu))]),rightPointer:To("rightPointer",[vr("active-asc, asc",_n({transform:"rotate(45deg)"})),vr("active-desc, desc",_n({transform:"rotate(-45deg)"})),or("active-asc <=> active-desc",_r(tu))]),arrowOpacity:To("arrowOpacity",[vr("desc-to-active, asc-to-active, active",_n({opacity:1})),vr("desc-to-hint, asc-to-hint, hint",_n({opacity:.54})),vr("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",_n({opacity:0})),or("* => asc, * => desc, * => active, * => hint, * => void",_r("0ms")),or("* <=> *",_r(tu))]),arrowPosition:To("arrowPosition",[or("* => desc-to-hint, * => desc-to-active",_r(tu,rd([_n({transform:"translateY(-25%)"}),_n({transform:"translateY(0)"})]))),or("* => hint-to-desc, * => active-to-desc",_r(tu,rd([_n({transform:"translateY(0)"}),_n({transform:"translateY(25%)"})]))),or("* => asc-to-hint, * => asc-to-active",_r(tu,rd([_n({transform:"translateY(25%)"}),_n({transform:"translateY(0)"})]))),or("* => hint-to-asc, * => active-to-asc",_r(tu,rd([_n({transform:"translateY(0)"}),_n({transform:"translateY(-25%)"})]))),vr("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",_n({transform:"translateY(0)"})),vr("hint-to-desc, active-to-desc, desc",_n({transform:"translateY(-25%)"})),vr("hint-to-asc, active-to-asc, asc",_n({transform:"translateY(25%)"}))]),allowChildren:To("allowChildren",[or("* <=> *",[nK("@*",tK(),{optional:!0})])])};let zw=(()=>{class n{constructor(){this.changes=new y}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $J={provide:zw,deps:[[new Cs,new Co,zw]],useFactory:function WJ(n){return n||new zw}},GJ=Ql(class{});let qJ=(()=>{class n extends GJ{constructor(e,i,r,s,o,a,c,d){super(),this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=s,this._focusMonitor=o,this._elementRef=a,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=d&&d.arrowPosition&&(this.arrowPosition=null==d?void 0:d.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ft(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=Ni(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)(R(zw),R(Xn),R(rk,8),R("MAT_SORT_HEADER_COLUMN_DEF",8),R(ba),R(yt),R(HM,8),R(zB,8))},n.\u0275cmp=Ct({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&vt("click",function(){return i._handleClick()})("keydown",function(s){return i._handleKeydown(s)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(Yt("aria-sort",i._getAriaSortAttribute()),Kt("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:[_t],attrs:BJ,ngContentSelectors:zJ,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&&(Ui(),Y(0,"div",0)(1,"div",1),Vn(2),ee(),mt(3,HJ,6,6,"div",2),ee()),2&e&&(Kt("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"===i.arrowPosition),Yt("tabindex",i._isDisabled()?null:0)("role",i._isDisabled()?null:"button"),be(3),Pe("ngIf",i._renderArrow()))},dependencies:[mr],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:[gf.indicator,gf.leftPointer,gf.rightPointer,gf.arrowOpacity,gf.arrowPosition,gf.allowChildren]},changeDetection:0}),n})(),YJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[$J],imports:[_a,bn]}),n})();const Yr=void 0,XJ=["de",[["AM","PM"],Yr,Yr],Yr,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],Yr,Yr],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",Yr,"{1} 'um' {0}",Yr],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[Yr,"\u0440."],CUC:[Yr,"Cub$"],DEM:["DM"],FKP:[Yr,"Fl\xa3"],GHS:[Yr,"\u20b5"],GNF:[Yr,"F.G."],KMF:[Yr,"FC"],PHP:[Yr,"\u20b1"],RON:[Yr,"L"],RUR:[Yr,"\u0440."],RWF:[Yr,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[Yr,"K"]},"ltr",function KJ(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];var UB={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};function _f(n){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.width?String(t.width):n.defaultWidth,i=n.formats[e]||n.formats[n.defaultWidth];return i}}var nee={date:_f({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:_f({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:_f({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ree={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};function ll(n){return function(t,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&n.formattingValues){var s=n.defaultFormattingWidth||n.defaultWidth,o=null!=e&&e.width?String(e.width):s;r=n.formattingValues[o]||n.formattingValues[s]}else{var a=n.defaultWidth,c=null!=e&&e.width?String(e.width):n.defaultWidth;r=n.values[c]||n.values[a]}return r[n.argumentCallback?n.argumentCallback(t):t]}}var sk={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},cee={narrow:sk.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:sk.wide};function cl(n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],s=t.match(r);if(!s)return null;var d,o=s[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],c=Array.isArray(a)?_ee(a,function(v){return v.test(o)}):gee(a,function(v){return v.test(o)});d=n.valueCallback?n.valueCallback(c):c,d=e.valueCallback?e.valueCallback(d):d;var f=t.slice(o.length);return{value:d,rest:f}}}function gee(n,t){for(var e in n)if(n.hasOwnProperty(e)&&t(n[e]))return e}function _ee(n,t){for(var e=0;e<n.length;e++)if(t(n[e]))return e}function jB(n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(n.matchPattern);if(!i)return null;var r=i[0],s=t.match(n.parsePattern);if(!s)return null;var o=n.valueCallback?n.valueCallback(s[0]):s[0];o=e.valueCallback?e.valueCallback(o):o;var a=t.slice(r.length);return{value:o,rest:a}}}const Ree={code:"de",formatDistance:function(t,e,i){var r,s=null!=i&&i.addSuffix?UB[t].withPreposition:UB[t].standalone;return r="string"==typeof s?s:1===e?s.one:s.other.replace("{{count}}",String(e)),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:"vor "+r:r},formatLong:nee,formatRelative:function(t,e,i,r){return ree[t]},localize:{ordinalNumber:function(t){return Number(t)+"."},era:ll({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ll({values:sk,formattingValues:cee,defaultWidth:"wide"}),day:ll({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:ll({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:jB({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t)}}),era:cl({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[a\xe4]n|feb|m\xe4r[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|m\xe4rz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[a\xe4]/i,/^f/i,/^m\xe4r/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cl({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cl({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function Iee(n,t){if(1&n){const e=ii();Y(0,"div",2)(1,"button",3),vt("click",function(){return zt(e),$t(Qe().action())}),ie(2),ee()()}if(2&n){const e=Qe();be(2),Yn(e.data.action)}}function Oee(n,t){}const WB=new lt("MatSnackBarData");class Uw{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Fee=Math.pow(2,31)-1;class ok{constructor(t,e){this._overlayRef=e,this._afterDismissed=new y,this._afterOpened=new y,this._onAction=new y,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Fee))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let Lee=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(R(ok),R(WB))},n.\u0275cmp=Ct({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(Y(0,"span",0),ie(1),ee(),mt(2,Iee,3,1,"div",1)),2&e&&(be(1),Yn(i.data.message),be(1),Pe("ngIf",i.hasAction))},dependencies:[mr,rl],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const Nee={snackBarState:To("state",[vr("void, hidden",_n({transform:"scale(0.8)",opacity:0})),vr("visible",_n({transform:"scale(1)",opacity:1})),or("* => visible",_r("150ms cubic-bezier(0, 0, 0.2, 1)")),or("* => void, * => hidden",_r("75ms cubic-bezier(0.4, 0.0, 1, 1)",_n({opacity:0})))])};let Vee=(()=>{class n extends UE{constructor(e,i,r,s,o){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=s,this.snackBarConfig=o,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new y,this._onExit=new y,this._onEnter=new y,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},this._live="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Ci(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(R(jt),R(yt),R(Xn),R(Zi),R(Uw))},n.\u0275dir=qe({type:n,viewQuery:function(e,i){if(1&e&&Hn(Ky,7),2&e){let r;Dt(r=St())&&(i._portalOutlet=r.first)}},features:[_t]}),n})(),Bee=(()=>{class n extends Vee{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=un(n)))(i||n)}}(),n.\u0275cmp=Ct({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&fb("@state.done",function(s){return i.onAnimationEnd(s)}),2&e&&mb("@state",i._animationState)},features:[_t],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(Y(0,"div",0),mt(1,Oee,0,0,"ng-template",1),ee(),ft(2,"div")),2&e&&(be(2),Yt("aria-live",i._live)("role",i._role))},dependencies:[Ky],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Nee.snackBarState]}}),n})(),$B=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[fg,Xy,_a,BE,bn,bn]}),n})();const GB=new lt("mat-snack-bar-default-options",{providedIn:"root",factory:function Hee(){return new Uw}});let zee=(()=>{class n{constructor(e,i,r,s,o,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=s,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const s=Object.assign(Object.assign({},this._defaultConfig),r);return s.data={message:e,action:i},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const s=Ii.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Uw,useValue:i}]}),o=new sd(this.snackBarContainerComponent,i.viewContainerRef,s),a=e.attach(o);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r=Object.assign(Object.assign(Object.assign({},new Uw),this._defaultConfig),i),s=this._createOverlay(r),o=this._attachSnackBarContainer(s,r),a=new ok(o,s);if(e instanceof fr){const c=new Yy(e,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(c)}else{const c=this._createInjector(r,a),d=new sd(e,void 0,c),f=o.attachComponentPortal(d);a.instance=f.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ot(s.detachments())).subscribe(c=>{s.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new hg;i.direction=e.direction;let r=this._overlay.position().global();const s="rtl"===e.direction,o="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!s||"end"===e.horizontalPosition&&s,a=!o&&"center"!==e.horizontalPosition;return o?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Ii.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ok,useValue:i},{provide:WB,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(Re(Po),Re(OF),Re(Ii),Re(jc),Re(n,12),Re(GB))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})(),Uee=(()=>{class n extends zee{constructor(e,i,r,s,o,a){super(e,i,r,s,o,a),this.simpleSnackBarComponent=Lee,this.snackBarContainerComponent=Bee,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(Re(Po),Re(OF),Re(Ii),Re(jc),Re(n,12),Re(GB))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:$B}),n})(),jee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn,bn]}),n})(),Wee=0;const $ee=Ql(class{}),qB="mat-badge-content";let Gee=(()=>{class n extends $ee{constructor(e,i,r,s,o){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=s,this._animationMode=o,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=Wee++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ft(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ft(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(qB),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${null!=e?e:""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${qB}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(R(jt),R(yt),R(HM),R(Us),R(Ts,8))},n.\u0275dir=qe({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&Kt("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[_t]}),n})(),qee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[GM,bn,bn]}),n})();const Yee=["tooltip"],YB="tooltip-panel",KB=Ku({passive:!0}),XB=new lt("mat-tooltip-scroll-strategy"),Zee={provide:XB,deps:[Po],useFactory:function Qee(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Jee=new lt("mat-tooltip-default-options",{providedIn:"root",factory:function ete(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let tte=(()=>{class n{constructor(e,i,r,s,o,a,c,d,f,v,x,B){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=c,this._focusMonitor=d,this._dir=v,this._defaultOptions=x,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 y,this._scrollStrategy=f,this._document=B,x&&(x.position&&(this.position=x.position),x.touchGestures&&(this.touchGestures=x.touchGestures)),v.change.pipe(Ot(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=Ft(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Gr(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Gr(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(Ot(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,KB)}),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 sd(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=r.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.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(Ot(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${YB}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ot(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ot(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ot(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!va(s)&&(s.preventDefault(),s.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(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.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:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_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:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Ci(1),Ot(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:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const c=`${this._cssClassPrefix}-${YB}-`;a.removePanelClass(c+this._currentPosition),a.addPanelClass(c+o)}this._currentPosition=o}}_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 s=i.relatedTarget;(!s||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(s))&&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,KB)})}_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){Vl()},n.\u0275dir=qe({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})(),nte=(()=>{class n extends tte{constructor(e,i,r,s,o,a,c,d,f,v,x,B){super(e,i,r,s,o,a,c,d,f,v,x,B),this._tooltipComponent=rte}}return n.\u0275fac=function(e){return new(e||n)(R(Po),R(yt),R(Nm),R(Oi),R(jt),R(Zi),R(HM),R(ba),R(XB),R(us,8),R(Jee,8),R(Qt))},n.\u0275dir=qe({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[_t]}),n})(),ite=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new y,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,s=this._hideAnimation;if(i.classList.remove(e?s:r),i.classList.add(e?r:s),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.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)(R(Xn),R(Ts,8))},n.\u0275dir=qe({type:n}),n})(),rte=(()=>{class n extends ite{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)(R(Xn),R(jc),R(Ts,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Hn(Yee,7),2&e){let r;Dt(r=St())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&vt("mouseleave",function(s){return i._handleMouseLeave(s)}),2&e&&js("zoom",i.isVisible()?1:null)},features:[_t],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(Y(0,"div",0,1),vt("animationend",function(s){return i._handleAnimationEnd(s)}),ui(2,"async"),ie(3),ee()),2&e){let r;Kt("mat-tooltip-handset",null==(r=wi(2,4,i._isHandset))?null:r.matches),Pe("ngClass",i.tooltipClass),be(3),Yn(i.message)}},dependencies:[Gu,Ga],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})(),ste=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[Zee],imports:[GM,_a,fg,bn,bn,Kh]}),n})();const ote=["sliderWrapper"];function ate(n,t){1&n&&ft(0,"div",15),2&n&&Pe("ngStyle",Qe()._trackBackgroundStylesLeft)}function lte(n,t){if(1&n&&(Y(0,"div",8,16),ft(2,"div",10)(3,"div",17),Y(4,"div",12)(5,"span",13),ie(6),ee()()()),2&n){const e=Qe();Pe("ngStyle",e._thumbContainerStylesRight),be(6),Yn(e.displayValueRight)}}const cte=function(n){return{"mtx-range-slider-fill":n}},ul=Ku({passive:!1}),pte={provide:fs,useExisting:Pn(()=>QB),multi:!0};class mte{}const gte=Ym(Zl(Ql(class{constructor(n){this._elementRef=n}}),"accent"));let QB=(()=>{class n extends gte{constructor(e,i,r,s,o,a,c){super(e),this._focusMonitor=i,this._changeDetectorRef=r,this._dir=s,this._animationMode=a,this._ngZone=c,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new bt,this.input=new bt,this.valueChange=new bt,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=Me.EMPTY,this._currentSliderDir="l",this._pointerDown=d=>{this.disabled||this._isSliding||!ak(d)&&0!==d.button||(this.calculateInitialSlideDirection(d),this._runInsideZone(()=>{const f=this.value,v=jw(d);this._isSliding=!0,d.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(d),this._focusHostElement(),this.value instanceof Array?"l"===this._currentSliderDir?this._updateValueFromPositionLeft(v):"r"===this._currentSliderDir&&this._updateValueFromPositionRight(v):this._updateValueFromPositionLeft(v),this._valueOnSlideStart=this.value,this._pointerPositionOnStart=v,f!==this.value&&(this._emitInputEvent(),this._emitChangeEvent())}))},this._pointerMove=d=>{if(this._isSliding){this.calculateInitialSlideDirection(d),d.preventDefault();const f=this.value,v=jw(d);"l"===this._currentSliderDir?this._updateValueFromPositionLeft(v):"r"===this._currentSliderDir?this._updateValueFromPositionRight(v):this.isRangeSlider()||this._updateValueFromPositionLeft(v),f!==this.value&&this._emitInputEvent()}},this._pointerUp=d=>{if(this._isSliding){const f=this._pointerPositionOnStart,v=jw(d);d.preventDefault(),this._removeGlobalEvents(),this._valueOnSlideStart=this._pointerPositionOnStart=null,this._isSliding=!1,this._valueOnSlideStart!==this.value&&!this.disabled&&f&&(f.x!==v.x||f.y!==v.y)&&this._emitChangeEvent()}},this.tabIndex=parseInt(o,10)||0,this._runOutsizeZone(()=>{const d=e.nativeElement;d.addEventListener("mousedown",this._pointerDown,ul),d.addEventListener("touchstart",this._pointerDown,ul)})}get invert(){return this._invert}set invert(e){this._invert=Ft(e)}get max(){return this._max}set max(e){this._max=Gr(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(e){this._min=Gr(e,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(e){this._step=Gr(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(e){this._thumbLabel=Ft(e)}get tickInterval(){return this._tickInterval}set tickInterval(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?Gr(e,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(e){if(e!==this._value||e instanceof Array&&null!=this._value&&(e[0]!==this._value[0]||e[1]!==this._value[1])){let i=null;e instanceof Array?(i=[Gr(e[0]),Gr(e[1])],i=[Math.min(i[0],i[1]),Math.max(i[1],i[0])]):i=Gr(e),this._roundToDecimal&&(i=e instanceof Array?[parseFloat(i[0].toFixed(this._roundToDecimal)),parseFloat(i[1].toFixed(this._roundToDecimal))]:parseFloat(Number(i).toFixed(this._roundToDecimal))),this._value=i,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(e){this._vertical=Ft(e)}get displayValue(){if(null==this.value)return"";if(this.displayWith)return this.displayWith(this.value instanceof Array?this.value[0]:this.value);if(this.value instanceof Array){if(this._roundToDecimal&&this.value&&(this.value[0]%1!=0||this.value[1]%1!=0))return this.value[0].toFixed(this._roundToDecimal)}else if(this._roundToDecimal&&this.value&&this.value%1!=0)return this.value.toFixed(this._roundToDecimal);return this.value instanceof Array?this.value[0]||0:this.value||0}get displayValueRight(){return null==this.value?"":this.displayWith?this.displayWith(this.value[1]):this._roundToDecimal&&this.value&&null!=this.value&&this.value[1]%1!=0?this.value[1].toFixed(this._roundToDecimal):this.value[1]||0}focus(){this._focusHostElement()}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}get _invertAxis(){return this.vertical?!this.invert:this.invert}get _isMinValue(){return this.value instanceof Array?0===this.percent[0]:0===this.percent}get _thumbGap(){return this.disabled?0:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0}get _trackBackgroundStylesLeft(){let i="";return i=this.percent instanceof Array?this.vertical?`1, ${this.percent[0]}, 1`:`${this.percent[0]}, 1, 1`:this.vertical?`1, ${this.percent}, 1`:`${this.percent}, 1, 1`,{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._thumbGap}px) scale3d(${i})`}}get _trackBackgroundStylesRight(){let i="";return i=this.percent instanceof Array?this.vertical?`1, ${1-this.percent[1]}, 1`:1-this.percent[1]+", 1, 1":this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1",{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._thumbGap}px) scale3d(${i})`}}get _trackFillStyles(){const e=this.vertical?"Y":"X";let i="";i=this.percent instanceof Array?this.vertical?`1, ${this.percent[1]-this.percent[0]}, 1`:this.percent[1]-this.percent[0]+", 1, 1":this.vertical?`1, ${this.percent}, 1`:`${this.percent}, 1, 1`;const r="rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis;let s=0;s=this.percent instanceof Array?100*(r?1-this.percent[1]:this.percent[0]):0;const o=this._shouldInvertMouseCoords()?"":"-";return this.isRangeSlider()?{transform:`translate${e}(${s}%) scale3d(${i})`}:{transform:`translate${e}(${o}${this._thumbGap}px) scale3d(${i})`}}get _ticksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!==this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}get _ticksStyles(){const e=100*this._tickIntervalPercent,a={backgroundSize:this.vertical?`2px ${e}%`:`${e}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!==this._getDirection()?"":"-"}${e/2}%)${this.vertical||"rtl"!==this._getDirection()?"":" rotate(180deg)"}`};return this._isMinValue&&this._thumbGap&&(a["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=`${this._thumbGap}px`),a}get _thumbContainerStylesLeft(){const e=this.vertical?"Y":"X",i="rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis;let r=0;return r=this.percent instanceof Array?100*(i?this.percent[0]:1-this.percent[0]):100*(i?this.percent:1-this.percent),{transform:`translate${e}(-${r}%)`}}get _thumbContainerStylesRight(){const e=this.vertical?"Y":"X",i="rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis;let r=0;return r=this.percent instanceof Array?100*(i?this.percent[1]:1-this.percent[1]):100*(i?this.percent:1-this.percent),{transform:`translate${e}(-${r}%)`}}_shouldInvertMouseCoords(){return"rtl"!==this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis}_getDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}ngOnInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{this._isActive=!!e&&"keyboard"!==e,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,ul),e.removeEventListener("touchstart",this._pointerDown,ul),this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onClick(e){if(this.disabled)return;let i;if(i=this.value instanceof Array?[this.value[0],this.value[1]]:this.value,this._isSliding=!1,this._focusHostElement(),!this._sliderDimensions)return;let a=Number(this._clamp(((this.vertical?e.clientY:e.clientX)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width)));this._shouldInvertMouseCoords()&&(a=1-a),this._currentSliderDir=a<=this.percent[0]+(this.percent[1]-this.percent[0])/2?"l":"r","l"===this._currentSliderDir?this._updateValueFromPositionLeft({x:e.clientX,y:e.clientY}):this._updateValueFromPositionRight({x:e.clientX,y:e.clientY}),this.value instanceof Array?(i[0]!==this.value[0]||i[1]!==this.value[1])&&(this._emitInputEvent(),this._emitChangeEvent()):i!==this.value&&(this._emitInputEvent(),this._emitChangeEvent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(e){if(this.disabled)return;let i;switch(i=this.value instanceof Array?[this.value[0],this.value[1]]:this.value,e.keyCode){case 33:this._increment(10);break;case 34:this._increment(-10);break;case 35:this.value=this.max;break;case 36:this.value=this.min;break;case 37:this._increment("rtl"===this._getDirection()?1:-1);break;case 38:this._increment(1);break;case 39:this._increment("rtl"===this._getDirection()?-1:1);break;case 40:this._increment(-1);break;default:return}this.value instanceof Array?(i[0]!==this.value[0]||i[1]!==this.value[1])&&(this._emitInputEvent(),this._emitChangeEvent()):i!==this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,e.preventDefault()}_onKeyup(){this._isSliding=!1}_bindGlobalEvents(e){if("undefined"!=typeof document&&document){const i=ak(e),s=i?"touchend":"mouseup";document.body.addEventListener(i?"touchmove":"mousemove",this._pointerMove,ul),document.body.addEventListener(s,this._pointerUp,ul)}}_removeGlobalEvents(){"undefined"!=typeof document&&document&&(document.body.removeEventListener("mousemove",this._pointerMove,ul),document.body.removeEventListener("mouseup",this._pointerUp,ul),document.body.removeEventListener("touchmove",this._pointerMove,ul),document.body.removeEventListener("touchend",this._pointerUp,ul))}_increment(e){this.value=this._clamp(this.value instanceof Array?[(this.value[0]||0)+this.step*e,(this.value[1]||0)+this.step*e]:(this.value||0)+this.step*e,this.min,this.max)}_updateValueFromPosition(e){if(!this._sliderDimensions)return;let o=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.min;else if(1===o)this.value=this.max;else{const a=this._calculateValue(o),c=Math.round((a-this.min)/this.step)*this.step+this.min;this.value=this._clamp(c,this.min,this.max)}}_updateValueFromPositionLeft(e){if(!this._sliderDimensions)return;let o=Number(this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width)));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.value instanceof Array?[this.min,this.value[1]]:this.min;else if(1===o)this.value=this.value instanceof Array?[this.max,this.value[1]]:this.max;else{const a=this._calculateValue(o),c=Math.round((Number(a)-this.min)/this.step)*this.step+this.min;this.value=this.value instanceof Array?[Number(this._clamp(c,this.min,this.max)),this.value[1]]:this._clamp(c,this.min,this.max)}}_updateValueFromPositionRight(e){if(!this._sliderDimensions)return;let o=Number(this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width)));if(this._shouldInvertMouseCoords()&&(o=1-o),0===o)this.value=this.value instanceof Array?[this.value[0],this.min]:this.min;else if(1===o)this.value=this.value instanceof Array?[this.value[0],this.max]:this.max;else{const a=this._calculateValue(o),c=Math.round((Number(a)-this.min)/this.step)*this.step+this.min;this.value=this.value instanceof Array?[this.value[0],Number(this._clamp(c,this.min,this.max))]:this._clamp(c,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"===this.tickInterval){const e=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,s=Math.ceil(30/(e*this.step/(this.max-this.min)))*this.step;this._tickIntervalPercent=s/e}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(e=this.value){const i=new mte;return i.source=this,i.value=e,i}_calculatePercentage(e){return e instanceof Array?[((e[0]||0)-this.min)/(this.max-this.min),((e[1]||0)-this.min)/(this.max-this.min)]:((e||0)-this.min)/(this.max-this.min)}_calculateValue(e){return e instanceof Array?[this.min+e[0]*(this.max-this.min),this.min+e[1]*(this.max-this.min)]:this.min+e*(this.max-this.min)}_clamp(e,i=0,r=1){return e instanceof Array?[Math.max(i,Math.min(e[0],r)),Math.max(i,Math.min(e[1],r))]:Math.max(i,Math.min(e,r))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(){this._elementRef.nativeElement.focus()}_blurHostElement(){this._elementRef.nativeElement.blur()}_runOutsizeZone(e){this._ngZone?this._ngZone.runOutsideAngular(e):e()}_runInsideZone(e){this._ngZone?this._ngZone.run(e):e()}writeValue(e){this.value=e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}isRangeSlider(){return this.value instanceof Array}calculateInitialSlideDirection(e){if(!this._sliderDimensions)return;const i=this.vertical?this._sliderDimensions.top:this._sliderDimensions.left,r=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,s=jw(e);let a=Number(this._clamp(((this.vertical?s.y:s.x)-i)/r));this._shouldInvertMouseCoords()&&(a=1-a),this._currentSliderDir=a<=this.percent[0]+(this.percent[1]-this.percent[0])/2?"l":"r"}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(ba),R(Xn),R(us,8),ys("tabindex"),R(Ts,8),R(jt))},n.\u0275cmp=Ct({type:n,selectors:[["mtx-slider"]],viewQuery:function(e,i){if(1&e&&Hn(ote,5),2&e){let r;Dt(r=St())&&(i._sliderWrapper=r.first)}},hostAttrs:["role","slider",1,"mtx-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()})("click",function(s){return i._onClick(s)})("keydown",function(s){return i._onKeydown(s)})("keyup",function(){return i._onKeyup()})("mouseenter",function(){return i._onMouseenter()})("selectstart",function(s){return s.preventDefault()}),2&e&&(ja("tabIndex",i.tabIndex),Yt("aria-disabled",i.disabled)("aria-valuemax",i.max)("aria-valuemin",i.min)("aria-valuenow",i.value)("aria-valuetext",null==i.valueText?i.displayValue:i.valueText)("aria-orientation",i.vertical?"vertical":"horizontal"),Kt("mtx-slider-disabled",i.disabled)("mtx-slider-has-ticks",i.tickInterval)("mtx-slider-horizontal",!i.vertical)("mtx-slider-axis-inverted",i._invertAxis)("mtx-slider-sliding",i._isSliding)("mtx-slider-thumb-label-showing",i.thumbLabel)("mtx-slider-vertical",i.vertical)("mtx-slider-min-value",i._isMinValue)("mtx-range-slider",i.isRangeSlider())("mtx-slider-hide-last-tick",i.disabled||i._isMinValue&&i._thumbGap&&i._invertAxis)("_mtx-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["mtxSlider"],features:[kt([pte]),_t],decls:16,vars:11,consts:[[1,"mtx-slider-wrapper"],["sliderWrapper",""],[1,"mtx-slider-track-wrapper"],["class","mtx-slider-track-background mtx-slider-track-background-left",3,"ngStyle",4,"ngIf"],[1,"mtx-slider-track-background","mtx-slider-track-background-right",3,"ngStyle"],[1,"mtx-slider-track-fill",3,"ngClass","ngStyle"],[1,"mtx-slider-ticks-container",3,"ngStyle"],[1,"mtx-slider-ticks",3,"ngStyle"],[1,"mtx-slider-thumb-container",3,"ngStyle"],["leftSlider",""],[1,"mtx-slider-focus-ring"],[1,"mtx-slider-thumb","left"],[1,"mtx-slider-thumb-label"],[1,"mtx-slider-thumb-label-text"],["class","mtx-slider-thumb-container",3,"ngStyle",4,"ngIf"],[1,"mtx-slider-track-background","mtx-slider-track-background-left",3,"ngStyle"],["rightSlider",""],[1,"mtx-slider-thumb","right"]],template:function(e,i){1&e&&(Y(0,"div",0,1)(2,"div",2),mt(3,ate,1,1,"div",3),ft(4,"div",4)(5,"div",5),ee(),Y(6,"div",6),ft(7,"div",7),ee(),Y(8,"div",8,9),ft(10,"div",10)(11,"div",11),Y(12,"div",12)(13,"span",13),ie(14),ee()()(),mt(15,lte,7,2,"div",14),ee()),2&e&&(be(3),Pe("ngIf",i.isRangeSlider()),be(1),Pe("ngStyle",i._trackBackgroundStylesRight),be(1),Pe("ngClass",wb(9,cte,i.isRangeSlider()))("ngStyle",i._trackFillStyles),be(1),Pe("ngStyle",i._ticksContainerStyles),be(1),Pe("ngStyle",i._ticksStyles),be(1),Pe("ngStyle",i._thumbContainerStylesLeft),be(6),Yn(i.displayValue),be(1),Pe("ngIf",i.isRangeSlider()))},dependencies:[Gu,mr,MO],styles:['.mtx-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mtx-slider:not(.mtx-slider-disabled):active,.mtx-slider.mtx-slider-sliding:not(.mtx-slider-disabled){cursor:grabbing}.mtx-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact;position:absolute}.mtx-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mtx-slider-track-fill,.mtx-slider-track-background-left{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-track-background-right{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mtx-slider-ticks{-webkit-background-clip:content-box;background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider.cdk-keyboard-focused .mtx-slider-focus-ring,.mtx-slider.cdk-program-focused .mtx-slider-focus-ring{transform:scale(1);opacity:1}.mtx-slider:not(.mtx-slider-disabled,.mtx-slider-sliding) .mtx-slider-thumb-label,.mtx-slider:not(.mtx-slider-disabled,.mtx-slider-sliding) .mtx-slider-thumb{cursor:grab}.mtx-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.cdk-high-contrast-active .mtx-slider-thumb-label{outline:solid 1px}.mtx-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-sliding .mtx-slider-track-fill,.mtx-slider-sliding .mtx-slider-track-background-left,.mtx-slider-sliding .mtx-slider-track-background-right,.mtx-slider-sliding .mtx-slider-thumb-container{transition-duration:0ms}.mtx-slider-has-ticks .mtx-slider-wrapper:after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mtx-slider-has-ticks.cdk-focused:not(.mtx-slider-hide-last-tick) .mtx-slider-wrapper:after,.mtx-slider-has-ticks:hover:not(.mtx-slider-hide-last-tick) .mtx-slider-wrapper:after{opacity:1}.mtx-slider-has-ticks.cdk-focused:not(.mtx-slider-disabled) .mtx-slider-ticks,.mtx-slider-has-ticks:hover:not(.mtx-slider-disabled) .mtx-slider-ticks{opacity:1}.mtx-slider-thumb-label-showing .mtx-slider-focus-ring{display:none}.mtx-slider-thumb-label-showing .mtx-slider-thumb-label{display:flex}.mtx-slider-axis-inverted .mtx-slider-track-fill{transform-origin:100% 100%}.mtx-slider-axis-inverted .mtx-slider-track-fill.mtx-range-slider-fill{transform-origin:0 0}.mtx-slider-axis-inverted .mtx-slider-track-background-left{transform-origin:100% 100%}.mtx-slider-axis-inverted .mtx-slider-track-background-right{transform-origin:0 0}.mtx-slider:not(.mtx-slider-disabled).cdk-focused.mtx-slider-thumb-label-showing .mtx-slider-thumb{transform:scale(0)}.mtx-slider:not(.mtx-slider-disabled).cdk-focused .mtx-slider-thumb-label{border-radius:50% 50% 0}.mtx-slider:not(.mtx-slider-disabled).cdk-focused .mtx-slider-thumb-label-text{opacity:1}.mtx-slider:not(.mtx-slider-disabled).cdk-mouse-focused .mtx-slider-thumb,.mtx-slider:not(.mtx-slider-disabled).cdk-touch-focused .mtx-slider-thumb,.mtx-slider:not(.mtx-slider-disabled).cdk-program-focused .mtx-slider-thumb{border-width:2px;transform:scale(1)}.mtx-slider-disabled .mtx-slider-focus-ring{transform:scale(0);opacity:0}.mtx-slider-disabled .mtx-slider-thumb{border-width:4px;transform:scale(.5)}.mtx-slider-disabled .mtx-slider-thumb-label{display:none}.mtx-slider-horizontal{height:48px;min-width:128px}.mtx-slider-horizontal .mtx-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mtx-slider-horizontal .mtx-slider-wrapper:after{height:2px;border-left-width:2px;right:0;top:0}.mtx-slider-horizontal .mtx-slider-track-wrapper{height:2px;width:100%}.mtx-slider-horizontal .mtx-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mtx-slider-horizontal .mtx-slider-track-background-left,.mtx-slider-horizontal .mtx-slider-track-background-right{height:2px;width:100%;transform:scaleX(1)}.mtx-slider-horizontal .mtx-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mtx-slider-horizontal .mtx-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mtx-slider-horizontal .mtx-slider-ticks{height:2px;width:100%}.mtx-slider-horizontal .mtx-slider-thumb-container{width:100%;height:0;top:50%}.mtx-slider-horizontal .mtx-slider-focus-ring{top:-15px;right:-15px}.mtx-slider-horizontal .mtx-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mtx-slider-horizontal .mtx-slider-thumb-label-text{transform:rotate(-45deg)}.mtx-slider-horizontal.cdk-focused .mtx-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mtx-slider-horizontal.cdk-focused .mtx-slider-thumb-label,.cdk-high-contrast-active .mtx-slider-horizontal.cdk-focused .mtx-slider-thumb-label-text{transform:none}.mtx-slider-vertical{width:48px;min-height:128px}.mtx-slider-vertical .mtx-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mtx-slider-vertical .mtx-slider-wrapper:after{width:2px;border-top-width:2px;bottom:0;left:0}.mtx-slider-vertical .mtx-slider-track-wrapper{height:100%;width:2px}.mtx-slider-vertical .mtx-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mtx-slider-vertical .mtx-slider-track-background-left,.mtx-slider-vertical .mtx-slider-track-background-right{height:100%;width:2px;transform:scaleY(1)}.mtx-slider-vertical .mtx-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mtx-slider-vertical .mtx-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mtx-slider-vertical .mtx-slider-focus-ring{bottom:-15px;left:-15px}.mtx-slider-vertical .mtx-slider-ticks{width:2px;height:100%}.mtx-slider-vertical .mtx-slider-thumb-container{height:100%;width:0;left:50%}.mtx-slider-vertical .mtx-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mtx-slider-vertical .mtx-slider-thumb-label{bottom:-14px;left:-40px;transform:translate(26px) scale(.01) rotate(-45deg)}.mtx-slider-vertical .mtx-slider-thumb-label-text{transform:rotate(45deg)}.mtx-slider-vertical.cdk-focused .mtx-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mtx-slider-wrapper:after{left:0;right:auto}[dir=rtl] .mtx-slider-horizontal .mtx-slider-track-fill:not(.mtx-range-slider-fill){transform-origin:100% 100%}[dir=rtl] .mtx-slider-horizontal .mtx-slider-track-background-left{transform-origin:100% 100%}[dir=rtl] .mtx-slider-horizontal .mtx-slider-track-background-right,[dir=rtl] .mtx-slider-horizontal.mtx-slider-axis-inverted .mtx-slider-track-fill,[dir=rtl] .mtx-slider-horizontal.mtx-slider-axis-inverted .mtx-slider-track-background-left{transform-origin:0 0}[dir=rtl] .mtx-slider-horizontal.mtx-slider-axis-inverted .mtx-slider-track-background-right{transform-origin:100% 100%}.mtx-slider._mtx-animation-noopable .mtx-slider-track-fill,.mtx-slider._mtx-animation-noopable .mtx-slider-track-background-left,.mtx-slider._mtx-animation-noopable .mtx-slider-track-background-right,.mtx-slider._mtx-animation-noopable .mtx-slider-ticks,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb-container,.mtx-slider._mtx-animation-noopable .mtx-slider-focus-ring,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb-label,.mtx-slider._mtx-animation-noopable .mtx-slider-thumb-label-text,.mtx-slider._mtx-animation-noopable .mtx-slider-has-ticks .mtx-slider-wrapper:after{transition:none}\n'],encapsulation:2,changeDetection:0}),n})();function ak(n){return"t"===n.type[0]}function jw(n){const t=ak(n)?n.touches[0]||n.changedTouches[0]:n;return{x:t.clientX,y:t.clientY}}let _te=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[_a,bn,bn]}),n})();const vte=["input"],bte=function(n){return{enterDuration:n}},yte=["*"],wte=new lt("mat-radio-default-options",{providedIn:"root",factory:function Cte(){return{color:"accent"}}});let ZB=0;class JB{constructor(t,e){this.source=t,this.value=e}}const eH=new lt("MatRadioGroup");class Mte{constructor(t){this._elementRef=t}}const Ete=Jl(Ym(Mte));let xte=(()=>{class n extends Ete{constructor(e,i,r,s,o,a,c,d){super(i),this._changeDetector=r,this._focusMonitor=s,this._radioDispatcher=o,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++ZB,this.id=this._uniqueId,this.change=new bt,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===a,d&&(this.tabIndex=Gr(d,0)),this._removeUniqueSelectionListener=o.listen((f,v)=>{f!==this.id&&v===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const i=Ft(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Ft(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Ft(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new JB(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){var e;const i=this.radioGroup;let r;if(r=i&&i.selected&&!this.disabled?i.selected===this?this.tabIndex:-1:this.tabIndex,r!==this._previousTabIndex){const s=null===(e=this._inputElement)||void 0===e?void 0:e.nativeElement;s&&(s.setAttribute("tabindex",r+""),this._previousTabIndex=r)}}}return n.\u0275fac=function(e){Vl()},n.\u0275dir=qe({type:n,viewQuery:function(e,i){if(1&e&&Hn(vte,5),2&e){let r;Dt(r=St())&&(i._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[_t]}),n})(),tH=(()=>{class n extends xte{constructor(e,i,r,s,o,a,c,d){super(e,i,r,s,o,a,c,d)}}return n.\u0275fac=function(e){return new(e||n)(R(eH,8),R(yt),R(Xn),R(ba),R(PG),R(Ts,8),R(wte,8),ys("tabindex"))},n.\u0275cmp=Ct({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._inputElement.nativeElement.focus()}),2&e&&(Yt("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Kt("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[_t],ngContentSelectors:yte,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,i){if(1&e&&(Ui(),Y(0,"label",0,1)(2,"span",2),ft(3,"span",3)(4,"span",4),Y(5,"input",5,6),vt("change",function(s){return i._onInputInteraction(s)})("click",function(s){return i._onInputClick(s)}),ee(),Y(7,"span",7),ft(8,"span",8),ee()(),Y(9,"span",9)(10,"span",10),ie(11,"\xa0"),ee(),Vn(12),ee()()),2&e){const r=zi(1);Yt("for",i.inputId),be(5),Pe("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),Yt("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),be(2),Pe("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",wb(17,bte,i._noopAnimations?0:150)),be(2),Kt("mat-radio-label-before","before"==i.labelPosition)}},dependencies:[ec],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),n})(),kte=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[Xm,bn,bn]}),n})();var Tte=He(87),nH=He.n(Tte);let Pte=(()=>{class n{constructor(){}ngOnChanges(e){e.readme&&(this.parsedReadme=nH().replace(this.readme))}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-readme"]],inputs:{readme:"readme"},features:[Zt],decls:3,vars:1,consts:[[1,"datasource-readme-component"],[1,"markdown-body"],[3,"data"]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"div",1),ft(2,"markdown",2),ee()()),2&e&&(be(2),Pe("data",i.parsedReadme))},dependencies:[Yx],styles:[".markdown-body markdown h2:first-child{margin-top:0}"]}),n})(),iH=(()=>{class n{static orderContent(e){return Rs.orderBy(e,i=>`${n.ContentOrder.indexOf(i.$type)}_${i.name}`)}}return n.ContentOrder=["folder","file"],n})();const{isArray:Rte}=Array;function rH(n){return 1===n.length&&Rte(n[0])?n[0]:n}const Fte=[{filename:"Aktuell_Deutschland_Landkreise_COVID-19-Impfungen.csv",field:"LandkreisId_Impfort"}];function Nte(n,t){if(1&n&&(Y(0,"p"),ie(1),ee()),2&n){const e=Qe();be(1),ci(" Datei '",e.file.name,"' wird heruntergeladen...\n")}}let Vte=(()=>{class n{constructor(){this.done=new bt,this.downloadProgress=0}ngOnInit(){}download(){if(this.file){const e=this.file.name,i=this.file.downloadUrl,r=new XMLHttpRequest;r.onloadstart=function(s){r.responseType="blob"},r.addEventListener("progress",s=>{s.lengthComputable&&(this.downloadProgress=Math.floor(s.loaded/s.total*100))},!1),r.onreadystatechange=()=>{if(4===r.readyState&&200===r.status){const a=window.navigator;if(void 0!==a.msSaveBlob){var s=new Blob([r.response],{type:"application/force-download"});a.msSaveBlob(s,e)}else{var o=document.createElement("a");o.href=window.URL.createObjectURL(r.response),o.download=e,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}this.done.emit()}},r.open("GET",i,!0),r.send()}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-file-download"]],inputs:{file:"file"},outputs:{done:"done"},decls:3,vars:2,consts:[[4,"ngIf"]],template:function(e,i){1&e&&(mt(0,Nte,2,1,"p",0),Y(1,"p"),ie(2),ee()),2&e&&(Pe("ngIf",i.file),be(2),ci(" Fortschritt: ",i.downloadProgress,"%\n"))},dependencies:[mr]}),n})(),sH=(()=>{class n{constructor(e){this.snackBar=e,this.isDownloading=!1}download(e){if(this.isDownloading)return;const i=this.snackBar.openFromComponent(Vte,{});i.instance.file=e;const r=i.instance.done.subscribe(()=>{this.isDownloading=!1,i.dismiss(),setTimeout(()=>r.unsubscribe())});i.instance.download(),this.isDownloading=!0}}return n.\u0275fac=function(e){return new(e||n)(Re(Uee))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pg=(()=>{class n{constructor(){this.text="Lade..."}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-loading-indicator"]],inputs:{text:"text"},decls:4,vars:1,consts:[[1,"spinner-container","fullsize"],[1,"loading-text"]],template:function(e,i){1&e&&(Y(0,"div",0),ft(1,"mat-spinner"),Y(2,"div",1),ie(3),ee()()),2&e&&(be(3),Yn(i.text))},dependencies:[cc],styles:[".fullsize[_ngcontent-%COMP%], [_nghost-%COMP%]{width:100%;min-width:100%;height:100%;min-height:100%}.spinner-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-text[_ngcontent-%COMP%]{font-size:120%;margin-top:16px;max-width:100%;white-space:break-spaces}"]}),n})();function Bte(n,t){1&n&&ft(0,"app-loading-indicator",4)}let Hte=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-image-preview"]],inputs:{imgUrl:"imgUrl"},decls:5,vars:1,consts:[[1,"image-preview-component-container"],[1,"image-container"],[1,"image-preview",3,"src"],["loading",""],["text","Lade Vorschau..."]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"div",1),ft(2,"img",2),ee(),mt(3,Bte,1,0,"ng-template",null,3,Hl),ee()),2&e&&(be(2),Pe("src",i.imgUrl,zs))},dependencies:[Pg],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}"]}),n})();function zte(n,t){1&n&&ft(0,"app-loading-indicator",3)}let Ute=(()=>{class n{constructor(){this.pdfSrc="",this.isLoading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-pdf-preview"]],inputs:{pdfSrc:"pdfSrc"},decls:3,vars:3,consts:[[1,"pdf-container"],[1,"pdf-viewer",3,"src","render-text","after-load-complete"],["text","Lade Vorschau...",4,"ngIf"],["text","Lade Vorschau..."]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"pdf-viewer",1),vt("after-load-complete",function(){return i.isLoading=!1}),ee(),mt(2,zte,1,0,"app-loading-indicator",2),ee()),2&e&&(be(1),Pe("src",i.pdfSrc)("render-text",!0),be(1),Pe("ngIf",i.isLoading))},dependencies:[mr,qK,Pg],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.pdf-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;max-height:100%;height:100%;max-width:100%;width:100%;position:relative}.pdf-container[_ngcontent-%COMP%] .pdf-viewer[_ngcontent-%COMP%]{flex:1 1 100%;margin-left:auto;margin-right:auto}"]}),n})();function $te(n,t){if(1&n&&(Y(0,"div",3),ft(1,"markdown",4),ee()),2&n){const e=t.ngIf;be(1),Pe("data",e)}}function Gte(n,t){1&n&&ft(0,"app-loading-indicator",5)}let qte=(()=>{class n{constructor(e){this.http=e,this.url$=new gr(void 0),this.mdData$=this.url$.pipe(ds(i=>void 0===i?At(void 0):this.http.get(i,{responseType:"text"}).pipe(z(r=>(r=function Wte(n,t){return t.reduce((e,i)=>{const r=new RegExp(`<${i}.*?>(?<inner>.+?)</${i}>`,"gs");return e.replace(r,"$<inner>")},n)}(r,["font"]),this.baseUrl&&(r=function jte(n,t){const e=new RegExp("!\\[(?<title>.*?)\\]\\((?<url>\\/.*?)\\)","gs"),i=new RegExp("\\[(?<title>.*?)\\]\\((?<url>\\/.*?)\\)","g");return(n=n.replace(e,`![$<title>](${t}$<url>)`)).replace(i,`[$<title>](${t}$<url>)`)}(r,this.baseUrl)),nH().replace(r))))))}ngOnChanges(e){e.url&&this.url$.next(e.url.currentValue)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(R(nd))},n.\u0275cmp=Ct({type:n,selectors:[["app-markdown-preview"]],inputs:{url:"url",baseUrl:"baseUrl"},features:[Zt],decls:5,vars:4,consts:[[1,"root-container"],["class","markdown-body",4,"ngIf","ngIfElse"],["loading",""],[1,"markdown-body"],[3,"data"],["text","Lade Vorschau..."]],template:function(e,i){if(1&e&&(Y(0,"div",0),mt(1,$te,2,1,"div",1),ui(2,"async"),ee(),mt(3,Gte,1,0,"ng-template",null,2,Hl)),2&e){const r=zi(4);be(1),Pe("ngIf",wi(2,2,i.mdData$))("ngIfElse",r)}},dependencies:[mr,Yx,Pg,Ga],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}"]}),n})();Math.pow(10,8);var ck=36e5;function Qn(n,t){if(t.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}function Kr(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function uk(n,t){var e;Qn(1,arguments);var i=Kr(null!==(e=null==t?void 0:t.additionalDigits)&&void 0!==e?e:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof n&&"[object String]"!==Object.prototype.toString.call(n))return new Date(NaN);var s,r=ine(n);if(r.date){var o=rne(r.date,i);s=sne(o.restDateString,o.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var d,a=s.getTime(),c=0;if(r.time&&(c=one(r.time),isNaN(c)))return new Date(NaN);if(!r.timezone){var f=new Date(a+c),v=new Date(0);return v.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),v.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),v}return d=ane(r.timezone),isNaN(d)?new Date(NaN):new Date(a+c+d)}var Ww={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ene=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tne=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nne=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ine(n){var i,t={},e=n.split(Ww.dateTimeDelimiter);if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],Ww.timeZoneDelimiter.test(t.date)&&(t.date=n.split(Ww.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){var r=Ww.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function rne(n,t){var e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};var r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:null===s?r:100*s,restDateString:n.slice((i[1]||i[2]).length)}}function sne(n,t){if(null===t)return new Date(NaN);var e=n.match(ene);if(!e)return new Date(NaN);var i=!!e[4],r=Rg(e[1]),s=Rg(e[2])-1,o=Rg(e[3]),a=Rg(e[4]),c=Rg(e[5])-1;if(i)return function hne(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}(0,a,c)?function lne(n,t,e){var i=new Date(0);i.setUTCFullYear(n,0,4);var s=7*(t-1)+e+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+s),i}(t,a,c):new Date(NaN);var d=new Date(0);return function une(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(cne[t]||(aH(n)?29:28))}(t,s,o)&&function dne(n,t){return t>=1&&t<=(aH(n)?366:365)}(t,r)?(d.setUTCFullYear(t,s,Math.max(r,o)),d):new Date(NaN)}function Rg(n){return n?parseInt(n):1}function one(n){var t=n.match(tne);if(!t)return NaN;var e=dk(t[1]),i=dk(t[2]),r=dk(t[3]);return function fne(n,t,e){return 24===n?0===t&&0===e:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}(e,i,r)?e*ck+6e4*i+1e3*r:NaN}function dk(n){return n&&parseFloat(n.replace(",","."))||0}function ane(n){if("Z"===n)return 0;var t=n.match(nne);if(!t)return 0;var e="+"===t[1]?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function pne(n,t){return t>=0&&t<=59}(0,r)?e*(i*ck+6e4*r):NaN}var cne=[31,null,31,30,31,30,31,31,30,31,30,31];function aH(n){return n%400==0||n%4==0&&n%100!=0}function $w(n){return($w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function lH(n){return Qn(1,arguments),n instanceof Date||"object"===$w(n)&&"[object Date]"===Object.prototype.toString.call(n)}function Gw(n){return(Gw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Si(n){Qn(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"===Gw(n)&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function hk(n){if(Qn(1,arguments),!lH(n)&&"number"!=typeof n)return!1;var t=Si(n);return!isNaN(Number(t))}function qw(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function cH(n){Qn(1,arguments);var t=Si(n);return t.setHours(0,0,0,0),t}function uH(n,t){Qn(2,arguments);var e=cH(n),i=cH(t),r=e.getTime()-qw(e),s=i.getTime()-qw(i);return Math.round((r-s)/864e5)}var gne=He(3028);function Un(n,t){for(var e=n<0?"-":"",i=Math.abs(n).toString();i.length<t;)i="0"+i;return e+i}function Yw(n,t){var e,i;Qn(1,arguments);var r=Si(n);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");var s=String(null!==(e=null==t?void 0:t.format)&&void 0!==e?e:"extended"),o=String(null!==(i=null==t?void 0:t.representation)&&void 0!==i?i:"complete");if("extended"!==s&&"basic"!==s)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",c="",d="extended"===s?"-":"",f="extended"===s?":":"";if("time"!==o){var v=Un(r.getDate(),2),x=Un(r.getMonth()+1,2),B=Un(r.getFullYear(),4);a="".concat(B).concat(d).concat(x).concat(d).concat(v)}if("date"!==o){var se=r.getTimezoneOffset();if(0!==se){var me=Math.abs(se),Oe=Un(Math.floor(me/60),2),Fe=Un(me%60,2),et=se<0?"+":"-";c="".concat(et).concat(Oe,":").concat(Fe)}else c="Z";var We=Un(r.getHours(),2),ot=Un(r.getMinutes(),2),Tt=Un(r.getSeconds(),2),Wt=""===a?"":"T",Sn=[We,ot,Tt].join(f);a="".concat(a).concat(Wt).concat(Sn).concat(c)}return a}function fk(n,t){Qn(2,arguments);var e=Si(n),i=Si(t),r=e.getTime()-i.getTime();return r<0?-1:r>0?1:r}class pk{constructor(t,e=[]){this.field=t,this.categories=[],this.categories=Rs.sortBy(e,i=>i).map(i=>({value:i,checked:!0}))}get checkedCategories(){return this.categories.filter(t=>t.checked)}get isActive(){return this.checkedCategories.length!==this.categories.length}get label(){if(this.checkedCategories.length!==this.categories.length)return this.checkedCategories.length.toString()}clear(){this.checkAllCategories()}checkAllCategories(){this.categories.forEach(t=>t.checked=!0)}uncheckAllCategories(){this.categories.forEach(t=>t.checked=!1)}getPredicate(){const t=this.checkedCategories;return t.length===this.categories.length?()=>!0:0===t.length?()=>!1:e=>t.some(i=>i.value===e[this.field])}}class dH{constructor(t,e,i){this.field=t,this.min=e,this.max=i}get isActive(){return void 0!==this.value&&!(()=>Array.isArray(this.value)&&this.min!==this.value[0]&&this.max!==this.value[1])()}get label(){if(void 0!==this.value)return"number"==typeof this.value?this.value.toString():Array.isArray(this.value)&&this.value.length>=2?`${this.value[0]} - ${this.value[1]}`:""}getPredicate(){if(void 0===this.value)return()=>!0;if("number"==typeof this.value)return e=>e[this.field]===this.value;const t=this.value;return e=>e[this.field]>=t[0]&&e[this.field]<=t[1]}clear(){this.value=void 0}}class Ig{constructor(t,e,i){this.field=t,this.min=e,this.max=i,this.isoFormatConfig={representation:"date"},this.fakeField=Ig.fakeDateFieldName(t)}static fakeDateFieldName(t){return`$_fakeDate.${t}`}static createFakeDateField(t,e,i){t[this.fakeDateFieldName(e)]=i}get isActive(){return void 0!==this.value&&!(()=>Array.isArray(this.value)&&this.min!==this.value[0]&&this.max!==this.value[1])()}get label(){if(void 0!==this.value)return Array.isArray(this.value)&&this.value.length>=2?`${Yw(this.value[0],this.isoFormatConfig)} - ${Yw(this.value[1],this.isoFormatConfig)}`:this.value instanceof Date?Yw(this.value,this.isoFormatConfig):""}getPredicate(){if(void 0===this.value)return()=>!0;if(this.value instanceof Date)return e=>0===fk(e[this.fakeField],this.value);const t=this.value;return e=>{const i=e[this.fakeField];return-1!==fk(i,t[0])&&1!==fk(i,t[1])}}clear(){this.value=void 0}}class hH{constructor(t,e){this.field=t,this.filter=e}}class fH{constructor(t,e){this.columns=t,this.datasource=e}get fields(){return this.columns.map(t=>t.field)}get anyActiveFilter(){return this.columns.some(t=>t.filter&&t.filter.isActive)}get filterRowCount(){return this.datasource.filteredData.length}get rowCount(){return this.datasource.data.length}updateFilter(){const t=this.columns.filter(e=>e.filter).map(e=>e.filter.getPredicate());this.datasource.filterPredicate=e=>t.every(i=>i(e)),this.datasource.filter="dummy"}clearFilter(){this.columns.forEach(t=>{var e;return null===(e=t.filter)||void 0===e?void 0:e.clear()}),this.updateFilter()}}let _ne=(()=>{class n{constructor(e){this.element=e,this.afterComponentInit=new bt}ngAfterViewInit(){setTimeout(()=>{this.afterComponentInit.emit()},10)}}return n.\u0275fac=function(e){return new(e||n)(R(yt))},n.\u0275dir=qe({type:n,selectors:[["","afterComponentInit",""]],outputs:{afterComponentInit:"afterComponentInit"}}),n})(),vne=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Ft(e)}get inset(){return this._inset}set inset(e){this._inset=Ft(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Yt("aria-orientation",i.vertical?"vertical":"horizontal"),Kt("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),n})(),bne=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[bn,bn]}),n})();const pH=["*"],mH='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',yne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],wne=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Cne=["text"];function Dne(n,t){if(1&n&&ft(0,"mat-pseudo-checkbox",5),2&n){const e=Qe();Pe("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const Sne=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Ane=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],Mne=Ql(Jl(class{})),Ene=Jl(class{}),gH=new lt("MatList"),xne=new lt("MatNavList");let kne=(()=>{class n extends Mne{constructor(e){super(),this._elementRef=e,this._stateChanges=new y,"action-list"===this._getListType()&&(e.nativeElement.classList.add("mat-action-list"),e.nativeElement.setAttribute("role","group"))}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(R(yt))},n.\u0275cmp=Ct({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[kt([{provide:gH,useExisting:n}]),_t,Zt],ngContentSelectors:pH,decls:1,vars:0,template:function(e,i){1&e&&(Ui(),Vn(0))},styles:[mH],encapsulation:2,changeDetection:0}),n})(),_H=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),vH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=qe({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),Tne=(()=>{class n extends Ene{constructor(e,i,r,s){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new y,this._disabled=!1,this._isInteractiveList=!!(r||s&&"action-list"===s._getListType()),this._list=r||s;const o=this._getHostElement();"button"===o.nodeName.toLowerCase()&&!o.hasAttribute("type")&&o.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ot(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Ft(e)}ngAfterContentInit(){HF(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(xne,8),R(gH,8))},n.\u0275cmp=Ct({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,_H,5),Dn(r,vH,5),Dn(r,KM,5)),2&e){let s;Dt(s=St())&&(i._avatar=s.first),Dt(s=St())&&(i._icon=s.first),Dt(s=St())&&(i._lines=s)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,i){2&e&&Kt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[_t],ngContentSelectors:wne,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,i){1&e&&(Ui(yne),Y(0,"span",0),ft(1,"span",1),Vn(2),Y(3,"span",2),Vn(4,1),ee(),Vn(5,2),ee()),2&e&&(be(1),Pe("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},dependencies:[ec],encapsulation:2,changeDetection:0}),n})();const Pne=Jl(class{}),Rne=Jl(class{}),Ine={provide:fs,useExisting:Pn(()=>mk),multi:!0};class One{constructor(t,e){this.source=t,this.options=e}}let bH=(()=>{class n extends Rne{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this.selectionList=r,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new bt,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=Ft(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=Ft(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){HF(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(Pn(()=>mk)))},n.\u0275cmp=Ct({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,r){if(1&e&&(Dn(r,_H,5),Dn(r,vH,5),Dn(r,KM,5)),2&e){let s;Dt(s=St())&&(i._avatar=s.first),Dt(s=St())&&(i._icon=s.first),Dt(s=St())&&(i._lines=s)}},viewQuery:function(e,i){if(1&e&&Hn(Cne,5),2&e){let r;Dt(r=St())&&(i._text=r.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&vt("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(Yt("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),Kt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[_t],ngContentSelectors:Ane,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(Ui(Sne),Y(0,"div",0),ft(1,"div",1),mt(2,Dne,1,2,"mat-pseudo-checkbox",2),Y(3,"div",3,4),Vn(5),ee(),Vn(6,1),ee()),2&e&&(Kt("mat-list-item-content-reverse","after"==i.checkboxPosition),be(1),Pe("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),be(1),Pe("ngIf",i.selectionList.multiple))},dependencies:[ec,B8,mr],encapsulation:2,changeDetection:0}),n})(),mk=(()=>{class n extends Pne{constructor(e,i,r){super(),this._element=e,this._changeDetector=i,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new bt,this.color="accent",this.compareWith=(s,o)=>s===o,this._disabled=!1,this.selectedOptions=new ry(this._multiple),this._tabIndex=-1,this._onChange=s=>{},this._destroyed=new y,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=Ft(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=Ft(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new ry(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new UM(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Ot(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(cs(null),Ot(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Ot(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(Ot(this._destroyed)).subscribe(e=>{var i;if("keyboard"===e||"program"===e){let r=0;for(let s=0;s<this.options.length;s++)if(null!==(i=this.options.get(s))&&void 0!==i&&i.selected){r=s;break}this._keyManager.setActiveItem(r)}})}ngOnChanges(e){const i=e.disableRipple,r=e.color;(i&&!i.firstChange||r&&!r.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(e){this._element.nativeElement.focus(e)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(e){this._keyManager.updateActiveItem(e)}_removeOptionFromList(e){const i=this._getOptionIndex(e);return i>-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,r=this._keyManager,s=r.activeItemIndex,o=va(e);switch(i){case 32:case 13:!o&&!r.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&va(e,"ctrlKey")&&!r.isTyping()){const a=this.options.some(c=>!c.disabled&&!c.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else r.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&r.activeItemIndex!==s&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new One(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const r=this.options.find(s=>!s.selected&&this.compareWith(s.value,i));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,r){const s=[];return this.options.forEach(o=>{(!i||!o.disabled)&&o._setSelected(e)&&s.push(o)}),s.length&&(this._reportValueChange(),r&&this._emitChangeEvent(s)),s}_isValidIndex(e){return e>=0&&e<this.options.length}_getOptionIndex(e){return this.options.toArray().indexOf(e)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Xn),R(ba))},n.\u0275cmp=Ct({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,r){if(1&e&&Dn(r,bH,5),2&e){let s;Dt(s=St())&&(i.options=s)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&vt("keydown",function(s){return i._keydown(s)}),2&e&&Yt("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[kt([Ine]),_t,Zt],ngContentSelectors:pH,decls:1,vars:0,template:function(e,i){1&e&&(Ui(),Vn(0))},styles:[mH],encapsulation:2,changeDetection:0}),n})(),Fne=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[zF,Xm,bn,qF,_a,zF,bn,qF,bne]}),n})(),yH=(()=>{class n{constructor(){this.defNumberFormat=new tM("de"),this.idFieldPredicates=[e=>e.toLowerCase().startsWith("id"),e=>e.indexOf("Id")>-1]}transform(e,...i){let r;return 1===i.length&&(r=i[0]),void 0!==r&&this.isIdField(r)||!(0,Rs.isNumber)(e)?e:this.defNumberFormat.transform(e)}isIdField(e){return this.idFieldPredicates.some(i=>i(e))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"formatIfNumber",type:n,pure:!0}),n})();function Lne(n,t){if(1&n){const e=ii();Y(0,"div",16)(1,"mat-form-field")(2,"mat-label"),ie(3,"Suche"),ee(),Y(4,"input",17),vt("ngModelChange",function(r){return zt(e),$t(Qe(4).searchText=r)})("ngModelChange",function(r){return zt(e),$t(Qe(4).search(r))}),ee()(),Y(5,"button",18),vt("click",function(){return zt(e),$t(Qe(4).clearSearch())}),Y(6,"mat-icon"),ie(7,"close"),ee()()()}if(2&n){const e=Qe(4);be(4),Pe("ngModel",e.searchText)}}function Nne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item",19)(1,"mat-checkbox",20),vt("change",function(r){return zt(e),$t(Qe(4).selectAllChanged(r))}),Y(2,"b")(3,"i"),ie(4,"Alle"),ee()()()()}if(2&n){const e=Qe(4);be(1),Pe("checked",e.tableCategoryFilter.checkedCategories.length===e.tableCategoryFilter.categories.length)("indeterminate",e.tableCategoryFilter.checkedCategories.length>0&&e.tableCategoryFilter.checkedCategories.length!==e.tableCategoryFilter.categories.length)}}function Vne(n,t){if(1&n&&(Y(0,"mat-list-item"),ie(1),ee()),2&n){const e=Qe(4);be(1),ci(" Keine Treffer f\xfcr '",e.searchText,"' ")}}function Bne(n,t){if(1&n&&(Y(0,"mat-list-option",21),ie(1),ui(2,"formatIfNumber"),ee()),2&n){const e=t.$implicit;Pe("value",e)("selected",e.checked),be(1),ci(" ",wi(2,3,e.value)," ")}}function Hne(n,t){if(1&n){const e=ii();Y(0,"div",10),mt(1,Lne,8,1,"div",11),Y(2,"mat-selection-list",12,13),vt("selectionChange",function(r){return zt(e),$t(Qe(3).onSelectionListChange(r))}),mt(4,Nne,5,2,"mat-list-item",14),mt(5,Vne,2,1,"mat-list-item",0),mt(6,Bne,3,5,"mat-list-option",15),ee()()}if(2&n){const e=Qe(3);let i;be(1),Pe("ngIf",e.searchEnabled),be(3),Pe("ngIf",!e.searchResult),be(1),Pe("ngIf",e.searchResult&&0===e.searchResult.length),be(1),Pe("ngForOf",null!==(i=e.searchResult)&&void 0!==i?i:e.tableCategoryFilter.categories)("ngForTrackBy",e.categoryValue)}}function zne(n,t){if(1&n){const e=ii();Y(0,"div",30)(1,"span",31),ie(2),ee(),Y(3,"mtx-slider",32,33),vt("ngModelChange",function(r){return zt(e),$t(Qe(5).changeNumberValue(r))}),ee(),Y(5,"span",34),ie(6),ee()()}if(2&n){const e=Qe(5);be(2),Yn(e.tableNumberFilter.min),be(1),Pe("min",e.tableNumberFilter.min)("max",e.tableNumberFilter.max)("ngModel",e.isValueNumberFilter?e.tableNumberFilter.value:e.tableNumberFilter.min),be(3),Yn(e.tableNumberFilter.max)}}function Une(n,t){if(1&n){const e=ii();Y(0,"mat-form-field",35)(1,"mat-label"),ie(2,"Wert"),ee(),Y(3,"input",36),vt("ngModelChange",function(r){return zt(e),$t(Qe(5).changeNumberValue(r))}),ee()()}if(2&n){const e=Qe(5);be(3),Pe("min",e.tableNumberFilter.min)("max",e.tableNumberFilter.max)("ngModel",e.tableNumberFilter.value)}}function jne(n,t){if(1&n&&(Y(0,"mat-list-item"),mt(1,zne,7,5,"div",28),mt(2,Une,4,3,"ng-template",null,29,Hl),ee()),2&n){const e=zi(3),i=Qe(4);be(1),Pe("ngIf",i.isSmallRange)("ngIfElse",e)}}const Wne=function(n,t){return[n,t]};function $ne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item")(1,"div",30)(2,"span",31),ie(3),ee(),Y(4,"mtx-slider",37,38),vt("ngModelChange",function(r){return zt(e),$t(Qe(4).changeNumberValue(r))}),ee(),Y(6,"span",34),ie(7),ee()()()}if(2&n){const e=Qe(4);be(3),Yn(e.tableNumberFilter.min),be(1),Pe("min",e.tableNumberFilter.min)("max",e.tableNumberFilter.max)("ngModel",e.isRangeNumberFilter?e.tableNumberFilter.value:function QR(n,t,e,i,r){return JR(ct(),Jr(),n,t,e,i,r)}(5,Wne,e.tableNumberFilter.min,e.tableNumberFilter.max)),be(3),Yn(e.tableNumberFilter.max)}}function Gne(n,t){if(1&n){const e=ii();dr(0),Y(1,"mat-list-item")(2,"mat-form-field",35)(3,"mat-label"),ie(4,"Von"),ee(),Y(5,"input",36,39),vt("ngModelChange",function(r){zt(e);const s=zi(12);return $t(Qe(4).changeNumberValue([r,s.valueAsNumber]))}),ee()()(),Y(7,"mat-list-item")(8,"mat-form-field",35)(9,"mat-label"),ie(10,"Bis"),ee(),Y(11,"input",36,40),vt("ngModelChange",function(r){zt(e);const s=zi(6);return $t(Qe(4).changeNumberValue([s.valueAsNumber,r]))}),ee()()(),hr()}if(2&n){const e=zi(6),i=zi(12),r=Qe(4);be(5),Pe("min",r.tableNumberFilter.min)("max",r.Math.max(r.tableNumberFilter.max,i.valueAsNumber))("ngModel",r.rangeNumberFilterValue[0]),be(6),Pe("min",r.Math.max(r.tableNumberFilter.min,e.valueAsNumber))("max",r.tableNumberFilter.max)("ngModel",r.rangeNumberFilterValue[1])}}function qne(n,t){if(1&n){const e=ii();Y(0,"div",22)(1,"mat-list",23)(2,"mat-list-item")(3,"mat-radio-button",24),vt("change",function(){return zt(e),$t(Qe(3).changeNumberValue())}),Y(4,"b")(5,"i"),ie(6,"Alle"),ee()()()(),Y(7,"mat-list-item")(8,"mat-radio-button",25,26),vt("change",function(){zt(e);const r=Qe(3);return $t(r.changeNumberValue(r.tableNumberFilter.min))}),ie(10),ee()(),mt(11,jne,4,2,"mat-list-item",0),Y(12,"mat-list-item")(13,"mat-radio-button",24,27),vt("change",function(){zt(e);const r=Qe(3);return $t(r.changeNumberValue([r.tableNumberFilter.min,r.tableNumberFilter.max]))}),ie(15),ee()(),mt(16,$ne,8,8,"mat-list-item",0),mt(17,Gne,13,6,"ng-container",0),ee()()}if(2&n){const e=Qe(3);be(3),Pe("checked",void 0===e.tableNumberFilter.value),be(5),Pe("checked",e.isValueNumberFilter),be(2),ci(" ","Wert"+(e.isValueNumberFilter?" ("+e.filter.label+")":"")," "),be(1),Pe("ngIf",e.isValueNumberFilter),be(2),Pe("checked",e.isRangeNumberFilter),be(2),ci(" ","Bereich"+(e.isRangeNumberFilter?" ("+e.filter.label+")":"")," "),be(1),Pe("ngIf",e.isRangeNumberFilter&&e.isSmallRange),be(1),Pe("ngIf",e.isRangeNumberFilter&&!e.isSmallRange)}}function Yne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item")(1,"mat-form-field",42)(2,"mat-label"),ie(3,"Datum w\xe4hlen"),ee(),Y(4,"input",43),vt("dateChange",function(r){return zt(e),$t(Qe(4).changeDateValue(r.value))}),ee(),ft(5,"mat-datepicker-toggle",44)(6,"mat-datepicker",null,45),ee()()}if(2&n){const e=zi(7),i=Qe(4);be(4),Pe("matDatepicker",e)("min",i.tableDateFilter.min)("max",i.tableDateFilter.max)("value",i.tableDateFilter.value),be(1),Pe("for",e)}}function Kne(n,t){if(1&n){const e=ii();Y(0,"mat-list-item")(1,"mat-form-field",42)(2,"mat-label"),ie(3,"Datumsbereich w\xe4hlen"),ee(),Y(4,"mat-date-range-input",46)(5,"input",47),vt("dateChange",function(r){return zt(e),$t(Qe(4).changeDateRange(0,r.value))}),ee(),Y(6,"input",48),vt("dateChange",function(r){return zt(e),$t(Qe(4).changeDateRange(1,r.value))}),ee()(),ft(7,"mat-datepicker-toggle",44)(8,"mat-date-range-picker",null,45),ee()()}if(2&n){const e=zi(9),i=Qe(4);be(4),Pe("rangePicker",e)("min",i.tableDateFilter.min)("max",i.tableDateFilter.max),be(1),Pe("value",i.rangeDateFilterValue[0]),be(1),Pe("value",i.rangeDateFilterValue[1]),be(1),Pe("for",e)}}function Xne(n,t){if(1&n){const e=ii();Y(0,"div",41)(1,"mat-list",23)(2,"mat-list-item")(3,"mat-radio-button",24),vt("change",function(){return zt(e),$t(Qe(3).changeDateValue())}),Y(4,"b")(5,"i"),ie(6,"Alle"),ee()()()(),Y(7,"mat-list-item")(8,"mat-radio-button",25,26),vt("change",function(){zt(e);const r=Qe(3);return $t(r.changeDateValue(r.tableDateFilter.min))}),ie(10," Wert "),ee()(),mt(11,Yne,8,5,"mat-list-item",0),Y(12,"mat-list-item")(13,"mat-radio-button",24,27),vt("change",function(){zt(e);const r=Qe(3);return $t(r.changeDateValue([r.tableDateFilter.min,r.tableDateFilter.max]))}),ie(15," Bereich "),ee()(),mt(16,Kne,10,6,"mat-list-item",0),ee()()}if(2&n){const e=Qe(3);be(3),Pe("checked",void 0===e.tableDateFilter.value),be(5),Pe("checked",e.isValueDateFilter),be(3),Pe("ngIf",e.isValueDateFilter),be(2),Pe("checked",e.isRangeDateFilter),be(3),Pe("ngIf",e.isRangeDateFilter)}}function Qne(n,t){if(1&n&&(Y(0,"div",6),mt(1,Hne,7,5,"div",7),mt(2,qne,18,8,"div",8),mt(3,Xne,17,5,"div",9),ee()),2&n){const e=Qe(2);be(1),Pe("ngIf",e.tableCategoryFilter),be(1),Pe("ngIf",e.tableNumberFilter),be(1),Pe("ngIf",e.tableDateFilter)}}function Zne(n,t){if(1&n){const e=ii();dr(0),Y(1,"button",1,2),vt("click",function(){zt(e);const r=Qe();return $t(r.isOpen=!r.isOpen)}),Y(3,"mat-icon",3),ie(4,"filter_list "),ee()(),mt(5,Qne,4,3,"ng-template",4,5,Hl),vt("overlayOutsideClick",function(r){zt(e);const s=zi(2),o=zi(6);return $t(Qe().onOverlayOutsideClick(r,s,o))}),hr()}if(2&n){const e=zi(2),i=Qe();be(3),Pe("color",i.filter.isActive&&"primary")("matBadge",i.filter.label?i.filter.label:"")("title",i.filter.label?i.filter.label:""),be(2),Pe("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",i.isOpen)("cdkConnectedOverlayScrollStrategy",i.scrollStrat)}}let Jne=(()=>{class n{constructor(e){this.overlay=e,this.onColumnFilterChanged=new bt,this.isOpen=!1,this.searchText="",this.Math=Math,this.scrollStrat=this.overlay.scrollStrategies.close()}get tableCategoryFilter(){return this.filter&&this.filter instanceof pk&&this.filter}get tableNumberFilter(){return this.filter&&this.filter instanceof dH&&this.filter}get tableDateFilter(){return this.filter&&this.filter instanceof Ig&&this.filter}ngOnInit(){}allParents(e){const i=[];let r=e;for(;r.parentElement;)i.push(r.parentElement),r=r.parentElement;return i}onOverlayOutsideClick(e,i,r){const s=e.target;s&&this.allParents(s).every(a=>a!==i.elementRef.nativeElement&&!a.classList.contains("mat-datepicker-popup"))&&(this.isOpen=!1)}categoryValue(e,i){return i.value}get searchEnabled(){return this.tableCategoryFilter&&this.tableCategoryFilter.categories.length>10}search(e){this.tableCategoryFilter&&(this.searchResult=this.tableCategoryFilter.categories.filter(i=>i.value.toLowerCase().indexOf(e.toLowerCase())>=0))}clearSearch(){this.searchText="",this.searchResult=void 0}selectAllChanged(e){console.log("all changed",e),this.tableCategoryFilter&&(e.checked?this.tableCategoryFilter.checkAllCategories():this.tableCategoryFilter.uncheckAllCategories(),this.onColumnFilterChanged.emit(this.tableCategoryFilter.getPredicate()))}onSelectionListChange(e){this.tableCategoryFilter&&(e.options.forEach(i=>i.value.checked=i.selected),this.onColumnFilterChanged.emit(this.tableCategoryFilter.getPredicate()))}get isValueNumberFilter(){return this.tableNumberFilter&&"number"==typeof this.tableNumberFilter.value}get isRangeNumberFilter(){return this.tableNumberFilter&&Array.isArray(this.tableNumberFilter.value)}get rangeNumberFilterValue(){return this.tableNumberFilter&&Array.isArray(this.tableNumberFilter.value)?this.tableNumberFilter.value:[0,0]}get isSmallRange(){return this.tableNumberFilter&&this.tableNumberFilter.max-this.tableNumberFilter.min<1e3}changeNumberValue(e){this.tableNumberFilter&&(this.tableNumberFilter.value=e,this.onColumnFilterChanged.emit(this.tableNumberFilter.getPredicate()))}get isValueDateFilter(){return this.tableDateFilter&&this.tableDateFilter.value instanceof Date}get isRangeDateFilter(){return this.tableDateFilter&&Array.isArray(this.tableDateFilter.value)}get rangeDateFilterValue(){return this.tableDateFilter&&Array.isArray(this.tableDateFilter.value)?this.tableDateFilter.value:[new Date,new Date]}changeDateValue(e){this.tableDateFilter&&(this.tableDateFilter.value=e,this.onColumnFilterChanged.emit(this.tableDateFilter.getPredicate()))}changeDateRange(e,i){this.tableDateFilter&&Array.isArray(this.tableDateFilter.value)&&(this.tableDateFilter.value=[0===e?i:this.tableDateFilter.value[0],1===e?i:this.tableDateFilter.value[1]],this.onColumnFilterChanged.emit(this.tableDateFilter.getPredicate()))}onDateChange(e,i){console.log("DATE CHANGE",e,i)}}return n.\u0275fac=function(e){return new(e||n)(R(Po))},n.\u0275cmp=Ct({type:n,selectors:[["app-csv-table-filter"]],inputs:{filter:"filter"},outputs:{onColumnFilterChanged:"onColumnFilterChanged"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-icon-button","","cdkOverlayOrigin","",1,"filter-trigger",3,"click"],["trigger","cdkOverlayOrigin"],[3,"color","matBadge","title"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayScrollStrategy","overlayOutsideClick"],["overlay","cdkConnectedOverlay"],[1,"filter-overlay","mat-elevation-z12"],["class","category-filter",4,"ngIf"],["class","number-filter",4,"ngIf"],["class","date-filter",4,"ngIf"],[1,"category-filter"],["class","search-field-wrapper",4,"ngIf"],[3,"selectionChange"],["list",""],["class","select-all-list-item",4,"ngIf"],[3,"value","selected",4,"ngFor","ngForOf","ngForTrackBy"],[1,"search-field-wrapper"],["matInput","","placeholder","Suchtext",3,"ngModel","ngModelChange"],["mat-icon-button","","title","Suche leeren",3,"click"],[1,"select-all-list-item"],["labelPosition","before",1,"select-all",3,"checked","indeterminate","change"],[3,"value","selected"],[1,"number-filter"],[1,"range-list"],[3,"checked","change"],["matLine","",3,"checked","change"],["valueRadio",""],["rangeRadio",""],["class","slider-min-max",4,"ngIf","ngIfElse"],["numericValue",""],[1,"slider-min-max"],[1,"min"],["thumbLabel","","matLine","",1,"slider",3,"min","max","ngModel","ngModelChange"],["valueSlider",""],[1,"max"],[1,"number-form-field"],["matInput","","type","number",3,"min","max","ngModel","ngModelChange"],["thumbLabel","",1,"slider",3,"min","max","ngModel","ngModelChange"],["rangeSlider",""],["inputMin",""],["inputMax",""],[1,"date-filter"],[1,"date-form-field"],["matInput","",3,"matDatepicker","min","max","value","dateChange"],["matSuffix","",3,"for"],["picker",""],[3,"rangePicker","min","max"],["matStartDate","","placeholder","Startdatum",3,"value","dateChange"],["matEndDate","","placeholder","Enddatum",3,"value","dateChange"]],template:function(e,i){1&e&&mt(0,Zne,7,6,"ng-container",0),2&e&&Pe("ngIf",i.filter)},dependencies:[zc,mr,tw,rx,k2,dx,ux,ix,kne,Tne,KM,mk,bH,cf,Gee,AJ,ik,kJ,PJ,BB,HB,RJ,tH,rl,xV,QB,b9,px,m9,vK,KN,Y9,yH]}),n})();const eie=["tableContainer"];function tie(n,t){if(1&n){const e=ii();Y(0,"th",14)(1,"div",15)(2,"div",16),ie(3),ee(),Y(4,"app-csv-table-filter",17),vt("onColumnFilterChanged",function(){return zt(e),$t(Qe(2).ngIf.updateFilter())}),ee()()()}if(2&n){const e=Qe().$implicit;be(3),Yn(e.field),be(1),Pe("filter",e.filter)}}function nie(n,t){if(1&n&&(Y(0,"td",18),ie(1),ui(2,"formatIfNumber"),ee()),2&n){const e=t.$implicit,i=Qe().$implicit;be(1),ci(" ",function iI(n,t,e,i){const r=n+22,s=ct(),o=Yi(s,r);return wm(s,r)?JR(s,Jr(),t,o.transform,e,i,o):o.transform(e,i)}(2,1,e[i.field],i.field)," ")}}function iie(n,t){1&n&&(dr(0,11),mt(1,tie,5,2,"th",12),mt(2,nie,3,4,"td",13),hr()),2&n&&Pe("matColumnDef",t.$implicit.field)}function rie(n,t){1&n&&ft(0,"tr",19)}function sie(n,t){1&n&&ft(0,"tr",20)}function oie(n,t){if(1&n){const e=ii();Y(0,"div",21),ie(1),ui(2,"number"),ui(3,"number"),Y(4,"button",22),vt("click",function(){return zt(e),$t(Qe().ngIf.clearFilter())}),Y(5,"mat-icon"),ie(6,"cancel"),ee()()()}if(2&n){const e=Qe().ngIf;be(1),lA(" Eintr\xe4ge gefiltert: ",wi(2,2,e.filterRowCount)," von ",wi(3,4,e.rowCount)," ")}}function aie(n,t){if(1&n){const e=ii();Y(0,"div",2)(1,"div",3,4)(3,"cdk-virtual-scroll-viewport",5)(4,"table",6),vt("afterComponentInit",function(){const s=zt(e).ngIf;return $t(Qe().afterTableInit(s))}),mt(5,iie,3,1,"ng-container",7),mt(6,rie,1,0,"tr",8),mt(7,sie,1,0,"tr",9),ee()()(),mt(8,oie,7,6,"div",10),ee()}if(2&n){const e=t.ngIf;be(3),Pe("footerEnabled",!0),be(1),Pe("dataSource",e.datasource),be(1),Pe("ngForOf",e.columns),be(1),Pe("matHeaderRowDef",e.fields),be(1),Pe("matRowDefColumns",e.fields),be(1),Pe("ngIf",e.anyActiveFilter)}}function lie(n,t){if(1&n&&(Y(0,"div",23)(1,"div",24),ft(2,"app-loading-indicator",25),ee()()),2&n){const e=Qe();be(2),Pe("text","Lade Vorschau f\xfcr '"+e.fileName+"'...")}}let cie=(()=>{class n{constructor(e){this.http=e,this.noParseFields=[],this.numberDefaults={min:Number.MAX_SAFE_INTEGER,max:Number.MIN_SAFE_INTEGER},this.dateDefaults={min:new Date(4e3,12,31),max:new Date(0)}}ngOnInit(){}ngOnChanges(e){e.csvUrl&&this.updateTableData()}ngAfterViewInit(){}updateTableData(){let e=new il;this.tableData$=this.parseCsv(this.csvUrl,e)}afterTableInit(e){this.sort&&e.datasource&&(e.datasource.sort=this.sort)}parseCsv(e,i){const r=new fH([],new iE);return e?this.http.get(e,{responseType:"text",headers:i,observe:"response"}).pipe(z(s=>{if(null!==s.body){const o=gne.parse(s.body,{header:!0,dynamicTyping:a=>!this.noParseFields.some(c=>c===a),skipEmptyLines:!0});if(o.meta.fields){const a=new iE(o.data);return this.sort&&(a.sort=this.sort),new fH(this.createColumns(o.meta.fields,o.data),a)}}return r})):At(r)}createColumns(e,i){if(i.length>999999)return e.map(s=>new hH(s));const r=Rs.reduce(i,(s,o,a)=>(Rs.toPairs(s).forEach(([c,d])=>{const f=o[c];if("string"==typeof f){const v=uk(f);hk(v)?(Ig.createFakeDateField(o,c,v),v<d.date.min&&(d.date.min=v),v>d.date.max&&(d.date.max=v)):d.category.add(f)}else"number"==typeof f?(f<d.number.min&&(d.number.min=f),f>d.number.max&&(d.number.max=f)):null==f&&(d.hasEmpty=!0)}),s),Rs.fromPairs(e.map(s=>[s,{category:new Set,number:Object.assign({},this.numberDefaults),date:Object.assign({},this.dateDefaults),hasEmpty:!1}])));return Rs.map(r,(s,o)=>{let a;if(s.category.size>0?a=new pk(o,[...s.category.values()]):s.number.min!==this.numberDefaults.min&&s.number.max!==this.numberDefaults.max?a=new dH(o,s.number.min,s.number.max):s.date.min!==this.dateDefaults.min&&s.date.max!==this.dateDefaults.max&&uH(s.date.max,s.date.min)>1&&(a=new Ig(o,s.date.min,s.date.max)),[s.category.size>0,s.number.min!==this.numberDefaults.min&&s.number.max!==this.numberDefaults.max,s.date.min!==this.dateDefaults.min&&s.date.max!==this.dateDefaults.max&&uH(s.date.max,s.date.min)>1].filter(f=>f).length>1){console.warn(`More than one value type detected in field '${o}'.`);const f=Rs.uniqBy(i,o).map(v=>v[o]);a=new pk(o,f)}return new hH(o,a)})}}return n.\u0275fac=function(e){return new(e||n)(R(nd))},n.\u0275cmp=Ct({type:n,selectors:[["app-csv-table"]],viewQuery:function(e,i){if(1&e&&(Hn(rk,5),Hn(eie,5)),2&e){let r;Dt(r=St())&&(i.sort=r.first),Dt(r=St())&&(i.tableContainer=r.first)}},inputs:{csvUrl:"csvUrl",fileName:"fileName",noParseFields:"noParseFields"},features:[Zt],decls:4,vars:4,consts:[["class","container",4,"ngIf","ngIfElse"],["loading",""],[1,"container"],[1,"table-container"],["tableContainer",""],["tvsItemSize","32","headerHeight","56",2,"height","calc(100%)",3,"footerEnabled"],["mat-table","","matSort","",3,"dataSource","afterComponentInit"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","footer",4,"ngIf"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],[1,"header-container"],["mat-sort-header","",1,"title"],[3,"filter","onColumnFilterChanged"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"footer"],["mat-icon-button","","title","Filter enternen",3,"click"],[1,"loading-container"],[1,"loading-indicator"],[3,"text"]],template:function(e,i){if(1&e&&(mt(0,aie,9,6,"div",0),ui(1,"async"),mt(2,lie,3,1,"ng-template",null,1,Hl)),2&e){const r=zi(3);Pe("ngIf",wi(1,2,i.tableData$))("ngIfElse",r)}},dependencies:[zc,mr,cf,rl,QM,JM,YF,eE,ZM,KF,tE,nE,XF,QF,CG,rk,qJ,i6,Pg,_ne,Jne,Ga,tM,yH],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;padding:10px;box-sizing:border-box}.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;max-width:100%}.loading-container[_ngcontent-%COMP%] .loading-indicator[_ngcontent-%COMP%]{max-width:100%}.loading-container[_ngcontent-%COMP%] .lfs-indicator[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}.lfs-cell[_ngcontent-%COMP%]{background-color:teal}.table-container[_ngcontent-%COMP%]{width:100%;max-width:100%;height:100%;max-height:100%}.header-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;height:100%}.header-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:14px}.header-container[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{flex:0 0 auto}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{font-size:12px;line-height:1;overflow:hidden;padding:5px;text-align:left;white-space:nowrap;border-right:1px solid rgba(0,0,0,.12)}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type{border-right:none}tr.mat-row[_ngcontent-%COMP%]{height:32px}.filter-form-field[_ngcontent-%COMP%]{width:100%}.footer[_ngcontent-%COMP%]{text-align:right}"]}),n})();const Kw=new lt("HIGHLIGHT_OPTIONS");let gk;let fie=(()=>{class n{constructor(e,i,r){var s;this.doc=e,this._options=r,this._ready=new gr(null),this.ready=this._ready.asObservable().pipe(ji(o=>!!o),z(o=>o),Ci(1)),$l(i)&&(e.defaultView.hljs?this._ready.next(e.defaultView.hljs):this._loadLibrary().pipe(ds(o=>this._options&&this._options.lineNumbersLoader?(e.defaultView.hljs=o,this.loadLineNumbers().pipe(_i(()=>this._ready.next(o)))):(this._ready.next(o),Ns)),tl(o=>(console.error("[HLJS] ",o),Ns))).subscribe(),null!==(s=this._options)&&void 0!==s&&s.themePath&&this.loadTheme(this._options.themePath))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return ya(()=>"The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return ya(()=>"The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return ya(()=>"The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return ya(()=>"The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(ds(e=>this._loadLanguages(e)))}return ya(()=>"Highlight.js library was not imported!")}_loadLanguages(e){return function uie(...n){const t=Cf(n),e=rH(n);return e.length?new _e(i=>{let r=e.map(()=>[]),s=e.map(()=>!1);i.add(()=>{r=s=null});for(let o=0;!i.closed&&o<e.length;o++)Wn(e[o]).subscribe(N(i,a=>{if(r[o].push(a),r.every(c=>c.length)){const c=r.map(d=>d.shift());i.next(t?t(...c):c),r.some((d,f)=>!d.length&&s[f])&&i.complete()}},()=>{s[o]=!0,!r[o].length&&i.complete()}));return()=>{r=s=null}}):Ns}(...Object.entries(this._options.languages).map(([r,s])=>Xw(s()).pipe(_i(o=>e.registerLanguage(r,o))))).pipe(z(()=>e))}loadCoreLibrary(){return Xw(this._options.coreLibraryLoader())}loadFullLibrary(){return Xw(this._options.fullLibraryLoader())}loadLineNumbers(){return Xw(this._options.lineNumbersLoader())}setTheme(e){this._themeLinkElement.href=e}loadTheme(e){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=e,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}}return n.\u0275fac=function(e){return new(e||n)(Re(Qt),Re(Gh),Re(Kw,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Xw=n=>pi(n).pipe(ji(t=>!!t&&!!t.default),z(t=>t.default));let pie=(()=>{class n{constructor(e,i){this._loader=e,this._hljs=null,e.ready.subscribe(r=>{this._hljs=r,i&&i.config&&(r.configure(i.config),r.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(e,{language:i,ignoreIllegals:r}){return this._loader.ready.pipe(z(s=>s.highlight(e,{language:i,ignoreIllegals:r})))}highlightAuto(e,i){return this._loader.ready.pipe(z(r=>r.highlightAuto(e,i)))}highlightElement(e){return this._loader.ready.pipe(z(i=>i.highlightElement(e)))}highlightAll(){return this._loader.ready.pipe(z(e=>e.highlightAll()))}configure(e){return this._loader.ready.pipe(z(i=>i.configure(e)))}registerLanguage(e,i){return this._loader.ready.pipe(_i(r=>r.registerLanguage(e,i)))}unregisterLanguage(e){return this._loader.ready.pipe(_i(i=>i.unregisterLanguage(e)))}registerAliases(e,{languageName:i}){return this._loader.ready.pipe(_i(r=>r.registerAliases(e,{languageName:i})))}listLanguages(){return this._loader.ready.pipe(z(e=>e.listLanguages()))}getLanguage(e){return this._loader.ready.pipe(z(i=>i.getLanguage(e)))}safeMode(){return this._loader.ready.pipe(z(e=>e.safeMode()))}debugMode(){return this._loader.ready.pipe(z(e=>e.debugMode()))}lineNumbersBlock(e){return this._loader.ready.pipe(ji(i=>!!i.lineNumbersBlock),_i(i=>i.lineNumbersBlock(e)))}}return n.\u0275fac=function(e){return new(e||n)(Re(fie),Re(Kw,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mie=(()=>{class n{constructor(e,i,r,s){this._hljs=i,this._sanitizer=r,this._options=s,this.highlighted=new bt,this._nativeElement=e.nativeElement}ngOnChanges(e){var i;null!==(null===(i=null==e?void 0:e.code)||void 0===i?void 0:i.currentValue)&&e.code.currentValue!==e.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(e,i){this.setTextContent(e),this._hljs.highlightAuto(e,i).subscribe(r=>{this.setInnerHTML(null==r?void 0:r.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(r)})}addLineNumbers(){this.destroyLineNumbersObserver(),Xb.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(e){Xb.schedule(()=>this._nativeElement.textContent=e)}setInnerHTML(e){Xb.schedule(()=>this._nativeElement.innerHTML=function hie(n){var t;return(null===(t=function die(){var n;if(!gk)try{gk=null===(n=null==window?void 0:window.trustedTypes)||void 0===n?void 0:n.createPolicy("ngx-highlightjs",{createHTML:t=>t})}catch(t){}return gk}())||void 0===t?void 0:t.createHTML(n))||n}(this._sanitizer.sanitize(jn.HTML,e)||""))}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(pie),R(Yu),R(Kw,8))},n.\u0275dir=qe({type:n,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(e,i){2&e&&Kt("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[Zt]}),n})(),gie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({}),n})();function _ie(n,t){if(1&n&&(Y(0,"pre"),ft(1,"code",2),ee()),2&n){const e=t.ngIf;be(1),Pe("highlight",e)}}function vie(n,t){1&n&&ft(0,"app-loading-indicator",3)}let bie=(()=>{class n{constructor(e){this.http=e,this.jsonUrl="",this.jsonStr$=At(null)}ngOnChanges(e){e.jsonUrl&&this.updateJson()}updateJson(){this.jsonStr$=this.jsonUrl?this.http.get(this.jsonUrl,{responseType:"text"}):At(null)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(R(nd))},n.\u0275cmp=Ct({type:n,selectors:[["app-json-preview"]],inputs:{jsonUrl:"jsonUrl"},features:[Zt],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"highlight"],["text","Lade Vorschau..."]],template:function(e,i){if(1&e&&(mt(0,_ie,2,1,"pre",0),ui(1,"async"),mt(2,vie,1,0,"ng-template",null,1,Hl)),2&e){const r=zi(3);Pe("ngIf",wi(1,2,i.jsonStr$))("ngIfElse",r)}},dependencies:[mr,mie,Pg,Ga],styles:["[_nghost-%COMP%]{display:flex;height:100%;width:100%}pre[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;margin:0}code[_ngcontent-%COMP%]{width:100%;white-space:pre-wrap}"]}),n})(),wH=(()=>{class n{transform(e,...i){switch(e){case"csv":case"json":return"leaderboard";case"md":case"pdf":return"text_snippet";case"xz":return"compress"}return"note"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"extToIconname",type:n,pure:!0}),n})(),CH=(()=>{class n{transform(e,...i){const r=e.split(".").filter(s=>s);return Rs.tail(r).join(".")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"datasourceContentExt",type:n,pure:!0}),n})();function yie(n,t){1&n&&(Y(0,"span",13),ie(1,"LFS"),ee())}function wie(n,t){if(1&n&&(Y(0,"div",14)(1,"div",15)(2,"div",16),ie(3,"Die Vorschau f\xfcr LFS-Dateien ist leider nicht m\xf6glich"),ee(),Y(4,"mat-icon",17),ie(5,"sentiment_very_dissatisfied"),ee()(),Y(6,"p",18),ie(7," Bei der Datei "),Y(8,"b")(9,"i"),ie(10),ee()(),ie(11," handelt es sich um eine "),Y(12,"a",19),ie(13,"Large File System (LFS)"),ee(),ie(14," Datei und kann leider nicht in der Vorschau angezeigt werden, da diese Datei eventuell sehr gro\xdf ist und zum anzeigen komplett heruntergeladen werden muss. "),ee(),Y(15,"p",20),ie(16," Sie k\xf6nnen sich die Daten in einem seperaten Tab ansehen, indem Sie auf diesen "),Y(17,"a",21),ie(18,"Link"),ee(),ie(19," klicken. "),ee()()),2&n){const e=Qe(2);be(10),Yn(e.content.name),be(7),Pe("href",e.content.visitUrl,zs)}}function Cie(n,t){if(1&n&&(dr(0),ft(1,"app-markdown-preview",26),hr()),2&n){const e=Qe(4);be(1),Pe("baseUrl",e.baseUrl)("url",e.content.previewUrl)}}function Die(n,t){if(1&n&&(dr(0),ft(1,"app-pdf-preview",27),hr()),2&n){const e=Qe(4);be(1),Pe("pdfSrc",e.content.previewUrl)}}function Sie(n,t){if(1&n&&(dr(0),ft(1,"app-csv-table",28),hr()),2&n){const e=Qe(4);be(1),Pe("csvUrl",e.content.previewUrl)("fileName",e.content.name)("noParseFields",e.fieldsNotToParse)}}function Aie(n,t){if(1&n&&(dr(0),ft(1,"app-image-preview",29),hr()),2&n){const e=Qe(4);be(1),Pe("imgUrl",e.content.previewUrl)}}function Mie(n,t){if(1&n&&(dr(0),ft(1,"app-image-preview",29),hr()),2&n){const e=Qe(4);be(1),Pe("imgUrl",e.content.previewUrl)}}function Eie(n,t){if(1&n&&(dr(0),ft(1,"app-image-preview",29),hr()),2&n){const e=Qe(4);be(1),Pe("imgUrl",e.content.previewUrl)}}function xie(n,t){if(1&n&&(dr(0),ft(1,"app-json-preview",30),hr()),2&n){const e=Qe(4);be(1),Pe("jsonUrl",e.content.previewUrl)}}function kie(n,t){if(1&n&&(Y(0,"div",31)(1,"div",15)(2,"div",16),ie(3,"Vorschau leider nicht m\xf6glich"),ee(),Y(4,"mat-icon",17),ie(5,"sentiment_very_dissatisfied"),ee()(),Y(6,"p",18),ie(7," Die Datei "),Y(8,"b")(9,"i"),ie(10),ee()(),ie(11," kann nicht angezeigt werden, da f\xfcr die Endung "),Y(12,"b")(13,"i"),ie(14),ee()(),ie(15," keine geeignete Vorschau verf\xfcgbar ist. "),ee(),Y(16,"p",20),ie(17," Sie k\xf6nnen sich die Daten in einem seperaten Tab ansehen, indem Sie auf diesen "),Y(18,"a",21),ie(19,"Link"),ee(),ie(20," klicken. "),ee()()),2&n){const e=Qe(4);be(10),Yn(e.content.name),be(4),Yn(e.contentPathExt),be(4),Pe("href",e.content.visitUrl,zs)}}function Tie(n,t){1&n&&(dr(0,23),mt(1,Cie,2,2,"ng-container",24),mt(2,Die,2,1,"ng-container",24),mt(3,Sie,2,3,"ng-container",24),mt(4,Aie,2,1,"ng-container",24),mt(5,Mie,2,1,"ng-container",24),mt(6,Eie,2,1,"ng-container",24),mt(7,xie,2,1,"ng-container",24),mt(8,kie,21,3,"div",25),hr()),2&n&&(Pe("ngSwitch",Qe(3).contentPathExt),be(1),Pe("ngSwitchCase","md"),be(1),Pe("ngSwitchCase","pdf"),be(1),Pe("ngSwitchCase","csv"),be(1),Pe("ngSwitchCase","jpg"),be(1),Pe("ngSwitchCase","jpeg"),be(1),Pe("ngSwitchCase","png"),be(1),Pe("ngSwitchCase","json"))}function Pie(n,t){if(1&n&&(dr(0),mt(1,Tie,9,8,"ng-container",22),hr()),2&n){const e=Qe(2);be(1),Pe("ngIf",e.contentPathExt&&"file"===e.content.$type)}}function Rie(n,t){if(1&n){const e=ii();Y(0,"div",1)(1,"mat-toolbar",2)(2,"span",3)(3,"mat-icon",4),ie(4),ui(5,"extToIconname"),ui(6,"datasourceContentExt"),ee(),Y(7,"span",5),ie(8),ee(),mt(9,yie,2,0,"span",6),ee(),Y(10,"a",7),ie(11," Quelle ansehen "),ee(),Y(12,"a",8),vt("click",function(){zt(e);const r=Qe();return $t(r.startDownload(r.content))}),Y(13,"mat-icon"),ie(14,"file_download"),ee(),ie(15," Download "),ee(),Y(16,"button",9),vt("click",function(){return zt(e),$t(Qe().doClose())}),Y(17,"mat-icon"),ie(18,"close"),ee()()(),Y(19,"div",10),mt(20,wie,20,2,"div",11),mt(21,Pie,2,1,"ng-container",12),ee()()}if(2&n){const e=Qe();be(4),ci(" ",wi(5,7,wi(6,9,e.content.name))," "),be(3),Pe("title",e.content.name),be(1),Yn(e.content.name),be(1),Pe("ngIf",e.content.lfs),be(1),Pe("href",e.content.visitUrl,zs),be(10),Pe("ngIf",e.content.lfs),be(1),Pe("ngIf",!e.content.lfs)}}let Iie=(()=>{class n{constructor(e){this.downloadService=e,this.close=new bt(!0),this.fieldsNotToParse=[]}ngOnInit(){}ngOnChanges(e){this.update()}update(){var e;this.contentPathExt=Rs.last(null===(e=this.content)||void 0===e?void 0:e.path.split(".")),this.baseUrl=this.datasource?`https://raw.githubusercontent.com/robert-koch-institut/${this.datasource.id}/${this.datasource.branch}`:void 0,this.fieldsNotToParse=Fte.filter(i=>{let r=!0;return this.datasource&&i.hasOwnProperty("datasource")&&(r=this.datasource.id===i.datasource),this.content&&i.hasOwnProperty("filename")&&(r=r&&this.content.path===i.filename),r}).map(i=>i.field)}startDownload(e){this.downloadService.download(e)}doClose(){this.close.emit()}}return n.\u0275fac=function(e){return new(e||n)(R(sH))},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-content-preview"]],inputs:{datasource:"datasource",content:"content"},outputs:{close:"close"},features:[Zt],decls:1,vars:1,consts:[["class","datasource-content-preview-component mat-elevation-z9",4,"ngIf"],[1,"datasource-content-preview-component","mat-elevation-z9"],["color","accent",1,"header"],[1,"title"],[1,"icon"],[1,"text",3,"title"],["class","lfs",4,"ngIf"],["mat-button","","target","_blank",1,"source-button",3,"href"],["mat-button","",1,"download-button",3,"click"],["mat-icon-button","",1,"close-button",3,"click"],[1,"preview-container"],["class","lfs-info-container no-preview-available",4,"ngIf"],[4,"ngIf"],[1,"lfs"],[1,"lfs-info-container","no-preview-available"],[1,"title","mat-headline"],[1,"text"],[1,"icon","sad-face"],[1,"hint","mat-hint"],["href","https://git-lfs.github.com/","target","_blank"],[1,"visit-link","mat-hint"],["target","_blank",3,"href"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-preview-available",4,"ngSwitchDefault"],[3,"baseUrl","url"],[3,"pdfSrc"],[3,"csvUrl","fileName","noParseFields"],[3,"imgUrl"],[3,"jsonUrl"],[1,"no-preview-available"]],template:function(e,i){1&e&&mt(0,Rie,22,11,"div",0),2&e&&Pe("ngIf",i.content&&"file"===i.content.$type)},dependencies:[mr,qu,xm,SO,cf,rl,VE,jK,Hte,Ute,qte,cie,bie,wH,CH],changeDetection:0}),n})(),Oie=(()=>{class n{constructor(e,i,r){this.overlay=e,this.document=i,this.rendererFactory=r,this.renderer=this.rendererFactory.createRenderer(null,null)}showContentPreview(e,i){this.showPreview(e,i)}showPreview(e,i){if(!this.previeWRef){const r=this.overlay.position().global().centerHorizontally().centerVertically(),s=this.overlay.create({positionStrategy:r,hasBackdrop:!0,panelClass:"overlay-dialog-panel",scrollStrategy:this.overlay.scrollStrategies.block(),disposeOnNavigation:!0}),o=new sd(Iie);this.previeWRef=s.attach(o),this.renderer.addClass(this.document.body,"noScroll");const a=function Ite(...n){return 1===(n=rH(n)).length?Wn(n[0]):new _e(function Ote(n){return t=>{let e=[];for(let i=0;e&&!t.closed&&i<n.length;i++)e.push(Wn(n[i]).subscribe(N(t,r=>{if(e){for(let s=0;s<e.length;s++)s!==i&&e[s].unsubscribe();e=null}t.next(r)})))}}(n))}([s.backdropClick(),this.previeWRef.instance.close.asObservable()]).subscribe(()=>{s.dispose(),this.previeWRef=void 0,this.renderer.removeClass(this.document.body,"noScroll"),setTimeout(()=>a.unsubscribe())})}this.previeWRef.instance.content=i,this.previeWRef.instance.datasource=e,this.previeWRef.instance.update()}}return n.\u0275fac=function(e){return new(e||n)(Re(Po),Re(Qt),Re(Ol))},n.\u0275prov=dt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fie=(()=>{class n{transform(e,...i){const r=e.split(".").filter(o=>o);return(Rs.head(r)||"").split("_").join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"filenameBeautify",type:n,pure:!0}),n})(),Lie=(()=>{class n{transform(e,...i){const r=0===e?0:Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(0)+" "+["B","kB","MB","GB","TB"][r]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"fileSize",type:n,pure:!0}),n})();function Nie(n,t){if(1&n){const e=ii();Y(0,"mat-tree-node",4)(1,"div",5)(2,"div",6)(3,"div",7),vt("click",function(){const s=zt(e).$implicit;return $t(Qe().showPreview(s))}),Y(4,"mat-icon"),ie(5),ui(6,"extToIconname"),ui(7,"datasourceContentExt"),ee()(),Y(8,"span",8),vt("click",function(){const s=zt(e).$implicit;return $t(Qe().showPreview(s))}),ie(9),ui(10,"filenameBeautify"),ee(),Y(11,"div",9),vt("click",function(){const s=zt(e).$implicit;return $t(Qe().showPreview(s))}),ie(12),ui(13,"uppercase"),ui(14,"datasourceContentExt"),ee(),Y(15,"div",10),ui(16,"fileSize"),ie(17),ui(18,"fileSize"),ee(),Y(19,"a",11),vt("click",function(){const s=zt(e).$implicit;return $t(Qe().startDownload(s))}),ie(20," Download "),ee()(),Y(21,"div",12),ft(22,"mat-divider"),ee()()()}if(2&n){const e=t.$implicit;be(5),ci(" ",wi(6,6,wi(7,8,e.name))," "),be(3),Pe("title",e.name),be(1),Yn(wi(10,10,e.name)),be(3),ci(" ",wi(13,12,wi(14,14,e.name))," "),be(3),Pe("title",wi(16,16,e.size)),be(2),ci(" ",wi(18,18,e.size)," ")}}function Vie(n,t){if(1&n){const e=ii();Y(0,"mat-nested-tree-node")(1,"div",13)(2,"div",14),vt("click",function(){const s=zt(e).$implicit;return $t(Qe().treeControl.toggle(s))}),Y(3,"div",15)(4,"mat-icon"),ie(5),ee()(),Y(6,"span",16),ie(7),ee()(),Y(8,"div",12),ft(9,"mat-divider"),ee(),Y(10,"div",17),oo(11,18),ee()()()}if(2&n){const e=t.$implicit,i=Qe();be(5),ci(" ",i.treeControl.isExpanded(e)?"expand_more":"chevron_right"," "),be(1),Pe("title",e.name),be(1),Yn(e.name),be(3),Kt("invisible",!i.treeControl.isExpanded(e))}}let Bie=(()=>{class n{constructor(e,i){this.overlayService=e,this.downloadService=i,this.treeControl=new mV(r=>"folder"===r.$type?iH.orderContent(r.content):void 0),this.treeDatasource=new H9,this.trackBy=(r,s)=>s.path,this.hasChild=(r,s)=>"folder"===s.$type&&s.content.length>0}ngOnChanges(e){e.datasource&&(this.treeDatasource.data=void 0===this.datasource?[]:iH.orderContent(this.datasource.content))}ngOnInit(){}startDownload(e){this.downloadService.download(e)}showPreview(e){this.datasource&&this.overlayService.showContentPreview(this.datasource,e)}trackByPath(e,i){return i.path}}return n.\u0275fac=function(e){return new(e||n)(R(Oie),R(sH))},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-content-list"]],inputs:{datasource:"datasource"},features:[Zt],decls:4,vars:4,consts:[[1,"tree-container"],[1,"content-tree",3,"dataSource","treeControl","trackBy"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"tree-item","file-tree-item"],[1,"tree-item-content"],[1,"icon-wrapper",3,"click"],[1,"file-name","file-item-element",3,"title","click"],[1,"file-extention","file-item-element",3,"click"],[1,"file-size","file-item-element",3,"title"],["mat-raised-button","","color","accent","download","",1,"file-download",3,"click"],[1,"tree-item-divider"],[1,"tree-item","folder-tree-item"],[1,"tree-item-content",3,"click"],[1,"icon-wrapper"],[1,"folder-name",3,"title"],["role","group",1,"tree-item-childs"],["matTreeNodeOutlet",""]],template:function(e,i){1&e&&(Y(0,"div",0)(1,"mat-tree",1),mt(2,Nie,23,20,"mat-tree-node",2),mt(3,Vie,12,5,"mat-nested-tree-node",3),ee()()),2&e&&(be(1),Pe("dataSource",i.treeDatasource)("treeControl",i.treeControl)("trackBy",i.trackBy),be(2),Pe("matTreeNodeDefWhen",i.hasChild))},dependencies:[vne,cf,bV,vV,wV,yV,_V,pw,VE,EO,wH,CH,Fie,Lie],styles:['.tree-container[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.content-tree[_ngcontent-%COMP%]{background-color:unset;min-width:440px}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;cursor:pointer}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:48px;width:100%}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-content[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{padding:0;min-width:0;margin-right:1em;flex-shrink:0;text-align:center;height:24px;width:24px}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] > .tree-item-content[_ngcontent-%COMP%]:hover > .file-item-element[_ngcontent-%COMP%]{text-decoration:underline}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] > .tree-item-content[_ngcontent-%COMP%]:hover > .folder-name[_ngcontent-%COMP%]{text-decoration:underline}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-divider[_ngcontent-%COMP%]{position:relative;left:0;width:unset}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-childs[_ngcontent-%COMP%]{padding-left:40px}.content-tree[_ngcontent-%COMP%] .tree-item[_ngcontent-%COMP%] .tree-item-childs.invisible[_ngcontent-%COMP%]{display:none}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-item-element[_ngcontent-%COMP%]{margin-right:1em}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-lfs-mark[_ngcontent-%COMP%]{color:teal}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-size[_ngcontent-%COMP%]{flex:0 0 55px;text-align:right}.content-tree[_ngcontent-%COMP%] .tree-item.file-tree-item[_ngcontent-%COMP%] .file-download[_ngcontent-%COMP%]{width:125px}.content-tree[_ngcontent-%COMP%] .tree-item.folder-tree-item[_ngcontent-%COMP%] .folder-name[_ngcontent-%COMP%]{flex:1;cursor:pointer;overflow:hidden;text-overflow:ellipsis} .content-tree mat-tree-node.mat-tree-node[aria-level="1"]:last-child .tree-item mat-divider{display:none}']}),n})(),Hie=(()=>{class n{constructor(){this.datePipe=new eM("de"),this.citeString="",this.tooltipMessage="Zitierangaben in Zwischenablage kopiert"}ngOnChanges(e){e.datasource&&(this.citeString=this.createCiteString())}ngOnInit(){}showTooltip(e){e.disabled=!1,e.show(),setTimeout(()=>{e.hide(),e.disabled=!0},2e3)}createCiteString(){if(!this.datasource)return"";let e="";return e=Rs.reduce(this.datasource.authors,(i,r,s,o)=>i+(0===s?r:s===o.length-1?` und ${r}`:`, ${r}`),""),`${e} (${this.datePipe.transform(this.datasource.lastUpdated,"yyyy")}): ${this.datasource.name}, Berlin:Zenodo. DOI: ${this.datasource.doi}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-cite"]],inputs:{datasource:"datasource"},features:[Zt],decls:11,vars:5,consts:[[1,"cite-comp-container"],[1,"title-row"],["id","cite",1,"mat-subheading-2"],["mat-icon-button","","matTooltipDisabled","",1,"copy-button","subheading-2-fontsize",3,"matTooltip","cdkCopyToClipboard","cdkCopyToClipboardCopied"],["btnTooltip","matTooltip"],["matTooltipDisabled","",1,"cite-string",3,"matTooltip","cdkCopyToClipboard","cdkCopyToClipboardCopied"],["stringTooltip","matTooltip"]],template:function(e,i){if(1&e){const r=ii();Y(0,"div",0)(1,"div",1)(2,"div",2),ie(3,"Zitieren "),ee(),Y(4,"button",3,4),vt("cdkCopyToClipboardCopied",function(){zt(r);const o=zi(5);return $t(i.showTooltip(o))}),Y(6,"mat-icon"),ie(7,"content_copy"),ee()()(),Y(8,"p",5,6),vt("cdkCopyToClipboardCopied",function(){zt(r);const o=zi(9);return $t(i.showTooltip(o))}),ie(10),ee()()}2&e&&(be(4),Pe("matTooltip",i.tooltipMessage)("cdkCopyToClipboard",i.citeString),be(4),Pe("matTooltip",i.tooltipMessage)("cdkCopyToClipboard",i.citeString),be(2),Yn(i.citeString))},dependencies:[cf,rl,NJ,nte]}),n})();function zie(n,t){if(1&n&&(Y(0,"mat-chip-list")(1,"mat-chip",4)(2,"a",5),ie(3),ee()()()),2&n){const e=Qe(2);be(2),Pe("href",e.licenceUrl,zs),be(1),Yn(e.datasource.licence)}}function Uie(n,t){if(1&n&&(Y(0,"div",2),mt(1,zie,4,2,"mat-chip-list",3),ee()),2&n){const e=Qe(),i=zi(2);be(1),Pe("ngIf","small"===e.mode)("ngIfElse",i)}}function jie(n,t){1&n&&(Y(0,"a",9)(1,"div",10),ie(2,"Creative Commons Namensnennung 4.0 International"),ee()()),2&n&&Pe("href",Qe(2).licenceUrl,zs)}function Wie(n,t){if(1&n&&(Y(0,"div",6),ie(1,"Lizenz"),ee(),Y(2,"div",7),mt(3,jie,3,1,"a",8),ee()),2&n){const e=Qe();be(3),Pe("ngIf",e.datasource&&"CC-BY-4.0"===e.datasource.licence)}}let $ie=(()=>{class n{constructor(){this.mode="small",this.licenceUrl="#",this.licenceUrlMap=new Map([["cc-by-4.0","https://creativecommons.org/licenses/by/4.0/deed.de"]])}ngOnChanges(e){e.datasource&&this.updateLicenceUrl()}updateLicenceUrl(){let e="#";if(this.datasource){const i=this.datasource.licence.toLowerCase();this.licenceUrlMap.has(i)&&(e=this.licenceUrlMap.get(i))}this.licenceUrl=e}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-licence"]],inputs:{datasource:"datasource",mode:"mode"},features:[Zt],decls:3,vars:1,consts:[["class","datasource-licence",4,"ngIf"],["largeLicence",""],[1,"datasource-licence"],[4,"ngIf","ngIfElse"],["color","primary","selected","",1,"licence-chip"],["target","_blank",1,"licence-link",3,"href"],["id","licence",1,"mat-subheading-2"],[1,"licence-large"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],[1,"licence-name"]],template:function(e,i){1&e&&(mt(0,Uie,2,2,"div",0),mt(1,Wie,4,1,"ng-template",null,1,Hl)),2&e&&Pe("ngIf",i.datasource)},dependencies:[mr,gx,Dg]}),n})();function Gie(n,t){if(1&n&&(Y(0,"mat-chip",5)(1,"a",6),ie(2),ee()()),2&n){const e=t.$implicit;Pe("selectable",!1),be(1),Pe("href","https://zenodo.org/search?q=keywords:%22"+e+"%22",zs),be(1),Yn(e)}}function qie(n,t){if(1&n){const e=ii();Y(0,"mat-chip",7),vt("click",function(){return zt(e),$t(Qe(2).showAll=!0)}),ie(1),ee()}if(2&n){const e=Qe(2);be(1),ci(" +",e.datasource.tags.length-e.amount," mehr... ")}}function Yie(n,t){if(1&n&&(Y(0,"mat-chip-list",2),mt(1,Gie,3,3,"mat-chip",3),ui(2,"slice"),mt(3,qie,2,1,"mat-chip",4),ee()),2&n){const e=Qe();Pe("selectable",!1),be(1),Pe("ngForOf",e.showAll?e.datasource.tags:function rI(n,t,e,i,r){const s=n+22,o=ct(),a=Yi(o,s);return wm(o,s)?eI(o,Jr(),t,a.transform,e,i,r,a):a.transform(e,i,r)}(2,4,e.datasource.tags,0,e.amount))("ngForTrackBy",e.trackById),be(2),Pe("ngIf",!e.showAll&&e.datasource.tags.length>e.amount)}}let Kie=(()=>{class n{constructor(){this.amount=10,this.showAll=!1}ngOnInit(){}trackById(e,i){return i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-tags"]],inputs:{datasource:"datasource",amount:"amount"},decls:3,vars:1,consts:[["id","tags",1,"mat-title"],["class","tag-list",3,"selectable",4,"ngIf"],[1,"tag-list",3,"selectable"],["class","tag-chip",3,"selectable",4,"ngFor","ngForOf","ngForTrackBy"],["class","tag-chip",3,"click",4,"ngIf"],[1,"tag-chip",3,"selectable"],["target","_blank",1,"tag-link",3,"href"],[1,"tag-chip",3,"click"]],template:function(e,i){1&e&&(Y(0,"div",0),ie(1,"Schlagw\xf6rter"),ee(),mt(2,Yie,4,8,"mat-chip-list",1)),2&e&&(be(2),Pe("ngIf",i.datasource))},dependencies:[zc,mr,gx,Dg,kO]}),n})(),Xie=(()=>{class n{constructor(){this.mapping=new Map([["DataCurator","Datenkuration"],["DataManager","Datenverwaltung"],["ProjectLeader","Projektleitung"],["ProjectManager","Projektmanagement"],["Researcher","Forschung"]])}transform(e,...i){return this.mapping.has(e)?this.mapping.get(e):e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ki({name:"contributorRoleLabel",type:n,pure:!0}),n})();function Qie(n,t){if(1&n&&(Y(0,"div",3),ie(1),ee()),2&n){const e=t.$implicit;be(1),ci(" ",e," ")}}function Zie(n,t){if(1&n&&(dr(0),Y(1,"div",1),mt(2,Qie,2,1,"div",2),ee(),hr()),2&n){const e=Qe();be(2),Pe("ngForOf",e.authors)}}function Jie(n,t){if(1&n&&(Y(0,"div",9),ie(1),ui(2,"contributorRoleLabel"),ee()),2&n){const e=Qe().$implicit;be(1),Yn(wi(2,1,e.role))}}function ere(n,t){if(1&n){const e=ii();Y(0,"div",7),vt("mouseenter",function(){const s=zt(e).$implicit;return $t(Qe(2).showRole=s)})("mouseleave",function(){return zt(e),$t(Qe(2).showRole=void 0)}),ie(1),mt(2,Jie,3,3,"div",8),ee()}if(2&n){const e=t.$implicit,i=Qe(2);be(1),ci(" ",e.name," "),be(1),Pe("ngIf",i.showRole===e)}}function tre(n,t){if(1&n&&(dr(0),Y(1,"div",4),ie(2,"Beitragende"),ee(),Y(3,"div",5),mt(4,ere,3,2,"div",6),ee(),hr()),2&n){const e=Qe();be(4),Pe("ngForOf",e.contributors)}}let nre=(()=>{class n{constructor(){}ngOnChanges(e){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-contributor-list"]],inputs:{contributors:"contributors",authors:"authors"},features:[Zt],decls:2,vars:2,consts:[[4,"ngIf"],[1,"name-container","author-container"],["class","author",4,"ngFor","ngForOf"],[1,"author"],[1,"contrib-title"],[1,"name-container","contrib-container"],["class","contrib",3,"mouseenter","mouseleave",4,"ngFor","ngForOf"],[1,"contrib",3,"mouseenter","mouseleave"],["class","contrib-role",4,"ngIf"],[1,"contrib-role"]],template:function(e,i){1&e&&(mt(0,Zie,3,1,"ng-container",0),mt(1,tre,5,1,"ng-container",0)),2&e&&(Pe("ngIf",i.authors&&i.authors.length>0),be(1),Pe("ngIf",i.contributors&&i.contributors.length>0))},dependencies:[zc,mr,Xie],styles:[".name-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.25em 1.25em}.contrib-title[_ngcontent-%COMP%]{font:800 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.contrib-container[_ngcontent-%COMP%] .contrib[_ngcontent-%COMP%]{position:relative}.contrib-container[_ngcontent-%COMP%] .contrib[_ngcontent-%COMP%] .contrib-role[_ngcontent-%COMP%]{position:absolute;top:1.25em;padding:8px 12px;z-index:10}.author-container[_ngcontent-%COMP%] .author[_ngcontent-%COMP%]{font:800 16px/28px Roboto,Helvetica Neue,sans-serif}"]}),n})();function ire(n,t){if(1&n&&(Y(0,"a",3),ft(1,"div",4),ee()),2&n){const e=t.$implicit;Pe("href",e.url,zs),be(1),Pe("ngClass",e.$type+"-link")}}function rre(n,t){if(1&n&&(Y(0,"div",1),mt(1,ire,2,2,"a",2),ee()),2&n){const e=Qe();be(1),Pe("ngForOf",e.datasource.externalLinks)}}let sre=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ct({type:n,selectors:[["app-datasource-links"]],inputs:{datasource:"datasource"},decls:1,vars:1,consts:[["class","datasource-link-component link-container",4,"ngIf"],[1,"datasource-link-component","link-container"],["mat-raised-button","","color","accent","class","link external-link","target","_blank",3,"href",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent","target","_blank",1,"link","external-link",3,"href"],[1,"link-logo",3,"ngClass"]],template:function(e,i){1&e&&mt(0,rre,2,1,"div",0),2&e&&Pe("ngIf",i.datasource)},dependencies:[Gu,zc,mr,VE]}),n})();const ore=["tocItem"];function are(n,t){if(1&n&&(Y(0,"cdk-nested-tree-node",3,4),ft(2,"div",5),Y(3,"div",6)(4,"a",7),ie(5),ee()()()),2&n){const e=t.$implicit;Kt("active",e.active),be(4),Pe("href","#"+e.fragment,zs),be(1),Yn(e.label)}}function lre(n,t){if(1&n&&(Y(0,"cdk-nested-tree-node",3,4),ft(2,"div",5),Y(3,"div",6)(4,"a",7),ie(5),ee()(),ft(6,"div",8),Y(7,"div",9),oo(8,10),ee()()),2&n){const e=t.$implicit,i=Qe();Kt("active",e.active),be(4),Pe("href","#"+e.fragment,zs),be(1),Yn(e.label),be(2),Kt("tree-invisible",!i.treeControl.isExpanded(e))}}let cre=(()=>{class n{constructor(e,i,r){this.renderer=e,this.markdownService=i,this.document=r,this.tocItems=[],this.treeDataSource=new hF([]),this.treeControl=new mV(s=>s.children),this.hasChild=(s,o)=>o.children.length>0,this.h2RegEx=new RegExp('<h(?<level>[23]+) id="(?<fragment>.*)">(?<title>.*)<\\/h[23]+>',"g")}ngAfterViewInit(){}ngOnChanges(e){e.datasource&&this.updateTocItems()}ngOnInit(){this.updateTocItems()}createDocumentationTocItems(){const e=[];if(this.datasource){const i=this.markdownService.parse(this.datasource.readme);let r=null,s=this.h2RegEx.exec(i);do{if(s&&s.groups&&s.groups.title&&s.groups.fragment&&s.groups.level){const o=parseInt(s.groups.level);2===o?(null!==r&&e.push(r),r={label:s.groups.title,fragment:s.groups.fragment,level:o,children:[],active:!1}):null==r||r.children.push({label:s.groups.title,fragment:s.groups.fragment,level:o,children:[],active:!1})}}while(null!==(s=this.h2RegEx.exec(i)))}return e}updateTocItems(){this.tocItems=this.createDocumentationTocItems(),this.treeDataSource=new hF(this.tocItems),this.activateFirstItem()}onWindowScrolled(e){const i=e.scrollingElement;this.tocItems.forEach(s=>{s.active=!1,this.treeControl.collapse(s),s.children.forEach(o=>{o.active=!1,this.treeControl.collapse(o)})});const r=Rs.findLast(this.tocItems,s=>{const o=i.querySelector(`#${decodeURIComponent(s.fragment)}`);return Math.floor(o.getBoundingClientRect().top)<=136});if(r){this.activateTocItem(r);const s=Rs.findLast(r.children,o=>{const a=i.querySelector(`#${decodeURIComponent(o.fragment)}`);return Math.floor(a.getBoundingClientRect().top)<=136});s&&(s.active=!0)}this.activateFirstItem()}activateFirstItem(){this.tocItems.length>0&&!this.tocItems.some(e=>e.active)&&this.activateTocItem(this.tocItems[0])}activateTocItem(e){e.active=!0,this.treeControl.expand(e),this.tocItems.forEach(i=>{i!==e&&this.treeControl.collapse(i)})}isInViewport(e){const i=e.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom<=this.document.documentElement.clientHeight&&i.right<=this.document.documentElement.clientWidth}}return n.\u0275fac=function(e){return new(e||n)(R(Us),R(Lw),R(Qt))},n.\u0275cmp=Ct({type:n,selectors:[["app-table-of-content"]],viewQuery:function(e,i){if(1&e&&Hn(ore,5),2&e){let r;Dt(r=St())&&(i.tocElements=r)}},hostBindings:function(e,i){1&e&&vt("scroll",function(s){return i.onWindowScrolled(s.target)},0,Nc)},inputs:{scrollContainerSelector:"scrollContainerSelector",datasource:"datasource"},features:[Zt],decls:3,vars:3,consts:[[1,"toc",3,"dataSource","treeControl"],["class","toc-item",3,"active",4,"cdkTreeNodeDef"],["class","toc-item",3,"active",4,"cdkTreeNodeDef","cdkTreeNodeDefWhen"],[1,"toc-item"],["tocItem",""],[1,"active-indicator"],[1,"link-container"],["pageScroll","",1,"toc-item-link",3,"href"],[1,"flex-break"],[1,"child-container"],["cdkTreeNodeOutlet",""]],template:function(e,i){1&e&&(Y(0,"cdk-tree",0),mt(1,are,6,4,"cdk-nested-tree-node",1),mt(2,lre,9,6,"cdk-nested-tree-node",2),ee()),2&e&&(Pe("dataSource",i.treeDataSource)("treeControl",i.treeControl),be(2),Pe("cdkTreeNodeDefWhen",i.hasChild))},dependencies:[fw,Sg,sl,df,U9],styles:["mat-list mat-list-item.toc-item .mat-list-item-content{padding:0!important}"]}),n})();const ure=["keepInView"],dre=["*"];let hre=(()=>{class n{constructor(e,i){this.elementRef=e,this.renderer=i,this.topOffset=0}ngOnInit(){}onResize(){Rs.delay(()=>this.onScroll(),30)}onScroll(){this.elementRef.nativeElement.getBoundingClientRect().top<=this.topOffset?(this.renderer.addClass(this.keepInViewElement.nativeElement,"fixed"),this.renderer.setStyle(this.keepInViewElement.nativeElement,"top",`${this.topOffset}px`),this.renderer.setStyle(this.keepInViewElement.nativeElement,"width",`${this.keepInViewElement.nativeElement.parentElement.clientWidth||0}px`)):(this.renderer.removeClass(this.keepInViewElement.nativeElement,"fixed"),this.renderer.removeStyle(this.keepInViewElement.nativeElement,"top"),this.renderer.removeStyle(this.keepInViewElement.nativeElement,"width"))}}return n.\u0275fac=function(e){return new(e||n)(R(yt),R(Us))},n.\u0275cmp=Ct({type:n,selectors:[["app-keep-in-view"]],viewQuery:function(e,i){if(1&e&&Hn(ure,5),2&e){let r;Dt(r=St())&&(i.keepInViewElement=r.first)}},hostBindings:function(e,i){1&e&&vt("resize",function(){return i.onResize()},0,Nc)("scroll",function(){return i.onScroll()},!1,Nc)},inputs:{topOffset:"topOffset"},ngContentSelectors:dre,decls:4,vars:0,consts:[[1,"keep-in-view-container"],[1,"keep-in-view"],["keepInView",""]],template:function(e,i){1&e&&(Ui(),Y(0,"div",0)(1,"div",1,2),Vn(3),ee()())},styles:[".keep-in-view-container[_ngcontent-%COMP%]{position:relative}.keep-in-view-container[_ngcontent-%COMP%] .keep-in-view.fixed[_ngcontent-%COMP%]{position:fixed}"]}),n})(),fre=(()=>{class n{constructor(e){this.sanatizer=e}transform(e,...i){return this.sanatizer.bypassSecurityTrustHtml(e)}}return n.\u0275fac=function(e){return new(e||n)(R(Yu,16))},n.\u0275pipe=ki({name:"safeHtml",type:n,pure:!0}),n})();const pre=[{path:"imprint",component:(()=>{class n{constructor(e,i){this.breakpointObs=e,this.titleService=i,this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(r=>r.matches))}ngOnInit(){this.titleService.title="Impressum"}}return n.\u0275fac=function(e){return new(e||n)(R(jc),R(Uy))},n.\u0275cmp=Ct({type:n,selectors:[["app-imprint-page"]],decls:76,vars:4,consts:[[1,"imprint-page"],[1,"mat-headline"],[1,"mat-title"],["title","im Sinne des"],["title","Robert Koch-Institut"],["href","mailto:opendata@rki.de","title","E-Mail: opendata@rki.de"],["href","https://www.github.com","target","_blank","rel","noopener noreferrer","title","Externer Link Github (\xd6ffnet neues Fenster)"],["href","https://github.com/robert-koch-institut/OpenData-Website","target","_blank","rel","noopener noreferrer","title","Externer Link Github Quellcode Opendata Webseite (\xd6ffnet neues Fenster)"]],template:function(e,i){1&e&&(Y(0,"div",0),ui(1,"async"),Y(2,"h1",1),ie(3,"Impressum"),ee(),Y(4,"h2",2),ie(5,"Herausgeber"),ee(),Y(6,"address")(7,"strong"),ie(8,"Robert Koch-Institut"),ee(),ft(9,"br"),ie(10," Nordufer 20"),ft(11,"br"),ie(12," 13353 Berlin"),ft(13,"br"),ee(),Y(14,"p"),ie(15,"Vertreten durch den Pr\xe4sidenten"),ee(),Y(16,"p")(17,"strong"),ie(18,"Verantwortlich "),Y(19,"abbr",3),ie(20,"i.S.d."),ee(),ie(21," Medienstaatsvertrags"),ee(),ft(22,"br"),ie(23," Hannes W\xfcnsche | Teamleitung Open Data des "),Y(24,"abbr",4),ie(25,"RKI"),ee()(),Y(26,"p")(27,"strong"),ie(28,"Kontakt"),ee(),ft(29,"br"),ie(30," E-Mail: "),Y(31,"a",5),ie(32,"opendata@rki.de"),ee(),ft(33,"br"),ee(),Y(34,"p")(35,"strong"),ie(36,"Umsatzsteueridentifikationsnummer"),ee(),ft(37,"br"),ie(38," DE 165 893 430 "),ee(),Y(39,"p")(40,"strong"),ie(41,"Hosting"),ee(),ft(42,"br"),Y(43,"a",6),ie(44,"Github Inc."),ee(),ft(45,"br"),ie(46," 88 Colin P Kelly Jr St"),ft(47,"br"),ie(48," San Francisco, CA 94107"),ft(49,"br"),ie(50," United States "),ee(),Y(51,"h2",2),ie(52,"Haftungsausschluss"),ee(),Y(53,"p"),ie(54," Die Inhalte, die \xfcber die Internetseiten zur Verf\xfcgung gestellt werden, dienen ausschlie\xdflich der allgemeinen Information der \xd6ffentlichkeit, vorrangig der Fach\xf6ffentlichkeit. "),ee(),Y(55,"p"),ie(56," Das Robert Koch-Institut \xfcbernimmt keine Verantwortung f\xfcr die Richtigkeit und Vollst\xe4ndigkeit der Informationen, f\xfcr Abweichungen der Programminhalte von Originaltexten, \xdcbertragungsfehler von Schriftst\xfccken und Irrt\xfcmer bei Dokumenten, die f\xfcr die Internetseiten erstellt wurden, sowie unbefugte Ver\xe4nderung der Angaben auf dem Server durch Dritte. "),ee(),Y(57,"p"),ie(58," Die Inhalte dieser Internetseiten dienen nicht der Erteilung medizinischer oder anderer Ratschl\xe4ge oder Anweisungen in Bezug auf Arzneimittel oder bestimmten Therapien. Die Informationen stellen keine Alternative zur Beratung durch einen Arzt oder Apotheker dar. Wer Rat zu spezifischen Gesundheitsproblemen ben\xf6tigt, wendet sich bitte ausschlie\xdflich an den Arzt. "),ee(),Y(59,"p"),ie(60," Soweit die Angaben Schriftst\xfccken entnommen wurden, ersetzen sie diese nicht. F\xfcr verbindliche Angaben sollte auf die Schriftst\xfccke selbst zur\xfcckgegriffen werden. Gesetze und Verordnungen sind nur g\xfcltig und finden Anwendung entsprechend ihrer jeweils aktuellen Fassung, die im einschl\xe4gigen amtlichen Verk\xfcndungsorgan (insbesondere Bundesgesetzblatt und Bundesanzeiger) ver\xf6ffentlicht ist. "),ee(),Y(61,"p"),ie(62," Die Nennung von Produkten und/oder Verfahren bedeutet keine Empfehlung oder Aussage zu deren Qualit\xe4t und begr\xfcndet daher keine diesbez\xfcgliche Haftung. "),ee(),Y(63,"p"),ie(64," Die Bildschirmdarstellung der vorliegenden Inhalte kann durch unterschiedliche Browser- und Betriebssystemeinstellungen variieren. Bedingt durch die \xdcbertragung und Darstellung der Daten kann es zu Abweichungen gegen\xfcber den zugrundeliegenden Ver\xf6ffentlichungen kommen. "),ee(),Y(65,"p"),ie(66," \xdcber die auf den Internetseiten des Robert Koch-Instituts vorhandenen Links verlassen Sie das Angebot des Robert Koch-Instituts. Das Robert Koch-Institut macht sich die Inhalte dieser Seiten ausdr\xfccklich nicht zu eigen und \xfcbernimmt f\xfcr deren Inhalte keine Gew\xe4hrleistung. "),ee(),Y(67,"h2",2),ie(68,"Nutzungs- und Lizenzbedingungen"),ee(),Y(69,"p"),ie(70," Der Sourcecode wurde vom Robert Koch-Institut entwickelt und als Open Source bereitgestellt ("),Y(71,"a",7),ie(72,"https://github.com/robert-koch-institut/OpenData-Website"),ee(),ie(73,"). Die Verwendung, Vervielf\xe4ltigung, Weiterverbreitung, \xdcbersetzung, Mikroverfilmung, Einspeicherung und Verarbeitung in elektronischen Systemen zu kommerziellen Zwecken oder sonstige Verwertung ist im Rahmen der geltenden rechtlichen Vorschriften, insbesondere der jeweils geltenden Nutzungslizenzen, zul\xe4ssig. "),ee(),Y(74,"p"),ie(75,"Stand: 31.10.2022"),ee()()),2&e&&Kt("small",wi(1,2,i.isSmall$))},dependencies:[Ga],styles:["[_nghost-%COMP%]{display:block;flex:1;max-width:100%}"]}),n})()},{path:"privacy",component:(()=>{class n{constructor(e,i){this.breakpointObs=e,this.titleService=i,this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(r=>r.matches))}ngOnInit(){this.titleService.title="Datenschutzerkl\xe4rung"}}return n.\u0275fac=function(e){return new(e||n)(R(jc),R(Uy))},n.\u0275cmp=Ct({type:n,selectors:[["app-privacy-page"]],decls:291,vars:4,consts:[[1,"privacy-page"],["title","Artikel"],["title","Nummer"],["title","Europ\xe4ische Union"],["title","Professor"],["title","Doktor"],["href","https://www.rki.de/SharedDocs/Kontaktformulare/Z/Zentrale/Integrator.html","target","_blank","rel","noopener noreferrer","title","Externer Link Kontaktformular RKI (\xd6ffnet neues Fenster)"],["href","https://www.rki.de","target","_blank","rel","noopener noreferrer","title","Startseite des Robert Koch-Instituts (\xd6ffnet neues Fenster)"],["title","oben genannten"],["href","mailto:datenschutz@rki.de","title","E-Mail: datenschutz@rki.de"],["href","https://github.com/robert-koch-institut","target","_blank","rel","noopener noreferrer","title","Externer Link Github RKI (\xd6ffnet neues Fenster)"],["title","Robert Koch-Institut"],["title","zum Beispiel"],["title","Datenschutz-Grundverordnung"],["href","https://support.github.com/request","target","_blank","rel","noopener noreferrer","title","Externer Link Github Kontakt (\xd6ffnet neues Fenster)"],["href","https://github.com","target","_blank","rel","noopener noreferrer","title","Externer Link Github Startseite (\xd6ffnet neues Fenster)"],["href","https://support.github.com/contact/privacy","target","_blank","rel","noopener noreferrer","title","Externer Link Github Datenschutz (\xd6ffnet neues Fenster)"],["title","beispielsweise"],["title","Absatz"],["title","Seite"],["title","litera"],["href","https://docs.github.com/de/site-policy/privacy-policies/github-privacy-statement","target","_blank","rel","noopener noreferrer","title","Externer Link Github Datenschutz (\xd6ffnet neues Fenster)"],["title","sogenanntes"],["title","sogenannte"],["href","tel:+49 (0)228-997799-0"],["href","http://www.bfdi.bund.de","target","_blank","rel","noopener noreferrer","title","Externer Link Bundesbeauftragte\n f\xfcr Datenschutz und Informationssicherheit (\xd6ffnet neues Fenster)"]],template:function(e,i){1&e&&(Y(0,"div",0),ui(1,"async"),Y(2,"h1"),ie(3,"Datenschutzerkl\xe4rung"),ee(),Y(4,"h2"),ie(5," Verantwortlicher gem\xe4\xdf "),Y(6,"abbr",1),ie(7,"Art."),ee(),ie(8," 4 "),Y(9,"abbr",2),ie(10,"Nr."),ee(),ie(11," 7 "),Y(12,"abbr",3),ie(13,"EU"),ee(),ie(14," Datenschutz-Grundverordnung (DSGVO) und Bundesdatenschutzgesetz (BDSG): "),ee(),Y(15,"address")(16,"strong"),ie(17,"Robert Koch-Institut"),ee(),ft(18,"br"),ie(19," Nordufer 20"),ft(20,"br"),ie(21," 13353 Berlin"),ft(22,"br"),ee(),Y(23,"p"),ie(24," vertreten durch den Pr\xe4sidenten "),Y(25,"abbr",4),ie(26,"Prof."),ee(),Y(27,"abbr",5),ie(28,"Dr."),ee(),ie(29," Schaade "),ee(),Y(30,"p")(31,"strong"),ie(32,"Kontakt: "),ee(),ft(33,"br"),ie(34," Robert Koch-Institut"),ft(35,"br"),ie(36," Presse und \xd6ffentlichkeitsarbeit"),ft(37,"br"),ie(38," Nordufer 20"),ft(39,"br"),ie(40," 13353 Berlin"),ft(41,"br"),ie(42," Telefon: 030 18754 0"),ft(43,"br"),ie(44," Fax: 030 18754 2328"),ft(45,"br"),ie(46," Kontaktformular: "),Y(47,"a",6),ie(48,"Kontaktformular RKI-Webseite"),ee(),ft(49,"br"),ie(50," Homepage: "),Y(51,"a",7),ie(52,"www.rki.de"),ee()(),Y(53,"h2"),ie(54," Datenschutzbeauftragte "),ee(),Y(55,"p"),ie(56," Unsere Datenschutzbeauftragte erreichen Sie unter den "),Y(57,"abbr",8),ie(58,"o.g."),ee(),ie(59," Kontaktdaten sowie unter der E-Mail: "),Y(60,"a",9),ie(61,"datenschutz@rki.de"),ee()(),Y(62,"h2"),ie(63," Allgemeines zur Datenverarbeitung "),ee(),Y(64,"p"),ie(65," Das Robert Koch-Institut (RKI) stellt Forschungsdaten und Informationen \xfcber Github.com - "),Y(66,"a",10),ie(67,"https://github.com/robert-koch-institut"),ee(),ie(68," - bereit. GitHub Inc. (GitHub) bietet mit Github-Pages einen Service an der es erm\xf6glich Webseiten zu hosten und der vom RKI genutzt wird um individuelle Websites zu erstellen. Die von GitHub gehosteten Webseiten des RKIs sind unter der Domain "),Y(69,"i"),ie(70,'"https://robert-koch-institut.github.io/"'),ee(),ie(71," erreichbar. "),ee(),Y(72,"p"),ie(73," Der Schutz personenbezogener Daten ist dem "),Y(74,"abbr",11),ie(75,"RKI"),ee(),ie(76," ein sehr wichtiges Anliegen. Das Robert Koch-Institut unterliegt als Bundesbeh\xf6rde den Bestimmungen der EU Datenschutz-Grundverordnung (DSGVO) und des Bundesdatenschutzgesetzes (BDSG). "),ee(),Y(77,"p"),ie(78," Personenbezogene Daten sind Informationen, die sich auf eine identifizierte oder identifizierbare Person beziehen. Hierunter fallen Angaben, die R\xfcckschl\xfcsse auf Ihre Identit\xe4t erm\xf6glichen. Weitere Definitionen der verwendeten Begriffe ("),Y(79,"abbr",12),ie(80,"z.B."),ee(),ie(81,' "Verarbeitung") finden Sie in '),Y(82,"abbr",1),ie(83,"Art."),ee(),ie(84," 4 "),Y(85,"abbr",13),ie(86,"DSGVO"),ee(),ie(87,". "),ee(),Y(88,"p"),ie(89," Da durch neue Technologien und die st\xe4ndige Weiterentwicklung dieser Webseite \xc4nderungen an dieser Datenschutzerkl\xe4rung vorgenommen werden k\xf6nnen, empfehlen wir Ihnen, sich die Datenschutzerkl\xe4rung in regelm\xe4\xdfigen Abst\xe4nden wieder durchzulesen. "),ee(),Y(90,"p"),ie(91," Bei der Nutzung der "),Y(92,"abbr",8),ie(93,"o.g."),ee(),ie(94," Seiten verarbeitet das "),Y(95,"abbr",11),ie(96,"RKI"),ee(),ie(97," selbst keine personenbezogenen Daten. Auch ist die Nutzung der Seite ohne die Bekanntgabe personenbezogener Daten gegen\xfcber dem "),Y(98,"abbr",11),ie(99,"RKI"),ee(),ie(100," m\xf6glich. Allerdings erhebt unserer Hostingdienstleister beim Aufruf dieser Seiten technische Daten von Ihnen. "),ee(),Y(101,"h3"),ie(102," Technische Bereitstellung der Webseite, Statistik und Cookies "),ee(),Y(103,"p"),ie(104,"Wie oben beschrieben, erfolgen das Hosting und der Betrieb der Webseiten durch:"),ee(),Y(105,"p"),ie(106," Github Inc. "),ft(107,"br"),ie(108," 88 Colin P Kelly Jr St "),ft(109,"br"),ie(110," San Francisco "),ft(111,"br"),ie(112," CA 94107, USA "),ee(),Y(113,"p"),ie(114," Kontakt: "),Y(115,"a",14),ie(116,"https://support.github.com/request"),ee(),ie(117," Homepage: "),Y(118,"a",15),ie(119,"https://github.com"),ee(),ie(120," Datenschutz: "),Y(121,"a",16),ie(122,"https://support.github.com/contact/privacy"),ee()(),Y(123,"p"),ie(124," F\xfcr die technische Infrastruktur und die Bereitstellung der Dienste verarbeitet GitHub beim Aufruf der Webseiten technisch notwendige Informationen. Das bedeutet, dass beim Zugriff auf die vom RKI gehosteten Github-Pages u.a. folgende Informationen zu Ihrer Nutzung des Diensts und zur Interaktion Ihres Ger\xe4ts mit dem Dienst durch Github in Logfiles erhoben werden k\xf6nnen, die Ihr Browser automatisch \xfcbersendet: "),ee(),Y(125,"ul")(126,"li"),ie(127,"Datum und Uhrzeit des Zugriffs"),ee(),Y(128,"li"),ie(129,"die aufgerufene Website"),ee(),Y(130,"li"),ie(131,"die vorher besuchte Webseite, von der aus der Zugriff erfolgt"),ee(),Y(132,"li"),ie(133,"die IP-Adresse"),ee(),Y(134,"li"),ie(135,"Informationen zu Ihrem Ger\xe4t ("),Y(136,"abbr",17),ie(137,"bspw."),ee(),ie(138,": Ger\xe4tetyp und -ID)"),ee(),Y(139,"li"),ie(140,"Der genutzte Webbrowser und Betriebssystem"),ee(),Y(141,"li"),ie(142,"Informationen, die in Ihren Beitr\xe4gen zu einzelnen Repositorys enthalten sind oder sich auf diese beziehen"),ee(),Y(143,"li"),ie(144,"Telemetriedaten (also Informationen zur Leistung eines bestimmten Features oder Diensts) hinsichtlich Ihrer Nutzung anderer Features und Funktionen des Diensts"),ee()(),Y(145,"p"),ie(146," Github verwendet die erhobenen Daten, um seinen Dienst bereitzustellen, zu pflegen, analysieren, verwalten und zu betreiben. "),ee(),Y(147,"p"),ie(148," Die Datenverarbeitung dieser Zugriffsdaten ist erforderlich, um den Besuch dieser Website zu erm\xf6glichen und um die dauerhafte Funktionsf\xe4higkeit und Sicherheit der Systeme zu gew\xe4hrleisten. Rechtsgrundlage ist "),Y(149,"abbr",1),ie(150,"Art."),ee(),ie(151," 6 "),Y(152,"abbr",18),ie(153,"Abs."),ee(),ie(154," 1 "),Y(155,"abbr",19),ie(156,"S."),ee(),ie(157," 1 "),Y(158,"abbr",20),ie(159,"lit."),ee(),ie(160," b "),Y(161,"abbr",13),ie(162,"DSGVO"),ee(),ie(163,". "),ee(),Y(164,"p"),ie(165,"Nach erreichen des o.g. Zwecks, werden diese Daten wieder gel\xf6scht."),ee(),Y(166,"p"),ie(167," Weitere Informationen zum Umgang mit Nutzer:innendaten durch Github finden Sie in der Datenschutzerkl\xe4rung von GitHub unter "),Y(168,"a",21),ie(169,"GitHub Privacy Policy"),ee(),ie(170,". "),ee(),Y(171,"h2"),ie(172," Daten\xfcbermittlung in Drittl\xe4nder "),ee(),Y(173,"p"),ie(174," Die "),Y(175,"abbr",8),ie(176,"o.g."),ee(),ie(177," Datenverarbeitungen erfolgen durch unseren Hosting-Anbieter Github mit Sitz in San Francisco, USA. Die Serverstandeorte befinden sich ebenfalls in den USA. Das hei\xdft, dass die "),Y(178,"abbr",8),ie(179,"o.g."),ee(),ie(180,". Verarbeitungen auch dort erfolgen k\xf6nnen. Dabei handelt es sich um ein "),Y(181,"abbr",22),ie(182,"sog."),ee(),ie(183," Drittland au\xdferhalb des europ\xe4ischen Wirtschaftsraums (EWR). Dabei haben wir mit Github "),Y(184,"abbr",23),ie(185,"sog."),ee(),ie(186," Standarddatenschutzklauseln der Europ\xe4ischen Union ("),Y(187,"abbr",1),ie(188,"Art."),ee(),ie(189," 46 "),Y(190,"abbr",18),ie(191,"Abs."),ee(),ie(192," 2 "),Y(193,"abbr",20),ie(194,"lit."),ee(),ie(195," c "),Y(196,"abbr",13),ie(197,"DSGVO"),ee(),ie(198,') geschlossen. Sie das Recht, eine Kopie der "Standarddatenschutzklauseln" anzufordern. '),ee(),Y(199,"h2"),ie(200," Betroffenenrechte "),ee(),Y(201,"p"),ie(202," Soweit wir personenbezogene Daten von Ihnen verarbeiten, stehen Ihnen folgende Datenschutzrechte zu: "),ee(),Y(203,"ul")(204,"li"),ie(205,"das Recht, jederzeit Auskunft \xfcber die Verarbeitung Ihrer personenbezogenen Daten zu erhalten ("),Y(206,"abbr",1),ie(207,"Art."),ee(),ie(208," 15 "),Y(209,"abbr",13),ie(210,"DSGVO"),ee(),ie(211,"),"),ee(),Y(212,"li"),ie(213,"das Recht auf Berichtigung unrichtiger Daten oder Vervollst\xe4ndigung l\xfcckenhafter Daten ("),Y(214,"abbr",1),ie(215,"Art."),ee(),ie(216," 16 "),Y(217,"abbr",13),ie(218,"DSGVO"),ee(),ie(219,"),"),ee(),Y(220,"li"),ie(221,"das Recht, Daten nach den gesetzlichen Vorgaben l\xf6schen oder in der Verarbeitung einschr\xe4nken zu lassen (z.B. bei Widerruf Ihrer Einwilligung oder unrechtm\xe4\xdfiger Verarbeitung) ("),Y(222,"abbr",1),ie(223,"Art."),ee(),ie(224," 17, 18 "),Y(225,"abbr",13),ie(226,"DSGVO"),ee(),ie(227,"),"),ee(),Y(228,"li"),ie(229,"das Recht, bei einer auf Einwilligung beruhenden Datenverarbeitung Ihre Einwilligung jederzeit mit Wirkung f\xfcr die Zukunft zu widerrufen ("),Y(230,"abbr",1),ie(231,"Art."),ee(),ie(232," 7 "),Y(233,"abbr",18),ie(234,"Abs."),ee(),ie(235," 3 "),Y(236,"abbr",13),ie(237,"DSGVO"),ee(),ie(238,"),"),ee(),Y(239,"li"),ie(240,"das Recht auf Daten\xfcbertragbarkeit (Sie k\xf6nnen eine \xdcbersicht Ihrer Daten in einem elektronischen Format zur Verf\xfcgung gestellt bekommen) ("),Y(241,"abbr",1),ie(242,"Art."),ee(),ie(243," 20 "),Y(244,"abbr",13),ie(245,"DSGVO"),ee(),ie(246,"),"),ee(),Y(247,"li"),ie(248,"das Recht auf Widerspruch gegen die Datenverarbeitung, die aus Gr\xfcnden eines berechtigten Interesses des "),Y(249,"abbr",11),ie(250,"RKI"),ee(),ie(251,", f\xfcr die Wahrnehmung von \xf6ffentlichen Aufgaben oder in Aus\xfcbung \xf6ffentlicher Gewalt erfolgt ("),Y(252,"abbr",1),ie(253,"Art."),ee(),ie(254," 21 "),Y(255,"abbr",13),ie(256,"DSGVO"),ee(),ie(257,"),"),ee(),Y(258,"li"),ie(259,"das Recht, den Datenschutzbeauftragten des "),Y(260,"abbr",11),ie(261,"RKI"),ee(),ie(262," zu kontaktieren und Ihr Anliegen vorzubringen ("),Y(263,"abbr",1),ie(264,"Art."),ee(),ie(265," 38 "),Y(266,"abbr",18),ie(267,"Abs."),ee(),ie(268," 4 "),Y(269,"abbr",13),ie(270,"DSGVO"),ee(),ie(271,") und"),ee(),Y(272,"li"),ie(273,"das Recht, sich bei der zust\xe4ndigen Aufsichtsbeh\xf6rde f\xfcr den Datenschutz zu beschweren, (Der Bundesbeauftragte f\xfcr Datenschutz und Informationssicherheit, Husarenstr. 30 - 53117 Bonn, "),Y(274,"a",24),ie(275,"+49 (0)228-997799-0"),ee(),ie(276,", "),Y(277,"a",25),ie(278,"http://www.bfdi.bund.de"),ee(),ie(279,") ("),Y(280,"abbr",1),ie(281,"Art."),ee(),ie(282," 77 "),Y(283,"abbr",18),ie(284,"Abs."),ee(),ie(285," 1 "),Y(286,"abbr",13),ie(287,"DSGVO"),ee(),ie(288,"). "),ee()(),Y(289,"p"),ie(290," Berlin, 10. Oktober 2023 "),ee()()),2&e&&Kt("small",wi(1,2,i.isSmall$))},dependencies:[Ga],styles:["[_nghost-%COMP%]{display:block;flex:1;max-width:100%}"]}),n})()},{path:"",component:(()=>{class n{constructor(e,i,r){this.datasourceService=e,this.breakpointObs=i,this.titleService=r,this.datasource=this.datasourceService.getDatasource(),this.isSmall$=this.breakpointObs.observe([Za_Small,Za_XSmall]).pipe(z(s=>s.matches))}ngOnInit(){this.titleService.title=this.datasource.name}}return n.\u0275fac=function(e){return new(e||n)(R(pN),R(jc),R(Uy))},n.\u0275cmp=Ct({type:n,selectors:[["app-home-page"]],decls:42,vars:21,consts:[[1,"home-page"],[1,"header"],[1,"header-image-background"],[1,"title-container"],[1,"title"],[1,"author-container"],[3,"authors"],[1,"contributor-container"],[3,"contributors"],[1,"abstract-tag-container"],[1,"left-column"],[1,"abstract-container"],[1,"mat-headline"],[1,"abstract",3,"innerHtml"],[1,"right-column"],[3,"datasource"],[1,"content-cite-licence-container"],[1,"row"],[1,"date"],[1,"filler"],["mode","large",3,"datasource"],[1,"doc-container"],[3,"topOffset"],[1,"markdown-preview",3,"readme"]],template:function(e,i){1&e&&(Y(0,"div",0),ui(1,"async"),Y(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),ie(6),ee()(),Y(7,"div",5),ft(8,"app-datasource-contributor-list",6),ee(),Y(9,"div",7),ft(10,"app-datasource-contributor-list",8),ee()()(),Y(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12),ie(15,"Zusammenfassung"),ee(),ft(16,"div",13),ui(17,"safeHtml"),ee()(),Y(18,"div",14),ft(19,"app-datasource-tags",15),ee()(),Y(20,"div",16)(21,"div",17)(22,"div",10)(23,"div",12),ie(24,"Daten"),ee(),Y(25,"div",18),ie(26),ui(27,"date"),ee(),ft(28,"app-datasource-links",15)(29,"div",19)(30,"app-datasource-licence",20)(31,"app-datasource-cite",15),ee(),Y(32,"div",14),ft(33,"app-datasource-content-list",15),ee()()(),Y(34,"div",21)(35,"div",10)(36,"app-keep-in-view",22)(37,"div",12),ie(38,"Dokumentation"),ee(),ft(39,"app-table-of-content",15),ee()(),Y(40,"div",14),ft(41,"app-datasource-readme",23),ee()()()),2&e&&(Kt("small",wi(1,15,i.isSmall$)),be(6),ci(" ",i.datasource.name," "),be(2),Pe("authors",i.datasource.authors),be(2),Pe("contributors",i.datasource.contributors),be(6),Pe("innerHtml",wi(17,17,i.datasource.description),X_),be(3),Pe("datasource",i.datasource),be(7),ci("Datenstand: ",wi(27,19,i.datasource.lastUpdated),""),be(2),Pe("datasource",i.datasource),be(2),Pe("datasource",i.datasource),be(1),Pe("datasource",i.datasource),be(2),Pe("datasource",i.datasource),be(3),Pe("topOffset",116),be(3),Pe("datasource",i.datasource),be(2),Pe("readme",i.datasource.readme))},dependencies:[Pte,Bie,Hie,$ie,Kie,nre,sre,cre,hre,Ga,eM,fre],styles:["[_nghost-%COMP%]{display:block;flex:1;max-width:100%}"]}),n})()}];let mre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({imports:[cN.forRoot(pre,{scrollPositionRestoration:"top"}),cN]}),n})();var wre={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var Ere={date:_f({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_f({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:_f({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kre={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const DH={code:"en-US",formatDistance:function(t,e,i){var r,s=wre[t];return r="string"==typeof s?s:1===e?s.one:s.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:Ere,formatRelative:function(t,e,i,r){return kre[t]},localize:{ordinalNumber:function(t,e){var i=Number(t),r=i%100;if(r>20||r<10)switch(r%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:ll({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ll({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ll({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ll({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ll({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:jB({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:cl({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:cl({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:cl({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cl({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cl({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function tse(n,t){Qn(2,arguments);var e=Si(n).getTime(),i=Kr(t);return new Date(e+i)}function SH(n,t){Qn(2,arguments);var e=Kr(t);return tse(n,-e)}function nse(n,t){if(null==n)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}var AH=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},MH=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const _k={p:MH,P:function(t,e){var o,i=t.match(/(P+)(p+)?/)||[],r=i[1],s=i[2];if(!s)return AH(t,e);switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"})}return o.replace("{{date}}",AH(r,e)).replace("{{time}}",MH(s,e))}};var sse=["D","DD"],ose=["YY","YYYY"];function EH(n){return-1!==sse.indexOf(n)}function xH(n){return-1!==ose.indexOf(n)}function Qw(n,t,e){if("YYYY"===n)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===n)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===n)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===n)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function Zw(n){return(Zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function kH(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&vk(n,t)}function vk(n,t){return(vk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function TH(n){var t=function lse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Jw(n);if(t){var s=Jw(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ase(this,r)}}function ase(n,t){return!t||"object"!==Zw(t)&&"function"!=typeof t?bk(n):t}function bk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Jw(n){return(Jw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function yk(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function PH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function wk(n,t,e){return t&&PH(n.prototype,t),e&&PH(n,e),n}function Ck(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var RH=function(){function n(){yk(this,n),Ck(this,"subPriority",0)}return wk(n,[{key:"validate",value:function(e,i){return!0}}]),n}(),use=function(n){kH(e,n);var t=TH(e);function e(i,r,s,o,a){var c;return yk(this,e),(c=t.call(this)).value=i,c.validateValue=r,c.setValue=s,c.priority=o,a&&(c.subPriority=a),c}return wk(e,[{key:"validate",value:function(r,s){return this.validateValue(r,this.value,s)}},{key:"set",value:function(r,s,o){return this.setValue(r,s,this.value,o)}}]),e}(RH),dse=function(n){kH(e,n);var t=TH(e);function e(){var i;yk(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Ck(bk(i=t.call.apply(t,[this].concat(s))),"priority",10),Ck(bk(i),"subPriority",-1),i}return wk(e,[{key:"set",value:function(r,s){if(s.timestampIsSet)return r;var o=new Date(0);return o.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),o.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),o}}]),e}(RH);function IH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}var ri=function(){function n(){!function hse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}return function fse(n,t,e){t&&IH(n.prototype,t),e&&IH(n,e)}(n,[{key:"run",value:function(e,i,r,s){var o=this.parse(e,i,r,s);return o?{setter:new use(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,i,r){return!0}}]),n}();function e0(n){return(e0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function pse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function OH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Dk(n,t){return(Dk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function vse(n,t){return!t||"object"!==e0(t)&&"function"!=typeof t?Sk(n):t}function Sk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function t0(n){return(t0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function FH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var yse=function(n){!function gse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Dk(n,t)}(e,n);var t=function _se(n){var t=function bse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=t0(n);if(t){var s=t0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return vse(this,r)}}(e);function e(){var i;pse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return FH(Sk(i=t.call.apply(t,[this].concat(s))),"priority",140),FH(Sk(i),"incompatibleTokens",["R","u","t","T"]),i}return function mse(n,t,e){t&&OH(n.prototype,t),e&&OH(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"});case"GGGGG":return o.era(r,{width:"narrow"});default:return o.era(r,{width:"wide"})||o.era(r,{width:"abbreviated"})||o.era(r,{width:"narrow"})}}},{key:"set",value:function(r,s,o){return s.era=o,r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri),br_month=/^(1[0-2]|0?\d)/,br_date=/^(3[0-1]|[0-2]?\d)/,br_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,br_week=/^(5[0-3]|[0-4]?\d)/,br_hour23h=/^(2[0-3]|[0-1]?\d)/,br_hour24h=/^(2[0-4]|[0-1]?\d)/,br_hour11h=/^(1[0-1]|0?\d)/,br_hour12h=/^(1[0-2]|0?\d)/,br_minute=/^[0-5]?\d/,br_second=/^[0-5]?\d/,br_singleDigit=/^\d/,br_twoDigits=/^\d{1,2}/,br_threeDigits=/^\d{1,3}/,br_fourDigits=/^\d{1,4}/,br_anyDigitsSigned=/^-?\d+/,br_singleDigitSigned=/^-?\d/,br_twoDigitsSigned=/^-?\d{1,2}/,br_threeDigitsSigned=/^-?\d{1,3}/,br_fourDigitsSigned=/^-?\d{1,4}/,dl_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,dl_basic=/^([+-])(\d{2})(\d{2})|Z/,dl_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,dl_extended=/^([+-])(\d{2}):(\d{2})|Z/,dl_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function yr(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ji(n,t){var e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function hl(n,t){var e=t.match(n);if(!e)return null;if("Z"===e[0])return{value:0,rest:t.slice(1)};var i="+"===e[1]?1:-1,r=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,o=e[5]?parseInt(e[5],10):0;return{value:i*(r*ck+6e4*s+1e3*o),rest:t.slice(e[0].length)}}function LH(n){return Ji(br_anyDigitsSigned,n)}function ar(n,t){switch(n){case 1:return Ji(br_singleDigit,t);case 2:return Ji(br_twoDigits,t);case 3:return Ji(br_threeDigits,t);case 4:return Ji(br_fourDigits,t);default:return Ji(new RegExp("^\\d{1,"+n+"}"),t)}}function n0(n,t){switch(n){case 1:return Ji(br_singleDigitSigned,t);case 2:return Ji(br_twoDigitsSigned,t);case 3:return Ji(br_threeDigitsSigned,t);case 4:return Ji(br_fourDigitsSigned,t);default:return Ji(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Ak(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function NH(n,t){var r,e=t>0,i=e?t:1-t;if(i<=50)r=n||100;else{var s=i+50;r=n+100*Math.floor(s/100)-(n>=s%100?100:0)}return e?r:1-r}function VH(n){return n%400==0||n%4==0&&n%100!=0}function r0(n){return(r0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function wse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function BH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Mk(n,t){return(Mk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Ase(n,t){return!t||"object"!==r0(t)&&"function"!=typeof t?Ek(n):t}function Ek(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function s0(n){return(s0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function HH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ese=function(n){!function Dse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Mk(n,t)}(e,n);var t=function Sse(n){var t=function Mse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=s0(n);if(t){var s=s0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Ase(this,r)}}(e);function e(){var i;wse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return HH(Ek(i=t.call.apply(t,[this].concat(s))),"priority",130),HH(Ek(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return function Cse(n,t,e){t&&BH(n.prototype,t),e&&BH(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return{year:d,isTwoDigitYear:"yy"===s}};switch(s){case"y":return yr(ar(4,r),a);case"yo":return yr(o.ordinalNumber(r,{unit:"year"}),a);default:return yr(ar(s.length,r),a)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,o){var a=r.getUTCFullYear();if(o.isTwoDigitYear){var c=NH(o.year,a);return r.setUTCFullYear(c,0,1),r.setUTCHours(0,0,0,0),r}return r.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri),zH={};function vf(){return zH}function pd(n,t){var e,i,r,s,o,a,c,d;Qn(1,arguments);var f=vf(),v=Kr(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:f.weekStartsOn)&&void 0!==i?i:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==e?e:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=Si(n),B=x.getUTCDay(),se=(B<v?7:0)+B-v;return x.setUTCDate(x.getUTCDate()-se),x.setUTCHours(0,0,0,0),x}function xk(n,t){var e,i,r,s,o,a,c,d;Qn(1,arguments);var f=Si(n),v=f.getUTCFullYear(),x=vf(),B=Kr(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:x.firstWeekContainsDate)&&void 0!==i?i:null===(c=x.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==e?e:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var se=new Date(0);se.setUTCFullYear(v+1,0,B),se.setUTCHours(0,0,0,0);var me=pd(se,t),Oe=new Date(0);Oe.setUTCFullYear(v,0,B),Oe.setUTCHours(0,0,0,0);var Fe=pd(Oe,t);return f.getTime()>=me.getTime()?v+1:f.getTime()>=Fe.getTime()?v:v-1}function o0(n){return(o0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function xse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function UH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function kk(n,t){return(kk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Rse(n,t){return!t||"object"!==o0(t)&&"function"!=typeof t?Tk(n):t}function Tk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function a0(n){return(a0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function jH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ose=function(n){!function Tse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&kk(n,t)}(e,n);var t=function Pse(n){var t=function Ise(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=a0(n);if(t){var s=a0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Rse(this,r)}}(e);function e(){var i;xse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return jH(Tk(i=t.call.apply(t,[this].concat(s))),"priority",130),jH(Tk(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return function kse(n,t,e){t&&UH(n.prototype,t),e&&UH(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return{year:d,isTwoDigitYear:"YY"===s}};switch(s){case"Y":return yr(ar(4,r),a);case"Yo":return yr(o.ordinalNumber(r,{unit:"year"}),a);default:return yr(ar(s.length,r),a)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,o,a){var c=xk(r,a);if(o.isTwoDigitYear){var d=NH(o.year,c);return r.setUTCFullYear(d,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),pd(r,a)}return r.setUTCFullYear("era"in s&&1!==s.era?1-o.year:o.year,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),pd(r,a)}}]),e}(ri);function bf(n){Qn(1,arguments);var t=1,e=Si(n),i=e.getUTCDay(),r=(i<t?7:0)+i-t;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function l0(n){return(l0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Fse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function WH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Pk(n,t){return(Pk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Bse(n,t){return!t||"object"!==l0(t)&&"function"!=typeof t?Rk(n):t}function Rk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function c0(n){return(c0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function $H(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var zse=function(n){!function Nse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Pk(n,t)}(e,n);var t=function Vse(n){var t=function Hse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=c0(n);if(t){var s=c0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Bse(this,r)}}(e);function e(){var i;Fse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return $H(Rk(i=t.call.apply(t,[this].concat(s))),"priority",130),$H(Rk(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return function Lse(n,t,e){t&&WH(n.prototype,t),e&&WH(n,e)}(e,[{key:"parse",value:function(r,s){return n0("R"===s?4:s.length,r)}},{key:"set",value:function(r,s,o){var a=new Date(0);return a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0),bf(a)}}]),e}(ri);function u0(n){return(u0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Use(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function GH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Ik(n,t){return(Ik=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Gse(n,t){return!t||"object"!==u0(t)&&"function"!=typeof t?Ok(n):t}function Ok(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function d0(n){return(d0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function qH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Yse=function(n){!function Wse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Ik(n,t)}(e,n);var t=function $se(n){var t=function qse(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=d0(n);if(t){var s=d0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Gse(this,r)}}(e);function e(){var i;Use(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return qH(Ok(i=t.call.apply(t,[this].concat(s))),"priority",130),qH(Ok(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return function jse(n,t,e){t&&GH(n.prototype,t),e&&GH(n,e)}(e,[{key:"parse",value:function(r,s){return n0("u"===s?4:s.length,r)}},{key:"set",value:function(r,s,o){return r.setUTCFullYear(o,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function h0(n){return(h0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Kse(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function YH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Fk(n,t){return(Fk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Jse(n,t){return!t||"object"!==h0(t)&&"function"!=typeof t?Lk(n):t}function Lk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function f0(n){return(f0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function KH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var toe=function(n){!function Qse(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Fk(n,t)}(e,n);var t=function Zse(n){var t=function eoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=f0(n);if(t){var s=f0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Jse(this,r)}}(e);function e(){var i;Kse(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return KH(Lk(i=t.call.apply(t,[this].concat(s))),"priority",120),KH(Lk(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return function Xse(n,t,e){t&&YH(n.prototype,t),e&&YH(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"Q":case"QQ":return ar(s.length,r);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});default:return o.quarter(r,{width:"wide",context:"formatting"})||o.quarter(r,{width:"abbreviated",context:"formatting"})||o.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,o){return r.setUTCMonth(3*(o-1),1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function p0(n){return(p0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function noe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function XH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Nk(n,t){return(Nk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function ooe(n,t){return!t||"object"!==p0(t)&&"function"!=typeof t?Vk(n):t}function Vk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function m0(n){return(m0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function QH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var loe=function(n){!function roe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Nk(n,t)}(e,n);var t=function soe(n){var t=function aoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=m0(n);if(t){var s=m0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ooe(this,r)}}(e);function e(){var i;noe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return QH(Vk(i=t.call.apply(t,[this].concat(s))),"priority",120),QH(Vk(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return function ioe(n,t,e){t&&XH(n.prototype,t),e&&XH(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"q":case"qq":return ar(s.length,r);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});default:return o.quarter(r,{width:"wide",context:"standalone"})||o.quarter(r,{width:"abbreviated",context:"standalone"})||o.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,o){return r.setUTCMonth(3*(o-1),1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function g0(n){return(g0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function coe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function ZH(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Bk(n,t){return(Bk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function foe(n,t){return!t||"object"!==g0(t)&&"function"!=typeof t?Hk(n):t}function Hk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _0(n){return(_0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function JH(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var moe=function(n){!function doe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Bk(n,t)}(e,n);var t=function hoe(n){var t=function poe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=_0(n);if(t){var s=_0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return foe(this,r)}}(e);function e(){var i;coe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return JH(Hk(i=t.call.apply(t,[this].concat(s))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),JH(Hk(i),"priority",110),i}return function uoe(n,t,e){t&&ZH(n.prototype,t),e&&ZH(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return d-1};switch(s){case"M":return yr(Ji(br_month,r),a);case"MM":return yr(ar(2,r),a);case"Mo":return yr(o.ordinalNumber(r,{unit:"month"}),a);case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});default:return o.month(r,{width:"wide",context:"formatting"})||o.month(r,{width:"abbreviated",context:"formatting"})||o.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function v0(n){return(v0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function goe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function e3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function zk(n,t){return(zk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function yoe(n,t){return!t||"object"!==v0(t)&&"function"!=typeof t?Uk(n):t}function Uk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function b0(n){return(b0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function t3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Coe=function(n){!function voe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&zk(n,t)}(e,n);var t=function boe(n){var t=function woe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=b0(n);if(t){var s=b0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return yoe(this,r)}}(e);function e(){var i;goe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return t3(Uk(i=t.call.apply(t,[this].concat(s))),"priority",110),t3(Uk(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return function _oe(n,t,e){t&&e3(n.prototype,t),e&&e3(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return d-1};switch(s){case"L":return yr(Ji(br_month,r),a);case"LL":return yr(ar(2,r),a);case"Lo":return yr(o.ordinalNumber(r,{unit:"month"}),a);case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});default:return o.month(r,{width:"wide",context:"standalone"})||o.month(r,{width:"abbreviated",context:"standalone"})||o.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function Doe(n,t){var e,i,r,s,o,a,c,d;Qn(1,arguments);var f=vf(),v=Kr(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==i?i:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==e?e:1),x=xk(n,t),B=new Date(0);B.setUTCFullYear(x,0,v),B.setUTCHours(0,0,0,0);var se=pd(B,t);return se}function n3(n,t){Qn(1,arguments);var e=Si(n),i=pd(e,t).getTime()-Doe(e,t).getTime();return Math.round(i/6048e5)+1}function y0(n){return(y0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Moe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function r3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function jk(n,t){return(jk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Toe(n,t){return!t||"object"!==y0(t)&&"function"!=typeof t?Wk(n):t}function Wk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function w0(n){return(w0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function s3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Roe=function(n){!function xoe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&jk(n,t)}(e,n);var t=function koe(n){var t=function Poe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=w0(n);if(t){var s=w0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Toe(this,r)}}(e);function e(){var i;Moe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return s3(Wk(i=t.call.apply(t,[this].concat(s))),"priority",100),s3(Wk(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return function Eoe(n,t,e){t&&r3(n.prototype,t),e&&r3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"w":return Ji(br_week,r);case"wo":return o.ordinalNumber(r,{unit:"week"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,o,a){return pd(function Aoe(n,t,e){Qn(2,arguments);var i=Si(n),r=Kr(t),s=n3(i,e)-r;return i.setUTCDate(i.getUTCDate()-7*s),i}(r,o,a),a)}}]),e}(ri);function o3(n){Qn(1,arguments);var t=Si(n),e=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(e+1,0,4),i.setUTCHours(0,0,0,0);var r=bf(i),s=new Date(0);s.setUTCFullYear(e,0,4),s.setUTCHours(0,0,0,0);var o=bf(s);return t.getTime()>=r.getTime()?e+1:t.getTime()>=o.getTime()?e:e-1}function Ioe(n){Qn(1,arguments);var t=o3(n),e=new Date(0);e.setUTCFullYear(t,0,4),e.setUTCHours(0,0,0,0);var i=bf(e);return i}function a3(n){Qn(1,arguments);var t=Si(n),e=bf(t).getTime()-Ioe(t).getTime();return Math.round(e/6048e5)+1}function C0(n){return(C0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Loe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function $k(n,t){return($k=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Hoe(n,t){return!t||"object"!==C0(t)&&"function"!=typeof t?Gk(n):t}function Gk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function D0(n){return(D0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function c3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Uoe=function(n){!function Voe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&$k(n,t)}(e,n);var t=function Boe(n){var t=function zoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=D0(n);if(t){var s=D0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Hoe(this,r)}}(e);function e(){var i;Loe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return c3(Gk(i=t.call.apply(t,[this].concat(s))),"priority",100),c3(Gk(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return function Noe(n,t,e){t&&l3(n.prototype,t),e&&l3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"I":return Ji(br_week,r);case"Io":return o.ordinalNumber(r,{unit:"week"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,o){return bf(function Foe(n,t){Qn(2,arguments);var e=Si(n),i=Kr(t),r=a3(e)-i;return e.setUTCDate(e.getUTCDate()-7*r),e}(r,o))}}]),e}(ri);function S0(n){return(S0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function joe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function u3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function qk(n,t){return(qk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function qoe(n,t){return!t||"object"!==S0(t)&&"function"!=typeof t?A0(n):t}function A0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function M0(n){return(M0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Yk(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Koe=[31,28,31,30,31,30,31,31,30,31,30,31],Xoe=[31,29,31,30,31,30,31,31,30,31,30,31],Qoe=function(n){!function $oe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&qk(n,t)}(e,n);var t=function Goe(n){var t=function Yoe(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=M0(n);if(t){var s=M0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return qoe(this,r)}}(e);function e(){var i;joe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Yk(A0(i=t.call.apply(t,[this].concat(s))),"priority",90),Yk(A0(i),"subPriority",1),Yk(A0(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return function Woe(n,t,e){t&&u3(n.prototype,t),e&&u3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"d":return Ji(br_date,r);case"do":return o.ordinalNumber(r,{unit:"date"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){var a=VH(r.getUTCFullYear()),c=r.getUTCMonth();return a?s>=1&&s<=Xoe[c]:s>=1&&s<=Koe[c]}},{key:"set",value:function(r,s,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function E0(n){return(E0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Zoe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function d3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Kk(n,t){return(Kk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function nae(n,t){return!t||"object"!==E0(t)&&"function"!=typeof t?x0(n):t}function x0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function k0(n){return(k0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Xk(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var rae=function(n){!function eae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Kk(n,t)}(e,n);var t=function tae(n){var t=function iae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=k0(n);if(t){var s=k0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return nae(this,r)}}(e);function e(){var i;Zoe(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return Xk(x0(i=t.call.apply(t,[this].concat(s))),"priority",90),Xk(x0(i),"subpriority",1),Xk(x0(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return function Joe(n,t,e){t&&d3(n.prototype,t),e&&d3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"D":case"DD":return Ji(br_dayOfYear,r);case"Do":return o.ordinalNumber(r,{unit:"date"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return VH(r.getUTCFullYear())?s>=1&&s<=366:s>=1&&s<=365}},{key:"set",value:function(r,s,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function Qk(n,t,e){var i,r,s,o,a,c,d,f;Qn(2,arguments);var v=vf(),x=Kr(null!==(i=null!==(r=null!==(s=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(a=e.locale)||void 0===a||null===(c=a.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==s?s:v.weekStartsOn)&&void 0!==r?r:null===(d=v.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==i?i:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var B=Si(n),se=Kr(t),me=B.getUTCDay(),Oe=se%7,Fe=(Oe+7)%7,et=(Fe<x?7:0)+se-me;return B.setUTCDate(B.getUTCDate()+et),B}function T0(n){return(T0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function sae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function h3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function Zk(n,t){return(Zk=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function cae(n,t){return!t||"object"!==T0(t)&&"function"!=typeof t?Jk(n):t}function Jk(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function P0(n){return(P0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function f3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var dae=function(n){!function aae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Zk(n,t)}(e,n);var t=function lae(n){var t=function uae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=P0(n);if(t){var s=P0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return cae(this,r)}}(e);function e(){var i;sae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return f3(Jk(i=t.call.apply(t,[this].concat(s))),"priority",90),f3(Jk(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return function oae(n,t,e){t&&h3(n.prototype,t),e&&h3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=Qk(r,o,a)).setUTCHours(0,0,0,0),r}}]),e}(ri);function R0(n){return(R0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function hae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function e1(n,t){return(e1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function gae(n,t){return!t||"object"!==R0(t)&&"function"!=typeof t?t1(n):t}function t1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function I0(n){return(I0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function m3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var vae=function(n){!function pae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&e1(n,t)}(e,n);var t=function mae(n){var t=function _ae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=I0(n);if(t){var s=I0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return gae(this,r)}}(e);function e(){var i;hae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return m3(t1(i=t.call.apply(t,[this].concat(s))),"priority",90),m3(t1(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return function fae(n,t,e){t&&p3(n.prototype,t),e&&p3(n,e)}(e,[{key:"parse",value:function(r,s,o,a){var c=function(f){var v=7*Math.floor((f-1)/7);return(f+a.weekStartsOn+6)%7+v};switch(s){case"e":case"ee":return yr(ar(s.length,r),c);case"eo":return yr(o.ordinalNumber(r,{unit:"day"}),c);case"eee":return o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});case"eeeee":return o.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=Qk(r,o,a)).setUTCHours(0,0,0,0),r}}]),e}(ri);function O0(n){return(O0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function bae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function g3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function n1(n,t){return(n1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Dae(n,t){return!t||"object"!==O0(t)&&"function"!=typeof t?r1(n):t}function r1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function F0(n){return(F0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function _3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Aae=function(n){!function wae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&n1(n,t)}(e,n);var t=function Cae(n){var t=function Sae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=F0(n);if(t){var s=F0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Dae(this,r)}}(e);function e(){var i;bae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return _3(r1(i=t.call.apply(t,[this].concat(s))),"priority",90),_3(r1(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return function yae(n,t,e){t&&g3(n.prototype,t),e&&g3(n,e)}(e,[{key:"parse",value:function(r,s,o,a){var c=function(f){var v=7*Math.floor((f-1)/7);return(f+a.weekStartsOn+6)%7+v};switch(s){case"c":case"cc":return yr(ar(s.length,r),c);case"co":return yr(o.ordinalNumber(r,{unit:"day"}),c);case"ccc":return o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});case"ccccc":return o.day(r,{width:"narrow",context:"standalone"});case"cccccc":return o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"});default:return o.day(r,{width:"wide",context:"standalone"})||o.day(r,{width:"abbreviated",context:"standalone"})||o.day(r,{width:"short",context:"standalone"})||o.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,o,a){return(r=Qk(r,o,a)).setUTCHours(0,0,0,0),r}}]),e}(ri);function L0(n){return(L0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Eae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function s1(n,t){return(s1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Pae(n,t){return!t||"object"!==L0(t)&&"function"!=typeof t?o1(n):t}function o1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function N0(n){return(N0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function b3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Iae=function(n){!function kae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&s1(n,t)}(e,n);var t=function Tae(n){var t=function Rae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=N0(n);if(t){var s=N0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Pae(this,r)}}(e);function e(){var i;Eae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return b3(o1(i=t.call.apply(t,[this].concat(s))),"priority",90),b3(o1(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return function xae(n,t,e){t&&v3(n.prototype,t),e&&v3(n,e)}(e,[{key:"parse",value:function(r,s,o){var a=function(d){return 0===d?7:d};switch(s){case"i":case"ii":return ar(s.length,r);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return yr(o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiii":return yr(o.day(r,{width:"narrow",context:"formatting"}),a);case"iiiiii":return yr(o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a);default:return yr(o.day(r,{width:"wide",context:"formatting"})||o.day(r,{width:"abbreviated",context:"formatting"})||o.day(r,{width:"short",context:"formatting"})||o.day(r,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(r,s){return s>=1&&s<=7}},{key:"set",value:function(r,s,o){return r=function Mae(n,t){Qn(2,arguments);var e=Kr(t);e%7==0&&(e-=7);var i=1,r=Si(n),s=r.getUTCDay(),c=((e%7+7)%7<i?7:0)+e-s;return r.setUTCDate(r.getUTCDate()+c),r}(r,o),r.setUTCHours(0,0,0,0),r}}]),e}(ri);function V0(n){return(V0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Oae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function y3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function a1(n,t){return(a1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Vae(n,t){return!t||"object"!==V0(t)&&"function"!=typeof t?l1(n):t}function l1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function B0(n){return(B0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function w3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Hae=function(n){!function Lae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&a1(n,t)}(e,n);var t=function Nae(n){var t=function Bae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=B0(n);if(t){var s=B0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Vae(this,r)}}(e);function e(){var i;Oae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return w3(l1(i=t.call.apply(t,[this].concat(s))),"priority",80),w3(l1(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return function Fae(n,t,e){t&&y3(n.prototype,t),e&&y3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"a":case"aa":case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(Ak(o),0,0,0),r}}]),e}(ri);function H0(n){return(H0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function zae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function C3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function c1(n,t){return(c1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function $ae(n,t){return!t||"object"!==H0(t)&&"function"!=typeof t?u1(n):t}function u1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function z0(n){return(z0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function D3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var qae=function(n){!function jae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&c1(n,t)}(e,n);var t=function Wae(n){var t=function Gae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=z0(n);if(t){var s=z0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return $ae(this,r)}}(e);function e(){var i;zae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return D3(u1(i=t.call.apply(t,[this].concat(s))),"priority",80),D3(u1(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return function Uae(n,t,e){t&&C3(n.prototype,t),e&&C3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"b":case"bb":case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(Ak(o),0,0,0),r}}]),e}(ri);function U0(n){return(U0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Yae(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function S3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function d1(n,t){return(d1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Zae(n,t){return!t||"object"!==U0(t)&&"function"!=typeof t?h1(n):t}function h1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function j0(n){return(j0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function A3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var ele=function(n){!function Xae(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&d1(n,t)}(e,n);var t=function Qae(n){var t=function Jae(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=j0(n);if(t){var s=j0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Zae(this,r)}}(e);function e(){var i;Yae(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return A3(h1(i=t.call.apply(t,[this].concat(s))),"priority",80),A3(h1(i),"incompatibleTokens",["a","b","t","T"]),i}return function Kae(n,t,e){t&&S3(n.prototype,t),e&&S3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})||o.dayPeriod(r,{width:"abbreviated",context:"formatting"})||o.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,o){return r.setUTCHours(Ak(o),0,0,0),r}}]),e}(ri);function W0(n){return(W0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function tle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function f1(n,t){return(f1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function sle(n,t){return!t||"object"!==W0(t)&&"function"!=typeof t?p1(n):t}function p1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function $0(n){return($0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function E3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var ale=function(n){!function ile(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&f1(n,t)}(e,n);var t=function rle(n){var t=function ole(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=$0(n);if(t){var s=$0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return sle(this,r)}}(e);function e(){var i;tle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return E3(p1(i=t.call.apply(t,[this].concat(s))),"priority",70),E3(p1(i),"incompatibleTokens",["H","K","k","t","T"]),i}return function nle(n,t,e){t&&M3(n.prototype,t),e&&M3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"h":return Ji(br_hour12h,r);case"ho":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=12}},{key:"set",value:function(r,s,o){var a=r.getUTCHours()>=12;return r.setUTCHours(a&&o<12?o+12:a||12!==o?o:0,0,0,0),r}}]),e}(ri);function G0(n){return(G0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function lle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function x3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function m1(n,t){return(m1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function hle(n,t){return!t||"object"!==G0(t)&&"function"!=typeof t?g1(n):t}function g1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function q0(n){return(q0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function k3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var ple=function(n){!function ule(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&m1(n,t)}(e,n);var t=function dle(n){var t=function fle(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=q0(n);if(t){var s=q0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return hle(this,r)}}(e);function e(){var i;lle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return k3(g1(i=t.call.apply(t,[this].concat(s))),"priority",70),k3(g1(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return function cle(n,t,e){t&&x3(n.prototype,t),e&&x3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"H":return Ji(br_hour23h,r);case"Ho":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=23}},{key:"set",value:function(r,s,o){return r.setUTCHours(o,0,0,0),r}}]),e}(ri);function Y0(n){return(Y0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function mle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function T3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function _1(n,t){return(_1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function ble(n,t){return!t||"object"!==Y0(t)&&"function"!=typeof t?v1(n):t}function v1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function K0(n){return(K0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function P3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var wle=function(n){!function _le(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&_1(n,t)}(e,n);var t=function vle(n){var t=function yle(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=K0(n);if(t){var s=K0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ble(this,r)}}(e);function e(){var i;mle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return P3(v1(i=t.call.apply(t,[this].concat(s))),"priority",70),P3(v1(i),"incompatibleTokens",["h","H","k","t","T"]),i}return function gle(n,t,e){t&&T3(n.prototype,t),e&&T3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"K":return Ji(br_hour11h,r);case"Ko":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,o){var a=r.getUTCHours()>=12;return r.setUTCHours(a&&o<12?o+12:o,0,0,0),r}}]),e}(ri);function X0(n){return(X0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Cle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function R3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function b1(n,t){return(b1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Mle(n,t){return!t||"object"!==X0(t)&&"function"!=typeof t?y1(n):t}function y1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Q0(n){return(Q0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function I3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var xle=function(n){!function Sle(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&b1(n,t)}(e,n);var t=function Ale(n){var t=function Ele(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=Q0(n);if(t){var s=Q0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Mle(this,r)}}(e);function e(){var i;Cle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return I3(y1(i=t.call.apply(t,[this].concat(s))),"priority",70),I3(y1(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return function Dle(n,t,e){t&&R3(n.prototype,t),e&&R3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"k":return Ji(br_hour24h,r);case"ko":return o.ordinalNumber(r,{unit:"hour"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=24}},{key:"set",value:function(r,s,o){return r.setUTCHours(o<=24?o%24:o,0,0,0),r}}]),e}(ri);function Z0(n){return(Z0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function kle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function O3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function w1(n,t){return(w1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Ile(n,t){return!t||"object"!==Z0(t)&&"function"!=typeof t?C1(n):t}function C1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function J0(n){return(J0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function F3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Fle=function(n){!function Ple(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&w1(n,t)}(e,n);var t=function Rle(n){var t=function Ole(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=J0(n);if(t){var s=J0(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Ile(this,r)}}(e);function e(){var i;kle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return F3(C1(i=t.call.apply(t,[this].concat(s))),"priority",60),F3(C1(i),"incompatibleTokens",["t","T"]),i}return function Tle(n,t,e){t&&O3(n.prototype,t),e&&O3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"m":return Ji(br_minute,r);case"mo":return o.ordinalNumber(r,{unit:"minute"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,o){return r.setUTCMinutes(o,0,0),r}}]),e}(ri);function eC(n){return(eC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Lle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function L3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function D1(n,t){return(D1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function Hle(n,t){return!t||"object"!==eC(t)&&"function"!=typeof t?S1(n):t}function S1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function tC(n){return(tC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function N3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ule=function(n){!function Vle(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&D1(n,t)}(e,n);var t=function Ble(n){var t=function zle(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=tC(n);if(t){var s=tC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Hle(this,r)}}(e);function e(){var i;Lle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return N3(S1(i=t.call.apply(t,[this].concat(s))),"priority",50),N3(S1(i),"incompatibleTokens",["t","T"]),i}return function Nle(n,t,e){t&&L3(n.prototype,t),e&&L3(n,e)}(e,[{key:"parse",value:function(r,s,o){switch(s){case"s":return Ji(br_second,r);case"so":return o.ordinalNumber(r,{unit:"second"});default:return ar(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,o){return r.setUTCSeconds(o,0),r}}]),e}(ri);function nC(n){return(nC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function jle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function V3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function A1(n,t){return(A1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function qle(n,t){return!t||"object"!==nC(t)&&"function"!=typeof t?M1(n):t}function M1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function iC(n){return(iC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function B3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Kle=function(n){!function $le(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&A1(n,t)}(e,n);var t=function Gle(n){var t=function Yle(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=iC(n);if(t){var s=iC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return qle(this,r)}}(e);function e(){var i;jle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return B3(M1(i=t.call.apply(t,[this].concat(s))),"priority",30),B3(M1(i),"incompatibleTokens",["t","T"]),i}return function Wle(n,t,e){t&&V3(n.prototype,t),e&&V3(n,e)}(e,[{key:"parse",value:function(r,s){return yr(ar(s.length,r),function(c){return Math.floor(c*Math.pow(10,3-s.length))})}},{key:"set",value:function(r,s,o){return r.setUTCMilliseconds(o),r}}]),e}(ri);function rC(n){return(rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Xle(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function H3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function E1(n,t){return(E1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function ece(n,t){return!t||"object"!==rC(t)&&"function"!=typeof t?x1(n):t}function x1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function sC(n){return(sC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function z3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var nce=function(n){!function Zle(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&E1(n,t)}(e,n);var t=function Jle(n){var t=function tce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=sC(n);if(t){var s=sC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ece(this,r)}}(e);function e(){var i;Xle(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return z3(x1(i=t.call.apply(t,[this].concat(s))),"priority",10),z3(x1(i),"incompatibleTokens",["t","T","x"]),i}return function Qle(n,t,e){t&&H3(n.prototype,t),e&&H3(n,e)}(e,[{key:"parse",value:function(r,s){switch(s){case"X":return hl(dl_basicOptionalMinutes,r);case"XX":return hl(dl_basic,r);case"XXXX":return hl(dl_basicOptionalSeconds,r);case"XXXXX":return hl(dl_extendedOptionalSeconds,r);default:return hl(dl_extended,r)}}},{key:"set",value:function(r,s,o){return s.timestampIsSet?r:new Date(r.getTime()-o)}}]),e}(ri);function oC(n){return(oC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function ice(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function U3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function k1(n,t){return(k1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function ace(n,t){return!t||"object"!==oC(t)&&"function"!=typeof t?T1(n):t}function T1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function aC(n){return(aC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function j3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var cce=function(n){!function sce(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&k1(n,t)}(e,n);var t=function oce(n){var t=function lce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=aC(n);if(t){var s=aC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ace(this,r)}}(e);function e(){var i;ice(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return j3(T1(i=t.call.apply(t,[this].concat(s))),"priority",10),j3(T1(i),"incompatibleTokens",["t","T","X"]),i}return function rce(n,t,e){t&&U3(n.prototype,t),e&&U3(n,e)}(e,[{key:"parse",value:function(r,s){switch(s){case"x":return hl(dl_basicOptionalMinutes,r);case"xx":return hl(dl_basic,r);case"xxxx":return hl(dl_basicOptionalSeconds,r);case"xxxxx":return hl(dl_extendedOptionalSeconds,r);default:return hl(dl_extended,r)}}},{key:"set",value:function(r,s,o){return s.timestampIsSet?r:new Date(r.getTime()-o)}}]),e}(ri);function lC(n){return(lC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function uce(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function W3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function P1(n,t){return(P1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function pce(n,t){return!t||"object"!==lC(t)&&"function"!=typeof t?R1(n):t}function R1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function cC(n){return(cC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function $3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var gce=function(n){!function hce(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&P1(n,t)}(e,n);var t=function fce(n){var t=function mce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=cC(n);if(t){var s=cC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return pce(this,r)}}(e);function e(){var i;uce(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return $3(R1(i=t.call.apply(t,[this].concat(s))),"priority",40),$3(R1(i),"incompatibleTokens","*"),i}return function dce(n,t,e){t&&W3(n.prototype,t),e&&W3(n,e)}(e,[{key:"parse",value:function(r){return LH(r)}},{key:"set",value:function(r,s,o){return[new Date(1e3*o),{timestampIsSet:!0}]}}]),e}(ri);function uC(n){return(uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function _ce(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function I1(n,t){return(I1=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i})(n,t)}function wce(n,t){return!t||"object"!==uC(t)&&"function"!=typeof t?O1(n):t}function O1(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function dC(n){return(dC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function q3(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Dce=function(n){!function bce(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&I1(n,t)}(e,n);var t=function yce(n){var t=function Cce(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var r,i=dC(n);if(t){var s=dC(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return wce(this,r)}}(e);function e(){var i;_ce(this,e);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return q3(O1(i=t.call.apply(t,[this].concat(s))),"priority",20),q3(O1(i),"incompatibleTokens","*"),i}return function vce(n,t,e){t&&G3(n.prototype,t),e&&G3(n,e)}(e,[{key:"parse",value:function(r){return LH(r)}},{key:"set",value:function(r,s,o){return[new Date(o),{timestampIsSet:!0}]}}]),e}(ri),Sce={G:new yse,y:new Ese,Y:new Ose,R:new zse,u:new Yse,Q:new toe,q:new loe,M:new moe,L:new Coe,w:new Roe,I:new Uoe,d:new Qoe,D:new rae,E:new dae,e:new vae,c:new Aae,i:new Iae,a:new Hae,b:new qae,B:new ele,h:new ale,H:new ple,K:new wle,k:new xle,m:new Fle,s:new Ule,S:new Kle,X:new nce,x:new cce,t:new gce,T:new Dce};function hC(n){return(hC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Y3(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function Ace(n,t){if(n){if("string"==typeof n)return K3(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if("Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return K3(n,t)}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var i=0,r=function(){};return{s:r,n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(d){throw d},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){e=n[Symbol.iterator]()},n:function(){var d=e.next();return s=d.done,d},e:function(d){o=!0,a=d},f:function(){try{!s&&null!=e.return&&e.return()}finally{if(o)throw a}}}}function K3(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=n[e];return i}var Mce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ece=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xce=/^'([^]*?)'?$/,kce=/''/g,Tce=/\S/,Pce=/[a-zA-Z]/;function Rce(n,t,e,i){var r,s,o,a,c,d,f,v,x,B,se,me,Oe,Fe,et,We,ot,Tt;Qn(3,arguments);var Wt=String(n),Sn=String(t),ti=vf(),Hr=null!==(r=null!==(s=null==i?void 0:i.locale)&&void 0!==s?s:ti.locale)&&void 0!==r?r:DH;if(!Hr.match)throw new RangeError("locale must contain match property");var Wi=Kr(null!==(o=null!==(a=null!==(c=null!==(d=null==i?void 0:i.firstWeekContainsDate)&&void 0!==d?d:null==i||null===(f=i.locale)||void 0===f||null===(v=f.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==c?c:ti.firstWeekContainsDate)&&void 0!==a?a:null===(x=ti.locale)||void 0===x||null===(B=x.options)||void 0===B?void 0:B.firstWeekContainsDate)&&void 0!==o?o:1);if(!(Wi>=1&&Wi<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Gs=Kr(null!==(se=null!==(me=null!==(Oe=null!==(Fe=null==i?void 0:i.weekStartsOn)&&void 0!==Fe?Fe:null==i||null===(et=i.locale)||void 0===et||null===(We=et.options)||void 0===We?void 0:We.weekStartsOn)&&void 0!==Oe?Oe:ti.weekStartsOn)&&void 0!==me?me:null===(ot=ti.locale)||void 0===ot||null===(Tt=ot.options)||void 0===Tt?void 0:Tt.weekStartsOn)&&void 0!==se?se:0);if(!(Gs>=0&&Gs<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===Sn)return""===Wt?Si(e):new Date(NaN);var Bt,qs={firstWeekContainsDate:Wi,weekStartsOn:Gs,locale:Hr},Ys=[new dse],lo=Sn.match(Ece).map(function(Ei){var On=Ei[0];return On in _k?(0,_k[On])(Ei,Hr.formatLong):Ei}).join("").match(Mce),$i=[],wt=Y3(lo);try{var en=function(){var On=Bt.value;!(null!=i&&i.useAdditionalWeekYearTokens)&&xH(On)&&Qw(On,Sn,n),(null==i||!i.useAdditionalDayOfYearTokens)&&EH(On)&&Qw(On,Sn,n);var ps=On[0],iu=Sce[ps];if(iu){var ez=iu.incompatibleTokens;if(Array.isArray(ez)){var tz=$i.find(function(nz){return ez.includes(nz.token)||nz.token===ps});if(tz)throw new RangeError("The format string mustn't contain `".concat(tz.fullToken,"` and `").concat(On,"` at the same time"))}else if("*"===iu.incompatibleTokens&&$i.length>0)throw new RangeError("The format string mustn't contain `".concat(On,"` and any other token at the same time"));$i.push({token:ps,fullToken:On});var L1=iu.run(Wt,On,Hr.match,qs);if(!L1)return{v:new Date(NaN)};Ys.push(L1.setter),Wt=L1.rest}else{if(ps.match(Pce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ps+"`");if("''"===On?On="'":"'"===ps&&(On=Ice(On)),0!==Wt.indexOf(On))return{v:new Date(NaN)};Wt=Wt.slice(On.length)}};for(wt.s();!(Bt=wt.n()).done;){var kn=en();if("object"===hC(kn))return kn.v}}catch(Ei){wt.e(Ei)}finally{wt.f()}if(Wt.length>0&&Tce.test(Wt))return new Date(NaN);var Gi=Ys.map(function(Ei){return Ei.priority}).sort(function(Ei,On){return On-Ei}).filter(function(Ei,On,ps){return ps.indexOf(Ei)===On}).map(function(Ei){return Ys.filter(function(On){return On.priority===Ei}).sort(function(On,ps){return ps.subPriority-On.subPriority})}).map(function(Ei){return Ei[0]}),co=Si(e);if(isNaN(co.getTime()))return new Date(NaN);var Og,zr=SH(co,qw(co)),Da={},vi=Y3(Gi);try{for(vi.s();!(Og=vi.n()).done;){var fC=Og.value;if(!fC.validate(zr,qs))return new Date(NaN);var wr=fC.set(zr,Da,qs);Array.isArray(wr)?(zr=wr[0],nse(Da,wr[1])):zr=wr}}catch(Ei){vi.e(Ei)}finally{vi.f()}return zr}function Ice(n){return n.match(xce)[1].replace(kce,"'")}const nu_y=function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return Un("yy"===e?r%100:r,e.length)},nu_M=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Un(i+1,2)},nu_d=function(t,e){return Un(t.getUTCDate(),e.length)},nu_h=function(t,e){return Un(t.getUTCHours()%12||12,e.length)},nu_H=function(t,e){return Un(t.getUTCHours(),e.length)},nu_m=function(t,e){return Un(t.getUTCMinutes(),e.length)},nu_s=function(t,e){return Un(t.getUTCSeconds(),e.length)},nu_S=function(t,e){var i=e.length,r=t.getUTCMilliseconds();return Un(Math.floor(r*Math.pow(10,i-3)),e.length)};function X3(n,t){var e=n>0?"-":"+",i=Math.abs(n),r=Math.floor(i/60),s=i%60;if(0===s)return e+String(r);var o=t||"";return e+String(r)+o+Un(s,2)}function Q3(n,t){return n%60==0?(n>0?"-":"+")+Un(Math.abs(n)/60,2):md(n,t)}function md(n,t){var e=t||"",i=n>0?"-":"+",r=Math.abs(n);return i+Un(Math.floor(r/60),2)+e+Un(r%60,2)}const Vce={G:function(t,e,i){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});default:return i.era(r,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var r=t.getUTCFullYear();return i.ordinalNumber(r>0?r:1-r,{unit:"year"})}return nu_y(t,e)},Y:function(t,e,i,r){var s=xk(t,r),o=s>0?s:1-s;return"YY"===e?Un(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):Un(o,e.length)},R:function(t,e){return Un(o3(t),e.length)},u:function(t,e){return Un(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Un(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Un(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i){var r=t.getUTCMonth();switch(e){case"M":case"MM":return nu_M(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return Un(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,r){var s=n3(t,r);return"wo"===e?i.ordinalNumber(s,{unit:"week"}):Un(s,e.length)},I:function(t,e,i){var r=a3(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):Un(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):nu_d(t,e)},D:function(t,e,i){var r=function Fce(n){Qn(1,arguments);var t=Si(n),e=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime();return Math.floor((e-i)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(r,{unit:"dayOfYear"}):Un(r,e.length)},E:function(t,e,i){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,i,r){var s=t.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Un(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,i,r){var s=t.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Un(o,e.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(s,{width:"narrow",context:"standalone"});case"cccccc":return i.day(s,{width:"short",context:"standalone"});default:return i.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,i){var r=t.getUTCDay(),s=0===r?7:r;switch(e){case"i":return String(s);case"ii":return Un(s,e.length);case"io":return i.ordinalNumber(s,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,r=t.getUTCHours();switch(s=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,r=t.getUTCHours();switch(s=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return nu_h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):nu_H(t,e)},K:function(t,e,i){var r=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):Un(r,e.length)},k:function(t,e,i){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):Un(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):nu_m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):nu_s(t,e)},S:function(t,e){return nu_S(t,e)},X:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Q3(o);case"XXXX":case"XX":return md(o);default:return md(o,":")}},x:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return Q3(o);case"xxxx":case"xx":return md(o);default:return md(o,":")}},O:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+X3(o,":");default:return"GMT"+md(o,":")}},z:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+X3(o,":");default:return"GMT"+md(o,":")}},t:function(t,e,i,r){return Un(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,r){return Un((r._originalDate||t).getTime(),e.length)}};var Bce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zce=/^'([^]*?)'?$/,Uce=/''/g,jce=/[a-zA-Z]/;function $ce(n){var t=n.match(zce);return t?t[1].replace(Uce,"'"):n}function Z3(n,t){Qn(2,arguments);var e=Si(n),i=Kr(t);if(isNaN(i))return new Date(NaN);if(!i)return e;var r=e.getDate(),s=new Date(e.getTime());s.setMonth(e.getMonth()+i+1,0);var o=s.getDate();return r>=o?s:(e.setFullYear(s.getFullYear(),s.getMonth(),r),e)}function F1(n,t){const e=Array(n);for(let i=0;i<n;i++)e[i]=t(i);return e}const Yce={long:"LLLL",short:"LLL",narrow:"LLLLL"},Kce={long:"EEEE",short:"EEE",narrow:"EEEEE"};let J3=(()=>{class n extends sr{constructor(e){super(),this.setLocale(e)}getYear(e){return function gre(n){return Qn(1,arguments),Si(n).getFullYear()}(e)}getMonth(e){return function _re(n){return Qn(1,arguments),Si(n).getMonth()}(e)}getDate(e){return function vre(n){return Qn(1,arguments),Si(n).getDate()}(e)}getDayOfWeek(e){return function bre(n){return Qn(1,arguments),Si(n).getDay()}(e)}getMonthNames(e){const i=Yce[e];return F1(12,r=>this.format(new Date(2017,r,1),i))}getDateNames(){const e="undefined"!=typeof Intl?new Intl.DateTimeFormat(this.locale.code,{day:"numeric",timeZone:"utc"}):null;return F1(31,i=>{if(e){const r=new Date;return r.setUTCFullYear(2017,0,i+1),r.setUTCHours(0,0,0,0),e.format(r).replace(/[\u200e\u200f]/g,"")}return i+""})}getDayOfWeekNames(e){const i=Kce[e];return F1(7,r=>this.format(new Date(2017,0,r+1),i))}getYearName(e){return this.format(e,"y")}getFirstDayOfWeek(){var e,i;return null!==(i=null===(e=this.locale.options)||void 0===e?void 0:e.weekStartsOn)&&void 0!==i?i:0}getNumDaysInMonth(e){return function yre(n){Qn(1,arguments);var t=Si(n),e=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(e,i+1,0),r.setHours(0,0,0,0),r.getDate()}(e)}clone(e){return new Date(e.getTime())}createDate(e,i,r){const s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s.getMonth(),s}today(){return new Date}parse(e,i){if("string"==typeof e&&e.length>0){const r=uk(e);if(this.isValid(r))return r;const s=Array.isArray(i)?i:[i];if(!i.length)throw Error("Formats array must not be empty.");for(const o of s){const a=Rce(e,o,new Date,{locale:this.locale});if(this.isValid(a))return a}return this.invalid()}return"number"==typeof e?new Date(e):e instanceof Date?this.clone(e):null}format(e,i){if(!this.isValid(e))throw Error("DateFnsAdapter: Cannot format invalid date.");return function Wce(n,t,e){var i,r,s,o,a,c,d,f,v,x,B,se,me,Oe,Fe,et,We,ot;Qn(2,arguments);var Tt=String(t),Wt=vf(),Sn=null!==(i=null!==(r=null==e?void 0:e.locale)&&void 0!==r?r:Wt.locale)&&void 0!==i?i:DH,ti=Kr(null!==(s=null!==(o=null!==(a=null!==(c=null==e?void 0:e.firstWeekContainsDate)&&void 0!==c?c:null==e||null===(d=e.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:Wt.firstWeekContainsDate)&&void 0!==o?o:null===(v=Wt.locale)||void 0===v||null===(x=v.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==s?s:1);if(!(ti>=1&&ti<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Hr=Kr(null!==(B=null!==(se=null!==(me=null!==(Oe=null==e?void 0:e.weekStartsOn)&&void 0!==Oe?Oe:null==e||null===(Fe=e.locale)||void 0===Fe||null===(et=Fe.options)||void 0===et?void 0:et.weekStartsOn)&&void 0!==me?me:Wt.weekStartsOn)&&void 0!==se?se:null===(We=Wt.locale)||void 0===We||null===(ot=We.options)||void 0===ot?void 0:ot.weekStartsOn)&&void 0!==B?B:0);if(!(Hr>=0&&Hr<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Sn.localize)throw new RangeError("locale must contain localize property");if(!Sn.formatLong)throw new RangeError("locale must contain formatLong property");var Wi=Si(n);if(!hk(Wi))throw new RangeError("Invalid time value");var Gs=qw(Wi),qs=SH(Wi,Gs),Ys={firstWeekContainsDate:ti,weekStartsOn:Hr,locale:Sn,_originalDate:Wi};return Tt.match(Hce).map(function($i){var wt=$i[0];return"p"===wt||"P"===wt?(0,_k[wt])($i,Sn.formatLong):$i}).join("").match(Bce).map(function($i){if("''"===$i)return"'";var wt=$i[0];if("'"===wt)return $ce($i);var Bt=Vce[wt];if(Bt)return!(null!=e&&e.useAdditionalWeekYearTokens)&&xH($i)&&Qw($i,t,String(n)),!(null!=e&&e.useAdditionalDayOfYearTokens)&&EH($i)&&Qw($i,t,String(n)),Bt(qs,$i,Sn.localize,Ys);if(wt.match(jce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+wt+"`");return $i}).join("")}(e,i,{locale:this.locale})}addCalendarYears(e,i){return function Gce(n,t){Qn(2,arguments);var e=Kr(t);return Z3(n,12*e)}(e,i)}addCalendarMonths(e,i){return Z3(e,i)}addCalendarDays(e,i){return function qce(n,t){Qn(2,arguments);var e=Si(n),i=Kr(t);return isNaN(i)?new Date(NaN):(i&&e.setDate(e.getDate()+i),e)}(e,i)}toIso8601(e){return Yw(e,{representation:"date"})}deserialize(e){if("string"==typeof e){if(!e)return null;const i=uk(e);if(this.isValid(i))return i}return super.deserialize(e)}isDateInstance(e){return lH(e)}isValid(e){return hk(e)}invalid(){return new Date(NaN)}}return n.\u0275fac=function(e){return new(e||n)(Re(YM,8))},n.\u0275prov=dt({token:n,factory:n.\u0275fac}),n})();const Xce={parse:{dateInput:"P"},display:{dateInput:"P",monthYearLabel:"LLL uuuu",dateA11yLabel:"PP",monthYearA11yLabel:"LLLL uuuu"}};let Qce=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n}),n.\u0275inj=Ht({providers:[{provide:sr,useClass:J3,deps:[YM]}]}),n})();function Zce(){const n=new pf;return n.link=(t,e,i)=>`<a href="${t}" ${null===e?"":'title="'+e+'"'} target="_blank">${i}</a>`,{renderer:n,gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}function Jce(n){return n.getBaseHrefFromDOM()}!function I$(n,t,e){(function rj(n,t,e){"string"!=typeof t&&(e=t,t=n[xt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Vh[t]=n,e&&(Vh[t][xt.ExtraData]=e)})(n,t,e)}(XJ,"de");let eue=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ut({type:n,bootstrap:[VK]}),n.\u0275inj=Ht({providers:[{provide:fa,useValue:"de"},{provide:Qy,useClass:wK},{provide:sr,useClass:J3},{provide:Ja,useValue:Xce},{provide:YM,useValue:Ree},{provide:jA,useFactory:Jce,deps:[Rb]},{provide:Kw,useValue:{fullLibraryLoader:()=>He.e(225).then(He.bind(He,7225))}}],imports:[aZ,YO,NY,aV,Qce,n8,LZ.forRoot({sanitize:jn.NONE,markedOptions:{provide:SB,useFactory:Zce}}),WZ,YK,Fne,KY,B9,qee,IJ,kte,BE,Q8,lX,VJ,gV,gie,OK,ty,_te,mx,fg,aV,G7,ste,$B,jee,K9,YJ,Kh,P9,r6,WK,Xy,CV.forRoot({scrollOffset:120,duration:11}),j9,mre]}),n})();(function AW(){if(XI)throw new Error("Cannot enable prod mode after platform setup.");KI=!1})(),P5().bootstrapModule(eue).catch(n=>console.error(n))},7489:function(Ze,re,He){var I;Ze=He.nmd(Ze),function(){var J,ce="Expected a function",Q="__lodash_hash_undefined__",$="__lodash_placeholder__",k=32,H=128,_e=1/0,Ce=9007199254740991,X=NaN,C=4294967295,D=[["ary",H],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",k],["partialRight",64],["rearg",256]],A="[object Arguments]",N="[object Array]",z="[object Boolean]",pe="[object Date]",ge="[object Error]",ye="[object Function]",ke="[object GeneratorFunction]",Ae="[object Map]",Ue="[object Number]",De="[object Object]",je="[object Promise]",q="[object RegExp]",le="[object Set]",Ee="[object String]",Xe="[object Symbol]",Ke="[object WeakMap]",pt="[object ArrayBuffer]",Vt="[object DataView]",ln="[object Float32Array]",Tn="[object Float64Array]",Ne="[object Int8Array]",ae="[object Int16Array]",de="[object Int32Array]",$e="[object Uint8Array]",tt="[object Uint8ClampedArray]",at="[object Uint16Array]",gt="[object Uint32Array]",hn=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,hi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,Li=/[&<>"']/g,bi=RegExp(Fn.source),ms=RegExp(Li.source),fi=/<%-([\s\S]+?)%>/g,Wn=/<%([\s\S]+?)%>/g,Fs=/<%=([\s\S]+?)%>/g,Ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ks=/^\w*$/,Or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xi=/[\\^$.*+?()[\]{}|]/g,fl=RegExp(xi.source),pl=/^\s+/,ea=/\s/,vC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lr=/\{\n\/\* \[wrapped with (.+)\] \*/,uc=/,? & /,Ns=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Z1=/[()=,{}\[\]\/\s]/,bC=/\\(\\)?/g,Vg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gd=/\w*$/,Cf=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,yC=/^\[object .+?Constructor\]$/,Bg=/^0o[0-7]+$/i,Hg=/^(?:0|[1-9]\d*)$/,wC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_d=/($^)/,CC=/['\n\r\u2028\u2029\\]/g,vd="\\ud800-\\udfff",pi="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ni="\\u2700-\\u27bf",bd="a-z\\xdf-\\xf6\\xf8-\\xff",yd="A-Z\\xc0-\\xd6\\xd8-\\xde",Ug="\\ufe0e\\ufe0f",Pn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Af="["+vd+"]",AC="["+Pn+"]",nt="["+pi+"]",su="\\d+",fn="["+Ni+"]",$n="["+bd+"]",jg="[^"+vd+Pn+su+Ni+bd+yd+"]",Wg="\\ud83c[\\udffb-\\udfff]",ou="[^"+vd+"]",Xr="(?:\\ud83c[\\udde6-\\uddff]){2}",$g="[\\ud800-\\udbff][\\udc00-\\udfff]",dc="["+yd+"]",Fo="(?:"+$n+"|"+jg+")",J1="(?:"+dc+"|"+jg+")",xC="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",kC="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",TC="(?:"+nt+"|"+Wg+")?",Gg="["+Ug+"]?",gs=Gg+TC+"(?:\\u200d(?:"+[ou,Xr,$g].join("|")+")"+Gg+TC+")*",Zn="(?:"+[fn,Xr,$g].join("|")+")"+gs,nT="(?:"+[ou+nt+"?",nt,Xr,$g,Af].join("|")+")",iT=RegExp("['\u2019]","g"),rT=RegExp(nt,"g"),dt=RegExp(Wg+"(?="+Wg+")|"+nT+gs,"g"),sT=RegExp([dc+"?"+$n+"+"+xC+"(?="+[AC,dc,"$"].join("|")+")",J1+"+"+kC+"(?="+[AC,dc+Fo,"$"].join("|")+")",dc+"?"+Fo+"+"+xC,dc+"+"+kC,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",su,Zn].join("|"),"g"),Ht=RegExp("[\\u200d"+vd+pi+Ug+"]"),Mf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],RC=-1,yi={};yi[ln]=yi[Tn]=yi[Ne]=yi[ae]=yi[de]=yi[$e]=yi[tt]=yi[at]=yi[gt]=!0,yi[A]=yi[N]=yi[pt]=yi[z]=yi[Vt]=yi[pe]=yi[ge]=yi[ye]=yi[Ae]=yi[Ue]=yi[De]=yi[q]=yi[le]=yi[Ee]=yi[Ke]=!1;var li={};li[A]=li[N]=li[pt]=li[Vt]=li[z]=li[pe]=li[ln]=li[Tn]=li[Ne]=li[ae]=li[de]=li[Ae]=li[Ue]=li[De]=li[q]=li[le]=li[Ee]=li[Xe]=li[$e]=li[tt]=li[at]=li[gt]=!0,li[ge]=li[ye]=li[Ke]=!1;var IC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qt=parseFloat,xf=parseInt,Kg="object"==typeof global&&global&&global.Object===Object&&global,Xs="object"==typeof self&&self&&self.Object===Object&&self,Cr=Kg||Xs||Function("return this")(),OC=re&&!re.nodeType&&re,Qs=OC&&Ze&&!Ze.nodeType&&Ze,Zs=Qs&&Qs.exports===OC,Xg=Zs&&Kg.process,uo=function(){try{return Qs&&Qs.require&&Qs.require("util").types||Xg&&Xg.binding&&Xg.binding("util")}catch(Je){}}(),Js=uo&&uo.isArrayBuffer,ni=uo&&uo.isDate,FC=uo&&uo.isMap,LC=uo&&uo.isRegExp,ml=uo&&uo.isSet,Gn=uo&&uo.isTypedArray;function Ur(Ie,Je,Ge){switch(Ge.length){case 0:return Ie.call(Je);case 1:return Ie.call(Je,Ge[0]);case 2:return Ie.call(Je,Ge[0],Ge[1]);case 3:return Ie.call(Je,Ge[0],Ge[1],Ge[2])}return Ie.apply(Je,Ge)}function kf(Ie,Je,Ge,It){for(var gn=-1,ei=null==Ie?0:Ie.length;++gn<ei;){var Ar=Ie[gn];Je(It,Ar,Ge(Ar),Ie)}return It}function _s(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length;++Ge<It&&!1!==Je(Ie[Ge],Ge,Ie););return Ie}function Qg(Ie,Je){for(var Ge=null==Ie?0:Ie.length;Ge--&&!1!==Je(Ie[Ge],Ge,Ie););return Ie}function Lo(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length;++Ge<It;)if(!Je(Ie[Ge],Ge,Ie))return!1;return!0}function eo(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length,gn=0,ei=[];++Ge<It;){var Ar=Ie[Ge];Je(Ar,Ge,Ie)&&(ei[gn++]=Ar)}return ei}function Cd(Ie,Je){return!(null==Ie||!Ie.length)&&er(Ie,Je,0)>-1}function Ct(Ie,Je,Ge){for(var It=-1,gn=null==Ie?0:Ie.length;++It<gn;)if(Ge(Je,Ie[It]))return!0;return!1}function Ai(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length,gn=Array(It);++Ge<It;)gn[Ge]=Je(Ie[Ge],Ge,Ie);return gn}function ta(Ie,Je){for(var Ge=-1,It=Je.length,gn=Ie.length;++Ge<It;)Ie[gn+Ge]=Je[Ge];return Ie}function Dd(Ie,Je,Ge,It){var gn=-1,ei=null==Ie?0:Ie.length;for(It&&ei&&(Ge=Ie[++gn]);++gn<ei;)Ge=Je(Ge,Ie[gn],gn,Ie);return Ge}function Ut(Ie,Je,Ge,It){var gn=null==Ie?0:Ie.length;for(It&&gn&&(Ge=Ie[--gn]);gn--;)Ge=Je(Ge,Ie[gn],gn,Ie);return Ge}function Tf(Ie,Je){for(var Ge=-1,It=null==Ie?0:Ie.length;++Ge<It;)if(Je(Ie[Ge],Ge,Ie))return!0;return!1}var Zg=gl("length");function Jn(Ie,Je,Ge){var It;return Ge(Ie,function(gn,ei,Ar){if(Je(gn,ei,Ar))return It=ei,!1}),It}function Dr(Ie,Je,Ge,It){for(var gn=Ie.length,ei=Ge+(It?1:-1);It?ei--:++ei<gn;)if(Je(Ie[ei],ei,Ie))return ei;return-1}function er(Ie,Je,Ge){return Je==Je?function Jg(Ie,Je,Ge){for(var It=Ge-1,gn=Ie.length;++It<gn;)if(Ie[It]===Je)return It;return-1}(Ie,Je,Ge):Dr(Ie,au,Ge)}function Vs(Ie,Je,Ge,It){for(var gn=Ge-1,ei=Ie.length;++gn<ei;)if(It(Ie[gn],Je))return gn;return-1}function au(Ie){return Ie!=Ie}function Sd(Ie,Je){var Ge=null==Ie?0:Ie.length;return Ge?Pf(Ie,Je)/Ge:X}function gl(Ie){return function(Je){return null==Je?J:Je[Ie]}}function hc(Ie){return function(Je){return null==Ie?J:Ie[Je]}}function Sa(Ie,Je,Ge,It,gn){return gn(Ie,function(ei,Ar,gi){Ge=It?(It=!1,ei):Je(Ge,ei,Ar,gi)}),Ge}function Pf(Ie,Je){for(var Ge,It=-1,gn=Ie.length;++It<gn;){var ei=Je(Ie[It]);ei!==J&&(Ge=Ge===J?ei:Ge+ei)}return Ge}function vs(Ie,Je){for(var Ge=-1,It=Array(Ie);++Ge<Ie;)It[Ge]=Je(Ge);return It}function mn(Ie){return Ie&&Ie.slice(0,Zr(Ie)+1).replace(pl,"")}function Ln(Ie){return function(Je){return Ie(Je)}}function Qr(Ie,Je){return Ai(Je,function(Ge){return Ie[Ge]})}function ho(Ie,Je){return Ie.has(Je)}function cr(Ie,Je){for(var Ge=-1,It=Ie.length;++Ge<It&&er(Je,Ie[Ge],0)>-1;);return Ge}function Aa(Ie,Je){for(var Ge=Ie.length;Ge--&&er(Je,Ie[Ge],0)>-1;);return Ge}function Vi(Ie,Je){for(var Ge=Ie.length,It=0;Ge--;)Ie[Ge]===Je&&++It;return It}var lu=hc({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),fc=hc({"&":"&","<":"<",">":">",'"':""","'":"'"});function wn(Ie){return"\\"+IC[Ie]}function fo(Ie){return Ht.test(Ie)}function Sr(Ie){var Je=-1,Ge=Array(Ie.size);return Ie.forEach(function(It,gn){Ge[++Je]=[gn,It]}),Ge}function pc(Ie,Je){return function(Ge){return Ie(Je(Ge))}}function Bs(Ie,Je){for(var Ge=-1,It=Ie.length,gn=0,ei=[];++Ge<It;){var Ar=Ie[Ge];(Ar===Je||Ar===$)&&(Ie[Ge]=$,ei[gn++]=Ge)}return ei}function bs(Ie){var Je=-1,Ge=Array(Ie.size);return Ie.forEach(function(It){Ge[++Je]=It}),Ge}function gc(Ie){return fo(Ie)?function If(Ie){for(var Je=dt.lastIndex=0;dt.test(Ie);)++Je;return Je}(Ie):Zg(Ie)}function po(Ie){return fo(Ie)?function Md(Ie){return Ie.match(dt)||[]}(Ie):function qe(Ie){return Ie.split("")}(Ie)}function Zr(Ie){for(var Je=Ie.length;Je--&&ea.test(Ie.charAt(Je)););return Je}var mo=hc({"&":"&","<":"<",">":">",""":'"',"'":"'"}),xd=function Ie(Je){var l,Ge=(Je=null==Je?Cr:xd.defaults(Cr.Object(),Je,xd.pick(Cr,qg))).Array,It=Je.Date,gn=Je.Error,ei=Je.Function,Ar=Je.Math,gi=Je.Object,e_=Je.RegExp,oT=Je.String,_o=Je.TypeError,Of=Ge.prototype,cu=gi.prototype,Ff=Je["__core-js_shared__"],Lf=ei.prototype.toString,si=cu.hasOwnProperty,t_=0,kd=(l=/[^.]+$/.exec(Ff&&Ff.keys&&Ff.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",Nf=cu.toString,lT=Lf.call(gi),cT=Cr._,vl=e_("^"+Lf.call(si).replace(xi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Td=Zs?Je.Buffer:J,Zt=Je.Symbol,uu=Je.Uint8Array,n_=Td?Td.allocUnsafe:J,Pd=pc(gi.getPrototypeOf,gi),Vf=gi.create,Bf=cu.propertyIsEnumerable,Rd=Of.splice,Id=Zt?Zt.isConcatSpreadable:J,du=Zt?Zt.iterator:J,Mr=Zt?Zt.toStringTag:J,_c=function(){try{var l=Tl(gi,"defineProperty");return l({},"",{}),l}catch(u){}}(),NC=Je.clearTimeout!==Cr.clearTimeout&&Je.clearTimeout,Hf=It&&It.now!==Cr.Date.now&&It.now,VC=Je.setTimeout!==Cr.setTimeout&&Je.setTimeout,zf=Ar.ceil,Ti=Ar.floor,Uf=gi.getOwnPropertySymbols,uT=Td?Td.isBuffer:J,hu=Je.isFinite,to=Of.join,BC=pc(gi.keys,gi),qi=Ar.max,Yi=Ar.min,Hs=It.now,i_=Je.parseInt,fu=Ar.random,HC=Of.reverse,No=Tl(Je,"DataView"),vc=Tl(Je,"Map"),pu=Tl(Je,"Promise"),nn=Tl(Je,"Set"),bc=Tl(Je,"WeakMap"),Od=Tl(gi,"create"),Fd=bc&&new bc,yc={},zC=Pl(No),r_=Pl(vc),UC=Pl(pu),jC=Pl(nn),ct=Pl(bc),Rn=Zt?Zt.prototype:J,zt=Rn?Rn.valueOf:J,$t=Rn?Rn.toString:J;function K(l){if(Ri(l)&&!pn(l)&&!(l instanceof xn)){if(l instanceof Ki)return l;if(si.call(l,"__wrapped__"))return _D(l)}return new Ki(l)}var bl=function(){function l(){}return function(u){if(!Bi(u))return{};if(Vf)return Vf(u);l.prototype=u;var h=new l;return l.prototype=J,h}}();function Ma(){}function Ki(l,u){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=J}function xn(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=C,this.__views__=[]}function wc(l){var u=-1,h=null==l?0:l.length;for(this.clear();++u<h;){var w=l[u];this.set(w[0],w[1])}}function Fr(l){var u=-1,h=null==l?0:l.length;for(this.clear();++u<h;){var w=l[u];this.set(w[0],w[1])}}function vo(l){var u=-1,h=null==l?0:l.length;for(this.clear();++u<h;){var w=l[u];this.set(w[0],w[1])}}function Ea(l){var u=-1,h=null==l?0:l.length;for(this.__data__=new vo;++u<h;)this.add(l[u])}function no(l){var u=this.__data__=new Fr(l);this.size=u.size}function Pi(l,u){var h=pn(l),w=!h&&Ll(l),W=!h&&!w&&La(l),ne=!h&&!w&&!W&&Do(l),ve=h||w||W||ne,xe=ve?vs(l.length,oT):[],Le=xe.length;for(var it in l)(u||si.call(l,it))&&(!ve||!("length"==it||W&&("offset"==it||"parent"==it)||ne&&("buffer"==it||"byteLength"==it||"byteOffset"==it)||Ss(it,Le)))&&xe.push(it);return xe}function ia(l){var u=l.length;return u?l[Cu(0,u-1)]:J}function QC(l,u){return ku(ws(l),yl(u,0,l.length))}function Yf(l){return ku(ws(l))}function Kf(l,u,h){(h!==J&&!ss(l[u],h)||h===J&&!(u in l))&&bo(l,u,h)}function mu(l,u,h){var w=l[u];(!si.call(l,u)||!ss(w,h)||h===J&&!(u in l))&&bo(l,u,h)}function Nd(l,u){for(var h=l.length;h--;)if(ss(l[h][0],u))return h;return-1}function Vd(l,u,h,w){return Vo(l,function(W,ne,ve){u(w,W,h(W),ve)}),w}function gu(l,u){return l&&zo(u,nr(u),l)}function bo(l,u,h){"__proto__"==u&&_c?_c(l,u,{configurable:!0,enumerable:!0,value:h,writable:!0}):l[u]=h}function Hd(l,u){for(var h=-1,w=u.length,W=Ge(w),ne=null==l;++h<w;)W[h]=ne?J:yh(l,u[h]);return W}function yl(l,u,h){return l==l&&(h!==J&&(l=l<=h?l:h),u!==J&&(l=l>=u?l:u)),l}function ur(l,u,h,w,W,ne){var ve,xe=1&u,Le=2&u,it=4&u;if(h&&(ve=W?h(l,w,W,ne):h(l)),ve!==J)return ve;if(!Bi(l))return l;var rt=pn(l);if(rt){if(ve=function mp(l){var u=l.length,h=new l.constructor(u);return u&&"string"==typeof l[0]&&si.call(l,"index")&&(h.index=l.index,h.input=l.input),h}(l),!xe)return ws(l,ve)}else{var ht=Nr(l),Mt=ht==ye||ht==ke;if(La(l))return sp(l,xe);if(ht==De||ht==A||Mt&&!W){if(ve=Le||Mt?{}:O_(l),!xe)return Le?function Kd(l,u){return zo(l,R_(l),u)}(l,function Bd(l,u){return l&&zo(u,xr(u),l)}(ve,l)):function lp(l,u){return zo(l,nh(l),u)}(l,gu(ve,l))}else{if(!li[ht])return W?l:{};ve=function F_(l,u,h){var w=l.constructor;switch(u){case pt:return ns(l);case z:case pe:return new w(+l);case Vt:return function op(l,u){var h=u?ns(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}(l,h);case ln:case Tn:case Ne:case ae:case de:case $e:case tt:case at:case gt:return ap(l,h);case Ae:return new w;case Ue:case Ee:return new w(l);case q:return function Ec(l){var u=new l.constructor(l.source,gd.exec(l));return u.lastIndex=l.lastIndex,u}(l);case le:return new w;case Xe:return function vT(l){return zt?gi(zt.call(l)):{}}(l)}}(l,ht,xe)}}ne||(ne=new no);var Pt=ne.get(l);if(Pt)return Pt;ne.set(l,ve),_h(l)?l.forEach(function(Jt){ve.add(ur(Jt,u,h,Jt,l,ne))}):aS(l)&&l.forEach(function(Jt,Mn){ve.set(Mn,ur(Jt,u,h,Mn,l,ne))});var Cn=rt?J:(it?Le?fp:kl:Le?xr:nr)(l);return _s(Cn||l,function(Jt,Mn){Cn&&(Jt=l[Mn=Jt]),mu(ve,Mn,ur(Jt,u,h,Mn,l,ne))}),ve}function d_(l,u,h){var w=h.length;if(null==l)return!w;for(l=gi(l);w--;){var W=h[w],ve=l[W];if(ve===J&&!(W in l)||!(0,u[W])(ve))return!1}return!0}function h_(l,u,h){if("function"!=typeof l)throw new _o(ce);return xu(function(){l.apply(J,h)},u)}function ra(l,u,h,w){var W=-1,ne=Cd,ve=!0,xe=l.length,Le=[],it=u.length;if(!xe)return Le;h&&(u=Ai(u,Ln(h))),w?(ne=Ct,ve=!1):u.length>=200&&(ne=ho,ve=!1,u=new Ea(u));e:for(;++W<xe;){var rt=l[W],ht=null==h?rt:h(rt);if(rt=w||0!==rt?rt:0,ve&&ht==ht){for(var Mt=it;Mt--;)if(u[Mt]===ht)continue e;Le.push(rt)}else ne(u,ht,w)||Le.push(rt)}return Le}K.templateSettings={escape:fi,evaluate:Wn,interpolate:Fs,variable:"",imports:{_:K}},(K.prototype=Ma.prototype).constructor=K,(Ki.prototype=bl(Ma.prototype)).constructor=Ki,(xn.prototype=bl(Ma.prototype)).constructor=xn,wc.prototype.clear=function Ld(){this.__data__=Od?Od(null):{},this.size=0},wc.prototype.delete=function Jr(l){var u=this.has(l)&&delete this.__data__[l];return this.size-=u?1:0,u},wc.prototype.get=function na(l){var u=this.__data__;if(Od){var h=u[l];return h===Q?J:h}return si.call(u,l)?u[l]:J},wc.prototype.has=function s_(l){var u=this.__data__;return Od?u[l]!==J:si.call(u,l)},wc.prototype.set=function Cc(l,u){var h=this.__data__;return this.size+=this.has(l)?0:1,h[l]=Od&&u===J?Q:u,this},Fr.prototype.clear=function $C(){this.__data__=[],this.size=0},Fr.prototype.delete=function o_(l){var u=this.__data__,h=Nd(u,l);return!(h<0||(h==u.length-1?u.pop():Rd.call(u,h,1),--this.size,0))},Fr.prototype.get=function GC(l){var u=this.__data__,h=Nd(u,l);return h<0?J:u[h][1]},Fr.prototype.has=function qC(l){return Nd(this.__data__,l)>-1},Fr.prototype.set=function Wf(l,u){var h=this.__data__,w=Nd(h,l);return w<0?(++this.size,h.push([l,u])):h[w][1]=u,this},vo.prototype.clear=function a_(){this.size=0,this.__data__={hash:new wc,map:new(vc||Fr),string:new wc}},vo.prototype.delete=function $f(l){var u=eh(this,l).delete(l);return this.size-=u?1:0,u},vo.prototype.get=function YC(l){return eh(this,l).get(l)},vo.prototype.has=function l_(l){return eh(this,l).has(l)},vo.prototype.set=function Gf(l,u){var h=eh(this,l),w=h.size;return h.set(l,u),this.size+=h.size==w?0:1,this},Ea.prototype.add=Ea.prototype.push=function c_(l){return this.__data__.set(l,Q),this},Ea.prototype.has=function u_(l){return this.__data__.has(l)},no.prototype.clear=function qf(){this.__data__=new Fr,this.size=0},no.prototype.delete=function KC(l){var u=this.__data__,h=u.delete(l);return this.size=u.size,h},no.prototype.get=function XC(l){return this.__data__.get(l)},no.prototype.has=function es(l){return this.__data__.has(l)},no.prototype.set=function xa(l,u){var h=this.__data__;if(h instanceof Fr){var w=h.__data__;if(!vc||w.length<199)return w.push([l,u]),this.size=++h.size,this;h=this.__data__=new vo(w)}return h.set(l,u),this.size=h.size,this};var Vo=Xd(yo),f_=Xd(Ud,!0);function ZC(l,u){var h=!0;return Vo(l,function(w,W,ne){return h=!!u(w,W,ne)}),h}function Xf(l,u,h){for(var w=-1,W=l.length;++w<W;){var ne=l[w],ve=u(ne);if(null!=ve&&(xe===J?ve==ve&&!ro(ve):h(ve,xe)))var xe=ve,Le=ne}return Le}function vu(l,u){var h=[];return Vo(l,function(w,W,ne){u(w,W,ne)&&h.push(w)}),h}function Er(l,u,h,w,W){var ne=-1,ve=l.length;for(h||(h=gp),W||(W=[]);++ne<ve;){var xe=l[ne];u>0&&h(xe)?u>1?Er(xe,u-1,h,w,W):ta(W,xe):w||(W[W.length]=xe)}return W}var zd=Su(),bu=Su(!0);function yo(l,u){return l&&zd(l,u,nr)}function Ud(l,u){return l&&bu(l,u,nr)}function sa(l,u){return eo(u,function(h){return ca(l[h])})}function wl(l,u){for(var h=0,w=(u=Ra(u,l)).length;null!=l&&h<w;)l=l[Wo(u[h++])];return h&&h==w?l:J}function Cl(l,u,h){var w=u(l);return pn(l)?w:ta(w,h(l))}function Lr(l){return null==l?l===J?"[object Undefined]":"[object Null]":Mr&&Mr in gi(l)?function th(l){var u=si.call(l,Mr),h=l[Mr];try{l[Mr]=J;var w=!0}catch(ne){}var W=Nf.call(l);return w&&(u?l[Mr]=h:delete l[Mr]),W}(l):function mD(l){return Nf.call(l)}(l)}function Dc(l,u){return l>u}function fT(l,u){return null!=l&&si.call(l,u)}function p_(l,u){return null!=l&&u in gi(l)}function Qf(l,u,h){for(var w=h?Ct:Cd,W=l[0].length,ne=l.length,ve=ne,xe=Ge(ne),Le=1/0,it=[];ve--;){var rt=l[ve];ve&&u&&(rt=Ai(rt,Ln(u))),Le=Yi(rt.length,Le),xe[ve]=!h&&(u||W>=120&&rt.length>=120)?new Ea(ve&&rt):J}rt=l[0];var ht=-1,Mt=xe[0];e:for(;++ht<W&&it.length<Le;){var Pt=rt[ht],Xt=u?u(Pt):Pt;if(Pt=h||0!==Pt?Pt:0,!(Mt?ho(Mt,Xt):w(it,Xt,h))){for(ve=ne;--ve;){var Cn=xe[ve];if(!(Cn?ho(Cn,Xt):w(l[ve],Xt,h)))continue e}Mt&&Mt.push(Xt),it.push(Pt)}}return it}function yu(l,u,h){var w=null==(l=As(l,u=Ra(u,l)))?l:l[Wo(Ms(u))];return null==w?J:Ur(w,l,h)}function Sc(l){return Ri(l)&&Lr(l)==A}function ka(l,u,h,w,W){return l===u||(null==l||null==u||!Ri(l)&&!Ri(u)?l!=l&&u!=u:function jd(l,u,h,w,W,ne){var ve=pn(l),xe=pn(u),Le=ve?N:Nr(l),it=xe?N:Nr(u),rt=(Le=Le==A?De:Le)==De,ht=(it=it==A?De:it)==De,Mt=Le==it;if(Mt&&La(l)){if(!La(u))return!1;ve=!0,rt=!1}if(Mt&&!rt)return ne||(ne=new no),ve||Do(l)?hp(l,u,h,w,W,ne):function cD(l,u,h,w,W,ne,ve){switch(h){case Vt:if(l.byteLength!=u.byteLength||l.byteOffset!=u.byteOffset)return!1;l=l.buffer,u=u.buffer;case pt:return!(l.byteLength!=u.byteLength||!ne(new uu(l),new uu(u)));case z:case pe:case Ue:return ss(+l,+u);case ge:return l.name==u.name&&l.message==u.message;case q:case Ee:return l==u+"";case Ae:var xe=Sr;case le:if(xe||(xe=bs),l.size!=u.size&&!(1&w))return!1;var it=ve.get(l);if(it)return it==u;w|=2,ve.set(l,u);var rt=hp(xe(l),xe(u),w,W,ne,ve);return ve.delete(l),rt;case Xe:if(zt)return zt.call(l)==zt.call(u)}return!1}(l,u,Le,h,w,W,ne);if(!(1&h)){var Pt=rt&&si.call(l,"__wrapped__"),Xt=ht&&si.call(u,"__wrapped__");if(Pt||Xt){var Cn=Pt?l.value():l,Jt=Xt?u.value():u;return ne||(ne=new no),W(Cn,Jt,h,w,ne)}}return!!Mt&&(ne||(ne=new no),function uD(l,u,h,w,W,ne){var ve=1&h,xe=kl(l),Le=xe.length;if(Le!=kl(u).length&&!ve)return!1;for(var ht=Le;ht--;){var Mt=xe[ht];if(!(ve?Mt in u:si.call(u,Mt)))return!1}var Pt=ne.get(l),Xt=ne.get(u);if(Pt&&Xt)return Pt==u&&Xt==l;var Cn=!0;ne.set(l,u),ne.set(u,l);for(var Jt=ve;++ht<Le;){var Mn=l[Mt=xe[ht]],Nn=u[Mt];if(w)var as=ve?w(Nn,Mn,Mt,u,l,ne):w(Mn,Nn,Mt,l,u,ne);if(!(as===J?Mn===Nn||W(Mn,Nn,h,w,ne):as)){Cn=!1;break}Jt||(Jt="constructor"==Mt)}if(Cn&&!Jt){var ls=l.constructor,ir=u.constructor;ls!=ir&&"constructor"in l&&"constructor"in u&&!("function"==typeof ls&&ls instanceof ls&&"function"==typeof ir&&ir instanceof ir)&&(Cn=!1)}return ne.delete(l),ne.delete(u),Cn}(l,u,h,w,W,ne))}(l,u,h,w,ka,W))}function Wd(l,u,h,w){var W=h.length,ne=W,ve=!w;if(null==l)return!ne;for(l=gi(l);W--;){var xe=h[W];if(ve&&xe[2]?xe[1]!==l[xe[0]]:!(xe[0]in l))return!1}for(;++W<ne;){var Le=(xe=h[W])[0],it=l[Le],rt=xe[1];if(ve&&xe[2]){if(it===J&&!(Le in l))return!1}else{var ht=new no;if(w)var Mt=w(it,rt,Le,l,u,ht);if(!(Mt===J?ka(rt,it,3,w,ht):Mt))return!1}}return!0}function ep(l){return!(!Bi(l)||function vp(l){return!!kd&&kd in l}(l))&&(ca(l)?vl:yC).test(Pl(l))}function wu(l){return"function"==typeof l?l:null==l?xs:"object"==typeof l?pn(l)?v_(l[0],l[1]):Sl(l):Vu(l)}function Dl(l){if(!Ic(l))return BC(l);var u=[];for(var h in gi(l))si.call(l,h)&&"constructor"!=h&&u.push(h);return u}function $d(l,u){return l<u}function tp(l,u){var h=-1,w=os(l)?Ge(l.length):[];return Vo(l,function(W,ne,ve){w[++h]=u(W,ne,ve)}),w}function Sl(l){var u=pp(l);return 1==u.length&&u[0][2]?Oa(u[0][0],u[0][1]):function(h){return h===l||Wd(h,l,u)}}function v_(l,u){return _p(l)&&bp(u)?Oa(Wo(l),u):function(h){var w=yh(h,l);return w===J&&w===u?Bc(h,l):ka(u,w,3)}}function un(l,u,h,w,W){l!==u&&zd(u,function(ne,ve){if(W||(W=new no),Bi(ne))!function np(l,u,h,w,W,ne,ve){var xe=yp(l,h),Le=yp(u,h),it=ve.get(Le);if(it)Kf(l,h,it);else{var rt=ne?ne(xe,Le,h+"",l,u,ve):J,ht=rt===J;if(ht){var Mt=pn(Le),Pt=!Mt&&La(Le),Xt=!Mt&&!Pt&&Do(Le);rt=Le,Mt||Pt||Xt?pn(xe)?rt=xe:Xi(xe)?rt=ws(xe):Pt?(ht=!1,rt=sp(Le,!0)):Xt?(ht=!1,rt=ap(Le,!0)):rt=[]:Lu(Le)||Ll(Le)?(rt=xe,Ll(xe)?rt=$p(xe):(!Bi(xe)||ca(xe))&&(rt=O_(Le))):ht=!1}ht&&(ve.set(Le,rt),W(rt,Le,w,ne,ve),ve.delete(Le)),Kf(l,h,rt)}}(l,u,ve,h,un,w,W);else{var xe=w?w(yp(l,ve),ne,ve+"",l,u,W):J;xe===J&&(xe=ne),Kf(l,ve,xe)}},xr)}function b_(l,u){var h=l.length;if(h)return Ss(u+=u<0?h:0,h)?l[u]:J}function ip(l,u,h){u=u.length?Ai(u,function(ne){return pn(ne)?function(ve){return wl(ve,1===ne.length?ne[0]:ne)}:ne}):[xs];var w=-1;return u=Ai(u,Ln(rn())),function jr(Ie,Je){var Ge=Ie.length;for(Ie.sort(Je);Ge--;)Ie[Ge]=Ie[Ge].value;return Ie}(tp(l,function(ne,ve,xe){return{criteria:Ai(u,function(it){return it(ne)}),index:++w,value:ne}}),function(ne,ve){return function oD(l,u,h){for(var w=-1,W=l.criteria,ne=u.criteria,ve=W.length,xe=h.length;++w<ve;){var Le=S_(W[w],ne[w]);if(Le)return w>=xe?Le:Le*("desc"==h[w]?-1:1)}return l.index-u.index}(ne,ve,h)})}function Al(l,u,h){for(var w=-1,W=u.length,ne={};++w<W;){var ve=u[w],xe=wl(l,ve);h(xe,ve)&&Gd(ne,Ra(ve,l),xe)}return ne}function Ta(l,u,h,w){var W=w?Vs:er,ne=-1,ve=u.length,xe=l;for(l===u&&(u=ws(u)),h&&(xe=Ai(l,Ln(h)));++ne<ve;)for(var Le=0,it=u[ne],rt=h?h(it):it;(Le=W(xe,rt,Le,w))>-1;)xe!==l&&Rd.call(xe,Le,1),Rd.call(l,Le,1);return l}function rp(l,u){for(var h=l?u.length:0,w=h-1;h--;){var W=u[h];if(h==w||W!==ne){var ne=W;Ss(W)?Rd.call(l,W,1):C_(l,W)}}return l}function Cu(l,u){return l+Ti(fu()*(u-l+1))}function y_(l,u){var h="";if(!l||u<1||u>Ce)return h;do{u%2&&(h+=l),(u=Ti(u/2))&&(l+=l)}while(u);return h}function An(l,u){return wp(N_(l,u,xs),l+"")}function lt(l){return ia(Hc(l))}function pT(l,u){var h=Hc(l);return ku(h,yl(u,0,h.length))}function Gd(l,u,h,w){if(!Bi(l))return l;for(var W=-1,ne=(u=Ra(u,l)).length,ve=ne-1,xe=l;null!=xe&&++W<ne;){var Le=Wo(u[W]),it=h;if("__proto__"===Le||"constructor"===Le||"prototype"===Le)return l;if(W!=ve){var rt=xe[Le];(it=w?w(rt,Le,xe):J)===J&&(it=Bi(rt)?rt:Ss(u[W+1])?[]:{})}mu(xe,Le,it),xe=xe[Le]}return l}var nD=Fd?function(l,u){return Fd.set(l,u),l}:xs,mT=_c?function(l,u){return _c(l,"toString",{configurable:!0,enumerable:!1,value:em(u),writable:!0})}:xs;function gT(l){return ku(Hc(l))}function wo(l,u,h){var w=-1,W=l.length;u<0&&(u=-u>W?0:W+u),(h=h>W?W:h)<0&&(h+=W),W=u>h?0:h-u>>>0,u>>>=0;for(var ne=Ge(W);++w<W;)ne[w]=l[w+u];return ne}function _T(l,u){var h;return Vo(l,function(w,W,ne){return!(h=u(w,W,ne))}),!!h}function Pa(l,u,h){var w=0,W=null==l?w:l.length;if("number"==typeof u&&u==u&&W<=2147483647){for(;w<W;){var ne=w+W>>>1,ve=l[ne];null!==ve&&!ro(ve)&&(h?ve<=u:ve<u)?w=ne+1:W=ne}return W}return w_(l,u,xs,h)}function w_(l,u,h,w){var W=0,ne=null==l?0:l.length;if(0===ne)return 0;for(var ve=(u=h(u))!=u,xe=null===u,Le=ro(u),it=u===J;W<ne;){var rt=Ti((W+ne)/2),ht=h(l[rt]),Mt=ht!==J,Pt=null===ht,Xt=ht==ht,Cn=ro(ht);if(ve)var Jt=w||Xt;else Jt=it?Xt&&(w||Mt):xe?Xt&&Mt&&(w||!Pt):Le?Xt&&Mt&&!Pt&&(w||!Cn):!Pt&&!Cn&&(w?ht<=u:ht<u);Jt?W=rt+1:ne=rt}return Yi(ne,4294967294)}function iD(l,u){for(var h=-1,w=l.length,W=0,ne=[];++h<w;){var ve=l[h],xe=u?u(ve):ve;if(!h||!ss(xe,Le)){var Le=xe;ne[W++]=0===ve?0:ve}}return ne}function tr(l){return"number"==typeof l?l:ro(l)?X:+l}function ts(l){if("string"==typeof l)return l;if(pn(l))return Ai(l,ts)+"";if(ro(l))return $t?$t.call(l):"";var u=l+"";return"0"==u&&1/l==-_e?"-0":u}function io(l,u,h){var w=-1,W=Cd,ne=l.length,ve=!0,xe=[],Le=xe;if(h)ve=!1,W=Ct;else if(ne>=200){var it=u?null:T_(l);if(it)return bs(it);ve=!1,W=ho,Le=new Ea}else Le=u?[]:xe;e:for(;++w<ne;){var rt=l[w],ht=u?u(rt):rt;if(rt=h||0!==rt?rt:0,ve&&ht==ht){for(var Mt=Le.length;Mt--;)if(Le[Mt]===ht)continue e;u&&Le.push(ht),xe.push(rt)}else W(Le,ht,h)||(Le!==xe&&Le.push(ht),xe.push(rt))}return xe}function C_(l,u){return null==(l=As(l,u=Ra(u,l)))||delete l[Wo(Ms(u))]}function D_(l,u,h,w){return Gd(l,u,h(wl(l,u)),w)}function Wr(l,u,h,w){for(var W=l.length,ne=w?W:-1;(w?ne--:++ne<W)&&u(l[ne],ne,l););return h?wo(l,w?0:ne,w?ne+1:W):wo(l,w?ne+1:0,w?W:ne)}function Ho(l,u){var h=l;return h instanceof xn&&(h=h.value()),Dd(u,function(w,W){return W.func.apply(W.thisArg,ta([w],W.args))},h)}function qd(l,u,h){var w=l.length;if(w<2)return w?io(l[0]):[];for(var W=-1,ne=Ge(w);++W<w;)for(var ve=l[W],xe=-1;++xe<w;)xe!=W&&(ne[W]=ra(ne[W]||ve,l[xe],u,h));return io(Er(ne,1),u,h)}function Du(l,u,h){for(var w=-1,W=l.length,ne=u.length,ve={};++w<W;)h(ve,l[w],w<ne?u[w]:J);return ve}function Ml(l){return Xi(l)?l:[]}function Yd(l){return"function"==typeof l?l:xs}function Ra(l,u){return pn(l)?l:_p(l,u)?[l]:z_(Kn(l))}var rD=An;function El(l,u,h){var w=l.length;return h=h===J?w:h,!u&&h>=w?l:wo(l,u,h)}var sD=NC||function(l){return Cr.clearTimeout(l)};function sp(l,u){if(u)return l.slice();var h=l.length,w=n_?n_(h):new l.constructor(h);return l.copy(w),w}function ns(l){var u=new l.constructor(l.byteLength);return new uu(u).set(new uu(l)),u}function ap(l,u){var h=u?ns(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function S_(l,u){if(l!==u){var h=l!==J,w=null===l,W=l==l,ne=ro(l),ve=u!==J,xe=null===u,Le=u==u,it=ro(u);if(!xe&&!it&&!ne&&l>u||ne&&ve&&Le&&!xe&&!it||w&&ve&&Le||!h&&Le||!W)return 1;if(!w&&!ne&&!it&&l<u||it&&h&&W&&!w&&!ne||xe&&h&&W||!ve&&W||!Le)return-1}return 0}function A_(l,u,h,w){for(var W=-1,ne=l.length,ve=h.length,xe=-1,Le=u.length,it=qi(ne-ve,0),rt=Ge(Le+it),ht=!w;++xe<Le;)rt[xe]=u[xe];for(;++W<ve;)(ht||W<ne)&&(rt[h[W]]=l[W]);for(;it--;)rt[xe++]=l[W++];return rt}function M_(l,u,h,w){for(var W=-1,ne=l.length,ve=-1,xe=h.length,Le=-1,it=u.length,rt=qi(ne-xe,0),ht=Ge(rt+it),Mt=!w;++W<rt;)ht[W]=l[W];for(var Pt=W;++Le<it;)ht[Pt+Le]=u[Le];for(;++ve<xe;)(Mt||W<ne)&&(ht[Pt+h[ve]]=l[W++]);return ht}function ws(l,u){var h=-1,w=l.length;for(u||(u=Ge(w));++h<w;)u[h]=l[h];return u}function zo(l,u,h,w){var W=!h;h||(h={});for(var ne=-1,ve=u.length;++ne<ve;){var xe=u[ne],Le=w?w(h[xe],l[xe],xe,h,l):J;Le===J&&(Le=l[xe]),W?bo(h,xe,Le):mu(h,xe,Le)}return h}function cp(l,u){return function(h,w){var W=pn(h)?kf:Vd,ne=u?u():{};return W(h,l,rn(w,2),ne)}}function Uo(l){return An(function(u,h){var w=-1,W=h.length,ne=W>1?h[W-1]:J,ve=W>2?h[2]:J;for(ne=l.length>3&&"function"==typeof ne?(W--,ne):J,ve&&is(h[0],h[1],ve)&&(ne=W<3?J:ne,W=1),u=gi(u);++w<W;){var xe=h[w];xe&&l(u,xe,w,ne)}return u})}function Xd(l,u){return function(h,w){if(null==h)return h;if(!os(h))return l(h,w);for(var W=h.length,ne=u?W:-1,ve=gi(h);(u?ne--:++ne<W)&&!1!==w(ve[ne],ne,ve););return h}}function Su(l){return function(u,h,w){for(var W=-1,ne=gi(u),ve=w(u),xe=ve.length;xe--;){var Le=ve[l?xe:++W];if(!1===h(ne[Le],Le,ne))break}return u}}function E_(l){return function(u){var h=fo(u=Kn(u))?po(u):J,w=h?h[0]:u.charAt(0),W=h?El(h,1).join(""):u.slice(1);return w[l]()+W}}function xc(l){return function(u){return Dd(Yv(dn(u).replace(iT,"")),l,"")}}function kc(l){return function(){var u=arguments;switch(u.length){case 0:return new l;case 1:return new l(u[0]);case 2:return new l(u[0],u[1]);case 3:return new l(u[0],u[1],u[2]);case 4:return new l(u[0],u[1],u[2],u[3]);case 5:return new l(u[0],u[1],u[2],u[3],u[4]);case 6:return new l(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new l(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var h=bl(l.prototype),w=l.apply(h,u);return Bi(w)?w:h}}function xl(l){return function(u,h,w){var W=gi(u);if(!os(u)){var ne=rn(h,3);u=nr(u),h=function(xe){return ne(W[xe],xe,W)}}var ve=l(u,h,w);return ve>-1?W[ne?u[ve]:ve]:J}}function x_(l){return Ds(function(u){var h=u.length,w=h,W=Ki.prototype.thru;for(l&&u.reverse();w--;){var ne=u[w];if("function"!=typeof ne)throw new _o(ce);if(W&&!ve&&"wrapper"==Eu(ne))var ve=new Ki([],!0)}for(w=ve?w:h;++w<h;){var xe=Eu(ne=u[w]),Le="wrapper"==xe?P_(ne):J;ve=Le&&Rc(Le[0])&&424==Le[1]&&!Le[4].length&&1==Le[9]?ve[Eu(Le[0])].apply(ve,Le[3]):1==ne.length&&Rc(ne)?ve[xe]():ve.thru(ne)}return function(){var it=arguments,rt=it[0];if(ve&&1==it.length&&pn(rt))return ve.plant(rt).value();for(var ht=0,Mt=h?u[ht].apply(this,it):rt;++ht<h;)Mt=u[ht].call(this,Mt);return Mt}})}function Re(l,u,h,w,W,ne,ve,xe,Le,it){var rt=u&H,ht=1&u,Mt=2&u,Pt=24&u,Xt=512&u,Cn=Mt?J:kc(l);return function Jt(){for(var Mn=arguments.length,Nn=Ge(Mn),as=Mn;as--;)Nn[as]=arguments[as];if(Pt)var ls=Pc(Jt),ir=Vi(Nn,ls);if(w&&(Nn=A_(Nn,w,W,Pt)),ne&&(Nn=M_(Nn,ne,ve,Pt)),Mn-=ir,Pt&&Mn<it){var Hi=Bs(Nn,ls);return Zd(l,u,Re,Jt.placeholder,h,Nn,Hi,xe,Le,it-Mn)}var Eo=ht?h:this,xo=Mt?Eo[l]:l;return Mn=Nn.length,xe?Nn=jo(Nn,xe):Xt&&Mn>1&&Nn.reverse(),rt&&Le<Mn&&(Nn.length=Le),this&&this!==Cr&&this instanceof Jt&&(xo=Cn||kc(xo)),xo.apply(Eo,Nn)}}function up(l,u){return function(h,w){return function Bo(l,u,h,w){return yo(l,function(W,ne,ve){u(w,h(W),ne,ve)}),w}(h,l,u(w),{})}}function qn(l,u){return function(h,w){var W;if(h===J&&w===J)return u;if(h!==J&&(W=h),w!==J){if(W===J)return w;"string"==typeof h||"string"==typeof w?(h=ts(h),w=ts(w)):(h=tr(h),w=tr(w)),W=l(h,w)}return W}}function Mu(l){return Ds(function(u){return u=Ai(u,Ln(rn())),An(function(h){var w=this;return l(u,function(W){return Ur(W,w,h)})})})}function Ia(l,u){var h=(u=u===J?" ":ts(u)).length;if(h<2)return h?y_(u,l):u;var w=y_(u,zf(l/gc(u)));return fo(u)?El(po(w),0,l).join(""):w.slice(0,l)}function k_(l){return function(u,h,w){return w&&"number"!=typeof w&&is(u,h,w)&&(h=w=J),u=ua(u),h===J?(h=u,u=0):h=ua(h),function Mc(l,u,h,w){for(var W=-1,ne=qi(zf((u-l)/(h||1)),0),ve=Ge(ne);ne--;)ve[w?ne:++W]=l,l+=h;return ve}(u,h,w=w===J?u<h?1:-1:ua(w),l)}}function Qd(l){return function(u,h){return"string"==typeof u&&"string"==typeof h||(u=so(u),h=so(h)),l(u,h)}}function Zd(l,u,h,w,W,ne,ve,xe,Le,it){var rt=8&u;u|=rt?k:64,4&(u&=~(rt?64:k))||(u&=-4);var Cn=[l,u,W,rt?ne:J,rt?ve:J,rt?J:ne,rt?J:ve,xe,Le,it],Jt=h.apply(J,Cn);return Rc(l)&&V_(Jt,Cn),Jt.placeholder=w,B_(Jt,l,u)}function Cs(l){var u=Ar[l];return function(h,w){if(h=so(h),(w=null==w?0:Yi(vn(w),292))&&hu(h)){var W=(Kn(h)+"e").split("e");return+((W=(Kn(u(W[0]+"e"+(+W[1]+w)))+"e").split("e"))[0]+"e"+(+W[1]-w))}return u(h)}}var T_=nn&&1/bs(new nn([,-0]))[1]==_e?function(l){return new nn(l)}:im;function Co(l){return function(u){var h=Nr(u);return h==Ae?Sr(u):h==le?function mc(Ie){var Je=-1,Ge=Array(Ie.size);return Ie.forEach(function(It){Ge[++Je]=[It,It]}),Ge}(u):function Et(Ie,Je){return Ai(Je,function(Ge){return[Ge,Ie[Ge]]})}(u,l(u))}}function oa(l,u,h,w,W,ne,ve,xe){var Le=2&u;if(!Le&&"function"!=typeof l)throw new _o(ce);var it=w?w.length:0;if(it||(u&=-97,w=W=J),ve=ve===J?ve:qi(vn(ve),0),xe=xe===J?xe:vn(xe),it-=W?W.length:0,64&u){var rt=w,ht=W;w=W=J}var Mt=Le?J:P_(l),Pt=[l,u,h,w,W,rt,ht,ne,ve,xe];if(Mt&&function fD(l,u){var h=l[1],w=u[1],W=h|w;if(!(W<131||(w==H&&8==h||w==H&&256==h&&l[7].length<=u[8]||384==w&&u[7].length<=u[8]&&8==h)))return l;1&w&&(l[2]=u[2],W|=1&h?0:4);var xe=u[3];if(xe){var Le=l[3];l[3]=Le?A_(Le,xe,u[4]):xe,l[4]=Le?Bs(l[3],$):u[4]}(xe=u[5])&&(l[5]=(Le=l[5])?M_(Le,xe,u[6]):xe,l[6]=Le?Bs(l[5],$):u[6]),(xe=u[7])&&(l[7]=xe),w&H&&(l[8]=null==l[8]?u[8]:Yi(l[8],u[8])),null==l[9]&&(l[9]=u[9]),l[0]=u[0],l[1]=W}(Pt,Mt),l=Pt[0],u=Pt[1],h=Pt[2],w=Pt[3],W=Pt[4],!(xe=Pt[9]=Pt[9]===J?Le?0:l.length:qi(Pt[9]-it,0))&&24&u&&(u&=-25),u&&1!=u)Xt=8==u||16==u?function Au(l,u,h){var w=kc(l);return function W(){for(var ne=arguments.length,ve=Ge(ne),xe=ne,Le=Pc(W);xe--;)ve[xe]=arguments[xe];var it=ne<3&&ve[0]!==Le&&ve[ne-1]!==Le?[]:Bs(ve,Le);return(ne-=it.length)<h?Zd(l,u,Re,W.placeholder,J,ve,it,J,J,h-ne):Ur(this&&this!==Cr&&this instanceof W?w:l,this,ve)}}(l,u,xe):u!=k&&33!=u||W.length?Re.apply(J,Pt):function lD(l,u,h,w){var W=1&u,ne=kc(l);return function ve(){for(var xe=-1,Le=arguments.length,it=-1,rt=w.length,ht=Ge(rt+Le),Mt=this&&this!==Cr&&this instanceof ve?ne:l;++it<rt;)ht[it]=w[it];for(;Le--;)ht[it++]=arguments[++xe];return Ur(Mt,W?h:this,ht)}}(l,u,h,w);else var Xt=function aD(l,u,h){var w=1&u,W=kc(l);return function ne(){return(this&&this!==Cr&&this instanceof ne?W:l).apply(w?h:this,arguments)}}(l,u,h);return B_((Mt?nD:V_)(Xt,Pt),l,u)}function dp(l,u,h,w){return l===J||ss(l,cu[h])&&!si.call(w,h)?u:l}function Tc(l,u,h,w,W,ne){return Bi(l)&&Bi(u)&&(ne.set(u,l),un(l,u,J,Tc,ne),ne.delete(u)),l}function Jd(l){return Lu(l)?J:l}function hp(l,u,h,w,W,ne){var ve=1&h,xe=l.length,Le=u.length;if(xe!=Le&&!(ve&&Le>xe))return!1;var it=ne.get(l),rt=ne.get(u);if(it&&rt)return it==u&&rt==l;var ht=-1,Mt=!0,Pt=2&h?new Ea:J;for(ne.set(l,u),ne.set(u,l);++ht<xe;){var Xt=l[ht],Cn=u[ht];if(w)var Jt=ve?w(Cn,Xt,ht,u,l,ne):w(Xt,Cn,ht,l,u,ne);if(Jt!==J){if(Jt)continue;Mt=!1;break}if(Pt){if(!Tf(u,function(Mn,Nn){if(!ho(Pt,Nn)&&(Xt===Mn||W(Xt,Mn,h,w,ne)))return Pt.push(Nn)})){Mt=!1;break}}else if(Xt!==Cn&&!W(Xt,Cn,h,w,ne)){Mt=!1;break}}return ne.delete(l),ne.delete(u),Mt}function Ds(l){return wp(N_(l,J,oh),l+"")}function kl(l){return Cl(l,nr,nh)}function fp(l){return Cl(l,xr,R_)}var P_=Fd?function(l){return Fd.get(l)}:im;function Eu(l){for(var u=l.name+"",h=yc[u],w=si.call(yc,u)?h.length:0;w--;){var W=h[w],ne=W.func;if(null==ne||ne==l)return W.name}return u}function Pc(l){return(si.call(K,"placeholder")?K:l).placeholder}function rn(){var l=K.iteratee||Dh;return l=l===Dh?wu:l,arguments.length?l(arguments[0],arguments[1]):l}function eh(l,u){var h=l.__data__;return function yT(l){var u=typeof l;return"string"==u||"number"==u||"symbol"==u||"boolean"==u?"__proto__"!==l:null===l}(u)?h["string"==typeof u?"string":"hash"]:h.map}function pp(l){for(var u=nr(l),h=u.length;h--;){var w=u[h],W=l[w];u[h]=[w,W,bp(W)]}return u}function Tl(l,u){var h=function Ad(Ie,Je){return null==Ie?J:Ie[Je]}(l,u);return ep(h)?h:J}var nh=Uf?function(l){return null==l?[]:(l=gi(l),eo(Uf(l),function(u){return Bf.call(l,u)}))}:Bu,R_=Uf?function(l){for(var u=[];l;)ta(u,nh(l)),l=Pd(l);return u}:Bu,Nr=Lr;function dD(l,u,h){for(var w=-1,W=(u=Ra(u,l)).length,ne=!1;++w<W;){var ve=Wo(u[w]);if(!(ne=null!=l&&h(l,ve)))break;l=l[ve]}return ne||++w!=W?ne:!!(W=null==l?0:l.length)&&Bp(W)&&Ss(ve,W)&&(pn(l)||Ll(l))}function O_(l){return"function"!=typeof l.constructor||Ic(l)?{}:bl(Pd(l))}function gp(l){return pn(l)||Ll(l)||!!(Id&&l&&l[Id])}function Ss(l,u){var h=typeof l;return!!(u=null==u?Ce:u)&&("number"==h||"symbol"!=h&&Hg.test(l))&&l>-1&&l%1==0&&l<u}function is(l,u,h){if(!Bi(h))return!1;var w=typeof u;return!!("number"==w?os(h)&&Ss(u,h.length):"string"==w&&u in h)&&ss(h[u],l)}function _p(l,u){if(pn(l))return!1;var h=typeof l;return!("number"!=h&&"symbol"!=h&&"boolean"!=h&&null!=l&&!ro(l))||Ks.test(l)||!Ls.test(l)||null!=u&&l in gi(u)}function Rc(l){var u=Eu(l),h=K[u];if("function"!=typeof h||!(u in xn.prototype))return!1;if(l===h)return!0;var w=P_(h);return!!w&&l===w[0]}(No&&Nr(new No(new ArrayBuffer(1)))!=Vt||vc&&Nr(new vc)!=Ae||pu&&Nr(pu.resolve())!=je||nn&&Nr(new nn)!=le||bc&&Nr(new bc)!=Ke)&&(Nr=function(l){var u=Lr(l),h=u==De?l.constructor:J,w=h?Pl(h):"";if(w)switch(w){case zC:return Vt;case r_:return Ae;case UC:return je;case jC:return le;case ct:return Ke}return u});var L_=Ff?ca:Mo;function Ic(l){var u=l&&l.constructor;return l===("function"==typeof u&&u.prototype||cu)}function bp(l){return l==l&&!Bi(l)}function Oa(l,u){return function(h){return null!=h&&h[l]===u&&(u!==J||l in gi(h))}}function N_(l,u,h){return u=qi(u===J?l.length-1:u,0),function(){for(var w=arguments,W=-1,ne=qi(w.length-u,0),ve=Ge(ne);++W<ne;)ve[W]=w[u+W];W=-1;for(var xe=Ge(u+1);++W<u;)xe[W]=w[W];return xe[u]=h(ve),Ur(l,this,xe)}}function As(l,u){return u.length<2?l:wl(l,wo(u,0,-1))}function jo(l,u){for(var h=l.length,w=Yi(u.length,h),W=ws(l);w--;){var ne=u[w];l[w]=Ss(ne,h)?W[ne]:J}return l}function yp(l,u){if(("constructor"!==u||"function"!=typeof l[u])&&"__proto__"!=u)return l[u]}var V_=H_(nD),xu=VC||function(l,u){return Cr.setTimeout(l,u)},wp=H_(mT);function B_(l,u,h){var w=u+"";return wp(l,function ih(l,u){var h=u.length;if(!h)return l;var w=h-1;return u[w]=(h>1?"& ":"")+u[w],u=u.join(h>2?", ":" "),l.replace(vC,"{\n/* [wrapped with "+u+"] */\n")}(w,function gD(l,u){return _s(D,function(h){var w="_."+h[0];u&h[1]&&!Cd(l,w)&&l.push(w)}),l.sort()}(function I_(l){var u=l.match(lr);return u?u[1].split(uc):[]}(w),h)))}function H_(l){var u=0,h=0;return function(){var w=Hs(),W=16-(w-h);if(h=w,W>0){if(++u>=800)return arguments[0]}else u=0;return l.apply(J,arguments)}}function ku(l,u){var h=-1,w=l.length,W=w-1;for(u=u===J?w:u;++h<u;){var ne=Cu(h,W),ve=l[ne];l[ne]=l[h],l[h]=ve}return l.length=u,l}var z_=function hD(l){var u=mh(l,function(w){return 500===h.size&&h.clear(),w}),h=u.cache;return u}(function(l){var u=[];return 46===l.charCodeAt(0)&&u.push(""),l.replace(Or,function(h,w,W,ne){u.push(W?ne.replace(bC,"$1"):w||h)}),u});function Wo(l){if("string"==typeof l||ro(l))return l;var u=l+"";return"0"==u&&1/l==-_e?"-0":u}function Pl(l){if(null!=l){try{return Lf.call(l)}catch(u){}try{return l+""}catch(u){}}return""}function _D(l){if(l instanceof xn)return l.clone();var u=new Ki(l.__wrapped__,l.__chain__);return u.__actions__=ws(l.__actions__),u.__index__=l.__index__,u.__values__=l.__values__,u}var $o=An(function(l,u){return Xi(l)?ra(l,Er(u,1,Xi,!0)):[]}),Pu=An(function(l,u){var h=Ms(u);return Xi(h)&&(h=J),Xi(l)?ra(l,Er(u,1,Xi,!0),rn(h,2)):[]}),j_=An(function(l,u){var h=Ms(u);return Xi(h)&&(h=J),Xi(l)?ra(l,Er(u,1,Xi,!0),J,h):[]});function rh(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var W=null==h?0:vn(h);return W<0&&(W=qi(w+W,0)),Dr(l,rn(u,3),W)}function sh(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var W=w-1;return h!==J&&(W=vn(h),W=h<0?qi(w+W,0):Yi(W,w-1)),Dr(l,rn(u,3),W,!0)}function oh(l){return null!=l&&l.length?Er(l,1):[]}function q_(l){return l&&l.length?l[0]:J}var wD=An(function(l){var u=Ai(l,Ml);return u.length&&u[0]===l[0]?Qf(u):[]}),Y_=An(function(l){var u=Ms(l),h=Ai(l,Ml);return u===Ms(h)?u=J:h.pop(),h.length&&h[0]===l[0]?Qf(h,rn(u,2)):[]}),ah=An(function(l){var u=Ms(l),h=Ai(l,Ml);return(u="function"==typeof u?u:J)&&h.pop(),h.length&&h[0]===l[0]?Qf(h,J,u):[]});function Ms(l){var u=null==l?0:l.length;return u?l[u-1]:J}var X_=An(Q_);function Q_(l,u){return l&&l.length&&u&&u.length?Ta(l,u):l}var DD=Ds(function(l,u){var h=null==l?0:l.length,w=Hd(l,u);return rp(l,Ai(u,function(W){return Ss(W,h)?+W:W}).sort(S_)),w});function Cp(l){return null==l?l:HC.call(l)}var xD=An(function(l){return io(Er(l,1,Xi,!0))}),Ap=An(function(l){var u=Ms(l);return Xi(u)&&(u=J),io(Er(l,1,Xi,!0),rn(u,2))}),rv=An(function(l){var u=Ms(l);return u="function"==typeof u?u:J,io(Er(l,1,Xi,!0),J,u)});function Iu(l){if(!l||!l.length)return[];var u=0;return l=eo(l,function(h){if(Xi(h))return u=qi(h.length,u),!0}),vs(u,function(h){return Ai(l,gl(h))})}function Ou(l,u){if(!l||!l.length)return[];var h=Iu(l);return null==u?h:Ai(h,function(w){return Ur(u,J,w)})}var TD=An(function(l,u){return Xi(l)?ra(l,u):[]}),Mp=An(function(l){return qd(eo(l,Xi))}),lh=An(function(l){var u=Ms(l);return Xi(u)&&(u=J),qd(eo(l,Xi),rn(u,2))}),Fa=An(function(l){var u=Ms(l);return u="function"==typeof u?u:J,qd(eo(l,Xi),J,u)}),ov=An(Iu),RD=An(function(l){var u=l.length,h=u>1?l[u-1]:J;return h="function"==typeof h?(l.pop(),h):J,Ou(l,h)});function xp(l){var u=K(l);return u.__chain__=!0,u}function ch(l,u){return u(l)}var ID=Ds(function(l){var u=l.length,h=u?l[0]:0,w=this.__wrapped__,W=function(ne){return Hd(ne,l)};return!(u>1||this.__actions__.length)&&w instanceof xn&&Ss(h)?((w=w.slice(h,+h+(u?1:0))).__actions__.push({func:ch,args:[W],thisArg:J}),new Ki(w,this.__chain__).thru(function(ne){return u&&!ne.length&&ne.push(J),ne})):this.thru(W)}),kT=cp(function(l,u,h){si.call(l,h)?++l[h]:bo(l,h,1)}),BD=xl(rh),Fc=xl(sh);function Ol(l,u){return(pn(l)?_s:Vo)(l,rn(u,3))}function Us(l,u){return(pn(l)?Qg:f_)(l,rn(u,3))}var zD=cp(function(l,u,h){si.call(l,h)?l[h].push(u):bo(l,h,[u])}),Fl=An(function(l,u,h){var w=-1,W="function"==typeof u,ne=os(l)?Ge(l.length):[];return Vo(l,function(ve){ne[++w]=W?Ur(u,ve,h):yu(ve,u,h)}),ne}),jD=cp(function(l,u,h){bo(l,h,u)});function Lc(l,u){return(pn(l)?Ai:tp)(l,rn(u,3))}var $D=cp(function(l,u,h){l[h?0:1].push(u)},function(){return[[],[]]}),NT=An(function(l,u){if(null==l)return[];var h=u.length;return h>1&&is(l,u[0],u[1])?u=[]:h>2&&is(u[0],u[1],u[2])&&(u=[u[0]]),ip(l,Er(u,1),[])}),uh=Hf||function(){return Cr.Date.now()};function dh(l,u,h){return u=h?J:u,oa(l,H,J,J,J,J,u=l&&null==u?l.length:u)}function Rp(l,u){var h;if("function"!=typeof u)throw new _o(ce);return l=vn(l),function(){return--l>0&&(h=u.apply(this,arguments)),l<=1&&(u=J),h}}var hh=An(function(l,u,h){var w=1;if(h.length){var W=Bs(h,Pc(hh));w|=k}return oa(l,w,u,h,W)}),Ip=An(function(l,u,h){var w=3;if(h.length){var W=Bs(h,Pc(Ip));w|=k}return oa(u,w,l,h,W)});function ph(l,u,h){var w,W,ne,ve,xe,Le,it=0,rt=!1,ht=!1,Mt=!0;if("function"!=typeof l)throw new _o(ce);function Pt(Hi){var Eo=w,xo=W;return w=W=J,it=Hi,ve=l.apply(xo,Eo)}function Xt(Hi){return it=Hi,xe=xu(Mn,u),rt?Pt(Hi):ve}function Jt(Hi){var Eo=Hi-Le;return Le===J||Eo>=u||Eo<0||ht&&Hi-it>=ne}function Mn(){var Hi=uh();if(Jt(Hi))return Nn(Hi);xe=xu(Mn,function Cn(Hi){var sb=u-(Hi-Le);return ht?Yi(sb,ne-(Hi-it)):sb}(Hi))}function Nn(Hi){return xe=J,Mt&&w?Pt(Hi):(w=W=J,ve)}function ir(){var Hi=uh(),Eo=Jt(Hi);if(w=arguments,W=this,Le=Hi,Eo){if(xe===J)return Xt(Le);if(ht)return sD(xe),xe=xu(Mn,u),Pt(Le)}return xe===J&&(xe=xu(Mn,u)),ve}return u=so(u)||0,Bi(h)&&(rt=!!h.leading,ne=(ht="maxWait"in h)?qi(so(h.maxWait)||0,u):ne,Mt="trailing"in h?!!h.trailing:Mt),ir.cancel=function as(){xe!==J&&sD(xe),it=0,w=Le=W=xe=J},ir.flush=function ls(){return xe===J?ve:Nn(uh())},ir}var aa=An(function(l,u){return h_(l,1,u)}),GD=An(function(l,u,h){return h_(l,so(u)||0,h)});function mh(l,u){if("function"!=typeof l||null!=u&&"function"!=typeof u)throw new _o(ce);var h=function(){var w=arguments,W=u?u.apply(this,w):w[0],ne=h.cache;if(ne.has(W))return ne.get(W);var ve=l.apply(this,w);return h.cache=ne.set(W,ve)||ne,ve};return h.cache=new(mh.Cache||vo),h}function Fu(l){if("function"!=typeof l)throw new _o(ce);return function(){var u=arguments;switch(u.length){case 0:return!l.call(this);case 1:return!l.call(this,u[0]);case 2:return!l.call(this,u[0],u[1]);case 3:return!l.call(this,u[0],u[1],u[2])}return!l.apply(this,u)}}mh.Cache=vo;var KD=rD(function(l,u){var h=(u=1==u.length&&pn(u[0])?Ai(u[0],Ln(rn())):Ai(Er(u,1),Ln(rn()))).length;return An(function(w){for(var W=-1,ne=Yi(w.length,h);++W<ne;)w[W]=u[W].call(this,w[W]);return Ur(l,this,w)})}),Op=An(function(l,u){var h=Bs(u,Pc(Op));return oa(l,k,J,u,h)}),dv=An(function(l,u){var h=Bs(u,Pc(dv));return oa(l,64,J,u,h)}),Fp=Ds(function(l,u){return oa(l,256,J,J,J,u)});function ss(l,u){return l===u||l!=l&&u!=u}var Vp=Qd(Dc),tS=Qd(function(l,u){return l>=u}),Ll=Sc(function(){return arguments}())?Sc:function(l){return Ri(l)&&si.call(l,"callee")&&!Bf.call(l,"callee")},pn=Ge.isArray,nS=Js?Ln(Js):function Zf(l){return Ri(l)&&Lr(l)==pt};function os(l){return null!=l&&Bp(l.length)&&!ca(l)}function Xi(l){return Ri(l)&&os(l)}var La=uT||Mo,iS=ni?Ln(ni):function Jf(l){return Ri(l)&&Lr(l)==pe};function Na(l){if(!Ri(l))return!1;var u=Lr(l);return u==ge||"[object DOMException]"==u||"string"==typeof l.message&&"string"==typeof l.name&&!Lu(l)}function ca(l){if(!Bi(l))return!1;var u=Lr(l);return u==ye||u==ke||"[object AsyncFunction]"==u||"[object Proxy]"==u}function mv(l){return"number"==typeof l&&l==vn(l)}function Bp(l){return"number"==typeof l&&l>-1&&l%1==0&&l<=Ce}function Bi(l){var u=typeof l;return null!=l&&("object"==u||"function"==u)}function Ri(l){return null!=l&&"object"==typeof l}var aS=FC?Ln(FC):function JC(l){return Ri(l)&&Nr(l)==Ae};function Vc(l){return"number"==typeof l||Ri(l)&&Lr(l)==Ue}function Lu(l){if(!Ri(l)||Lr(l)!=De)return!1;var u=Pd(l);if(null===u)return!0;var h=si.call(u,"constructor")&&u.constructor;return"function"==typeof h&&h instanceof h&&Lf.call(h)==lT}var gh=LC?Ln(LC):function g_(l){return Ri(l)&&Lr(l)==q},_h=ml?Ln(ml):function __(l){return Ri(l)&&Nr(l)==le};function Nu(l){return"string"==typeof l||!pn(l)&&Ri(l)&&Lr(l)==Ee}function ro(l){return"symbol"==typeof l||Ri(l)&&Lr(l)==Xe}var Do=Gn?Ln(Gn):function eD(l){return Ri(l)&&Bp(l.length)&&!!yi[Lr(l)]},Wp=Qd($d),dS=Qd(function(l,u){return l<=u});function vv(l){if(!l)return[];if(os(l))return Nu(l)?po(l):ws(l);if(du&&l[du])return function _l(Ie){for(var Je,Ge=[];!(Je=Ie.next()).done;)Ge.push(Je.value);return Ge}(l[du]());var u=Nr(l);return(u==Ae?Sr:u==le?bs:Hc)(l)}function ua(l){return l?(l=so(l))===_e||l===-_e?17976931348623157e292*(l<0?-1:1):l==l?l:0:0===l?l:0}function vn(l){var u=ua(l),h=u%1;return u==u?h?u-h:u:0}function bv(l){return l?yl(vn(l),0,C):0}function so(l){if("number"==typeof l)return l;if(ro(l))return X;if(Bi(l)){var u="function"==typeof l.valueOf?l.valueOf():l;l=Bi(u)?u+"":u}if("string"!=typeof l)return 0===l?l:+l;l=mn(l);var h=ru.test(l);return h||Bg.test(l)?xf(l.slice(2),h?2:8):Cf.test(l)?X:+l}function $p(l){return zo(l,xr(l))}function Kn(l){return null==l?"":ts(l)}var qp=Uo(function(l,u){if(Ic(u)||os(u))zo(u,nr(u),l);else for(var h in u)si.call(u,h)&&mu(l,h,u[h])}),yv=Uo(function(l,u){zo(u,xr(u),l)}),vh=Uo(function(l,u,h,w){zo(u,xr(u),l,w)}),wv=Uo(function(l,u,h,w){zo(u,nr(u),l,w)}),Cv=Ds(Hd),Dv=An(function(l,u){l=gi(l);var h=-1,w=u.length,W=w>2?u[2]:J;for(W&&is(u[0],u[1],W)&&(w=1);++h<w;)for(var ne=u[h],ve=xr(ne),xe=-1,Le=ve.length;++xe<Le;){var it=ve[xe],rt=l[it];(rt===J||ss(rt,cu[it])&&!si.call(l,it))&&(l[it]=ne[it])}return l}),Sv=An(function(l){return l.push(J,Tc),Ur(Pv,J,l)});function yh(l,u,h){var w=null==l?J:wl(l,u);return w===J?h:w}function Bc(l,u){return null!=l&&dD(l,u,p_)}var xv=up(function(l,u,h){null!=u&&"function"!=typeof u.toString&&(u=Nf.call(u)),l[u]=h},em(xs)),Kp=up(function(l,u,h){null!=u&&"function"!=typeof u.toString&&(u=Nf.call(u)),si.call(l,u)?l[u].push(h):l[u]=[h]},rn),kv=An(yu);function nr(l){return os(l)?Pi(l):Dl(l)}function xr(l){return os(l)?Pi(l,!0):function tD(l){if(!Bi(l))return function pD(l){var u=[];if(null!=l)for(var h in gi(l))u.push(h);return u}(l);var u=Ic(l),h=[];for(var w in l)"constructor"==w&&(u||!si.call(l,w))||h.push(w);return h}(l)}var mS=Uo(function(l,u,h){un(l,u,h)}),Pv=Uo(function(l,u,h,w){un(l,u,h,w)}),Rv=Ds(function(l,u){var h={};if(null==l)return h;var w=!1;u=Ai(u,function(ne){return ne=Ra(ne,l),w||(w=ne.length>1),ne}),zo(l,fp(l),h),w&&(h=ur(h,7,Jd));for(var W=u.length;W--;)C_(h,u[W]);return h}),Iv=Ds(function(l,u){return null==l?{}:function ys(l,u){return Al(l,u,function(h,w){return Bc(l,w)})}(l,u)});function gS(l,u){if(null==l)return{};var h=Ai(fp(l),function(w){return[w]});return u=rn(u),Al(l,h,function(w,W){return u(w,W[0])})}var Lv=Co(nr),Nv=Co(xr);function Hc(l){return null==l?[]:Qr(l,nr(l))}var DS=xc(function(l,u,h){return u=u.toLowerCase(),l+(h?Hv(u):u)});function Hv(l){return Va(Kn(l).toLowerCase())}function dn(l){return(l=Kn(l))&&l.replace(wC,lu).replace(rT,"")}var SS=xc(function(l,u,h){return l+(h?"-":"")+u.toLowerCase()}),AS=xc(function(l,u,h){return l+(h?" ":"")+u.toLowerCase()}),jv=E_("toLowerCase"),Gv=xc(function(l,u,h){return l+(h?"_":"")+u.toLowerCase()}),kS=xc(function(l,u,h){return l+(h?" ":"")+Va(u)}),RS=xc(function(l,u,h){return l+(h?" ":"")+u.toUpperCase()}),Va=E_("toUpperCase");function Yv(l,u,h){return l=Kn(l),(u=h?J:u)===J?function Rf(Ie){return Mf.test(Ie)}(l)?function Ed(Ie){return Ie.match(sT)||[]}(l):function ki(Ie){return Ie.match(Ns)||[]}(l):l.match(u)||[]}var Jp=An(function(l,u){try{return Ur(l,J,u)}catch(h){return Na(h)?h:new gn(h)}}),Ch=Ds(function(l,u){return _s(u,function(h){h=Wo(h),bo(l,h,hh(l[h],l))}),l});function em(l){return function(){return l}}var FS=x_(),LS=x_(!0);function xs(l){return l}function Dh(l){return wu("function"==typeof l?l:ur(l,1))}var Qv=An(function(l,u){return function(h){return yu(h,l,u)}}),tm=An(function(l,u){return function(h){return yu(l,h,u)}});function Zv(l,u,h){var w=nr(u),W=sa(u,w);null==h&&(!Bi(u)||!W.length&&w.length)&&(h=u,u=l,l=this,W=sa(u,nr(u)));var ne=!(Bi(h)&&"chain"in h&&!h.chain),ve=ca(l);return _s(W,function(xe){var Le=u[xe];l[xe]=Le,ve&&(l.prototype[xe]=function(){var it=this.__chain__;if(ne||it){var rt=l(this.__wrapped__),ht=rt.__actions__=ws(this.__actions__);return ht.push({func:Le,args:arguments,thisArg:l}),rt.__chain__=it,rt}return Le.apply(l,ta([this.value()],arguments))})}),l}function im(){}var R=Mu(Ai),Vl=Mu(Lo),Jv=Mu(Tf);function Vu(l){return _p(l)?gl(Wo(l)):function Ac(l){return function(u){return wl(u,l)}}(l)}var eb=k_(),VS=k_(!0);function Bu(){return[]}function Mo(){return!1}var Sh=qn(function(l,u){return l+u},0),Ah=Cs("ceil"),om=qn(function(l,u){return l/u},1),am=Cs("floor"),ib=qn(function(l,u){return l*u},1),YT=Cs("round"),jS=qn(function(l,u){return l-u},0);return K.after=function cv(l,u){if("function"!=typeof u)throw new _o(ce);return l=vn(l),function(){if(--l<1)return u.apply(this,arguments)}},K.ary=dh,K.assign=qp,K.assignIn=yv,K.assignInWith=vh,K.assignWith=wv,K.at=Cv,K.before=Rp,K.bind=hh,K.bindAll=Ch,K.bindKey=Ip,K.castArray=function eS(){if(!arguments.length)return[];var l=arguments[0];return pn(l)?l:[l]},K.chain=xp,K.chunk=function vD(l,u,h){u=(h?is(l,u,h):u===J)?1:qi(vn(u),0);var w=null==l?0:l.length;if(!w||u<1)return[];for(var W=0,ne=0,ve=Ge(zf(w/u));W<w;)ve[ne++]=wo(l,W,W+=u);return ve},K.compact=function Tu(l){for(var u=-1,h=null==l?0:l.length,w=0,W=[];++u<h;){var ne=l[u];ne&&(W[w++]=ne)}return W},K.concat=function U_(){var l=arguments.length;if(!l)return[];for(var u=Ge(l-1),h=arguments[0],w=l;w--;)u[w-1]=arguments[w];return ta(pn(h)?ws(h):[h],Er(u,1))},K.cond=function IS(l){var u=null==l?0:l.length,h=rn();return l=u?Ai(l,function(w){if("function"!=typeof w[1])throw new _o(ce);return[h(w[0]),w[1]]}):[],An(function(w){for(var W=-1;++W<u;){var ne=l[W];if(Ur(ne[0],this,w))return Ur(ne[1],this,w)}})},K.conforms=function Kv(l){return function _u(l){var u=nr(l);return function(h){return d_(h,l,u)}}(ur(l,1))},K.constant=em,K.countBy=kT,K.create=function Nl(l,u){var h=bl(l);return null==u?h:gu(h,u)},K.curry=function fh(l,u,h){var w=oa(l,8,J,J,J,J,J,u=h?J:u);return w.placeholder=fh.placeholder,w},K.curryRight=function uv(l,u,h){var w=oa(l,16,J,J,J,J,J,u=h?J:u);return w.placeholder=uv.placeholder,w},K.debounce=ph,K.defaults=Dv,K.defaultsDeep=Sv,K.defer=aa,K.delay=GD,K.difference=$o,K.differenceBy=Pu,K.differenceWith=j_,K.drop=function W_(l,u,h){var w=null==l?0:l.length;return w?wo(l,(u=h||u===J?1:vn(u))<0?0:u,w):[]},K.dropRight=function $_(l,u,h){var w=null==l?0:l.length;return w?wo(l,0,(u=w-(u=h||u===J?1:vn(u)))<0?0:u):[]},K.dropRightWhile=function wT(l,u){return l&&l.length?Wr(l,rn(u,3),!0,!0):[]},K.dropWhile=function CT(l,u){return l&&l.length?Wr(l,rn(u,3),!0):[]},K.fill=function DT(l,u,h,w){var W=null==l?0:l.length;return W?(h&&"number"!=typeof h&&is(l,u,h)&&(h=0,w=W),function hT(l,u,h,w){var W=l.length;for((h=vn(h))<0&&(h=-h>W?0:W+h),(w=w===J||w>W?W:vn(w))<0&&(w+=W),w=h>w?0:bv(w);h<w;)l[h++]=u;return l}(l,u,h,w)):[]},K.filter=function Il(l,u){return(pn(l)?eo:vu)(l,rn(u,3))},K.flatMap=function yt(l,u){return Er(Lc(l,u),1)},K.flatMapDeep=function HD(l,u){return Er(Lc(l,u),_e)},K.flatMapDepth=function TT(l,u,h){return h=h===J?1:vn(h),Er(Lc(l,u),h)},K.flatten=oh,K.flattenDeep=function ST(l){return null!=l&&l.length?Er(l,_e):[]},K.flattenDepth=function AT(l,u){return null!=l&&l.length?Er(l,u=u===J?1:vn(u)):[]},K.flip=function qD(l){return oa(l,512)},K.flow=FS,K.flowRight=LS,K.fromPairs=function G_(l){for(var u=-1,h=null==l?0:l.length,w={};++u<h;){var W=l[u];w[W[0]]=W[1]}return w},K.functions=function Ev(l){return null==l?[]:sa(l,nr(l))},K.functionsIn=function Yp(l){return null==l?[]:sa(l,xr(l))},K.groupBy=zD,K.initial=function yD(l){return null!=l&&l.length?wo(l,0,-1):[]},K.intersection=wD,K.intersectionBy=Y_,K.intersectionWith=ah,K.invert=xv,K.invertBy=Kp,K.invokeMap=Fl,K.iteratee=Dh,K.keyBy=jD,K.keys=nr,K.keysIn=xr,K.map=Lc,K.mapKeys=function pS(l,u){var h={};return u=rn(u,3),yo(l,function(w,W,ne){bo(h,u(w,W,ne),w)}),h},K.mapValues=function Tv(l,u){var h={};return u=rn(u,3),yo(l,function(w,W,ne){bo(h,W,u(w,W,ne))}),h},K.matches=function NS(l){return Sl(ur(l,1))},K.matchesProperty=function Xv(l,u){return v_(l,ur(u,1))},K.memoize=mh,K.merge=mS,K.mergeWith=Pv,K.method=Qv,K.methodOf=tm,K.mixin=Zv,K.negate=Fu,K.nthArg=function WT(l){return l=vn(l),An(function(u){return b_(u,l)})},K.omit=Rv,K.omitBy=function Xp(l,u){return gS(l,Fu(rn(u)))},K.once=function YD(l){return Rp(2,l)},K.orderBy=function WD(l,u,h,w){return null==l?[]:(pn(u)||(u=null==u?[]:[u]),pn(h=w?J:h)||(h=null==h?[]:[h]),ip(l,u,h))},K.over=R,K.overArgs=KD,K.overEvery=Vl,K.overSome=Jv,K.partial=Op,K.partialRight=dv,K.partition=$D,K.pick=Iv,K.pickBy=gS,K.property=Vu,K.propertyOf=function Ao(l){return function(u){return null==l?J:wl(l,u)}},K.pull=X_,K.pullAll=Q_,K.pullAllBy=function zs(l,u,h){return l&&l.length&&u&&u.length?Ta(l,u,rn(h,2)):l},K.pullAllWith=function Z_(l,u,h){return l&&l.length&&u&&u.length?Ta(l,u,J,h):l},K.pullAt=DD,K.range=eb,K.rangeRight=VS,K.rearg=Fp,K.reject=function RT(l,u){return(pn(l)?eo:vu)(l,Fu(rn(u,3)))},K.remove=function SD(l,u){var h=[];if(!l||!l.length)return h;var w=-1,W=[],ne=l.length;for(u=rn(u,3);++w<ne;){var ve=l[w];u(ve,w,l)&&(h.push(ve),W.push(w))}return rp(l,W),h},K.rest=function XD(l,u){if("function"!=typeof l)throw new _o(ce);return An(l,u=u===J?u:vn(u))},K.reverse=Cp,K.sampleSize=function IT(l,u,h){return u=(h?is(l,u,h):u===J)?1:vn(u),(pn(l)?QC:pT)(l,u)},K.set=function _S(l,u,h){return null==l?l:Gd(l,u,h)},K.setWith=function Fv(l,u,h,w){return w="function"==typeof w?w:J,null==l?l:Gd(l,u,h,w)},K.shuffle=function OT(l){return(pn(l)?Yf:gT)(l)},K.slice=function AD(l,u,h){var w=null==l?0:l.length;return w?(h&&"number"!=typeof h&&is(l,u,h)?(u=0,h=w):(u=null==u?0:vn(u),h=h===J?w:vn(h)),wo(l,u,h)):[]},K.sortBy=NT,K.sortedUniq=function ev(l){return l&&l.length?iD(l):[]},K.sortedUniqBy=function tv(l,u){return l&&l.length?iD(l,rn(u,2)):[]},K.split=function Ii(l,u,h){return h&&"number"!=typeof h&&is(l,u,h)&&(u=h=J),(h=h===J?C:h>>>0)?(l=Kn(l))&&("string"==typeof u||null!=u&&!gh(u))&&!(u=ts(u))&&fo(l)?El(po(l),0,h):l.split(u,h):[]},K.spread=function QD(l,u){if("function"!=typeof l)throw new _o(ce);return u=null==u?0:qi(vn(u),0),An(function(h){var w=h[u],W=El(h,0,u);return w&&ta(W,w),Ur(l,this,W)})},K.tail=function ED(l){var u=null==l?0:l.length;return u?wo(l,1,u):[]},K.take=function nv(l,u,h){return l&&l.length?wo(l,0,(u=h||u===J?1:vn(u))<0?0:u):[]},K.takeRight=function iv(l,u,h){var w=null==l?0:l.length;return w?wo(l,(u=w-(u=h||u===J?1:vn(u)))<0?0:u,w):[]},K.takeRightWhile=function Sp(l,u){return l&&l.length?Wr(l,rn(u,3),!1,!0):[]},K.takeWhile=function xT(l,u){return l&&l.length?Wr(l,rn(u,3)):[]},K.tap=function Oc(l,u){return u(l),l},K.throttle=function ZD(l,u,h){var w=!0,W=!0;if("function"!=typeof l)throw new _o(ce);return Bi(h)&&(w="leading"in h?!!h.leading:w,W="trailing"in h?!!h.trailing:W),ph(l,u,{leading:w,maxWait:u,trailing:W})},K.thru=ch,K.toArray=vv,K.toPairs=Lv,K.toPairsIn=Nv,K.toPath=function nb(l){return pn(l)?Ai(l,Wo):ro(l)?[l]:ws(z_(Kn(l)))},K.toPlainObject=$p,K.transform=function So(l,u,h){var w=pn(l),W=w||La(l)||Do(l);if(u=rn(u,4),null==h){var ne=l&&l.constructor;h=W?w?new ne:[]:Bi(l)&&ca(ne)?bl(Pd(l)):{}}return(W?_s:yo)(l,function(ve,xe,Le){return u(h,ve,xe,Le)}),h},K.unary=function hv(l){return dh(l,1)},K.union=xD,K.unionBy=Ap,K.unionWith=rv,K.uniq=function sv(l){return l&&l.length?io(l):[]},K.uniqBy=function Rl(l,u){return l&&l.length?io(l,rn(u,2)):[]},K.uniqWith=function kD(l,u){return u="function"==typeof u?u:J,l&&l.length?io(l,J,u):[]},K.unset=function vS(l,u){return null==l||C_(l,u)},K.unzip=Iu,K.unzipWith=Ou,K.update=function Vv(l,u,h){return null==l?l:D_(l,u,Yd(h))},K.updateWith=function bS(l,u,h,w){return w="function"==typeof w?w:J,null==l?l:D_(l,u,Yd(h),w)},K.values=Hc,K.valuesIn=function yS(l){return null==l?[]:Qr(l,xr(l))},K.without=TD,K.words=Yv,K.wrap=function JD(l,u){return Op(Yd(u),l)},K.xor=Mp,K.xorBy=lh,K.xorWith=Fa,K.zip=ov,K.zipObject=function Ep(l,u){return Du(l||[],u||[],mu)},K.zipObjectDeep=function PD(l,u){return Du(l||[],u||[],Gd)},K.zipWith=RD,K.entries=Lv,K.entriesIn=Nv,K.extend=yv,K.extendWith=vh,Zv(K,K),K.add=Sh,K.attempt=Jp,K.camelCase=DS,K.capitalize=Hv,K.ceil=Ah,K.clamp=function wS(l,u,h){return h===J&&(h=u,u=J),h!==J&&(h=(h=so(h))==h?h:0),u!==J&&(u=(u=so(u))==u?u:0),yl(so(l),u,h)},K.clone=function rs(l){return ur(l,4)},K.cloneDeep=function fv(l){return ur(l,5)},K.cloneDeepWith=function Np(l,u){return ur(l,5,u="function"==typeof u?u:J)},K.cloneWith=function Lp(l,u){return ur(l,4,u="function"==typeof u?u:J)},K.conformsTo=function $r(l,u){return null==u||d_(l,u,nr(u))},K.deburr=dn,K.defaultTo=function OS(l,u){return null==l||l!=l?u:l},K.divide=om,K.endsWith=function be(l,u,h){l=Kn(l),u=ts(u);var w=l.length,W=h=h===J?w:yl(vn(h),0,w);return(h-=u.length)>=0&&l.slice(h,W)==u},K.eq=ss,K.escape=function zv(l){return(l=Kn(l))&&ms.test(l)?l.replace(Li,fc):l},K.escapeRegExp=function Uv(l){return(l=Kn(l))&&fl.test(l)?l.replace(xi,"\\$&"):l},K.every=function VD(l,u,h){var w=pn(l)?Lo:ZC;return h&&is(l,u,h)&&(u=J),w(l,rn(u,3))},K.find=BD,K.findIndex=rh,K.findKey=function hS(l,u){return Jn(l,rn(u,3),yo)},K.findLast=Fc,K.findLastIndex=sh,K.findLastKey=function VT(l,u){return Jn(l,rn(u,3),Ud)},K.floor=am,K.forEach=Ol,K.forEachRight=Us,K.forIn=function bh(l,u){return null==l?l:zd(l,rn(u,3),xr)},K.forInRight=function fS(l,u){return null==l?l:bu(l,rn(u,3),xr)},K.forOwn=function Av(l,u){return l&&yo(l,rn(u,3))},K.forOwnRight=function Mv(l,u){return l&&Ud(l,rn(u,3))},K.get=yh,K.gt=Vp,K.gte=tS,K.has=function wh(l,u){return null!=l&&dD(l,u,fT)},K.hasIn=Bc,K.head=q_,K.identity=xs,K.includes=function UD(l,u,h,w){l=os(l)?l:Hc(l),h=h&&!w?vn(h):0;var W=l.length;return h<0&&(h=qi(W+h,0)),Nu(l)?h<=W&&l.indexOf(u,h)>-1:!!W&&er(l,u,h)>-1},K.indexOf=function bD(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var W=null==h?0:vn(h);return W<0&&(W=qi(w+W,0)),er(l,u,W)},K.inRange=function Bv(l,u,h){return u=ua(u),h===J?(h=u,u=0):h=ua(h),function m_(l,u,h){return l>=Yi(u,h)&&l<qi(u,h)}(l=so(l),u,h)},K.invoke=kv,K.isArguments=Ll,K.isArray=pn,K.isArrayBuffer=nS,K.isArrayLike=os,K.isArrayLikeObject=Xi,K.isBoolean=function pv(l){return!0===l||!1===l||Ri(l)&&Lr(l)==z},K.isBuffer=La,K.isDate=iS,K.isElement=function rS(l){return Ri(l)&&1===l.nodeType&&!Lu(l)},K.isEmpty=function Nc(l){if(null==l)return!0;if(os(l)&&(pn(l)||"string"==typeof l||"function"==typeof l.splice||La(l)||Do(l)||Ll(l)))return!l.length;var u=Nr(l);if(u==Ae||u==le)return!l.size;if(Ic(l))return!Dl(l).length;for(var h in l)if(si.call(l,h))return!1;return!0},K.isEqual=function sS(l,u){return ka(l,u)},K.isEqualWith=function oS(l,u,h){var w=(h="function"==typeof h?h:J)?h(l,u):J;return w===J?ka(l,u,J,h):!!w},K.isError=Na,K.isFinite=function la(l){return"number"==typeof l&&hu(l)},K.isFunction=ca,K.isInteger=mv,K.isLength=Bp,K.isMap=aS,K.isMatch=function Es(l,u){return l===u||Wd(l,u,pp(u))},K.isMatchWith=function Hp(l,u,h){return h="function"==typeof h?h:J,Wd(l,u,pp(u),h)},K.isNaN=function zp(l){return Vc(l)&&l!=+l},K.isNative=function lS(l){if(L_(l))throw new gn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ep(l)},K.isNil=function cS(l){return null==l},K.isNull=function gv(l){return null===l},K.isNumber=Vc,K.isObject=Bi,K.isObjectLike=Ri,K.isPlainObject=Lu,K.isRegExp=gh,K.isSafeInteger=function Up(l){return mv(l)&&l>=-Ce&&l<=Ce},K.isSet=_h,K.isString=Nu,K.isSymbol=ro,K.isTypedArray=Do,K.isUndefined=function jp(l){return l===J},K.isWeakMap=function _v(l){return Ri(l)&&Nr(l)==Ke},K.isWeakSet=function uS(l){return Ri(l)&&"[object WeakSet]"==Lr(l)},K.join=function K_(l,u){return null==l?"":to.call(l,u)},K.kebabCase=SS,K.last=Ms,K.lastIndexOf=function CD(l,u,h){var w=null==l?0:l.length;if(!w)return-1;var W=w;return h!==J&&(W=(W=vn(h))<0?qi(w+W,0):Yi(W,w-1)),u==u?function mi(Ie,Je,Ge){for(var It=Ge+1;It--;)if(Ie[It]===Je)return It;return It}(l,u,W):Dr(l,au,W,!0)},K.lowerCase=AS,K.lowerFirst=jv,K.lt=Wp,K.lte=dS,K.max=function lm(l){return l&&l.length?Xf(l,xs,Dc):J},K.maxBy=function qT(l,u){return l&&l.length?Xf(l,rn(u,2),Dc):J},K.mean=function BS(l){return Sd(l,xs)},K.meanBy=function HS(l,u){return Sd(l,rn(u,2))},K.min=function zS(l){return l&&l.length?Xf(l,xs,$d):J},K.minBy=function US(l,u){return l&&l.length?Xf(l,rn(u,2),$d):J},K.stubArray=Bu,K.stubFalse=Mo,K.stubObject=function rm(){return{}},K.stubString=function tb(){return""},K.stubTrue=function sm(){return!0},K.multiply=ib,K.nth=function jn(l,u){return l&&l.length?b_(l,vn(u)):J},K.noConflict=function nm(){return Cr._===this&&(Cr._=cT),this},K.noop=im,K.now=uh,K.pad=function MS(l,u,h){l=Kn(l);var w=(u=vn(u))?gc(l):0;if(!u||w>=u)return l;var W=(u-w)/2;return Ia(Ti(W),h)+l+Ia(zf(W),h)},K.padEnd=function Wv(l,u,h){l=Kn(l);var w=(u=vn(u))?gc(l):0;return u&&w<u?l+Ia(u-w,h):l},K.padStart=function ES(l,u,h){l=Kn(l);var w=(u=vn(u))?gc(l):0;return u&&w<u?Ia(u-w,h)+l:l},K.parseInt=function xS(l,u,h){return h||null==u?u=0:u&&(u=+u),i_(Kn(l).replace(pl,""),u||0)},K.random=function CS(l,u,h){if(h&&"boolean"!=typeof h&&is(l,u,h)&&(u=h=J),h===J&&("boolean"==typeof u?(h=u,u=J):"boolean"==typeof l&&(h=l,l=J)),l===J&&u===J?(l=0,u=1):(l=ua(l),u===J?(u=l,l=0):u=ua(u)),l>u){var w=l;l=u,u=w}if(h||l%1||u%1){var W=fu();return Yi(l+W*(u-l+qt("1e-"+((W+"").length-1))),u)}return Cu(l,u)},K.reduce=function Tp(l,u,h){var w=pn(l)?Dd:Sa,W=arguments.length<3;return w(l,rn(u,4),h,W,Vo)},K.reduceRight=function PT(l,u,h){var w=pn(l)?Ut:Sa,W=arguments.length<3;return w(l,rn(u,4),h,W,f_)},K.repeat=function BT(l,u,h){return u=(h?is(l,u,h):u===J)?1:vn(u),y_(Kn(l),u)},K.replace=function $v(){var l=arguments,u=Kn(l[0]);return l.length<3?u:u.replace(l[1],l[2])},K.result=function Ov(l,u,h){var w=-1,W=(u=Ra(u,l)).length;for(W||(W=1,l=J);++w<W;){var ne=null==l?J:l[Wo(u[w])];ne===J&&(w=W,ne=h),l=ca(ne)?ne.call(l):ne}return l},K.round=YT,K.runInContext=Ie,K.sample=function Pp(l){return(pn(l)?ia:lt)(l)},K.size=function FT(l){if(null==l)return 0;if(os(l))return Nu(l)?gc(l):l.length;var u=Nr(l);return u==Ae||u==le?l.size:Dl(l).length},K.snakeCase=Gv,K.some=function LT(l,u,h){var w=pn(l)?Tf:_T;return h&&is(l,u,h)&&(u=J),w(l,rn(u,3))},K.sortedIndex=function MD(l,u){return Pa(l,u)},K.sortedIndexBy=function MT(l,u,h){return w_(l,u,rn(h,2))},K.sortedIndexOf=function ET(l,u){var h=null==l?0:l.length;if(h){var w=Pa(l,u);if(w<h&&ss(l[w],u))return w}return-1},K.sortedLastIndex=function Ru(l,u){return Pa(l,u,!0)},K.sortedLastIndexBy=function Dp(l,u,h){return w_(l,u,rn(h,2),!0)},K.sortedLastIndexOf=function J_(l,u){if(null!=l&&l.length){var w=Pa(l,u,!0)-1;if(ss(l[w],u))return w}return-1},K.startCase=kS,K.startsWith=function Qp(l,u,h){return l=Kn(l),h=null==h?0:yl(vn(h),0,l.length),u=ts(u),l.slice(h,h+u.length)==u},K.subtract=jS,K.sum=function KT(l){return l&&l.length?Pf(l,xs):0},K.sumBy=function rb(l,u){return l&&l.length?Pf(l,rn(u,2)):0},K.template=function Zp(l,u,h){var w=K.templateSettings;h&&is(l,u,h)&&(u=J),l=Kn(l),u=vh({},u,w,dp);var xe,Le,W=vh({},u.imports,w.imports,dp),ne=nr(W),ve=Qr(W,ne),it=0,rt=u.interpolate||_d,ht="__p += '",Mt=e_((u.escape||_d).source+"|"+rt.source+"|"+(rt===Fs?Vg:_d).source+"|"+(u.evaluate||_d).source+"|$","g"),Pt="//# sourceURL="+(si.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RC+"]")+"\n";l.replace(Mt,function(Jt,Mn,Nn,as,ls,ir){return Nn||(Nn=as),ht+=l.slice(it,ir).replace(CC,wn),Mn&&(xe=!0,ht+="' +\n__e("+Mn+") +\n'"),ls&&(Le=!0,ht+="';\n"+ls+";\n__p += '"),Nn&&(ht+="' +\n((__t = ("+Nn+")) == null ? '' : __t) +\n'"),it=ir+Jt.length,Jt}),ht+="';\n";var Xt=si.call(u,"variable")&&u.variable;if(Xt){if(Z1.test(Xt))throw new gn("Invalid `variable` option passed into `_.template`")}else ht="with (obj) {\n"+ht+"\n}\n";ht=(Le?ht.replace(hn,""):ht).replace(yn,"$1").replace(hi,"$1;"),ht="function("+(Xt||"obj")+") {\n"+(Xt?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(xe?", __e = _.escape":"")+(Le?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+ht+"return __p\n}";var Cn=Jp(function(){return ei(ne,Pt+"return "+ht).apply(J,ve)});if(Cn.source=ht,Na(Cn))throw Cn;return Cn},K.times=function $T(l,u){if((l=vn(l))<1||l>Ce)return[];var h=C,w=Yi(l,C);u=rn(u),l-=C;for(var W=vs(w,u);++h<l;)u(h);return W},K.toFinite=ua,K.toInteger=vn,K.toLength=bv,K.toLower=function TS(l){return Kn(l).toLowerCase()},K.toNumber=so,K.toSafeInteger=function Gp(l){return l?yl(vn(l),-Ce,Ce):0===l?l:0},K.toString=Kn,K.toUpper=function HT(l){return Kn(l).toUpperCase()},K.trim=function zT(l,u,h){if((l=Kn(l))&&(h||u===J))return mn(l);if(!l||!(u=ts(u)))return l;var w=po(l),W=po(u);return El(w,cr(w,W),Aa(w,W)+1).join("")},K.trimEnd=function UT(l,u,h){if((l=Kn(l))&&(h||u===J))return l.slice(0,Zr(l)+1);if(!l||!(u=ts(u)))return l;var w=po(l);return El(w,0,Aa(w,po(u))+1).join("")},K.trimStart=function PS(l,u,h){if((l=Kn(l))&&(h||u===J))return l.replace(pl,"");if(!l||!(u=ts(u)))return l;var w=po(l);return El(w,cr(w,po(u))).join("")},K.truncate=function qv(l,u){var h=30,w="...";if(Bi(u)){var W="separator"in u?u.separator:W;h="length"in u?vn(u.length):h,w="omission"in u?ts(u.omission):w}var ne=(l=Kn(l)).length;if(fo(l)){var ve=po(l);ne=ve.length}if(h>=ne)return l;var xe=h-gc(w);if(xe<1)return w;var Le=ve?El(ve,0,xe).join(""):l.slice(0,xe);if(W===J)return Le+w;if(ve&&(xe+=Le.length-xe),gh(W)){if(l.slice(xe).search(W)){var it,rt=Le;for(W.global||(W=e_(W.source,Kn(gd.exec(W))+"g")),W.lastIndex=0;it=W.exec(rt);)var ht=it.index;Le=Le.slice(0,ht===J?xe:ht)}}else if(l.indexOf(ts(W),xe)!=xe){var Mt=Le.lastIndexOf(W);Mt>-1&&(Le=Le.slice(0,Mt))}return Le+w},K.unescape=function jT(l){return(l=Kn(l))&&bi.test(l)?l.replace(Fn,mo):l},K.uniqueId=function GT(l){var u=++t_;return Kn(l)+u},K.upperCase=RS,K.upperFirst=Va,K.each=Ol,K.eachRight=Us,K.first=q_,Zv(K,function(){var l={};return yo(K,function(u,h){si.call(K.prototype,h)||(l[h]=u)}),l}(),{chain:!1}),K.VERSION="4.17.21",_s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){K[l].placeholder=K}),_s(["drop","take"],function(l,u){xn.prototype[l]=function(h){h=h===J?1:qi(vn(h),0);var w=this.__filtered__&&!u?new xn(this):this.clone();return w.__filtered__?w.__takeCount__=Yi(h,w.__takeCount__):w.__views__.push({size:Yi(h,C),type:l+(w.__dir__<0?"Right":"")}),w},xn.prototype[l+"Right"]=function(h){return this.reverse()[l](h).reverse()}}),_s(["filter","map","takeWhile"],function(l,u){var h=u+1,w=1==h||3==h;xn.prototype[l]=function(W){var ne=this.clone();return ne.__iteratees__.push({iteratee:rn(W,3),type:h}),ne.__filtered__=ne.__filtered__||w,ne}}),_s(["head","last"],function(l,u){var h="take"+(u?"Right":"");xn.prototype[l]=function(){return this[h](1).value()[0]}}),_s(["initial","tail"],function(l,u){var h="drop"+(u?"":"Right");xn.prototype[l]=function(){return this.__filtered__?new xn(this):this[h](1)}}),xn.prototype.compact=function(){return this.filter(xs)},xn.prototype.find=function(l){return this.filter(l).head()},xn.prototype.findLast=function(l){return this.reverse().find(l)},xn.prototype.invokeMap=An(function(l,u){return"function"==typeof l?new xn(this):this.map(function(h){return yu(h,l,u)})}),xn.prototype.reject=function(l){return this.filter(Fu(rn(l)))},xn.prototype.slice=function(l,u){l=vn(l);var h=this;return h.__filtered__&&(l>0||u<0)?new xn(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),u!==J&&(h=(u=vn(u))<0?h.dropRight(-u):h.take(u-l)),h)},xn.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},xn.prototype.toArray=function(){return this.take(C)},yo(xn.prototype,function(l,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),W=K[w?"take"+("last"==u?"Right":""):u],ne=w||/^find/.test(u);!W||(K.prototype[u]=function(){var ve=this.__wrapped__,xe=w?[1]:arguments,Le=ve instanceof xn,it=xe[0],rt=Le||pn(ve),ht=function(Mn){var Nn=W.apply(K,ta([Mn],xe));return w&&Mt?Nn[0]:Nn};rt&&h&&"function"==typeof it&&1!=it.length&&(Le=rt=!1);var Mt=this.__chain__,Pt=!!this.__actions__.length,Xt=ne&&!Mt,Cn=Le&&!Pt;if(!ne&&rt){ve=Cn?ve:new xn(this);var Jt=l.apply(ve,xe);return Jt.__actions__.push({func:ch,args:[ht],thisArg:J}),new Ki(Jt,Mt)}return Xt&&Cn?l.apply(this,xe):(Jt=this.thru(ht),Xt?w?Jt.value()[0]:Jt.value():Jt)})}),_s(["pop","push","shift","sort","splice","unshift"],function(l){var u=Of[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",w=/^(?:pop|shift)$/.test(l);K.prototype[l]=function(){var W=arguments;if(w&&!this.__chain__){var ne=this.value();return u.apply(pn(ne)?ne:[],W)}return this[h](function(ve){return u.apply(pn(ve)?ve:[],W)})}}),yo(xn.prototype,function(l,u){var h=K[u];if(h){var w=h.name+"";si.call(yc,w)||(yc[w]=[]),yc[w].push({name:u,func:h})}}),yc[Re(J,2).name]=[{name:"wrapper",func:J}],xn.prototype.clone=function jf(){var l=new xn(this.__wrapped__);return l.__actions__=ws(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=ws(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=ws(this.__views__),l},xn.prototype.reverse=function dT(){if(this.__filtered__){var l=new xn(this);l.__dir__=-1,l.__filtered__=!0}else(l=this.clone()).__dir__*=-1;return l},xn.prototype.value=function WC(){var l=this.__wrapped__.value(),u=this.__dir__,h=pn(l),w=u<0,W=h?l.length:0,ne=function bT(l,u,h){for(var w=-1,W=h.length;++w<W;){var ne=h[w],ve=ne.size;switch(ne.type){case"drop":l+=ve;break;case"dropRight":u-=ve;break;case"take":u=Yi(u,l+ve);break;case"takeRight":l=qi(l,u-ve)}}return{start:l,end:u}}(0,W,this.__views__),ve=ne.start,xe=ne.end,Le=xe-ve,it=w?xe:ve-1,rt=this.__iteratees__,ht=rt.length,Mt=0,Pt=Yi(Le,this.__takeCount__);if(!h||!w&&W==Le&&Pt==Le)return Ho(l,this.__actions__);var Xt=[];e:for(;Le--&&Mt<Pt;){for(var Cn=-1,Jt=l[it+=u];++Cn<ht;){var Mn=rt[Cn],as=Mn.type,ls=(0,Mn.iteratee)(Jt);if(2==as)Jt=ls;else if(!ls){if(1==as)continue e;break e}}Xt[Mt++]=Jt}return Xt},K.prototype.at=ID,K.prototype.chain=function OD(){return xp(this)},K.prototype.commit=function FD(){return new Ki(this.value(),this.__chain__)},K.prototype.next=function kp(){this.__values__===J&&(this.__values__=vv(this.value()));var l=this.__index__>=this.__values__.length;return{done:l,value:l?J:this.__values__[this.__index__++]}},K.prototype.plant=function av(l){for(var u,h=this;h instanceof Ma;){var w=_D(h);w.__index__=0,w.__values__=J,u?W.__wrapped__=w:u=w;var W=w;h=h.__wrapped__}return W.__wrapped__=l,u},K.prototype.reverse=function ND(){var l=this.__wrapped__;if(l instanceof xn){var u=l;return this.__actions__.length&&(u=new xn(this)),(u=u.reverse()).__actions__.push({func:ch,args:[Cp],thisArg:J}),new Ki(u,this.__chain__)}return this.thru(Cp)},K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=function lv(){return Ho(this.__wrapped__,this.__actions__)},K.prototype.first=K.prototype.head,du&&(K.prototype[du]=function LD(){return this}),K}();Cr._=xd,(I=function(){return xd}.call(re,He,re,Ze))!==J&&(Ze.exports=I)}.call(this)},3028:function(Ze,re){var He,J;He=function Ve(){"use strict";var Te="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==Te?Te:{},Me=!Te.document&&!!Te.postMessage,ce=Me&&/blob:/i.test((Te.location||{}).protocol),E={},Q=0,T={parse:function(L,V){var te=(V=V||{}).dynamicTyping||!1;if(Z(te)&&(V.dynamicTypingFunction=te,te={}),V.dynamicTyping=te,V.transform=!!Z(V.transform)&&V.transform,V.worker&&T.WORKERS_SUPPORTED){var ue=function(){if(!T.WORKERS_SUPPORTED)return!1;var Se,_e,we=(Se=Te.URL||Te.webkitURL||null,_e=Ve.toString(),T.BLOB_URL||(T.BLOB_URL=Se.createObjectURL(new Blob(["(",_e,")();"],{type:"text/javascript"})))),oe=new Te.Worker(we);return oe.onmessage=m,oe.id=Q++,E[oe.id]=oe}();return ue.userStep=V.step,ue.userChunk=V.chunk,ue.userComplete=V.complete,ue.userError=V.error,V.step=Z(V.step),V.chunk=Z(V.chunk),V.complete=Z(V.complete),V.error=Z(V.error),delete V.worker,void ue.postMessage({input:L,config:V,workerId:ue.id})}var fe=null;return"string"==typeof L?fe=V.download?new S(V):new g(V):!0===L.readable&&Z(L.read)&&Z(L.on)?fe=new M(V):(Te.File&&L instanceof File||L instanceof Object)&&(fe=new b(V)),fe.stream(L)},unparse:function(L,V){var te=!1,ue=!0,fe=",",we="\r\n",oe='"',Se=oe+oe,_e=!1,Ce=null,Be=!1;!function(){if("object"==typeof V){if("string"!=typeof V.delimiter||T.BAD_DELIMITERS.filter(function(p){return-1!==V.delimiter.indexOf(p)}).length||(fe=V.delimiter),("boolean"==typeof V.quotes||"function"==typeof V.quotes||Array.isArray(V.quotes))&&(te=V.quotes),"boolean"!=typeof V.skipEmptyLines&&"string"!=typeof V.skipEmptyLines||(_e=V.skipEmptyLines),"string"==typeof V.newline&&(we=V.newline),"string"==typeof V.quoteChar&&(oe=V.quoteChar),"boolean"==typeof V.header&&(ue=V.header),Array.isArray(V.columns)){if(0===V.columns.length)throw new Error("Option columns is empty");Ce=V.columns}void 0!==V.escapeChar&&(Se=V.escapeChar+oe),("boolean"==typeof V.escapeFormulae||V.escapeFormulae instanceof RegExp)&&(Be=V.escapeFormulae instanceof RegExp?V.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var X=new RegExp(P(oe),"g");if("string"==typeof L&&(L=JSON.parse(L)),Array.isArray(L)){if(!L.length||Array.isArray(L[0]))return C(null,L,_e);if("object"==typeof L[0])return C(Ce||Object.keys(L[0]),L,_e)}else if("object"==typeof L)return"string"==typeof L.data&&(L.data=JSON.parse(L.data)),Array.isArray(L.data)&&(L.fields||(L.fields=L.meta&&L.meta.fields||Ce),L.fields||(L.fields=Array.isArray(L.data[0])?L.fields:"object"==typeof L.data[0]?Object.keys(L.data[0]):[]),Array.isArray(L.data[0])||"object"==typeof L.data[0]||(L.data=[L.data])),C(L.fields||[],L.data||[],_e);throw new Error("Unable to serialize unrecognized input");function C(p,D,A){var N="";"string"==typeof p&&(p=JSON.parse(p)),"string"==typeof D&&(D=JSON.parse(D));var j=Array.isArray(p)&&0<p.length,z=!Array.isArray(D[0]);if(j&&ue){for(var pe=0;pe<p.length;pe++)0<pe&&(N+=fe),N+=y(p[pe],pe);0<D.length&&(N+=we)}for(var he=0;he<D.length;he++){var ge=j?p.length:D[he].length,ye=!1,ke=j?0===Object.keys(D[he]).length:0===D[he].length;if(A&&!j&&(ye="greedy"===A?""===D[he].join("").trim():1===D[he].length&&0===D[he][0].length),"greedy"===A&&j){for(var Ae=[],Ue=0;Ue<ge;Ue++)Ae.push(D[he][z?p[Ue]:Ue]);ye=""===Ae.join("").trim()}if(!ye){for(var De=0;De<ge;De++)0<De&&!ke&&(N+=fe),N+=y(D[he][j&&z?p[De]:De],De);he<D.length-1&&(!A||0<ge&&!ke)&&(N+=we)}}return N}function y(p,D){if(null==p)return"";if(p.constructor===Date)return JSON.stringify(p).slice(1,25);var A=!1;Be&&"string"==typeof p&&Be.test(p)&&(p="'"+p,A=!0);var N=p.toString().replace(X,Se);return(A=A||!0===te||"function"==typeof te&&te(p,D)||Array.isArray(te)&&te[D]||function(j,z){for(var pe=0;pe<z.length;pe++)if(-1<j.indexOf(z[pe]))return!0;return!1}(N,T.BAD_DELIMITERS)||-1<N.indexOf(fe)||" "===N.charAt(0)||" "===N.charAt(N.length-1))?oe+N+oe:N}}};if(T.RECORD_SEP=String.fromCharCode(30),T.UNIT_SEP=String.fromCharCode(31),T.BYTE_ORDER_MARK="\ufeff",T.BAD_DELIMITERS=["\r","\n",'"',T.BYTE_ORDER_MARK],T.WORKERS_SUPPORTED=!Me&&!!Te.Worker,T.NODE_STREAM_INPUT=1,T.LocalChunkSize=10485760,T.RemoteChunkSize=5242880,T.DefaultDelimiter=",",T.Parser=F,T.ParserHandle=G,T.NetworkStreamer=S,T.FileStreamer=b,T.StringStreamer=g,T.ReadableStreamStreamer=M,Te.jQuery){var $=Te.jQuery;$.fn.parse=function(L){var V=L.config||{},te=[];return this.each(function(we){if("INPUT"!==$(this).prop("tagName").toUpperCase()||"file"!==$(this).attr("type").toLowerCase()||!Te.FileReader||!this.files||0===this.files.length)return!0;for(var oe=0;oe<this.files.length;oe++)te.push({file:this.files[oe],inputElem:this,instanceConfig:$.extend({},V)})}),ue(),this;function ue(){if(0!==te.length){var oe,Se,_e,Ce=te[0];if(Z(L.before)){var Be=L.before(Ce.file,Ce.inputElem);if("object"==typeof Be){if("abort"===Be.action)return"AbortError",oe=Ce.file,Se=Ce.inputElem,_e=Be.reason,void(Z(L.error)&&L.error({name:"AbortError"},oe,Se,_e));if("skip"===Be.action)return void fe();"object"==typeof Be.config&&(Ce.instanceConfig=$.extend(Ce.instanceConfig,Be.config))}else if("skip"===Be)return void fe()}var X=Ce.instanceConfig.complete;Ce.instanceConfig.complete=function(C){Z(X)&&X(C,Ce.file,Ce.inputElem),fe()},T.parse(Ce.file,Ce.instanceConfig)}else Z(L.complete)&&L.complete()}function fe(){te.splice(0,1),ue()}}}function U(L){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(V){var te=O(V);te.chunkSize=parseInt(te.chunkSize),V.step||V.chunk||(te.chunkSize=null),this._handle=new G(te),(this._handle.streamer=this)._config=te}.call(this,L),this.parseChunk=function(V,te){if(this.isFirstChunk&&Z(this._config.beforeFirstChunk)){var ue=this._config.beforeFirstChunk(V);void 0!==ue&&(V=ue)}this.isFirstChunk=!1,this._halted=!1;var fe=this._partialLine+V;this._partialLine="";var we=this._handle.parse(fe,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var oe=we.meta.cursor;this._finished||(this._partialLine=fe.substring(oe-this._baseIndex),this._baseIndex=oe),we&&we.data&&(this._rowCount+=we.data.length);var Se=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(ce)Te.postMessage({results:we,workerId:T.WORKER_ID,finished:Se});else if(Z(this._config.chunk)&&!te){if(this._config.chunk(we,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);we=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(we.data),this._completeResults.errors=this._completeResults.errors.concat(we.errors),this._completeResults.meta=we.meta),this._completed||!Se||!Z(this._config.complete)||we&&we.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Se||we&&we.meta.paused||this._nextChunk(),we}this._halted=!0},this._sendError=function(V){Z(this._config.error)?this._config.error(V):ce&&this._config.error&&Te.postMessage({workerId:T.WORKER_ID,error:V,finished:!1})}}function S(L){var V;(L=L||{}).chunkSize||(L.chunkSize=T.RemoteChunkSize),U.call(this,L),this._nextChunk=Me?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(te){this._input=te,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(V=new XMLHttpRequest,this._config.withCredentials&&(V.withCredentials=this._config.withCredentials),Me||(V.onload=H(this._chunkLoaded,this),V.onerror=H(this._chunkError,this)),V.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Me),this._config.downloadRequestHeaders){var te=this._config.downloadRequestHeaders;for(var ue in te)V.setRequestHeader(ue,te[ue])}this._config.chunkSize&&V.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{V.send(this._config.downloadRequestBody)}catch(we){this._chunkError(we.message)}Me&&0===V.status&&this._chunkError()}},this._chunkLoaded=function(){var ue;4===V.readyState&&(V.status<200||400<=V.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:V.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(ue=V.getResponseHeader("Content-Range"))?-1:parseInt(ue.substring(ue.lastIndexOf("/")+1))),this.parseChunk(V.responseText)))},this._chunkError=function(te){this._sendError(new Error(V.statusText||te))}}function b(L){var V,te;(L=L||{}).chunkSize||(L.chunkSize=T.LocalChunkSize),U.call(this,L);var ue="undefined"!=typeof FileReader;this.stream=function(fe){this._input=fe,te=fe.slice||fe.webkitSlice||fe.mozSlice,ue?((V=new FileReader).onload=H(this._chunkLoaded,this),V.onerror=H(this._chunkError,this)):V=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var fe=this._input;if(this._config.chunkSize){var we=Math.min(this._start+this._config.chunkSize,this._input.size);fe=te.call(fe,this._start,we)}var oe=V.readAsText(fe,this._config.encoding);ue||this._chunkLoaded({target:{result:oe}})},this._chunkLoaded=function(fe){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(fe.target.result)},this._chunkError=function(){this._sendError(V.error)}}function g(L){var V;U.call(this,L=L||{}),this.stream=function(te){return V=te,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var te,ue=this._config.chunkSize;return ue?(te=V.substring(0,ue),V=V.substring(ue)):(te=V,V=""),this._finished=!V,this.parseChunk(te)}}}function M(L){U.call(this,L=L||{});var V=[],te=!0,ue=!1;this.pause=function(){U.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){U.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(fe){this._input=fe,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){ue&&1===V.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),V.length?this.parseChunk(V.shift()):te=!0},this._streamData=H(function(fe){try{V.push("string"==typeof fe?fe:fe.toString(this._config.encoding)),te&&(te=!1,this._checkIsFinished(),this.parseChunk(V.shift()))}catch(we){this._streamError(we)}},this),this._streamError=H(function(fe){this._streamCleanUp(),this._sendError(fe)},this),this._streamEnd=H(function(){this._streamCleanUp(),ue=!0,this._streamData("")},this),this._streamCleanUp=H(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function G(L){var V,te,ue,fe=Math.pow(2,53),we=-fe,oe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Se=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,_e=this,Ce=0,Be=0,X=!1,C=!1,y=[],p={data:[],errors:[],meta:{}};if(Z(L.step)){var D=L.step;L.step=function(he){if(p=he,j())N();else{if(N(),0===p.data.length)return;Ce+=he.data.length,L.preview&&Ce>L.preview?te.abort():(p.data=p.data[0],D(p,_e))}}}function A(he){return"greedy"===L.skipEmptyLines?""===he.join("").trim():1===he.length&&0===he[0].length}function N(){return p&&ue&&(pe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+T.DefaultDelimiter+"'"),ue=!1),L.skipEmptyLines&&(p.data=p.data.filter(function(he){return!A(he)})),j()&&function(){if(p)if(Array.isArray(p.data[0])){for(var ge=0;j()&&ge<p.data.length;ge++)p.data[ge].forEach(he);p.data.splice(0,1)}else p.data.forEach(he);function he(ye,ke){Z(L.transformHeader)&&(ye=L.transformHeader(ye,ke)),y.push(ye)}}(),function(){if(!p||!L.header&&!L.dynamicTyping&&!L.transform)return p;function he(ye,ke){var Ae,Ue=L.header?{}:[];for(Ae=0;Ae<ye.length;Ae++){var st=Ae,De=ye[Ae];L.header&&(st=Ae>=y.length?"__parsed_extra":y[Ae]),L.transform&&(De=L.transform(De,st)),De=z(st,De),"__parsed_extra"===st?(Ue[st]=Ue[st]||[],Ue[st].push(De)):Ue[st]=De}return L.header&&(Ae>y.length?pe("FieldMismatch","TooManyFields","Too many fields: expected "+y.length+" fields but parsed "+Ae,Be+ke):Ae<y.length&&pe("FieldMismatch","TooFewFields","Too few fields: expected "+y.length+" fields but parsed "+Ae,Be+ke)),Ue}var ge=1;return!p.data.length||Array.isArray(p.data[0])?(p.data=p.data.map(he),ge=p.data.length):p.data=he(p.data,0),L.header&&p.meta&&(p.meta.fields=y),Be+=ge,p}()}function j(){return L.header&&0===y.length}function z(he,ge){return ye=he,L.dynamicTypingFunction&&void 0===L.dynamicTyping[ye]&&(L.dynamicTyping[ye]=L.dynamicTypingFunction(ye)),!0===(L.dynamicTyping[ye]||L.dynamicTyping)?"true"===ge||"TRUE"===ge||"false"!==ge&&"FALSE"!==ge&&(function(ke){if(oe.test(ke)){var Ae=parseFloat(ke);if(we<Ae&&Ae<fe)return!0}return!1}(ge)?parseFloat(ge):Se.test(ge)?new Date(ge):""===ge?null:ge):ge;var ye}function pe(he,ge,ye,ke){var Ae={type:he,code:ge,message:ye};void 0!==ke&&(Ae.row=ke),p.errors.push(Ae)}this.parse=function(he,ge,ye){if(L.newline||(L.newline=function(st,De){st=st.substring(0,1048576);var je=new RegExp(P(De)+"([^]*?)"+P(De),"gm"),ze=(st=st.replace(je,"")).split("\r"),q=st.split("\n");if(1===ze.length||1<q.length&&q[0].length<ze[0].length)return"\n";for(var Ee=0,Xe=0;Xe<ze.length;Xe++)"\n"===ze[Xe][0]&&Ee++;return Ee>=ze.length/2?"\r\n":"\r"}(he,L.quoteChar||'"')),ue=!1,L.delimiter)Z(L.delimiter)&&(L.delimiter=L.delimiter(he),p.meta.delimiter=L.delimiter);else{var Ae=function(st,De,je,ze,q){var le,Ee,Xe,Ye;q=q||[",","\t","|",";",T.RECORD_SEP,T.UNIT_SEP];for(var Ke=0;Ke<q.length;Ke++){var ut=q[Ke],pt=0,Vt=0,ln=0;Xe=void 0;for(var Tn=new F({comments:ze,delimiter:ut,newline:De,preview:10}).parse(st),Ne=0;Ne<Tn.data.length;Ne++)if(je&&A(Tn.data[Ne]))ln++;else{var ae=Tn.data[Ne].length;Vt+=ae,void 0!==Xe?0<ae&&(pt+=Math.abs(ae-Xe),Xe=ae):Xe=ae}0<Tn.data.length&&(Vt/=Tn.data.length-ln),(void 0===Ee||pt<=Ee)&&(void 0===Ye||Ye<Vt)&&1.99<Vt&&(Ee=pt,le=ut,Ye=Vt)}return{successful:!!(L.delimiter=le),bestDelimiter:le}}(he,L.newline,L.skipEmptyLines,L.comments,L.delimitersToGuess);Ae.successful?L.delimiter=Ae.bestDelimiter:(ue=!0,L.delimiter=T.DefaultDelimiter),p.meta.delimiter=L.delimiter}var Ue=O(L);return L.preview&&L.header&&Ue.preview++,V=he,te=new F(Ue),p=te.parse(V,ge,ye),N(),X?{meta:{paused:!0}}:p||{meta:{paused:!1}}},this.paused=function(){return X},this.pause=function(){X=!0,te.abort(),V=Z(L.chunk)?"":V.substring(te.getCharIndex())},this.resume=function(){_e.streamer._halted?(X=!1,_e.streamer.parseChunk(V,!0)):setTimeout(_e.resume,3)},this.aborted=function(){return C},this.abort=function(){C=!0,te.abort(),p.meta.aborted=!0,Z(L.complete)&&L.complete(p),V=""}}function P(L){return L.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function F(L){var V,te=(L=L||{}).delimiter,ue=L.newline,fe=L.comments,we=L.step,oe=L.preview,Se=L.fastMode,_e=V=null==L.quoteChar?'"':L.quoteChar;if(void 0!==L.escapeChar&&(_e=L.escapeChar),("string"!=typeof te||-1<T.BAD_DELIMITERS.indexOf(te))&&(te=","),fe===te)throw new Error("Comment character same as delimiter");!0===fe?fe="#":("string"!=typeof fe||-1<T.BAD_DELIMITERS.indexOf(fe))&&(fe=!1),"\n"!==ue&&"\r"!==ue&&"\r\n"!==ue&&(ue="\n");var Ce=0,Be=!1;this.parse=function(X,C,y){if("string"!=typeof X)throw new Error("Input must be a string");var p=X.length,D=te.length,A=ue.length,N=fe.length,j=Z(we),z=[],pe=[],he=[],ge=Ce=0;if(!X)return Ye();if(Se||!1!==Se&&-1===X.indexOf(V)){for(var ye=X.split(ue),ke=0;ke<ye.length;ke++){if(Ce+=(he=ye[ke]).length,ke!==ye.length-1)Ce+=ue.length;else if(y)return Ye();if(!fe||he.substring(0,N)!==fe){if(j){if(z=[],q(he.split(te)),Ke(),Be)return Ye()}else q(he.split(te));if(oe&&oe<=ke)return z=z.slice(0,oe),Ye(!0)}}return Ye()}for(var Ae=X.indexOf(te,Ce),Ue=X.indexOf(ue,Ce),st=new RegExp(P(_e)+P(V),"g"),De=X.indexOf(V,Ce);;)if(X[Ce]!==V)if(fe&&0===he.length&&X.substring(Ce,Ce+N)===fe){if(-1===Ue)return Ye();Ue=X.indexOf(ue,Ce=Ue+A),Ae=X.indexOf(te,Ce)}else if(-1!==Ae&&(Ae<Ue||-1===Ue))he.push(X.substring(Ce,Ae)),Ae=X.indexOf(te,Ce=Ae+D);else{if(-1===Ue)break;if(he.push(X.substring(Ce,Ue)),Xe(Ue+A),j&&(Ke(),Be))return Ye();if(oe&&z.length>=oe)return Ye(!0)}else for(De=Ce,Ce++;;){if(-1===(De=X.indexOf(V,De+1)))return y||pe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:z.length,index:Ce}),Ee();if(De===p-1)return Ee(X.substring(Ce,De).replace(st,V));if(V!==_e||X[De+1]!==_e){if(V===_e||0===De||X[De-1]!==_e){-1!==Ae&&Ae<De+1&&(Ae=X.indexOf(te,De+1)),-1!==Ue&&Ue<De+1&&(Ue=X.indexOf(ue,De+1));var je=le(-1===Ue?Ae:Math.min(Ae,Ue));if(X.substr(De+1+je,D)===te){he.push(X.substring(Ce,De).replace(st,V)),X[Ce=De+1+je+D]!==V&&(De=X.indexOf(V,Ce)),Ae=X.indexOf(te,Ce),Ue=X.indexOf(ue,Ce);break}var ze=le(Ue);if(X.substring(De+1+ze,De+1+ze+A)===ue){if(he.push(X.substring(Ce,De).replace(st,V)),Xe(De+1+ze+A),Ae=X.indexOf(te,Ce),De=X.indexOf(V,Ce),j&&(Ke(),Be))return Ye();if(oe&&z.length>=oe)return Ye(!0);break}pe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:z.length,index:Ce}),De++}}else De++}return Ee();function q(ut){z.push(ut),ge=Ce}function le(ut){var pt=0;if(-1!==ut){var Vt=X.substring(De+1,ut);Vt&&""===Vt.trim()&&(pt=Vt.length)}return pt}function Ee(ut){return y||(void 0===ut&&(ut=X.substring(Ce)),he.push(ut),Ce=p,q(he),j&&Ke()),Ye()}function Xe(ut){Ce=ut,q(he),he=[],Ue=X.indexOf(ue,Ce)}function Ye(ut){return{data:z,errors:pe,meta:{delimiter:te,linebreak:ue,aborted:Be,truncated:!!ut,cursor:ge+(C||0)}}}function Ke(){we(Ye()),z=[],pe=[]}},this.abort=function(){Be=!0},this.getCharIndex=function(){return Ce}}function m(L){var V=L.data,te=E[V.workerId],ue=!1;if(V.error)te.userError(V.error,V.file);else if(V.results&&V.results.data){var fe={abort:function(){ue=!0,_(V.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:k,resume:k};if(Z(te.userStep)){for(var we=0;we<V.results.data.length&&(te.userStep({data:V.results.data[we],errors:V.results.errors,meta:V.results.meta},fe),!ue);we++);delete V.results}else Z(te.userChunk)&&(te.userChunk(V.results,fe,V.file),delete V.results)}V.finished&&!ue&&_(V.workerId,V.results)}function _(L,V){var te=E[L];Z(te.userComplete)&&te.userComplete(V),te.terminate(),delete E[L]}function k(){throw new Error("Not implemented.")}function O(L){if("object"!=typeof L||null===L)return L;var V=Array.isArray(L)?[]:{};for(var te in L)V[te]=O(L[te]);return V}function H(L,V){return function(){L.apply(V,arguments)}}function Z(L){return"function"==typeof L}return ce&&(Te.onmessage=function(L){var V=L.data;if(void 0===T.WORKER_ID&&V&&(T.WORKER_ID=V.workerId),"string"==typeof V.input)Te.postMessage({workerId:T.WORKER_ID,results:T.parse(V.input,V.config),finished:!0});else if(Te.File&&V.input instanceof File||V.input instanceof Object){var te=T.parse(V.input,V.config);te&&Te.postMessage({workerId:T.WORKER_ID,results:te,finished:!0})}}),(S.prototype=Object.create(U.prototype)).constructor=S,(b.prototype=Object.create(U.prototype)).constructor=b,(g.prototype=Object.create(g.prototype)).constructor=g,(M.prototype=Object.create(U.prototype)).constructor=M,T},void 0!==(J=He.apply(re,[]))&&(Ze.exports=J)},6036:function(module,__unused_webpack_exports,__webpack_require__){var _asyncToGenerator=__webpack_require__(7156).default,He;He=()=>(()=>{"use strict";var __webpack_modules__=[,(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.VerbosityLevel=re.Util=re.UnknownErrorException=re.UnexpectedResponseException=re.UNSUPPORTED_FEATURES=re.TextRenderingMode=re.StreamType=re.RenderingIntentFlag=re.PermissionFlag=re.PasswordResponses=re.PasswordException=re.PageActionEventType=re.OPS=re.MissingPDFException=re.InvalidPDFException=re.ImageKind=re.IDENTITY_MATRIX=re.FormatError=re.FontType=re.FeatureTest=re.FONT_IDENTITY_MATRIX=re.DocumentActionEventType=re.CMapCompressionType=re.BaseException=re.AnnotationType=re.AnnotationStateModelType=re.AnnotationReviewState=re.AnnotationReplyType=re.AnnotationMode=re.AnnotationMarkedState=re.AnnotationFlag=re.AnnotationFieldFlag=re.AnnotationBorderStyleType=re.AnnotationActionEventType=re.AbortException=void 0,re.arrayByteLength=he,re.arraysToBytes=function ge(Ne){const ae=Ne.length;if(1===ae&&Ne[0]instanceof Uint8Array)return Ne[0];let de=0;for(let at=0;at<ae;at++)de+=he(Ne[at]);let $e=0;const tt=new Uint8Array(de);for(let at=0;at<ae;at++){let gt=Ne[at];gt instanceof Uint8Array||(gt="string"==typeof gt?pe(gt):new Uint8Array(gt));const hn=gt.byteLength;tt.set(gt,$e),$e+=hn}return tt},re.assert=function Se(Ne,ae){Ne||oe(ae)},re.bytesToString=function z(Ne){("object"!=typeof Ne||null===Ne||void 0===Ne.length)&&oe("Invalid argument for bytesToString");const ae=Ne.length;if(ae<8192)return String.fromCharCode.apply(null,Ne);const $e=[];for(let tt=0;tt<ae;tt+=8192){const at=Math.min(tt+8192,ae),gt=Ne.subarray(tt,at);$e.push(String.fromCharCode.apply(null,gt))}return $e.join("")},re.createPromiseCapability=function Tn(){const Ne=Object.create(null);let ae=!1;return Object.defineProperty(Ne,"settled",{get:()=>ae}),Ne.promise=new Promise(function(de,$e){Ne.resolve=function(tt){ae=!0,de(tt)},Ne.reject=function(tt){ae=!0,$e(tt)}}),Ne},re.createValidAbsoluteUrl=function Ce(Ne,ae=null,de=null){if(!Ne)return null;try{if(de&&"string"==typeof Ne){if(de.addDefaultProtocol&&Ne.startsWith("www.")){const tt=Ne.match(/\./g);tt&&tt.length>=2&&(Ne=`http://${Ne}`)}if(de.tryConvertEncoding)try{Ne=Ke(Ne)}catch(tt){}}const $e=ae?new URL(Ne,ae):new URL(Ne);if(function _e(Ne){if(!Ne)return!1;switch(Ne.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}($e))return $e}catch($e){}return null},re.escapeString=function Ee(Ne){return Ne.replace(/([()\\\n\r])/g,ae=>"\n"===ae?"\\n":"\r"===ae?"\\r":`\\${ae}`)},re.getModificationDate=function ln(Ne=new Date){return[Ne.getUTCFullYear().toString(),(Ne.getUTCMonth()+1).toString().padStart(2,"0"),Ne.getUTCDate().toString().padStart(2,"0"),Ne.getUTCHours().toString().padStart(2,"0"),Ne.getUTCMinutes().toString().padStart(2,"0"),Ne.getUTCSeconds().toString().padStart(2,"0")].join("")},re.getVerbosityLevel=function ue(){return V},re.info=function fe(Ne){V>=k.INFOS&&console.log(`Info: ${Ne}`)},re.isArrayBuffer=function pt(Ne){return"object"==typeof Ne&&null!==Ne&&void 0!==Ne.byteLength},re.isArrayEqual=function Vt(Ne,ae){if(Ne.length!==ae.length)return!1;for(let de=0,$e=Ne.length;de<$e;de++)if(Ne[de]!==ae[de])return!1;return!0},re.isAscii=function Xe(Ne){return/^[\x00-\x7F]*$/.test(Ne)},re.objectFromMap=function Ae(Ne){const ae=Object.create(null);for(const[de,$e]of Ne)ae[de]=$e;return ae},re.objectSize=function ke(Ne){return Object.keys(Ne).length},re.setVerbosityLevel=function te(Ne){Number.isInteger(Ne)&&(V=Ne)},re.shadow=Be,re.string32=function ye(Ne){return String.fromCharCode(Ne>>24&255,Ne>>16&255,Ne>>8&255,255&Ne)},re.stringToBytes=pe,re.stringToPDFString=function le(Ne){if(Ne[0]>="\xef"){let de;if("\xfe"===Ne[0]&&"\xff"===Ne[1]?de="utf-16be":"\xff"===Ne[0]&&"\xfe"===Ne[1]?de="utf-16le":"\xef"===Ne[0]&&"\xbb"===Ne[1]&&"\xbf"===Ne[2]&&(de="utf-8"),de)try{const $e=new TextDecoder(de,{fatal:!0}),tt=pe(Ne);return $e.decode(tt)}catch($e){we(`stringToPDFString: "${$e}".`)}}const ae=[];for(let de=0,$e=Ne.length;de<$e;de++){const tt=q[Ne.charCodeAt(de)];ae.push(tt?String.fromCharCode(tt):Ne.charAt(de))}return ae.join("")},re.stringToUTF16BEString=function Ye(Ne){const ae=["\xfe\xff"];for(let de=0,$e=Ne.length;de<$e;de++){const tt=Ne.charCodeAt(de);ae.push(String.fromCharCode(tt>>8&255),String.fromCharCode(255&tt))}return ae.join("")},re.stringToUTF8String=Ke,re.unreachable=oe,re.utf8StringToString=function ut(Ne){return unescape(encodeURIComponent(Ne))},re.warn=we,He(2),re.IDENTITY_MATRIX=[1,0,0,1,0,0],re.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],re.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},re.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},re.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},re.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},re.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},re.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},re.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},re.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},re.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},re.AnnotationReplyType={GROUP:"Group",REPLY:"R"},re.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},re.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},re.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},re.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},re.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},re.PageActionEventType={O:"PageOpen",C:"PageClose"},re.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},re.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const k={ERRORS:0,WARNINGS:1,INFOS:5};re.VerbosityLevel=k,re.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},re.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},re.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},re.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let V=k.WARNINGS;function we(Ne){V>=k.WARNINGS&&console.log(`Warning: ${Ne}`)}function oe(Ne){throw new Error(Ne)}function Be(Ne,ae,de){return Object.defineProperty(Ne,ae,{value:de,enumerable:!0,configurable:!0,writable:!1}),de}const X=function(){function ae(de,$e){this.constructor===ae&&oe("Cannot initialize BaseException."),this.message=de,this.name=$e}return ae.prototype=new Error,ae.constructor=ae,ae}();function pe(Ne){"string"!=typeof Ne&&oe("Invalid argument for stringToBytes");const ae=Ne.length,de=new Uint8Array(ae);for(let $e=0;$e<ae;++$e)de[$e]=255&Ne.charCodeAt($e);return de}function he(Ne){return void 0!==Ne.length?Ne.length:void 0!==Ne.byteLength?Ne.byteLength:void oe("Invalid argument for arrayByteLength")}re.BaseException=X,re.PasswordException=class C extends X{constructor(ae,de){super(ae,"PasswordException"),this.code=de}},re.UnknownErrorException=class y extends X{constructor(ae,de){super(ae,"UnknownErrorException"),this.details=de}},re.InvalidPDFException=class p extends X{constructor(ae){super(ae,"InvalidPDFException")}},re.MissingPDFException=class D extends X{constructor(ae){super(ae,"MissingPDFException")}},re.UnexpectedResponseException=class A extends X{constructor(ae,de){super(ae,"UnexpectedResponseException"),this.status=de}},re.FormatError=class N extends X{constructor(ae){super(ae,"FormatError")}},re.AbortException=class j extends X{constructor(ae){super(ae,"AbortException")}},re.FeatureTest=class De{static get isLittleEndian(){return Be(this,"isLittleEndian",function Ue(){const Ne=new Uint8Array(4);return Ne[0]=1,1===new Uint32Array(Ne.buffer,0,1)[0]}())}static get isEvalSupported(){return Be(this,"isEvalSupported",function st(){try{return new Function(""),!0}catch(Ne){return!1}}())}static get isOffscreenCanvasSupported(){return Be(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const je=[...Array(256).keys()].map(Ne=>Ne.toString(16).padStart(2,"0"));class ze{static makeHexColor(ae,de,$e){return`#${je[ae]}${je[de]}${je[$e]}`}static scaleMinMax(ae,de){let $e;ae[0]?(ae[0]<0&&($e=de[0],de[0]=de[1],de[1]=$e),de[0]*=ae[0],de[1]*=ae[0],ae[3]<0&&($e=de[2],de[2]=de[3],de[3]=$e),de[2]*=ae[3],de[3]*=ae[3]):($e=de[0],de[0]=de[2],de[2]=$e,$e=de[1],de[1]=de[3],de[3]=$e,ae[1]<0&&($e=de[2],de[2]=de[3],de[3]=$e),de[2]*=ae[1],de[3]*=ae[1],ae[2]<0&&($e=de[0],de[0]=de[1],de[1]=$e),de[0]*=ae[2],de[1]*=ae[2]),de[0]+=ae[4],de[1]+=ae[4],de[2]+=ae[5],de[3]+=ae[5]}static transform(ae,de){return[ae[0]*de[0]+ae[2]*de[1],ae[1]*de[0]+ae[3]*de[1],ae[0]*de[2]+ae[2]*de[3],ae[1]*de[2]+ae[3]*de[3],ae[0]*de[4]+ae[2]*de[5]+ae[4],ae[1]*de[4]+ae[3]*de[5]+ae[5]]}static applyTransform(ae,de){return[ae[0]*de[0]+ae[1]*de[2]+de[4],ae[0]*de[1]+ae[1]*de[3]+de[5]]}static applyInverseTransform(ae,de){const $e=de[0]*de[3]-de[1]*de[2];return[(ae[0]*de[3]-ae[1]*de[2]+de[2]*de[5]-de[4]*de[3])/$e,(-ae[0]*de[1]+ae[1]*de[0]+de[4]*de[1]-de[5]*de[0])/$e]}static getAxialAlignedBoundingBox(ae,de){const $e=ze.applyTransform(ae,de),tt=ze.applyTransform(ae.slice(2,4),de),at=ze.applyTransform([ae[0],ae[3]],de),gt=ze.applyTransform([ae[2],ae[1]],de);return[Math.min($e[0],tt[0],at[0],gt[0]),Math.min($e[1],tt[1],at[1],gt[1]),Math.max($e[0],tt[0],at[0],gt[0]),Math.max($e[1],tt[1],at[1],gt[1])]}static inverseTransform(ae){const de=ae[0]*ae[3]-ae[1]*ae[2];return[ae[3]/de,-ae[1]/de,-ae[2]/de,ae[0]/de,(ae[2]*ae[5]-ae[4]*ae[3])/de,(ae[4]*ae[1]-ae[5]*ae[0])/de]}static apply3dTransform(ae,de){return[ae[0]*de[0]+ae[1]*de[1]+ae[2]*de[2],ae[3]*de[0]+ae[4]*de[1]+ae[5]*de[2],ae[6]*de[0]+ae[7]*de[1]+ae[8]*de[2]]}static singularValueDecompose2dScale(ae){const de=[ae[0],ae[2],ae[1],ae[3]],$e=ae[0]*de[0]+ae[1]*de[2],gt=ae[2]*de[1]+ae[3]*de[3],hn=($e+gt)/2,yn=Math.sqrt(($e+gt)**2-4*($e*gt-(ae[2]*de[0]+ae[3]*de[2])*(ae[0]*de[1]+ae[1]*de[3])))/2,Fn=hn-yn||1;return[Math.sqrt(hn+yn||1),Math.sqrt(Fn)]}static normalizeRect(ae){const de=ae.slice(0);return ae[0]>ae[2]&&(de[0]=ae[2],de[2]=ae[0]),ae[1]>ae[3]&&(de[1]=ae[3],de[3]=ae[1]),de}static intersect(ae,de){const $e=Math.max(Math.min(ae[0],ae[2]),Math.min(de[0],de[2])),tt=Math.min(Math.max(ae[0],ae[2]),Math.max(de[0],de[2]));if($e>tt)return null;const at=Math.max(Math.min(ae[1],ae[3]),Math.min(de[1],de[3])),gt=Math.min(Math.max(ae[1],ae[3]),Math.max(de[1],de[3]));return at>gt?null:[$e,at,tt,gt]}static bezierBoundingBox(ae,de,$e,tt,at,gt,hn,yn){const hi=[],Fn=[[],[]];let Li,bi,ms,fi,Wn,Fs,Ls,Ks;for(let pl=0;pl<2;++pl)if(0===pl?(bi=6*ae-12*$e+6*at,Li=-3*ae+9*$e-9*at+3*hn,ms=3*$e-3*ae):(bi=6*de-12*tt+6*gt,Li=-3*de+9*tt-9*gt+3*yn,ms=3*tt-3*de),Math.abs(Li)<1e-12){if(Math.abs(bi)<1e-12)continue;fi=-ms/bi,0<fi&&fi<1&&hi.push(fi)}else Ls=bi*bi-4*ms*Li,Ks=Math.sqrt(Ls),!(Ls<0)&&(Wn=(-bi+Ks)/(2*Li),0<Wn&&Wn<1&&hi.push(Wn),Fs=(-bi-Ks)/(2*Li),0<Fs&&Fs<1&&hi.push(Fs));let xi,Or=hi.length;const fl=Or;for(;Or--;)fi=hi[Or],xi=1-fi,Fn[0][Or]=xi*xi*xi*ae+3*xi*xi*fi*$e+3*xi*fi*fi*at+fi*fi*fi*hn,Fn[1][Or]=xi*xi*xi*de+3*xi*xi*fi*tt+3*xi*fi*fi*gt+fi*fi*fi*yn;return Fn[0][fl]=ae,Fn[1][fl]=de,Fn[0][fl+1]=hn,Fn[1][fl+1]=yn,Fn[0].length=Fn[1].length=fl+2,[Math.min(...Fn[0]),Math.min(...Fn[1]),Math.max(...Fn[0]),Math.max(...Fn[1])]}}re.Util=ze;const q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Ke(Ne){return decodeURIComponent(escape(Ne))}},(Ze,re,He)=>{He(3)},(Ze,re)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.isNodeJS=void 0;const He=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);re.isNodeJS=He},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var Ze,He,I,J,Ve,Te,Me,ce,E,z1,T;Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(5),_font_loader=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(13),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(14),_metadata=__w_pdfjs_require__(15),_optional_content_config=__w_pdfjs_require__(16),_transport_stream=__w_pdfjs_require__(17),_xfa_text=__w_pdfjs_require__(18);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:U,NodeCMapReaderFactory:S,NodeStandardFontDataFactory:b}=__w_pdfjs_require__(19);exports.DefaultCanvasFactory=DefaultCanvasFactory=U,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=S,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=b}function setPDFNetworkStreamFactory(U){createPDFNetworkStream=U}function getDocument(U){const S=new PDFDocumentLoadingTask;let b;if("string"==typeof U||U instanceof URL)b={url:U};else if((0,_util.isArrayBuffer)(U))b={data:U};else if(U instanceof PDFDataRangeTransport)b={range:U};else{if("object"!=typeof U)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!U.url&&!U.data&&!U.range)throw new Error("Invalid parameter object: need either .data, .range or .url");b=U}const g=Object.create(null);let M=null,G=null;for(const F in b){const m=b[F];switch(F){case"url":if("undefined"!=typeof window)try{g[F]=new URL(m,window.location).href;continue}catch(_){(0,_util.warn)(`Cannot create valid URL: "${_}".`)}else if("string"==typeof m||m instanceof URL){g[F]=m.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":M=m;continue;case"worker":G=m;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&m instanceof Buffer)g[F]=new Uint8Array(m);else{if(m instanceof Uint8Array)break;if("string"==typeof m)g[F]=(0,_util.stringToBytes)(m);else if("object"!=typeof m||null===m||isNaN(m.length)){if(!(0,_util.isArrayBuffer)(m))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");g[F]=new Uint8Array(m)}else g[F]=new Uint8Array(m)}continue}g[F]=m}if(g.CMapReaderFactory=g.CMapReaderFactory||DefaultCMapReaderFactory,g.StandardFontDataFactory=g.StandardFontDataFactory||DefaultStandardFontDataFactory,g.ignoreErrors=!0!==g.stopAtErrors,g.fontExtraProperties=!0===g.fontExtraProperties,g.pdfBug=!0===g.pdfBug,g.enableXfa=!0===g.enableXfa,(!Number.isInteger(g.rangeChunkSize)||g.rangeChunkSize<1)&&(g.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof g.docBaseUrl||(0,_display_utils.isDataScheme)(g.docBaseUrl))&&(g.docBaseUrl=null),(!Number.isInteger(g.maxImageSize)||g.maxImageSize<-1)&&(g.maxImageSize=-1),"string"!=typeof g.cMapUrl&&(g.cMapUrl=null),"string"!=typeof g.standardFontDataUrl&&(g.standardFontDataUrl=null),"boolean"!=typeof g.useWorkerFetch&&(g.useWorkerFetch=g.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&g.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof g.isEvalSupported&&(g.isEvalSupported=!0),"boolean"!=typeof g.disableFontFace&&(g.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof g.useSystemFonts&&(g.useSystemFonts=!_is_node.isNodeJS&&!g.disableFontFace),("object"!=typeof g.ownerDocument||null===g.ownerDocument)&&(g.ownerDocument=globalThis.document),"boolean"!=typeof g.disableRange&&(g.disableRange=!1),"boolean"!=typeof g.disableStream&&(g.disableStream=!1),"boolean"!=typeof g.disableAutoFetch&&(g.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(g.verbosity),!G){const F={verbosity:g.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};G=F.port?PDFWorker.fromPort(F):new PDFWorker(F),S._worker=G}const P=S.docId;return G.promise.then(function(){if(S.destroyed)throw new Error("Loading aborted");const F=_fetchDocument(G,g,M,P),m=new Promise(function(_){let k;M?k=new _transport_stream.PDFDataTransportStream({length:g.length,initialData:g.initialData,progressiveDone:g.progressiveDone,contentDispositionFilename:g.contentDispositionFilename,disableRange:g.disableRange,disableStream:g.disableStream},M):g.data||(k=createPDFNetworkStream({url:g.url,length:g.length,httpHeaders:g.httpHeaders,withCredentials:g.withCredentials,rangeChunkSize:g.rangeChunkSize,disableRange:g.disableRange,disableStream:g.disableStream})),_(k)});return Promise.all([F,m]).then(function([_,k]){if(S.destroyed)throw new Error("Loading aborted");const O=new _message_handler.MessageHandler(P,_,G.port),H=new WorkerTransport(O,S,k,g);S._transport=H,O.send("Ready",null)})}).catch(S._capability.reject),S}function _fetchDocument(U,S,b,g){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(function*(U,S,b,g){if(U.destroyed)throw new Error("Worker was destroyed");b&&(S.length=b.length,S.initialData=b.initialData,S.progressiveDone=b.progressiveDone,S.contentDispositionFilename=b.contentDispositionFilename);const M=yield U.messageHandler.sendWithPromise("GetDocRequest",{docId:g,apiVersion:"2.14.305",source:{data:S.data,url:S.url,password:S.password,disableAutoFetch:S.disableAutoFetch,rangeChunkSize:S.rangeChunkSize,length:S.length},maxImageSize:S.maxImageSize,disableFontFace:S.disableFontFace,docBaseUrl:S.docBaseUrl,ignoreErrors:S.ignoreErrors,isEvalSupported:S.isEvalSupported,fontExtraProperties:S.fontExtraProperties,enableXfa:S.enableXfa,useSystemFonts:S.useSystemFonts,cMapUrl:S.useWorkerFetch?S.cMapUrl:null,standardFontDataUrl:S.useWorkerFetch?S.standardFontDataUrl:null});if(U.destroyed)throw new Error("Worker was destroyed");return M})).apply(this,arguments)}const re=class{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+rz(re,Ze)._++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){var S=this;return _asyncToGenerator(function*(){var b;S.destroyed=!0,yield null==(b=S._transport)?void 0:b.destroy(),S._transport=null,S._worker&&(S._worker.destroy(),S._worker=null)})()}};let PDFDocumentLoadingTask=re;Ze=new WeakMap,Gt(PDFDocumentLoadingTask,Ze,0),exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(S,b,g=!1,M=null){this.length=S,this.initialData=b,this.progressiveDone=g,this.contentDispositionFilename=M,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(S){this._rangeListeners.push(S)}addProgressListener(S){this._progressListeners.push(S)}addProgressiveReadListener(S){this._progressiveReadListeners.push(S)}addProgressiveDoneListener(S){this._progressiveDoneListeners.push(S)}onDataRange(S,b){for(const g of this._rangeListeners)g(S,b)}onDataProgress(S,b){this._readyCapability.promise.then(()=>{for(const g of this._progressListeners)g(S,b)})}onDataProgressiveRead(S){this._readyCapability.promise.then(()=>{for(const b of this._progressiveReadListeners)b(S)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const S of this._progressiveDoneListeners)S()})}transportReady(){this._readyCapability.resolve()}requestDataRange(S,b){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(S,b){var M,g=this;this._pdfInfo=S,this._transport=b,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:(M=_asyncToGenerator(function*(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),g.stats||{streamTypes:{},fontTypes:{}}}),function(){return M.apply(this,arguments)})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(S){return this._transport.getPage(S)}getPageIndex(S){return this._transport.getPageIndex(S)}getDestinations(){return this._transport.getDestinations()}getDestination(S){return this._transport.getDestination(S)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(S=!1){return this._transport.startCleanup(S||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(S,b,g,M,G=!1){this._pageIndex=S,this._pageInfo=b,this._ownerDocument=M,this._transport=g,this._stats=G?new _display_utils.StatTimer:null,this._pdfBug=G,this.commonObjs=g.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:S,rotation:b=this.rotate,offsetX:g=0,offsetY:M=0,dontFlip:G=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:S,rotation:b,offsetX:g,offsetY:M,dontFlip:G})}getAnnotations({intent:S="display"}={}){const b=this._transport.getRenderingIntent(S);let g=this._annotationPromises.get(b.cacheKey);return g||(g=this._transport.getAnnotations(this._pageIndex,b.renderingIntent),this._annotationPromises.set(b.cacheKey,g),g=g.then(M=>{for(const G of M)void 0!==G.titleObj&&Object.defineProperty(G,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),G.titleObj.str)}),void 0!==G.contentsObj&&Object.defineProperty(G,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),G.contentsObj.str)});return M})),g}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}getXfa(){var S=this;return _asyncToGenerator(function*(){var b;return(null==(b=S._transport._htmlForXfa)?void 0:b.children[S._pageIndex])||null})()}render({canvasContext:S,viewport:b,intent:g="display",annotationMode:M=_util.AnnotationMode.ENABLE,transform:G=null,imageLayer:P=null,canvasFactory:F=null,background:m=null,optionalContentConfigPromise:_=null,annotationCanvasMap:k=null,pageColors:O=null}){var we,oe;void 0!==(null==(we=arguments[0])?void 0:we.renderInteractiveForms)&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&M===_util.AnnotationMode.ENABLE&&(M=_util.AnnotationMode.ENABLE_FORMS)),void 0!==(null==(oe=arguments[0])?void 0:oe.includeAnnotationStorage)&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&M===_util.AnnotationMode.ENABLE&&(M=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const H=this._transport.getRenderingIntent(g,M);this.pendingCleanup=!1,_||(_=this._transport.getOptionalContentConfig());let Z=this._intentStates.get(H.cacheKey);Z||(Z=Object.create(null),this._intentStates.set(H.cacheKey,Z)),Z.streamReaderCancelTimeout&&(clearTimeout(Z.streamReaderCancelTimeout),Z.streamReaderCancelTimeout=null);const L=F||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),V=!!(H.renderingIntent&_util.RenderingIntentFlag.PRINT);Z.displayReadyCapability||(Z.displayReadyCapability=(0,_util.createPromiseCapability)(),Z.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(H));const te=Se=>{Z.renderTasks.delete(ue),(this.cleanupAfterRender||V)&&(this.pendingCleanup=!0),this._tryCleanup(),Se?(ue.capability.reject(Se),this._abortOperatorList({intentState:Z,reason:Se instanceof Error?Se:new Error(Se)})):ue.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},ue=new InternalRenderTask({callback:te,params:{canvasContext:S,viewport:b,transform:G,imageLayer:P,background:m},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:k,operatorList:Z.operatorList,pageIndex:this._pageIndex,canvasFactory:L,useRequestAnimationFrame:!V,pdfBug:this._pdfBug,pageColors:O});(Z.renderTasks||(Z.renderTasks=new Set)).add(ue);const fe=ue.task;return Promise.all([Z.displayReadyCapability.promise,_]).then(([Se,_e])=>{this.pendingCleanup?te():(this._stats&&this._stats.time("Rendering"),ue.initializeGraphics({transparency:Se,optionalContentConfig:_e}),ue.operatorListChanged())}).catch(te),fe}getOperatorList({intent:S="display",annotationMode:b=_util.AnnotationMode.ENABLE}={}){const M=this._transport.getRenderingIntent(S,b,!0);let P,G=this._intentStates.get(M.cacheKey);return G||(G=Object.create(null),this._intentStates.set(M.cacheKey,G)),G.opListReadCapability||(P=Object.create(null),P.operatorListChanged=function g(){G.operatorList.lastChunk&&(G.opListReadCapability.resolve(G.operatorList),G.renderTasks.delete(P))},G.opListReadCapability=(0,_util.createPromiseCapability)(),(G.renderTasks||(G.renderTasks=new Set)).add(P),G.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(M)),G.opListReadCapability.promise}streamTextContent({disableCombineTextItems:S=!1,includeMarkedContent:b=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==S,includeMarkedContent:!0===b},{highWaterMark:100,size:M=>M.items.length})}getTextContent(S={}){if(this._transport._htmlForXfa)return this.getXfa().then(g=>_xfa_text.XfaText.textContent(g));const b=this.streamTextContent(S);return new Promise(function(g,M){const P=b.getReader(),F={items:[],styles:Object.create(null)};!function G(){P.read().then(function({value:m,done:_}){_?g(F):(Object.assign(F.styles,m.styles),F.items.push(...m.items),G())},M)}()})}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0;const S=[];for(const b of this._intentStates.values())if(this._abortOperatorList({intentState:b,reason:new Error("Page was destroyed."),force:!0}),!b.opListReadCapability)for(const g of b.renderTasks)S.push(g.completed),g.cancel();this.objs.clear();for(const b of this._bitmaps)b.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(S)}cleanup(S=!1){return this.pendingCleanup=!0,this._tryCleanup(S)}_tryCleanup(S=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:b,operatorList:g}of this._intentStates.values())if(b.size>0||!g.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,S&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const b of this._bitmaps)b.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(S,b){const g=this._intentStates.get(b);!g||(this._stats&&this._stats.timeEnd("Page Request"),g.displayReadyCapability&&g.displayReadyCapability.resolve(S))}_renderPageChunk(S,b){for(let g=0,M=S.length;g<M;g++)b.operatorList.fnArray.push(S.fnArray[g]),b.operatorList.argsArray.push(S.argsArray[g]);b.operatorList.lastChunk=S.lastChunk;for(const g of b.renderTasks)g.operatorListChanged();S.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:S,cacheKey:b}){const M=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:S,cacheKey:b,annotationStorage:S&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}).getReader(),G=this._intentStates.get(b);G.streamReader=M;const P=()=>{M.read().then(({value:F,done:m})=>{m?G.streamReader=null:this._transport.destroyed||(this._renderPageChunk(F,G),P())},F=>{if(G.streamReader=null,!this._transport.destroyed){if(G.operatorList){G.operatorList.lastChunk=!0;for(const m of G.renderTasks)m.operatorListChanged();this._tryCleanup()}if(G.displayReadyCapability)G.displayReadyCapability.reject(F);else{if(!G.opListReadCapability)throw F;G.opListReadCapability.reject(F)}}})};P()}_abortOperatorList({intentState:S,reason:b,force:g=!1}){if(S.streamReader){if(!g){if(S.renderTasks.size>0)return;if(b instanceof _display_utils.RenderingCancelledException)return void(S.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:S,reason:b,force:!0}),S.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(S.streamReader.cancel(new _util.AbortException(b.message)).catch(()=>{}),S.streamReader=null,!this._transport.destroyed){for(const[M,G]of this._intentStates)if(G===S){this._intentStates.delete(M);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(S,b){const g={data:structuredClone(S,b)};this._deferred.then(()=>{for(const M of this._listeners)M.call(this,g)})}addEventListener(S,b){this._listeners.push(b)}removeEventListener(S,b){const g=this._listeners.indexOf(b);this._listeners.splice(g,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const U=null==(He=null==document?void 0:document.currentScript)?void 0:He.src;U&&(PDFWorkerUtil.fallbackWorkerSrc=U.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(U,S){let b;try{if(b=new URL(U),!b.origin||"null"===b.origin)return!1}catch(M){return!1}const g=new URL(S,b);return b.origin===g.origin},PDFWorkerUtil.createCDNWrapper=function(U){return URL.createObjectURL(new Blob([`importScripts("${U}");`]))};const _PDFWorker=class{constructor({name:U=null,port:S=null,verbosity:b=(0,_util.getVerbosityLevel)()}={}){if(S&&Rt(_PDFWorker,I).has(S))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=U,this.destroyed=!1,this.verbosity=b,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,S)return Rt(_PDFWorker,I).set(S,this),void this._initializeFromPort(S);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(U){this._port=U,this._messageHandler=new _message_handler.MessageHandler("main","worker",U),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let U=_PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,U)||(U=PDFWorkerUtil.createCDNWrapper(new URL(U,window.location).href));const S=new Worker(U),b=new _message_handler.MessageHandler("main","worker",S),g=()=>{S.removeEventListener("error",M),b.destroy(),S.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},M=()=>{this._webWorker||g()};S.addEventListener("error",M),b.on("test",P=>{S.removeEventListener("error",M),this.destroyed?g():P?(this._messageHandler=b,this._port=S,this._webWorker=S,this._readyCapability.resolve(),b.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),b.destroy(),S.terminate())}),b.on("ready",P=>{if(S.removeEventListener("error",M),this.destroyed)g();else try{G()}catch(F){this._setupFakeWorker()}});const G=()=>{const P=new Uint8Array;b.send("test",P,[P.buffer])};return void G()}catch(S){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(U=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const S=new LoopbackPort;this._port=S;const b="fake"+PDFWorkerUtil.fakeWorkerId++,g=new _message_handler.MessageHandler(b+"_worker",b,S);U.setup(g,S);const M=new _message_handler.MessageHandler(b,b+"_worker",S);this._messageHandler=M,this._readyCapability.resolve(),M.send("configure",{verbosity:this.verbosity})}).catch(U=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${U.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),Rt(_PDFWorker,I).delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(U){if(null==U||!U.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return Rt(this,I).has(U.port)?Rt(this,I).get(U.port):new _PDFWorker(U)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var U;try{return(null==(U=globalThis.pdfjsWorker)?void 0:U.WorkerMessageHandler)||null}catch(S){return null}}static get _setupFakeWorkerGlobal(){var _this4=this;const loader=function(){var _ref2=_asyncToGenerator(function*(){const mainWorkerMessageHandler=_this4._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(_this4.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this4.workerSrc),window.pdfjsWorker.WorkerMessageHandler});return function U(){return _ref2.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};let PDFWorker=_PDFWorker;I=new WeakMap,Gt(PDFWorker,I,new WeakMap),exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{constructor(S,b,g,M){Gt(this,J,null),Gt(this,Ve,new Map),Gt(this,Te,new Map),Gt(this,Me,null),this.messageHandler=S,this.loadingTask=b,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:b.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:M.ownerDocument,styleElement:M.styleElement}),this._params=M,M.useWorkerFetch||(this.CMapReaderFactory=new M.CMapReaderFactory({baseUrl:M.cMapUrl,isCompressed:M.cMapPacked}),this.StandardFontDataFactory=new M.StandardFontDataFactory({baseUrl:M.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=g,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return Rt(this,J)}getRenderingIntent(S,b=_util.AnnotationMode.ENABLE,g=!1){let M=_util.RenderingIntentFlag.DISPLAY,G="";switch(S){case"any":M=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":M=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${S}`)}switch(b){case _util.AnnotationMode.DISABLE:M+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:M+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:M+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,G=this.annotationStorage.hash;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${b}`)}return g&&(M+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:M,cacheKey:`${M}_${G}`}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const S=[];for(const g of Rt(this,Ve).values())S.push(g._destroy());Rt(this,Ve).clear(),Rt(this,Te).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const b=this.messageHandler.sendWithPromise("Terminate",null);return S.push(b),Promise.all(S).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),Fi(this,Me,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:S,loadingTask:b}=this;S.on("GetReader",(g,M)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=G=>{this._lastProgress={loaded:G.loaded,total:G.total}},M.onPull=()=>{this._fullReader.read().then(function({value:G,done:P}){P?M.close():((0,_util.assert)((0,_util.isArrayBuffer)(G),"GetReader - expected an ArrayBuffer."),M.enqueue(new Uint8Array(G),1,[G]))}).catch(G=>{M.error(G)})},M.onCancel=G=>{this._fullReader.cancel(G),M.ready.catch(P=>{if(!this.destroyed)throw P})}}),S.on("ReaderHeadersReady",g=>{const M=(0,_util.createPromiseCapability)(),G=this._fullReader;return G.headersReady.then(()=>{var P;(!G.isStreamingSupported||!G.isRangeSupported)&&(this._lastProgress&&(null==(P=b.onProgress)||P.call(b,this._lastProgress)),G.onProgress=F=>{var m;null==(m=b.onProgress)||m.call(b,{loaded:F.loaded,total:F.total})}),M.resolve({isStreamingSupported:G.isStreamingSupported,isRangeSupported:G.isRangeSupported,contentLength:G.contentLength})},M.reject),M.promise}),S.on("GetRangeReader",(g,M)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const G=this._networkStream.getRangeReader(g.begin,g.end);G?(M.onPull=()=>{G.read().then(function({value:P,done:F}){F?M.close():((0,_util.assert)((0,_util.isArrayBuffer)(P),"GetRangeReader - expected an ArrayBuffer."),M.enqueue(new Uint8Array(P),1,[P]))}).catch(P=>{M.error(P)})},M.onCancel=P=>{G.cancel(P),M.ready.catch(F=>{if(!this.destroyed)throw F})}):M.close()}),S.on("GetDoc",({pdfInfo:g})=>{this._numPages=g.numPages,this._htmlForXfa=g.htmlForXfa,delete g.htmlForXfa,b._capability.resolve(new PDFDocumentProxy(g,this))}),S.on("DocException",function(g){let M;switch(g.name){case"PasswordException":M=new _util.PasswordException(g.message,g.code);break;case"InvalidPDFException":M=new _util.InvalidPDFException(g.message);break;case"MissingPDFException":M=new _util.MissingPDFException(g.message);break;case"UnexpectedResponseException":M=new _util.UnexpectedResponseException(g.message,g.status);break;case"UnknownErrorException":M=new _util.UnknownErrorException(g.message,g.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}b._capability.reject(M)}),S.on("PasswordRequest",g=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),b.onPassword){const M=G=>{G instanceof Error?this._passwordCapability.reject(G):this._passwordCapability.resolve({password:G})};try{b.onPassword(M,g.code)}catch(G){this._passwordCapability.reject(G)}}else this._passwordCapability.reject(new _util.PasswordException(g.message,g.code));return this._passwordCapability.promise}),S.on("DataLoaded",g=>{var M;null==(M=b.onProgress)||M.call(b,{loaded:g.length,total:g.length}),this.downloadInfoCapability.resolve(g)}),S.on("StartRenderPage",g=>{this.destroyed||Rt(this,Ve).get(g.pageIndex)._startRenderPage(g.transparency,g.cacheKey)}),S.on("commonobj",([g,M,G])=>{var P;if(!this.destroyed&&!this.commonObjs.has(g))switch(M){case"Font":const F=this._params;if("error"in G){const k=G.error;(0,_util.warn)(`Error during font loading: ${k}`),this.commonObjs.resolve(g,k);break}let m=null;F.pdfBug&&(null==(P=globalThis.FontInspector)?void 0:P.enabled)&&(m={registerFont(k,O){globalThis.FontInspector.fontAdded(k,O)}});const _=new _font_loader.FontFaceObject(G,{isEvalSupported:F.isEvalSupported,disableFontFace:F.disableFontFace,ignoreErrors:F.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:m});this.fontLoader.bind(_).catch(k=>S.sendWithPromise("FontFallback",{id:g})).finally(()=>{!F.fontExtraProperties&&_.data&&(_.data=null),this.commonObjs.resolve(g,_)});break;case"FontPath":case"Image":this.commonObjs.resolve(g,G);break;default:throw new Error(`Got unknown common object type ${M}`)}}),S.on("obj",([g,M,G,P])=>{var m;if(this.destroyed)return;const F=Rt(this,Ve).get(M);if(!F.objs.has(g))switch(G){case"Image":F.objs.resolve(g,P);const _=8e6;if(P){let k;if(P.bitmap){const{bitmap:O,width:H,height:Z}=P;k=H*Z*4,F._bitmaps.add(O)}else k=(null==(m=P.data)?void 0:m.length)||0;k>_&&(F.cleanupAfterRender=!0)}break;case"Pattern":F.objs.resolve(g,P);break;default:throw new Error(`Got unknown object type ${G}`)}}),S.on("DocProgress",g=>{var M;this.destroyed||null==(M=b.onProgress)||M.call(b,{loaded:g.loaded,total:g.total})}),S.on("DocStats",g=>{this.destroyed||Fi(this,J,Object.freeze({streamTypes:Object.freeze(g.streamTypes),fontTypes:Object.freeze(g.fontTypes)}))}),S.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),S.on("FetchBuiltInCMap",g=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(g):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),S.on("FetchStandardFontData",g=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(g):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature({featureId:S}){var b,g;this.destroyed||null==(g=(b=this.loadingTask).onUnsupportedFeature)||g.call(b,S)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(S){if(!Number.isInteger(S)||S<=0||S>this._numPages)return Promise.reject(new Error("Invalid page request."));const b=S-1,g=Rt(this,Te).get(b);if(g)return g;const M=this.messageHandler.sendWithPromise("GetPage",{pageIndex:b}).then(G=>{if(this.destroyed)throw new Error("Transport destroyed");const P=new PDFPageProxy(b,G,this,this._params.ownerDocument,this._params.pdfBug);return Rt(this,Ve).set(b,P),P});return Rt(this,Te).set(b,M),M}getPageIndex(S){return"object"!=typeof S||null===S||!Number.isInteger(S.num)||S.num<0||!Number.isInteger(S.gen)||S.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:S.num,gen:S.gen})}getAnnotations(S,b){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:S,intent:b})}saveDocument(){var S,b;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!=(b=null==(S=this._fullReader)?void 0:S.filename)?b:null}).finally(()=>{this.annotationStorage.resetModified()})}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(S){return"string"!=typeof S?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:S})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(S){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:S})}getStructTree(S){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:S})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(S=>new _optional_content_config.OptionalContentConfig(S))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return Rt(this,Me)||Fi(this,Me,this.messageHandler.sendWithPromise("GetMetadata",null).then(S=>{var b,g,M,G;return{info:S[0],metadata:S[1]?new _metadata.Metadata(S[1]):null,contentDispositionFilename:null!=(g=null==(b=this._fullReader)?void 0:b.filename)?g:null,contentLength:null!=(G=null==(M=this._fullReader)?void 0:M.contentLength)?G:null}}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(S=!1){var b=this;return _asyncToGenerator(function*(){if(yield b.messageHandler.sendWithPromise("Cleanup",null),!b.destroyed){for(const g of Rt(b,Ve).values())if(!g.cleanup())throw new Error(`startCleanup: Page ${g.pageNumber} is currently rendering.`);b.commonObjs.clear(),S||b.fontLoader.clear(),Fi(b,Me,null),b._getFieldObjectsPromise=null,b._hasJSActionsPromise=null}})()}get loadingParams(){const S=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:S.disableAutoFetch,enableXfa:S.enableXfa})}}J=new WeakMap,Ve=new WeakMap,Te=new WeakMap,Me=new WeakMap;class PDFObjects{constructor(){Gt(this,E),Gt(this,ce,Object.create(null))}get(S,b=null){if(b){const M=Nt(this,E,z1).call(this,S);return M.capability.promise.then(()=>b(M.data)),null}const g=Rt(this,ce)[S];if(null==g||!g.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${S}.`);return g.data}has(S){const b=Rt(this,ce)[S];return(null==b?void 0:b.capability.settled)||!1}resolve(S,b=null){const g=Nt(this,E,z1).call(this,S);g.data=b,g.capability.resolve()}clear(){Fi(this,ce,Object.create(null))}}ce=new WeakMap,E=new WeakSet,z1=function(S){return Rt(this,ce)[S]||(Rt(this,ce)[S]={capability:(0,_util.createPromiseCapability)(),data:null})};class RenderTask{constructor(S){this._internalRenderTask=S,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}exports.RenderTask=RenderTask;const $=class{constructor({callback:S,params:b,objs:g,commonObjs:M,annotationCanvasMap:G,operatorList:P,pageIndex:F,canvasFactory:m,useRequestAnimationFrame:_=!1,pdfBug:k=!1,pageColors:O=null}){this.callback=S,this.params=b,this.objs=g,this.commonObjs=M,this.annotationCanvasMap=G,this.operatorListIdx=null,this.operatorList=P,this._pageIndex=F,this.canvasFactory=m,this._pdfBug=k,this.pageColors=O,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===_&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=b.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:S=!1,optionalContentConfig:b}){var m;if(this.cancelled)return;if(this._canvas){if(Rt($,T).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Rt($,T).add(this._canvas)}this._pdfBug&&(null==(m=globalThis.StepperManager)?void 0:m.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:g,viewport:M,transform:G,imageLayer:P,background:F}=this.params;this.gfx=new _canvas.CanvasGraphics(g,this.commonObjs,this.objs,this.canvasFactory,P,b,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:G,viewport:M,transparency:S,background:F}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(S=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&Rt($,T).delete(this._canvas),this.callback(S||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var S=this;return _asyncToGenerator(function*(){S.cancelled||(S.operatorListIdx=S.gfx.executeOperatorList(S.operatorList,S.operatorListIdx,S._continueBound,S.stepper),S.operatorListIdx===S.operatorList.argsArray.length&&(S.running=!1,S.operatorList.lastChunk&&(S.gfx.endDrawing(),S._canvas&&Rt($,T).delete(S._canvas),S.callback())))})()}};let InternalRenderTask=$;T=new WeakMap,Gt(InternalRenderTask,T,new WeakSet);const version="2.14.305";exports.version=version;const build="eaaa8b4ad";exports.build=build},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.StatTimer=re.RenderingCancelledException=re.PixelsPerInch=re.PageViewport=re.PDFDateString=re.DOMStandardFontDataFactory=re.DOMSVGFactory=re.DOMCanvasFactory=re.DOMCMapReaderFactory=void 0,re.deprecated=function _(L){console.log("Deprecated API usage: "+L)},re.getFilenameFromUrl=function M(L){const V=L.indexOf("#"),te=L.indexOf("?"),ue=Math.min(V>0?V:L.length,te>0?te:L.length);return L.substring(L.lastIndexOf("/",ue)+1,ue)},re.getPdfFilenameFromUrl=function G(L,V="document.pdf"){if("string"!=typeof L)return V;if(b(L))return(0,J.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),V;const ue=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,fe=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(L);let we=ue.exec(fe[1])||ue.exec(fe[2])||ue.exec(fe[3]);if(we&&(we=we[0],we.includes("%")))try{we=ue.exec(decodeURIComponent(we))[0]}catch(oe){}return we||V},re.getXfaPageViewport=function H(L,{scale:V=1,rotation:te=0}){const{width:ue,height:fe}=L.attributes.style,we=[0,0,parseInt(ue),parseInt(fe)];return new U({viewBox:we,scale:V,rotation:te})},re.isDataScheme=b,re.isPdfFile=function g(L){return"string"==typeof L&&/\.pdf$/i.test(L)},re.isValidFetchUrl=F,re.loadScript=function m(L,V=!1){return new Promise((te,ue)=>{const fe=document.createElement("script");fe.src=L,fe.onload=function(we){V&&fe.remove(),te(we)},fe.onerror=function(){ue(new Error(`Cannot load script at: ${fe.src}`))},(document.head||document.documentElement).appendChild(fe)})};var I=He(6),J=He(1);const Z=class{};let k,Te=Z;function ce(L){return E.apply(this,arguments)}function E(){return(E=_asyncToGenerator(function*(L,V=!1){if(F(L,document.baseURI)){const te=yield fetch(L);if(!te.ok)throw new Error(te.statusText);return V?new Uint8Array(yield te.arrayBuffer()):(0,J.stringToBytes)(yield te.text())}return new Promise((te,ue)=>{const fe=new XMLHttpRequest;fe.open("GET",L,!0),V&&(fe.responseType="arraybuffer"),fe.onreadystatechange=()=>{if(fe.readyState===XMLHttpRequest.DONE){if(200===fe.status||0===fe.status){let we;if(V&&fe.response?we=new Uint8Array(fe.response):!V&&fe.responseText&&(we=(0,J.stringToBytes)(fe.responseText)),we)return void te(we)}ue(new Error(fe.statusText))}},fe.send(null)})})).apply(this,arguments)}pC(Te,"CSS",96),pC(Te,"PDF",72),pC(Te,"PDF_TO_CSS_UNITS",Z.CSS/Z.PDF),re.PixelsPerInch=Te,re.DOMCanvasFactory=class Me extends I.BaseCanvasFactory{constructor({ownerDocument:V=globalThis.document}={}){super(),this._document=V}_createCanvas(V,te){const ue=this._document.createElement("canvas");return ue.width=V,ue.height=te,ue}},re.DOMCMapReaderFactory=class Q extends I.BaseCMapReaderFactory{_fetchData(V,te){return ce(V,this.isCompressed).then(ue=>({cMapData:ue,compressionType:te}))}},re.DOMStandardFontDataFactory=class T extends I.BaseStandardFontDataFactory{_fetchData(V){return ce(V,!0)}},re.DOMSVGFactory=class $ extends I.BaseSVGFactory{_createSVG(V){return document.createElementNS("http://www.w3.org/2000/svg",V)}};class U{constructor({viewBox:V,scale:te,rotation:ue,offsetX:fe=0,offsetY:we=0,dontFlip:oe=!1}){this.viewBox=V,this.scale=te,this.rotation=ue,this.offsetX=fe,this.offsetY=we;const Se=(V[2]+V[0])/2,_e=(V[3]+V[1])/2;let Ce,Be,X,C,y,p,D,A;switch((ue%=360)<0&&(ue+=360),ue){case 180:Ce=-1,Be=0,X=0,C=1;break;case 90:Ce=0,Be=1,X=1,C=0;break;case 270:Ce=0,Be=-1,X=-1,C=0;break;case 0:Ce=1,Be=0,X=0,C=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}oe&&(X=-X,C=-C),0===Ce?(y=Math.abs(_e-V[1])*te+fe,p=Math.abs(Se-V[0])*te+we,D=Math.abs(V[3]-V[1])*te,A=Math.abs(V[2]-V[0])*te):(y=Math.abs(Se-V[0])*te+fe,p=Math.abs(_e-V[1])*te+we,D=Math.abs(V[2]-V[0])*te,A=Math.abs(V[3]-V[1])*te),this.transform=[Ce*te,Be*te,X*te,C*te,y-Ce*te*Se-X*te*_e,p-Be*te*Se-C*te*_e],this.width=D,this.height=A}clone({scale:V=this.scale,rotation:te=this.rotation,offsetX:ue=this.offsetX,offsetY:fe=this.offsetY,dontFlip:we=!1}={}){return new U({viewBox:this.viewBox.slice(),scale:V,rotation:te,offsetX:ue,offsetY:fe,dontFlip:we})}convertToViewportPoint(V,te){return J.Util.applyTransform([V,te],this.transform)}convertToViewportRectangle(V){const te=J.Util.applyTransform([V[0],V[1]],this.transform),ue=J.Util.applyTransform([V[2],V[3]],this.transform);return[te[0],te[1],ue[0],ue[1]]}convertToPdfPoint(V,te){return J.Util.applyInverseTransform([V,te],this.transform)}}function b(L){const V=L.length;let te=0;for(;te<V&&""===L[te].trim();)te++;return"data:"===L.substring(te,te+5).toLowerCase()}function F(L,V){try{const{protocol:te}=V?new URL(L,V):new URL(L);return"http:"===te||"https:"===te}catch(te){return!1}}re.PageViewport=U,re.RenderingCancelledException=class S extends J.BaseException{constructor(V,te){super(V,"RenderingCancelledException"),this.type=te}},re.StatTimer=class P{constructor(){this.started=Object.create(null),this.times=[]}time(V){V in this.started&&(0,J.warn)(`Timer is already running for ${V}`),this.started[V]=Date.now()}timeEnd(V){V in this.started||(0,J.warn)(`Timer has not been started for ${V}`),this.times.push({name:V,start:this.started[V],end:Date.now()}),delete this.started[V]}toString(){const V=[];let te=0;for(const ue of this.times){const fe=ue.name;fe.length>te&&(te=fe.length)}for(const ue of this.times){const fe=ue.end-ue.start;V.push(`${ue.name.padEnd(te)} ${fe}ms\n`)}return V.join("")}},re.PDFDateString=class O{static toDateObject(V){if(!V||"string"!=typeof V)return null;k||(k=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const te=k.exec(V);if(!te)return null;const ue=parseInt(te[1],10);let fe=parseInt(te[2],10);fe=fe>=1&&fe<=12?fe-1:0;let we=parseInt(te[3],10);we=we>=1&&we<=31?we:1;let oe=parseInt(te[4],10);oe=oe>=0&&oe<=23?oe:0;let Se=parseInt(te[5],10);Se=Se>=0&&Se<=59?Se:0;let _e=parseInt(te[6],10);_e=_e>=0&&_e<=59?_e:0;const Ce=te[7]||"Z";let Be=parseInt(te[8],10);Be=Be>=0&&Be<=23?Be:0;let X=parseInt(te[9],10)||0;return X=X>=0&&X<=59?X:0,"-"===Ce?(oe+=Be,Se+=X):"+"===Ce&&(oe-=Be,Se-=X),new Date(Date.UTC(ue,fe,we,oe,Se,_e))}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.BaseStandardFontDataFactory=re.BaseSVGFactory=re.BaseCanvasFactory=re.BaseCMapReaderFactory=void 0;var I=He(1);class J{constructor(){this.constructor===J&&(0,I.unreachable)("Cannot initialize BaseCanvasFactory.")}create(E,Q){if(E<=0||Q<=0)throw new Error("Invalid canvas size");const T=this._createCanvas(E,Q);return{canvas:T,context:T.getContext("2d")}}reset(E,Q,T){if(!E.canvas)throw new Error("Canvas is not specified");if(Q<=0||T<=0)throw new Error("Invalid canvas size");E.canvas.width=Q,E.canvas.height=T}destroy(E){if(!E.canvas)throw new Error("Canvas is not specified");E.canvas.width=0,E.canvas.height=0,E.canvas=null,E.context=null}_createCanvas(E,Q){(0,I.unreachable)("Abstract method `_createCanvas` called.")}}re.BaseCanvasFactory=J;class Ve{constructor({baseUrl:E=null,isCompressed:Q=!1}){this.constructor===Ve&&(0,I.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=E,this.isCompressed=Q}fetch({name:E}){var Q=this;return _asyncToGenerator(function*(){if(!Q.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!E)throw new Error("CMap name must be specified.");const T=Q.baseUrl+E+(Q.isCompressed?".bcmap":"");return Q._fetchData(T,Q.isCompressed?I.CMapCompressionType.BINARY:I.CMapCompressionType.NONE).catch(U=>{throw new Error(`Unable to load ${Q.isCompressed?"binary ":""}CMap at: ${T}`)})})()}_fetchData(E,Q){(0,I.unreachable)("Abstract method `_fetchData` called.")}}re.BaseCMapReaderFactory=Ve;class Te{constructor({baseUrl:E=null}){this.constructor===Te&&(0,I.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=E}fetch({filename:E}){var Q=this;return _asyncToGenerator(function*(){if(!Q.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!E)throw new Error("Font filename must be specified.");const T=`${Q.baseUrl}${E}`;return Q._fetchData(T).catch($=>{throw new Error(`Unable to load font data at: ${T}`)})})()}_fetchData(E){(0,I.unreachable)("Abstract method `_fetchData` called.")}}re.BaseStandardFontDataFactory=Te;class Me{constructor(){this.constructor===Me&&(0,I.unreachable)("Cannot initialize BaseSVGFactory.")}create(E,Q){if(E<=0||Q<=0)throw new Error("Invalid SVG dimensions");const T=this._createSVG("svg:svg");return T.setAttribute("version","1.1"),T.setAttribute("width",`${E}px`),T.setAttribute("height",`${Q}px`),T.setAttribute("preserveAspectRatio","none"),T.setAttribute("viewBox",`0 0 ${E} ${Q}`),T}createElement(E){if("string"!=typeof E)throw new Error("Invalid SVG element type");return this._createSVG(E)}_createSVG(E){(0,I.unreachable)("Abstract method `_createSVG` called.")}}re.BaseSVGFactory=Me},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.FontLoader=re.FontFaceObject=void 0;var I=He(1);class J{constructor({docId:ce,onUnsupportedFeature:E,ownerDocument:Q=globalThis.document,styleElement:T=null}){this.constructor===J&&(0,I.unreachable)("Cannot initialize BaseFontLoader."),this.docId=ce,this._onUnsupportedFeature=E,this._document=Q,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(ce){this.nativeFontFaces.push(ce),this._document.fonts.add(ce)}insertRule(ce){let E=this.styleElement;E||(E=this.styleElement=this._document.createElement("style"),E.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(E));const Q=E.sheet;Q.insertRule(ce,Q.cssRules.length)}clear(){for(const ce of this.nativeFontFaces)this._document.fonts.delete(ce);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(ce){var E=this;return _asyncToGenerator(function*(){if(ce.attached||ce.missingFile)return;if(ce.attached=!0,E.isFontLoadingAPISupported){const T=ce.createNativeFontFace();if(T){E.addNativeFontFace(T);try{yield T.loaded}catch($){throw E._onUnsupportedFeature({featureId:I.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,I.warn)(`Failed to load font '${T.family}': '${$}'.`),ce.disableFontFace=!0,$}}return}const Q=ce.createFontFaceRule();if(Q){if(E.insertRule(Q),E.isSyncFontLoadingSupported)return;yield new Promise(T=>{const $=E._queueLoadingCallback(T);E._prepareFontLoadEvent([Q],[ce],$)})}})()}_queueLoadingCallback(ce){(0,I.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var E;const ce=!(null==(E=this._document)||!E.fonts);return(0,I.shadow)(this,"isFontLoadingAPISupported",ce)}get isSyncFontLoadingSupported(){(0,I.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,I.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(ce,E,Q){(0,I.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let Ve;re.FontLoader=Ve,re.FontLoader=Ve=class extends J{constructor(ce){super(ce),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let ce=!1;if("undefined"==typeof navigator)ce=!0;else{const E=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null==E?void 0:E[1])>=14&&(ce=!0)}return(0,I.shadow)(this,"isSyncFontLoadingSupported",ce)}_queueLoadingCallback(ce){const Q=this.loadingContext,T={id:"pdfjs-font-loading-"+Q.nextRequestId++,done:!1,complete:function E(){for((0,I.assert)(!T.done,"completeRequest() cannot be called twice."),T.done=!0;Q.requests.length>0&&Q.requests[0].done;){const $=Q.requests.shift();setTimeout($.callback,0)}},callback:ce};return Q.requests.push(T),T}get _loadTestFont(){return(0,I.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(ce,E,Q){function T(te,ue){return te.charCodeAt(ue)<<24|te.charCodeAt(ue+1)<<16|te.charCodeAt(ue+2)<<8|255&te.charCodeAt(ue+3)}function $(te,ue,fe,we){return te.substring(0,ue)+we+te.substring(ue+fe)}let U,S;const b=this._document.createElement("canvas");b.width=1,b.height=1;const g=b.getContext("2d");let M=0;const P=`lt${Date.now()}${this.loadTestFontId++}`;let F=this._loadTestFont;F=$(F,976,P.length,P);const k=1482184792;let O=T(F,16);for(U=0,S=P.length-3;U<S;U+=4)O=O-k+T(P,U)|0;U<P.length&&(O=O-k+T(P+"XXX",U)|0),F=$(F,16,4,(0,I.string32)(O));const H=`url(data:font/opentype;base64,${btoa(F)});`;this.insertRule(`@font-face {font-family:"${P}";src:${H}}`);const L=[];for(const te of E)L.push(te.loadedName);L.push(P);const V=this._document.createElement("div");V.style.visibility="hidden",V.style.width=V.style.height="10px",V.style.position="absolute",V.style.top=V.style.left="0px";for(const te of L){const ue=this._document.createElement("span");ue.textContent="Hi",ue.style.fontFamily=te,V.appendChild(ue)}this._document.body.appendChild(V),function G(te,ue){if(M++,M>30)return(0,I.warn)("Load test font never loaded."),void ue();g.font="30px "+te,g.fillText(".",0,20),g.getImageData(0,0,1,1).data[3]>0?ue():setTimeout(G.bind(null,te,ue))}(P,()=>{V.remove(),Q.complete()})}},re.FontFaceObject=class Te{constructor(ce,{isEvalSupported:E=!0,disableFontFace:Q=!1,ignoreErrors:T=!1,onUnsupportedFeature:$,fontRegistry:U=null}){this.compiledGlyphs=Object.create(null);for(const S in ce)this[S]=ce[S];this.isEvalSupported=!1!==E,this.disableFontFace=!0===Q,this.ignoreErrors=!0===T,this._onUnsupportedFeature=$,this.fontRegistry=U}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let ce;if(this.cssFontInfo){const E={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(E.style=`oblique ${this.cssFontInfo.italicAngle}deg`),ce=new FontFace(this.cssFontInfo.fontFamily,this.data,E)}else ce=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),ce}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const ce=(0,I.bytesToString)(this.data),E=`url(data:${this.mimetype};base64,${btoa(ce)});`;let Q;if(this.cssFontInfo){let T=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(T+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),Q=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${T}src:${E}}`}else Q=`@font-face {font-family:"${this.loadedName}";src:${E}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,E),Q}getPathGenerator(ce,E){if(void 0!==this.compiledGlyphs[E])return this.compiledGlyphs[E];let Q;try{Q=ce.get(this.loadedName+"_path_"+E)}catch(T){if(!this.ignoreErrors)throw T;return this._onUnsupportedFeature({featureId:I.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,I.warn)(`getPathGenerator - ignoring character: "${T}".`),this.compiledGlyphs[E]=function($,U){}}if(this.isEvalSupported&&I.FeatureTest.isEvalSupported){const T=[];for(const $ of Q){const U=void 0!==$.args?$.args.join(","):"";T.push("c.",$.cmd,"(",U,");\n")}return this.compiledGlyphs[E]=new Function("c","size",T.join(""))}return this.compiledGlyphs[E]=function(T,$){for(const U of Q)"scale"===U.cmd&&(U.args=[$,-$]),T[U.cmd].apply(T,U.args)}}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.AnnotationStorage=void 0;var I=He(9),J=He(1);re.AnnotationStorage=class Ve{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(Me,ce){const E=this._storage.get(Me);return void 0===E?ce:Object.assign(ce,E)}getRawValue(Me){return this._storage.get(Me)}setValue(Me,ce){const E=this._storage.get(Me);let Q=!1;if(void 0!==E)for(const[T,$]of Object.entries(ce))E[T]!==$&&(Q=!0,E[T]=$);else Q=!0,this._storage.set(Me,ce);Q&&this._setModified()}getAll(){return this._storage.size>0?(0,J.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}get hash(){const Me=new I.MurmurHash3_64;for(const[ce,E]of this._storage)Me.update(`${ce}:${JSON.stringify(E)}`);return Me.hexdigest()}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.MurmurHash3_64=void 0;var I=He(1);const J=3285377520,Ve=4294901760,Te=65535;re.MurmurHash3_64=class Me{constructor(E){this.h1=E?4294967295&E:J,this.h2=E?4294967295&E:J}update(E){let Q,T;if("string"==typeof E){Q=new Uint8Array(2*E.length),T=0;for(let k=0,O=E.length;k<O;k++){const H=E.charCodeAt(k);H<=255?Q[T++]=H:(Q[T++]=H>>>8,Q[T++]=255&H)}}else{if(!(0,I.isArrayBuffer)(E))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");Q=E.slice(),T=Q.byteLength}const $=T>>2,U=T-4*$,S=new Uint32Array(Q.buffer,0,$);let b=0,g=0,M=this.h1,G=this.h2;const P=3432918353,F=461845907,m=P&Te,_=F&Te;for(let k=0;k<$;k++)1&k?(b=S[k],b=b*P&Ve|b*m&Te,b=b<<15|b>>>17,b=b*F&Ve|b*_&Te,M^=b,M=M<<13|M>>>19,M=5*M+3864292196):(g=S[k],g=g*P&Ve|g*m&Te,g=g<<15|g>>>17,g=g*F&Ve|g*_&Te,G^=g,G=G<<13|G>>>19,G=5*G+3864292196);switch(b=0,U){case 3:b^=Q[4*$+2]<<16;case 2:b^=Q[4*$+1]<<8;case 1:b^=Q[4*$],b=b*P&Ve|b*m&Te,b=b<<15|b>>>17,b=b*F&Ve|b*_&Te,1&$?M^=b:G^=b}this.h1=M,this.h2=G}hexdigest(){let E=this.h1,Q=this.h2;E^=Q>>>1,E=3981806797*E&Ve|36045*E&Te,Q=4283543511*Q&Ve|(2950163797*(Q<<16|E>>>16)&Ve)>>>16,E^=Q>>>1,E=444984403*E&Ve|60499*E&Te,Q=3301882366*Q&Ve|(3120437893*(Q<<16|E>>>16)&Ve)>>>16,E^=Q>>>1;const T=(E>>>0).toString(16),$=(Q>>>0).toString(16);return T.padStart(8,"0")+$.padStart(8,"0")}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.CanvasGraphics=void 0;var I=He(1),J=He(11),Ve=He(12),Te=He(3),Me=He(5);const Q=4096,b=16;function G(X){if(X._transformStack&&(X._transformStack=[]),!X.mozCurrentTransform){X._originalSave=X.save,X._originalRestore=X.restore,X._originalRotate=X.rotate,X._originalScale=X.scale,X._originalTranslate=X.translate,X._originalTransform=X.transform,X._originalSetTransform=X.setTransform,X._originalResetTransform=X.resetTransform,X._transformMatrix=X._transformMatrix||[1,0,0,1,0,0],X._transformStack=[];try{const C=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(X),"lineWidth");X._setLineWidth=C.set,X._getLineWidth=C.get,Object.defineProperty(X,"lineWidth",{set:function(p){this._setLineWidth(1.000001*p)},get:function(){return this._getLineWidth()}})}catch(C){}Object.defineProperty(X,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(X,"mozCurrentTransformInverse",{get:function(){const[y,p,D,A,N,j]=this._transformMatrix,z=y*A-p*D,pe=p*D-y*A;return[A/z,p/pe,D/pe,y/z,(A*N-D*j)/pe,(p*N-y*j)/z]}}),X.save=function(){const y=this._transformMatrix;this._transformStack.push(y),this._transformMatrix=y.slice(0,6),this._originalSave()},X.restore=function(){0===this._transformStack.length&&(0,I.warn)("Tried to restore a ctx when the stack was already empty.");const y=this._transformStack.pop();y&&(this._transformMatrix=y,this._originalRestore())},X.translate=function(y,p){const D=this._transformMatrix;D[4]=D[0]*y+D[2]*p+D[4],D[5]=D[1]*y+D[3]*p+D[5],this._originalTranslate(y,p)},X.scale=function(y,p){const D=this._transformMatrix;D[0]*=y,D[1]*=y,D[2]*=p,D[3]*=p,this._originalScale(y,p)},X.transform=function(y,p,D,A,N,j){const z=this._transformMatrix;this._transformMatrix=[z[0]*y+z[2]*p,z[1]*y+z[3]*p,z[0]*D+z[2]*A,z[1]*D+z[3]*A,z[0]*N+z[2]*j+z[4],z[1]*N+z[3]*j+z[5]],X._originalTransform(y,p,D,A,N,j)},X.setTransform=function(y,p,D,A,N,j){this._transformMatrix=[y,p,D,A,N,j],X._originalSetTransform(y,p,D,A,N,j)},X.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],X._originalResetTransform()},X.rotate=function(y){const p=Math.cos(y),D=Math.sin(y),A=this._transformMatrix;this._transformMatrix=[A[0]*p+A[2]*D,A[1]*p+A[3]*D,A[0]*-D+A[2]*p,A[1]*-D+A[3]*p,A[4],A[5]],this._originalRotate(y)}}}class P{constructor(C){this.canvasFactory=C,this.cache=Object.create(null)}getCanvas(C,y,p,D){let A;return void 0!==this.cache[C]?(A=this.cache[C],this.canvasFactory.reset(A,y,p),A.context.setTransform(1,0,0,1,0,0)):(A=this.canvasFactory.create(y,p),this.cache[C]=A),D&&G(A.context),A}delete(C){delete this.cache[C]}clear(){for(const C in this.cache)this.canvasFactory.destroy(this.cache[C]),delete this.cache[C]}}function F(X,C,y,p,D,A,N,j,z,pe){const[he,ge,ye,ke,Ae,Ue]=X.mozCurrentTransform;if(0===ge&&0===ye){const ze=Math.round(N*he+Ae),le=Math.round(j*ke+Ue),Xe=Math.abs(Math.round((N+z)*he+Ae)-ze)||1,Ke=Math.abs(Math.round((j+pe)*ke+Ue)-le)||1;return X.setTransform(Math.sign(he),0,0,Math.sign(ke),ze,le),X.drawImage(C,y,p,D,A,0,0,Xe,Ke),X.setTransform(he,ge,ye,ke,Ae,Ue),[Xe,Ke]}if(0===he&&0===ke){const ze=Math.round(j*ye+Ae),le=Math.round(N*ge+Ue),Xe=Math.abs(Math.round((j+pe)*ye+Ae)-ze)||1,Ke=Math.abs(Math.round((N+z)*ge+Ue)-le)||1;return X.setTransform(0,Math.sign(ge),Math.sign(ye),0,ze,le),X.drawImage(C,y,p,D,A,0,0,Ke,Xe),X.setTransform(he,ge,ye,ke,Ae,Ue),[Ke,Xe]}return X.drawImage(C,y,p,D,A,N,j,z,pe),[Math.hypot(he,ge)*z,Math.hypot(ye,ke)*pe]}class _{constructor(C,y){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=I.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=I.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=I.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,C,y])}clone(){const C=Object.create(this);return C.clipBox=this.clipBox.slice(),C}setCurrentPoint(C,y){this.x=C,this.y=y}updatePathMinMax(C,y,p){[y,p]=I.Util.applyTransform([y,p],C),this.minX=Math.min(this.minX,y),this.minY=Math.min(this.minY,p),this.maxX=Math.max(this.maxX,y),this.maxY=Math.max(this.maxY,p)}updateRectMinMax(C,y){const p=I.Util.applyTransform(y,C),D=I.Util.applyTransform(y.slice(2),C);this.minX=Math.min(this.minX,p[0],D[0]),this.minY=Math.min(this.minY,p[1],D[1]),this.maxX=Math.max(this.maxX,p[0],D[0]),this.maxY=Math.max(this.maxY,p[1],D[1])}updateScalingPathMinMax(C,y){I.Util.scaleMinMax(C,y),this.minX=Math.min(this.minX,y[0]),this.maxX=Math.max(this.maxX,y[1]),this.minY=Math.min(this.minY,y[2]),this.maxY=Math.max(this.maxY,y[3])}updateCurvePathMinMax(C,y,p,D,A,N,j,z,pe,he){const ge=I.Util.bezierBoundingBox(y,p,D,A,N,j,z,pe);if(he)return he[0]=Math.min(he[0],ge[0],ge[2]),he[1]=Math.max(he[1],ge[0],ge[2]),he[2]=Math.min(he[2],ge[1],ge[3]),void(he[3]=Math.max(he[3],ge[1],ge[3]));this.updateRectMinMax(C,ge)}getPathBoundingBox(C=J.PathType.FILL,y=null){const p=[this.minX,this.minY,this.maxX,this.maxY];if(C===J.PathType.STROKE){y||(0,I.unreachable)("Stroke bounding box must include transform.");const D=I.Util.singularValueDecompose2dScale(y),A=D[0]*this.lineWidth/2,N=D[1]*this.lineWidth/2;p[0]-=A,p[1]-=N,p[2]+=A,p[3]+=N}return p}updateClipFromPath(){const C=I.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(C||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(C){this.clipBox=C,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(C=J.PathType.FILL,y=null){return I.Util.intersect(this.clipBox,this.getPathBoundingBox(C,y))}}function k(X,C,y=null){if("undefined"!=typeof ImageData&&C instanceof ImageData)return void X.putImageData(C,0,0);const p=C.height,D=C.width,A=p%b,N=(p-A)/b,j=0===A?N:N+1,z=X.createImageData(D,b);let he,pe=0;const ge=C.data,ye=z.data;let ke,Ae,Ue,st,De,je,ze,q;if(y)switch(y.length){case 1:De=y[0],je=y[0],ze=y[0],q=y[0];break;case 4:De=y[0],je=y[1],ze=y[2],q=y[3]}if(C.kind===I.ImageKind.GRAYSCALE_1BPP){const le=ge.byteLength,Ee=new Uint32Array(ye.buffer,0,ye.byteLength>>2),Xe=Ee.length,Ye=D+7>>3;let Ke=4294967295,ut=I.FeatureTest.isLittleEndian?4278190080:255;for(q&&255===q[0]&&0===q[255]&&([Ke,ut]=[ut,Ke]),ke=0;ke<j;ke++){for(Ue=ke<N?b:A,he=0,Ae=0;Ae<Ue;Ae++){const pt=le-pe;let Vt=0;const ln=pt>Ye?D:8*pt-7,Tn=-8&ln;let Ne=0,ae=0;for(;Vt<Tn;Vt+=8)ae=ge[pe++],Ee[he++]=128&ae?Ke:ut,Ee[he++]=64&ae?Ke:ut,Ee[he++]=32&ae?Ke:ut,Ee[he++]=16&ae?Ke:ut,Ee[he++]=8&ae?Ke:ut,Ee[he++]=4&ae?Ke:ut,Ee[he++]=2&ae?Ke:ut,Ee[he++]=1&ae?Ke:ut;for(;Vt<ln;Vt++)0===Ne&&(ae=ge[pe++],Ne=128),Ee[he++]=ae&Ne?Ke:ut,Ne>>=1}for(;he<Xe;)Ee[he++]=0;X.putImageData(z,0,ke*b)}}else if(C.kind===I.ImageKind.RGBA_32BPP){const le=!!(De||je||ze);for(Ae=0,st=D*b*4,ke=0;ke<N;ke++){if(ye.set(ge.subarray(pe,pe+st)),pe+=st,le)for(let Ee=0;Ee<st;Ee+=4)De&&(ye[Ee+0]=De[ye[Ee+0]]),je&&(ye[Ee+1]=je[ye[Ee+1]]),ze&&(ye[Ee+2]=ze[ye[Ee+2]]);X.putImageData(z,0,Ae),Ae+=b}if(ke<j){if(st=D*A*4,ye.set(ge.subarray(pe,pe+st)),le)for(let Ee=0;Ee<st;Ee+=4)De&&(ye[Ee+0]=De[ye[Ee+0]]),je&&(ye[Ee+1]=je[ye[Ee+1]]),ze&&(ye[Ee+2]=ze[ye[Ee+2]]);X.putImageData(z,0,Ae)}}else{if(C.kind!==I.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${C.kind}`);{const le=!!(De||je||ze);for(Ue=b,st=D*Ue,ke=0;ke<j;ke++){for(ke>=N&&(Ue=A,st=D*Ue),he=0,Ae=st;Ae--;)ye[he++]=ge[pe++],ye[he++]=ge[pe++],ye[he++]=ge[pe++],ye[he++]=255;if(le)for(let Ee=0;Ee<he;Ee+=4)De&&(ye[Ee+0]=De[ye[Ee+0]]),je&&(ye[Ee+1]=je[ye[Ee+1]]),ze&&(ye[Ee+2]=ze[ye[Ee+2]]);X.putImageData(z,0,ke*b)}}}}function O(X,C){if(C.bitmap)return void X.drawImage(C.bitmap,0,0);const y=C.height,p=C.width,D=y%b,A=(y-D)/b,N=0===D?A:A+1,j=X.createImageData(p,b);let z=0;const pe=C.data,he=j.data;for(let ge=0;ge<N;ge++){const ye=ge<A?b:D;({srcPos:z}=(0,Ve.applyMaskImageData)({src:pe,srcPos:z,dest:he,width:p,height:ye})),X.putImageData(j,0,ge*b)}}function H(X,C){const y=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let p=0,D=y.length;p<D;p++){const A=y[p];void 0!==X[A]&&(C[A]=X[A])}void 0!==X.setLineDash&&(C.setLineDash(X.getLineDash()),C.lineDashOffset=X.lineDashOffset)}function Z(X,C){X.strokeStyle=X.fillStyle=C||"#000000",X.fillRule="nonzero",X.globalAlpha=1,X.lineWidth=1,X.lineCap="butt",X.lineJoin="miter",X.miterLimit=10,X.globalCompositeOperation="source-over",X.font="10px sans-serif",void 0!==X.setLineDash&&(X.setLineDash([]),X.lineDashOffset=0)}function L(X,C,y,p){const D=X.length;for(let A=3;A<D;A+=4){const N=X[A];if(0===N)X[A-3]=C,X[A-2]=y,X[A-1]=p;else if(N<255){const j=255-N;X[A-3]=X[A-3]*N+C*j>>8,X[A-2]=X[A-2]*N+y*j>>8,X[A-1]=X[A-1]*N+p*j>>8}}}function V(X,C,y){const p=X.length;for(let A=3;A<p;A+=4)C[A]=C[A]*(y?y[X[A]]:X[A])*.00392156862745098|0}function te(X,C,y){const p=X.length;for(let D=3;D<p;D+=4){const A=77*X[D-3]+152*X[D-2]+28*X[D-1];C[D]=y?C[D]*y[A>>8]>>8:C[D]*A>>16}}function we(X,C){const y=I.Util.singularValueDecompose2dScale(X);y[0]=Math.fround(y[0]),y[1]=Math.fround(y[1]);const p=Math.fround((globalThis.devicePixelRatio||1)*Me.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==C?C:y[0]<=p||y[1]<=p}const oe=["butt","round","square"],Se=["miter","round","bevel"],_e={},Ce={};class Be{constructor(C,y,p,D,A,N,j,z){this.ctx=C,this.current=new _(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=y,this.objs=p,this.canvasFactory=D,this.imageLayer=A,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=N,this.cachedCanvases=new P(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=j,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(null==z?void 0:z.background)||null,this.foregroundColor=(null==z?void 0:z.foreground)||null,C&&G(C),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(C,y=null){return"string"==typeof C?C.startsWith("g_")?this.commonObjs.get(C):this.objs.get(C):y}beginDrawing({transform:C,viewport:y,transparency:p=!1,background:D=null}){const A=this.ctx.canvas.width,N=this.ctx.canvas.height,j=D||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const z=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const pe=this.backgroundColor=this.ctx.fillStyle;let he=!0,ge=j;if(this.ctx.fillStyle=j,ge=this.ctx.fillStyle,he="string"==typeof ge&&/^#[0-9A-Fa-f]{6}$/.test(ge),"#000000"===z&&"#ffffff"===pe||z===pe||!he)this.foregroundColor=this.backgroundColor=null;else{const ye=parseInt(ge.slice(1),16),Ae=(ye&&65280)>>8,Ue=ye&&255,st=je=>(je/=255)<=.03928?je/12.92:((je+.055)/1.055)**2.4,De=Math.round(.2126*st((ye&&16711680)>>16)+.7152*st(Ae)+.0722*st(Ue));this.selectColor=(je,ze,q)=>{const le=.2126*st(je)+.7152*st(ze)+.0722*st(q);return Math.round(le)===De?pe:z}}}if(this.ctx.fillStyle=this.backgroundColor||j,this.ctx.fillRect(0,0,A,N),this.ctx.restore(),p){const z=this.cachedCanvases.getCanvas("transparent",A,N,!0);this.compositeCtx=this.ctx,this.transparentCanvas=z.canvas,this.ctx=z.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),Z(this.ctx,this.foregroundColor),C&&(this.ctx.transform.apply(this.ctx,C),this.outputScaleX=C[0],this.outputScaleY=C[0]),this.ctx.transform.apply(this.ctx,y.transform),this.viewportScale=y.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(C,y,p,D){const A=C.argsArray,N=C.fnArray;let j=y||0;const z=A.length;if(z===j)return j;const pe=z-j>10&&"function"==typeof p,he=pe?Date.now()+15:0;let ge=0;const ye=this.commonObjs,ke=this.objs;let Ae;for(;;){if(void 0!==D&&j===D.nextBreakPoint)return D.breakIt(j,p),j;if(Ae=N[j],Ae!==I.OPS.dependency)this[Ae].apply(this,A[j]);else for(const Ue of A[j]){const st=Ue.startsWith("g_")?ye:ke;if(!st.has(Ue))return st.get(Ue,p),j}if(j++,j===z)return j;if(pe&&++ge>10){if(Date.now()>he)return p(),j;ge=0}}}endDrawing(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const C of this._cachedBitmapsMap.values()){for(const y of C.values())"undefined"!=typeof HTMLCanvasElement&&y instanceof HTMLCanvasElement&&(y.width=y.height=0);C.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(C,y){const p=C.width,D=C.height;let he,ge,A=Math.max(Math.hypot(y[0],y[1]),1),N=Math.max(Math.hypot(y[2],y[3]),1),j=p,z=D,pe="prescale1";for(;A>2&&j>1||N>2&&z>1;){let ye=j,ke=z;A>2&&j>1&&(ye=Math.ceil(j/2),A/=j/ye),N>2&&z>1&&(ke=Math.ceil(z/2),N/=z/ke),he=this.cachedCanvases.getCanvas(pe,ye,ke,!1),ge=he.context,ge.clearRect(0,0,ye,ke),ge.drawImage(C,0,0,j,z,0,0,ye,ke),C=he.canvas,j=ye,z=ke,pe="prescale1"===pe?"prescale2":"prescale1"}return{img:C,paintWidth:j,paintHeight:z}}_createMaskCanvas(C){const y=this.ctx,{width:p,height:D}=C,A=this.current.fillColor,N=this.current.patternFill,j=y.mozCurrentTransform;let z,pe,he,ge;if((C.bitmap||C.data)&&C.count>1){const Xe=C.bitmap||C.data.buffer,Ye=j.slice(0,4);pe=JSON.stringify(N?Ye:[Ye,A]),z=this._cachedBitmapsMap.get(Xe),z||(z=new Map,this._cachedBitmapsMap.set(Xe,z));const Ke=z.get(pe);if(Ke&&!N)return{canvas:Ke,offsetX:Math.round(Math.min(j[0],j[2])+j[4]),offsetY:Math.round(Math.min(j[1],j[3])+j[5])};he=Ke}he||(ge=this.cachedCanvases.getCanvas("maskCanvas",p,D,!1),O(ge.context,C));let ye=I.Util.transform(j,[1/p,0,0,-1/D,0,0]);ye=I.Util.transform(ye,[1,0,0,1,0,-D]);const ke=I.Util.applyTransform([0,0],ye),Ae=I.Util.applyTransform([p,D],ye),Ue=I.Util.normalizeRect([ke[0],ke[1],Ae[0],Ae[1]]),st=Math.round(Ue[2]-Ue[0])||1,De=Math.round(Ue[3]-Ue[1])||1,je=this.cachedCanvases.getCanvas("fillCanvas",st,De,!0),ze=je.context,q=Math.min(ke[0],Ae[0]),le=Math.min(ke[1],Ae[1]);ze.translate(-q,-le),ze.transform.apply(ze,ye),he||(he=this._scaleImage(ge.canvas,ze.mozCurrentTransformInverse),he=he.img,z&&N&&z.set(pe,he)),ze.imageSmoothingEnabled=we(ze.mozCurrentTransform,C.interpolate),F(ze,he,0,0,he.width,he.height,0,0,p,D),ze.globalCompositeOperation="source-in";const Ee=I.Util.transform(ze.mozCurrentTransformInverse,[1,0,0,1,-q,-le]);return ze.fillStyle=N?A.getPattern(y,this,Ee,J.PathType.FILL):A,ze.fillRect(0,0,p,D),z&&!N&&(this.cachedCanvases.delete("fillCanvas"),z.set(pe,je.canvas)),{canvas:je.canvas,offsetX:Math.round(q),offsetY:Math.round(le)}}setLineWidth(C){C!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=C,this.ctx.lineWidth=C}setLineCap(C){this.ctx.lineCap=oe[C]}setLineJoin(C){this.ctx.lineJoin=Se[C]}setMiterLimit(C){this.ctx.miterLimit=C}setDash(C,y){const p=this.ctx;void 0!==p.setLineDash&&(p.setLineDash(C),p.lineDashOffset=y)}setRenderingIntent(C){}setFlatness(C){}setGState(C){for(let y=0,p=C.length;y<p;y++){const D=C[y],N=D[1];switch(D[0]){case"LW":this.setLineWidth(N);break;case"LC":this.setLineCap(N);break;case"LJ":this.setLineJoin(N);break;case"ML":this.setMiterLimit(N);break;case"D":this.setDash(N[0],N[1]);break;case"RI":this.setRenderingIntent(N);break;case"FL":this.setFlatness(N);break;case"Font":this.setFont(N[0],N[1]);break;case"CA":this.current.strokeAlpha=D[1];break;case"ca":this.current.fillAlpha=D[1],this.ctx.globalAlpha=D[1];break;case"BM":this.ctx.globalCompositeOperation=N;break;case"SMask":this.current.activeSMask=N?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=N}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const C=this.inSMaskMode;this.current.activeSMask&&!C?this.beginSMaskMode():!this.current.activeSMask&&C&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const D=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,this.ctx.canvas.width,this.ctx.canvas.height,!0);this.suspendedCtx=this.ctx,this.ctx=D.context;const A=this.ctx;A.setTransform.apply(A,this.suspendedCtx.mozCurrentTransform),H(this.suspendedCtx,A),function M(X,C){if(X._removeMirroring)throw new Error("Context is already forwarding operations.");X.__originalSave=X.save,X.__originalRestore=X.restore,X.__originalRotate=X.rotate,X.__originalScale=X.scale,X.__originalTranslate=X.translate,X.__originalTransform=X.transform,X.__originalSetTransform=X.setTransform,X.__originalResetTransform=X.resetTransform,X.__originalClip=X.clip,X.__originalMoveTo=X.moveTo,X.__originalLineTo=X.lineTo,X.__originalBezierCurveTo=X.bezierCurveTo,X.__originalRect=X.rect,X.__originalClosePath=X.closePath,X.__originalBeginPath=X.beginPath,X._removeMirroring=()=>{X.save=X.__originalSave,X.restore=X.__originalRestore,X.rotate=X.__originalRotate,X.scale=X.__originalScale,X.translate=X.__originalTranslate,X.transform=X.__originalTransform,X.setTransform=X.__originalSetTransform,X.resetTransform=X.__originalResetTransform,X.clip=X.__originalClip,X.moveTo=X.__originalMoveTo,X.lineTo=X.__originalLineTo,X.bezierCurveTo=X.__originalBezierCurveTo,X.rect=X.__originalRect,X.closePath=X.__originalClosePath,X.beginPath=X.__originalBeginPath,delete X._removeMirroring},X.save=function(){C.save(),this.__originalSave()},X.restore=function(){C.restore(),this.__originalRestore()},X.translate=function(p,D){C.translate(p,D),this.__originalTranslate(p,D)},X.scale=function(p,D){C.scale(p,D),this.__originalScale(p,D)},X.transform=function(p,D,A,N,j,z){C.transform(p,D,A,N,j,z),this.__originalTransform(p,D,A,N,j,z)},X.setTransform=function(p,D,A,N,j,z){C.setTransform(p,D,A,N,j,z),this.__originalSetTransform(p,D,A,N,j,z)},X.resetTransform=function(){C.resetTransform(),this.__originalResetTransform()},X.rotate=function(p){C.rotate(p),this.__originalRotate(p)},X.clip=function(p){C.clip(p),this.__originalClip(p)},X.moveTo=function(y,p){C.moveTo(y,p),this.__originalMoveTo(y,p)},X.lineTo=function(y,p){C.lineTo(y,p),this.__originalLineTo(y,p)},X.bezierCurveTo=function(y,p,D,A,N,j){C.bezierCurveTo(y,p,D,A,N,j),this.__originalBezierCurveTo(y,p,D,A,N,j)},X.rect=function(y,p,D,A){C.rect(y,p,D,A),this.__originalRect(y,p,D,A)},X.closePath=function(){C.closePath(),this.__originalClosePath()},X.beginPath=function(){C.beginPath(),this.__originalBeginPath()}}(A,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),H(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(C){this.current.activeSMask&&(C?(C[0]=Math.floor(C[0]),C[1]=Math.floor(C[1]),C[2]=Math.ceil(C[2]),C[3]=Math.ceil(C[3])):C=[0,0,this.ctx.canvas.width,this.ctx.canvas.height],function fe(X,C,y,p){const D=p[0],A=p[1],N=p[2]-D,j=p[3]-A;0===N||0===j||(function ue(X,C,y,p,D,A,N,j,z,pe,he){const ge=!!A,ye=ge?A[0]:0,ke=ge?A[1]:0,Ae=ge?A[2]:0;let Ue;Ue="Luminosity"===D?te:V;const De=Math.min(p,Math.ceil(1048576/y));for(let je=0;je<p;je+=De){const ze=Math.min(De,p-je),q=X.getImageData(j-pe,je+(z-he),y,ze),le=C.getImageData(j,je+z,y,ze);ge&&L(q.data,ye,ke,Ae),Ue(q.data,le.data,N),C.putImageData(le,j,je+z)}}(C.context,y,N,j,C.subtype,C.backdrop,C.transferMap,D,A,C.offsetX,C.offsetY),X.save(),X.globalAlpha=1,X.globalCompositeOperation="source-over",X.setTransform(1,0,0,1,0,0),X.drawImage(y.canvas,0,0),X.restore())}(this.suspendedCtx,this.current.activeSMask,this.ctx,C),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}save(){this.inSMaskMode?(H(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const C=this.current;this.stateStack.push(C),this.current=C.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),H(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(C,y,p,D,A,N){this.ctx.transform(C,y,p,D,A,N),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(C,y,p){const D=this.ctx,A=this.current;let z,pe,N=A.x,j=A.y;const he=D.mozCurrentTransform,ge=0===he[0]&&0===he[3]||0===he[1]&&0===he[2],ye=ge?p.slice(0):null;for(let ke=0,Ae=0,Ue=C.length;ke<Ue;ke++)switch(0|C[ke]){case I.OPS.rectangle:N=y[Ae++],j=y[Ae++];const st=y[Ae++],De=y[Ae++],je=N+st,ze=j+De;D.moveTo(N,j),0===st||0===De?D.lineTo(je,ze):(D.lineTo(je,j),D.lineTo(je,ze),D.lineTo(N,ze)),ge||A.updateRectMinMax(he,[N,j,je,ze]),D.closePath();break;case I.OPS.moveTo:N=y[Ae++],j=y[Ae++],D.moveTo(N,j),ge||A.updatePathMinMax(he,N,j);break;case I.OPS.lineTo:N=y[Ae++],j=y[Ae++],D.lineTo(N,j),ge||A.updatePathMinMax(he,N,j);break;case I.OPS.curveTo:z=N,pe=j,N=y[Ae+4],j=y[Ae+5],D.bezierCurveTo(y[Ae],y[Ae+1],y[Ae+2],y[Ae+3],N,j),A.updateCurvePathMinMax(he,z,pe,y[Ae],y[Ae+1],y[Ae+2],y[Ae+3],N,j,ye),Ae+=6;break;case I.OPS.curveTo2:z=N,pe=j,D.bezierCurveTo(N,j,y[Ae],y[Ae+1],y[Ae+2],y[Ae+3]),A.updateCurvePathMinMax(he,z,pe,N,j,y[Ae],y[Ae+1],y[Ae+2],y[Ae+3],ye),N=y[Ae+2],j=y[Ae+3],Ae+=4;break;case I.OPS.curveTo3:z=N,pe=j,N=y[Ae+2],j=y[Ae+3],D.bezierCurveTo(y[Ae],y[Ae+1],N,j,N,j),A.updateCurvePathMinMax(he,z,pe,y[Ae],y[Ae+1],N,j,N,j,ye),Ae+=4;break;case I.OPS.closePath:D.closePath()}ge&&A.updateScalingPathMinMax(he,ye),A.setCurrentPoint(N,j)}closePath(){this.ctx.closePath()}stroke(C){C=void 0===C||C;const y=this.ctx,p=this.current.strokeColor;y.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof p&&(null==p?void 0:p.getPattern)?(y.save(),y.strokeStyle=p.getPattern(y,this,y.mozCurrentTransformInverse,J.PathType.STROKE),this.rescaleAndStroke(!1),y.restore()):this.rescaleAndStroke(!0)),C&&this.consumePath(this.current.getClippedPathBoundingBox()),y.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(C){C=void 0===C||C;const y=this.ctx,p=this.current.fillColor;let A=!1;this.current.patternFill&&(y.save(),y.fillStyle=p.getPattern(y,this,y.mozCurrentTransformInverse,J.PathType.FILL),A=!0);const N=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==N&&(this.pendingEOFill?(y.fill("evenodd"),this.pendingEOFill=!1):y.fill()),A&&y.restore(),C&&this.consumePath(N)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=_e}eoClip(){this.pendingClip=Ce}beginText(){this.current.textMatrix=I.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const C=this.pendingTextPaths,y=this.ctx;if(void 0!==C){y.save(),y.beginPath();for(let p=0;p<C.length;p++){const D=C[p];y.setTransform.apply(y,D.transform),y.translate(D.x,D.y),D.addToPath(y,D.fontSize)}y.restore(),y.clip(),y.beginPath(),delete this.pendingTextPaths}else y.beginPath()}setCharSpacing(C){this.current.charSpacing=C}setWordSpacing(C){this.current.wordSpacing=C}setHScale(C){this.current.textHScale=C/100}setLeading(C){this.current.leading=-C}setFont(C,y){const p=this.commonObjs.get(C),D=this.current;if(!p)throw new Error(`Can't find font for ${C}`);if(D.fontMatrix=p.fontMatrix||I.FONT_IDENTITY_MATRIX,(0===D.fontMatrix[0]||0===D.fontMatrix[3])&&(0,I.warn)("Invalid font matrix for font "+C),y<0?(y=-y,D.fontDirection=-1):D.fontDirection=1,this.current.font=p,this.current.fontSize=y,p.isType3Font)return;let N="normal";p.black?N="900":p.bold&&(N="bold");const j=p.italic?"italic":"normal",z=`"${p.loadedName||"sans-serif"}", ${p.fallbackName}`;let pe=y;y<16?pe=16:y>100&&(pe=100),this.current.fontSizeScale=y/pe,this.ctx.font=`${j} ${N} ${pe}px ${z}`}setTextRenderingMode(C){this.current.textRenderingMode=C}setTextRise(C){this.current.textRise=C}moveText(C,y){this.current.x=this.current.lineX+=C,this.current.y=this.current.lineY+=y}setLeadingMoveText(C,y){this.setLeading(-y),this.moveText(C,y)}setTextMatrix(C,y,p,D,A,N){this.current.textMatrix=[C,y,p,D,A,N],this.current.textMatrixScale=Math.hypot(C,y),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(C,y,p,D){const A=this.ctx,N=this.current,j=N.font,z=N.textRenderingMode,pe=N.fontSize/N.fontSizeScale,he=z&I.TextRenderingMode.FILL_STROKE_MASK,ge=!!(z&I.TextRenderingMode.ADD_TO_PATH_FLAG),ye=N.patternFill&&!j.missingFile;let ke;(j.disableFontFace||ge||ye)&&(ke=j.getPathGenerator(this.commonObjs,C)),j.disableFontFace||ye?(A.save(),A.translate(y,p),A.beginPath(),ke(A,pe),D&&A.setTransform.apply(A,D),(he===I.TextRenderingMode.FILL||he===I.TextRenderingMode.FILL_STROKE)&&A.fill(),(he===I.TextRenderingMode.STROKE||he===I.TextRenderingMode.FILL_STROKE)&&A.stroke(),A.restore()):((he===I.TextRenderingMode.FILL||he===I.TextRenderingMode.FILL_STROKE)&&A.fillText(C,y,p),(he===I.TextRenderingMode.STROKE||he===I.TextRenderingMode.FILL_STROKE)&&A.strokeText(C,y,p)),ge&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:A.mozCurrentTransform,x:y,y:p,fontSize:pe,addToPath:ke})}get isFontSubpixelAAEnabled(){const{context:C}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10,!1);C.scale(1.5,1),C.fillText("I",0,10);const y=C.getImageData(0,0,10,10).data;let p=!1;for(let D=3;D<y.length;D+=4)if(y[D]>0&&y[D]<255){p=!0;break}return(0,I.shadow)(this,"isFontSubpixelAAEnabled",p)}showText(C){const y=this.current,p=y.font;if(p.isType3Font)return this.showType3Text(C);const D=y.fontSize;if(0===D)return;const A=this.ctx,N=y.fontSizeScale,j=y.charSpacing,z=y.wordSpacing,pe=y.fontDirection,he=y.textHScale*pe,ge=C.length,ye=p.vertical,ke=ye?1:-1,Ae=p.defaultVMetrics,Ue=D*y.fontMatrix[0],st=y.textRenderingMode===I.TextRenderingMode.FILL&&!p.disableFontFace&&!y.patternFill;let De;if(A.save(),A.transform.apply(A,y.textMatrix),A.translate(y.x,y.y+y.textRise),A.scale(he,pe>0?-1:1),y.patternFill){A.save();const Ee=y.fillColor.getPattern(A,this,A.mozCurrentTransformInverse,J.PathType.FILL);De=A.mozCurrentTransform,A.restore(),A.fillStyle=Ee}let je=y.lineWidth;const ze=y.textMatrixScale;if(0===ze||0===je){const Ee=y.textRenderingMode&I.TextRenderingMode.FILL_STROKE_MASK;(Ee===I.TextRenderingMode.STROKE||Ee===I.TextRenderingMode.FILL_STROKE)&&(je=this.getSinglePixelWidth())}else je/=ze;1!==N&&(A.scale(N,N),je/=N),A.lineWidth=je;let le,q=0;for(le=0;le<ge;++le){const Ee=C[le];if("number"==typeof Ee){q+=ke*Ee*D/1e3;continue}let Xe=!1;const Ye=(Ee.isSpace?z:0)+j,Ke=Ee.fontChar,ut=Ee.accent;let pt,Vt,Tn,ln=Ee.width;if(ye){const Ne=Ee.vmetric||Ae,ae=-(Ee.vmetric?Ne[1]:.5*ln)*Ue;ln=Ne?-Ne[0]:ln,pt=ae/N,Vt=(q+Ne[2]*Ue)/N}else pt=q/N,Vt=0;if(p.remeasure&&ln>0){const Ne=1e3*A.measureText(Ke).width/D*N;if(ln<Ne&&this.isFontSubpixelAAEnabled){const ae=ln/Ne;Xe=!0,A.save(),A.scale(ae,1),pt/=ae}else ln!==Ne&&(pt+=(ln-Ne)/2e3*D/N)}this.contentVisible&&(Ee.isInFont||p.missingFile)&&(st&&!ut?A.fillText(Ke,pt,Vt):(this.paintChar(Ke,pt,Vt,De),ut&&this.paintChar(ut.fontChar,pt+D*ut.offset.x/N,Vt-D*ut.offset.y/N,De))),Tn=ye?ln*Ue-Ye*pe:ln*Ue+Ye*pe,q+=Tn,Xe&&A.restore()}ye?y.y-=q:y.x+=q*he,A.restore(),this.compose()}showType3Text(C){const y=this.ctx,p=this.current,D=p.font,A=p.fontSize,N=p.fontDirection,j=D.vertical?1:-1,z=p.charSpacing,pe=p.wordSpacing,he=p.textHScale*N,ge=p.fontMatrix||I.FONT_IDENTITY_MATRIX,ye=C.length;let Ae,Ue,st,De;if(p.textRenderingMode!==I.TextRenderingMode.INVISIBLE&&0!==A){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,y.save(),y.transform.apply(y,p.textMatrix),y.translate(p.x,p.y),y.scale(he,N),Ae=0;Ae<ye;++Ae){if(Ue=C[Ae],"number"==typeof Ue){De=j*Ue*A/1e3,this.ctx.translate(De,0),p.x+=De*he;continue}const je=(Ue.isSpace?pe:0)+z,ze=D.charProcOperatorList[Ue.operatorListId];ze?(this.contentVisible&&(this.processingType3=Ue,this.save(),y.scale(A,A),y.transform.apply(y,ge),this.executeOperatorList(ze),this.restore()),st=I.Util.applyTransform([Ue.width,0],ge)[0]*A+je,y.translate(st,0),p.x+=st*he):(0,I.warn)(`Type3 character "${Ue.operatorListId}" is not available.`)}y.restore(),this.processingType3=null}}setCharWidth(C,y){}setCharWidthAndBounds(C,y,p,D,A,N){this.ctx.rect(p,D,A-p,N-D),this.ctx.clip(),this.endPath()}getColorN_Pattern(C){let y;if("TilingPattern"===C[0]){const p=C[1],D=this.baseTransform||this.ctx.mozCurrentTransform.slice();y=new J.TilingPattern(C,p,this.ctx,{createCanvasGraphics:N=>new Be(N,this.commonObjs,this.objs,this.canvasFactory)},D)}else y=this._getPattern(C[1],C[2]);return y}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(C,y,p){var A;const D=(null==(A=this.selectColor)?void 0:A.call(this,C,y,p))||I.Util.makeHexColor(C,y,p);this.ctx.strokeStyle=D,this.current.strokeColor=D}setFillRGBColor(C,y,p){var A;const D=(null==(A=this.selectColor)?void 0:A.call(this,C,y,p))||I.Util.makeHexColor(C,y,p);this.ctx.fillStyle=D,this.current.fillColor=D,this.current.patternFill=!1}_getPattern(C,y=null){let p;return this.cachedPatterns.has(C)?p=this.cachedPatterns.get(C):(p=(0,J.getShadingPattern)(this.objs.get(C)),this.cachedPatterns.set(C,p)),y&&(p.matrix=y),p}shadingFill(C){if(!this.contentVisible)return;const y=this.ctx;this.save();const p=this._getPattern(C);y.fillStyle=p.getPattern(y,this,y.mozCurrentTransformInverse,J.PathType.SHADING);const D=y.mozCurrentTransformInverse;if(D){const A=y.canvas,N=A.width,j=A.height,z=I.Util.applyTransform([0,0],D),pe=I.Util.applyTransform([0,j],D),he=I.Util.applyTransform([N,0],D),ge=I.Util.applyTransform([N,j],D),ye=Math.min(z[0],pe[0],he[0],ge[0]),ke=Math.min(z[1],pe[1],he[1],ge[1]),Ae=Math.max(z[0],pe[0],he[0],ge[0]),Ue=Math.max(z[1],pe[1],he[1],ge[1]);this.ctx.fillRect(ye,ke,Ae-ye,Ue-ke)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,I.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,I.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(C,y){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(C)&&6===C.length&&this.transform.apply(this,C),this.baseTransform=this.ctx.mozCurrentTransform,y)&&(this.ctx.rect(y[0],y[1],y[2]-y[0],y[3]-y[1]),this.current.updateRectMinMax(this.ctx.mozCurrentTransform,y),this.clip(),this.endPath())}paintFormXObjectEnd(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(C){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const y=this.ctx;C.isolated||(0,I.info)("TODO: Support non-isolated groups."),C.knockout&&(0,I.warn)("Knockout groups not supported.");const p=y.mozCurrentTransform;if(C.matrix&&y.transform.apply(y,C.matrix),!C.bbox)throw new Error("Bounding box is required.");let D=I.Util.getAxialAlignedBoundingBox(C.bbox,y.mozCurrentTransform);D=I.Util.intersect(D,[0,0,y.canvas.width,y.canvas.height])||[0,0,0,0];const N=Math.floor(D[0]),j=Math.floor(D[1]);let z=Math.max(Math.ceil(D[2])-N,1),pe=Math.max(Math.ceil(D[3])-j,1),he=1,ge=1;z>Q&&(he=z/Q,z=Q),pe>Q&&(ge=pe/Q,pe=Q),this.current.startNewPathAndClipBox([0,0,z,pe]);let ye="groupAt"+this.groupLevel;C.smask&&(ye+="_smask_"+this.smaskCounter++%2);const ke=this.cachedCanvases.getCanvas(ye,z,pe,!0),Ae=ke.context;Ae.scale(1/he,1/ge),Ae.translate(-N,-j),Ae.transform.apply(Ae,p),C.smask?this.smaskStack.push({canvas:ke.canvas,context:Ae,offsetX:N,offsetY:j,scaleX:he,scaleY:ge,subtype:C.smask.subtype,backdrop:C.smask.backdrop,transferMap:C.smask.transferMap||null,startTransformInverse:null}):(y.setTransform(1,0,0,1,0,0),y.translate(N,j),y.scale(he,ge),y.save()),H(y,Ae),this.ctx=Ae,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(y),this.groupLevel++}endGroup(C){if(!this.contentVisible)return;this.groupLevel--;const y=this.ctx,p=this.groupStack.pop();if(this.ctx=p,this.ctx.imageSmoothingEnabled=!1,C.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const D=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,D);const A=I.Util.getAxialAlignedBoundingBox([0,0,y.canvas.width,y.canvas.height],D);this.ctx.drawImage(y.canvas,0,0),this.ctx.restore(),this.compose(A)}}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(C,y,p,D,A){if(this.save(),Array.isArray(y)&&4===y.length){const N=y[2]-y[0],j=y[3]-y[1];if(A&&this.annotationCanvasMap){(p=p.slice())[4]-=y[0],p[5]-=y[1],(y=y.slice())[0]=y[1]=0,y[2]=N,y[3]=j;const[z,pe]=I.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:he}=this,ge=Math.ceil(N*this.outputScaleX*he),ye=Math.ceil(j*this.outputScaleY*he);this.annotationCanvas=this.canvasFactory.create(ge,ye);const{canvas:ke,context:Ae}=this.annotationCanvas,Ue=`var(--zoom-factor) * ${Me.PixelsPerInch.PDF_TO_CSS_UNITS}`;ke.style.width=`calc(${N}px * ${Ue})`,ke.style.height=`calc(${j}px * ${Ue})`,this.annotationCanvasMap.set(C,ke),this.annotationCanvas.savedCtx=this.ctx,this.ctx=Ae,this.ctx.setTransform(z,0,0,-pe,0,j*pe),G(this.ctx),Z(this.ctx,this.foregroundColor)}else Z(this.ctx,this.foregroundColor),this.ctx.rect(y[0],y[1],N,j),this.ctx.clip(),this.endPath()}this.current=new _(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,p),this.transform.apply(this,D)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}paintImageMaskXObject(C){if(!this.contentVisible)return;const y=C.count;(C=this.getObject(C.data,C)).count=y;const p=this.ctx,D=this.processingType3;if(D&&(void 0===D.compiled&&(D.compiled=function m(X){const{width:C,height:y}=X;if(C>1e3||y>1e3)return null;const D=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),A=C+1;let j,z,pe,N=new Uint8Array(A*(y+1));const he=C+7&-8;let ge=new Uint8Array(he*y),ye=0;for(const ze of X.data){let q=128;for(;q>0;)ge[ye++]=ze&q?0:255,q>>=1}let ke=0;for(ye=0,0!==ge[ye]&&(N[0]=1,++ke),z=1;z<C;z++)ge[ye]!==ge[ye+1]&&(N[z]=ge[ye]?2:1,++ke),ye++;for(0!==ge[ye]&&(N[z]=2,++ke),j=1;j<y;j++){ye=j*he,pe=j*A,ge[ye-he]!==ge[ye]&&(N[pe]=ge[ye]?1:8,++ke);let ze=(ge[ye]?4:0)+(ge[ye-he]?8:0);for(z=1;z<C;z++)ze=(ze>>2)+(ge[ye+1]?4:0)+(ge[ye-he+1]?8:0),D[ze]&&(N[pe+z]=D[ze],++ke),ye++;if(ge[ye-he]!==ge[ye]&&(N[pe+z]=ge[ye]?2:4,++ke),ke>1e3)return null}for(ye=he*(y-1),pe=j*A,0!==ge[ye]&&(N[pe]=8,++ke),z=1;z<C;z++)ge[ye]!==ge[ye+1]&&(N[pe+z]=ge[ye]?4:8,++ke),ye++;if(0!==ge[ye]&&(N[pe+z]=4,++ke),ke>1e3)return null;const Ae=new Int32Array([0,A,-1,0,-A,0,0,0,1]);let Ue,st,De;for(Te.isNodeJS?st=[]:Ue=new Path2D,j=0;ke&&j<=y;j++){let ze=j*A;const q=ze+C;for(;ze<q&&!N[ze];)ze++;if(ze===q)continue;Ue?Ue.moveTo(ze%A,j):De=[ze%A,j];const le=ze;let Ee=N[ze];do{const Xe=Ae[Ee];do{ze+=Xe}while(!N[ze]);const Ye=N[ze];5!==Ye&&10!==Ye?(Ee=Ye,N[ze]=0):(Ee=Ye&51*Ee>>4,N[ze]&=Ee>>2|Ee<<2),Ue?Ue.lineTo(ze%A,ze/A|0):De.push(ze%A,ze/A|0),N[ze]||--ke}while(le!==ze);Ue||st.push(De),--j}return ge=null,N=null,function(ze){if(ze.save(),ze.scale(1/C,-1/y),ze.translate(0,-y),Ue)ze.fill(Ue);else{ze.beginPath();for(const q of st){ze.moveTo(q[0],q[1]);for(let le=2,Ee=q.length;le<Ee;le+=2)ze.lineTo(q[le],q[le+1])}ze.fill()}ze.beginPath(),ze.restore()}}(C)),D.compiled))return void D.compiled(p);const A=this._createMaskCanvas(C),N=A.canvas;p.save(),p.setTransform(1,0,0,1,0,0),p.drawImage(N,A.offsetX,A.offsetY),p.restore(),this.compose()}paintImageMaskXObjectRepeat(C,y,p=0,D=0,A,N){if(!this.contentVisible)return;C=this.getObject(C.data,C);const j=this.ctx;j.save();const z=j.mozCurrentTransform;j.transform(y,p,D,A,0,0);const pe=this._createMaskCanvas(C);j.setTransform(1,0,0,1,0,0);for(let he=0,ge=N.length;he<ge;he+=2){const ye=I.Util.transform(z,[y,p,D,A,N[he],N[he+1]]),[ke,Ae]=I.Util.applyTransform([0,0],ye);j.drawImage(pe.canvas,ke,Ae)}j.restore(),this.compose()}paintImageMaskXObjectGroup(C){if(!this.contentVisible)return;const y=this.ctx,p=this.current.fillColor,D=this.current.patternFill;for(let A=0,N=C.length;A<N;A++){const j=C[A],z=j.width,pe=j.height,he=this.cachedCanvases.getCanvas("maskCanvas",z,pe,!1),ge=he.context;ge.save(),O(ge,j),ge.globalCompositeOperation="source-in",ge.fillStyle=D?p.getPattern(ge,this,y.mozCurrentTransformInverse,J.PathType.FILL):p,ge.fillRect(0,0,z,pe),ge.restore(),y.save(),y.transform.apply(y,j.transform),y.scale(1,-1),F(y,he.canvas,0,0,z,pe,0,-1,1,1),y.restore()}this.compose()}paintImageXObject(C){if(!this.contentVisible)return;const y=this.getObject(C);y?this.paintInlineImageXObject(y):(0,I.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(C,y,p,D){if(!this.contentVisible)return;const A=this.getObject(C);if(!A)return void(0,I.warn)("Dependent image isn't ready yet");const N=A.width,j=A.height,z=[];for(let pe=0,he=D.length;pe<he;pe+=2)z.push({transform:[y,0,0,p,D[pe],D[pe+1]],x:0,y:0,w:N,h:j});this.paintInlineImageXObjectGroup(A,z)}paintInlineImageXObject(C){if(!this.contentVisible)return;const y=C.width,p=C.height,D=this.ctx;let A;if(this.save(),D.scale(1/y,-1/p),"function"==typeof HTMLElement&&C instanceof HTMLElement||!C.data)A=C;else{const pe=this.cachedCanvases.getCanvas("inlineImage",y,p,!1);k(pe.context,C,this.current.transferMaps),A=pe.canvas}const N=this._scaleImage(A,D.mozCurrentTransformInverse);D.imageSmoothingEnabled=we(D.mozCurrentTransform,C.interpolate);const[j,z]=F(D,N.img,0,0,N.paintWidth,N.paintHeight,0,-p,y,p);if(this.imageLayer){const pe=this.getCanvasPosition(0,-p);this.imageLayer.appendImage({imgData:C,left:pe[0],top:pe[1],width:j,height:z})}this.compose(),this.restore()}paintInlineImageXObjectGroup(C,y){if(!this.contentVisible)return;const p=this.ctx,D=C.width,A=C.height,N=this.cachedCanvases.getCanvas("inlineImage",D,A,!1);k(N.context,C,this.current.transferMaps);for(let z=0,pe=y.length;z<pe;z++){const he=y[z];if(p.save(),p.transform.apply(p,he.transform),p.scale(1,-1),F(p,N.canvas,he.x,he.y,he.w,he.h,0,-1,1,1),this.imageLayer){const ge=this.getCanvasPosition(he.x,he.y);this.imageLayer.appendImage({imgData:C,left:ge[0],top:ge[1],width:D,height:A})}p.restore()}this.compose()}paintSolidColorImageMask(){!this.contentVisible||(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(C){}markPointProps(C,y){}beginMarkedContent(C){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(C,y){this.markedContentStack.push("OC"===C?{visible:this.optionalContentConfig.isVisible(y)}:{visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(C){const y=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(C);const p=this.ctx;this.pendingClip&&(y||(this.pendingClip===Ce?p.clip("evenodd"):p.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),p.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const C=this.ctx.mozCurrentTransform;if(0===C[1]&&0===C[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(C[0]),Math.abs(C[3]));else{const y=Math.abs(C[0]*C[3]-C[2]*C[1]),p=Math.hypot(C[0],C[2]),D=Math.hypot(C[1],C[3]);this._cachedGetSinglePixelWidth=Math.max(p,D)/y}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:C}=this.current,y=this.ctx.mozCurrentTransform;let p,D;if(0===y[1]&&0===y[2]){const A=Math.abs(y[0]),N=Math.abs(y[3]);if(0===C)p=1/A,D=1/N;else{const j=A*C,z=N*C;p=j<1?1/j:1,D=z<1?1/z:1}}else{const A=Math.abs(y[0]*y[3]-y[2]*y[1]),N=Math.hypot(y[0],y[1]),j=Math.hypot(y[2],y[3]);if(0===C)p=j/A,D=N/A;else{const z=C*A;p=j>z?j/z:1,D=N>z?N/z:1}}this._cachedScaleForStroking=[p,D]}return this._cachedScaleForStroking}rescaleAndStroke(C){const{ctx:y}=this,{lineWidth:p}=this.current,[D,A]=this.getScaleForStroking();if(y.lineWidth=p||1,1===D&&1===A)return void y.stroke();let N,j,z;C&&(N=y.mozCurrentTransform.slice(),j=y.getLineDash().slice(),z=y.lineDashOffset),y.scale(D,A);const pe=Math.max(D,A);y.setLineDash(y.getLineDash().map(he=>he/pe)),y.lineDashOffset/=pe,y.stroke(),C&&(y.setTransform(...N),y.setLineDash(j),y.lineDashOffset=z)}getCanvasPosition(C,y){const p=this.ctx.mozCurrentTransform;return[p[0]*C+p[2]*y+p[4],p[1]*C+p[3]*y+p[5]]}isContentVisible(){for(let C=this.markedContentStack.length-1;C>=0;C--)if(!this.markedContentStack[C].visible)return!1;return!0}}re.CanvasGraphics=Be;for(const X in I.OPS)void 0!==Be.prototype[X]&&(Be.prototype[I.OPS[X]]=Be.prototype[X])},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.TilingPattern=re.PathType=void 0,re.getShadingPattern=function U(g){switch(g[0]){case"RadialAxial":return new ce(g);case"Mesh":return new T(g);case"Dummy":return new $}throw new Error(`Unknown IR type: ${g[0]}`)};var I=He(1),J=He(3);const Ve={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function Te(g,M){if(!M||J.isNodeJS)return;const G=M[2]-M[0],P=M[3]-M[1],F=new Path2D;F.rect(M[0],M[1],G,P),g.clip(F)}re.PathType=Ve;class Me{constructor(){this.constructor===Me&&(0,I.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,I.unreachable)("Abstract method `getPattern` called.")}}class ce extends Me{constructor(M){super(),this._type=M[1],this._bbox=M[2],this._colorStops=M[3],this._p0=M[4],this._p1=M[5],this._r0=M[6],this._r1=M[7],this.matrix=null}_createGradient(M){let G;"axial"===this._type?G=M.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(G=M.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const P of this._colorStops)G.addColorStop(P[0],P[1]);return G}getPattern(M,G,P,F){let m;if(F===Ve.STROKE||F===Ve.FILL){const _=G.current.getClippedPathBoundingBox(F,M.mozCurrentTransform)||[0,0,0,0],k=Math.ceil(_[2]-_[0])||1,O=Math.ceil(_[3]-_[1])||1,H=G.cachedCanvases.getCanvas("pattern",k,O,!0),Z=H.context;Z.clearRect(0,0,Z.canvas.width,Z.canvas.height),Z.beginPath(),Z.rect(0,0,Z.canvas.width,Z.canvas.height),Z.translate(-_[0],-_[1]),P=I.Util.transform(P,[1,0,0,1,_[0],_[1]]),Z.transform.apply(Z,G.baseTransform),this.matrix&&Z.transform.apply(Z,this.matrix),Te(Z,this._bbox),Z.fillStyle=this._createGradient(Z),Z.fill(),m=M.createPattern(H.canvas,"no-repeat");const L=new DOMMatrix(P);try{m.setTransform(L)}catch(V){(0,I.warn)(`RadialAxialShadingPattern.getPattern: "${null==V?void 0:V.message}".`)}}else Te(M,this._bbox),m=this._createGradient(M);return m}}function E(g,M,G,P,F,m,_,k){const O=M.coords,H=M.colors,Z=g.data,L=4*g.width;let V;O[G+1]>O[P+1]&&(V=G,G=P,P=V,V=m,m=_,_=V),O[P+1]>O[F+1]&&(V=P,P=F,F=V,V=_,_=k,k=V),O[G+1]>O[P+1]&&(V=G,G=P,P=V,V=m,m=_,_=V);const te=(O[G]+M.offsetX)*M.scaleX,ue=(O[G+1]+M.offsetY)*M.scaleY,fe=(O[P]+M.offsetX)*M.scaleX,we=(O[P+1]+M.offsetY)*M.scaleY,oe=(O[F]+M.offsetX)*M.scaleX,Se=(O[F+1]+M.offsetY)*M.scaleY;if(ue>=Se)return;const _e=H[m],Ce=H[m+1],Be=H[m+2],X=H[_],C=H[_+1],y=H[_+2],p=H[k],D=H[k+1],A=H[k+2],N=Math.round(ue),j=Math.round(Se);let z,pe,he,ge,ye,ke,Ae,Ue;for(let st=N;st<=j;st++){if(st<we){let le;le=st<ue?0:(ue-st)/(ue-we),z=te-(te-fe)*le,pe=_e-(_e-X)*le,he=Ce-(Ce-C)*le,ge=Be-(Be-y)*le}else{let le;le=st>Se?1:we===Se?0:(we-st)/(we-Se),z=fe-(fe-oe)*le,pe=X-(X-p)*le,he=C-(C-D)*le,ge=y-(y-A)*le}let De;De=st<ue?0:st>Se?1:(ue-st)/(ue-Se),ye=te-(te-oe)*De,ke=_e-(_e-p)*De,Ae=Ce-(Ce-D)*De,Ue=Be-(Be-A)*De;const je=Math.round(Math.min(z,ye)),ze=Math.round(Math.max(z,ye));let q=L*st+4*je;for(let le=je;le<=ze;le++)De=(z-le)/(z-ye),De<0?De=0:De>1&&(De=1),Z[q++]=pe-(pe-ke)*De|0,Z[q++]=he-(he-Ae)*De|0,Z[q++]=ge-(ge-Ue)*De|0,Z[q++]=255}}function Q(g,M,G){const P=M.coords,F=M.colors;let m,_;switch(M.type){case"lattice":const k=M.verticesPerRow,O=Math.floor(P.length/k)-1,H=k-1;for(m=0;m<O;m++){let Z=m*k;for(let L=0;L<H;L++,Z++)E(g,G,P[Z],P[Z+1],P[Z+k],F[Z],F[Z+1],F[Z+k]),E(g,G,P[Z+k+1],P[Z+1],P[Z+k],F[Z+k+1],F[Z+1],F[Z+k])}break;case"triangles":for(m=0,_=P.length;m<_;m+=3)E(g,G,P[m],P[m+1],P[m+2],F[m],F[m+1],F[m+2]);break;default:throw new Error("illegal figure")}}class T extends Me{constructor(M){super(),this._coords=M[2],this._colors=M[3],this._figures=M[4],this._bounds=M[5],this._bbox=M[7],this._background=M[8],this.matrix=null}_createMeshCanvas(M,G,P){const k=Math.floor(this._bounds[0]),O=Math.floor(this._bounds[1]),H=Math.ceil(this._bounds[2])-k,Z=Math.ceil(this._bounds[3])-O,L=Math.min(Math.ceil(Math.abs(H*M[0]*1.1)),3e3),V=Math.min(Math.ceil(Math.abs(Z*M[1]*1.1)),3e3),te=H/L,ue=Z/V,fe={coords:this._coords,colors:this._colors,offsetX:-k,offsetY:-O,scaleX:1/te,scaleY:1/ue},Se=P.getCanvas("mesh",L+4,V+4,!1),_e=Se.context,Ce=_e.createImageData(L,V);if(G){const X=Ce.data;for(let C=0,y=X.length;C<y;C+=4)X[C]=G[0],X[C+1]=G[1],X[C+2]=G[2],X[C+3]=255}for(const X of this._figures)Q(Ce,X,fe);return _e.putImageData(Ce,2,2),{canvas:Se.canvas,offsetX:k-2*te,offsetY:O-2*ue,scaleX:te,scaleY:ue}}getPattern(M,G,P,F){let m;if(Te(M,this._bbox),F===Ve.SHADING)m=I.Util.singularValueDecompose2dScale(M.mozCurrentTransform);else if(m=I.Util.singularValueDecompose2dScale(G.baseTransform),this.matrix){const k=I.Util.singularValueDecompose2dScale(this.matrix);m=[m[0]*k[0],m[1]*k[1]]}const _=this._createMeshCanvas(m,F===Ve.SHADING?null:this._background,G.cachedCanvases);return F!==Ve.SHADING&&(M.setTransform.apply(M,G.baseTransform),this.matrix&&M.transform.apply(M,this.matrix)),M.translate(_.offsetX,_.offsetY),M.scale(_.scaleX,_.scaleY),M.createPattern(_.canvas,"no-repeat")}}class $ extends Me{getPattern(){return"hotpink"}}class b{static get MAX_PATTERN_SIZE(){return(0,I.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(M,G,P,F,m){this.operatorList=M[2],this.matrix=M[3]||[1,0,0,1,0,0],this.bbox=M[4],this.xstep=M[5],this.ystep=M[6],this.paintType=M[7],this.tilingType=M[8],this.color=G,this.ctx=P,this.canvasGraphicsFactory=F,this.baseTransform=m}createPatternCanvas(M){const G=this.operatorList,P=this.bbox,F=this.xstep,m=this.ystep,_=this.paintType,O=this.color,H=this.canvasGraphicsFactory;(0,I.info)("TilingType: "+this.tilingType);const Z=P[0],L=P[1],V=P[2],te=P[3],ue=I.Util.singularValueDecompose2dScale(this.matrix),fe=I.Util.singularValueDecompose2dScale(this.baseTransform),we=[ue[0]*fe[0],ue[1]*fe[1]],oe=this.getSizeAndScale(F,this.ctx.canvas.width,we[0]),Se=this.getSizeAndScale(m,this.ctx.canvas.height,we[1]),_e=M.cachedCanvases.getCanvas("pattern",oe.size,Se.size,!0),Ce=_e.context,Be=H.createCanvasGraphics(Ce);Be.groupLevel=M.groupLevel,this.setFillAndStrokeStyleToContext(Be,_,O);let X=Z,C=L,y=V,p=te;return Z<0&&(X=0,y+=Math.abs(Z)),L<0&&(C=0,p+=Math.abs(L)),Ce.translate(-oe.scale*X,-Se.scale*C),Be.transform(oe.scale,0,0,Se.scale,0,0),Ce.save(),this.clipBbox(Be,X,C,y,p),Be.baseTransform=Be.ctx.mozCurrentTransform.slice(),Be.executeOperatorList(G),Be.endDrawing(),{canvas:_e.canvas,scaleX:oe.scale,scaleY:Se.scale,offsetX:X,offsetY:C}}getSizeAndScale(M,G,P){M=Math.abs(M);const F=Math.max(b.MAX_PATTERN_SIZE,G);let m=Math.ceil(M*P);return m>=F?m=F:P=m/M,{scale:P,size:m}}clipBbox(M,G,P,F,m){M.ctx.rect(G,P,F-G,m-P),M.current.updateRectMinMax(M.ctx.mozCurrentTransform,[G,P,F,m]),M.clip(),M.endPath()}setFillAndStrokeStyleToContext(M,G,P){const F=M.ctx,m=M.current;switch(G){case 1:const _=this.ctx;F.fillStyle=_.fillStyle,F.strokeStyle=_.strokeStyle,m.fillColor=_.fillStyle,m.strokeColor=_.strokeStyle;break;case 2:const k=I.Util.makeHexColor(P[0],P[1],P[2]);F.fillStyle=k,F.strokeStyle=k,m.fillColor=k,m.strokeColor=k;break;default:throw new I.FormatError(`Unsupported paint type: ${G}`)}}getPattern(M,G,P,F){let m=P;F!==Ve.SHADING&&(m=I.Util.transform(m,G.baseTransform),this.matrix&&(m=I.Util.transform(m,this.matrix)));const _=this.createPatternCanvas(G);let k=new DOMMatrix(m);k=k.translate(_.offsetX,_.offsetY),k=k.scale(1/_.scaleX,1/_.scaleY);const O=M.createPattern(_.canvas,"repeat");try{O.setTransform(k)}catch(H){(0,I.warn)(`TilingPattern.getPattern: "${null==H?void 0:H.message}".`)}return O}}re.TilingPattern=b},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.applyMaskImageData=function J({src:Ve,srcPos:Te=0,dest:Me,destPos:ce=0,width:E,height:Q,inverseDecode:T=!1}){const $=I.FeatureTest.isLittleEndian?4278190080:255,[U,S]=T?[0,$]:[$,0],b=E>>3,g=7&E,M=Ve.length;Me=new Uint32Array(Me.buffer);for(let G=0;G<Q;G++){for(const F=Te+b;Te<F;Te++){const m=Te<M?Ve[Te]:255;Me[ce++]=128&m?S:U,Me[ce++]=64&m?S:U,Me[ce++]=32&m?S:U,Me[ce++]=16&m?S:U,Me[ce++]=8&m?S:U,Me[ce++]=4&m?S:U,Me[ce++]=2&m?S:U,Me[ce++]=1&m?S:U}if(0===g)continue;const P=Te<M?Ve[Te++]:255;for(let F=0;F<g;F++)Me[ce++]=P&1<<7-F?S:U}return{srcPos:Te,destPos:ce}};var I=He(1)},(Ze,re)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.GlobalWorkerOptions=void 0;const He=Object.create(null);re.GlobalWorkerOptions=He,He.workerPort=void 0===He.workerPort?null:He.workerPort,He.workerSrc=void 0===He.workerSrc?"":He.workerSrc},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.MessageHandler=void 0;var I=He(1);function Te(ce){switch(ce instanceof Error||"object"==typeof ce&&null!==ce||(0,I.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),ce.name){case"AbortException":return new I.AbortException(ce.message);case"MissingPDFException":return new I.MissingPDFException(ce.message);case"PasswordException":return new I.PasswordException(ce.message,ce.code);case"UnexpectedResponseException":return new I.UnexpectedResponseException(ce.message,ce.status);case"UnknownErrorException":return new I.UnknownErrorException(ce.message,ce.details);default:return new I.UnknownErrorException(ce.message,ce.toString())}}re.MessageHandler=class Me{constructor(E,Q,T){this.sourceName=E,this.targetName=Q,this.comObj=T,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=$=>{const U=$.data;if(U.targetName!==this.sourceName)return;if(U.stream)return void this._processStreamMessage(U);if(U.callback){const b=U.callbackId,g=this.callbackCapabilities[b];if(!g)throw new Error(`Cannot resolve callback ${b}`);if(delete this.callbackCapabilities[b],1===U.callback)g.resolve(U.data);else{if(2!==U.callback)throw new Error("Unexpected callback case");g.reject(Te(U.reason))}return}const S=this.actionHandler[U.action];if(!S)throw new Error(`Unknown action from worker: ${U.action}`);if(U.callbackId){const b=this.sourceName,g=U.sourceName;new Promise(function(M){M(S(U.data))}).then(function(M){T.postMessage({sourceName:b,targetName:g,callback:1,callbackId:U.callbackId,data:M})},function(M){T.postMessage({sourceName:b,targetName:g,callback:2,callbackId:U.callbackId,reason:Te(M)})})}else U.streamId?this._createStreamSink(U):S(U.data)},T.addEventListener("message",this._onComObjOnMessage)}on(E,Q){const T=this.actionHandler;if(T[E])throw new Error(`There is already an actionName called "${E}"`);T[E]=Q}send(E,Q,T){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:E,data:Q},T)}sendWithPromise(E,Q,T){const $=this.callbackId++,U=(0,I.createPromiseCapability)();this.callbackCapabilities[$]=U;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:E,callbackId:$,data:Q},T)}catch(S){U.reject(S)}return U.promise}sendWithStream(E,Q,T,$){const U=this.streamId++,S=this.sourceName,b=this.targetName,g=this.comObj;return new ReadableStream({start:M=>{const G=(0,I.createPromiseCapability)();return this.streamControllers[U]={controller:M,startCall:G,pullCall:null,cancelCall:null,isClosed:!1},g.postMessage({sourceName:S,targetName:b,action:E,streamId:U,data:Q,desiredSize:M.desiredSize},$),G.promise},pull:M=>{const G=(0,I.createPromiseCapability)();return this.streamControllers[U].pullCall=G,g.postMessage({sourceName:S,targetName:b,stream:6,streamId:U,desiredSize:M.desiredSize}),G.promise},cancel:M=>{(0,I.assert)(M instanceof Error,"cancel must have a valid reason");const G=(0,I.createPromiseCapability)();return this.streamControllers[U].cancelCall=G,this.streamControllers[U].isClosed=!0,g.postMessage({sourceName:S,targetName:b,stream:1,streamId:U,reason:Te(M)}),G.promise}},T)}_createStreamSink(E){const Q=E.streamId,T=this.sourceName,$=E.sourceName,U=this.comObj,S=this,b=this.actionHandler[E.action],g={enqueue(M,G=1,P){if(this.isCancelled)return;const F=this.desiredSize;this.desiredSize-=G,F>0&&this.desiredSize<=0&&(this.sinkCapability=(0,I.createPromiseCapability)(),this.ready=this.sinkCapability.promise),U.postMessage({sourceName:T,targetName:$,stream:4,streamId:Q,chunk:M},P)},close(){this.isCancelled||(this.isCancelled=!0,U.postMessage({sourceName:T,targetName:$,stream:3,streamId:Q}),delete S.streamSinks[Q])},error(M){(0,I.assert)(M instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,U.postMessage({sourceName:T,targetName:$,stream:5,streamId:Q,reason:Te(M)}))},sinkCapability:(0,I.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:E.desiredSize,ready:null};g.sinkCapability.resolve(),g.ready=g.sinkCapability.promise,this.streamSinks[Q]=g,new Promise(function(M){M(b(E.data,g))}).then(function(){U.postMessage({sourceName:T,targetName:$,stream:8,streamId:Q,success:!0})},function(M){U.postMessage({sourceName:T,targetName:$,stream:8,streamId:Q,reason:Te(M)})})}_processStreamMessage(E){const Q=E.streamId,T=this.sourceName,$=E.sourceName,U=this.comObj,S=this.streamControllers[Q],b=this.streamSinks[Q];switch(E.stream){case 8:E.success?S.startCall.resolve():S.startCall.reject(Te(E.reason));break;case 7:E.success?S.pullCall.resolve():S.pullCall.reject(Te(E.reason));break;case 6:if(!b){U.postMessage({sourceName:T,targetName:$,stream:7,streamId:Q,success:!0});break}b.desiredSize<=0&&E.desiredSize>0&&b.sinkCapability.resolve(),b.desiredSize=E.desiredSize,new Promise(function(g){g(b.onPull&&b.onPull())}).then(function(){U.postMessage({sourceName:T,targetName:$,stream:7,streamId:Q,success:!0})},function(g){U.postMessage({sourceName:T,targetName:$,stream:7,streamId:Q,reason:Te(g)})});break;case 4:if((0,I.assert)(S,"enqueue should have stream controller"),S.isClosed)break;S.controller.enqueue(E.chunk);break;case 3:if((0,I.assert)(S,"close should have stream controller"),S.isClosed)break;S.isClosed=!0,S.controller.close(),this._deleteStreamController(S,Q);break;case 5:(0,I.assert)(S,"error should have stream controller"),S.controller.error(Te(E.reason)),this._deleteStreamController(S,Q);break;case 2:E.success?S.cancelCall.resolve():S.cancelCall.reject(Te(E.reason)),this._deleteStreamController(S,Q);break;case 1:if(!b)break;new Promise(function(g){g(b.onCancel&&b.onCancel(Te(E.reason)))}).then(function(){U.postMessage({sourceName:T,targetName:$,stream:2,streamId:Q,success:!0})},function(g){U.postMessage({sourceName:T,targetName:$,stream:2,streamId:Q,reason:Te(g)})}),b.sinkCapability.reject(Te(E.reason)),b.isCancelled=!0,delete this.streamSinks[Q];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(E,Q){var T=this;return _asyncToGenerator(function*(){yield Promise.allSettled([E.startCall&&E.startCall.promise,E.pullCall&&E.pullCall.promise,E.cancelCall&&E.cancelCall.promise]),delete T.streamControllers[Q]})()}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(Ze,re,He)=>{var Ve,Te;Object.defineProperty(re,"__esModule",{value:!0}),re.Metadata=void 0;var I=He(1);Ve=new WeakMap,Te=new WeakMap,re.Metadata=class J{constructor({parsedData:ce,rawData:E}){Gt(this,Ve,void 0),Gt(this,Te,void 0),Fi(this,Ve,ce),Fi(this,Te,E)}getRaw(){return Rt(this,Te)}get(ce){var E;return null!=(E=Rt(this,Ve).get(ce))?E:null}getAll(){return(0,I.objectFromMap)(Rt(this,Ve))}has(ce){return Rt(this,Ve).has(ce)}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.OptionalContentConfig=void 0;var I=He(1);class J{constructor(Me,ce){this.visible=!0,this.name=Me,this.intent=ce}}re.OptionalContentConfig=class Ve{constructor(Me){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==Me){this.name=Me.name,this.creator=Me.creator,this._order=Me.order;for(const ce of Me.groups)this._groups.set(ce.id,new J(ce.name,ce.intent));if("OFF"===Me.baseState)for(const ce of this._groups)ce.visible=!1;for(const ce of Me.on)this._groups.get(ce).visible=!0;for(const ce of Me.off)this._groups.get(ce).visible=!1}}_evaluateVisibilityExpression(Me){const ce=Me.length;if(ce<2)return!0;const E=Me[0];for(let Q=1;Q<ce;Q++){const T=Me[Q];let $;if(Array.isArray(T))$=this._evaluateVisibilityExpression(T);else{if(!this._groups.has(T))return(0,I.warn)(`Optional content group not found: ${T}`),!0;$=this._groups.get(T).visible}switch(E){case"And":if(!$)return!1;break;case"Or":if($)return!0;break;case"Not":return!$;default:return!0}}return"And"===E}isVisible(Me){if(0===this._groups.size)return!0;if(!Me)return(0,I.warn)("Optional content group not defined."),!0;if("OCG"===Me.type)return this._groups.has(Me.id)?this._groups.get(Me.id).visible:((0,I.warn)(`Optional content group not found: ${Me.id}`),!0);if("OCMD"===Me.type){if(Me.expression)return this._evaluateVisibilityExpression(Me.expression);if(!Me.policy||"AnyOn"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(this._groups.get(ce).visible)return!0}return!1}if("AllOn"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(!this._groups.get(ce).visible)return!1}return!0}if("AnyOff"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(!this._groups.get(ce).visible)return!0}return!1}if("AllOff"===Me.policy){for(const ce of Me.ids){if(!this._groups.has(ce))return(0,I.warn)(`Optional content group not found: ${ce}`),!0;if(this._groups.get(ce).visible)return!1}return!0}return(0,I.warn)(`Unknown optional content policy ${Me.policy}.`),!0}return(0,I.warn)(`Unknown group type ${Me.type}.`),!0}setVisibility(Me,ce=!0){this._groups.has(Me)?this._groups.get(Me).visible=!!ce:(0,I.warn)(`Optional content group not found: ${Me}`)}getOrder(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){return this._groups.size>0?(0,I.objectFromMap)(this._groups):null}getGroup(Me){return this._groups.get(Me)||null}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFDataTransportStream=void 0;var I=He(1),J=He(5);re.PDFDataTransportStream=class Ve{constructor(E,Q){(0,I.assert)(Q,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=E.progressiveDone||!1,this._contentDispositionFilename=E.contentDispositionFilename||null;const T=E.initialData;if((null==T?void 0:T.length)>0){const $=new Uint8Array(T).buffer;this._queuedChunks.push($)}this._pdfDataRangeTransport=Q,this._isStreamingSupported=!E.disableStream,this._isRangeSupported=!E.disableRange,this._contentLength=E.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(($,U)=>{this._onReceiveData({begin:$,chunk:U})}),this._pdfDataRangeTransport.addProgressListener(($,U)=>{this._onProgress({loaded:$,total:U})}),this._pdfDataRangeTransport.addProgressiveReadListener($=>{this._onReceiveData({chunk:$})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(E){const Q=new Uint8Array(E.chunk).buffer;if(void 0===E.begin)this._fullRequestReader?this._fullRequestReader._enqueue(Q):this._queuedChunks.push(Q);else{const T=this._rangeReaders.some(function($){return $._begin===E.begin&&($._enqueue(Q),!0)});(0,I.assert)(T,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var E,Q;return null!=(Q=null==(E=this._fullRequestReader)?void 0:E._loaded)?Q:0}_onProgress(E){if(void 0===E.total){const Q=this._rangeReaders[0];null!=Q&&Q.onProgress&&Q.onProgress({loaded:E.loaded})}else{const Q=this._fullRequestReader;null!=Q&&Q.onProgress&&Q.onProgress({loaded:E.loaded,total:E.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(E){const Q=this._rangeReaders.indexOf(E);Q>=0&&this._rangeReaders.splice(Q,1)}getFullReader(){(0,I.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const E=this._queuedChunks;return this._queuedChunks=null,new Te(this,E,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(E,Q){if(Q<=this._progressiveDataLength)return null;const T=new Me(this,E,Q);return this._pdfDataRangeTransport.requestDataRange(E,Q),this._rangeReaders.push(T),T}cancelAllRequests(E){this._fullRequestReader&&this._fullRequestReader.cancel(E);for(const Q of this._rangeReaders.slice(0))Q.cancel(E);this._pdfDataRangeTransport.abort()}};class Te{constructor(E,Q,T=!1,$=null){this._stream=E,this._done=T||!1,this._filename=(0,J.isPdfFile)($)?$:null,this._queuedChunks=Q||[],this._loaded=0;for(const U of this._queuedChunks)this._loaded+=U.byteLength;this._requests=[],this._headersReady=Promise.resolve(),E._fullRequestReader=this,this.onProgress=null}_enqueue(E){this._done||(this._requests.length>0?this._requests.shift().resolve({value:E,done:!1}):this._queuedChunks.push(E),this._loaded+=E.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var E=this;return _asyncToGenerator(function*(){if(E._queuedChunks.length>0)return{value:E._queuedChunks.shift(),done:!1};if(E._done)return{value:void 0,done:!0};const Q=(0,I.createPromiseCapability)();return E._requests.push(Q),Q.promise})()}cancel(E){this._done=!0;for(const Q of this._requests)Q.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Me{constructor(E,Q,T){this._stream=E,this._begin=Q,this._end=T,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(E){if(!this._done){if(0===this._requests.length)this._queuedChunk=E;else{this._requests.shift().resolve({value:E,done:!1});for(const T of this._requests)T.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var E=this;return _asyncToGenerator(function*(){if(E._queuedChunk){const T=E._queuedChunk;return E._queuedChunk=null,{value:T,done:!1}}if(E._done)return{value:void 0,done:!0};const Q=(0,I.createPromiseCapability)();return E._requests.push(Q),Q.promise})()}cancel(E){this._done=!0;for(const Q of this._requests)Q.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(Ze,re)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.XfaText=void 0;class He{static textContent(J){const Ve=[],Te={items:Ve,styles:Object.create(null)};return function Me(ce){var T;if(!ce)return;let E=null;const Q=ce.name;if("#text"===Q)E=ce.value;else{if(!He.shouldBuildText(Q))return;null!=(T=null==ce?void 0:ce.attributes)&&T.textContent?E=ce.attributes.textContent:ce.value&&(E=ce.value)}if(null!==E&&Ve.push({str:E}),ce.children)for(const $ of ce.children)Me($)}(J),Te}static shouldBuildText(J){return!("textarea"===J||"input"===J||"option"===J||"select"===J)}}re.XfaText=He},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.NodeStandardFontDataFactory=re.NodeCanvasFactory=re.NodeCMapReaderFactory=void 0;var I=He(6);const J=function(ce){return new Promise((E,Q)=>{__webpack_require__(172).readFile(ce,($,U)=>{!$&&U?E(new Uint8Array(U)):Q(new Error($))})})};re.NodeCanvasFactory=class Ve extends I.BaseCanvasFactory{_createCanvas(E,Q){return __webpack_require__(3414).createCanvas(E,Q)}},re.NodeCMapReaderFactory=class Te extends I.BaseCMapReaderFactory{_fetchData(E,Q){return J(E).then(T=>({cMapData:T,compressionType:Q}))}},re.NodeStandardFontDataFactory=class Me extends I.BaseStandardFontDataFactory{_fetchData(E){return J(E)}}},(Ze,re,He)=>{var X,U1;Object.defineProperty(re,"__esModule",{value:!0}),re.AnnotationLayer=void 0;var I=He(1),J=He(5),Ve=He(8),Te=He(21),Me=He(22);const E=new WeakSet;function Q(y){return{width:y[2]-y[0],height:y[3]-y[1]}}class T{static create(p){switch(p.data.annotationType){case I.AnnotationType.LINK:return new U(p);case I.AnnotationType.TEXT:return new S(p);case I.AnnotationType.WIDGET:switch(p.data.fieldType){case"Tx":return new g(p);case"Btn":return p.data.radioButton?new G(p):p.data.checkBox?new M(p):new P(p);case"Ch":return new F(p)}return new b(p);case I.AnnotationType.POPUP:return new m(p);case I.AnnotationType.FREETEXT:return new k(p);case I.AnnotationType.LINE:return new O(p);case I.AnnotationType.SQUARE:return new H(p);case I.AnnotationType.CIRCLE:return new Z(p);case I.AnnotationType.POLYLINE:return new L(p);case I.AnnotationType.CARET:return new te(p);case I.AnnotationType.INK:return new ue(p);case I.AnnotationType.POLYGON:return new V(p);case I.AnnotationType.HIGHLIGHT:return new fe(p);case I.AnnotationType.UNDERLINE:return new we(p);case I.AnnotationType.SQUIGGLY:return new oe(p);case I.AnnotationType.STRIKEOUT:return new Se(p);case I.AnnotationType.STAMP:return new _e(p);case I.AnnotationType.FILEATTACHMENT:return new Ce(p);default:return new $(p)}}}class ${constructor(p,{isRenderable:D=!1,ignoreBorder:A=!1,createQuadrilaterals:N=!1}={}){this.isRenderable=D,this.data=p.data,this.layer=p.layer,this.page=p.page,this.viewport=p.viewport,this.linkService=p.linkService,this.downloadManager=p.downloadManager,this.imageResourcesPath=p.imageResourcesPath,this.renderForms=p.renderForms,this.svgFactory=p.svgFactory,this.annotationStorage=p.annotationStorage,this.enableScripting=p.enableScripting,this.hasJSActions=p.hasJSActions,this._fieldObjects=p.fieldObjects,this._mouseState=p.mouseState,D&&(this.container=this._createContainer(A)),N&&(this.quadrilaterals=this._createQuadrilaterals(A))}_createContainer(p=!1){const D=this.data,A=this.page,N=this.viewport,j=document.createElement("section");let{width:z,height:pe}=Q(D.rect);j.setAttribute("data-annotation-id",D.id);const he=I.Util.normalizeRect([D.rect[0],A.view[3]-D.rect[1]+A.view[1],D.rect[2],A.view[3]-D.rect[3]+A.view[1]]);if(D.hasOwnCanvas){const ge=N.transform.slice(),[ye,ke]=I.Util.singularValueDecompose2dScale(ge);z=Math.ceil(z*ye),pe=Math.ceil(pe*ke),he[0]*=ye,he[1]*=ke;for(let Ae=0;Ae<4;Ae++)ge[Ae]=Math.sign(ge[Ae]);j.style.transform=`matrix(${ge.join(",")})`}else j.style.transform=`matrix(${N.transform.join(",")})`;if(j.style.transformOrigin=`${-he[0]}px ${-he[1]}px`,!p&&D.borderStyle.width>0){j.style.borderWidth=`${D.borderStyle.width}px`,D.borderStyle.style!==I.AnnotationBorderStyleType.UNDERLINE&&(z-=2*D.borderStyle.width,pe-=2*D.borderStyle.width);const ge=D.borderStyle.horizontalCornerRadius,ye=D.borderStyle.verticalCornerRadius;switch((ge>0||ye>0)&&(j.style.borderRadius=`${ge}px / ${ye}px`),D.borderStyle.style){case I.AnnotationBorderStyleType.SOLID:j.style.borderStyle="solid";break;case I.AnnotationBorderStyleType.DASHED:j.style.borderStyle="dashed";break;case I.AnnotationBorderStyleType.BEVELED:(0,I.warn)("Unimplemented border style: beveled");break;case I.AnnotationBorderStyleType.INSET:(0,I.warn)("Unimplemented border style: inset");break;case I.AnnotationBorderStyleType.UNDERLINE:j.style.borderBottomStyle="solid"}D.borderColor||D.color?j.style.borderColor=I.Util.makeHexColor(0|D.color[0],0|D.color[1],0|D.color[2]):j.style.borderWidth=0}return j.style.left=`${he[0]}px`,j.style.top=`${he[1]}px`,D.hasOwnCanvas?j.style.width=j.style.height="auto":(j.style.width=`${z}px`,j.style.height=`${pe}px`),j}get _commonActions(){const p=(D,A,N)=>{const j=N.detail[D];N.target.style[A]=Te.ColorConverters[`${j[0]}_HTML`](j.slice(1))};return(0,I.shadow)(this,"_commonActions",{display:D=>{const A=D.detail.display%2==1;D.target.style.visibility=A?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:A,print:0===D.detail.display||3===D.detail.display})},print:D=>{this.annotationStorage.setValue(this.data.id,{print:D.detail.print})},hidden:D=>{D.target.style.visibility=D.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:D.detail.hidden})},focus:D=>{setTimeout(()=>D.target.focus({preventScroll:!1}),0)},userName:D=>{D.target.title=D.detail.userName},readonly:D=>{D.detail.readonly?D.target.setAttribute("readonly",""):D.target.removeAttribute("readonly")},required:D=>{D.detail.required?D.target.setAttribute("required",""):D.target.removeAttribute("required")},bgColor:D=>{p("bgColor","backgroundColor",D)},fillColor:D=>{p("fillColor","backgroundColor",D)},fgColor:D=>{p("fgColor","color",D)},textColor:D=>{p("textColor","color",D)},borderColor:D=>{p("borderColor","borderColor",D)},strokeColor:D=>{p("strokeColor","borderColor",D)}})}_dispatchEventFromSandbox(p,D){const A=this._commonActions;for(const N of Object.keys(D.detail)){const j=p[N]||A[N];j&&j(D)}}_setDefaultPropertiesFromJS(p){if(!this.enableScripting)return;const D=this.annotationStorage.getRawValue(this.data.id);if(!D)return;const A=this._commonActions;for(const[N,j]of Object.entries(D)){const z=A[N];z&&(z({detail:j,target:p}),delete D[N])}}_createQuadrilaterals(p=!1){if(!this.data.quadPoints)return null;const D=[],A=this.data.rect;for(const N of this.data.quadPoints)this.data.rect=[N[2].x,N[2].y,N[1].x,N[1].y],D.push(this._createContainer(p));return this.data.rect=A,D}_createPopup(p,D){let A=this.container;this.quadrilaterals&&(p=p||this.quadrilaterals,A=this.quadrilaterals[0]),p||((p=document.createElement("div")).style.height=A.style.height,p.style.width=A.style.width,A.appendChild(p));const j=new _({container:A,trigger:p,color:D.color,titleObj:D.titleObj,modificationDate:D.modificationDate,contentsObj:D.contentsObj,richText:D.richText,hideWrapper:!0}).render();j.style.left=A.style.width,A.appendChild(j)}_renderQuadrilaterals(p){for(const D of this.quadrilaterals)D.className=p;return this.quadrilaterals}render(){(0,I.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(p,D=null){const A=[];if(this._fieldObjects){const N=this._fieldObjects[p];if(N)for(const{page:j,id:z,exportValues:pe}of N){if(-1===j||z===D)continue;const he="string"==typeof pe?pe:null,ge=document.getElementById(z);!ge||E.has(ge)?A.push({id:z,exportValue:he,domElement:ge}):(0,I.warn)(`_getElementsByName - element not allowed: ${z}`)}return A}for(const N of document.getElementsByName(p)){const{id:j,exportValue:z}=N;j!==D&&(!E.has(N)||A.push({id:j,exportValue:z,domElement:N}))}return A}static get platform(){const p="undefined"!=typeof navigator?navigator.platform:"";return(0,I.shadow)(this,"platform",{isWin:p.includes("Win"),isMac:p.includes("Mac")})}}class U extends ${constructor(p,D=null){super(p,{isRenderable:!!(p.data.url||p.data.dest||p.data.action||p.data.isTooltipOnly||p.data.resetForm||p.data.actions&&(p.data.actions.Action||p.data.actions["Mouse Up"]||p.data.actions["Mouse Down"])),ignoreBorder:!(null==D||!D.ignoreBorder),createQuadrilaterals:!0})}render(){const{data:p,linkService:D}=this,A=document.createElement("a");if(p.url)D.addLinkAttributes(A,p.url,p.newWindow);else if(p.action)this._bindNamedAction(A,p.action);else if(p.dest)this._bindLink(A,p.dest);else{let N=!1;p.actions&&(p.actions.Action||p.actions["Mouse Up"]||p.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(N=!0,this._bindJSAction(A,p)),p.resetForm?this._bindResetFormAction(A,p.resetForm):N||this._bindLink(A,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((N,j)=>{const z=0===j?A:A.cloneNode();return N.appendChild(z),N}):(this.container.className="linkAnnotation",this.container.appendChild(A),this.container)}_bindLink(p,D){p.href=this.linkService.getDestinationHash(D),p.onclick=()=>(D&&this.linkService.goToDestination(D),!1),(D||""===D)&&(p.className="internalLink")}_bindNamedAction(p,D){p.href=this.linkService.getAnchorUrl(""),p.onclick=()=>(this.linkService.executeNamedAction(D),!1),p.className="internalLink"}_bindJSAction(p,D){p.href=this.linkService.getAnchorUrl("");const A=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const N of Object.keys(D.actions)){const j=A.get(N);!j||(p[j]=()=>{var z;return null==(z=this.linkService.eventBus)||z.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D.id,name:N}}),!1})}p.onclick||(p.onclick=()=>!1),p.className="internalLink"}_bindResetFormAction(p,D){const A=p.onclick;if(A||(p.href=this.linkService.getAnchorUrl("")),p.className="internalLink",!this._fieldObjects)return(0,I.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(A||(p.onclick=()=>!1));p.onclick=()=>{var ye;A&&A();const{fields:N,refs:j,include:z}=D,pe=[];if(0!==N.length||0!==j.length){const ke=new Set(j);for(const Ae of N){const Ue=this._fieldObjects[Ae]||[];for(const{id:st}of Ue)ke.add(st)}for(const Ae of Object.values(this._fieldObjects))for(const Ue of Ae)ke.has(Ue.id)===z&&pe.push(Ue)}else for(const ke of Object.values(this._fieldObjects))pe.push(...ke);const he=this.annotationStorage,ge=[];for(const ke of pe){const{id:Ae}=ke;switch(ge.push(Ae),ke.type){case"text":case"combobox":case"listbox":he.setValue(Ae,{value:ke.defaultValue||""});break;case"checkbox":case"radiobutton":he.setValue(Ae,{value:ke.defaultValue===ke.exportValues});break;default:continue}const Ue=document.getElementById(Ae);!Ue||!E.has(Ue)||Ue.dispatchEvent(new Event("resetform"))}return this.enableScripting&&(null==(ye=this.linkService.eventBus)||ye.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:ge,name:"ResetForm"}})),!1}}}class S extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str))})}render(){this.container.className="textAnnotation";const p=document.createElement("img");return p.style.height=this.container.style.height,p.style.width=this.container.style.width,p.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",p.alt="[{{type}} Annotation]",p.dataset.l10nId="text_annotation_type",p.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(p,this.data),this.container.appendChild(p),this.container}}class b extends ${render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(p){const{isWin:D,isMac:A}=$.platform;return D&&p.ctrlKey||A&&p.metaKey}_setEventListener(p,D,A,N){D.includes("mouse")?p.addEventListener(D,j=>{var z;null==(z=this.linkService.eventBus)||z.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:A,value:N(j),shift:j.shiftKey,modifier:this._getKeyModifier(j)}})}):p.addEventListener(D,j=>{var z;null==(z=this.linkService.eventBus)||z.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:A,value:N(j)}})})}_setEventListeners(p,D,A){var N;for(const[j,z]of D)("Action"===z||(null==(N=this.data.actions)?void 0:N[z]))&&this._setEventListener(p,j,z,A)}_setBackgroundColor(p){const D=this.data.backgroundColor||null;p.style.backgroundColor=null===D?"transparent":I.Util.makeHexColor(D[0],D[1],D[2])}}class g extends b{constructor(p){super(p,{isRenderable:p.renderForms||!p.data.hasAppearance&&!!p.data.fieldValue})}setPropertyOnSiblings(p,D,A,N){const j=this.annotationStorage;for(const z of this._getElementsByName(p.name,p.id))z.domElement&&(z.domElement[D]=A),j.setValue(z.id,{[N]:A})}render(){var N;const p=this.annotationStorage,D=this.data.id;this.container.className="textWidgetAnnotation";let A=null;if(this.renderForms){const j=p.getValue(D,{value:this.data.fieldValue}),z=j.formattedValue||j.value||"",pe={userValue:null,formattedValue:null,valueOnFocus:""};this.data.multiLine?(A=document.createElement("textarea"),A.textContent=z):(A=document.createElement("input"),A.type="text",A.setAttribute("value",z)),E.add(A),A.disabled=this.data.readOnly,A.name=this.data.fieldName,A.tabIndex=1e3,pe.userValue=z,A.setAttribute("id",D),A.addEventListener("input",ge=>{p.setValue(D,{value:ge.target.value}),this.setPropertyOnSiblings(A,"value",ge.target.value,"value")}),A.addEventListener("resetform",ge=>{var ke;const ye=null!=(ke=this.data.defaultFieldValue)?ke:"";A.value=pe.userValue=ye,pe.formattedValue=null});let he=ge=>{const{formattedValue:ye}=pe;null!=ye&&(ge.target.value=ye),ge.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){A.addEventListener("focus",ye=>{pe.userValue&&(ye.target.value=pe.userValue),pe.valueOnFocus=ye.target.value}),A.addEventListener("updatefromsandbox",ye=>{this._dispatchEventFromSandbox({value(Ae){var Ue;pe.userValue=null!=(Ue=Ae.detail.value)?Ue:"",p.setValue(D,{value:pe.userValue.toString()}),Ae.target.value=pe.userValue},formattedValue(Ae){const{formattedValue:Ue}=Ae.detail;pe.formattedValue=Ue,null!=Ue&&Ae.target!==document.activeElement&&(Ae.target.value=Ue),p.setValue(D,{formattedValue:Ue})},selRange(Ae){Ae.target.setSelectionRange(...Ae.detail.selRange)}},ye)}),A.addEventListener("keydown",ye=>{var Ue;let ke=-1;if("Escape"===ye.key?ke=0:"Enter"===ye.key?ke=2:"Tab"===ye.key&&(ke=3),-1===ke)return;const{value:Ae}=ye.target;pe.valueOnFocus!==Ae&&(pe.userValue=Ae,null==(Ue=this.linkService.eventBus)||Ue.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:Ae,willCommit:!0,commitKey:ke,selStart:ye.target.selectionStart,selEnd:ye.target.selectionEnd}}))});const ge=he;he=null,A.addEventListener("blur",ye=>{var Ae;const{value:ke}=ye.target;pe.userValue=ke,this._mouseState.isDown&&pe.valueOnFocus!==ke&&(null==(Ae=this.linkService.eventBus)||Ae.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:ke,willCommit:!0,commitKey:1,selStart:ye.target.selectionStart,selEnd:ye.target.selectionEnd}})),ge(ye)}),null!=(N=this.data.actions)&&N.Keystroke&&A.addEventListener("beforeinput",ye=>{var q;const{data:ke,target:Ae}=ye,{value:Ue,selectionStart:st,selectionEnd:De}=Ae;let je=st,ze=De;switch(ye.inputType){case"deleteWordBackward":{const le=Ue.substring(0,st).match(/\w*[^\w]*$/);le&&(je-=le[0].length);break}case"deleteWordForward":{const le=Ue.substring(st).match(/^[^\w]*\w*/);le&&(ze+=le[0].length);break}case"deleteContentBackward":st===De&&(je-=1);break;case"deleteContentForward":st===De&&(ze+=1)}ye.preventDefault(),null==(q=this.linkService.eventBus)||q.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:Ue,change:ke||"",willCommit:!1,selStart:je,selEnd:ze}})}),this._setEventListeners(A,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ye=>ye.target.value)}if(he&&A.addEventListener("blur",he),null!==this.data.maxLen&&(A.maxLength=this.data.maxLen),this.data.comb){const ye=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;A.classList.add("comb"),A.style.letterSpacing=`calc(${ye}px - 1ch)`}}else A=document.createElement("div"),A.textContent=this.data.fieldValue,A.style.verticalAlign="middle",A.style.display="table-cell";return this._setTextStyle(A),this._setBackgroundColor(A),this._setDefaultPropertiesFromJS(A),this.container.appendChild(A),this.container}_setTextStyle(p){const{fontSize:A,fontColor:N}=this.data.defaultAppearanceData,j=p.style;A&&(j.fontSize=`${A}px`),j.color=I.Util.makeHexColor(N[0],N[1],N[2]),null!==this.data.textAlignment&&(j.textAlign=["left","center","right"][this.data.textAlignment])}}class M extends b{constructor(p){super(p,{isRenderable:p.renderForms})}render(){const p=this.annotationStorage,D=this.data,A=D.id;let N=p.getValue(A,{value:D.exportValue===D.fieldValue}).value;"string"==typeof N&&(N="Off"!==N,p.setValue(A,{value:N})),this.container.className="buttonWidgetAnnotation checkBox";const j=document.createElement("input");return E.add(j),j.disabled=D.readOnly,j.type="checkbox",j.name=D.fieldName,N&&j.setAttribute("checked",!0),j.setAttribute("id",A),j.setAttribute("exportValue",D.exportValue),j.tabIndex=1e3,j.addEventListener("change",z=>{const{name:pe,checked:he}=z.target;for(const ge of this._getElementsByName(pe,A)){const ye=he&&ge.exportValue===D.exportValue;ge.domElement&&(ge.domElement.checked=ye),p.setValue(ge.id,{value:ye})}p.setValue(A,{value:he})}),j.addEventListener("resetform",z=>{z.target.checked=(D.defaultFieldValue||"Off")===D.exportValue}),this.enableScripting&&this.hasJSActions&&(j.addEventListener("updatefromsandbox",z=>{this._dispatchEventFromSandbox({value(he){he.target.checked="Off"!==he.detail.value,p.setValue(A,{value:he.target.checked})}},z)}),this._setEventListeners(j,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],z=>z.target.checked)),this._setBackgroundColor(j),this._setDefaultPropertiesFromJS(j),this.container.appendChild(j),this.container}}class G extends b{constructor(p){super(p,{isRenderable:p.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const p=this.annotationStorage,D=this.data,A=D.id;let N=p.getValue(A,{value:D.fieldValue===D.buttonValue}).value;"string"==typeof N&&(N=N!==D.buttonValue,p.setValue(A,{value:N}));const j=document.createElement("input");if(E.add(j),j.disabled=D.readOnly,j.type="radio",j.name=D.fieldName,N&&j.setAttribute("checked",!0),j.setAttribute("id",A),j.tabIndex=1e3,j.addEventListener("change",z=>{const{name:pe,checked:he}=z.target;for(const ge of this._getElementsByName(pe,A))p.setValue(ge.id,{value:!1});p.setValue(A,{value:he})}),j.addEventListener("resetform",z=>{const pe=D.defaultFieldValue;z.target.checked=null!=pe&&pe===D.buttonValue}),this.enableScripting&&this.hasJSActions){const z=D.buttonValue;j.addEventListener("updatefromsandbox",pe=>{this._dispatchEventFromSandbox({value:ge=>{const ye=z===ge.detail.value;for(const ke of this._getElementsByName(ge.target.name)){const Ae=ye&&ke.id===A;ke.domElement&&(ke.domElement.checked=Ae),p.setValue(ke.id,{value:Ae})}}},pe)}),this._setEventListeners(j,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],pe=>pe.target.checked)}return this._setBackgroundColor(j),this._setDefaultPropertiesFromJS(j),this.container.appendChild(j),this.container}}class P extends U{constructor(p){super(p,{ignoreBorder:p.data.hasAppearance})}render(){const p=super.render();return p.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(p.title=this.data.alternativeText),this._setDefaultPropertiesFromJS(p),p}}class F extends b{constructor(p){super(p,{isRenderable:p.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const p=this.annotationStorage,D=this.data.id,A=p.getValue(D,{value:this.data.fieldValue});let{fontSize:N}=this.data.defaultAppearanceData;N||(N=9);const j=`calc(${N}px * var(--zoom-factor))`,z=document.createElement("select");E.add(z),z.disabled=this.data.readOnly,z.name=this.data.fieldName,z.setAttribute("id",D),z.tabIndex=1e3,z.style.fontSize=`${N}px`,this.data.combo||(z.size=this.data.options.length,this.data.multiSelect&&(z.multiple=!0)),z.addEventListener("resetform",ge=>{const ye=this.data.defaultFieldValue;for(const ke of z.options)ke.selected=ke.value===ye});for(const ge of this.data.options){const ye=document.createElement("option");ye.textContent=ge.displayValue,ye.value=ge.exportValue,this.data.combo&&(ye.style.fontSize=j),A.value.includes(ge.exportValue)&&ye.setAttribute("selected",!0),z.appendChild(ye)}const pe=(ge,ye)=>{const ke=ye?"value":"textContent",Ae=ge.target.options;return ge.target.multiple?Array.prototype.filter.call(Ae,Ue=>Ue.selected).map(Ue=>Ue[ke]):-1===Ae.selectedIndex?null:Ae[Ae.selectedIndex][ke]},he=ge=>Array.prototype.map.call(ge.target.options,ke=>({displayValue:ke.textContent,exportValue:ke.value}));return this.enableScripting&&this.hasJSActions?(z.addEventListener("updatefromsandbox",ge=>{this._dispatchEventFromSandbox({value(ke){const Ae=ke.detail.value,Ue=new Set(Array.isArray(Ae)?Ae:[Ae]);for(const st of z.options)st.selected=Ue.has(st.value);p.setValue(D,{value:pe(ke,!0)})},multipleSelection(ke){z.multiple=!0},remove(ke){const Ae=z.options,Ue=ke.detail.remove;Ae[Ue].selected=!1,z.remove(Ue),Ae.length>0&&-1===Array.prototype.findIndex.call(Ae,De=>De.selected)&&(Ae[0].selected=!0),p.setValue(D,{value:pe(ke,!0),items:he(ke)})},clear(ke){for(;0!==z.length;)z.remove(0);p.setValue(D,{value:null,items:[]})},insert(ke){const{index:Ae,displayValue:Ue,exportValue:st}=ke.detail.insert,De=document.createElement("option");De.textContent=Ue,De.value=st,z.insertBefore(De,z.children[Ae]),p.setValue(D,{value:pe(ke,!0),items:he(ke)})},items(ke){const{items:Ae}=ke.detail;for(;0!==z.length;)z.remove(0);for(const Ue of Ae){const{displayValue:st,exportValue:De}=Ue,je=document.createElement("option");je.textContent=st,je.value=De,z.appendChild(je)}z.options.length>0&&(z.options[0].selected=!0),p.setValue(D,{value:pe(ke,!0),items:he(ke)})},indices(ke){const Ae=new Set(ke.detail.indices);for(const Ue of ke.target.options)Ue.selected=Ae.has(Ue.index);p.setValue(D,{value:pe(ke,!0)})},editable(ke){ke.target.disabled=!ke.detail.editable}},ge)}),z.addEventListener("input",ge=>{var Ae;const ye=pe(ge,!0),ke=pe(ge,!1);p.setValue(D,{value:ye}),null==(Ae=this.linkService.eventBus)||Ae.dispatch("dispatcheventinsandbox",{source:this,detail:{id:D,name:"Keystroke",value:ke,changeEx:ye,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(z,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],ge=>ge.target.checked)):z.addEventListener("input",function(ge){p.setValue(D,{value:pe(ge,!0)})}),this._setBackgroundColor(z),this._setDefaultPropertiesFromJS(z),this.container.appendChild(z),this.container}}class m extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!((null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str))})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const A=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===A.length)return this.container;const N=new _({container:this.container,trigger:Array.from(A),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),j=this.page,z=I.Util.normalizeRect([this.data.parentRect[0],j.view[3]-this.data.parentRect[1]+j.view[1],this.data.parentRect[2],j.view[3]-this.data.parentRect[3]+j.view[1]]),pe=z[0]+this.data.parentRect[2]-this.data.parentRect[0],he=z[1];return this.container.style.transformOrigin=`${-pe}px ${-he}px`,this.container.style.left=`${pe}px`,this.container.style.top=`${he}px`,this.container.appendChild(N.render()),this.container}}class _{constructor(p){this.container=p.container,this.trigger=p.trigger,this.color=p.color,this.titleObj=p.titleObj,this.modificationDate=p.modificationDate,this.contentsObj=p.contentsObj,this.richText=p.richText,this.hideWrapper=p.hideWrapper||!1,this.pinned=!1}render(){var pe,he;const D=document.createElement("div");D.className="popupWrapper",this.hideElement=this.hideWrapper?D:this.container,this.hideElement.hidden=!0;const A=document.createElement("div");A.className="popup";const N=this.color;N&&(A.style.backgroundColor=I.Util.makeHexColor(0|.7*(255-N[0])+N[0],0|.7*(255-N[1])+N[1],0|.7*(255-N[2])+N[2]));const j=document.createElement("h1");j.dir=this.titleObj.dir,j.textContent=this.titleObj.str,A.appendChild(j);const z=J.PDFDateString.toDateObject(this.modificationDate);if(z){const ge=document.createElement("span");ge.className="popupDate",ge.textContent="{{date}}, {{time}}",ge.dataset.l10nId="annotation_date_string",ge.dataset.l10nArgs=JSON.stringify({date:z.toLocaleDateString(),time:z.toLocaleTimeString()}),A.appendChild(ge)}if(!(null==(pe=this.richText)?void 0:pe.str)||null!=(he=this.contentsObj)&&he.str&&this.contentsObj.str!==this.richText.str){const ge=this._formatContents(this.contentsObj);A.appendChild(ge)}else Me.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:A}),A.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const ge of this.trigger)ge.addEventListener("click",this._toggle.bind(this)),ge.addEventListener("mouseover",this._show.bind(this,!1)),ge.addEventListener("mouseout",this._hide.bind(this,!1));return A.addEventListener("click",this._hide.bind(this,!0)),D.appendChild(A),D}_formatContents({str:p,dir:D}){const A=document.createElement("p");A.className="popupContent",A.dir=D;const N=p.split(/(?:\r\n?|\n)/);for(let j=0,z=N.length;j<z;++j)A.appendChild(document.createTextNode(N[j])),j<z-1&&A.appendChild(document.createElement("br"));return A}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(p=!1){p&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}_hide(p=!0){p&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}class k extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class O extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A),j=this.svgFactory.createElement("svg:line");return j.setAttribute("x1",p.rect[2]-p.lineCoordinates[0]),j.setAttribute("y1",p.rect[3]-p.lineCoordinates[1]),j.setAttribute("x2",p.rect[2]-p.lineCoordinates[2]),j.setAttribute("y2",p.rect[3]-p.lineCoordinates[3]),j.setAttribute("stroke-width",p.borderStyle.width||1),j.setAttribute("stroke","transparent"),j.setAttribute("fill","transparent"),N.appendChild(j),this.container.append(N),this._createPopup(j,p),this.container}}class H extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A),j=p.borderStyle.width,z=this.svgFactory.createElement("svg:rect");return z.setAttribute("x",j/2),z.setAttribute("y",j/2),z.setAttribute("width",D-j),z.setAttribute("height",A-j),z.setAttribute("stroke-width",j||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","transparent"),N.appendChild(z),this.container.append(N),this._createPopup(z,p),this.container}}class Z extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A),j=p.borderStyle.width,z=this.svgFactory.createElement("svg:ellipse");return z.setAttribute("cx",D/2),z.setAttribute("cy",A/2),z.setAttribute("rx",D/2-j/2),z.setAttribute("ry",A/2-j/2),z.setAttribute("stroke-width",j||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","transparent"),N.appendChild(z),this.container.append(N),this._createPopup(z,p),this.container}}class L extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A);let j=[];for(const pe of p.vertices)j.push(pe.x-p.rect[0]+","+(p.rect[3]-pe.y));j=j.join(" ");const z=this.svgFactory.createElement(this.svgElementName);return z.setAttribute("points",j),z.setAttribute("stroke-width",p.borderStyle.width||1),z.setAttribute("stroke","transparent"),z.setAttribute("fill","transparent"),N.appendChild(z),this.container.append(N),this._createPopup(z,p),this.container}}class V extends L{constructor(p){super(p),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class te extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class ue extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const p=this.data,{width:D,height:A}=Q(p.rect),N=this.svgFactory.create(D,A);for(const j of p.inkLists){let z=[];for(const he of j)z.push(`${he.x-p.rect[0]},${p.rect[3]-he.y}`);z=z.join(" ");const pe=this.svgFactory.createElement(this.svgElementName);pe.setAttribute("points",z),pe.setAttribute("stroke-width",p.borderStyle.width||1),pe.setAttribute("stroke","transparent"),pe.setAttribute("fill","transparent"),this._createPopup(pe,p),N.appendChild(pe)}return this.container.append(N),this.container}}class fe extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class we extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class oe extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class Se extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class _e extends ${constructor(p){var A,N,j;super(p,{isRenderable:!!(p.data.hasPopup||(null==(A=p.data.titleObj)?void 0:A.str)||(null==(N=p.data.contentsObj)?void 0:N.str)||(null==(j=p.data.richText)?void 0:j.str)),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Ce extends ${constructor(p){var N;super(p,{isRenderable:!0});const{filename:D,content:A}=this.data.file;this.filename=(0,J.getFilenameFromUrl)(D),this.content=A,null==(N=this.linkService.eventBus)||N.dispatch("fileattachmentannotation",{source:this,filename:D,content:A})}render(){var D,A;this.container.className="fileAttachmentAnnotation";const p=document.createElement("div");return p.style.height=this.container.style.height,p.style.width=this.container.style.width,p.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((null==(D=this.data.titleObj)?void 0:D.str)||(null==(A=this.data.contentsObj)?void 0:A.str)||this.data.richText)&&this._createPopup(p,this.data),this.container.appendChild(p),this.container}_download(){var p;null==(p=this.downloadManager)||p.openOrDownloadData(this.container,this.content,this.filename)}}class Be{static render(p){const D=[],A=[];for(const j of p.annotations){if(!j)continue;const{width:z,height:pe}=Q(j.rect);if(!(z<=0||pe<=0)){if(j.annotationType===I.AnnotationType.POPUP){A.push(j);continue}D.push(j)}}A.length&&D.push(...A);const N=p.div;for(const j of D){const z=T.create({data:j,layer:N,page:p.page,viewport:p.viewport,linkService:p.linkService,downloadManager:p.downloadManager,imageResourcesPath:p.imageResourcesPath||"",renderForms:!1!==p.renderForms,svgFactory:new J.DOMSVGFactory,annotationStorage:p.annotationStorage||new Ve.AnnotationStorage,enableScripting:p.enableScripting,hasJSActions:p.hasJSActions,fieldObjects:p.fieldObjects,mouseState:p.mouseState||{isDown:!1}});if(z.isRenderable){const pe=z.render();if(j.hidden&&(pe.style.visibility="hidden"),Array.isArray(pe))for(const he of pe)N.appendChild(he);else z instanceof m?N.prepend(pe):N.appendChild(pe)}}Nt(this,X,U1).call(this,N,p.annotationCanvasMap)}static update(p){const{page:D,viewport:A,annotations:N,annotationCanvasMap:j,div:z}=p,pe=A.transform,he=`matrix(${pe.join(",")})`;let ge,ye;for(const ke of N){const Ae=z.querySelectorAll(`[data-annotation-id="${ke.id}"]`);if(Ae)for(const Ue of Ae)if(ke.hasOwnCanvas){const st=I.Util.normalizeRect([ke.rect[0],D.view[3]-ke.rect[1]+D.view[1],ke.rect[2],D.view[3]-ke.rect[3]+D.view[1]]);if(!ye){ge=Math.abs(pe[0]||pe[1]);const ze=pe.slice();for(let q=0;q<4;q++)ze[q]=Math.sign(ze[q]);ye=`matrix(${ze.join(",")})`}const De=st[0]*ge,je=st[1]*ge;Ue.style.left=`${De}px`,Ue.style.top=`${je}px`,Ue.style.transformOrigin=`${-De}px ${-je}px`,Ue.style.transform=ye}else Ue.style.transform=he}Nt(this,X,U1).call(this,z,j),z.hidden=!1}}X=new WeakSet,U1=function(p,D){if(D){for(const[A,N]of D){const j=p.querySelector(`[data-annotation-id="${A}"]`);if(!j)continue;const{firstChild:z}=j;"CANVAS"===z.nodeName?j.replaceChild(N,z):j.insertBefore(N,z)}D.clear()}},Gt(Be,X),re.AnnotationLayer=Be},(Ze,re)=>{function He(J){return Math.floor(255*Math.max(0,Math.min(1,J))).toString(16).padStart(2,"0")}Object.defineProperty(re,"__esModule",{value:!0}),re.ColorConverters=void 0,re.ColorConverters=class I{static CMYK_G([Ve,Te,Me,ce]){return["G",1-Math.min(1,.3*Ve+.59*Me+.11*Te+ce)]}static G_CMYK([Ve]){return["CMYK",0,0,0,1-Ve]}static G_RGB([Ve]){return["RGB",Ve,Ve,Ve]}static G_HTML([Ve]){const Te=He(Ve);return`#${Te}${Te}${Te}`}static RGB_G([Ve,Te,Me]){return["G",.3*Ve+.59*Te+.11*Me]}static RGB_HTML([Ve,Te,Me]){return`#${He(Ve)}${He(Te)}${He(Me)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([Ve,Te,Me,ce]){return["RGB",1-Math.min(1,Ve+ce),1-Math.min(1,Me+ce),1-Math.min(1,Te+ce)]}static CMYK_HTML(Ve){return this.RGB_HTML(this.CMYK_RGB(Ve))}static RGB_CMYK([Ve,Te,Me]){const ce=1-Ve,E=1-Te,Q=1-Me;return["CMYK",ce,E,Q,Math.min(ce,E,Q)]}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.XfaLayer=void 0;var I=He(18);re.XfaLayer=class J{static setupStorage(Te,Me,ce,E,Q){const T=E.getValue(Me,{value:null});switch(ce.name){case"textarea":if(null!==T.value&&(Te.textContent=T.value),"print"===Q)break;Te.addEventListener("input",$=>{E.setValue(Me,{value:$.target.value})});break;case"input":if("radio"===ce.attributes.type||"checkbox"===ce.attributes.type){if(T.value===ce.attributes.xfaOn?Te.setAttribute("checked",!0):T.value===ce.attributes.xfaOff&&Te.removeAttribute("checked"),"print"===Q)break;Te.addEventListener("change",$=>{E.setValue(Me,{value:$.target.getAttribute($.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==T.value&&Te.setAttribute("value",T.value),"print"===Q)break;Te.addEventListener("input",$=>{E.setValue(Me,{value:$.target.value})})}break;case"select":if(null!==T.value)for(const $ of ce.children)$.attributes.value===T.value&&($.attributes.selected=!0);Te.addEventListener("input",$=>{const U=$.target.options;E.setValue(Me,{value:-1===U.selectedIndex?"":U[U.selectedIndex].value})})}}static setAttributes({html:Te,element:Me,storage:ce=null,intent:E,linkService:Q}){const{attributes:T}=Me,$=Te instanceof HTMLAnchorElement;"radio"===T.type&&(T.name=`${T.name}-${E}`);for(const[U,S]of Object.entries(T))if(null!=S&&"dataId"!==U)if("style"!==U)if("textContent"===U)Te.textContent=S;else if("class"===U)S.length&&Te.setAttribute(U,S.join(" "));else{if($&&("href"===U||"newWindow"===U))continue;Te.setAttribute(U,S)}else Object.assign(Te.style,S);$&&Q.addLinkAttributes(Te,T.href,T.newWindow),ce&&T.dataId&&this.setupStorage(Te,T.dataId,Me,ce)}static render(Te){var b;const Me=Te.annotationStorage,ce=Te.linkService,E=Te.xfaHtml,Q=Te.intent||"display",T=document.createElement(E.name);E.attributes&&this.setAttributes({html:T,element:E,intent:Q,linkService:ce});const $=[[E,-1,T]],U=Te.div;if(U.appendChild(T),Te.viewport){const g=`matrix(${Te.viewport.transform.join(",")})`;U.style.transform=g}"richText"!==Q&&U.setAttribute("class","xfaLayer xfaFont");const S=[];for(;$.length>0;){const[g,M,G]=$[$.length-1];if(M+1===g.children.length){$.pop();continue}const P=g.children[++$[$.length-1][1]];if(null===P)continue;const{name:F}=P;if("#text"===F){const _=document.createTextNode(P.value);S.push(_),G.appendChild(_);continue}let m;if(m=null!=(b=null==P?void 0:P.attributes)&&b.xmlns?document.createElementNS(P.attributes.xmlns,F):document.createElement(F),G.appendChild(m),P.attributes&&this.setAttributes({html:m,element:P,storage:Me,intent:Q,linkService:ce}),P.children&&P.children.length>0)$.push([P,-1,m]);else if(P.value){const _=document.createTextNode(P.value);I.XfaText.shouldBuildText(F)&&S.push(_),m.appendChild(_)}}for(const g of U.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))g.setAttribute("readOnly",!0);return{textDivs:S}}static update(Te){const Me=`matrix(${Te.viewport.transform.join(",")})`;Te.div.style.transform=Me,Te.div.hidden=!1}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.renderTextLayer=function M(G){const P=new g({textContent:G.textContent,textContentStream:G.textContentStream,container:G.container,viewport:G.viewport,textDivs:G.textDivs,textContentItemsStr:G.textContentItemsStr,enhanceTextSelection:G.enhanceTextSelection});return P._render(G.timeout),P};var I=He(1);const Me=new Map,ce=/^\s+$/g;function Q(G,P,F,m){const _=document.createElement("span"),k=G._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==P.str,hasEOL:P.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==P.str,hasEOL:P.hasEOL};G._textDivs.push(_);const O=I.Util.transform(G._viewport.transform,P.transform);let H=Math.atan2(O[1],O[0]);const Z=F[P.fontName];Z.vertical&&(H+=Math.PI/2);const L=Math.hypot(O[2],O[3]),V=L*function E(G,P){const F=Me.get(G);if(F)return F;P.save(),P.font=`30px ${G}`;const m=P.measureText("");let _=m.fontBoundingBoxAscent,k=Math.abs(m.fontBoundingBoxDescent);if(_){P.restore();const H=_/(_+k);return Me.set(G,H),H}P.strokeStyle="red",P.clearRect(0,0,30,30),P.strokeText("g",0,0);let O=P.getImageData(0,0,30,30).data;k=0;for(let H=O.length-1-3;H>=0;H-=4)if(O[H]>0){k=Math.ceil(H/4/30);break}P.clearRect(0,0,30,30),P.strokeText("A",0,30),O=P.getImageData(0,0,30,30).data,_=0;for(let H=0,Z=O.length;H<Z;H+=4)if(O[H]>0){_=30-Math.floor(H/4/30);break}if(P.restore(),_){const H=_/(_+k);return Me.set(G,H),H}return Me.set(G,.8),.8}(Z.fontFamily,m);let te,ue;0===H?(te=O[4],ue=O[5]-V):(te=O[4]+V*Math.sin(H),ue=O[5]-V*Math.cos(H)),_.style.left=`${te}px`,_.style.top=`${ue}px`,_.style.fontSize=`${L}px`,_.style.fontFamily=Z.fontFamily,_.setAttribute("role","presentation"),_.textContent=P.str,_.dir=P.dir,G._fontInspectorEnabled&&(_.dataset.fontName=P.fontName),0!==H&&(k.angle=H*(180/Math.PI));let fe=!1;if(P.str.length>1||G._enhanceTextSelection&&ce.test(P.str))fe=!0;else if(" "!==P.str&&P.transform[0]!==P.transform[3]){const we=Math.abs(P.transform[0]),oe=Math.abs(P.transform[3]);we!==oe&&Math.max(we,oe)/Math.min(we,oe)>1.5&&(fe=!0)}if(fe&&(k.canvasWidth=Z.vertical?P.height*G._viewport.scale:P.width*G._viewport.scale),G._textDivProperties.set(_,k),G._textContentStream&&G._layoutText(_),G._enhanceTextSelection&&k.hasText){let we=1,oe=0;0!==H&&(we=Math.cos(H),oe=Math.sin(H));const Se=(Z.vertical?P.height:P.width)*G._viewport.scale,_e=L;let Ce,Be;0!==H?(Ce=[we,oe,-oe,we,te,ue],Be=I.Util.getAxialAlignedBoundingBox([0,0,Se,_e],Ce)):Be=[te,ue,te+Se,ue+_e],G._bounds.push({left:Be[0],top:Be[1],right:Be[2],bottom:Be[3],div:_,size:[Se,_e],m:Ce})}}function T(G){if(G._canceled)return;const P=G._textDivs,F=G._capability,m=P.length;if(m>1e5)return G._renderingDone=!0,void F.resolve();if(!G._textContentStream)for(let _=0;_<m;_++)G._layoutText(P[_]);G._renderingDone=!0,F.resolve()}function $(G,P,F){let m=0;for(let _=0;_<F;_++){const k=G[P++];k>0&&(m=m?Math.min(k,m):k)}return m}function b(G,P){P.sort(function(_,k){return _.x1-k.x1||_.index-k.index});const m=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const _ of P){let k=0;for(;k<m.length&&m[k].end<=_.y1;)k++;let O=m.length-1;for(;O>=0&&m[O].start>=_.y2;)O--;let H,Z,L,V,te=-1/0;for(L=k;L<=O;L++){let we;H=m[L],Z=H.boundary,we=Z.x2>_.x1?Z.index>_.index?Z.x1New:_.x1:void 0===Z.x2New?(Z.x2+_.x1)/2:Z.x2New,we>te&&(te=we)}for(_.x1New=te,L=k;L<=O;L++)H=m[L],Z=H.boundary,void 0===Z.x2New?Z.x2>_.x1?Z.index>_.index&&(Z.x2New=Z.x2):Z.x2New=te:Z.x2New>te&&(Z.x2New=Math.max(te,Z.x2));const ue=[];let fe=null;for(L=k;L<=O;L++){H=m[L],Z=H.boundary;const we=Z.x2>_.x2?Z:_;fe===we?ue[ue.length-1].end=H.end:(ue.push({start:H.start,end:H.end,boundary:we}),fe=we)}for(m[k].start<_.y1&&(ue[0].start=_.y1,ue.unshift({start:m[k].start,end:_.y1,boundary:m[k].boundary})),_.y2<m[O].end&&(ue[ue.length-1].end=_.y2,ue.push({start:_.y2,end:m[O].end,boundary:m[O].boundary})),L=k;L<=O;L++){if(H=m[L],Z=H.boundary,void 0!==Z.x2New)continue;let we=!1;for(V=k-1;!we&&V>=0&&m[V].start>=Z.y1;V--)we=m[V].boundary===Z;for(V=O+1;!we&&V<m.length&&m[V].end<=Z.y2;V++)we=m[V].boundary===Z;for(V=0;!we&&V<ue.length;V++)we=ue[V].boundary===Z;we||(Z.x2New=te)}Array.prototype.splice.apply(m,[k,O-k+1].concat(ue))}for(const _ of m){const k=_.boundary;void 0===k.x2New&&(k.x2New=Math.max(G,k.x2))}}class g{constructor({textContent:P,textContentStream:F,container:m,viewport:_,textDivs:k,textContentItemsStr:O,enhanceTextSelection:H}){var Z;this._textContent=P,this._textContentStream=F,this._container=m,this._document=m.ownerDocument,this._viewport=_,this._textDivs=k||[],this._textContentItemsStr=O||[],this._enhanceTextSelection=!!H,this._fontInspectorEnabled=!(null==(Z=globalThis.FontInspector)||!Z.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,I.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new I.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(P,F){for(let m=0,_=P.length;m<_;m++)if(void 0!==P[m].str)this._textContentItemsStr.push(P[m].str),Q(this,P[m],F,this._layoutTextCtx);else if("beginMarkedContentProps"===P[m].type||"beginMarkedContent"===P[m].type){const k=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==P[m].id&&this._container.setAttribute("id",`${P[m].id}`),k.appendChild(this._container)}else"endMarkedContent"===P[m].type&&(this._container=this._container.parentNode)}_layoutText(P){const F=this._textDivProperties.get(P);let m="";if(0!==F.canvasWidth&&F.hasText){const{fontSize:_,fontFamily:k}=P.style;(_!==this._layoutTextLastFontSize||k!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${_} ${k}`,this._layoutTextLastFontSize=_,this._layoutTextLastFontFamily=k);const{width:O}=this._layoutTextCtx.measureText(P.textContent);if(O>0){const H=F.canvasWidth/O;this._enhanceTextSelection&&(F.scale=H),m=`scaleX(${H})`}}if(0!==F.angle&&(m=`rotate(${F.angle}deg) ${m}`),m.length>0&&(this._enhanceTextSelection&&(F.originalTransform=m),P.style.transform=m),F.hasText&&this._container.appendChild(P),F.hasEOL){const _=document.createElement("br");_.setAttribute("role","presentation"),this._container.appendChild(_)}}_render(P=0){const F=(0,I.createPromiseCapability)();let m=Object.create(null);const _=this._document.createElement("canvas");if(_.height=_.width=30,this._layoutTextCtx=_.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),F.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const k=()=>{this._reader.read().then(({value:O,done:H})=>{H?F.resolve():(Object.assign(m,O.styles),this._processItems(O.items,m),k())},F.reject)};this._reader=this._textContentStream.getReader(),k()}}F.promise.then(()=>{m=null,P?this._renderTimer=setTimeout(()=>{T(this),this._renderTimer=null},P):T(this)},this._capability.reject)}expandTextDivs(P=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function U(G){const P=G._bounds,F=G._viewport,m=function S(G,P,F){const m=F.map(function(k,O){return{x1:k.left,y1:k.top,x2:k.right,y2:k.bottom,index:O,x1New:void 0,x2New:void 0}});b(G,m);const _=new Array(F.length);for(const k of m)_[k.index]={left:k.x1New,top:0,right:k.x2New,bottom:0};F.map(function(k,O){const H=_[O],Z=m[O];Z.x1=k.top,Z.y1=G-H.right,Z.x2=k.bottom,Z.y2=G-H.left,Z.index=O,Z.x1New=void 0,Z.x2New=void 0}),b(P,m);for(const k of m){const O=k.index;_[O].top=k.x1New,_[O].bottom=k.x2New}return _}(F.width,F.height,P);for(let _=0;_<m.length;_++){const k=P[_].div,O=G._textDivProperties.get(k);if(0===O.angle){O.paddingLeft=P[_].left-m[_].left,O.paddingTop=P[_].top-m[_].top,O.paddingRight=m[_].right-P[_].right,O.paddingBottom=m[_].bottom-P[_].bottom,G._textDivProperties.set(k,O);continue}const H=m[_],Z=P[_],L=Z.m,V=L[0],te=L[1],ue=[[0,0],[0,Z.size[1]],[Z.size[0],0],Z.size],fe=new Float64Array(64);for(let oe=0,Se=ue.length;oe<Se;oe++){const _e=I.Util.applyTransform(ue[oe],L);fe[oe+0]=V&&(H.left-_e[0])/V,fe[oe+4]=te&&(H.top-_e[1])/te,fe[oe+8]=V&&(H.right-_e[0])/V,fe[oe+12]=te&&(H.bottom-_e[1])/te,fe[oe+16]=te&&(H.left-_e[0])/-te,fe[oe+20]=V&&(H.top-_e[1])/V,fe[oe+24]=te&&(H.right-_e[0])/-te,fe[oe+28]=V&&(H.bottom-_e[1])/V,fe[oe+32]=V&&(H.left-_e[0])/-V,fe[oe+36]=te&&(H.top-_e[1])/-te,fe[oe+40]=V&&(H.right-_e[0])/-V,fe[oe+44]=te&&(H.bottom-_e[1])/-te,fe[oe+48]=te&&(H.left-_e[0])/te,fe[oe+52]=V&&(H.top-_e[1])/-V,fe[oe+56]=te&&(H.right-_e[0])/te,fe[oe+60]=V&&(H.bottom-_e[1])/-V}const we=1+Math.min(Math.abs(V),Math.abs(te));O.paddingLeft=$(fe,32,16)/we,O.paddingTop=$(fe,48,16)/we,O.paddingRight=$(fe,0,16)/we,O.paddingBottom=$(fe,16,16)/we,G._textDivProperties.set(k,O)}}(this),this._bounds=null);const F=[],m=[];for(let _=0,k=this._textDivs.length;_<k;_++){const O=this._textDivs[_],H=this._textDivProperties.get(O);!H.hasText||(P?(F.length=0,m.length=0,H.originalTransform&&F.push(H.originalTransform),H.paddingTop>0?(m.push(`${H.paddingTop}px`),F.push(`translateY(${-H.paddingTop}px)`)):m.push(0),m.push(H.paddingRight>0?H.paddingRight/H.scale+"px":0),m.push(H.paddingBottom>0?`${H.paddingBottom}px`:0),H.paddingLeft>0?(m.push(H.paddingLeft/H.scale+"px"),F.push(`translateX(${-H.paddingLeft/H.scale}px)`)):m.push(0),O.style.padding=m.join(" "),F.length&&(O.style.transform=F.join(" "))):(O.style.padding=null,O.style.transform=H.originalTransform))}}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.SVGGraphics=void 0;var I=He(1),J=He(5),Ve=He(3);let Te=class{constructor(){(0,I.unreachable)("Not implemented: SVGGraphics")}};re.SVGGraphics=Te;{let b=function(m){let _=[];const k=[];for(const O of m)"save"!==O.fn?"restore"===O.fn?_=k.pop():_.push(O):(_.push({fnId:92,fn:"group",items:[]}),k.push(_),_=_[_.length-1].items);return _},g=function(m){if(Number.isInteger(m))return m.toString();const _=m.toFixed(10);let k=_.length-1;if("0"!==_[k])return _;do{k--}while("0"===_[k]);return _.substring(0,"."===_[k]?k:k+1)},M=function(m){if(0===m[4]&&0===m[5]){if(0===m[1]&&0===m[2])return 1===m[0]&&1===m[3]?"":`scale(${g(m[0])} ${g(m[3])})`;if(m[0]===m[3]&&m[1]===-m[2]){const _=180*Math.acos(m[0])/Math.PI;return`rotate(${g(_)})`}}else if(1===m[0]&&0===m[1]&&0===m[2]&&1===m[3])return`translate(${g(m[4])} ${g(m[5])})`;return`matrix(${g(m[0])} ${g(m[1])} ${g(m[2])} ${g(m[3])} ${g(m[4])} ${g(m[5])})`};const Me={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},ce="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/1999/xlink",Q=["butt","round","square"],T=["miter","round","bevel"],$=function(m,_="",k=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!k)return URL.createObjectURL(new Blob([m],{type:_}));const O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let H=`data:${_};base64,`;for(let Z=0,L=m.length;Z<L;Z+=3){const V=255&m[Z],te=255&m[Z+1],ue=255&m[Z+2];H+=O[V>>2]+O[(3&V)<<4|te>>4]+O[Z+1<L?(15&te)<<2|ue>>6:64]+O[Z+2<L?63&ue:64]}return H},U=function(){const m=new Uint8Array([137,80,78,71,13,10,26,10]),k=new Int32Array(256);for(let ue=0;ue<256;ue++){let fe=ue;for(let we=0;we<8;we++)fe=1&fe?3988292384^fe>>1&2147483647:fe>>1&2147483647;k[ue]=fe}function H(ue,fe,we,oe){let Se=oe;const _e=fe.length;we[Se]=_e>>24&255,we[Se+1]=_e>>16&255,we[Se+2]=_e>>8&255,we[Se+3]=255&_e,Se+=4,we[Se]=255&ue.charCodeAt(0),we[Se+1]=255&ue.charCodeAt(1),we[Se+2]=255&ue.charCodeAt(2),we[Se+3]=255&ue.charCodeAt(3),Se+=4,we.set(fe,Se),Se+=fe.length;const Ce=function O(ue,fe,we){let oe=-1;for(let Se=fe;Se<we;Se++)oe=oe>>>8^k[255&(oe^ue[Se])];return-1^oe}(we,oe+4,Se);we[Se]=Ce>>24&255,we[Se+1]=Ce>>16&255,we[Se+2]=Ce>>8&255,we[Se+3]=255&Ce}function V(ue){let fe=ue.length;const we=65535,oe=Math.ceil(fe/we),Se=new Uint8Array(2+fe+5*oe+4);let _e=0;Se[_e++]=120,Se[_e++]=156;let Ce=0;for(;fe>we;)Se[_e++]=0,Se[_e++]=255,Se[_e++]=255,Se[_e++]=0,Se[_e++]=0,Se.set(ue.subarray(Ce,Ce+we),_e),_e+=we,Ce+=we,fe-=we;Se[_e++]=1,Se[_e++]=255&fe,Se[_e++]=fe>>8&255,Se[_e++]=255&~fe,Se[_e++]=(65535&~fe)>>8&255,Se.set(ue.subarray(Ce),_e),_e+=ue.length-Ce;const Be=function Z(ue,fe,we){let oe=1,Se=0;for(let _e=fe;_e<we;++_e)oe=(oe+(255&ue[_e]))%65521,Se=(Se+oe)%65521;return Se<<16|oe}(ue,0,ue.length);return Se[_e++]=Be>>24&255,Se[_e++]=Be>>16&255,Se[_e++]=Be>>8&255,Se[_e++]=255&Be,Se}return function(fe,we,oe){return function te(ue,fe,we,oe){const Se=ue.width,_e=ue.height;let Ce,Be,X;const C=ue.data;switch(fe){case I.ImageKind.GRAYSCALE_1BPP:Be=0,Ce=1,X=Se+7>>3;break;case I.ImageKind.RGB_24BPP:Be=2,Ce=8,X=3*Se;break;case I.ImageKind.RGBA_32BPP:Be=6,Ce=8,X=4*Se;break;default:throw new Error("invalid format")}const y=new Uint8Array((1+X)*_e);let p=0,D=0;for(let he=0;he<_e;++he)y[p++]=0,y.set(C.subarray(D,D+X),p),D+=X,p+=X;if(fe===I.ImageKind.GRAYSCALE_1BPP&&oe){p=0;for(let he=0;he<_e;he++){p++;for(let ge=0;ge<X;ge++)y[p++]^=255}}const A=new Uint8Array([Se>>24&255,Se>>16&255,Se>>8&255,255&Se,_e>>24&255,_e>>16&255,_e>>8&255,255&_e,Ce,Be,0,0,0]),N=function L(ue){if(!Ve.isNodeJS)return V(ue);try{let fe;fe=parseInt(process.versions.node)>=8?ue:Buffer.from(ue);const we=__webpack_require__(2258).deflateSync(fe,{level:9});return we instanceof Uint8Array?we:new Uint8Array(we)}catch(fe){(0,I.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+fe)}return V(ue)}(y),z=new Uint8Array(m.length+36+A.length+N.length);let pe=0;return z.set(m,pe),pe+=m.length,H("IHDR",A,z,pe),pe+=12+A.length,H("IDATA",N,z,pe),pe+=12+N.length,H("IEND",new Uint8Array(0),z,pe),$(z,"image/png",we)}(fe,void 0===fe.kind?I.ImageKind.GRAYSCALE_1BPP:fe.kind,we,oe)}}();class S{constructor(){this.fontSizeScale=1,this.fontWeight=Me.fontWeight,this.fontSize=0,this.textMatrix=I.IDENTITY_MATRIX,this.fontMatrix=I.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=I.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=Me.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(_,k){this.x=_,this.y=k}}let G=0,P=0,F=0;re.SVGGraphics=Te=class{constructor(m,_,k=!1){this.svgFactory=new J.DOMSVGFactory,this.current=new S,this.transformMatrix=I.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=m,this.objs=_,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!k,this._operatorIdMapping=[];for(const O in I.OPS)this._operatorIdMapping[I.OPS[O]]=O}save(){this.transformStack.push(this.transformMatrix);const m=this.current;this.extraStack.push(m),this.current=m.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(m){this.save(),this.executeOpTree(m),this.restore()}loadDependencies(m){const _=m.fnArray,k=m.argsArray;for(let O=0,H=_.length;O<H;O++)if(_[O]===I.OPS.dependency)for(const Z of k[O]){const L=Z.startsWith("g_")?this.commonObjs:this.objs,V=new Promise(te=>{L.get(Z,te)});this.current.dependencies.push(V)}return Promise.all(this.current.dependencies)}transform(m,_,k,O,H,Z){this.transformMatrix=I.Util.transform(this.transformMatrix,[m,_,k,O,H,Z]),this.tgrp=null}getSVG(m,_){this.viewport=_;const k=this._initialize(_);return this.loadDependencies(m).then(()=>(this.transformMatrix=I.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(m)),k))}convertOpList(m){const _=this._operatorIdMapping,k=m.argsArray,O=m.fnArray,H=[];for(let Z=0,L=O.length;Z<L;Z++){const V=O[Z];H.push({fnId:V,fn:_[V],args:k[Z]})}return b(H)}executeOpTree(m){for(const _ of m){const k=_.fn,H=_.args;switch(0|_.fnId){case I.OPS.beginText:this.beginText();break;case I.OPS.dependency:break;case I.OPS.setLeading:this.setLeading(H);break;case I.OPS.setLeadingMoveText:this.setLeadingMoveText(H[0],H[1]);break;case I.OPS.setFont:this.setFont(H);break;case I.OPS.showText:case I.OPS.showSpacedText:this.showText(H[0]);break;case I.OPS.endText:this.endText();break;case I.OPS.moveText:this.moveText(H[0],H[1]);break;case I.OPS.setCharSpacing:this.setCharSpacing(H[0]);break;case I.OPS.setWordSpacing:this.setWordSpacing(H[0]);break;case I.OPS.setHScale:this.setHScale(H[0]);break;case I.OPS.setTextMatrix:this.setTextMatrix(H[0],H[1],H[2],H[3],H[4],H[5]);break;case I.OPS.setTextRise:this.setTextRise(H[0]);break;case I.OPS.setTextRenderingMode:this.setTextRenderingMode(H[0]);break;case I.OPS.setLineWidth:this.setLineWidth(H[0]);break;case I.OPS.setLineJoin:this.setLineJoin(H[0]);break;case I.OPS.setLineCap:this.setLineCap(H[0]);break;case I.OPS.setMiterLimit:this.setMiterLimit(H[0]);break;case I.OPS.setFillRGBColor:this.setFillRGBColor(H[0],H[1],H[2]);break;case I.OPS.setStrokeRGBColor:this.setStrokeRGBColor(H[0],H[1],H[2]);break;case I.OPS.setStrokeColorN:this.setStrokeColorN(H);break;case I.OPS.setFillColorN:this.setFillColorN(H);break;case I.OPS.shadingFill:this.shadingFill(H[0]);break;case I.OPS.setDash:this.setDash(H[0],H[1]);break;case I.OPS.setRenderingIntent:this.setRenderingIntent(H[0]);break;case I.OPS.setFlatness:this.setFlatness(H[0]);break;case I.OPS.setGState:this.setGState(H[0]);break;case I.OPS.fill:this.fill();break;case I.OPS.eoFill:this.eoFill();break;case I.OPS.stroke:this.stroke();break;case I.OPS.fillStroke:this.fillStroke();break;case I.OPS.eoFillStroke:this.eoFillStroke();break;case I.OPS.clip:this.clip("nonzero");break;case I.OPS.eoClip:this.clip("evenodd");break;case I.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case I.OPS.paintImageXObject:this.paintImageXObject(H[0]);break;case I.OPS.paintInlineImageXObject:this.paintInlineImageXObject(H[0]);break;case I.OPS.paintImageMaskXObject:this.paintImageMaskXObject(H[0]);break;case I.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(H[0],H[1]);break;case I.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case I.OPS.closePath:this.closePath();break;case I.OPS.closeStroke:this.closeStroke();break;case I.OPS.closeFillStroke:this.closeFillStroke();break;case I.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case I.OPS.nextLine:this.nextLine();break;case I.OPS.transform:this.transform(H[0],H[1],H[2],H[3],H[4],H[5]);break;case I.OPS.constructPath:this.constructPath(H[0],H[1]);break;case I.OPS.endPath:this.endPath();break;case 92:this.group(_.items);break;default:(0,I.warn)(`Unimplemented operator ${k}`)}}}setWordSpacing(m){this.current.wordSpacing=m}setCharSpacing(m){this.current.charSpacing=m}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(m,_,k,O,H,Z){const L=this.current;L.textMatrix=L.lineMatrix=[m,_,k,O,H,Z],L.textMatrixScale=Math.hypot(m,_),L.x=L.lineX=0,L.y=L.lineY=0,L.xcoords=[],L.ycoords=[],L.tspan=this.svgFactory.createElement("svg:tspan"),L.tspan.setAttributeNS(null,"font-family",L.fontFamily),L.tspan.setAttributeNS(null,"font-size",`${g(L.fontSize)}px`),L.tspan.setAttributeNS(null,"y",g(-L.y)),L.txtElement=this.svgFactory.createElement("svg:text"),L.txtElement.appendChild(L.tspan)}beginText(){const m=this.current;m.x=m.lineX=0,m.y=m.lineY=0,m.textMatrix=I.IDENTITY_MATRIX,m.lineMatrix=I.IDENTITY_MATRIX,m.textMatrixScale=1,m.tspan=this.svgFactory.createElement("svg:tspan"),m.txtElement=this.svgFactory.createElement("svg:text"),m.txtgrp=this.svgFactory.createElement("svg:g"),m.xcoords=[],m.ycoords=[]}moveText(m,_){const k=this.current;k.x=k.lineX+=m,k.y=k.lineY+=_,k.xcoords=[],k.ycoords=[],k.tspan=this.svgFactory.createElement("svg:tspan"),k.tspan.setAttributeNS(null,"font-family",k.fontFamily),k.tspan.setAttributeNS(null,"font-size",`${g(k.fontSize)}px`),k.tspan.setAttributeNS(null,"y",g(-k.y))}showText(m){const _=this.current,k=_.font,O=_.fontSize;if(0===O)return;const H=_.fontSizeScale,Z=_.charSpacing,L=_.wordSpacing,V=_.fontDirection,te=_.textHScale*V,ue=k.vertical,fe=ue?1:-1,we=k.defaultVMetrics,oe=O*_.fontMatrix[0];let Se=0;for(const Be of m){if(null===Be){Se+=V*L;continue}if("number"==typeof Be){Se+=fe*Be*O/1e3;continue}const X=(Be.isSpace?L:0)+Z,C=Be.fontChar;let y,p,A,D=Be.width;if(ue){let N;const j=Be.vmetric||we;N=Be.vmetric?j[1]:.5*D,N=-N*oe,D=j?-j[0]:D,y=N/H,p=(Se+j[2]*oe)/H}else y=Se/H,p=0;(Be.isInFont||k.missingFile)&&(_.xcoords.push(_.x+y),ue&&_.ycoords.push(-_.y+p),_.tspan.textContent+=C),A=ue?D*oe-X*V:D*oe+X*V,Se+=A}_.tspan.setAttributeNS(null,"x",_.xcoords.map(g).join(" ")),_.tspan.setAttributeNS(null,"y",ue?_.ycoords.map(g).join(" "):g(-_.y)),ue?_.y-=Se:_.x+=Se*te,_.tspan.setAttributeNS(null,"font-family",_.fontFamily),_.tspan.setAttributeNS(null,"font-size",`${g(_.fontSize)}px`),_.fontStyle!==Me.fontStyle&&_.tspan.setAttributeNS(null,"font-style",_.fontStyle),_.fontWeight!==Me.fontWeight&&_.tspan.setAttributeNS(null,"font-weight",_.fontWeight);const _e=_.textRenderingMode&I.TextRenderingMode.FILL_STROKE_MASK;_e===I.TextRenderingMode.FILL||_e===I.TextRenderingMode.FILL_STROKE?(_.fillColor!==Me.fillColor&&_.tspan.setAttributeNS(null,"fill",_.fillColor),_.fillAlpha<1&&_.tspan.setAttributeNS(null,"fill-opacity",_.fillAlpha)):_.tspan.setAttributeNS(null,"fill",_.textRenderingMode===I.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(_e===I.TextRenderingMode.STROKE||_e===I.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(_.tspan,1/(_.textMatrixScale||1));let Ce=_.textMatrix;0!==_.textRise&&(Ce=Ce.slice(),Ce[5]+=_.textRise),_.txtElement.setAttributeNS(null,"transform",`${M(Ce)} scale(${g(te)}, -1)`),_.txtElement.setAttributeNS(ce,"xml:space","preserve"),_.txtElement.appendChild(_.tspan),_.txtgrp.appendChild(_.txtElement),this._ensureTransformGroup().appendChild(_.txtElement)}setLeadingMoveText(m,_){this.setLeading(-_),this.moveText(m,_)}addFontStyle(m){if(!m.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const _=$(m.data,m.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${m.loadedName}"; src: url(${_}); }\n`}setFont(m){const _=this.current,k=this.commonObjs.get(m[0]);let O=m[1];_.font=k,this.embedFonts&&!k.missingFile&&!this.embeddedFonts[k.loadedName]&&(this.addFontStyle(k),this.embeddedFonts[k.loadedName]=k),_.fontMatrix=k.fontMatrix||I.FONT_IDENTITY_MATRIX;let H="normal";k.black?H="900":k.bold&&(H="bold");const Z=k.italic?"italic":"normal";O<0?(O=-O,_.fontDirection=-1):_.fontDirection=1,_.fontSize=O,_.fontFamily=k.loadedName,_.fontWeight=H,_.fontStyle=Z,_.tspan=this.svgFactory.createElement("svg:tspan"),_.tspan.setAttributeNS(null,"y",g(-_.y)),_.xcoords=[],_.ycoords=[]}endText(){var _;const m=this.current;m.textRenderingMode&I.TextRenderingMode.ADD_TO_PATH_FLAG&&(null==(_=m.txtElement)?void 0:_.hasChildNodes())&&(m.element=m.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(m){m>0&&(this.current.lineWidth=m)}setLineCap(m){this.current.lineCap=Q[m]}setLineJoin(m){this.current.lineJoin=T[m]}setMiterLimit(m){this.current.miterLimit=m}setStrokeAlpha(m){this.current.strokeAlpha=m}setStrokeRGBColor(m,_,k){this.current.strokeColor=I.Util.makeHexColor(m,_,k)}setFillAlpha(m){this.current.fillAlpha=m}setFillRGBColor(m,_,k){this.current.fillColor=I.Util.makeHexColor(m,_,k),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(m){this.current.strokeColor=this._makeColorN_Pattern(m)}setFillColorN(m){this.current.fillColor=this._makeColorN_Pattern(m)}shadingFill(m){const _=this.viewport.width,k=this.viewport.height,O=I.Util.inverseTransform(this.transformMatrix),H=I.Util.applyTransform([0,0],O),Z=I.Util.applyTransform([0,k],O),L=I.Util.applyTransform([_,0],O),V=I.Util.applyTransform([_,k],O),te=Math.min(H[0],Z[0],L[0],V[0]),ue=Math.min(H[1],Z[1],L[1],V[1]),fe=Math.max(H[0],Z[0],L[0],V[0]),we=Math.max(H[1],Z[1],L[1],V[1]),oe=this.svgFactory.createElement("svg:rect");oe.setAttributeNS(null,"x",te),oe.setAttributeNS(null,"y",ue),oe.setAttributeNS(null,"width",fe-te),oe.setAttributeNS(null,"height",we-ue),oe.setAttributeNS(null,"fill",this._makeShadingPattern(m)),this.current.fillAlpha<1&&oe.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(oe)}_makeColorN_Pattern(m){return"TilingPattern"===m[0]?this._makeTilingPattern(m):this._makeShadingPattern(m)}_makeTilingPattern(m){const _=m[1],k=m[2],O=m[3]||I.IDENTITY_MATRIX,[H,Z,L,V]=m[4],te=m[5],ue=m[6],fe=m[7],we="shading"+F++,[oe,Se,_e,Ce]=I.Util.normalizeRect([...I.Util.applyTransform([H,Z],O),...I.Util.applyTransform([L,V],O)]),[Be,X]=I.Util.singularValueDecompose2dScale(O),C=te*Be,y=ue*X,p=this.svgFactory.createElement("svg:pattern");p.setAttributeNS(null,"id",we),p.setAttributeNS(null,"patternUnits","userSpaceOnUse"),p.setAttributeNS(null,"width",C),p.setAttributeNS(null,"height",y),p.setAttributeNS(null,"x",`${oe}`),p.setAttributeNS(null,"y",`${Se}`);const D=this.svg,A=this.transformMatrix,N=this.current.fillColor,j=this.current.strokeColor,z=this.svgFactory.create(_e-oe,Ce-Se);if(this.svg=z,this.transformMatrix=O,2===fe){const pe=I.Util.makeHexColor(..._);this.current.fillColor=pe,this.current.strokeColor=pe}return this.executeOpTree(this.convertOpList(k)),this.svg=D,this.transformMatrix=A,this.current.fillColor=N,this.current.strokeColor=j,p.appendChild(z.childNodes[0]),this.defs.appendChild(p),`url(#${we})`}_makeShadingPattern(m){switch("string"==typeof m&&(m=this.objs.get(m)),m[0]){case"RadialAxial":const _="shading"+F++,k=m[3];let O;switch(m[1]){case"axial":const H=m[4],Z=m[5];O=this.svgFactory.createElement("svg:linearGradient"),O.setAttributeNS(null,"id",_),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"x1",H[0]),O.setAttributeNS(null,"y1",H[1]),O.setAttributeNS(null,"x2",Z[0]),O.setAttributeNS(null,"y2",Z[1]);break;case"radial":const L=m[4],V=m[5],te=m[6],ue=m[7];O=this.svgFactory.createElement("svg:radialGradient"),O.setAttributeNS(null,"id",_),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"cx",V[0]),O.setAttributeNS(null,"cy",V[1]),O.setAttributeNS(null,"r",ue),O.setAttributeNS(null,"fx",L[0]),O.setAttributeNS(null,"fy",L[1]),O.setAttributeNS(null,"fr",te);break;default:throw new Error(`Unknown RadialAxial type: ${m[1]}`)}for(const H of k){const Z=this.svgFactory.createElement("svg:stop");Z.setAttributeNS(null,"offset",H[0]),Z.setAttributeNS(null,"stop-color",H[1]),O.appendChild(Z)}return this.defs.appendChild(O),`url(#${_})`;case"Mesh":return(0,I.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${m[0]}`)}}setDash(m,_){this.current.dashArray=m,this.current.dashPhase=_}constructPath(m,_){const k=this.current;let O=k.x,H=k.y,Z=[],L=0;for(const V of m)switch(0|V){case I.OPS.rectangle:O=_[L++],H=_[L++];const fe=O+_[L++],we=H+_[L++];Z.push("M",g(O),g(H),"L",g(fe),g(H),"L",g(fe),g(we),"L",g(O),g(we),"Z");break;case I.OPS.moveTo:O=_[L++],H=_[L++],Z.push("M",g(O),g(H));break;case I.OPS.lineTo:O=_[L++],H=_[L++],Z.push("L",g(O),g(H));break;case I.OPS.curveTo:O=_[L+4],H=_[L+5],Z.push("C",g(_[L]),g(_[L+1]),g(_[L+2]),g(_[L+3]),g(O),g(H)),L+=6;break;case I.OPS.curveTo2:Z.push("C",g(O),g(H),g(_[L]),g(_[L+1]),g(_[L+2]),g(_[L+3])),O=_[L+2],H=_[L+3],L+=4;break;case I.OPS.curveTo3:O=_[L+2],H=_[L+3],Z.push("C",g(_[L]),g(_[L+1]),g(O),g(H),g(O),g(H)),L+=4;break;case I.OPS.closePath:Z.push("Z")}Z=Z.join(" "),k.path&&m.length>0&&m[0]!==I.OPS.rectangle&&m[0]!==I.OPS.moveTo?Z=k.path.getAttributeNS(null,"d")+Z:(k.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(k.path)),k.path.setAttributeNS(null,"d",Z),k.path.setAttributeNS(null,"fill","none"),k.element=k.path,k.setCurrentPoint(O,H)}endPath(){const m=this.current;if(m.path=null,!this.pendingClip)return;if(!m.element)return void(this.pendingClip=null);const _="clippath"+G++,k=this.svgFactory.createElement("svg:clipPath");k.setAttributeNS(null,"id",_),k.setAttributeNS(null,"transform",M(this.transformMatrix));const O=m.element.cloneNode(!0);if(O.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,k.appendChild(O),this.defs.appendChild(k),m.activeClipUrl){m.clipGroup=null;for(const H of this.extraStack)H.clipGroup=null;k.setAttributeNS(null,"clip-path",m.activeClipUrl)}m.activeClipUrl=`url(#${_})`,this.tgrp=null}clip(m){this.pendingClip=m}closePath(){const m=this.current;if(m.path){const _=`${m.path.getAttributeNS(null,"d")}Z`;m.path.setAttributeNS(null,"d",_)}}setLeading(m){this.current.leading=-m}setTextRise(m){this.current.textRise=m}setTextRenderingMode(m){this.current.textRenderingMode=m}setHScale(m){this.current.textHScale=m/100}setRenderingIntent(m){}setFlatness(m){}setGState(m){for(const[_,k]of m)switch(_){case"LW":this.setLineWidth(k);break;case"LC":this.setLineCap(k);break;case"LJ":this.setLineJoin(k);break;case"ML":this.setMiterLimit(k);break;case"D":this.setDash(k[0],k[1]);break;case"RI":this.setRenderingIntent(k);break;case"FL":this.setFlatness(k);break;case"Font":this.setFont(k);break;case"CA":this.setStrokeAlpha(k);break;case"ca":this.setFillAlpha(k);break;default:(0,I.warn)(`Unimplemented graphic state operator ${_}`)}}fill(){const m=this.current;m.element&&(m.element.setAttributeNS(null,"fill",m.fillColor),m.element.setAttributeNS(null,"fill-opacity",m.fillAlpha),this.endPath())}stroke(){const m=this.current;m.element&&(this._setStrokeAttributes(m.element),m.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(m,_=1){const k=this.current;let O=k.dashArray;1!==_&&O.length>0&&(O=O.map(function(H){return _*H})),m.setAttributeNS(null,"stroke",k.strokeColor),m.setAttributeNS(null,"stroke-opacity",k.strokeAlpha),m.setAttributeNS(null,"stroke-miterlimit",g(k.miterLimit)),m.setAttributeNS(null,"stroke-linecap",k.lineCap),m.setAttributeNS(null,"stroke-linejoin",k.lineJoin),m.setAttributeNS(null,"stroke-width",g(_*k.lineWidth)+"px"),m.setAttributeNS(null,"stroke-dasharray",O.map(g).join(" ")),m.setAttributeNS(null,"stroke-dashoffset",g(_*k.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const m=this.svgFactory.createElement("svg:rect");m.setAttributeNS(null,"x","0"),m.setAttributeNS(null,"y","0"),m.setAttributeNS(null,"width","1px"),m.setAttributeNS(null,"height","1px"),m.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(m)}paintImageXObject(m){const _=m.startsWith("g_")?this.commonObjs.get(m):this.objs.get(m);_?this.paintInlineImageXObject(_):(0,I.warn)(`Dependent image with object ID ${m} is not ready yet`)}paintInlineImageXObject(m,_){const k=m.width,O=m.height,H=U(m,this.forceDataSchema,!!_),Z=this.svgFactory.createElement("svg:rect");Z.setAttributeNS(null,"x","0"),Z.setAttributeNS(null,"y","0"),Z.setAttributeNS(null,"width",g(k)),Z.setAttributeNS(null,"height",g(O)),this.current.element=Z,this.clip("nonzero");const L=this.svgFactory.createElement("svg:image");L.setAttributeNS(E,"xlink:href",H),L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y",g(-O)),L.setAttributeNS(null,"width",g(k)+"px"),L.setAttributeNS(null,"height",g(O)+"px"),L.setAttributeNS(null,"transform",`scale(${g(1/k)} ${g(-1/O)})`),_?_.appendChild(L):this._ensureTransformGroup().appendChild(L)}paintImageMaskXObject(m){const _=this.current,k=m.width,O=m.height,H=_.fillColor;_.maskId="mask"+P++;const Z=this.svgFactory.createElement("svg:mask");Z.setAttributeNS(null,"id",_.maskId);const L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y","0"),L.setAttributeNS(null,"width",g(k)),L.setAttributeNS(null,"height",g(O)),L.setAttributeNS(null,"fill",H),L.setAttributeNS(null,"mask",`url(#${_.maskId})`),this.defs.appendChild(Z),this._ensureTransformGroup().appendChild(L),this.paintInlineImageXObject(m,Z)}paintFormXObjectBegin(m,_){if(Array.isArray(m)&&6===m.length&&this.transform(m[0],m[1],m[2],m[3],m[4],m[5]),_){const k=_[2]-_[0],O=_[3]-_[1],H=this.svgFactory.createElement("svg:rect");H.setAttributeNS(null,"x",_[0]),H.setAttributeNS(null,"y",_[1]),H.setAttributeNS(null,"width",g(k)),H.setAttributeNS(null,"height",g(O)),this.current.element=H,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(m){const _=this.svgFactory.create(m.width,m.height),k=this.svgFactory.createElement("svg:defs");_.appendChild(k),this.defs=k;const O=this.svgFactory.createElement("svg:g");return O.setAttributeNS(null,"transform",M(m.transform)),_.appendChild(O),this.svg=O,_}_ensureClipGroup(){if(!this.current.clipGroup){const m=this.svgFactory.createElement("svg:g");m.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(m),this.current.clipGroup=m}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",M(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFNodeStream=void 0;var I=He(1),J=He(26);const Ve=__webpack_require__(172),Te=__webpack_require__(2001),Me=__webpack_require__(3779),ce=__webpack_require__(6558),E=/^file:\/\/\/[a-zA-Z]:\//;re.PDFNodeStream=class T{constructor(F){this.source=F,this.url=function Q(P){const F=ce.parse(P);return"file:"===F.protocol||F.host?F:/^[a-z]:[/\\]/i.test(P)?ce.parse(`file:///${P}`):(F.host||(F.protocol="file:"),F)}(F.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&F.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var F,m;return null!=(m=null==(F=this._fullRequestReader)?void 0:F._loaded)?m:0}getFullReader(){return(0,I.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new M(this):new b(this),this._fullRequestReader}getRangeReader(F,m){if(m<=this._progressiveDataLength)return null;const _=this.isFsUrl?new G(this,F,m):new g(this,F,m);return this._rangeRequestReaders.push(_),_}cancelAllRequests(F){this._fullRequestReader&&this._fullRequestReader.cancel(F);for(const m of this._rangeRequestReaders.slice(0))m.cancel(F)}};class ${constructor(F){this._url=F.url,this._done=!1,this._storedError=null,this.onProgress=null;const m=F.source;this._contentLength=m.length,this._loaded=0,this._filename=null,this._disableRange=m.disableRange||!1,this._rangeChunkSize=m.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!m.disableStream,this._isRangeSupported=!m.disableRange,this._readableStream=null,this._readCapability=(0,I.createPromiseCapability)(),this._headersCapability=(0,I.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var F=this;return _asyncToGenerator(function*(){if(yield F._readCapability.promise,F._done)return{value:void 0,done:!0};if(F._storedError)throw F._storedError;const m=F._readableStream.read();return null===m?(F._readCapability=(0,I.createPromiseCapability)(),F.read()):(F._loaded+=m.length,F.onProgress&&F.onProgress({loaded:F._loaded,total:F._contentLength}),{value:new Uint8Array(m).buffer,done:!1})})()}cancel(F){this._readableStream?this._readableStream.destroy(F):this._error(F)}_error(F){this._storedError=F,this._readCapability.resolve()}_setReadableStream(F){this._readableStream=F,F.on("readable",()=>{this._readCapability.resolve()}),F.on("end",()=>{F.destroy(),this._done=!0,this._readCapability.resolve()}),F.on("error",m=>{this._error(m)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new I.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class U{constructor(F){this._url=F.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,I.createPromiseCapability)(),this._isStreamingSupported=!F.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var F=this;return _asyncToGenerator(function*(){if(yield F._readCapability.promise,F._done)return{value:void 0,done:!0};if(F._storedError)throw F._storedError;const m=F._readableStream.read();return null===m?(F._readCapability=(0,I.createPromiseCapability)(),F.read()):(F._loaded+=m.length,F.onProgress&&F.onProgress({loaded:F._loaded}),{value:new Uint8Array(m).buffer,done:!1})})()}cancel(F){this._readableStream?this._readableStream.destroy(F):this._error(F)}_error(F){this._storedError=F,this._readCapability.resolve()}_setReadableStream(F){this._readableStream=F,F.on("readable",()=>{this._readCapability.resolve()}),F.on("end",()=>{F.destroy(),this._done=!0,this._readCapability.resolve()}),F.on("error",m=>{this._error(m)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function S(P,F){return{protocol:P.protocol,auth:P.auth,host:P.hostname,port:P.port,path:P.path,method:"GET",headers:F}}class b extends ${constructor(F){super(F);const m=_=>{if(404===_.statusCode){const Z=new I.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=Z,void this._headersCapability.reject(Z)}this._headersCapability.resolve(),this._setReadableStream(_);const k=Z=>this._readableStream.headers[Z.toLowerCase()],{allowRangeRequests:O,suggestedLength:H}=(0,J.validateRangeRequestCapabilities)({getResponseHeader:k,isHttp:F.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=O,this._contentLength=H||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(k)};this._request=null,this._request="http:"===this._url.protocol?Te.request(S(this._url,F.httpHeaders),m):Me.request(S(this._url,F.httpHeaders),m),this._request.on("error",_=>{this._storedError=_,this._headersCapability.reject(_)}),this._request.end()}}class g extends U{constructor(F,m,_){super(F),this._httpHeaders={};for(const O in F.httpHeaders){const H=F.httpHeaders[O];void 0!==H&&(this._httpHeaders[O]=H)}this._httpHeaders.Range=`bytes=${m}-${_-1}`;const k=O=>{if(404!==O.statusCode)this._setReadableStream(O);else{const H=new I.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=H}};this._request=null,this._request="http:"===this._url.protocol?Te.request(S(this._url,this._httpHeaders),k):Me.request(S(this._url,this._httpHeaders),k),this._request.on("error",O=>{this._storedError=O}),this._request.end()}}class M extends ${constructor(F){super(F);let m=decodeURIComponent(this._url.path);E.test(this._url.href)&&(m=m.replace(/^\//,"")),Ve.lstat(m,(_,k)=>{if(_)return"ENOENT"===_.code&&(_=new I.MissingPDFException(`Missing PDF "${m}".`)),this._storedError=_,void this._headersCapability.reject(_);this._contentLength=k.size,this._setReadableStream(Ve.createReadStream(m)),this._headersCapability.resolve()})}}class G extends U{constructor(F,m,_){super(F);let k=decodeURIComponent(this._url.path);E.test(this._url.href)&&(k=k.replace(/^\//,"")),this._setReadableStream(Ve.createReadStream(k,{start:m,end:_-1}))}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.createResponseStatusError=function ce(Q,T){return 404===Q||0===Q&&T.startsWith("file:")?new I.MissingPDFException('Missing PDF "'+T+'".'):new I.UnexpectedResponseException(`Unexpected server response (${Q}) while retrieving PDF "${T}".`,Q)},re.extractFilenameFromHeader=function Me(Q){const T=Q("Content-Disposition");if(T){let $=(0,J.getFilenameFromContentDispositionHeader)(T);if($.includes("%"))try{$=decodeURIComponent($)}catch(U){}if((0,Ve.isPdfFile)($))return $}return null},re.validateRangeRequestCapabilities=function Te({getResponseHeader:Q,isHttp:T,rangeChunkSize:$,disableRange:U}){const S={allowRangeRequests:!1,suggestedLength:void 0},b=parseInt(Q("Content-Length"),10);return!Number.isInteger(b)||(S.suggestedLength=b,b<=2*$)||U||!T||"bytes"!==Q("Accept-Ranges")||"identity"!==(Q("Content-Encoding")||"identity")||(S.allowRangeRequests=!0),S},re.validateResponseStatus=function E(Q){return 200===Q||206===Q};var I=He(1),J=He(27),Ve=He(5)},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.getFilenameFromContentDispositionHeader=function J(Ve){let Te=!0,Me=ce("filename\\*","i").exec(Ve);if(Me){Me=Me[1];let b=$(Me);return b=unescape(b),b=U(b),b=S(b),Q(b)}if(Me=function T(b){const g=[];let M;const G=ce("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(M=G.exec(b));){let[,F,m,_]=M;if(F=parseInt(F,10),F in g){if(0===F)break}else g[F]=[m,_]}const P=[];for(let F=0;F<g.length&&F in g;++F){let[m,_]=g[F];_=$(_),m&&(_=unescape(_),0===F&&(_=U(_))),P.push(_)}return P.join("")}(Ve),Me)return Q(S(Me));if(Me=ce("filename","i").exec(Ve),Me){Me=Me[1];let b=$(Me);return b=S(b),Q(b)}function ce(b,g){return new RegExp("(?:^|;)\\s*"+b+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',g)}function E(b,g){if(b){if(!/^[\x00-\xFF]+$/.test(g))return g;try{const M=new TextDecoder(b,{fatal:!0}),G=(0,I.stringToBytes)(g);g=M.decode(G),Te=!1}catch(M){}}return g}function Q(b){return Te&&/[\x80-\xff]/.test(b)&&(b=E("utf-8",b),Te&&(b=E("iso-8859-1",b))),b}function $(b){if(b.startsWith('"')){const g=b.slice(1).split('\\"');for(let M=0;M<g.length;++M){const G=g[M].indexOf('"');-1!==G&&(g[M]=g[M].slice(0,G),g.length=M+1),g[M]=g[M].replace(/\\(.)/g,"$1")}b=g.join('"')}return b}function U(b){const g=b.indexOf("'");return-1===g?b:E(b.slice(0,g),b.slice(g+1).replace(/^[^']*'/,""))}function S(b){return!b.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(b)?b:b.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(g,M,G,P){if("q"===G||"Q"===G)return E(M,P=(P=P.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(F,m){return String.fromCharCode(parseInt(m,16))}));try{P=atob(P)}catch(F){}return E(M,P)})}return""};var I=He(1)},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFNetworkStream=void 0;var I=He(1),J=He(26);class ce{constructor(U,S={}){this.url=U,this.isHttp=/^https?:/i.test(U),this.httpHeaders=this.isHttp&&S.httpHeaders||Object.create(null),this.withCredentials=S.withCredentials||!1,this.getXhr=S.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(U,S,b){const g={begin:U,end:S};for(const M in b)g[M]=b[M];return this.request(g)}requestFull(U){return this.request(U)}request(U){const S=this.getXhr(),b=this.currXhrId++,g=this.pendingRequests[b]={xhr:S};S.open("GET",this.url),S.withCredentials=this.withCredentials;for(const M in this.httpHeaders){const G=this.httpHeaders[M];void 0!==G&&S.setRequestHeader(M,G)}return this.isHttp&&"begin"in U&&"end"in U?(S.setRequestHeader("Range",`bytes=${U.begin}-${U.end-1}`),g.expectedStatus=206):g.expectedStatus=200,S.responseType="arraybuffer",U.onError&&(S.onerror=function(M){U.onError(S.status)}),S.onreadystatechange=this.onStateChange.bind(this,b),S.onprogress=this.onProgress.bind(this,b),g.onHeadersReceived=U.onHeadersReceived,g.onDone=U.onDone,g.onError=U.onError,g.onProgress=U.onProgress,S.send(null),b}onProgress(U,S){var g;const b=this.pendingRequests[U];!b||null==(g=b.onProgress)||g.call(b,S)}onStateChange(U,S){var F,m,_;const b=this.pendingRequests[U];if(!b)return;const g=b.xhr;if(g.readyState>=2&&b.onHeadersReceived&&(b.onHeadersReceived(),delete b.onHeadersReceived),4!==g.readyState||!(U in this.pendingRequests))return;if(delete this.pendingRequests[U],0===g.status&&this.isHttp)return void(null==(F=b.onError)||F.call(b,g.status));const M=g.status||200;if((200!==M||206!==b.expectedStatus)&&M!==b.expectedStatus)return void(null==(m=b.onError)||m.call(b,g.status));const P=function Me($){const U=$.response;return"string"!=typeof U?U:(0,I.stringToBytes)(U).buffer}(g);if(206===M){const k=g.getResponseHeader("Content-Range"),O=/bytes (\d+)-(\d+)\/(\d+)/.exec(k);b.onDone({begin:parseInt(O[1],10),chunk:P})}else P?b.onDone({begin:0,chunk:P}):null==(_=b.onError)||_.call(b,g.status)}getRequestXhr(U){return this.pendingRequests[U].xhr}isPendingRequest(U){return U in this.pendingRequests}abortRequest(U){const S=this.pendingRequests[U].xhr;delete this.pendingRequests[U],S.abort()}}re.PDFNetworkStream=class E{constructor(U){this._source=U,this._manager=new ce(U.url,{httpHeaders:U.httpHeaders,withCredentials:U.withCredentials}),this._rangeChunkSize=U.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(U){const S=this._rangeRequestReaders.indexOf(U);S>=0&&this._rangeRequestReaders.splice(S,1)}getFullReader(){return(0,I.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new Q(this._manager,this._source),this._fullRequestReader}getRangeReader(U,S){const b=new T(this._manager,U,S);return b.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(b),b}cancelAllRequests(U){var S;null==(S=this._fullRequestReader)||S.cancel(U);for(const b of this._rangeRequestReaders.slice(0))b.cancel(U)}};class Q{constructor(U,S){this._manager=U;const b={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=S.url,this._fullRequestId=U.requestFull(b),this._headersReceivedCapability=(0,I.createPromiseCapability)(),this._disableRange=S.disableRange||!1,this._contentLength=S.length,this._rangeChunkSize=S.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const U=this._fullRequestId,S=this._manager.getRequestXhr(U),b=G=>S.getResponseHeader(G),{allowRangeRequests:g,suggestedLength:M}=(0,J.validateRangeRequestCapabilities)({getResponseHeader:b,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});g&&(this._isRangeSupported=!0),this._contentLength=M||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(b),this._isRangeSupported&&this._manager.abortRequest(U),this._headersReceivedCapability.resolve()}_onDone(U){if(U&&(this._requests.length>0?this._requests.shift().resolve({value:U.chunk,done:!1}):this._cachedChunks.push(U.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const S of this._requests)S.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(U){this._storedError=(0,J.createResponseStatusError)(U,this._url),this._headersReceivedCapability.reject(this._storedError);for(const S of this._requests)S.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(U){var S;null==(S=this.onProgress)||S.call(this,{loaded:U.loaded,total:U.lengthComputable?U.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var U=this;return _asyncToGenerator(function*(){if(U._storedError)throw U._storedError;if(U._cachedChunks.length>0)return{value:U._cachedChunks.shift(),done:!1};if(U._done)return{value:void 0,done:!0};const S=(0,I.createPromiseCapability)();return U._requests.push(S),S.promise})()}cancel(U){this._done=!0,this._headersReceivedCapability.reject(U);for(const S of this._requests)S.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class T{constructor(U,S,b){this._manager=U;const g={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=U.url,this._requestId=U.requestRange(S,b,g),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var U;null==(U=this.onClosed)||U.call(this,this)}_onDone(U){const S=U.chunk;this._requests.length>0?this._requests.shift().resolve({value:S,done:!1}):this._queuedChunk=S,this._done=!0;for(const b of this._requests)b.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(U){this._storedError=(0,J.createResponseStatusError)(U,this._url);for(const S of this._requests)S.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(U){var S;this.isStreamingSupported||null==(S=this.onProgress)||S.call(this,{loaded:U.loaded})}get isStreamingSupported(){return!1}read(){var U=this;return _asyncToGenerator(function*(){if(U._storedError)throw U._storedError;if(null!==U._queuedChunk){const b=U._queuedChunk;return U._queuedChunk=null,{value:b,done:!1}}if(U._done)return{value:void 0,done:!0};const S=(0,I.createPromiseCapability)();return U._requests.push(S),S.promise})()}cancel(U){this._done=!0;for(const S of this._requests)S.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(Ze,re,He)=>{Object.defineProperty(re,"__esModule",{value:!0}),re.PDFFetchStream=void 0;var I=He(1),J=He(26);function Ve(Q,T,$){return{method:"GET",headers:Q,signal:null==$?void 0:$.signal,mode:"cors",credentials:T?"include":"same-origin",redirect:"follow"}}function Te(Q){const T=new Headers;for(const $ in Q){const U=Q[$];void 0!==U&&T.append($,U)}return T}re.PDFFetchStream=class Me{constructor(T){this.source=T,this.isHttp=/^https?:/i.test(T.url),this.httpHeaders=this.isHttp&&T.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var T,$;return null!=($=null==(T=this._fullRequestReader)?void 0:T._loaded)?$:0}getFullReader(){return(0,I.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new ce(this),this._fullRequestReader}getRangeReader(T,$){if($<=this._progressiveDataLength)return null;const U=new E(this,T,$);return this._rangeRequestReaders.push(U),U}cancelAllRequests(T){this._fullRequestReader&&this._fullRequestReader.cancel(T);for(const $ of this._rangeRequestReaders.slice(0))$.cancel(T)}};class ce{constructor(T){this._stream=T,this._reader=null,this._loaded=0,this._filename=null;const $=T.source;this._withCredentials=$.withCredentials||!1,this._contentLength=$.length,this._headersCapability=(0,I.createPromiseCapability)(),this._disableRange=$.disableRange||!1,this._rangeChunkSize=$.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!$.disableStream,this._isRangeSupported=!$.disableRange,this._headers=Te(this._stream.httpHeaders);const U=$.url;fetch(U,Ve(this._headers,this._withCredentials,this._abortController)).then(S=>{if(!(0,J.validateResponseStatus)(S.status))throw(0,J.createResponseStatusError)(S.status,U);this._reader=S.body.getReader(),this._headersCapability.resolve();const b=G=>S.headers.get(G),{allowRangeRequests:g,suggestedLength:M}=(0,J.validateRangeRequestCapabilities)({getResponseHeader:b,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=g,this._contentLength=M||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(b),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new I.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var T=this;return _asyncToGenerator(function*(){yield T._headersCapability.promise;const{value:$,done:U}=yield T._reader.read();return U?{value:$,done:U}:(T._loaded+=$.byteLength,T.onProgress&&T.onProgress({loaded:T._loaded,total:T._contentLength}),{value:new Uint8Array($).buffer,done:!1})})()}cancel(T){this._reader&&this._reader.cancel(T),this._abortController&&this._abortController.abort()}}class E{constructor(T,$,U){this._stream=T,this._reader=null,this._loaded=0;const S=T.source;this._withCredentials=S.withCredentials||!1,this._readCapability=(0,I.createPromiseCapability)(),this._isStreamingSupported=!S.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=Te(this._stream.httpHeaders),this._headers.append("Range",`bytes=${$}-${U-1}`);const b=S.url;fetch(b,Ve(this._headers,this._withCredentials,this._abortController)).then(g=>{if(!(0,J.validateResponseStatus)(g.status))throw(0,J.createResponseStatusError)(g.status,b);this._readCapability.resolve(),this._reader=g.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var T=this;return _asyncToGenerator(function*(){yield T._readCapability.promise;const{value:$,done:U}=yield T._reader.read();return U?{value:$,done:U}:(T._loaded+=$.byteLength,T.onProgress&&T.onProgress({loaded:T._loaded}),{value:new Uint8Array($).buffer,done:!1})})()}cancel(T){this._reader&&this._reader.cancel(T),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(Ze){var re=__webpack_module_cache__[Ze];if(void 0!==re)return re.exports;var He=__webpack_module_cache__[Ze]={exports:{}};return __webpack_modules__[Ze](He,He.exports,__w_pdfjs_require__),He.exports}var __webpack_exports__={};return(()=>{var Ze=__webpack_exports__;Object.defineProperty(Ze,"__esModule",{value:!0}),Object.defineProperty(Ze,"AnnotationLayer",{enumerable:!0,get:function(){return J.AnnotationLayer}}),Object.defineProperty(Ze,"AnnotationMode",{enumerable:!0,get:function(){return re.AnnotationMode}}),Object.defineProperty(Ze,"CMapCompressionType",{enumerable:!0,get:function(){return re.CMapCompressionType}}),Object.defineProperty(Ze,"GlobalWorkerOptions",{enumerable:!0,get:function(){return Ve.GlobalWorkerOptions}}),Object.defineProperty(Ze,"InvalidPDFException",{enumerable:!0,get:function(){return re.InvalidPDFException}}),Object.defineProperty(Ze,"LoopbackPort",{enumerable:!0,get:function(){return He.LoopbackPort}}),Object.defineProperty(Ze,"MissingPDFException",{enumerable:!0,get:function(){return re.MissingPDFException}}),Object.defineProperty(Ze,"OPS",{enumerable:!0,get:function(){return re.OPS}}),Object.defineProperty(Ze,"PDFDataRangeTransport",{enumerable:!0,get:function(){return He.PDFDataRangeTransport}}),Object.defineProperty(Ze,"PDFDateString",{enumerable:!0,get:function(){return I.PDFDateString}}),Object.defineProperty(Ze,"PDFWorker",{enumerable:!0,get:function(){return He.PDFWorker}}),Object.defineProperty(Ze,"PasswordResponses",{enumerable:!0,get:function(){return re.PasswordResponses}}),Object.defineProperty(Ze,"PermissionFlag",{enumerable:!0,get:function(){return re.PermissionFlag}}),Object.defineProperty(Ze,"PixelsPerInch",{enumerable:!0,get:function(){return I.PixelsPerInch}}),Object.defineProperty(Ze,"RenderingCancelledException",{enumerable:!0,get:function(){return I.RenderingCancelledException}}),Object.defineProperty(Ze,"SVGGraphics",{enumerable:!0,get:function(){return ce.SVGGraphics}}),Object.defineProperty(Ze,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return re.UNSUPPORTED_FEATURES}}),Object.defineProperty(Ze,"UnexpectedResponseException",{enumerable:!0,get:function(){return re.UnexpectedResponseException}}),Object.defineProperty(Ze,"Util",{enumerable:!0,get:function(){return re.Util}}),Object.defineProperty(Ze,"VerbosityLevel",{enumerable:!0,get:function(){return re.VerbosityLevel}}),Object.defineProperty(Ze,"XfaLayer",{enumerable:!0,get:function(){return E.XfaLayer}}),Object.defineProperty(Ze,"build",{enumerable:!0,get:function(){return He.build}}),Object.defineProperty(Ze,"createPromiseCapability",{enumerable:!0,get:function(){return re.createPromiseCapability}}),Object.defineProperty(Ze,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return re.createValidAbsoluteUrl}}),Object.defineProperty(Ze,"getDocument",{enumerable:!0,get:function(){return He.getDocument}}),Object.defineProperty(Ze,"getFilenameFromUrl",{enumerable:!0,get:function(){return I.getFilenameFromUrl}}),Object.defineProperty(Ze,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return I.getPdfFilenameFromUrl}}),Object.defineProperty(Ze,"getXfaPageViewport",{enumerable:!0,get:function(){return I.getXfaPageViewport}}),Object.defineProperty(Ze,"isPdfFile",{enumerable:!0,get:function(){return I.isPdfFile}}),Object.defineProperty(Ze,"loadScript",{enumerable:!0,get:function(){return I.loadScript}}),Object.defineProperty(Ze,"renderTextLayer",{enumerable:!0,get:function(){return Me.renderTextLayer}}),Object.defineProperty(Ze,"shadow",{enumerable:!0,get:function(){return re.shadow}}),Object.defineProperty(Ze,"version",{enumerable:!0,get:function(){return He.version}});var re=__w_pdfjs_require__(1),He=__w_pdfjs_require__(4),I=__w_pdfjs_require__(5),J=__w_pdfjs_require__(20),Ve=__w_pdfjs_require__(13),Te=__w_pdfjs_require__(3),Me=__w_pdfjs_require__(23),ce=__w_pdfjs_require__(24),E=__w_pdfjs_require__(22);if(Te.isNodeJS){const{PDFNodeStream:$}=__w_pdfjs_require__(25);(0,He.setPDFNetworkStreamFactory)(U=>new $(U))}else{const{PDFNetworkStream:$}=__w_pdfjs_require__(28),{PDFFetchStream:U}=__w_pdfjs_require__(29);(0,He.setPDFNetworkStreamFactory)(S=>(0,I.isValidFetchUrl)(S.url)?new U(S):new $(S))}})(),__webpack_exports__})(),module.exports=He()},2813:function(Ze,re,He){var Te,I=He(7156).default;Te=()=>(()=>{"use strict";var J=[,(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.DefaultXfaLayerFactory=E.DefaultTextLayerFactory=E.DefaultStructTreeLayerFactory=E.DefaultAnnotationLayerFactory=void 0;var T=Q(2),$=Q(4),U=Q(5),S=Q(7),b=Q(8),g=Q(9);E.DefaultAnnotationLayerFactory=class M{createAnnotationLayerBuilder(_,k,O=null,H="",Z=!0,L=$.NullL10n,V=!1,te=null,ue=null,fe=null,we=null){return new T.AnnotationLayerBuilder({pageDiv:_,pdfPage:k,imageResourcesPath:H,renderForms:Z,linkService:new U.SimpleLinkService,l10n:L,annotationStorage:O,enableScripting:V,hasJSActionsPromise:te,fieldObjectsPromise:fe,mouseState:ue,annotationCanvasMap:we})}},E.DefaultStructTreeLayerFactory=class G{createStructTreeLayerBuilder(_){return new S.StructTreeLayerBuilder({pdfPage:_})}},E.DefaultTextLayerFactory=class P{createTextLayerBuilder(_,k,O,H=!1,Z,L){return new b.TextLayerBuilder({textLayerDiv:_,pageIndex:k,viewport:O,enhanceTextSelection:H,eventBus:Z,highlighter:L})}},E.DefaultXfaLayerFactory=class F{createXfaLayerBuilder(_,k,O=null,H=null){return new g.XfaLayerBuilder({pageDiv:_,pdfPage:k,annotationStorage:O,linkService:new U.SimpleLinkService,xfaHtml:H})}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.AnnotationLayerBuilder=void 0;var T=Q(3),$=Q(4);E.AnnotationLayerBuilder=class U{constructor({pageDiv:b,pdfPage:g,linkService:M,downloadManager:G,annotationStorage:P=null,imageResourcesPath:F="",renderForms:m=!0,l10n:_=$.NullL10n,enableScripting:k=!1,hasJSActionsPromise:O=null,fieldObjectsPromise:H=null,mouseState:Z=null,annotationCanvasMap:L=null}){this.pageDiv=b,this.pdfPage=g,this.linkService=M,this.downloadManager=G,this.imageResourcesPath=F,this.renderForms=m,this.l10n=_,this.annotationStorage=P,this.enableScripting=k,this._hasJSActionsPromise=O,this._fieldObjectsPromise=H,this._mouseState=Z,this._annotationCanvasMap=L,this.div=null,this._cancelled=!1}render(b,g="display"){var M=this;return I(function*(){const[G,P=!1,F=null]=yield Promise.all([M.pdfPage.getAnnotations({intent:g}),M._hasJSActionsPromise,M._fieldObjectsPromise]);if(M._cancelled||0===G.length)return;const m={viewport:b.clone({dontFlip:!0}),div:M.div,annotations:G,page:M.pdfPage,imageResourcesPath:M.imageResourcesPath,renderForms:M.renderForms,linkService:M.linkService,downloadManager:M.downloadManager,annotationStorage:M.annotationStorage,enableScripting:M.enableScripting,hasJSActions:P,fieldObjects:F,mouseState:M._mouseState,annotationCanvasMap:M._annotationCanvasMap};M.div?T.AnnotationLayer.update(m):(M.div=document.createElement("div"),M.div.className="annotationLayer",M.pageDiv.appendChild(M.div),m.div=M.div,T.AnnotationLayer.render(m),M.l10n.translate(M.div))})()}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},ce=>{let E;E="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:He(6036),ce.exports=E},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.NullL10n=void 0,E.fixupLangCode=function U(g){return $[null==g?void 0:g.toLowerCase()]||g},E.getL10nFallback=T;const Q={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading\u2026",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts."};function T(g,M){switch(g){case"find_match_count":g=`find_match_count[${1===M.total?"one":"other"}]`;break;case"find_match_count_limit":g=`find_match_count_limit[${1===M.limit?"one":"other"}]`}return Q[g]||""}const $={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};E.NullL10n={getLanguage:()=>I(function*(){return"en-us"})(),getDirection:()=>I(function*(){return"ltr"})(),get:(g,M=null,G=T(g,M))=>I(function*(){return function S(g,M){return M?g.replace(/\{\{\s*(\w+)\s*\}\}/g,(G,P)=>P in M?M[P]:"{{"+P+"}}"):g}(G,M)})(),translate:g=>I(function*(){})()}},(ce,E,Q)=>{var M,G,j1,F,sz;Object.defineProperty(E,"__esModule",{value:!0}),E.SimpleLinkService=E.PDFLinkService=E.LinkTarget=void 0;var T=Q(6);const U={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function S(k,{url:O,target:H,rel:Z,enabled:L=!0}={}){if(!O||"string"!=typeof O)throw new Error('A valid "url" parameter must provided.');const V=(0,T.removeNullCharacters)(O);L?k.href=k.title=V:(k.href="",k.title=`Disabled: ${V}`,k.onclick=()=>!1);let te="";switch(H){case U.NONE:break;case U.SELF:te="_self";break;case U.BLANK:te="_blank";break;case U.PARENT:te="_parent";break;case U.TOP:te="_top"}k.target=te,k.rel="string"==typeof Z?Z:"noopener noreferrer nofollow"}E.LinkTarget=U;const _=class{constructor({eventBus:O,externalLinkTarget:H=null,externalLinkRel:Z=null,ignoreDestinationZoom:L=!1}={}){Gt(this,G),Gt(this,M,new Map),this.eventBus=O,this.externalLinkTarget=H,this.externalLinkRel=Z,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=L,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(O,H=null){this.baseUrl=H,this.pdfDocument=O,Rt(this,M).clear()}setViewer(O){this.pdfViewer=O}setHistory(O){this.pdfHistory=O}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(O){this.pdfViewer.currentPageNumber=O}get rotation(){return this.pdfViewer.pagesRotation}set rotation(O){this.pdfViewer.pagesRotation=O}goToDestination(O){var H=this;return I(function*(){var V;if(!H.pdfDocument)return;let Z,L;"string"==typeof O?(Z=O,L=yield H.pdfDocument.getDestination(O)):(Z=null,L=yield O),Array.isArray(L)?Nt(V=H,G,j1).call(V,O,Z,L):console.error(`PDFLinkService.goToDestination: "${L}" is not a valid destination array, for dest="${O}".`)})()}goToPage(O){if(!this.pdfDocument)return;const H="string"==typeof O&&this.pdfViewer.pageLabelToPageNumber(O)||0|O;Number.isInteger(H)&&H>0&&H<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(H)),this.pdfViewer.scrollPageIntoView({pageNumber:H})):console.error(`PDFLinkService.goToPage: "${O}" is not a valid page.`)}addLinkAttributes(O,H,Z=!1){S(O,{url:H,target:Z?U.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(O){if("string"==typeof O){if(O.length>0)return this.getAnchorUrl("#"+escape(O))}else if(Array.isArray(O)){const H=JSON.stringify(O);if(H.length>0)return this.getAnchorUrl("#"+escape(H))}return this.getAnchorUrl("")}getAnchorUrl(O){return(this.baseUrl||"")+O}setHash(O){var L;if(!this.pdfDocument)return;let H,Z;if(O.includes("=")){const V=(0,T.parseQueryString)(O);if(V.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:V.get("search").replace(/"/g,""),phraseSearch:"true"===V.get("phrase")}),V.has("page")&&(H=0|V.get("page")||1),V.has("zoom")){const te=V.get("zoom").split(","),ue=te[0],fe=parseFloat(ue);ue.includes("Fit")?"Fit"===ue||"FitB"===ue?Z=[null,{name:ue}]:"FitH"===ue||"FitBH"===ue||"FitV"===ue||"FitBV"===ue?Z=[null,{name:ue},te.length>1?0|te[1]:null]:"FitR"===ue?5!==te.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):Z=[null,{name:ue},0|te[1],0|te[2],0|te[3],0|te[4]]:console.error(`PDFLinkService.setHash: "${ue}" is not a valid zoom value.`):Z=[null,{name:"XYZ"},te.length>1?0|te[1]:null,te.length>2?0|te[2]:null,fe?fe/100:ue]}Z?this.pdfViewer.scrollPageIntoView({pageNumber:H||this.page,destArray:Z,allowNegativeOffset:!0}):H&&(this.page=H),V.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:V.get("pagemode")}),V.has("nameddest")&&this.goToDestination(V.get("nameddest"))}else{Z=unescape(O);try{Z=JSON.parse(Z),Array.isArray(Z)||(Z=Z.toString())}catch(V){}if("string"==typeof Z||Nt(L=_,F,sz).call(L,Z))return void this.goToDestination(Z);console.error(`PDFLinkService.setHash: "${unescape(O)}" is not a valid destination.`)}}executeNamedAction(O){var H,Z;switch(O){case"GoBack":null==(H=this.pdfHistory)||H.back();break;case"GoForward":null==(Z=this.pdfHistory)||Z.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:O})}cachePageRef(O,H){if(!H)return;const Z=0===H.gen?`${H.num}R`:`${H.num}R${H.gen}`;Rt(this,M).set(Z,O)}_cachedPageNumber(O){if(!O)return null;const H=0===O.gen?`${O.num}R`:`${O.num}R${O.gen}`;return Rt(this,M).get(H)||null}isPageVisible(O){return this.pdfViewer.isPageVisible(O)}isPageCached(O){return this.pdfViewer.isPageCached(O)}};let b=_;M=new WeakMap,G=new WeakSet,j1=function(O,H=null,Z){const L=Z[0];let V;if("object"==typeof L&&null!==L){if(V=this._cachedPageNumber(L),!V)return void this.pdfDocument.getPageIndex(L).then(te=>{this.cachePageRef(te+1,L),Nt(this,G,j1).call(this,O,H,Z)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${L}" is not a valid page reference, for dest="${O}".`)})}else{if(!Number.isInteger(L))return void console.error(`PDFLinkService.#goToDestinationHelper: "${L}" is not a valid destination reference, for dest="${O}".`);V=L+1}!V||V<1||V>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${V}" is not a valid page number, for dest="${O}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:H,explicitDest:Z,pageNumber:V})),this.pdfViewer.scrollPageIntoView({pageNumber:V,destArray:Z,ignoreDestinationZoom:this._ignoreDestinationZoom}))},F=new WeakSet,sz=function(O){if(!Array.isArray(O))return!1;const H=O.length;if(H<2)return!1;const Z=O[0];if(!("object"==typeof Z&&Number.isInteger(Z.num)&&Number.isInteger(Z.gen)||Number.isInteger(Z)&&Z>=0))return!1;const L=O[1];if("object"!=typeof L||"string"!=typeof L.name)return!1;let V=!0;switch(L.name){case"XYZ":if(5!==H)return!1;break;case"Fit":case"FitB":return 2===H;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==H)return!1;break;case"FitR":if(6!==H)return!1;V=!1;break;default:return!1}for(let te=2;te<H;te++){const ue=O[te];if(!("number"==typeof ue||V&&null===ue))return!1}return!0},Gt(b,F),E.PDFLinkService=b,E.SimpleLinkService=class g{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(O){}get rotation(){return 0}set rotation(O){}goToDestination(O){return I(function*(){})()}goToPage(O){}addLinkAttributes(O,H,Z=!1){S(O,{url:H,enabled:this.externalLinkEnabled})}getDestinationHash(O){return"#"}getAnchorUrl(O){return"#"}setHash(O){}executeNamedAction(O){}cachePageRef(O,H){}isPageVisible(O){return!0}isPageCached(O){return!0}}},(ce,E)=>{var Ue,oz;Object.defineProperty(E,"__esModule",{value:!0}),E.animationStarted=E.VERTICAL_PADDING=E.UNKNOWN_SCALE=E.TextLayerMode=E.SpreadMode=E.SidebarView=E.ScrollMode=E.SCROLLBAR_PADDING=E.RenderingStates=E.RendererType=E.ProgressBar=E.PresentationModeState=E.OutputScale=E.MIN_SCALE=E.MAX_SCALE=E.MAX_AUTO_SCALE=E.DEFAULT_SCALE_VALUE=E.DEFAULT_SCALE_DELTA=E.DEFAULT_SCALE=E.AutoPrintRegExp=void 0,E.apiPageLayoutToViewerModes=function ke(De){let je=O.VERTICAL,ze=H.NONE;switch(De){case"SinglePage":je=O.PAGE;break;case"OneColumn":break;case"TwoPageLeft":je=O.PAGE;case"TwoColumnLeft":ze=H.ODD;break;case"TwoPageRight":je=O.PAGE;case"TwoColumnRight":ze=H.EVEN}return{scrollMode:je,spreadMode:ze}},E.apiPageModeToSidebarView=function Ae(De){switch(De){case"UseNone":return m.NONE;case"UseThumbs":return m.THUMBS;case"UseOutlines":return m.OUTLINE;case"UseAttachments":return m.ATTACHMENTS;case"UseOC":return m.LAYERS}return m.NONE},E.approximateFraction=function _e(De){if(Math.floor(De)===De)return[De,1];const je=1/De;if(je>8)return[1,8];if(Math.floor(je)===je)return[1,je];const q=De>1?je:De;let Ke,le=0,Ee=1,Xe=1,Ye=1;for(;;){const ut=le+Xe,pt=Ee+Ye;if(pt>8)break;q<=ut/pt?(Xe=ut,Ye=pt):(le=ut,Ee=pt)}return Ke=q-le/Ee<Xe/Ye-q?q===De?[le,Ee]:[Ee,le]:q===De?[Xe,Ye]:[Ye,Xe],Ke},E.backtrackBeforeAllVisibleElements=X,E.binarySearchFirstItem=Se,E.getActiveOrFocusedElement=function ye(){let De=document,je=De.activeElement||De.querySelector(":focus");for(;null!=je&&je.shadowRoot;)De=je.shadowRoot,je=De.activeElement||De.querySelector(":focus");return je},E.getPageSizeInches=function Be({view:De,userUnit:je,rotate:ze}){const[q,le,Ee,Xe]=De,Ye=ze%180!=0,Ke=(Ee-q)/72*je,ut=(Xe-le)/72*je;return{width:Ye?ut:Ke,height:Ye?Ke:ut}},E.getVisibleElements=function C({scrollEl:De,views:je,sortByVisibility:ze=!1,horizontal:q=!1,rtl:le=!1}){const Ee=De.scrollTop,Xe=Ee+De.clientHeight,Ye=De.scrollLeft,Ke=Ye+De.clientWidth,Vt=[],ln=new Set,Tn=je.length;let Ne=Se(je,q?function pt(tt){const at=tt.div,gt=at.offsetLeft+at.clientLeft;return le?gt<Ke:gt+at.clientWidth>Ye}:function ut(tt){const at=tt.div;return at.offsetTop+at.clientTop+at.clientHeight>Ee});Ne>0&&Ne<Tn&&!q&&(Ne=X(Ne,je,Ee));let ae=q?Ke:-1;for(let tt=Ne;tt<Tn;tt++){const at=je[tt],gt=at.div,hn=gt.offsetLeft+gt.clientLeft,yn=gt.offsetTop+gt.clientTop,hi=gt.clientWidth,Fn=gt.clientHeight,Li=hn+hi,bi=yn+Fn;if(-1===ae)bi>=Xe&&(ae=bi);else if((q?hn:yn)>ae)break;if(bi<=Ee||yn>=Xe||Li<=Ye||hn>=Ke)continue;const ms=Math.max(0,Ee-yn)+Math.max(0,bi-Xe),Fs=(hi-(Math.max(0,Ye-hn)+Math.max(0,Li-Ke)))/hi;Vt.push({id:at.id,x:hn,y:yn,view:at,percent:(Fn-ms)/Fn*Fs*100|0,widthPercent:100*Fs|0}),ln.add(at.id)}const de=Vt[0],$e=Vt[Vt.length-1];return ze&&Vt.sort(function(tt,at){const gt=tt.percent-at.percent;return Math.abs(gt)>.001?-gt:tt.id-at.id}),{first:de,last:$e,views:Vt,ids:ln}},E.isPortraitOrientation=function z(De){return De.width<=De.height},E.isValidRotation=function A(De){return Number.isInteger(De)&&De%90==0},E.isValidScrollMode=function N(De){return Number.isInteger(De)&&Object.values(O).includes(De)&&De!==O.UNKNOWN},E.isValidSpreadMode=function j(De){return Number.isInteger(De)&&Object.values(H).includes(De)&&De!==H.UNKNOWN},E.noContextMenuHandler=function y(De){De.preventDefault()},E.normalizeWheelEventDelta=function D(De){let je=p(De);return 0===De.deltaMode?je/=900:1===De.deltaMode&&(je/=30),je},E.normalizeWheelEventDirection=p,E.parseQueryString=function ue(De){const je=new Map;for(const[ze,q]of new URLSearchParams(De))je.set(ze.toLowerCase(),q);return je},E.removeNullCharacters=function oe(De,je=!1){return"string"!=typeof De?(console.error("The argument must be a string."),De):(je&&(De=De.replace(we," ")),De.replace(fe,""))},E.roundToDivide=function Ce(De,je){const ze=De%je;return 0===ze?De:Math.round(De-ze+je)},E.scrollIntoView=function V(De,je,ze=!1){let q=De.offsetParent;if(!q)return void console.error("offsetParent is not set -- cannot scroll");let le=De.offsetTop+De.clientTop,Ee=De.offsetLeft+De.clientLeft;for(;q.clientHeight===q.scrollHeight&&q.clientWidth===q.scrollWidth||ze&&(q.classList.contains("markedContent")||"hidden"===getComputedStyle(q).overflow);)if(le+=q.offsetTop,Ee+=q.offsetLeft,q=q.offsetParent,!q)return;je&&(void 0!==je.top&&(le+=je.top),void 0!==je.left&&(Ee+=je.left,q.scrollLeft=Ee)),q.scrollTop=le},E.watchScroll=function te(De,je){const ze=function(Ee){le||(le=window.requestAnimationFrame(function(){le=null;const Ye=De.scrollLeft,Ke=q.lastX;Ye!==Ke&&(q.right=Ye>Ke),q.lastX=Ye;const ut=De.scrollTop,pt=q.lastY;ut!==pt&&(q.down=ut>pt),q.lastY=ut,je(q)}))},q={right:!0,down:!0,lastX:De.scrollLeft,lastY:De.scrollTop,_eventHandler:ze};let le=null;return De.addEventListener("scroll",ze,!0),q},E.DEFAULT_SCALE_VALUE="auto",E.DEFAULT_SCALE=1,E.DEFAULT_SCALE_DELTA=1.1,E.MIN_SCALE=.1,E.MAX_SCALE=10,E.UNKNOWN_SCALE=0,E.MAX_AUTO_SCALE=1.25,E.SCROLLBAR_PADDING=40,E.VERTICAL_PADDING=5,E.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},E.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const m={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};E.SidebarView=m,E.RendererType={CANVAS:"canvas",SVG:"svg"},E.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const O={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};E.ScrollMode=O;const H={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};E.SpreadMode=H,E.AutoPrintRegExp=/\bprint\s*\(/,E.OutputScale=class L{constructor(){const je=window.devicePixelRatio||1;this.sx=je,this.sy=je}get scaled(){return 1!==this.sx||1!==this.sy}};const fe=/\x00/g,we=/[\x01-\x1F]/g;function Se(De,je,ze=0){let q=ze,le=De.length-1;if(le<0||!je(De[le]))return De.length;if(je(De[q]))return q;for(;q<le;){const Ee=q+le>>1;je(De[Ee])?le=Ee:q=Ee+1}return q}function X(De,je,ze){if(De<2)return De;let q=je[De].div,le=q.offsetTop+q.clientTop;le>=ze&&(q=je[De-1].div,le=q.offsetTop+q.clientTop);for(let Ee=De-2;Ee>=0&&(q=je[Ee].div,!(q.offsetTop+q.clientTop+q.clientHeight<=le));--Ee)De=Ee;return De}function p(De){let je=Math.hypot(De.deltaX,De.deltaY);const ze=Math.atan2(De.deltaY,De.deltaX);return-.25*Math.PI<ze&&ze<.75*Math.PI&&(je=-je),je}const pe=new Promise(function(De){window.requestAnimationFrame(De)});E.animationStarted=pe,Ue=new WeakSet,oz=function(){this._indeterminate?this.div.classList.add("indeterminate"):(this.div.classList.remove("indeterminate"),document.documentElement.style.setProperty("--progressBar-percent",`${this._percent}%`))},E.ProgressBar=class ge{constructor(je){if(Gt(this,Ue),arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");this.visible=!0,this.div=document.querySelector(je+" .progress"),this.bar=this.div.parentNode,this.percent=0}get percent(){return this._percent}set percent(je){this._indeterminate=isNaN(je),this._percent=function he(De,je,ze){return Math.min(Math.max(De,je),ze)}(je,0,100),Nt(this,Ue,oz).call(this)}setWidth(je){if(!je)return;const q=je.parentNode.offsetWidth-je.offsetWidth;q>0&&document.documentElement.style.setProperty("--progressBar-end-offset",`${q}px`)}hide(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"))}show(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.StructTreeLayerBuilder=void 0;const Q={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},T=/^H(\d+)$/;E.StructTreeLayerBuilder=class ${constructor({pdfPage:S}){this.pdfPage=S}render(S){return this._walk(S)}_setAttributes(S,b){void 0!==S.alt&&b.setAttribute("aria-label",S.alt),void 0!==S.id&&b.setAttribute("aria-owns",S.id),void 0!==S.lang&&b.setAttribute("lang",S.lang)}_walk(S){if(!S)return null;const b=document.createElement("span");if("role"in S){const{role:g}=S,M=g.match(T);M?(b.setAttribute("role","heading"),b.setAttribute("aria-level",M[1])):Q[g]&&b.setAttribute("role",Q[g])}if(this._setAttributes(S,b),S.children)if(1===S.children.length&&"id"in S.children[0])this._setAttributes(S.children[0],b);else for(const g of S.children)b.appendChild(this._walk(g));return b}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.TextLayerBuilder=void 0;var T=Q(3);E.TextLayerBuilder=class U{constructor({textLayerDiv:b,eventBus:g,pageIndex:M,viewport:G,highlighter:P=null,enhanceTextSelection:F=!1}){this.textLayerDiv=b,this.eventBus=g,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=M+1,this.viewport=G,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=P,this.enhanceTextSelection=F,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const b=document.createElement("div");b.className="endOfContent",this.textLayerDiv.appendChild(b)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(b=0){var M;if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,null==(M=this.highlighter)||M.setTextMapping(this.textDivs,this.textContentItemsStr);const g=document.createDocumentFragment();this.textLayerRenderTask=(0,T.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:g,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:b,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{var G;this.textLayerDiv.appendChild(g),this._finishRendering(),null==(G=this.highlighter)||G.enable()},function(G){})}cancel(){var b;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),null==(b=this.highlighter)||b.disable()}setTextContentStream(b){this.cancel(),this.textContentStream=b}setTextContent(b){this.cancel(),this.textContent=b}_bindMouse(){const b=this.textLayerDiv;let g=null;b.addEventListener("mousedown",M=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(g&&(clearTimeout(g),g=null));const G=b.querySelector(".endOfContent");if(!G)return;let P=M.target!==b;if(P=P&&"none"!==window.getComputedStyle(G).getPropertyValue("-moz-user-select"),P){const F=b.getBoundingClientRect(),m=Math.max(0,(M.pageY-F.top)/F.height);G.style.top=(100*m).toFixed(2)+"%"}G.classList.add("active")}),b.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(g=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),g=null},300));const M=b.querySelector(".endOfContent");!M||(M.style.top="",M.classList.remove("active"))})}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.XfaLayerBuilder=void 0;var T=Q(3);E.XfaLayerBuilder=class ${constructor({pageDiv:S,pdfPage:b,annotationStorage:g=null,linkService:M,xfaHtml:G=null}){this.pageDiv=S,this.pdfPage=b,this.annotationStorage=g,this.linkService=M,this.xfaHtml=G,this.div=null,this._cancelled=!1}render(S,b="display"){if("print"===b){const g={viewport:S.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:b},M=document.createElement("div");this.pageDiv.appendChild(M),g.div=M;const G=T.XfaLayer.render(g);return Promise.resolve(G)}return this.pdfPage.getXfa().then(g=>{if(this._cancelled||!g)return{textDivs:[]};const M={viewport:S.clone({dontFlip:!0}),div:this.div,xfaHtml:g,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:b};return this.div?T.XfaLayer.update(M):(this.div=document.createElement("div"),this.pageDiv.appendChild(this.div),M.div=this.div,T.XfaLayer.render(M))}).catch(g=>{console.error(g)})}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFViewer=E.PDFSinglePageViewer=void 0;var T=Q(6),$=Q(11);E.PDFViewer=class U extends $.BaseViewer{},E.PDFSinglePageViewer=class S extends $.BaseViewer{_resetView(){super._resetView(),this._scrollMode=T.ScrollMode.PAGE,this._spreadMode=T.SpreadMode.NONE}set scrollMode(g){}_updateScrollMode(){}set spreadMode(g){}_updateSpreadMode(){}}},(ce,E,Q)=>{var L,V,te,W1,fe,we,oe,Se,_e,Ce,Be,X,az,y,lz,D,Fg,N,mC,z,cz,he,$1,ye,uz,Ae,dz,st,hz;Object.defineProperty(E,"__esModule",{value:!0}),E.PagesCountLimit=E.PDFPageViewBuffer=E.BaseViewer=void 0;var T=Q(3),$=Q(6),U=Q(2),S=Q(4),b=Q(12),g=Q(14),M=Q(5),G=Q(7),P=Q(15),F=Q(8),m=Q(9);const k="enablePermissions",O={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};E.PagesCountLimit=O;class H{constructor(q){Gt(this,te),Gt(this,L,new Set),Gt(this,V,0),Fi(this,V,q)}push(q){const le=Rt(this,L);le.has(q)&&le.delete(q),le.add(q),le.size>Rt(this,V)&&Nt(this,te,W1).call(this)}resize(q,le=null){Fi(this,V,q);const Ee=Rt(this,L);if(le){const Xe=Ee.size;let Ye=1;for(const Ke of Ee)if(le.has(Ke.id)&&(Ee.delete(Ke),Ee.add(Ke)),++Ye>Xe)break}for(;Ee.size>Rt(this,V);)Nt(this,te,W1).call(this)}has(q){return Rt(this,L).has(q)}[Symbol.iterator](){return Rt(this,L).keys()}}L=new WeakMap,V=new WeakMap,te=new WeakSet,W1=function(){const q=Rt(this,L).keys().next().value;null==q||q.destroy(),Rt(this,L).delete(q)},E.PDFPageViewBuffer=H;const je=class{constructor(q){var Ee,Xe,Ye,Ke;if(Gt(this,X),Gt(this,y),Gt(this,D),Gt(this,N),Gt(this,z),Gt(this,he),Gt(this,ye),Gt(this,Ae),Gt(this,st),Gt(this,fe,null),Gt(this,we,T.AnnotationMode.ENABLE_FORMS),Gt(this,oe,null),Gt(this,Se,!1),Gt(this,_e,0),Gt(this,Ce,null),Gt(this,Be,null),this.constructor===je)throw new Error("Cannot initialize BaseViewer.");const le="2.14.305";if(T.version!==le)throw new Error(`The API version "${T.version}" does not match the Viewer version "${le}".`);if(this.container=q.container,this.viewer=q.viewer||q.container.firstElementChild,"DIV"!==(null==(Ee=this.container)?void 0:Ee.tagName.toUpperCase())||"DIV"!==(null==(Xe=this.viewer)?void 0:Xe.tagName.toUpperCase()))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=q.eventBus,this.linkService=q.linkService||new M.SimpleLinkService,this.downloadManager=q.downloadManager||null,this.findController=q.findController||null,this._scriptingManager=q.scriptingManager||null,this.removePageBorders=q.removePageBorders||!1,this.textLayerMode=null!=(Ye=q.textLayerMode)?Ye:$.TextLayerMode.ENABLE,Fi(this,we,null!=(Ke=q.annotationMode)?Ke:T.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=q.imageResourcesPath||"",this.enablePrintAutoRotate=q.enablePrintAutoRotate||!1,this.renderer=q.renderer||$.RendererType.CANVAS,this.useOnlyCssZoom=q.useOnlyCssZoom||!1,this.maxCanvasPixels=q.maxCanvasPixels,this.l10n=q.l10n||S.NullL10n,Fi(this,Se,q.enablePermissions||!1),this.pageColors=q.pageColors||null,q.pageColors&&(!CSS.supports("color",q.pageColors.background)||!CSS.supports("color",q.pageColors.foreground))&&((q.pageColors.background||q.pageColors.foreground)&&console.warn("Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!q.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new g.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=q.renderingQueue,this._doc=document.documentElement,this.scroll=(0,$.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=$.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss(),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(q){return this._pages[q]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(q){return null==q?void 0:q.pdfPage})}get renderForms(){return Rt(this,we)===T.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(q){if(!Number.isInteger(q))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(q,!0)||console.error(`currentPageNumber: "${q}" is not a valid page.`)}_setCurrentPageNumber(q,le=!1){var Xe,Ye;if(this._currentPageNumber===q)return le&&Nt(this,he,$1).call(this),!0;if(!(0<q&&q<=this.pagesCount))return!1;const Ee=this._currentPageNumber;return this._currentPageNumber=q,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:q,pageLabel:null!=(Ye=null==(Xe=this._pageLabels)?void 0:Xe[q-1])?Ye:null,previous:Ee}),le&&Nt(this,he,$1).call(this),!0}get currentPageLabel(){var q,le;return null!=(le=null==(q=this._pageLabels)?void 0:q[this._currentPageNumber-1])?le:null}set currentPageLabel(q){if(!this.pdfDocument)return;let le=0|q;if(this._pageLabels){const Ee=this._pageLabels.indexOf(q);Ee>=0&&(le=Ee+1)}this._setCurrentPageNumber(le,!0)||console.error(`currentPageLabel: "${q}" is not a valid page.`)}get currentScale(){return this._currentScale!==$.UNKNOWN_SCALE?this._currentScale:$.DEFAULT_SCALE}set currentScale(q){if(isNaN(q))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(q,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(q){!this.pdfDocument||this._setScale(q,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(q){if(!(0,$.isValidRotation)(q))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||((q%=360)<0&&(q+=360),this._pagesRotation===q))return;this._pagesRotation=q;const le=this._currentPageNumber,Ee={rotation:q};for(const Xe of this._pages)Xe.update(Ee);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:q,pageNumber:le}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}setDocument(q){var le=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null)),this.pdfDocument=q,!q)return;const Ee=q.isPureXfa,Xe=q.numPages,Ye=q.getPage(1),Ke=q.getOptionalContentConfig(),ut=Rt(this,Se)?q.getPermissions():Promise.resolve();if(Xe>O.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const pt=this._scrollMode=$.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:pt})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:Xe})},()=>{}),this._onBeforeDraw=pt=>{const Vt=this._pages[pt.pageNumber-1];!Vt||Rt(this,fe).push(Vt)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=pt=>{pt.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:pt.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,Rt(this,Be)&&(document.removeEventListener("visibilitychange",Rt(this,Be)),Fi(this,Be,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([Ye,ut]).then(([pt,Vt])=>{if(q!==this.pdfDocument)return;this._firstPageCapability.resolve(pt),this._optionalContentConfigPromise=Ke,Nt(this,X,az).call(this,Vt);const ln=this._scrollMode===$.ScrollMode.PAGE?null:this.viewer,Tn=this.currentScale,Ne=pt.getViewport({scale:Tn*T.PixelsPerInch.PDF_TO_CSS_UNITS}),ae=this.textLayerMode===$.TextLayerMode.DISABLE||Ee?null:this,de=Rt(this,we)!==T.AnnotationMode.DISABLE?this:null,$e=Ee?this:null;for(let at=1;at<=Xe;++at){const gt=new b.PDFPageView({container:ln,eventBus:this.eventBus,id:at,scale:Tn,defaultViewport:Ne.clone(),optionalContentConfigPromise:Ke,renderingQueue:this.renderingQueue,textLayerFactory:ae,textLayerMode:this.textLayerMode,annotationLayerFactory:de,annotationMode:Rt(this,we),xfaLayerFactory:$e,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(gt)}const tt=this._pages[0];tt&&(tt.setPdfPage(pt),this.linkService.cachePageRef(1,pt.ref)),this._scrollMode===$.ScrollMode.PAGE?Nt(this,D,Fg).call(this):this._spreadMode!==$.SpreadMode.NONE&&this._updateSpreadMode(),Nt(this,y,lz).call(this).then(I(function*(){if(le.findController&&le.findController.setDocument(q),le._scriptingManager&&le._scriptingManager.setDocument(q),q.loadingParams.disableAutoFetch||Xe>O.FORCE_LAZY_PAGE_INIT)return void le._pagesCapability.resolve();let at=Xe-1;if(at<=0)le._pagesCapability.resolve();else for(let gt=2;gt<=Xe;++gt){const hn=q.getPage(gt).then(yn=>{const hi=le._pages[gt-1];hi.pdfPage||hi.setPdfPage(yn),le.linkService.cachePageRef(gt,yn.ref),0==--at&&le._pagesCapability.resolve()},yn=>{console.error(`Unable to get page ${gt} to initialize viewer`,yn),0==--at&&le._pagesCapability.resolve()});gt%O.PAUSE_EAGER_PAGE_INIT==0&&(yield hn)}})),this.eventBus.dispatch("pagesinit",{source:this}),q.getMetadata().then(({info:at})=>{q===this.pdfDocument&&at.Language&&(this.viewer.lang=at.Language)}),this.defaultRenderingQueue&&this.update()}).catch(pt=>{console.error("Unable to initialize viewer",pt),this._pagesCapability.reject(pt)})}setPageLabels(q){var le,Ee;if(this.pdfDocument){q?Array.isArray(q)&&this.pdfDocument.numPages===q.length?this._pageLabels=q:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let Xe=0,Ye=this._pages.length;Xe<Ye;Xe++)this._pages[Xe].setPageLabel(null!=(Ee=null==(le=this._pageLabels)?void 0:le[Xe])?Ee:null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=$.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,Fi(this,fe,new H(10)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,T.createPromiseCapability)(),this._onePageRenderedCapability=(0,T.createPromiseCapability)(),this._pagesCapability=(0,T.createPromiseCapability)(),this._scrollMode=$.ScrollMode.VERTICAL,this._previousScrollMode=$.ScrollMode.UNKNOWN,this._spreadMode=$.SpreadMode.NONE,Fi(this,Ce,{previousPageNumber:1,scrollDown:!0,pages:[]}),this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),Rt(this,Be)&&(document.removeEventListener("visibilitychange",Rt(this,Be)),Fi(this,Be,null)),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(k),null!==Rt(this,oe)&&(Fi(this,we,Rt(this,oe)),Fi(this,oe,null))}_scrollUpdate(){0!==this.pagesCount&&this.update()}_setScaleUpdatePages(q,le,Ee=!1,Xe=!1){if(this._currentScaleValue=le.toString(),Nt(this,z,cz).call(this,q))return void(Xe&&this.eventBus.dispatch("scalechanging",{source:this,scale:q,presetValue:le}));this._doc.style.setProperty("--zoom-factor",q);const Ye={scale:q};for(const Ke of this._pages)Ke.update(Ye);if(this._currentScale=q,!Ee){let ut,Ke=this._currentPageNumber;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(Ke=this._location.pageNumber,ut=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:Ke,destArray:ut,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:q,presetValue:Xe?le:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==$.SpreadMode.NONE&&this._scrollMode!==$.ScrollMode.HORIZONTAL?2:1}_setScale(q,le=!1){let Ee=parseFloat(q);if(Ee>0)this._setScaleUpdatePages(Ee,q,le,!1);else{const Xe=this._pages[this._currentPageNumber-1];if(!Xe)return;let Ye=$.SCROLLBAR_PADDING,Ke=$.VERTICAL_PADDING;this.isInPresentationMode?Ye=Ke=4:this.removePageBorders?Ye=Ke=0:this._scrollMode===$.ScrollMode.HORIZONTAL&&([Ye,Ke]=[Ke,Ye]);const ut=(this.container.clientWidth-Ye)/Xe.width*Xe.scale/this._pageWidthScaleFactor,pt=(this.container.clientHeight-Ke)/Xe.height*Xe.scale;switch(q){case"page-actual":Ee=1;break;case"page-width":Ee=ut;break;case"page-height":Ee=pt;break;case"page-fit":Ee=Math.min(ut,pt);break;case"auto":const Vt=(0,$.isPortraitOrientation)(Xe)?ut:Math.min(pt,ut);Ee=Math.min($.MAX_AUTO_SCALE,Vt);break;default:return void console.error(`_setScale: "${q}" is an unknown zoom value.`)}this._setScaleUpdatePages(Ee,q,le,!0)}}pageLabelToPageNumber(q){if(!this._pageLabels)return null;const le=this._pageLabels.indexOf(q);return le<0?null:le+1}scrollPageIntoView({pageNumber:q,destArray:le=null,allowNegativeOffset:Ee=!1,ignoreDestinationZoom:Xe=!1}){if(!this.pdfDocument)return;const Ye=Number.isInteger(q)&&this._pages[q-1];if(!Ye)return void console.error(`scrollPageIntoView: "${q}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!le)return void this._setCurrentPageNumber(q,!0);let ln,Tn,Ke=0,ut=0,pt=0,Vt=0;const Ne=Ye.rotation%180!=0,ae=(Ne?Ye.height:Ye.width)/Ye.scale/T.PixelsPerInch.PDF_TO_CSS_UNITS,de=(Ne?Ye.width:Ye.height)/Ye.scale/T.PixelsPerInch.PDF_TO_CSS_UNITS;let $e=0;switch(le[1].name){case"XYZ":Ke=le[2],ut=le[3],$e=le[4],Ke=null!==Ke?Ke:0,ut=null!==ut?ut:de;break;case"Fit":case"FitB":$e="page-fit";break;case"FitH":case"FitBH":ut=le[2],$e="page-width",null===ut&&this._location?(Ke=this._location.left,ut=this._location.top):("number"!=typeof ut||ut<0)&&(ut=de);break;case"FitV":case"FitBV":Ke=le[2],pt=ae,Vt=de,$e="page-height";break;case"FitR":Ke=le[2],ut=le[3],pt=le[4]-Ke,Vt=le[5]-ut,ln=(this.container.clientWidth-(this.removePageBorders?0:$.SCROLLBAR_PADDING))/pt/T.PixelsPerInch.PDF_TO_CSS_UNITS,Tn=(this.container.clientHeight-(this.removePageBorders?0:$.VERTICAL_PADDING))/Vt/T.PixelsPerInch.PDF_TO_CSS_UNITS,$e=Math.min(Math.abs(ln),Math.abs(Tn));break;default:return void console.error(`scrollPageIntoView: "${le[1].name}" is not a valid destination type.`)}if(Xe||($e&&$e!==this._currentScale?this.currentScaleValue=$e:this._currentScale===$.UNKNOWN_SCALE&&(this.currentScaleValue=$.DEFAULT_SCALE_VALUE)),"page-fit"===$e&&!le[4])return void Nt(this,N,mC).call(this,Ye);const tt=[Ye.viewport.convertToViewportPoint(Ke,ut),Ye.viewport.convertToViewportPoint(Ke+pt,ut+Vt)];let at=Math.min(tt[0][0],tt[1][0]),gt=Math.min(tt[0][1],tt[1][1]);Ee||(at=Math.max(at,0),gt=Math.max(gt,0)),Nt(this,N,mC).call(this,Ye,{left:at,top:gt})}_updateLocation(q){const le=this._currentScale,Ee=this._currentScaleValue,Xe=parseFloat(Ee)===le?Math.round(1e4*le)/100:Ee,Ye=q.id,ut=this.container,pt=this._pages[Ye-1].getPagePoint(ut.scrollLeft-q.x,ut.scrollTop-q.y),Vt=Math.round(pt[0]),ln=Math.round(pt[1]);let Tn=`#page=${Ye}`;this.isInPresentationMode||(Tn+=`&zoom=${Xe},${Vt},${ln}`),this._location={pageNumber:Ye,scale:Xe,top:ln,left:Vt,rotation:this._pagesRotation,pdfOpenParams:Tn}}update(){const q=this._getVisiblePages(),le=q.views,Ee=le.length;if(0===Ee)return;const Xe=Math.max(10,2*Ee+1);Rt(this,fe).resize(Xe,q.ids),this.renderingQueue.renderHighestPriority(q);const Ye=this._spreadMode===$.SpreadMode.NONE&&(this._scrollMode===$.ScrollMode.PAGE||this._scrollMode===$.ScrollMode.VERTICAL),Ke=this._currentPageNumber;let ut=!1;for(const pt of le){if(pt.percent<100)break;if(pt.id===Ke&&Ye){ut=!0;break}}this._setCurrentPageNumber(ut?Ke:le[0].id),this._updateLocation(q.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(q){return this.container.contains(q)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===$.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===$.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const q=this._scrollMode===$.ScrollMode.PAGE?Rt(this,Ce).pages:this._pages,le=this._scrollMode===$.ScrollMode.HORIZONTAL;return(0,$.getVisibleElements)({scrollEl:this.container,views:q,sortByVisibility:!0,horizontal:le,rtl:le&&this._isContainerRtl})}isPageVisible(q){return!!this.pdfDocument&&(Number.isInteger(q)&&q>0&&q<=this.pagesCount?this._getVisiblePages().ids.has(q):(console.error(`isPageVisible: "${q}" is not a valid page.`),!1))}isPageCached(q){if(!this.pdfDocument)return!1;if(!(Number.isInteger(q)&&q>0&&q<=this.pagesCount))return console.error(`isPageCached: "${q}" is not a valid page.`),!1;const le=this._pages[q-1];return Rt(this,fe).has(le)}cleanup(){for(const q of this._pages)q.renderingState!==$.RenderingStates.FINISHED&&q.reset()}_cancelRendering(){for(const q of this._pages)q.cancelRendering()}forceRendering(q){const le=q||this._getVisiblePages(),Ee=Nt(this,Ae,dz).call(this,le),Ye=this.renderingQueue.getHighestPriority(le,this._pages,Ee,this._spreadMode!==$.SpreadMode.NONE&&this._scrollMode!==$.ScrollMode.HORIZONTAL);return Nt(this,st,hz).call(this,le.ids),!!Ye&&(Nt(this,ye,uz).call(this,Ye).then(()=>{this.renderingQueue.renderView(Ye)}),!0)}createTextLayerBuilder(q,le,Ee,Xe=!1,Ye,Ke){return new F.TextLayerBuilder({textLayerDiv:q,eventBus:Ye,pageIndex:le,viewport:Ee,enhanceTextSelection:!this.isInPresentationMode&&Xe,highlighter:Ke})}createTextHighlighter(q,le){return new P.TextHighlighter({eventBus:le,pageIndex:q,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder(q,le,Ee=null,Xe="",Ye=!0,Ke=S.NullL10n,ut=null,pt=null,Vt=null,ln=null,Tn=null){var Ne,ae,de,$e;return new U.AnnotationLayerBuilder({pageDiv:q,pdfPage:le,annotationStorage:Ee||(null==(Ne=this.pdfDocument)?void 0:Ne.annotationStorage),imageResourcesPath:Xe,renderForms:Ye,linkService:this.linkService,downloadManager:this.downloadManager,l10n:Ke,enableScripting:null!=ut?ut:this.enableScripting,hasJSActionsPromise:pt||(null==(ae=this.pdfDocument)?void 0:ae.hasJSActions()),fieldObjectsPromise:ln||(null==(de=this.pdfDocument)?void 0:de.getFieldObjects()),mouseState:Vt||(null==($e=this._scriptingManager)?void 0:$e.mouseState),annotationCanvasMap:Tn})}createXfaLayerBuilder(q,le,Ee=null){var Xe;return new m.XfaLayerBuilder({pageDiv:q,pdfPage:le,annotationStorage:Ee||(null==(Xe=this.pdfDocument)?void 0:Xe.annotationStorage),linkService:this.linkService})}createStructTreeLayerBuilder(q){return new G.StructTreeLayerBuilder({pdfPage:q})}get hasEqualPageSizes(){const q=this._pages[0];for(let le=1,Ee=this._pages.length;le<Ee;++le){const Xe=this._pages[le];if(Xe.width!==q.width||Xe.height!==q.height)return!1}return!0}getPagesOverview(){return this._pages.map(q=>{const le=q.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,$.isPortraitOrientation)(le)?{width:le.width,height:le.height,rotation:le.rotation}:{width:le.height,height:le.width,rotation:(le.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)}set optionalContentConfigPromise(q){if(!(q instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${q}`);if(!this.pdfDocument||!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=q;const le={optionalContentConfigPromise:q};for(const Ee of this._pages)Ee.update(le);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:q})}get scrollMode(){return this._scrollMode}set scrollMode(q){if(this._scrollMode!==q){if(!(0,$.isValidScrollMode)(q))throw new Error(`Invalid scroll mode: ${q}`);this.pagesCount>O.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=q,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:q}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(q=null){const le=this._scrollMode,Ee=this.viewer;Ee.classList.toggle("scrollHorizontal",le===$.ScrollMode.HORIZONTAL),Ee.classList.toggle("scrollWrapped",le===$.ScrollMode.WRAPPED),this.pdfDocument&&q&&(le===$.ScrollMode.PAGE?Nt(this,D,Fg).call(this):this._previousScrollMode===$.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(q,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(q){if(this._spreadMode!==q){if(!(0,$.isValidSpreadMode)(q))throw new Error(`Invalid spread mode: ${q}`);this._spreadMode=q,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:q}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(q=null){if(!this.pdfDocument)return;const le=this.viewer,Ee=this._pages;if(this._scrollMode===$.ScrollMode.PAGE)Nt(this,D,Fg).call(this);else if(le.textContent="",this._spreadMode===$.SpreadMode.NONE)for(const Xe of this._pages)le.appendChild(Xe.div);else{const Xe=this._spreadMode-1;let Ye=null;for(let Ke=0,ut=Ee.length;Ke<ut;++Ke)null===Ye?(Ye=document.createElement("div"),Ye.className="spread",le.appendChild(Ye)):Ke%2===Xe&&(Ye=Ye.cloneNode(!1),le.appendChild(Ye)),Ye.appendChild(Ee[Ke].div)}!q||(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(q,!0),this.update())}_getPageAdvance(q,le=!1){switch(this._scrollMode){case $.ScrollMode.WRAPPED:{const{views:Ee}=this._getVisiblePages(),Xe=new Map;for(const{id:Ye,y:Ke,percent:ut,widthPercent:pt}of Ee){if(0===ut||pt<100)continue;let Vt=Xe.get(Ke);Vt||Xe.set(Ke,Vt||(Vt=[])),Vt.push(Ye)}for(const Ye of Xe.values()){const Ke=Ye.indexOf(q);if(-1===Ke)continue;const ut=Ye.length;if(1===ut)break;if(le)for(let pt=Ke-1,Vt=0;pt>=Vt;pt--){const Tn=Ye[pt+1]-1;if(Ye[pt]<Tn)return q-Tn}else for(let pt=Ke+1,Vt=ut;pt<Vt;pt++){const Tn=Ye[pt-1]+1;if(Ye[pt]>Tn)return Tn-q}if(le){const pt=Ye[0];if(pt<q)return q-pt+1}else{const pt=Ye[ut-1];if(pt>q)return pt-q+1}break}break}case $.ScrollMode.HORIZONTAL:break;case $.ScrollMode.PAGE:case $.ScrollMode.VERTICAL:{if(this._spreadMode===$.SpreadMode.NONE)break;const Ee=this._spreadMode-1;if(le&&q%2!==Ee)break;if(!le&&q%2===Ee)break;const{views:Xe}=this._getVisiblePages(),Ye=le?q-1:q+1;for(const{id:Ke,percent:ut,widthPercent:pt}of Xe)if(Ke===Ye){if(ut>0&&100===pt)return 2;break}break}}return 1}nextPage(){const q=this._currentPageNumber,le=this.pagesCount;if(q>=le)return!1;const Ee=this._getPageAdvance(q,!1)||1;return this.currentPageNumber=Math.min(q+Ee,le),!0}previousPage(){const q=this._currentPageNumber;if(q<=1)return!1;const le=this._getPageAdvance(q,!0)||1;return this.currentPageNumber=Math.max(q-le,1),!0}increaseScale(q=1){let le=this._currentScale;do{le=(le*$.DEFAULT_SCALE_DELTA).toFixed(2),le=Math.ceil(10*le)/10,le=Math.min($.MAX_SCALE,le)}while(--q>0&&le<$.MAX_SCALE);this.currentScaleValue=le}decreaseScale(q=1){let le=this._currentScale;do{le=(le/$.DEFAULT_SCALE_DELTA).toFixed(2),le=Math.floor(10*le)/10,le=Math.max($.MIN_SCALE,le)}while(--q>0&&le>$.MIN_SCALE);this.currentScaleValue=le}updateContainerHeightCss(){const q=this.container.clientHeight;q!==Rt(this,_e)&&(Fi(this,_e,q),this._doc.style.setProperty("--viewer-container-height",`${q}px`))}};let Z=je;fe=new WeakMap,we=new WeakMap,oe=new WeakMap,Se=new WeakMap,_e=new WeakMap,Ce=new WeakMap,Be=new WeakMap,X=new WeakSet,az=function(q){!q||(q.includes(T.PermissionFlag.COPY)||this.viewer.classList.add(k),!q.includes(T.PermissionFlag.MODIFY_ANNOTATIONS)&&!q.includes(T.PermissionFlag.FILL_INTERACTIVE_FORMS)&&Rt(this,we)===T.AnnotationMode.ENABLE_FORMS&&(Fi(this,oe,Rt(this,we)),Fi(this,we,T.AnnotationMode.ENABLE)))},y=new WeakSet,lz=function(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const q=new Promise(le=>{Fi(this,Be,()=>{"hidden"===document.visibilityState&&(le(),document.removeEventListener("visibilitychange",Rt(this,Be)),Fi(this,Be,null))}),document.addEventListener("visibilitychange",Rt(this,Be))});return Promise.race([this._onePageRenderedCapability.promise,q])},D=new WeakSet,Fg=function(){if(this._scrollMode!==$.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const q=this._currentPageNumber,le=Rt(this,Ce),Ee=this.viewer;if(Ee.textContent="",le.pages.length=0,this._spreadMode!==$.SpreadMode.NONE||this.isInPresentationMode){const Xe=new Set,Ye=this._spreadMode-1;-1===Ye?Xe.add(q-1):q%2!==Ye?(Xe.add(q-1),Xe.add(q)):(Xe.add(q-2),Xe.add(q-1));const Ke=document.createElement("div");if(Ke.className="spread",this.isInPresentationMode){const ut=document.createElement("div");ut.className="dummyPage",Ke.appendChild(ut)}for(const ut of Xe){const pt=this._pages[ut];!pt||(Ke.appendChild(pt.div),le.pages.push(pt))}Ee.appendChild(Ke)}else{const Xe=this._pages[q-1];Ee.appendChild(Xe.div),le.pages.push(Xe)}le.scrollDown=q>=le.previousPageNumber,le.previousPageNumber=q},N=new WeakSet,mC=function(q,le=null){const{div:Ee,id:Xe}=q;if(this._scrollMode===$.ScrollMode.PAGE&&(this._setCurrentPageNumber(Xe),Nt(this,D,Fg).call(this),this.update()),!le&&!this.isInPresentationMode){const Ye=Ee.offsetLeft+Ee.clientLeft,Ke=Ye+Ee.clientWidth,{scrollLeft:ut,clientWidth:pt}=this.container;(this._scrollMode===$.ScrollMode.HORIZONTAL||Ye<ut||Ke>ut+pt)&&(le={left:0,top:0})}(0,$.scrollIntoView)(Ee,le)},z=new WeakSet,cz=function(q){return q===this._currentScale||Math.abs(q-this._currentScale)<1e-15},he=new WeakSet,$1=function(){const q=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),Nt(this,N,mC).call(this,q)},ye=new WeakSet,uz=function(q){var le=this;return I(function*(){var Ee,Xe;if(q.pdfPage)return q.pdfPage;try{const Ye=yield le.pdfDocument.getPage(q.id);return q.pdfPage||q.setPdfPage(Ye),null!=(Xe=(Ee=le.linkService)._cachedPageNumber)&&Xe.call(Ee,Ye.ref)||le.linkService.cachePageRef(q.id,Ye.ref),Ye}catch(Ye){return console.error("Unable to get page for page view",Ye),null}})()},Ae=new WeakSet,dz=function(q){var le,Ee;if(1===(null==(le=q.first)?void 0:le.id))return!0;if((null==(Ee=q.last)?void 0:Ee.id)===this.pagesCount)return!1;switch(this._scrollMode){case $.ScrollMode.PAGE:return Rt(this,Ce).scrollDown;case $.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down},st=new WeakSet,hz=function(q){for(const le of q){const Ee=this._pages[le-1];null==Ee||Ee.toggleLoadingIconSpinner(!0)}for(const le of Rt(this,fe))q.has(le.id)||le.toggleLoadingIconSpinner(!1)},E.BaseViewer=Z},(ce,E,Q)=>{var M;Object.defineProperty(E,"__esModule",{value:!0}),E.PDFPageView=void 0;var T=Q(3),$=Q(6),U=Q(13),S=Q(4);const b=U.compatibilityParams.maxCanvasPixels||16777216;M=new WeakMap,E.PDFPageView=class g{constructor(P){var k,O,H,Z;Gt(this,M,T.AnnotationMode.ENABLE_FORMS);const F=P.container,m=P.defaultViewport;this.id=P.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=P.scale||$.DEFAULT_SCALE,this.viewport=m,this.pdfPageRotate=m.rotation,this._optionalContentConfigPromise=P.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=null!=(k=P.textLayerMode)?k:$.TextLayerMode.ENABLE,Fi(this,M,null!=(O=P.annotationMode)?O:T.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=P.imageResourcesPath||"",this.useOnlyCssZoom=P.useOnlyCssZoom||!1,this.maxCanvasPixels=P.maxCanvasPixels||b,this.pageColors=P.pageColors||null,this.eventBus=P.eventBus,this.renderingQueue=P.renderingQueue,this.textLayerFactory=P.textLayerFactory,this.annotationLayerFactory=P.annotationLayerFactory,this.xfaLayerFactory=P.xfaLayerFactory,this.textHighlighter=null==(H=P.textHighlighterFactory)?void 0:H.createTextHighlighter(this.id-1,this.eventBus),this.structTreeLayerFactory=P.structTreeLayerFactory,this.renderer=P.renderer||$.RendererType.CANVAS,this.l10n=P.l10n||S.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=$.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!(null!=(Z=this.renderingQueue)&&Z.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const _=document.createElement("div");_.className="page",_.style.width=Math.floor(this.viewport.width)+"px",_.style.height=Math.floor(this.viewport.height)+"px",_.setAttribute("data-page-number",this.id),_.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(L=>{_.setAttribute("aria-label",L)}),this.div=_,null==F||F.appendChild(_)}setPdfPage(P){this.pdfPage=P,this.pdfPageRotate=P.rotate,this.viewport=P.getViewport({scale:this.scale*T.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_renderAnnotationLayer(){var P=this;return I(function*(){let F=null;try{yield P.annotationLayer.render(P.viewport,"display")}catch(m){F=m}finally{P.eventBus.dispatch("annotationlayerrendered",{source:P,pageNumber:P.id,error:F})}})()}_renderXfaLayer(){var P=this;return I(function*(){let F=null;try{const m=yield P.xfaLayer.render(P.viewport,"display");P.textHighlighter&&P._buildXfaTextContentItems(m.textDivs)}catch(m){F=m}finally{P.eventBus.dispatch("xfalayerrendered",{source:P,pageNumber:P.id,error:F})}})()}_buildXfaTextContentItems(P){var F=this;return I(function*(){const m=yield F.pdfPage.getTextContent(),_=[];for(const k of m.items)_.push(k.str);F.textHighlighter.setTextMapping(P,_),F.textHighlighter.enable()})()}_resetZoomLayer(P=!1){if(!this.zoomLayer)return;const F=this.zoomLayer.firstChild;this.paintedViewportMap.delete(F),F.width=0,F.height=0,P&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:P=!1,keepAnnotationLayer:F=!1,keepXfaLayer:m=!1}={}){var L,V;this.cancelRendering({keepAnnotationLayer:F,keepXfaLayer:m}),this.renderingState=$.RenderingStates.INITIAL;const _=this.div;_.style.width=Math.floor(this.viewport.width)+"px",_.style.height=Math.floor(this.viewport.height)+"px";const k=_.childNodes,O=P&&this.zoomLayer||null,H=F&&(null==(L=this.annotationLayer)?void 0:L.div)||null,Z=m&&(null==(V=this.xfaLayer)?void 0:V.div)||null;for(let te=k.length-1;te>=0;te--){const ue=k[te];switch(ue){case O:case H:case Z:continue}ue.remove()}_.removeAttribute("data-loaded"),H&&this.annotationLayer.hide(),Z&&this.xfaLayer.hide(),O||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(te=>{var ue;null==(ue=this.loadingIconDiv)||ue.setAttribute("aria-label",te)}),_.appendChild(this.loadingIconDiv)}update({scale:P=0,rotation:F=null,optionalContentConfigPromise:m=null}){if(this.scale=P||this.scale,"number"==typeof F&&(this.rotation=F),m instanceof Promise&&(this._optionalContentConfigPromise=m),this.viewport=this.viewport.clone({scale:this.scale*T.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this._isStandalone){const{style:O}=document.documentElement;O.setProperty("--zoom-factor",this.scale)}if(this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let k=!1;if(this.canvas&&this.maxCanvasPixels>0){const O=this.outputScale;(Math.floor(this.viewport.width)*O.sx|0)*(Math.floor(this.viewport.height)*O.sy|0)>this.maxCanvasPixels&&(k=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&k)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:P=!1,keepXfaLayer:F=!1}={}){var m;this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!P||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.xfaLayer&&(!F||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,null==(m=this.textHighlighter)||m.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:P,redrawAnnotationLayer:F=!1,redrawXfaLayer:m=!1}){const _=this.viewport.width,k=this.viewport.height,O=this.div;P.style.width=P.parentNode.style.width=O.style.width=Math.floor(_)+"px",P.style.height=P.parentNode.style.height=O.style.height=Math.floor(k)+"px";const H=this.viewport.rotation-this.paintedViewportMap.get(P).rotation,Z=Math.abs(H);let L=1,V=1;if((90===Z||270===Z)&&(L=k/_,V=_/k),P.style.transform=`rotate(${H}deg) scale(${L}, ${V})`,this.textLayer){const te=this.textLayer.viewport,fe=Math.abs(this.viewport.rotation-te.rotation);let we=_/te.width;(90===fe||270===fe)&&(we=_/te.height);const oe=this.textLayer.textLayerDiv;let Se,_e;switch(fe){case 0:Se=_e=0;break;case 90:Se=0,_e="-"+oe.style.height;break;case 180:Se="-"+oe.style.width,_e="-"+oe.style.height;break;case 270:Se="-"+oe.style.width,_e=0;break;default:console.error("Bad rotation value.")}oe.style.transform=`rotate(${fe}deg) scale(${we}) translate(${Se}, ${_e})`,oe.style.transformOrigin="0% 0%"}F&&this.annotationLayer&&this._renderAnnotationLayer(),m&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(P,F){return this.viewport.convertToPdfPoint(P,F)}toggleLoadingIconSpinner(P=!1){var F;null==(F=this.loadingIconDiv)||F.classList.toggle("notVisible",!P)}draw(){var V,te,ue,P=this;this.renderingState!==$.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:F,pdfPage:m}=this;if(!m)return this.renderingState=$.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=$.RenderingStates.RUNNING;const _=document.createElement("div");_.style.width=F.style.width,_.style.height=F.style.height,_.classList.add("canvasWrapper"),null!=(V=this.annotationLayer)&&V.div?F.insertBefore(_,this.annotationLayer.div):F.appendChild(_);let k=null;if(this.textLayerMode!==$.TextLayerMode.DISABLE&&this.textLayerFactory){const fe=document.createElement("div");fe.className="textLayer",fe.style.width=_.style.width,fe.style.height=_.style.height,null!=(te=this.annotationLayer)&&te.div?F.insertBefore(fe,this.annotationLayer.div):F.appendChild(fe),k=this.textLayerFactory.createTextLayerBuilder(fe,this.id-1,this.viewport,this.textLayerMode===$.TextLayerMode.ENABLE_ENHANCE,this.eventBus,this.textHighlighter)}this.textLayer=k,Rt(this,M)!==T.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(F,m,null,this.imageResourcesPath,Rt(this,M)===T.AnnotationMode.ENABLE_FORMS,this.l10n,null,null,null,null,this._annotationCanvasMap))),null!=(ue=this.xfaLayer)&&ue.div&&F.appendChild(this.xfaLayer.div);let O=null;this.renderingQueue&&(O=fe=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=$.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=$.RenderingStates.RUNNING,fe()});fe()});const H=function(){var fe=I(function*(we=null){if(Z===P.paintTask&&(P.paintTask=null),we instanceof T.RenderingCancelledException)P._renderError=null;else if(P._renderError=we,P.renderingState=$.RenderingStates.FINISHED,P.loadingIconDiv&&(P.loadingIconDiv.remove(),delete P.loadingIconDiv),P._resetZoomLayer(!0),P.eventBus.dispatch("pagerendered",{source:P,pageNumber:P.id,cssTransform:!1,timestamp:performance.now(),error:P._renderError}),we)throw we});return function(){return fe.apply(this,arguments)}}(),Z=this.renderer===$.RendererType.SVG?this.paintOnSvg(_):this.paintOnCanvas(_);Z.onRenderContinue=O,this.paintTask=Z;const L=Z.promise.then(()=>H(null).then(()=>{if(k){const fe=m.streamTextContent({includeMarkedContent:!0});k.setTextContentStream(fe),k.render()}this.annotationLayer&&this._renderAnnotationLayer()}),function(fe){return H(fe)});return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder(F,m,null)),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=fe=>{fe.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(we=>{if(!we||!this.canvas)return;const oe=this.structTreeLayer.render(we);oe.classList.add("structTree"),this.canvas.appendChild(oe)}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder(m)),F.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),L}paintOnCanvas(P){const F=(0,T.createPromiseCapability)(),m={promise:F.promise,onRenderContinue(oe){oe()},cancel(){we.cancel()}},_=this.viewport,k=document.createElement("canvas");k.hidden=!0;let O=!0;const H=function(){O&&(k.hidden=!1,O=!1)};P.appendChild(k),this.canvas=k;const Z=k.getContext("2d",{alpha:!1}),L=this.outputScale=new $.OutputScale;if(this.useOnlyCssZoom){const oe=_.clone({scale:T.PixelsPerInch.PDF_TO_CSS_UNITS});L.sx*=oe.width/_.width,L.sy*=oe.height/_.height}if(this.maxCanvasPixels>0){const Se=Math.sqrt(this.maxCanvasPixels/(_.width*_.height));L.sx>Se||L.sy>Se?(L.sx=Se,L.sy=Se,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const V=(0,$.approximateFraction)(L.sx),te=(0,$.approximateFraction)(L.sy);k.width=(0,$.roundToDivide)(_.width*L.sx,V[0]),k.height=(0,$.roundToDivide)(_.height*L.sy,te[0]),k.style.width=(0,$.roundToDivide)(_.width,V[1])+"px",k.style.height=(0,$.roundToDivide)(_.height,te[1])+"px",this.paintedViewportMap.set(k,_);const fe={canvasContext:Z,transform:L.scaled?[L.sx,0,0,L.sy,0,0]:null,viewport:this.viewport,annotationMode:Rt(this,M),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},we=this.pdfPage.render(fe);return we.onContinue=function(oe){H(),m.onRenderContinue?m.onRenderContinue(oe):oe()},we.promise.then(function(){H(),F.resolve()},function(oe){H(),F.reject(oe)}),m}paintOnSvg(P){let F=!1;const m=()=>{if(F)throw new T.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},_=this.pdfPage,k=this.viewport.clone({scale:T.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:_.getOperatorList({annotationMode:Rt(this,M)}).then(H=>(m(),new T.SVGGraphics(_.commonObjs,_.objs).getSVG(H,k).then(L=>{m(),this.svg=L,this.paintedViewportMap.set(L,k),L.style.width=P.style.width,L.style.height=P.style.height,this.renderingState=$.RenderingStates.FINISHED,P.appendChild(L)}))),onRenderContinue(H){H()},cancel(){F=!0}}}setPageLabel(P){this.pageLabel="string"==typeof P?P:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.compatibilityParams=E.OptionKind=E.AppOptions=void 0;const Q=Object.create(null);E.compatibilityParams=Q;{const b=navigator.userAgent||"",g=navigator.platform||"",M=navigator.maxTouchPoints||1,G=/Android/.test(b);(/\b(iPad|iPhone|iPod)(?=;)/.test(b)||"MacIntel"===g&&M>1||G)&&(Q.maxCanvasPixels=5242880)}const T={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};E.OptionKind=T;const $={annotationMode:{value:2,kind:T.VIEWER+T.PREFERENCE},cursorToolOnLoad:{value:0,kind:T.VIEWER+T.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:T.VIEWER},defaultZoomValue:{value:"",kind:T.VIEWER+T.PREFERENCE},disableHistory:{value:!1,kind:T.VIEWER},disablePageLabels:{value:!1,kind:T.VIEWER+T.PREFERENCE},enablePermissions:{value:!1,kind:T.VIEWER+T.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:T.VIEWER+T.PREFERENCE},enableScripting:{value:!0,kind:T.VIEWER+T.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:T.VIEWER},externalLinkTarget:{value:0,kind:T.VIEWER+T.PREFERENCE},historyUpdateUrl:{value:!1,kind:T.VIEWER+T.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:T.VIEWER+T.PREFERENCE},imageResourcesPath:{value:"./images/",kind:T.VIEWER},maxCanvasPixels:{value:16777216,compatibility:Q.maxCanvasPixels,kind:T.VIEWER},pageColorsBackground:{value:"Canvas",kind:T.VIEWER+T.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:T.VIEWER+T.PREFERENCE},pdfBugEnabled:{value:!1,kind:T.VIEWER+T.PREFERENCE},printResolution:{value:150,kind:T.VIEWER},renderer:{value:"canvas",kind:T.VIEWER},sidebarViewOnLoad:{value:-1,kind:T.VIEWER+T.PREFERENCE},scrollModeOnLoad:{value:-1,kind:T.VIEWER+T.PREFERENCE},spreadModeOnLoad:{value:-1,kind:T.VIEWER+T.PREFERENCE},textLayerMode:{value:1,kind:T.VIEWER+T.PREFERENCE},useOnlyCssZoom:{value:!1,kind:T.VIEWER+T.PREFERENCE},viewerCssTheme:{value:0,kind:T.VIEWER+T.PREFERENCE},viewOnLoad:{value:0,kind:T.VIEWER+T.PREFERENCE},cMapPacked:{value:!0,kind:T.API},cMapUrl:{value:"../web/cmaps/",kind:T.API},disableAutoFetch:{value:!1,kind:T.API+T.PREFERENCE},disableFontFace:{value:!1,kind:T.API+T.PREFERENCE},disableRange:{value:!1,kind:T.API+T.PREFERENCE},disableStream:{value:!1,kind:T.API+T.PREFERENCE},docBaseUrl:{value:"",kind:T.API},enableXfa:{value:!0,kind:T.API+T.PREFERENCE},fontExtraProperties:{value:!1,kind:T.API},isEvalSupported:{value:!0,kind:T.API},maxImageSize:{value:-1,kind:T.API},pdfBug:{value:!1,kind:T.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:T.API},verbosity:{value:1,kind:T.API},workerPort:{value:null,kind:T.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:T.WORKER}};$.disablePreferences={value:!1,kind:T.VIEWER},$.locale={value:navigator.language||"en-US",kind:T.VIEWER},$.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:T.VIEWER},$.renderer.kind+=T.PREFERENCE;const U=Object.create(null);E.AppOptions=class S{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(g){var P;const M=U[g];if(void 0!==M)return M;const G=$[g];return void 0!==G?null!=(P=G.compatibility)?P:G.value:void 0}static getAll(g=null){var G;const M=Object.create(null);for(const P in $){const F=$[P];if(g){if(0==(g&F.kind))continue;if(g===T.PREFERENCE){const _=F.value,k=typeof _;if("boolean"===k||"string"===k||"number"===k&&Number.isInteger(_)){M[P]=_;continue}throw new Error(`Invalid type for preference: ${P}`)}}const m=U[P];M[P]=void 0!==m?m:null!=(G=F.compatibility)?G:F.value}return M}static set(g,M){U[g]=M}static setAll(g){for(const M in g)U[M]=g[M]}static remove(g){delete U[g]}static _hasUserOptions(){return Object.keys(U).length>0}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFRenderingQueue=void 0;var T=Q(3),$=Q(6);E.PDFRenderingQueue=class S{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(g){this.pdfViewer=g}setThumbnailViewer(g){this.pdfThumbnailViewer=g}isHighestPriority(g){return this.highestPriorityPage===g.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(g){var M;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(g)&&(this.isThumbnailViewEnabled&&(null==(M=this.pdfThumbnailViewer)?void 0:M.forceRendering())||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(g,M,G,P=!1){const F=g.views,m=F.length;if(0===m)return null;for(let Z=0;Z<m;Z++){const L=F[Z].view;if(!this.isViewFinished(L))return L}const _=g.first.id,k=g.last.id;if(k-_+1>m){const Z=g.ids;for(let L=1,V=k-_;L<V;L++){const te=G?_+L:k-L;if(Z.has(te))continue;const ue=M[te-1];if(!this.isViewFinished(ue))return ue}}let O=G?k:_-2,H=M[O];return H&&!this.isViewFinished(H)||P&&(O+=G?1:-1,H=M[O],H&&!this.isViewFinished(H))?H:null}isViewFinished(g){return g.renderingState===$.RenderingStates.FINISHED}renderView(g){switch(g.renderingState){case $.RenderingStates.FINISHED:return!1;case $.RenderingStates.PAUSED:this.highestPriorityPage=g.renderingId,g.resume();break;case $.RenderingStates.RUNNING:this.highestPriorityPage=g.renderingId;break;case $.RenderingStates.INITIAL:this.highestPriorityPage=g.renderingId,g.draw().finally(()=>{this.renderHighestPriority()}).catch(M=>{M instanceof T.RenderingCancelledException||console.error(`renderView: "${M}"`)})}return!0}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.TextHighlighter=void 0,E.TextHighlighter=class Q{constructor({findController:$,eventBus:U,pageIndex:S}){this.findController=$,this.matches=[],this.eventBus=U,this.pageIdx=S,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping($,U){this.textDivs=$,this.textContentItemsStr=U}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=$=>{($.pageIndex===this.pageIdx||-1===$.pageIndex)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){!this.enabled||(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches($,U){if(!$)return[];const{textContentItemsStr:S}=this;let b=0,g=0;const M=S.length-1,G=[];for(let P=0,F=$.length;P<F;P++){let m=$[P];for(;b!==M&&m>=g+S[b].length;)g+=S[b].length,b++;b===S.length&&console.error("Could not find a matching mapping");const _={begin:{divIdx:b,offset:m-g}};for(m+=U[P];b!==M&&m>g+S[b].length;)g+=S[b].length,b++;_.end={divIdx:b,offset:m-g},G.push(_)}return G}_renderMatches($){if(0===$.length)return;const{findController:U,pageIdx:S}=this,{textContentItemsStr:b,textDivs:g}=this,M=S===U.selected.pageIdx,G=U.selected.matchIdx;let F=null;function _(Z,L){const V=Z.divIdx;return g[V].textContent="",k(V,0,Z.offset,L)}function k(Z,L,V,te){let ue=g[Z];if(ue.nodeType===Node.TEXT_NODE){const oe=document.createElement("span");ue.parentNode.insertBefore(oe,ue),oe.appendChild(ue),g[Z]=oe,ue=oe}const fe=b[Z].substring(L,V),we=document.createTextNode(fe);if(te){const oe=document.createElement("span");return oe.className=`${te} appended`,oe.appendChild(we),ue.appendChild(oe),te.includes("selected")?oe.offsetLeft:0}return ue.appendChild(we),0}let O=G,H=O+1;if(U.state.highlightAll)O=0,H=$.length;else if(!M)return;for(let Z=O;Z<H;Z++){const L=$[Z],V=L.begin,te=L.end,ue=M&&Z===G,fe=ue?" selected":"";let we=0;if(F&&V.divIdx===F.divIdx?k(F.divIdx,F.offset,V.offset):(null!==F&&k(F.divIdx,F.offset,undefined),_(V)),V.divIdx===te.divIdx)we=k(V.divIdx,V.offset,te.offset,"highlight"+fe);else{we=k(V.divIdx,V.offset,undefined,"highlight begin"+fe);for(let oe=V.divIdx+1,Se=te.divIdx;oe<Se;oe++)g[oe].className="highlight middle"+fe;_(te,"highlight end"+fe)}F=te,ue&&U.scrollMatchIntoView({element:g[V.divIdx],selectedLeft:we,pageIndex:S,matchIndex:G})}F&&k(F.divIdx,F.offset,undefined)}_updateMatches(){if(!this.enabled)return;const{findController:$,matches:U,pageIdx:S}=this,{textContentItemsStr:b,textDivs:g}=this;let M=-1;for(let F=0,m=U.length;F<m;F++){const _=U[F];for(let O=Math.max(M,_.begin.divIdx),H=_.end.divIdx;O<=H;O++){const Z=g[O];Z.textContent=b[O],Z.className=""}M=_.end.divIdx+1}null!=$&&$.highlightMatches&&(this.matches=this._convertMatches($.pageMatches[S]||null,$.pageMatchesLength[S]||null),this._renderMatches(this.matches))}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.DownloadManager=void 0;var T=Q(3);function $(S,b){const g=document.createElement("a");if(!g.click)throw new Error('DownloadManager: "a.click()" is not supported.');g.href=S,g.target="_parent","download"in g&&(g.download=b),(document.body||document.documentElement).appendChild(g),g.click(),g.remove()}E.DownloadManager=class U{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(b,g){(0,T.createValidAbsoluteUrl)(b,"http://example.com")?$(b+"#pdfjs.action=download",g):console.error(`downloadUrl - not a valid URL: ${b}`)}downloadData(b,g,M){$(URL.createObjectURL(new Blob([b],{type:M})),g)}openOrDownloadData(b,g,M){const G=(0,T.isPdfFile)(M),P=G?"application/pdf":"";if(G){let m,F=this._openBlobUrls.get(b);F||(F=URL.createObjectURL(new Blob([g],{type:P})),this._openBlobUrls.set(b,F)),m="?file="+encodeURIComponent(F+"#"+M);try{return window.open(m),!0}catch(_){console.error(`openOrDownloadData: ${_}`),URL.revokeObjectURL(F),this._openBlobUrls.delete(b)}}return this.downloadData(g,M,P),!1}download(b,g,M,G="download"){$(URL.createObjectURL(b),M)}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.WaitOnType=E.EventBus=E.AutomationEventBus=void 0,E.waitOnEventOrTimeout=function T({target:S,name:b,delay:g=0}){return new Promise(function(M,G){if("object"!=typeof S||!b||"string"!=typeof b||!(Number.isInteger(g)&&g>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function P(k){S instanceof $?S._off(b,F):S.removeEventListener(b,F),_&&clearTimeout(_),M(k)}const F=P.bind(null,Q.EVENT);S instanceof $?S._on(b,F):S.addEventListener(b,F);const m=P.bind(null,Q.TIMEOUT),_=setTimeout(m,g)})};const Q={EVENT:"event",TIMEOUT:"timeout"};E.WaitOnType=Q;class ${constructor(){this._listeners=Object.create(null)}on(b,g,M=null){this._on(b,g,{external:!0,once:null==M?void 0:M.once})}off(b,g,M=null){this._off(b,g,{external:!0,once:null==M?void 0:M.once})}dispatch(b,g){const M=this._listeners[b];if(!M||0===M.length)return;let G;for(const{listener:P,external:F,once:m}of M.slice(0))m&&this._off(b,P),F?(G||(G=[])).push(P):P(g);if(G){for(const P of G)P(g);G=null}}_on(b,g,M=null){var P;((P=this._listeners)[b]||(P[b]=[])).push({listener:g,external:!0===(null==M?void 0:M.external),once:!0===(null==M?void 0:M.once)})}_off(b,g,M=null){const G=this._listeners[b];if(G)for(let P=0,F=G.length;P<F;P++)if(G[P].listener===g)return void G.splice(P,1)}}E.EventBus=$,E.AutomationEventBus=class U extends ${dispatch(b,g){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.GenericL10n=void 0,Q(19);var T=Q(4);const $=document.webL10n;E.GenericL10n=class U{constructor(b){this._lang=b,this._ready=new Promise((g,M)=>{$.setLanguage((0,T.fixupLangCode)(b),()=>{g($)})})}getLanguage(){var b=this;return I(function*(){return(yield b._ready).getLanguage()})()}getDirection(){var b=this;return I(function*(){return(yield b._ready).getDirection()})()}get(b,g=null,M=(0,T.getL10nFallback)(b,g)){var G=this;return I(function*(){return(yield G._ready).get(b,g,M)})()}translate(b){var g=this;return I(function*(){return(yield g._ready).translate(b)})()}}},()=>{document.webL10n=function(ce,E,Q){var T={},$="",U="textContent",S="",b={},g="loading";function _(oe,Se,_e){Se=Se||function(X){},_e=_e||function(){};var Ce=new XMLHttpRequest;Ce.open("GET",oe,!0),Ce.overrideMimeType&&Ce.overrideMimeType("text/plain; charset=utf-8"),Ce.onreadystatechange=function(){4==Ce.readyState&&(200==Ce.status||0===Ce.status?Se(Ce.responseText):_e())},Ce.onerror=_e,Ce.ontimeout=_e;try{Ce.send(null)}catch(Be){_e()}}function O(oe,Se){oe&&(oe=oe.toLowerCase()),Se=Se||function(){},function H(){T={},$="",S=""}(),S=oe;var _e=function G(){return E.querySelectorAll('link[type="application/l10n"]')}(),Ce=_e.length;if(0!==Ce){var y,p=0;y=function(){++p>=Ce&&(Se(),g="complete")};for(var A=0;A<Ce;A++)new D(_e[A]).load(oe,y)}else{var Be=function P(){var oe=E.querySelector('script[type="application/l10n"]');return oe?JSON.parse(oe.innerHTML):null}();if(Be&&Be.locales&&Be.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(T=Be.locales[oe])){var X=Be.default_locale.toLowerCase();for(var C in Be.locales){if((C=C.toLowerCase())===oe){T=Be.locales[oe];break}C===X&&(T=Be.locales[X])}}Se()}else console.log("no resource to load, early way out");g="complete"}function D(j){var z=j.href;this.load=function(pe,he){!function k(oe,Se,_e,Ce){var Be=oe.replace(/[^\/]*$/,"")||"./";function X(y){return y.lastIndexOf("\\")<0?y:y.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}_(oe,function(y){$+=y,function C(y,p){var D={},A=/^\s*|\s*$/,N=/^\s*#|^\s*$/,j=/^\s*\[(.*)\]\s*$/,z=/^\s*@import\s+url\((.*)\)\s*$/i,pe=/^([^=\s]*)\s*=\s*(.+)$/;function he(ye,ke,Ae){var Ue=ye.replace(A,"").split(/[\r\n]+/),st="*",De=Se.split("-",1)[0],je=!1,ze="";!function q(){for(;;){if(!Ue.length)return void Ae();var le=Ue.shift();if(!N.test(le)){if(ke){if(ze=j.exec(le)){st=ze[1].toLowerCase(),je="*"!==st&&st!==Se&&st!==De;continue}if(je)continue;if(ze=z.exec(le))return void ge(Be+ze[1],q)}var Ee=le.match(pe);Ee&&3==Ee.length&&(D[Ee[1]]=X(Ee[2]))}}}()}function ge(ye,ke){_(ye,function(Ae){he(Ae,!1,ke)},function(){console.warn(ye+" not found."),ke()})}he(y,!0,function(){p(D)})}(y,function(p){for(var D in p){var A,N,j=D.lastIndexOf(".");j>0?(A=D.substring(0,j),N=D.substring(j+1)):(A=D,N=U),T[A]||(T[A]={}),T[A][N]=p[D]}_e&&_e()})},Ce)}(z,pe,he,function(){console.warn(z+" not found."),console.warn('"'+pe+'" resource not found'),S="",he()})}}}function L(oe,Se,_e){var Ce=T[oe];if(!Ce){if(console.warn("#"+oe+" is undefined."),!_e)return null;Ce=_e}var Be={};for(var X in Ce){var C=Ce[X];C=te(C=V(C,Se,oe,X),Se,oe),Be[X]=C}return Be}function V(oe,Se,_e,Ce){var X=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(oe);if(!X||!X.length)return oe;var p,C=X[1],y=X[2];return Se&&y in Se?p=Se[y]:y in T&&(p=T[y]),C in b&&(oe=(0,b[C])(oe,p,_e,Ce)),oe}function te(oe,Se,_e){return oe.replace(/\{\{\s*(.+?)\s*\}\}/g,function(Be,X){return Se&&X in Se?Se[X]:X in T?T[X]:(console.log("argument {{"+X+"}} for #"+_e+" is undefined."),Be)})}function ue(oe){var Se=function m(oe){if(!oe)return{};var Se=oe.getAttribute("data-l10n-id"),_e=oe.getAttribute("data-l10n-args"),Ce={};if(_e)try{Ce=JSON.parse(_e)}catch(Be){console.warn("could not parse arguments for #"+Se)}return{id:Se,args:Ce}}(oe);if(Se.id){var _e=L(Se.id,Se.args);if(!_e)return void console.warn("#"+Se.id+" is undefined.");if(_e[U]){if(0===function fe(oe){if(oe.children)return oe.children.length;if(void 0!==oe.childElementCount)return oe.childElementCount;for(var Se=0,_e=0;_e<oe.childNodes.length;_e++)Se+=1===oe.nodeType?1:0;return Se}(oe))oe[U]=_e[U];else{for(var Ce=oe.childNodes,Be=!1,X=0,C=Ce.length;X<C;X++)3===Ce[X].nodeType&&/\S/.test(Ce[X].nodeValue)&&(Be?Ce[X].nodeValue="":(Ce[X].nodeValue=_e[U],Be=!0));if(!Be){var y=E.createTextNode(_e[U]);oe.insertBefore(y,oe.firstChild)}}delete _e[U]}for(var p in _e)oe[p]=_e[p]}}return b.plural=function(oe,Se,_e,Ce){var Be=parseFloat(Se);if(isNaN(Be)||Ce!=U)return oe;b._pluralRules||(b._pluralRules=function Z(oe){function _e(C,y){return-1!==y.indexOf(C)}function Ce(C,y,p){return y<=C&&C<=p}var Be={0:function(C){return"other"},1:function(C){return Ce(C%100,3,10)?"few":0===C?"zero":Ce(C%100,11,99)?"many":2==C?"two":1==C?"one":"other"},2:function(C){return 0!==C&&C%10==0?"many":2==C?"two":1==C?"one":"other"},3:function(C){return 1==C?"one":"other"},4:function(C){return Ce(C,0,1)?"one":"other"},5:function(C){return Ce(C,0,2)&&2!=C?"one":"other"},6:function(C){return 0===C?"zero":C%10==1&&C%100!=11?"one":"other"},7:function(C){return 2==C?"two":1==C?"one":"other"},8:function(C){return Ce(C,3,6)?"few":Ce(C,7,10)?"many":2==C?"two":1==C?"one":"other"},9:function(C){return 0===C||1!=C&&Ce(C%100,1,19)?"few":1==C?"one":"other"},10:function(C){return Ce(C%10,2,9)&&!Ce(C%100,11,19)?"few":C%10!=1||Ce(C%100,11,19)?"other":"one"},11:function(C){return Ce(C%10,2,4)&&!Ce(C%100,12,14)?"few":C%10==0||Ce(C%10,5,9)||Ce(C%100,11,14)?"many":C%10==1&&C%100!=11?"one":"other"},12:function(C){return Ce(C,2,4)?"few":1==C?"one":"other"},13:function(C){return Ce(C%10,2,4)&&!Ce(C%100,12,14)?"few":1!=C&&Ce(C%10,0,1)||Ce(C%10,5,9)||Ce(C%100,12,14)?"many":1==C?"one":"other"},14:function(C){return Ce(C%100,3,4)?"few":C%100==2?"two":C%100==1?"one":"other"},15:function(C){return 0===C||Ce(C%100,2,10)?"few":Ce(C%100,11,19)?"many":1==C?"one":"other"},16:function(C){return C%10==1&&11!=C?"one":"other"},17:function(C){return 3==C?"few":0===C?"zero":6==C?"many":2==C?"two":1==C?"one":"other"},18:function(C){return 0===C?"zero":Ce(C,0,2)&&0!==C&&2!=C?"one":"other"},19:function(C){return Ce(C,2,10)?"few":Ce(C,0,1)?"one":"other"},20:function(C){return!Ce(C%10,3,4)&&C%10!=9||Ce(C%100,10,19)||Ce(C%100,70,79)||Ce(C%100,90,99)?C%1e6==0&&0!==C?"many":C%10!=2||_e(C%100,[12,72,92])?C%10!=1||_e(C%100,[11,71,91])?"other":"one":"two":"few"},21:function(C){return 0===C?"zero":1==C?"one":"other"},22:function(C){return Ce(C,0,1)||Ce(C,11,99)?"one":"other"},23:function(C){return Ce(C%10,1,2)||C%20==0?"one":"other"},24:function(C){return Ce(C,3,10)||Ce(C,13,19)?"few":_e(C,[2,12])?"two":_e(C,[1,11])?"one":"other"}},X={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[oe.replace(/-.*$/,"")];return X in Be?Be[X]:(console.warn("plural form unknown for ["+oe+"]"),function(){return"other"})}(S));var X="["+b._pluralRules(Be)+"]";return 0===Be&&_e+"[zero]"in T?oe=T[_e+"[zero]"][Ce]:1==Be&&_e+"[one]"in T?oe=T[_e+"[one]"][Ce]:2==Be&&_e+"[two]"in T?oe=T[_e+"[two]"][Ce]:_e+X in T?oe=T[_e+X][Ce]:_e+"[other]"in T&&(oe=T[_e+"[other]"][Ce]),oe},{get:function(oe,Se,_e){var X,Ce=oe.lastIndexOf("."),Be=U;Ce>0&&(Be=oe.substring(Ce+1),oe=oe.substring(0,Ce)),_e&&((X={})[Be]=_e);var C=L(oe,Se,X);return C&&Be in C?C[Be]:"{{"+oe+"}}"},getData:function(){return T},getText:function(){return $},getLanguage:function(){return S},setLanguage:function(oe,Se){O(oe,function(){Se&&Se()})},getDirection:function(){var Se=S.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(Se)>=0?"rtl":"ltr"},translate:function we(oe){for(var Se=function F(oe){return oe?oe.querySelectorAll("*[data-l10n-id]"):[]}(oe=oe||E.documentElement),_e=Se.length,Ce=0;Ce<_e;Ce++)ue(Se[Ce]);ue(oe)},getReadyState:function(){return g},ready:function(oe){oe&&("complete"==g||"interactive"==g?ce.setTimeout(function(){oe()}):E.addEventListener&&E.addEventListener("localized",function Se(){E.removeEventListener("localized",Se),oe()}))}}}(window,document)},(ce,E,Q)=>{var te,fz,fe,G1,oe,q1,_e,pz,Be,mz,C,gz,p,Y1,A,_z,j,vz,pe,gC,ge,Lg,ke,wf,Ue,bz,De,K1,ze,X1,le,_C,Xe,yz,Ke,Q1,pt,wz,ln,Ng;Object.defineProperty(E,"__esModule",{value:!0}),E.PDFFindController=E.FindState=void 0;var T=Q(6),$=Q(3),U=Q(21);const S={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};E.FindState=S;const G={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},P=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),F=[...P.values()].map(Ne=>String.fromCharCode(Ne)).join(""),m=new RegExp("\\p{M}+","gu"),_=new RegExp("([.*+?^${}()|[\\]\\\\])|(\\p{P})|(\\s+)|(\\p{M})|(\\p{L})","gu"),k=new RegExp("([^\\p{M}])\\p{M}*$","u"),O=new RegExp("^\\p{M}*([^\\p{M}])","u");let H=null;function Z(Ne){if(!H){const Fn=Object.keys(G).join("");H=new RegExp(`([${Fn}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`,"gum")}const ae=[];let de;for(;null!==(de=m.exec(Ne));)ae.push([de[0].length,de.index]);let $e=Ne.normalize("NFD");const tt=[[0,0]];let at=0,gt=0,hn=0,yn=0,hi=!1;return $e=$e.replace(H,(Fn,Li,bi,ms,fi,Wn)=>{var Fs;if(Wn-=hn,Li){const Ls=G[Fn],Ks=Ls.length;for(let Or=1;Or<Ks;Or++)tt.push([Wn-gt+Or,gt-Or]);return gt-=Ks-1,Ls}if(bi){const Ls=bi.endsWith("\n"),Ks=Ls?bi.length-2:bi.length;hi=!0;let Or=Ks;Wn+yn===(null==(Fs=ae[at])?void 0:Fs[1])&&(Or-=ae[at][0],++at);for(let xi=1;xi<Or+1;xi++)tt.push([Wn-1-gt+xi,gt-xi]);return gt-=Or,hn+=Or,Ls?(tt.push([(Wn+=Ks-1)-gt+1,1+gt]),gt+=1,hn+=1,yn+=1,bi.slice(0,Ks)):bi}return ms?(tt.push([Wn-gt+1,1+gt]),gt+=1,hn+=1,yn+=1,ms.charAt(0)):(tt.push([Wn-gt+1,gt-1]),gt-=1,hn+=1,yn+=1," ")}),tt.push([$e.length,gt]),[$e,tt,hi]}function L(Ne,ae,de){if(!Ne)return[ae,de];const $e=ae,tt=ae+de;let at=(0,T.binarySearchFirstItem)(Ne,hn=>hn[0]>=$e);Ne[at][0]>$e&&--at;let gt=(0,T.binarySearchFirstItem)(Ne,hn=>hn[0]>=tt,at);return Ne[gt][0]>tt&&--gt,[$e+Ne[at][1],de+Ne[gt][1]-Ne[at][1]]}te=new WeakSet,fz=function(ae){if(!ae)return;const de=this._pdfDocument,{type:$e}=ae;(null===this._state||Nt(this,_e,pz).call(this,ae))&&(this._dirtyMatch=!0),this._state=ae,"highlightallchange"!==$e&&Nt(this,ln,Ng).call(this,S.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||de&&this._pdfDocument!==de)return;Nt(this,j,vz).call(this);const tt=!this._highlightMatches,at=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),$e?this._dirtyMatch?Nt(this,ke,wf).call(this):"again"===$e?(Nt(this,ke,wf).call(this),tt&&this._state.highlightAll&&Nt(this,ge,Lg).call(this)):"highlightallchange"===$e?(at?Nt(this,ke,wf).call(this):this._highlightMatches=!0,Nt(this,ge,Lg).call(this)):Nt(this,ke,wf).call(this):this._findTimeout=setTimeout(()=>{Nt(this,ke,wf).call(this),this._findTimeout=null},250)})},fe=new WeakSet,G1=function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,$.createPromiseCapability)()},oe=new WeakSet,q1=function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=Z(this._state.query)),this._normalizedQuery},_e=new WeakSet,pz=function(ae){if(ae.query!==this._state.query)return!0;switch(ae.type){case"again":const de=this._selected.pageIdx+1,$e=this._linkService;return de>=1&&de<=$e.pagesCount&&de!==$e.page&&!$e.isPageVisible(de);case"highlightallchange":return!1}return!0},Be=new WeakSet,mz=function(ae,de,$e){let tt=ae.slice(0,de).match(k);if(tt){const at=ae.charCodeAt(de),gt=tt[1].charCodeAt(0);if((0,U.getCharacterType)(at)===(0,U.getCharacterType)(gt))return!1}if(tt=ae.slice(de+$e).match(O),tt){const at=ae.charCodeAt(de+$e-1),gt=tt[1].charCodeAt(0);if((0,U.getCharacterType)(at)===(0,U.getCharacterType)(gt))return!1}return!0},C=new WeakSet,gz=function(ae,de,$e,tt){const at=[],gt=[],hn=this._pageDiffs[$e];let yn;for(;null!==(yn=ae.exec(tt));){if(de&&!Nt(this,Be,mz).call(this,tt,yn.index,yn[0].length))continue;const[hi,Fn]=L(hn,yn.index,yn[0].length);Fn&&(at.push(hi),gt.push(Fn))}this._pageMatches[$e]=at,this._pageMatchesLength[$e]=gt},p=new WeakSet,Y1=function(ae,de){const{matchDiacritics:$e}=this._state;let tt=!1;return(ae=ae.replace(_,(gt,hn,yn,hi,Fn,Li)=>hn?`[ ]*\\${hn}[ ]*`:yn?`[ ]*${yn}[ ]*`:hi?"[ ]+":$e?Fn||Li:Fn?P.has(Fn.charCodeAt(0))?Fn:"":de?(tt=!0,`${Li}\\p{M}*`):Li)).endsWith("[ ]*")&&(ae=ae.slice(0,ae.length-"[ ]*".length)),$e&&de&&(tt=!0,ae=`${ae}(?=[${F}]|[^\\p{M}]|$)`),[tt,ae]},A=new WeakSet,_z=function(ae){let de=Rt(this,oe,q1);if(0===de.length)return;const{caseSensitive:$e,entireWord:tt,phraseSearch:at}=this._state,gt=this._pageContents[ae],hn=this._hasDiacritics[ae];let yn=!1;if(at)[yn,de]=Nt(this,p,Y1).call(this,de,hn);else{const Li=de.match(/\S+/g);Li&&(de=Li.sort().reverse().map(bi=>{const[ms,fi]=Nt(this,p,Y1).call(this,bi,hn);return yn||(yn=ms),`(${fi})`}).join("|"))}de=new RegExp(de,`g${yn?"u":""}${$e?"":"i"}`),Nt(this,C,gz).call(this,de,tt,ae,gt),this._state.highlightAll&&Nt(this,pe,gC).call(this,ae),this._resumePageIdx===ae&&(this._resumePageIdx=null,Nt(this,De,K1).call(this));const Fn=this._pageMatches[ae].length;Fn>0&&(this._matchesCountTotal+=Fn,Nt(this,pt,wz).call(this))},j=new WeakSet,vz=function(){if(this._extractTextPromises.length>0)return;let ae=Promise.resolve();for(let de=0,$e=this._linkService.pagesCount;de<$e;de++){const tt=(0,$.createPromiseCapability)();this._extractTextPromises[de]=tt.promise,ae=ae.then(()=>this._pdfDocument.getPage(de+1).then(at=>at.getTextContent()).then(at=>{const gt=[];for(const hn of at.items)gt.push(hn.str),hn.hasEOL&>.push("\n");[this._pageContents[de],this._pageDiffs[de],this._hasDiacritics[de]]=Z(gt.join("")),tt.resolve()},at=>{console.error(`Unable to get text content for page ${de+1}`,at),this._pageContents[de]="",this._pageDiffs[de]=null,this._hasDiacritics[de]=!1,tt.resolve()}))}},pe=new WeakSet,gC=function(ae){this._scrollMatches&&this._selected.pageIdx===ae&&(this._linkService.page=ae+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:ae})},ge=new WeakSet,Lg=function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})},ke=new WeakSet,wf=function(){const ae=this._state.findPrevious,de=this._linkService.page-1,$e=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=de,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,Nt(this,ge,Lg).call(this);for(let at=0;at<$e;at++)this._pendingFindMatches.has(at)||(this._pendingFindMatches.add(at),this._extractTextPromises[at].then(()=>{this._pendingFindMatches.delete(at),Nt(this,A,_z).call(this,at)}))}if(""===Rt(this,oe,q1))return void Nt(this,ln,Ng).call(this,S.FOUND);if(this._resumePageIdx)return;const tt=this._offset;if(this._pagesToSearch=$e,null!==tt.matchIdx){const at=this._pageMatches[tt.pageIdx].length;if(!ae&&tt.matchIdx+1<at||ae&&tt.matchIdx>0)return tt.matchIdx=ae?tt.matchIdx-1:tt.matchIdx+1,void Nt(this,le,_C).call(this,!0);Nt(this,ze,X1).call(this,ae)}Nt(this,De,K1).call(this)},Ue=new WeakSet,bz=function(ae){const de=this._offset,$e=ae.length,tt=this._state.findPrevious;return $e?(de.matchIdx=tt?$e-1:0,Nt(this,le,_C).call(this,!0),!0):(Nt(this,ze,X1).call(this,tt),!!(de.wrapped&&(de.matchIdx=null,this._pagesToSearch<0))&&(Nt(this,le,_C).call(this,!1),!0))},De=new WeakSet,K1=function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let ae=null;do{const de=this._offset.pageIdx;if(ae=this._pageMatches[de],!ae){this._resumePageIdx=de;break}}while(!Nt(this,Ue,bz).call(this,ae))},ze=new WeakSet,X1=function(ae){const de=this._offset,$e=this._linkService.pagesCount;de.pageIdx=ae?de.pageIdx-1:de.pageIdx+1,de.matchIdx=null,this._pagesToSearch--,(de.pageIdx>=$e||de.pageIdx<0)&&(de.pageIdx=ae?$e-1:0,de.wrapped=!0)},le=new WeakSet,_C=function(ae=!1){let de=S.NOT_FOUND;const $e=this._offset.wrapped;if(this._offset.wrapped=!1,ae){const tt=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,de=$e?S.WRAPPED:S.FOUND,-1!==tt&&tt!==this._selected.pageIdx&&Nt(this,pe,gC).call(this,tt)}Nt(this,ln,Ng).call(this,de,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,Nt(this,pe,gC).call(this,this._selected.pageIdx))},Xe=new WeakSet,yz=function(ae){const de=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||de&&this._pdfDocument!==de||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),Nt(this,ln,Ng).call(this,S.FOUND),this._highlightMatches=!1,Nt(this,ge,Lg).call(this))})},Ke=new WeakSet,Q1=function(){var at;const{pageIdx:ae,matchIdx:de}=this._selected;let $e=0,tt=this._matchesCountTotal;if(-1!==de){for(let gt=0;gt<ae;gt++)$e+=(null==(at=this._pageMatches[gt])?void 0:at.length)||0;$e+=de+1}return($e<1||$e>tt)&&($e=tt=0),{current:$e,total:tt}},pt=new WeakSet,wz=function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:Nt(this,Ke,Q1).call(this)})},ln=new WeakSet,Ng=function(ae,de=!1){var $e,tt;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:ae,previous:de,matchesCount:Nt(this,Ke,Q1).call(this),rawQuery:null!=(tt=null==($e=this._state)?void 0:$e.query)?tt:null})},E.PDFFindController=class V{constructor({linkService:ae,eventBus:de}){Gt(this,te),Gt(this,fe),Gt(this,oe),Gt(this,_e),Gt(this,Be),Gt(this,C),Gt(this,p),Gt(this,A),Gt(this,j),Gt(this,pe),Gt(this,ge),Gt(this,ke),Gt(this,Ue),Gt(this,De),Gt(this,ze),Gt(this,le),Gt(this,Xe),Gt(this,Ke),Gt(this,pt),Gt(this,ln),this._linkService=ae,this._eventBus=de,Nt(this,fe,G1).call(this),de._on("find",Nt(this,te,fz).bind(this)),de._on("findbarclose",Nt(this,Xe,yz).bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(ae){this._pdfDocument&&Nt(this,fe,G1).call(this),ae&&(this._pdfDocument=ae,this._firstPageCapability.resolve())}scrollMatchIntoView({element:ae=null,selectedLeft:de=0,pageIndex:$e=-1,matchIndex:tt=-1}){this._scrollMatches&&ae&&-1!==tt&&tt===this._selected.matchIdx&&-1!==$e&&$e===this._selected.pageIdx&&(this._scrollMatches=!1,(0,T.scrollIntoView)(ae,{top:-50,left:de+-400},!0))}}},(ce,E)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.CharacterType=void 0,E.getCharacterType=function m(_){return function T(_){return _<11904}(_)?function $(_){return 0==(65408&_)}(_)?function b(_){return 32===_||9===_||13===_||10===_}(_)?Q.SPACE:function U(_){return _>=97&&_<=122||_>=65&&_<=90}(_)||function S(_){return _>=48&&_<=57}(_)||95===_?Q.ALPHA_LETTER:Q.PUNCT:function F(_){return 3584==(65408&_)}(_)?Q.THAI_LETTER:160===_?Q.SPACE:Q.ALPHA_LETTER:function g(_){return _>=13312&&_<=40959||_>=63744&&_<=64255}(_)?Q.HAN_LETTER:function M(_){return _>=12448&&_<=12543}(_)?Q.KATAKANA_LETTER:function G(_){return _>=12352&&_<=12447}(_)?Q.HIRAGANA_LETTER:function P(_){return _>=65376&&_<=65439}(_)?Q.HALFWIDTH_KATAKANA_LETTER:Q.ALPHA_LETTER};const Q={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};E.CharacterType=Q},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFHistory=void 0,E.isDestArraysEqual=P,E.isDestHashesEqual=G;var T=Q(6),$=Q(17);function g(){return document.location.hash}function G(F,m){return"string"==typeof F&&"string"==typeof m&&(F===m||(0,T.parseQueryString)(F).get("nameddest")===m)}function P(F,m){function _(k,O){if(typeof k!=typeof O||Array.isArray(k)||Array.isArray(O))return!1;if(null!==k&&"object"==typeof k&&null!==O){if(Object.keys(k).length!==Object.keys(O).length)return!1;for(const H in k)if(!_(k[H],O[H]))return!1;return!0}return k===O||Number.isNaN(k)&&Number.isNaN(O)}if(!Array.isArray(F)||!Array.isArray(m)||F.length!==m.length)return!1;for(let k=0,O=F.length;k<O;k++)if(!_(F[k],m[k]))return!1;return!0}E.PDFHistory=class M{constructor({linkService:m,eventBus:_}){this.linkService=m,this.eventBus=_,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",k=>{this._isPagesLoaded=!!k.pagesCount},{once:!0})})}initialize({fingerprint:m,resetHistory:_=!1,updateUrl:k=!1}){if(!m||"string"!=typeof m)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const O=""!==this._fingerprint&&this._fingerprint!==m;this._fingerprint=m,this._updateUrl=!0===k,this._initialized=!0,this._bindEvents();const H=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=g(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(H,!0)||_){const{hash:L,page:V,rotation:te}=this._parseCurrentHash(!0);return!L||O||_?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:L,page:V,rotation:te},!0)}const Z=H.destination;this._updateInternalState(Z,H.uid,!0),void 0!==Z.rotation&&(this._initialRotation=Z.rotation),Z.dest?(this._initialBookmark=JSON.stringify(Z.dest),this._destination.page=null):Z.hash?this._initialBookmark=Z.hash:Z.page&&(this._initialBookmark=`page=${Z.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:m=null,explicitDest:_,pageNumber:k}){if(!this._initialized)return;if(m&&"string"!=typeof m)return void console.error(`PDFHistory.push: "${m}" is not a valid namedDest parameter.`);if(!Array.isArray(_))return void console.error(`PDFHistory.push: "${_}" is not a valid explicitDest parameter.`);if(!this._isValidPage(k)&&(null!==k||this._destination))return void console.error(`PDFHistory.push: "${k}" is not a valid pageNumber parameter.`);const O=m||JSON.stringify(_);if(!O)return;let H=!1;if(this._destination&&(G(this._destination.hash,O)||P(this._destination.dest,_))){if(this._destination.page)return;H=!0}this._popStateInProgress&&!H||(this._pushOrReplaceState({dest:_,hash:O,page:k,rotation:this.linkService.rotation},H),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(m){var _;if(this._initialized){if(!this._isValidPage(m))return void console.error(`PDFHistory.pushPage: "${m}" is not a valid page number.`);(null==(_=this._destination)?void 0:_.page)!==m&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${m}`,page:m,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const m=window.history.state;this._isValidState(m)&&m.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const m=window.history.state;this._isValidState(m)&&m.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(m,_=!1){const k=_||!this._destination,O={fingerprint:this._fingerprint,uid:k?this._uid:this._uid+1,destination:m};let H;if(this._updateInternalState(m,O.uid),this._updateUrl&&(null==m?void 0:m.hash)){const Z=document.location.href.split("#")[0];Z.startsWith("file://")||(H=`${Z}#${m.hash}`)}k?window.history.replaceState(O,"",H):window.history.pushState(O,"",H)}_tryPushCurrentPosition(m=!1){if(!this._position)return;let _=this._position;if(m&&(_=Object.assign(Object.create(null),this._position),_.temporary=!0),!this._destination)return void this._pushOrReplaceState(_);if(this._destination.temporary)return void this._pushOrReplaceState(_,!0);if(this._destination.hash===_.hash||!this._destination.page&&this._numPositionUpdates<=50)return;let k=!1;if(this._destination.page>=_.first&&this._destination.page<=_.page){if(void 0!==this._destination.dest||!this._destination.first)return;k=!0}this._pushOrReplaceState(_,k)}_isValidPage(m){return Number.isInteger(m)&&m>0&&m<=this.linkService.pagesCount}_isValidState(m,_=!1){if(!m)return!1;if(m.fingerprint!==this._fingerprint){if(!_)return!1;{if("string"!=typeof m.fingerprint||m.fingerprint.length!==this._fingerprint.length)return!1;const[k]=performance.getEntriesByType("navigation");if("reload"!==(null==k?void 0:k.type))return!1}}return!(!Number.isInteger(m.uid)||m.uid<0||null===m.destination||"object"!=typeof m.destination)}_updateInternalState(m,_,k=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),k&&(null==m?void 0:m.temporary)&&delete m.temporary,this._destination=m,this._uid=_,this._maxUid=Math.max(this._maxUid,_),this._numPositionUpdates=0}_parseCurrentHash(m=!1){const _=unescape(g()).substring(1),k=(0,T.parseQueryString)(_),O=k.get("nameddest")||"";let H=0|k.get("page");return(!this._isValidPage(H)||m&&O.length>0)&&(H=null),{hash:_,page:H,rotation:this.linkService.rotation}}_updateViewarea({location:m}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:m.pdfOpenParams.substring(1),page:this.linkService.page,first:m.pageNumber,rotation:m.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:m}){const _=g(),k=this._currentHash!==_;if(this._currentHash=_,!m){this._uid++;const{hash:H,page:Z,rotation:L}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:H,page:Z,rotation:L},!0)}if(!this._isValidState(m))return;this._popStateInProgress=!0,k&&(this._blockHashChange++,(0,$.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const O=m.destination;this._updateInternalState(O,m.uid,!0),(0,T.isValidRotation)(O.rotation)&&(this.linkService.rotation=O.rotation),O.dest?this.linkService.goToDestination(O.dest):O.hash?this.linkService.setHash(O.hash):O.page&&(this.linkService.page=O.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.PDFScriptingManager=void 0;var T=Q(6),$=Q(3);E.PDFScriptingManager=class U{constructor({eventBus:b,sandboxBundleSrc:g=null,scriptingFactory:M=null,docPropertiesLookup:G=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=b,this._sandboxBundleSrc=g,this._scriptingFactory=M,this._docPropertiesLookup=G,this._scriptingFactory||window.addEventListener("updatefromsandbox",P=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:P.detail})})}setViewer(b){this._pdfViewer=b}setDocument(b){var g=this;return I(function*(){var F;if(g._pdfDocument&&(yield g._destroyScripting()),g._pdfDocument=b,!b)return;const[M,G,P]=yield Promise.all([b.getFieldObjects(),b.getCalculationOrderIds(),b.getJSActions()]);if(M||P){if(b===g._pdfDocument){try{g._scripting=g._createScripting()}catch(m){return console.error(`PDFScriptingManager.setDocument: "${null==m?void 0:m.message}".`),void(yield g._destroyScripting())}g._internalEvents.set("updatefromsandbox",m=>{(null==m?void 0:m.source)===window&&g._updateFromSandbox(m.detail)}),g._internalEvents.set("dispatcheventinsandbox",m=>{var _;null==(_=g._scripting)||_.dispatchEventInSandbox(m.detail)}),g._internalEvents.set("pagechanging",({pageNumber:m,previous:_})=>{m!==_&&(g._dispatchPageClose(_),g._dispatchPageOpen(m))}),g._internalEvents.set("pagerendered",({pageNumber:m})=>{!g._pageOpenPending.has(m)||m===g._pdfViewer.currentPageNumber&&g._dispatchPageOpen(m)}),g._internalEvents.set("pagesdestroy",function(){var m=I(function*(_){var k,O;yield g._dispatchPageClose(g._pdfViewer.currentPageNumber),yield null==(k=g._scripting)?void 0:k.dispatchEventInSandbox({id:"doc",name:"WillClose"}),null==(O=g._closeCapability)||O.resolve()});return function(_){return m.apply(this,arguments)}}()),g._domEvents.set("mousedown",m=>{g._mouseState.isDown=!0}),g._domEvents.set("mouseup",m=>{g._mouseState.isDown=!1});for(const[m,_]of g._internalEvents)g._eventBus._on(m,_);for(const[m,_]of g._domEvents)window.addEventListener(m,_,!0);try{const m=yield g._getDocProperties();if(b!==g._pdfDocument)return;yield g._scripting.createSandbox({objects:M,calculationOrder:G,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:B1(V1({},m),{actions:P})}),g._eventBus.dispatch("sandboxcreated",{source:g})}catch(m){return console.error(`PDFScriptingManager.setDocument: "${null==m?void 0:m.message}".`),void(yield g._destroyScripting())}yield null==(F=g._scripting)?void 0:F.dispatchEventInSandbox({id:"doc",name:"Open"}),yield g._dispatchPageOpen(g._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{b===g._pdfDocument&&(g._ready=!0)})}}else yield g._destroyScripting()})()}dispatchWillSave(b){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"WillSave"})})()}dispatchDidSave(b){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"DidSave"})})()}dispatchWillPrint(b){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"WillPrint"})})()}dispatchDidPrint(b){var g=this;return I(function*(){var M;return null==(M=g._scripting)?void 0:M.dispatchEventInSandbox({id:"doc",name:"DidPrint"})})()}get mouseState(){return this._mouseState}get destroyPromise(){var b;return(null==(b=this._destroyCapability)?void 0:b.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,$.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,$.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,$.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,$.shadow)(this,"_visitedPages",new Map)}_updateFromSandbox(b){var g=this;return I(function*(){var k;const M=g._pdfViewer.isInPresentationMode||g._pdfViewer.isChangingPresentationMode,{id:G,siblings:P,command:F,value:m}=b;if(!G){switch(F){case"clear":console.clear();break;case"error":console.error(m);break;case"layout":if(M)return;const O=(0,T.apiPageLayoutToViewerModes)(m);g._pdfViewer.spreadMode=O.spreadMode;break;case"page-num":g._pdfViewer.currentPageNumber=m+1;break;case"print":yield g._pdfViewer.pagesPromise,g._eventBus.dispatch("print",{source:g});break;case"println":console.log(m);break;case"zoom":if(M)return;g._pdfViewer.currentScaleValue=m;break;case"SaveAs":g._eventBus.dispatch("save",{source:g});break;case"FirstPage":g._pdfViewer.currentPageNumber=1;break;case"LastPage":g._pdfViewer.currentPageNumber=g._pdfViewer.pagesCount;break;case"NextPage":g._pdfViewer.nextPage();break;case"PrevPage":g._pdfViewer.previousPage();break;case"ZoomViewIn":if(M)return;g._pdfViewer.increaseScale();break;case"ZoomViewOut":if(M)return;g._pdfViewer.decreaseScale()}return}if(M&&b.focus)return;delete b.id,delete b.siblings;const _=P?[G,...P]:[G];for(const O of _){const H=document.getElementById(O);H?H.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:b})):null==(k=g._pdfDocument)||k.annotationStorage.setValue(O,b)}})()}_dispatchPageOpen(b,g=!1){var M=this;return I(function*(){const G=M._pdfDocument,P=M._visitedPages;if(g&&(M._closeCapability=(0,$.createPromiseCapability)()),!M._closeCapability)return;const F=M._pdfViewer.getPageView(b-1);if((null==F?void 0:F.renderingState)!==T.RenderingStates.FINISHED)return void M._pageOpenPending.add(b);M._pageOpenPending.delete(b);const m=I(function*(){var k,O;const _=yield P.has(b)?null:null==(k=F.pdfPage)?void 0:k.getJSActions();G===M._pdfDocument&&(yield null==(O=M._scripting)?void 0:O.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:b,actions:_}))})();P.set(b,m)})()}_dispatchPageClose(b){var g=this;return I(function*(){var F;const M=g._pdfDocument,G=g._visitedPages;if(!g._closeCapability||g._pageOpenPending.has(b))return;const P=G.get(b);!P||(G.set(b,null),yield P,M===g._pdfDocument&&(yield null==(F=g._scripting)?void 0:F.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:b})))})()}_getDocProperties(){var b=this;return I(function*(){if(b._docPropertiesLookup)return b._docPropertiesLookup(b._pdfDocument);const{docPropertiesLookup:g}=Q(24);return g(b._pdfDocument)})()}_createScripting(){if(this._destroyCapability=(0,$.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:b}=Q(24);return new b(this._sandboxBundleSrc)}_destroyScripting(){var b=this;return I(function*(){var g,M;if(!b._scripting)return b._pdfDocument=null,void(null==(g=b._destroyCapability)||g.resolve());b._closeCapability&&(yield Promise.race([b._closeCapability.promise,new Promise(G=>{setTimeout(G,1e3)})]).catch(G=>{}),b._closeCapability=null),b._pdfDocument=null;try{yield b._scripting.destroySandbox()}catch(G){}for(const[G,P]of b._internalEvents)b._eventBus._off(G,P);b._internalEvents.clear();for(const[G,P]of b._domEvents)window.removeEventListener(G,P,!0);b._domEvents.clear(),b._pageOpenPending.clear(),b._visitedPages.clear(),b._scripting=null,delete b._mouseState.isDown,b._ready=!1,null==(M=b._destroyCapability)||M.resolve()})()}}},(ce,E,Q)=>{Object.defineProperty(E,"__esModule",{value:!0}),E.GenericScripting=void 0,E.docPropertiesLookup=function $(b){return U.apply(this,arguments)};var T=Q(3);function U(){return(U=I(function*(b){const M="".split("#")[0];let{info:G,metadata:P,contentDispositionFilename:F,contentLength:m}=yield b.getMetadata();if(!m){const{length:_}=yield b.getDownloadInfo();m=_}return B1(V1({},G),{baseURL:M,filesize:m,filename:F||(0,T.getPdfFilenameFromUrl)(""),metadata:null==P?void 0:P.getRaw(),authors:null==P?void 0:P.get("dc:creator"),numPages:b.numPages,URL:""})})).apply(this,arguments)}E.GenericScripting=class S{constructor(g){this._ready=(0,T.loadScript)(g,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}createSandbox(g){var M=this;return I(function*(){(yield M._ready).create(g)})()}dispatchEventInSandbox(g){var M=this;return I(function*(){const G=yield M._ready;setTimeout(()=>G.dispatchEvent(g),0)})()}destroySandbox(){var g=this;return I(function*(){(yield g._ready).nukeSandbox()})()}}}],Ve={};function Te(ce){var E=Ve[ce];if(void 0!==E)return E.exports;var Q=Ve[ce]={exports:{}};return J[ce](Q,Q.exports,Te),Q.exports}var Me={};return(()=>{var ce=Me;Object.defineProperty(ce,"__esModule",{value:!0}),Object.defineProperty(ce,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return U.AnnotationLayerBuilder}}),Object.defineProperty(ce,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return E.DefaultAnnotationLayerFactory}}),Object.defineProperty(ce,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return E.DefaultStructTreeLayerFactory}}),Object.defineProperty(ce,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return E.DefaultTextLayerFactory}}),Object.defineProperty(ce,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return E.DefaultXfaLayerFactory}}),Object.defineProperty(ce,"DownloadManager",{enumerable:!0,get:function(){return S.DownloadManager}}),Object.defineProperty(ce,"EventBus",{enumerable:!0,get:function(){return b.EventBus}}),Object.defineProperty(ce,"GenericL10n",{enumerable:!0,get:function(){return g.GenericL10n}}),Object.defineProperty(ce,"LinkTarget",{enumerable:!0,get:function(){return Q.LinkTarget}}),Object.defineProperty(ce,"NullL10n",{enumerable:!0,get:function(){return M.NullL10n}}),Object.defineProperty(ce,"PDFFindController",{enumerable:!0,get:function(){return G.PDFFindController}}),Object.defineProperty(ce,"PDFHistory",{enumerable:!0,get:function(){return P.PDFHistory}}),Object.defineProperty(ce,"PDFLinkService",{enumerable:!0,get:function(){return Q.PDFLinkService}}),Object.defineProperty(ce,"PDFPageView",{enumerable:!0,get:function(){return F.PDFPageView}}),Object.defineProperty(ce,"PDFScriptingManager",{enumerable:!0,get:function(){return m.PDFScriptingManager}}),Object.defineProperty(ce,"PDFSinglePageViewer",{enumerable:!0,get:function(){return $.PDFSinglePageViewer}}),Object.defineProperty(ce,"PDFViewer",{enumerable:!0,get:function(){return $.PDFViewer}}),Object.defineProperty(ce,"ProgressBar",{enumerable:!0,get:function(){return T.ProgressBar}}),Object.defineProperty(ce,"SimpleLinkService",{enumerable:!0,get:function(){return Q.SimpleLinkService}}),Object.defineProperty(ce,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return _.StructTreeLayerBuilder}}),Object.defineProperty(ce,"TextLayerBuilder",{enumerable:!0,get:function(){return k.TextLayerBuilder}}),Object.defineProperty(ce,"XfaLayerBuilder",{enumerable:!0,get:function(){return O.XfaLayerBuilder}}),Object.defineProperty(ce,"parseQueryString",{enumerable:!0,get:function(){return T.parseQueryString}});var E=Te(1),Q=Te(5),T=Te(6),$=Te(10),U=Te(2),S=Te(16),b=Te(17),g=Te(18),M=Te(4),G=Te(20),P=Te(22),F=Te(12),m=Te(23),_=Te(7),k=Te(8),O=Te(9)})(),Me})(),Ze.exports=Te()},87:function(Ze,re){var He,J;!function(Ve,Te){"use strict";He=function(){var Ve=function(){var E,Q,Me="+1,-1,100,1234,8ball,a,ab,abc,abcd,accept,aerial_tramway,airplane,alarm_clock,alien,ambulance,anchor,angel,anger,angry,anguished,ant,apple,aquarius,aries,arrow_backward,arrow_double_down,arrow_double_up,arrow_down,arrow_down_small,arrow_forward,arrow_heading_down,arrow_heading_up,arrow_left,arrow_lower_left,arrow_lower_right,arrow_right,arrow_right_hook,arrow_up,arrow_up_down,arrow_up_small,arrow_upper_left,arrow_upper_right,arrows_clockwise,arrows_counterclockwise,art,articulated_lorry,astonished,atm,b,baby,baby_bottle,baby_chick,baby_symbol,back,baggage_claim,balloon,ballot_box_with_check,bamboo,banana,bangbang,bank,bar_chart,barber,baseball,basketball,bath,bathtub,battery,bear,bee,beer,beers,beetle,beginner,bell,bento,bicyclist,bike,bikini,bird,birthday,black_circle,black_joker,black_medium_small_square,black_medium_square,black_nib,black_small_square,black_square,black_square_button,blossom,blowfish,blue_book,blue_car,blue_heart,blush,boar,boat,bomb,book,bookmark,bookmark_tabs,books,boom,boot,bouquet,bow,bowling,bowtie,boy,bread,bride_with_veil,bridge_at_night,briefcase,broken_heart,bug,bulb,bullettrain_front,bullettrain_side,bus,busstop,bust_in_silhouette,busts_in_silhouette,cactus,cake,calendar,calling,camel,camera,cancer,candy,capital_abcd,capricorn,car,card_index,carousel_horse,cat,cat2,cd,chart,chart_with_downwards_trend,chart_with_upwards_trend,checkered_flag,cherries,cherry_blossom,chestnut,chicken,children_crossing,chocolate_bar,christmas_tree,church,cinema,circus_tent,city_sunrise,city_sunset,cl,clap,clapper,clipboard,clock1,clock10,clock1030,clock11,clock1130,clock12,clock1230,clock130,clock2,clock230,clock3,clock330,clock4,clock430,clock5,clock530,clock6,clock630,clock7,clock730,clock8,clock830,clock9,clock930,closed_book,closed_lock_with_key,closed_umbrella,cloud,clubs,cn,cocktail,coffee,cold_sweat,collision,computer,confetti_ball,confounded,confused,congratulations,construction,construction_worker,convenience_store,cookie,cool,cop,copyright,corn,couple,couple_with_heart,couplekiss,cow,cow2,credit_card,crescent_moon,crocodile,crossed_flags,crown,cry,crying_cat_face,crystal_ball,cupid,curly_loop,currency_exchange,curry,custard,customs,cyclone,dancer,dancers,dango,dart,dash,date,de,deciduous_tree,department_store,diamond_shape_with_a_dot_inside,diamonds,disappointed,disappointed_relieved,dizzy,dizzy_face,do_not_litter,dog,dog2,dollar,dolls,dolphin,donut,door,doughnut,dragon,dragon_face,dress,dromedary_camel,droplet,dvd,e-mail,ear,ear_of_rice,earth_africa,earth_americas,earth_asia,egg,eggplant,eight,eight_pointed_black_star,eight_spoked_asterisk,electric_plug,elephant,email,end,envelope,es,euro,european_castle,european_post_office,evergreen_tree,exclamation,expressionless,eyeglasses,eyes,facepunch,factory,fallen_leaf,family,fast_forward,fax,fearful,feelsgood,feet,ferris_wheel,file_folder,finnadie,fire,fire_engine,fireworks,first_quarter_moon,first_quarter_moon_with_face,fish,fish_cake,fishing_pole_and_fish,fist,five,flags,flashlight,floppy_disk,flower_playing_cards,flushed,foggy,football,fork_and_knife,fountain,four,four_leaf_clover,fr,free,fried_shrimp,fries,frog,frowning,fu,fuelpump,full_moon,full_moon_with_face,game_die,gb,gem,gemini,ghost,gift,gift_heart,girl,globe_with_meridians,goat,goberserk,godmode,golf,grapes,green_apple,green_book,green_heart,grey_exclamation,grey_question,grimacing,grin,grinning,guardsman,guitar,gun,haircut,hamburger,hammer,hamster,hand,handbag,hankey,hash,hatched_chick,hatching_chick,headphones,hear_no_evil,heart,heart_decoration,heart_eyes,heart_eyes_cat,heartbeat,heartpulse,hearts,heavy_check_mark,heavy_division_sign,heavy_dollar_sign,heavy_exclamation_mark,heavy_minus_sign,heavy_multiplication_x,heavy_plus_sign,helicopter,herb,hibiscus,high_brightness,high_heel,hocho,honey_pot,honeybee,horse,horse_racing,hospital,hotel,hotsprings,hourglass,hourglass_flowing_sand,house,house_with_garden,hurtrealbad,hushed,ice_cream,icecream,id,ideograph_advantage,imp,inbox_tray,incoming_envelope,information_desk_person,information_source,innocent,interrobang,iphone,it,izakaya_lantern,jack_o_lantern,japan,japanese_castle,japanese_goblin,japanese_ogre,jeans,joy,joy_cat,jp,key,keycap_ten,kimono,kiss,kissing,kissing_cat,kissing_closed_eyes,kissing_face,kissing_heart,kissing_smiling_eyes,koala,koko,kr,large_blue_circle,large_blue_diamond,large_orange_diamond,last_quarter_moon,last_quarter_moon_with_face,laughing,leaves,ledger,left_luggage,left_right_arrow,leftwards_arrow_with_hook,lemon,leo,leopard,libra,light_rail,link,lips,lipstick,lock,lock_with_ink_pen,lollipop,loop,loudspeaker,love_hotel,love_letter,low_brightness,m,mag,mag_right,mahjong,mailbox,mailbox_closed,mailbox_with_mail,mailbox_with_no_mail,man,man_with_gua_pi_mao,man_with_turban,mans_shoe,maple_leaf,mask,massage,meat_on_bone,mega,melon,memo,mens,metal,metro,microphone,microscope,milky_way,minibus,minidisc,mobile_phone_off,money_with_wings,moneybag,monkey,monkey_face,monorail,mortar_board,mount_fuji,mountain_bicyclist,mountain_cableway,mountain_railway,mouse,mouse2,movie_camera,moyai,muscle,mushroom,musical_keyboard,musical_note,musical_score,mute,nail_care,name_badge,neckbeard,necktie,negative_squared_cross_mark,neutral_face,new,new_moon,new_moon_with_face,newspaper,ng,nine,no_bell,no_bicycles,no_entry,no_entry_sign,no_good,no_mobile_phones,no_mouth,no_pedestrians,no_smoking,non-potable_water,nose,notebook,notebook_with_decorative_cover,notes,nut_and_bolt,o,o2,ocean,octocat,octopus,oden,office,ok,ok_hand,ok_woman,older_man,older_woman,on,oncoming_automobile,oncoming_bus,oncoming_police_car,oncoming_taxi,one,open_file_folder,open_hands,open_mouth,ophiuchus,orange_book,outbox_tray,ox,package,page_facing_up,page_with_curl,pager,palm_tree,panda_face,paperclip,parking,part_alternation_mark,partly_sunny,passport_control,paw_prints,peach,pear,pencil,pencil2,penguin,pensive,performing_arts,persevere,person_frowning,person_with_blond_hair,person_with_pouting_face,phone,pig,pig2,pig_nose,pill,pineapple,pisces,pizza,plus1,point_down,point_left,point_right,point_up,point_up_2,police_car,poodle,poop,post_office,postal_horn,postbox,potable_water,pouch,poultry_leg,pound,pouting_cat,pray,princess,punch,purple_heart,purse,pushpin,put_litter_in_its_place,question,rabbit,rabbit2,racehorse,radio,radio_button,rage,rage1,rage2,rage3,rage4,railway_car,rainbow,raised_hand,raised_hands,raising_hand,ram,ramen,rat,recycle,red_car,red_circle,registered,relaxed,relieved,repeat,repeat_one,restroom,revolving_hearts,rewind,ribbon,rice,rice_ball,rice_cracker,rice_scene,ring,rocket,roller_coaster,rooster,rose,rotating_light,round_pushpin,rowboat,ru,rugby_football,runner,running,running_shirt_with_sash,sa,sagittarius,sailboat,sake,sandal,santa,satellite,satisfied,saxophone,school,school_satchel,scissors,scorpius,scream,scream_cat,scroll,seat,secret,see_no_evil,seedling,seven,shaved_ice,sheep,shell,ship,shipit,shirt,shit,shoe,shower,signal_strength,six,six_pointed_star,ski,skull,sleeping,sleepy,slot_machine,small_blue_diamond,small_orange_diamond,small_red_triangle,small_red_triangle_down,smile,smile_cat,smiley,smiley_cat,smiling_imp,smirk,smirk_cat,smoking,snail,snake,snowboarder,snowflake,snowman,sob,soccer,soon,sos,sound,space_invader,spades,spaghetti,sparkle,sparkler,sparkles,sparkling_heart,speak_no_evil,speaker,speech_balloon,speedboat,squirrel,star,star2,stars,station,statue_of_liberty,steam_locomotive,stew,straight_ruler,strawberry,stuck_out_tongue,stuck_out_tongue_closed_eyes,stuck_out_tongue_winking_eye,sun_with_face,sunflower,sunglasses,sunny,sunrise,sunrise_over_mountains,surfer,sushi,suspect,suspension_railway,sweat,sweat_drops,sweat_smile,sweet_potato,swimmer,symbols,syringe,tada,tanabata_tree,tangerine,taurus,taxi,tea,telephone,telephone_receiver,telescope,tennis,tent,thought_balloon,three,thumbsdown,thumbsup,ticket,tiger,tiger2,tired_face,tm,toilet,tokyo_tower,tomato,tongue,top,tophat,tractor,traffic_light,train,train2,tram,triangular_flag_on_post,triangular_ruler,trident,triumph,trolleybus,trollface,trophy,tropical_drink,tropical_fish,truck,trumpet,tshirt,tulip,turtle,tv,twisted_rightwards_arrows,two,two_hearts,two_men_holding_hands,two_women_holding_hands,u5272,u5408,u55b6,u6307,u6708,u6709,u6e80,u7121,u7533,u7981,u7a7a,uk,umbrella,unamused,underage,unlock,up,us,v,vertical_traffic_light,vhs,vibration_mode,video_camera,video_game,violin,virgo,volcano,vs,walking,waning_crescent_moon,waning_gibbous_moon,warning,watch,water_buffalo,watermelon,wave,wavy_dash,waxing_crescent_moon,waxing_gibbous_moon,wc,weary,wedding,whale,whale2,wheelchair,white_check_mark,white_circle,white_flower,white_large_square,white_medium_small_square,white_medium_square,white_small_square,white_square_button,wind_chime,wine_glass,wink,wolf,woman,womans_clothes,womans_hat,womens,worried,wrench,x,yellow_heart,yen,yum,zap,zero,zzz".split(/,/),ce=Me.reduce(function(_,k){return _[k]=!0,_},{});function T(){var _={named:/:([a-z0-9A-Z_-]+):/,smile:/:-?\)/g,open_mouth:/:o/gi,scream:/:-o/gi,smirk:/[:;]-?]/g,grinning:/[:;]-?d/gi,stuck_out_tongue_closed_eyes:/x-d/gi,stuck_out_tongue_winking_eye:/[:;]-?p/gi,rage:/:-?[\[@]/g,frowning:/:-?\(/g,sob:/:['\u2019]-?\(|:'\(/g,kissing_heart:/:-?\*/g,wink:/;-?\)/g,pensive:/:-?\//g,confounded:/:-?s/gi,flushed:/:-?\|/g,relaxed:/:-?\$/g,mask:/:-x/gi,heart:/<3|<3/g,broken_heart:/<\/3|</3/g,thumbsup:/:\+1:/g,thumbsdown:/:\-1:/g};return U.ignore_emoticons&&(_={named:/:([a-z0-9A-Z_-]+):/,thumbsup:/:\+1:/g,thumbsdown:/:\-1:/g}),Object.keys(_).map(function(k){return[_[k],k]})}function $(){var _=E.map(function(k){var O=k[0],H=O.source||O;return"("+(H=H.replace(/(^|[^\[])\^/g,"$1"))+")"}).join("|");return new RegExp(_,"gi")}var U={blacklist:{ids:[],classes:["no-emojify"],elements:["script","textarea","a","pre","code"]},tag_type:null,only_crawl_id:null,img_dir:"images/emoji",ignore_emoticons:!1,mode:"img"};function S(_){return" "===_||"\t"===_||"\r"===_||"\n"===_||""===_||_===String.fromCharCode(160)}var b={img:"img",sprite:"span","data-uri":"span"};function g(_){var k=null;if(_.replacer)k=_.replacer.apply({config:U},[":"+_.emojiName+":",_.emojiName]);else{var O=U.tag_type||b[U.mode];k=_.win.document.createElement(O),"img"!==O?k.setAttribute("class","emoji emoji-"+_.emojiName):(k.setAttribute("align","absmiddle"),k.setAttribute("alt",":"+_.emojiName+":"),k.setAttribute("class","emoji"),k.setAttribute("src",U.img_dir+"/"+_.emojiName+".png")),k.setAttribute("title",":"+_.emojiName+":")}_.node.splitText(_.match.index),_.node.nextSibling.nodeValue=_.node.nextSibling.nodeValue.substr(_.match[0].length,_.node.nextSibling.nodeValue.length),k.appendChild(_.node.splitText(_.match.index)),_.node.parentNode.insertBefore(k,_.node.nextSibling)}function M(_){if(_[1]&&_[2]){var k=_[2];return ce[k]?k:void 0}for(var O=3;O<_.length-1;O++)if(_[O])return E[O-2][1]}function G(_,k){var O=this.config.tag_type||b[this.config.mode];return"img"!==O?"<"+O+" class='emoji emoji-"+k+"' title=':"+k+":'></"+O+">":"<img align='absmiddle' alt=':"+k+":' class='emoji' src='"+this.config.img_dir+"/"+k+".png' title=':"+k+":' />"}function P(){this.lastEmojiTerminatedAt=-1}return P.prototype={validate:function(_,k,O){var H=this,Z=M(_);if(Z){var L=_[0],V=L.length;if(0===k||O.length===L.length+k)return te();var ue=this.lastEmojiTerminatedAt===k;return ue||S(O.charAt(k-1))||S(O.charAt(L.length+k))&&ue?te():void 0}function te(){return H.lastEmojiTerminatedAt=V+k,Z}}},{defaultConfig:U,emojiNames:Me,setConfig:function(_){Object.keys(U).forEach(function(k){k in _&&(U[k]=_[k])})},replace:function F(_,k){if(!_)return _;k||(k=G),E=T(),Q=$();var O=new P;return _.replace(Q,function(){var H=Array.prototype.slice.call(arguments,0,-2),V=O.validate(H,arguments[arguments.length-2],arguments[arguments.length-1]);return V?k.apply({config:U},[arguments[0],V]):arguments[0]})},run:function m(_,k){void 0===_&&(_=U.only_crawl_id?document.getElementById(U.only_crawl_id):document.body);var O=_.ownerDocument,H=O.defaultView||O.parentWindow,Z=function(oe,Se){var _e;if(oe.hasChildNodes())for(_e=oe.firstChild;_e;)Se(_e)&&Z(_e,Se),_e=_e.nextSibling};E=T(),Q=$();var V=[],te=new RegExp(U.blacklist.elements.join("|"),"i"),ue=new RegExp(U.blacklist.classes.join("|"),"i");if(void 0!==H.document.createTreeWalker)for(var we,fe=H.document.createTreeWalker(_,H.NodeFilter.SHOW_TEXT|H.NodeFilter.SHOW_ELEMENT,function(oe){return 1!==oe.nodeType?H.NodeFilter.FILTER_ACCEPT:oe.tagName.match(te)||"svg"===oe.tagName||oe.className.match(ue)?H.NodeFilter.FILTER_REJECT:H.NodeFilter.FILTER_SKIP},!1);null!==(we=fe.nextNode());)V.push(we);else Z(_,function(oe){return!(void 0!==oe.tagName&&oe.tagName.match(te)||void 0!==oe.className&&oe.className.match(ue)||(1===oe.nodeType||V.push(oe),0))});V.forEach(function(oe){for(var Se,_e=[],Ce=new P;null!==(Se=Q.exec(oe.data));)Ce.validate(Se,Se.index,Se.input)&&_e.push(Se);for(var Be=_e.length;Be-- >0;){var X=M(_e[Be]);g({node:oe,match:_e[Be],emojiName:X,replacer:k,win:H})}})}}}();return Ve},void 0!==(J=He.apply(re,[]))&&(Ze.exports=J)}()},3414:()=>{},172:()=>{},2001:()=>{},3779:()=>{},6558:()=>{},2258:()=>{},7156:Ze=>{function re(I,J,Ve,Te,Me,ce,E){try{var Q=I[ce](E),T=Q.value}catch($){return void Ve($)}Q.done?J(T):Promise.resolve(T).then(Te,Me)}Ze.exports=function He(I){return function(){var J=this,Ve=arguments;return new Promise(function(Te,Me){var ce=I.apply(J,Ve);function E(T){re(ce,Te,Me,E,Q,"next",T)}function Q(T){re(ce,Te,Me,E,Q,"throw",T)}E(void 0)})}},Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports}},Ze=>{Ze(Ze.s=4585)}]); \ No newline at end of file