diff --git a/about/index.html b/about/index.html index 0ad8044..f07cd8f 100644 --- a/about/index.html +++ b/about/index.html @@ -14,9 +14,9 @@ - + -

Why Was This Made?

I'm the guy at my church who runs the lyric presentation software for a lot of the services. We used SongShow Plus for several years, and it worked pretty well for us. It did have a few key frustrations for us, plus the fact that we really wanted to switch over to a Mac. After looking into it, ProPresenter seemed like a great choice.

After making the leap, we quickly realized that SongShow Plus had absolutely no way to export our songs, and ProPresenter had absolutely no way of getting these songs from SongShow Plus! Sure, there are a few half-baked solutions out there, or the good old copy-n-paste-every-slide-of-every-song method, but none of those are really ideal.

After talking to the media director at another church, he told me that they were holding off making the same software switch that we had made because they were uncertain of how to transfer all of their songs over. This got me thinking… It seemed as if enough people had the need for a tool like this and yet one didn't exist!

In my non-church time during the week I'm a full time web designer/developer, so I decided to take a look at the file formats for each program and determined that it wouldn't be that hard to do! Well… There ended up being a bit more complexities than I anticipated, and it did take quite a while to get it to the point where I felt comfortable releasing it. BUT, here it is. I hope you find it useful.

Donations are welcome!

If you find this service useful, please consider donating to this site to help support the cost! A small $5 donation (or more!) would really help to support my efforts.

Want To Make This Better?

This project is on GitHub! Feel free to take a look at the code, or submit improvements & changes.

Fork On GitHub!

I am not in any way affiliated with any of the companies or organizations that make any of the lyric file formats or presentation software listed here

- +

Why Was This Made?

I'm the guy at my church who runs the lyric presentation software for a lot of the services. We used SongShow Plus for several years, and it worked pretty well for us. It did have a few key frustrations for us, plus the fact that we really wanted to switch over to a Mac. After looking into it, ProPresenter seemed like a great choice.

After making the leap, we quickly realized that SongShow Plus had absolutely no way to export our songs, and ProPresenter had absolutely no way of getting these songs from SongShow Plus! Sure, there are a few half-baked solutions out there, or the good old copy-n-paste-every-slide-of-every-song method, but none of those are really ideal.

After talking to the media director at another church, he told me that they were holding off making the same software switch that we had made because they were uncertain of how to transfer all of their songs over. This got me thinking… It seemed as if enough people had the need for a tool like this and yet one didn't exist!

In my non-church time during the week I'm a full time web designer/developer, so I decided to take a look at the file formats for each program and determined that it wouldn't be that hard to do! Well… There ended up being a bit more complexities than I anticipated, and it did take quite a while to get it to the point where I felt comfortable releasing it. BUT, here it is. I hope you find it useful.

Donations are welcome!

If you find this service useful, please consider donating to this site to help support the cost! A small $5 donation (or more!) would really help to support my efforts.

Want To Make This Better?

This project is on GitHub! Feel free to take a look at the code, or submit improvements & changes.

Fork On GitHub!

I am not in any way affiliated with any of the companies or organizations that make any of the lyric file formats or presentation software listed here

+ \ No newline at end of file diff --git a/help/index.html b/help/index.html index 91d2422..aea7e23 100644 --- a/help/index.html +++ b/help/index.html @@ -14,9 +14,9 @@ - + -

Supported Formats

Eventually I would love for LyricConverter to convert between all of these formats and more, but for the time being this is all it can do.

ImportExport
ChordPro
EasyWorship
JSON
MediaShout
OpenLyrics
OpenSong
Plain Text
ProPresenter 4
ProPresenter 5
ProPresenter 6
ProPresenter 7
SongPro
SongShow Plus 7

You can import the ProPresenter 6 files made by LyricConverter into ProPresenter 7!

Have a question or some other problem?

- +

Supported Formats

Eventually I would love for LyricConverter to convert between all of these formats and more, but for the time being this is all it can do.

ImportExport
ChordPro
EasyWorship
JSON
MediaShout
OpenLyrics
OpenSong
Plain Text
ProPresenter 4
ProPresenter 5
ProPresenter 6
ProPresenter 7
SongPro
SongShow Plus 7

You can import the ProPresenter 6 files made by LyricConverter into ProPresenter 7!

Have a question or some other problem?

+ \ No newline at end of file diff --git a/index.html b/index.html index 3e75c8e..1f87dfd 100644 --- a/index.html +++ b/index.html @@ -14,10 +14,10 @@ - -

Drop Your Song Files Here

Choose what file type you want to convert to, then…

Drag your Song Files into this window

or, select some files

Accepted Formats: ProPresenter 4, ProPresenter 5, ProPresenter 6, ChordPro, SongPro, SongShow Plus 7, OpenLyrics, Plain Text, or JSON
- +

Drop Your Song Files Here

Choose what file type you want to convert to, then…

Drag your Song Files into this window

or, select some files

Accepted Formats: ProPresenter 4, ProPresenter 5, ProPresenter 6, ChordPro, SongPro, SongShow Plus 7, OpenLyrics, Plain Text, or JSON
+ \ No newline at end of file diff --git a/index.original.html b/index.original.html index 8430fd0..9dc32c4 100644 --- a/index.original.html +++ b/index.original.html @@ -16,8 +16,8 @@ - + - + diff --git a/main.035e817b263b1468.js b/main.035e817b263b1468.js deleted file mode 100644 index 1f67079..0000000 --- a/main.035e817b263b1468.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[590],{52:(it,P,X)=>{"use strict";function F(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(r,i)}function M(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){F(o,r,i,s,a,"next",l)}function a(l){F(o,r,i,s,a,"throw",l)}s(void 0)})}}let y=null,E=1;const b=Symbol("SIGNAL");function v(e){const t=y;return y=e,t}function O(e){if((!x(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==E)){if(!e.producerMustRecompute(e)&&!oe(e))return e.dirty=!1,void(e.lastCleanEpoch=E);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=E}}function oe(e){j(e);for(let t=0;t0}function j(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let K=null;function W(e){return"function"==typeof e}function k(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const A=k(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function H(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ie{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:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(W(r))try{r()}catch(o){t=o instanceof A?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{pe(o)}catch(s){t=t??[],s instanceof A?t=[...t,...s.errors]:t.push(s)}}if(t)throw new A(t)}}add(t){var n;if(t&&t!==this)if(this.closed)pe(t);else{if(t instanceof ie){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&H(n,t)}remove(t){const{_finalizers:n}=this;n&&H(n,t),t instanceof ie&&t._removeParent(this)}}ie.EMPTY=(()=>{const e=new ie;return e.closed=!0,e})();const de=ie.EMPTY;function q(e){return e instanceof ie||e&&"closed"in e&&W(e.remove)&&W(e.add)&&W(e.unsubscribe)}function pe(e){W(e)?e():e.unsubscribe()}const we={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ge={setTimeout(e,t,...n){const{delegate:r}=ge;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ge;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Me(e){ge.setTimeout(()=>{const{onUnhandledError:t}=we;if(!t)throw e;t(e)})}function tt(){}const Ze=fn("C",void 0,void 0);function fn(e,t,n){return{kind:e,value:t,error:n}}let bn=null;function dt(e){if(we.useDeprecatedSynchronousErrorHandling){const t=!bn;if(t&&(bn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=bn;if(bn=null,n)throw r}}else e()}class gi extends ie{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,q(t)&&t.add(this)):this.destination=Hi}static create(t,n,r){return new hs(t,n,r)}next(t){this.isStopped?br(function pi(e){return fn("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?br(function dn(e){return fn("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?br(Ze,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 Un=Function.prototype.bind;function Ui(e,t){return Un.call(e,t)}class Ic{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){$i(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){$i(r)}else $i(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){$i(n)}}}class hs extends gi{constructor(t,n,r){let i;if(super(),W(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&we.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Ui(t.next,o),error:t.error&&Ui(t.error,o),complete:t.complete&&Ui(t.complete,o)}):i=t}this.destination=new Ic(i)}}function $i(e){we.useDeprecatedSynchronousErrorHandling?function ji(e){we.useDeprecatedSynchronousErrorHandling&&bn&&(bn.errorThrown=!0,bn.error=e)}(e):Me(e)}function br(e,t){const{onStoppedNotification:n}=we;n&&ge.setTimeout(()=>n(e,t))}const Hi={closed:!0,next:tt,error:function Ga(e){throw e},complete:tt},Tc="function"==typeof Symbol&&Symbol.observable||"@@observable";function mi(e){return e}function vg(e){return 0===e.length?mi:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}let Vt=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function XD(e){return e&&e instanceof gi||function QD(e){return e&&W(e.next)&&W(e.error)&&W(e.complete)}(e)&&q(e)}(n)?n:new hs(n,r,i);return dt(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=yg(r))((i,o)=>{const s=new hs({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Tc](){return this}pipe(...n){return vg(n)(this)}toPromise(n){return new(n=yg(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function yg(e){var t;return null!==(t=e??we.Promise)&&void 0!==t?t:Promise}const KD=k(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Nn=(()=>{class e extends Vt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new wg(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new KD}next(n){dt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){dt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){dt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?de:(this.currentObservers=null,o.push(n),new ie(()=>{this.currentObservers=null,H(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new Vt;return n.source=this,n}}return e.create=(t,n)=>new wg(t,n),e})();class wg extends Nn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:de}}class Rn extends Nn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Cg(e){return W(e?.lift)}function Ht(e){return t=>{if(Cg(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bt(e,t,n,r,i){return new JD(e,t,n,r,i)}class JD extends gi{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function at(e,t){return Ht((n,r)=>{let i=0;n.subscribe(Bt(r,o=>{r.next(e.call(t,o,i++))}))})}const _g="https://g.co/ng/security#xss";class he extends Error{constructor(t,n){super(function zi(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Mc(e){return t=>{setTimeout(e,void 0,t)}}const zt=class eE extends Nn{constructor(t=!1){super(),this.__isAsync=t}emit(t){const n=v(null);try{super.next(t)}finally{v(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Mc(o),i&&(i=Mc(i)),s&&(s=Mc(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof ie&&t.add(a),a}};var Ge=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ge||{});function Nt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Nt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ac(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var qa=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(qa||{}),$n=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}($n||{});function Dr(e){return{toString:e}.toString()}const nt=globalThis,rr={},Qe=[];function ot(e){for(let t in e)if(e[t]===ot)return t;throw Error("Could not find renamed property on target object.")}const ps=ot({\u0275cmp:ot}),xc=ot({\u0275dir:ot}),Nc=ot({\u0275pipe:ot}),Eg=ot({\u0275mod:ot}),Er=ot({\u0275fac:ot}),gs=ot({__NG_ELEMENT_ID__:ot}),Sg=ot({__NG_ENV_ID__:ot});var Hn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Hn||{});function Ig(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Rc(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;oo?"":i[d+1].toLowerCase();const N=8&r?S:null;if(N&&-1!==Ig(N,u,0)||2&r&&u!==S){if(zn(r))return!1;s=!0}}}}else{if(!s&&!zn(r)&&!zn(l))return!1;if(s&&zn(l))continue;s=!1,r=l|1&r}}return zn(r)||s}function zn(e){return 0==(1&e)}function lE(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!zn(s)&&(t+=Og(o,i),i=""),r=s,o=o||!zn(r);n++}return""!==i&&(t+=Og(o,i)),t}function Sr(e){return Dr(()=>{const t=Pg(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===qa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||$n.Emulated,styles:e.styles||Qe,_:null,schemas:e.schemas||null,tView:null,id:""};Fg(n);const r=e.dependencies;return n.directiveDefs=Za(r,!1),n.pipeDefs=Za(r,!0),n.id=function wE(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function mE(e){return He(e)||Rt(e)}function vE(e){return null!==e}function Ir(e){return Dr(()=>({type:e.type,bootstrap:e.bootstrap||Qe,declarations:e.declarations||Qe,imports:e.imports||Qe,exports:e.exports||Qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function kg(e,t){if(null==e)return rr;const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,s,a=Hn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Hn.None?[r,a]:r,t[o]=s):n[o]=r}return n}function Yt(e){return Dr(()=>{const t=Pg(e);return Fg(t),t})}function He(e){return e[ps]||null}function Rt(e){return e[xc]||null}function Gt(e){return e[Nc]||null}function Qt(e,t){const n=e[Eg]||null;if(!n&&!0===t)throw new Error(`Type ${Nt(e)} does not have '\u0275mod' property.`);return n}function Pg(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||rr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Qe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:kg(e.inputs,t),outputs:kg(e.outputs),debugInfo:null}}function Fg(e){e.features?.forEach(t=>t(e))}function Za(e,t){if(!e)return null;const n=t?Gt:mE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(vE)}const vt=0,me=1,Te=2,bt=3,Gn=4,Xt=5,Wn=6,Gi=7,ft=8,Wt=9,Tr=10,ke=11,vs=12,Lg=13,Wi=14,wt=15,ys=16,qi=17,Mr=18,ws=19,Vg=20,Zr=21,Ya=22,vi=23,Fe=25,Oc=1,ir=7,Zi=9,Dt=10;var kc=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(kc||{});function Kt(e){return Array.isArray(e)&&"object"==typeof e[Oc]}function Jt(e){return Array.isArray(e)&&!0===e[Oc]}function Pc(e){return 0!=(4&e.flags)}function yi(e){return e.componentOffset>-1}function Xa(e){return 1==(1&e.flags)}function qn(e){return!!e.template}function Fc(e){return 0!=(512&e[Te])}const $g="svg";let zg=!1;function lt(e){for(;Array.isArray(e);)e=e[vt];return e}function on(e,t){return lt(t[e.index])}function bs(e,t){return e.data[t]}function Sn(e,t){const n=t[e];return Kt(n)?n:n[vt]}function jc(e){return 128==(128&e[Te])}function or(e,t){return null==t?null:e[t]}function Gg(e){e[qi]=0}function TE(e){1024&e[Te]||(e[Te]|=1024,jc(e)&&Ds(e))}function Uc(e){return!!(9216&e[Te]||e[vi]?.dirty)}function $c(e){Uc(e)?Ds(e):64&e[Te]&&(function DE(){return zg}()?(e[Te]|=1024,Ds(e)):e[Tr].changeDetectionScheduler?.notify())}function Ds(e){e[Tr].changeDetectionScheduler?.notify();let t=wi(e);for(;null!==t&&!(8192&t[Te])&&(t[Te]|=8192,jc(t));)t=wi(t)}function Ka(e,t){if(256==(256&e[Te]))throw new he(911,!1);null===e[Zr]&&(e[Zr]=[]),e[Zr].push(t)}function wi(e){const t=e[bt];return Jt(t)?t[bt]:t}const Re={lFrame:tm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Zg(){return Re.bindingsEnabled}function ee(){return Re.lFrame.lView}function We(){return Re.lFrame.tView}function Ci(e){return Re.lFrame.contextLView=e,e[ft]}function _i(e){return Re.lFrame.contextLView=null,e}function st(){let e=Yg();for(;null!==e&&64===e.type;)e=e.parent;return e}function Yg(){return Re.lFrame.currentTNode}function sr(e,t){const n=Re.lFrame;n.currentTNode=e,n.isParent=t}function zc(){return Re.lFrame.isParent}function sn(){const e=Re.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ar(){return Re.lFrame.bindingIndex}function Zn(){return Re.lFrame.bindingIndex++}function xr(e){const t=Re.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function VE(e,t){const n=Re.lFrame;n.bindingIndex=n.bindingRootIndex=e,Wc(t)}function Wc(e){Re.lFrame.currentDirectiveIndex=e}function Zc(){return Re.lFrame.currentQueryIndex}function Ja(e){Re.lFrame.currentQueryIndex=e}function jE(e){const t=e[me];return 2===t.type?t.declTNode:1===t.type?e[Xt]:null}function Jg(e,t,n){if(n&Ge.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&Ge.Host||(i=jE(o),null===i||(o=o[Wi],10&i.type))););if(null===i)return!1;t=i,e=o}const r=Re.lFrame=em();return r.currentTNode=t,r.lView=e,!0}function Yc(e){const t=em(),n=e[me];Re.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function em(){const e=Re.lFrame,t=null===e?null:e.child;return null===t?tm(e):t}function tm(e){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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function nm(){const e=Re.lFrame;return Re.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const rm=nm;function Qc(){const e=nm();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function en(){return Re.lFrame.selectedIndex}function bi(e){Re.lFrame.selectedIndex=e}function ht(){const e=Re.lFrame;return bs(e.tView,e.selectedIndex)}function Ot(){Re.lFrame.currentNamespace=$g}function ar(){!function HE(){Re.lFrame.currentNamespace=null}()}let om=!0;function el(){return om}function Yr(e){om=e}function zE(){return Xi(st(),ee())}function Xi(e,t){return new Nr(on(e,t))}let ed,Nr=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=zE}return e})();function sm(e){return e instanceof Nr?e.nativeElement:e}function Ki(e,t){e.forEach(n=>Array.isArray(n)?Ki(n,t):t(n))}function am(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function tl(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function WE(){return this._results[Symbol.iterator]()}class Jc{static#e=Symbol.iterator;get changes(){return this._changes??=new zt}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Jc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=WE)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function pn(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function GE(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rKE}),KE="ng",pm=new be(""),Xr=new be("",{providedIn:"platform",factory:()=>"unknown"}),gm=new be("",{providedIn:"root",factory:()=>function Qr(){if(void 0!==ed)return ed;if(typeof document<"u")return document;throw new he(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),tS=ot({__forward_ref__:ot});function nd(e){return e.__forward_ref__=nd,e.toString=function(){return Nt(this())},e}function Ne(e){return ul(e)?e():e}function ul(e){return"function"==typeof e&&e.hasOwnProperty(tS)&&e.__forward_ref__===nd}function ad(e){return e&&!!e.\u0275providers}function Le(e){return"string"==typeof e?e:null==e?"":String(e)}function ld(e,t){throw new he(-201,!1)}let ud;function vm(){return ud}function gn(e){const t=ud;return ud=e,t}function ym(e,t,n){const r=ol(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ge.Optional?null:void 0!==t?t:void ld()}const Is={},cd="__NG_DI_FLAG__",cl="ngTempTokenPath",aS=/\n/gm,wm="__source";let eo;function Kr(e){const t=eo;return eo=e,t}function cS(e,t=Ge.Default){if(void 0===eo)throw new he(-203,!1);return null===eo?ym(e,void 0,t):eo.get(e,t&Ge.Optional?null:void 0,t)}function Ae(e,t=Ge.Default){return(vm()||cS)(Ne(e),t)}function ce(e,t=Ge.Default){return Ae(e,dl(t))}function dl(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function dd(e){const t=[];for(let n=0;nnull;function wd(e,t,n=!1){return _m(e,t,n)}const oo="__parameters__";function ao(e,t,n){return Dr(()=>{const r=function Dd(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(oo)?l[oo]:Object.defineProperty(l,oo,{value:[]})[oo];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const vl=Ts(ao("Optional"),8),yl=Ts(ao("SkipSelf"),4);function Di(e,t){return e.hasOwnProperty(Er)?e[Er]:null}const Ei=new be(""),Tm=new be("",-1),Ed=new be("");class wl{get(t,n=Is){if(n===Is){const r=new Error(`NullInjectorError: No provider for ${Nt(t)}!`);throw r.name="NullInjectorError",r}return n}}function SS(...e){return{\u0275providers:Id(0,e),\u0275fromNgModule:!0}}function Id(e,...t){const n=[],r=new Set;let i;const o=s=>{n.push(s)};return Ki(t,s=>{const a=s;Cl(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&Mm(i,o),n}function Mm(e,t){for(let n=0;n{t(o,r)})}}function Cl(e,t,n,r){if(!(e=Ne(e)))return!1;let i=null,o=sl(e);const s=!o&&He(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const l=e.ngModule;if(o=sl(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)Cl(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Ki(o.imports,c=>{Cl(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&Mm(u,t)}if(!a){const u=Di(i)||(()=>new i);t({provide:i,useFactory:u,deps:Qe},i),t({provide:Ed,useValue:i,multi:!0},i),t({provide:Ei,useValue:()=>Ae(i),multi:!0},i)}const l=o.providers;if(null!=l&&!a){const u=e;Td(l,c=>{t(c,u)})}}}return i!==e&&void 0!==e.providers}function Td(e,t){for(let n of e)ad(n)&&(n=n.\u0275providers),Array.isArray(n)?Td(n,t):t(n)}const IS=ot({provide:String,useValue:ot});function Md(e){return null!==e&&"object"==typeof e&&IS in e}function Si(e){return"function"==typeof e}const Ad=new be(""),_l={},MS={};let xd;function bl(){return void 0===xd&&(xd=new wl),xd}class Tn{}class lo extends Tn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rd(t,s=>this.processProvider(s)),this.records.set(Tm,uo(void 0,this)),i.has("environment")&&this.records.set(Tn,uo(void 0,this));const o=this.records.get(Ad);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ed,Qe,Ge.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=v(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),v(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Kr(this),r=gn(void 0);try{return t()}finally{Kr(n),gn(r)}}get(t,n=Is,r=Ge.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Sg))return t[Sg](this);r=dl(r);const o=Kr(this),s=gn(void 0);try{if(!(r&Ge.SkipSelf)){let l=this.records.get(t);if(void 0===l){const u=function OS(e){return"function"==typeof e||"object"==typeof e&&e instanceof be}(t)&&ol(t);l=u&&this.injectableDefInScope(u)?uo(Nd(t),_l):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(r&Ge.Self?bl():this.parent).get(t,n=r&Ge.Optional&&n===Is?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[cl]=a[cl]||[]).unshift(Nt(t)),o)throw a;return function fS(e,t,n,r){const i=e[cl];throw t[wm]&&i.unshift(t[wm]),e.message=function hS(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Nt(t);if(Array.isArray(t))i=t.map(Nt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Nt(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(aS,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[cl]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{gn(s),Kr(o)}}resolveInjectorInitializers(){const t=v(null),n=Kr(this),r=gn(void 0);try{const o=this.get(Ei,Qe,Ge.Self);for(const s of o)s()}finally{Kr(n),gn(r),v(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Nt(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(t){let n=Si(t=Ne(t))?t:Ne(t&&t.provide);const r=function xS(e){return Md(e)?uo(void 0,e.useValue):uo(function Nm(e,t,n){let r;if(Si(e)){const i=Ne(e);return Di(i)||Nd(i)}if(Md(e))r=()=>Ne(e.useValue);else if(function xm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...dd(e.deps||[]));else if(function Am(e){return!(!e||!e.useExisting)}(e))r=()=>Ae(Ne(e.useExisting));else{const i=Ne(e&&(e.useClass||e.provide));if(!function NS(e){return!!e.deps}(e))return Di(i)||Nd(i);r=()=>new i(...dd(e.deps))}return r}(e),_l)}(t);if(!Si(t)&&!0===t.multi){let i=this.records.get(n);i||(i=uo(void 0,_l,!0),i.factory=()=>dd(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=v(null);try{return n.value===_l&&(n.value=MS,n.value=n.factory()),"object"==typeof n.value&&n.value&&function RS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{v(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Ne(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Nd(e){const t=ol(e),n=null!==t?t.factory:Di(e);if(null!==n)return n;if(e instanceof be)throw new he(204,!1);if(e instanceof Function)return function AS(e){if(e.length>0)throw new he(204,!1);const n=function QE(e){return e&&(e[al]||e[hm])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new he(204,!1)}function uo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Rd(e,t){for(const n of e)Array.isArray(n)?Rd(n,t):n&&ad(n)?Rd(n.\u0275providers,t):t(n)}function Ii(e,t){e instanceof lo&&e.assertNotDestroyed();const r=Kr(e),i=gn(void 0);try{return t()}finally{Kr(r),gn(i)}}function Ns(e){if(!vm()&&!function uS(){return eo}())throw new he(-203,!1)}class HS{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Om(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Ti(){return km}function km(e){return e.type.prototype.ngOnChanges&&(e.setInput=GS),zS}function zS(){const e=Fm(this),t=e?.current;if(t){const n=e.previous;if(n===rr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function GS(e,t,n,r,i){const o=this.declaredInputs[r],s=Fm(e)||function WS(e,t){return e[Pm]=t}(e,{previous:rr,current:null}),a=s.current||(s.current={}),l=s.previous,u=l[o];a[o]=new HS(u&&u.currentValue,n,l===rr),Om(e,t,i,n)}Ti.ngInherit=!0;const Pm="__ngSimpleChanges__";function Fm(e){return e[Pm]||null}const ur=function(e,t,n){};function El(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[qi]+=65536),(a>14>16&&(3&e[Te])===t&&(e[Te]+=16384,Vm(a,o)):Vm(a,o)}const fo=-1;class Os{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ld(e){return e!==fo}function ks(e){return 32767&e}function Ps(e,t){let n=function eI(e){return e>>16}(e),r=t;for(;n>0;)r=r[Wi],n--;return r}let Vd=!0;function Tl(e){const t=Vd;return Vd=e,t}const Bm=255,jm=5;let tI=0;const cr={};function Ml(e,t){const n=Um(e,t);if(-1!==n)return n;const r=t[me];r.firstCreatePass&&(e.injectorIndex=t.length,Bd(r.data,e),Bd(t,null),Bd(r.blueprint,null));const i=Al(e,t),o=e.injectorIndex;if(Ld(i)){const s=ks(i),a=Ps(i,t),l=a[me].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function Bd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Um(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Al(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Zm(i),null===r)return fo;if(n++,i=i[Wi],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return fo}function jd(e,t,n){!function nI(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(gs)&&(r=n[gs]),null==r&&(r=n[gs]=tI++);const i=r&Bm;t.data[e+(i>>jm)]|=1<=0?t&Bm:sI:t}(n);if("function"==typeof o){if(!Jg(t,e,r))return r&Ge.Host?$m(i,0,r):Hm(t,n,r,i);try{let s;if(s=o(r),null!=s||r&Ge.Optional)return s;ld()}finally{rm()}}else if("number"==typeof o){let s=null,a=Um(e,t),l=fo,u=r&Ge.Host?t[wt][Xt]:null;for((-1===a||r&Ge.SkipSelf)&&(l=-1===a?Al(e,t):t[a+8],l!==fo&&qm(r,!1)?(s=t[me],a=ks(l),t=Ps(l,t)):a=-1);-1!==a;){const c=t[me];if(Wm(o,a,c.data)){const d=iI(a,t,n,s,r,u);if(d!==cr)return d}l=t[a+8],l!==fo&&qm(r,t[me].data[a+8]===u)&&Wm(o,a,t)?(s=c,a=ks(l),t=Ps(l,t)):a=-1}}return i}function iI(e,t,n,r,i,o){const s=t[me],a=s.data[e+8],c=xl(a,s,n,null==r?yi(a)&&Vd:r!=s&&0!=(3&a.type),i&Ge.Host&&o===a);return null!==c?Mi(t,s,c,a):cr}function xl(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,l=e.directiveStart,c=o>>20,S=i?a+c:e.directiveEnd;for(let N=r?a:a+c;N=l&&U.type===n)return N}if(i){const N=s[l];if(N&&qn(N)&&N.type===n)return l}return null}function Mi(e,t,n,r){let i=e[n];const o=t.data;if(function QS(e){return e instanceof Os}(i)){const s=i;s.resolving&&function iS(e,t){throw t&&t.join(" > "),new he(-200,e)}(function Ke(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Le(e)}(o[n]));const a=Tl(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?gn(s.injectImpl):null;Jg(e,r,Ge.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ZS(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=km(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}(n,o[n],t)}finally{null!==u&&gn(u),Tl(a),s.resolving=!1,rm()}}return i}function Wm(e,t,n){return!!(n[t+(e>>jm)]&1<{const t=e.prototype.constructor,n=t[Er]||$d(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Er]||$d(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function $d(e){return ul(e)?()=>{const t=$d(Ne(e));return t&&t()}:Di(e)}function Zm(e){const t=e[me],n=t.type;return 2===n?t.declTNode:1===n?e[Xt]:null}function Jm(e,t=null,n=null,r){const i=ev(e,t,n,r);return i.resolveInjectorInitializers(),i}function ev(e,t=null,n=null,r,i=new Set){const o=[n||Qe,SS(e)];return r=r||("object"==typeof e?void 0:Nt(e)),new lo(o,t||bl(),r||null,i)}let mn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Is;static#t=this.NULL=new wl;static create(n,r){if(Array.isArray(n))return Jm({name:""},r,n,"");{const i=n.name??"";return Jm({name:i},n.parent,n.providers,i)}}static#n=this.\u0275prov=Ee({token:e,providedIn:"any",factory:()=>Ae(Tm)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function zd(e){return e.ngOriginalError}class Rr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&zd(t);for(;n&&zd(n);)n=zd(n);return n||null}}const nv=new be("",{providedIn:"root",factory:()=>ce(Rr).handleError.bind(void 0)}),iv=new be("",{providedIn:"root",factory:()=>!1});let Pl;function av(e){return function Wd(){if(void 0===Pl&&(Pl=null,nt.trustedTypes))try{Pl=nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pl}()?.createScriptURL(e)||e}class lv{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${_g})`}}function Jr(e){return e instanceof lv?e.changingThisBreaksApplicationSecurity:e}function Fs(e,t){const n=function bI(e){return e instanceof lv&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${_g})`)}return n===t}const II=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var mo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(mo||{});function Xd(e){const t=Vs();return t?t.sanitize(mo.URL,e)||"":Fs(e,"URL")?Jr(e):function qd(e){return(e=String(e)).match(II)?e:"unsafe:"+e}(Le(e))}function gv(e){const t=Vs();if(t)return av(t.sanitize(mo.RESOURCE_URL,e)||"");if(Fs(e,"ResourceURL"))return av(Jr(e));throw new he(904,!1)}function Vs(){const e=ee();return e&&e[Tr].sanitizer}const Kd=new Map;let WI=0;const ef="__ngContext__";function tn(e,t){Kt(t)?(e[ef]=t[ws],function ZI(e){Kd.set(e[ws],e)}(t)):e[ef]=t}function Bl(e){return e.ownerDocument}function Mn(e){return e instanceof Function?e():e}var ti=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ti||{});let sf;function af(e,t){return sf(e,t)}function yo(e,t,n,r,i){if(null!=r){let o,s=!1;Jt(r)?o=r:Kt(r)&&(s=!0,r=r[vt]);const a=lt(r);0===e&&null!==n?null==i?Pv(t,n,a):Ai(t,n,a,i||null,!0):1===e&&null!==n?Ai(t,n,a,i||null,!0):2===e?function Gl(e,t,n){const r=Hl(e,t);r&&function g2(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function y2(e,t,n,r,i){const o=n[ir];o!==lt(n)&&yo(t,e,r,o,i);for(let a=Dt;a0&&(e[n-1][Gn]=r[Gn]);const o=tl(e,Dt+t);!function l2(e,t){Rv(e,t),t[vt]=null,t[Xt]=null}(r[me],r);const s=o[Mr];null!==s&&s.detachView(o[me]),r[bt]=null,r[Gn]=null,r[Te]&=-129}return r}function $l(e,t){if(!(256&t[Te])){const n=t[ke];n.destroyNode&&Wl(e,t,n,3,null,null),function c2(e){let t=e[vs];if(!t)return uf(e[me],e);for(;t;){let n=null;if(Kt(t))n=t[vs];else{const r=t[Dt];r&&(n=r)}if(!n){for(;t&&!t[Gn]&&t!==e;)Kt(t)&&uf(t[me],t),t=t[bt];null===t&&(t=e),Kt(t)&&uf(t[me],t),n=t&&t[Gn]}t=n}}(t)}}function uf(e,t){if(256&t[Te])return;const n=v(null);try{t[Te]&=-129,t[Te]|=256,t[vi]&&function R(e){if(j(e),x(e))for(let t=0;t=0?r[s]():r[-s].unsubscribe(),o+=2}else n[o].call(r[n[o+1]]);null!==r&&(t[Gi]=null);const i=t[Zr];if(null!==i){t[Zr]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===$n.None||o===$n.Emulated)return null}return on(r,n)}}(e,t.parent,n)}function Ai(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Pv(e,t,n){e.appendChild(t,n)}function Fv(e,t,n,r,i){null!==r?Ai(e,t,n,r,i):Pv(e,t,n)}function Hl(e,t){return e.parentNode(t)}let df,Bv=function Vv(e,t,n){return 40&e.type?on(e,n):null};function zl(e,t,n,r){const i=cf(e,r,t),o=t[ke],a=function Lv(e,t,n){return Bv(e,t,n)}(r.parent||t[Xt],r,t);if(null!=i)if(Array.isArray(n))for(let l=0;lFe&&Wv(e,t,Fe,!1),ur(s?2:0,i),n(r,i)}finally{bi(o),ur(s?3:1,i)}}function gf(e,t,n){if(Pc(t)){const r=v(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function Kv(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;const s=t[o];if(void 0===s)continue;r??={};let a,l=Hn.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let u=o;if(null!==i){if(!i.hasOwnProperty(o))continue;u=i[o]}0===e?Jv(r,n,u,a,l):Jv(r,n,u,a)}return r}function Jv(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],void 0!==i&&o.push(i)}function wf(e,t,n,r){if(Zg()){const i=null===r?null:{"":-1},o=function L2(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,$s(e,n,i.hostVars,Ve),i)}function dr(e,t,n,r,i,o){const s=on(e,t);!function _f(e,t,n,r,i,o,s){if(null==o)e.removeAttribute(t,i,n);else{const a=null==s?Le(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}(t[ke],s,o,e.value,n,r,i)}function H2(e,t,n,r,i,o){const s=o[t];if(null!==s)for(let a=0;a0&&(n[i-1][Gn]=t),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Ds(e.lView)},consumerOnSignalRead(){this.lView[vi]=this}};function cy(e){return fy(e[vs])}function dy(e){return fy(e[Gn])}function fy(e){for(;null!==e&&!Jt(e);)e=e[Gn];return e}function Ql(e,t=!0,n=0){const r=e[Tr],i=r.rendererFactory;i.begin?.();try{!function eT(e,t){If(e,t);let n=0;for(;Uc(e);){if(100===n)throw new he(103,!1);n++,If(e,1)}}(e,n)}catch(s){throw t&&Yl(e,s),s}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function tT(e,t,n,r){const i=t[Te];if(256==(256&i))return;t[Tr].inlineEffectRunner?.flush(),Yc(t);let s=null,a=null;(function nT(e){return 2!==e.type})(e)&&(a=function Z2(e){return e[vi]??function Y2(e){const t=uy.pop()??Object.create(X2);return t.lView=e,t}(e)}(t),s=function L(e){return e&&(e.nextProducerIndex=0),v(e)}(a));try{Gg(t),function Xg(e){return Re.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Yv(e,t,n,2,r);const l=3==(3&i);if(l){const d=e.preOrderCheckHooks;null!==d&&Sl(t,d,null)}else{const d=e.preOrderHooks;null!==d&&Il(t,d,0,null),Pd(t,0)}if(function rT(e){for(let t=cy(e);null!==t;t=dy(t)){if(!(t[Te]&kc.HasTransplantedViews))continue;const n=t[Zi];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function Q2(e){e.lView[vi]!==e&&(e.lView=null,uy.push(e))}(a)),Qc()}}function py(e,t){for(let n=cy(e);null!==n;n=dy(n))for(let r=Dt;r-1&&(js(t,r),tl(n,r))}this._attachedToViewContainer=!1}$l(this._lView[me],this._lView)}onDestroy(t){Ka(this._lView,t)}markForCheck(){Ws(this._cdRefInjectingView||this._lView)}detach(){this._lView[Te]&=-129}reattach(){$c(this._lView),this._lView[Te]|=128}detectChanges(){this._lView[Te]|=1024,Ql(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Rv(this._lView[me],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=t,$c(this._lView)}}let Pr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=aT}return e})();const oT=Pr,sT=class extends oT{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const i=Hs(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new qs(i)}};function aT(){return Xl(st(),ee())}function Xl(e,t){return 4&e.type?new sT(t,e,Xi(e,t)):null}let by=()=>null;function _o(e,t){return by(e,t)}class Dy{}class AT{}class Ey{}class NT{resolveComponentFactory(t){throw function xT(e){const t=Error(`No component factory found for ${Nt(e)}.`);return t.ngComponent=e,t}(t)}}let nu=(()=>{class e{static#e=this.NULL=new NT}return e})();class Iy{}let ru=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function RT(){const e=ee(),n=Sn(st().index,e);return(Kt(n)?n:e)[ke]}()}return e})(),OT=(()=>{class e{static#e=this.\u0275prov=Ee({token:e,providedIn:"root",factory:()=>null})}return e})();const Rf={};let bo=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=PT;static#t=this.__NG_ENV_ID__=n=>n}return e})();class kT extends bo{constructor(t){super(),this._lView=t}onDestroy(t){return Ka(this._lView,t),()=>function Hc(e,t){if(null===e[Zr])return;const n=e[Zr].indexOf(t);-1!==n&&e[Zr].splice(n,1)}(this._lView,t)}}function PT(){return new kT(ee())}const Ty=new Set;function fr(e){Ty.has(e)||(Ty.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function My(...e){}class rt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zt(!1),this.onMicrotaskEmpty=new zt(!1),this.onStable=new zt(!1),this.onError=new zt(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function FT(){const e="function"==typeof nt.requestAnimationFrame;let t=nt[e?"requestAnimationFrame":"setTimeout"],n=nt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function BT(e){const t=()=>{!function VT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,kf(e),e.isCheckStableRunning=!0,Of(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),kf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(function jT(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(i,o,s,a);try{return Ay(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),xy(e)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return Ay(e),n.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),xy(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,kf(e),Of(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!rt.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(rt.isInAngularZone())throw new he(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,LT,My,My);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const LT={};function Of(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function kf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ay(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xy(e){e._nesting--,Of(e)}class Ny{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zt,this.onMicrotaskEmpty=new zt,this.onStable=new zt,this.onError=new zt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}var xi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(xi||{});const Ry={destroy(){}};function Oy(e,t){!t&&Ns();const n=t?.injector??ce(mn);if(!function ei(e){return"browser"===(e??ce(mn)).get(Xr)}(n))return Ry;fr("NgAfterNextRender");const r=n.get(Ks),i=r.handler??=new Py,o=t?.phase??xi.MixedReadWrite,s=()=>{i.unregister(l),a()},a=n.get(bo).onDestroy(s),l=new ky(n,o,()=>{s(),e()});return i.register(l),{destroy:s}}class ky{constructor(t,n,r){this.phase=n,this.callbackFn=r,this.zone=t.get(rt),this.errorHandler=t.get(Rr,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class Py{constructor(){this.executingCallbacks=!1,this.buckets={[xi.EarlyRead]:new Set,[xi.Write]:new Set,[xi.MixedReadWrite]:new Set,[xi.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let Ks=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Ee({token:e,providedIn:"root",factory:()=>new e})}return e})();function ou(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s0&&zv(e,n,o.join(" "))}}(N,Ct,Z,r),void 0!==n&&function JT(e,t,n){const r=e.projection=[];for(let i=0;i{class e{static#e=this.__NG_ELEMENT_ID__=tM}return e})();function tM(){return $y(st(),ee())}const nM=Yn,jy=class extends nM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Xi(this._hostTNode,this._hostLView)}get injector(){return new Pt(this._hostTNode,this._hostLView)}get parentInjector(){const t=Al(this._hostTNode,this._hostLView);if(Ld(t)){const n=Ps(t,this._hostLView),r=ks(t);return new Pt(n[me].data[r+8],n)}return new Pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uy(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Dt}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=_o(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Co(this._hostTNode,s)),a}createComponent(t,n,r,i,o){const s=t&&!function Rs(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const U=n||{};a=U.index,r=U.injector,i=U.projectableNodes,o=U.environmentInjector||U.ngModuleRef}const l=s?t:new ta(He(t)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const Z=(s?u:this.parentInjector).get(Tn,null);Z&&(o=Z)}const c=He(l.componentType??{}),d=_o(this._lContainer,c?.id??null),N=l.create(u,i,d?.firstChild??null,o);return this.insertImpl(N.hostView,a,Co(this._hostTNode,d)),N}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const i=t._lView;if(function IE(e){return Jt(e[bt])}(i)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const l=i[bt],u=new jy(l,l[Xt],l[bt]);u.detach(u.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;return zs(s,i,o,r),t.attachToViewContainerRef(),am(Vf(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Uy(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=js(this._lContainer,n);r&&(tl(Vf(this._lContainer),n),$l(r[me],r))}detach(t){const n=this._adjustIndex(t,-1),r=js(this._lContainer,n);return r&&null!=tl(Vf(this._lContainer),n)?new qs(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Uy(e){return e[8]}function Vf(e){return e[8]||(e[8]=[])}function $y(e,t){let n;const r=t[e.index];return Jt(r)?n=r:(n=ny(r,t,null,e),t[e.index]=n,Zl(t,n)),Hy(n,t,e,r),new jy(n,e,t)}let Hy=function Gy(e,t,n,r){if(e[ir])return;let i;i=8&n.type?lt(r):function rM(e,t){const n=e[ke],r=n.createComment(""),i=on(t,e);return Ai(n,Hl(n,i),r,function m2(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[ir]=i},Bf=()=>!1;class jf{constructor(t){this.queryList=t,this.matches=null}clone(){return new jf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Uf{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let o=0;ot.trim())}(t):t}}class $f{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(s[a/2]);else{const u=o[a+1],c=t[-l];for(let d=Dt;dn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Yf extends w0{constructor(t){super(),this.moduleType=t}create(t){return new Zf(this.moduleType,t,[])}}class C0 extends Ni{constructor(t){super(),this.componentFactoryResolver=new Vy(this),this.instance=null;const n=new lo([...t.providers,{provide:Ni,useValue:this},{provide:nu,useValue:this.componentFactoryResolver}],t.parent||bl(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function lu(e,t,n=null){return new C0({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Eo=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Rn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hr(e,t,n){return e[t]=n}function Et(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ri(e,t,n,r){const i=Et(e,t,n);return Et(e,t+1,r)||i}function wn(e,t,n,r,i,o,s,a){const l=ee(),u=We(),c=e+Fe,d=u.firstCreatePass?function jM(e,t,n,r,i,o,s,a,l){const u=t.consts,c=wo(t,e,4,s||null,or(u,a));wf(t,n,c,or(u,l)),El(t,c);const d=c.tView=yf(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,i,o,s):u.data[c];sr(d,!1);const S=_0(u,l,d,e);el()&&zl(u,l,S,d),tn(S,l);const N=ny(S,l,S,d);return l[c]=N,Zl(l,N),function zy(e,t,n){return Bf(e,t,n)}(N,d,l),Xa(d)&&mf(u,l,d),null!=s&&vf(l,d,a),wn}let _0=function b0(e,t,n,r){return Yr(!0),t[ke].createComment("")};function sh(e,t,n,r){const i=ee();return Et(i,Zn(),t)&&(We(),dr(ht(),i,e,t,n,r)),sh}function ko(e,t,n,r,i,o,s,a){const u=function du(e,t,n,r,i){const o=Ri(e,t,n,r);return Et(e,t+2,i)||o}(e,Ar(),n,i,s);return xr(3),u?t+Le(n)+r+Le(i)+o+Le(s)+a:Ve}function Qn(e,t,n){const r=ee();return Et(r,Zn(),t)&&function yn(e,t,n,r,i,o,s,a){const l=on(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Df(e,n,c,r,i),yi(t)&&function N2(e,t){const n=Sn(t,e);16&n[Te]||(n[Te]|=64)}(n,t.index)):3&t.type&&(r=function x2(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,t.value||"",r):i,o.setProperty(l,r,i))}(We(),ht(),r,e,t,r[ke],n,!1),Qn}function ch(e,t,n,r,i){const s=i?"class":"style";Df(e,n,t.inputs[s],s,r)}class XA{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){const s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}}function fh(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function hh(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function pw(e,t,n,r,i){if(hh(e,t,r,n(r,i)))e.updateValue(r,i);else{const o=e.create(r,i);e.attach(r,o)}}function gw(e,t,n,r){const i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}class mw{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}}function Cn(e,t,n){fr("NgControlFlow");const r=ee(),i=Zn(),o=ph(r,Fe+e);if(Et(r,i,t)){const a=v(null);try{if(Sf(o,0),-1!==t){const l=gh(r[me],Fe+t),u=_o(o,l.tView.ssrId);zs(o,Hs(r,l,n,{dehydratedView:u}),0,Co(l,u))}}finally{v(a)}}else{const a=ay(o,0);void 0!==a&&(a[ft]=n)}}class JA{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Dt}}function si(e,t){return t}class tx{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function ai(e,t,n,r,i,o,s,a,l,u,c,d,S){fr("NgControlFlow");const N=void 0!==l,U=ee(),Z=a?s.bind(U[wt][ft]):s,te=new tx(N,Z);U[Fe+e]=te,wn(e+1,t,n,r,i,o),N&&wn(e+2,l,u,c,d,S)}class nx extends XA{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Dt}at(t){return this.getLView(t)[ft].$implicit}attach(t,n){const r=n[Wn];this.needsIndexUpdate||=t!==this.length,zs(this.lContainer,n,t,Co(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function rx(e,t){return js(e,t)}(this.lContainer,t)}create(t,n){const r=_o(this.lContainer,this.templateTNode.tView.ssrId);return Hs(this.hostLView,this.templateTNode,new JA(this.lContainer,n,t),{dehydratedView:r})}destroy(t){$l(t[me],t)}updateValue(t,n){this.getLView(t)[ft].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(a)})}(s,e,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){const a=Zn(),l=0===s.length;if(Et(r,a,l)){const u=n+2,c=ph(r,u);if(l){const d=gh(i,u),S=_o(c,d.tView.ssrId);zs(c,Hs(r,d,void 0,{dehydratedView:S}),0,Co(d,S))}else Sf(c,0)}}}finally{v(t)}}function ph(e,t){return e[t]}function gh(e,t){return bs(e,t)}function ue(e,t,n,r){const i=ee(),o=We(),s=Fe+e,a=i[ke],l=o.firstCreatePass?function ox(e,t,n,r,i,o){const s=t.consts,l=wo(t,e,2,r,or(s,i));return wf(t,n,l,or(s,o)),null!==l.attrs&&ou(l,l.attrs,!1),null!==l.mergedAttrs&&ou(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,t,n,r):o.data[s],u=vw(o,i,l,a,t,e);i[s]=u;const c=Xa(l);return sr(l,!0),Gv(a,u,l),32!=(32&l.flags)&&el()&&zl(o,i,u,l),0===function ME(){return Re.lFrame.elementDepthCount}()&&tn(u,i),function AE(){Re.lFrame.elementDepthCount++}(),c&&(mf(o,i,l),gf(o,l,i)),null!==r&&vf(i,l),ue}function le(){let e=st();zc()?function Gc(){Re.lFrame.isParent=!1}():(e=e.parent,sr(e,!1));const t=e;(function NE(e){return Re.skipHydrationRootTNode===e})(t)&&function PE(){Re.skipHydrationRootTNode=null}(),function xE(){Re.lFrame.elementDepthCount--}();const n=We();return n.firstCreatePass&&(El(n,e),Pc(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function KS(e){return 0!=(8&e.flags)}(t)&&ch(n,t,ee(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function JS(e){return 0!=(16&e.flags)}(t)&&ch(n,t,ee(),t.stylesWithoutHost,!1),le}function je(e,t,n,r){return ue(e,t,n,r),le(),je}let vw=(e,t,n,r,i,o)=>(Yr(!0),Ul(r,i,function im(){return Re.lFrame.currentNamespace}()));function Uo(){return ee()}const Ho="en-US";let Ew=Ho;function kn(e,t,n,r){const i=ee(),o=We(),s=st();return function Ch(e,t,n,r,i,o,s){const a=Xa(r),u=e.firstCreatePass&&oy(e),c=t[ft],d=iy(t);let S=!0;if(3&r.type||s){const Z=on(r,t),te=s?s(Z):Z,fe=d.length,ne=s?Be=>s(lt(Be[r.index])):r.index;let Ie=null;if(!s&&a&&(Ie=function aN(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Ie)(Ie.__ngLastListenerFn__||Ie).__ngNextListenerFn__=o,Ie.__ngLastListenerFn__=o,S=!1;else{o=Xw(r,t,c,o,!1);const Be=n.listen(te,i,o);d.push(o,Be),u&&u.push(i,ne,fe,fe+1)}}else o=Xw(r,t,c,o,!1);const N=r.outputs;let U;if(S&&null!==N&&(U=N[i])){const Z=U.length;if(Z)for(let te=0;te-1?Sn(e.index,t):t);let l=Qw(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)l=Qw(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&s.preventDefault(),l}}function At(e=1){return function UE(e){return(Re.lFrame.contextLView=function Wg(e,t){for(;e>0;)t=t[Wi],e--;return t}(e,Re.lFrame.contextLView))[ft]}(e)}function aC(e,t,n,r){!function Qy(e,t,n,r){const i=We();if(i.firstCreatePass){const o=st();Xy(i,new Wy(t,n,r),o.index),function fM(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}return Zy(i,ee(),n)}(e,t,n,r)}function lC(e,t,n){!function Yy(e,t,n){const r=We();return r.firstCreatePass&&(Xy(r,new Wy(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Zy(r,ee(),t)}(e,t,n)}function bh(e){const t=ee(),n=We(),r=Zc();Ja(r+1);const i=Wf(n,r);if(e.dirty&&function SE(e){return 4==(4&e[Te])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const o=Ky(t,r);e.reset(o,sm),e.notifyOnChanges()}return!0}return!1}function Dh(){return function Gf(e,t){return e[Mr].queries[t].queryList}(ee(),Zc())}function _e(e,t=""){const n=ee(),r=We(),i=e+Fe,o=r.firstCreatePass?wo(r,i,1,t,null):r.data[i],s=yC(r,n,o,t,e);n[i]=s,el()&&zl(r,n,s,o),sr(o,!1)}let yC=(e,t,n,r,i)=>(Yr(!0),function jl(e,t){return e.createText(t)}(t[ke],r));function Fr(e){return Lr("",e,""),Fr}function Lr(e,t,n){const r=ee(),i=function Ro(e,t,n,r){return Et(e,Zn(),n)?t+Le(n)+r:Ve}(r,e,t,n);return i!==Ve&&kr(r,en(),i),Lr}function Eh(e,t,n,r,i){const o=ee(),s=function Oo(e,t,n,r,i,o){const a=Ri(e,Ar(),n,i);return xr(2),a?t+Le(n)+r+Le(i)+o:Ve}(o,e,t,n,r,i);return s!==Ve&&kr(o,en(),s),Eh}function Sh(e,t,n,r,i,o,s){const a=ee(),l=ko(a,e,t,n,r,i,o,s);return l!==Ve&&kr(a,en(),l),Sh}let ON=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Id(0,n.type),i=r.length>0?lu([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Ee({token:e,providedIn:"environment",factory:()=>new e(Ae(Tn))})}return e})();function MC(e){fr("NgStandalone"),e.getStandaloneInjector=t=>t.get(ON).getOrCreateStandaloneInjector(e)}function Eu(e,t,n){const r=sn()+e,i=ee();return i[r]===Ve?hr(i,r,n?t.call(n):t()):function ra(e,t){return e[t]}(i,r)}function Su(e,t,n,r){return function LC(e,t,n,r,i,o){const s=t+n;return Et(e,s,i)?hr(e,s+1,o?r.call(o,i):r(i)):function ha(e,t){const n=e[t];return n===Ve?void 0:n}(e,s+1)}(ee(),sn(),e,t,n,r)}let r1=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const l1=new be(""),Au=new be("");let Vh,Fh=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Vh||(function XR(e){Vh=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(rt),Ae(Lh),Ae(Au))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})(),Lh=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Vh?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function xu(e){return!!e&&"function"==typeof e.then}function u1(e){return!!e&&"function"==typeof e.subscribe}const Nu=new be("");let Bh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=ce(Nu,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const i of this.appInits){const o=i();if(xu(o))n.push(o);else if(u1(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ru=new be("");function f1(e,t){return Array.isArray(t)?t.reduce(f1,e):{...e,...t}}let ui=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ce(nv),this.afterRenderEffectManager=ce(Ks),this.componentTypes=[],this.components=[],this.isStable=ce(Eo).hasPendingTasks.pipe(at(n=>!n)),this._injector=ce(Tn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Ey;if(!this._injector.get(Bh).done)throw!i&&function qr(e){const t=He(e)||Rt(e)||Gt(e);return null!==t&&t.standalone}(n),new he(405,!1);let s;s=i?n:this._injector.get(nu).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function KR(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Ni),u=s.create(mn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(l1,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ou(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new he(101,!1);const n=v(null);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,v(n)}}detectChangesInAttachedViews(){let n=0;const r=this.afterRenderEffectManager;for(;;){if(100===n)throw new he(103,!1);const i=0===n;for(let{_lView:o,notifyErrorHandler:s}of this._views)!i&&!jh(o)||this.detectChangesInView(o,s,i);if(n++,r.executeInternalCallbacks(),!this._views.some(({_lView:o})=>jh(o))&&(r.execute(),!this._views.some(({_lView:o})=>jh(o))))break}}detectChangesInView(n,r,i){let o;i?(o=0,n[Te]|=1024):o=64&n[Te]?0:1,Ql(n,r,o)}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ou(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Ru,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ou(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new he(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function jh(e){return Uc(e)}class eO{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let h1=(()=>{class e{compileModuleSync(n){return new Yf(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=Mn(Qt(n).declarations).reduce((s,a)=>{const l=He(a);return l&&s.push(new ta(l)),s},[]);return new eO(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rO=(()=>{class e{constructor(){this.zone=ce(rt),this.applicationRef=ce(ui)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iO(){const e=ce(rt),t=ce(Rr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let sO=(()=>{class e{constructor(){this.subscription=new ie,this.initialized=!1,this.zone=ce(rt),this.pendingTasks=ce(Eo)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{rt.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Vr=new be("",{providedIn:"root",factory:()=>ce(Vr,Ge.Optional|Ge.SkipSelf)||function aO(){return typeof $localize<"u"&&$localize.locale||Ho}()}),Uh=new be("");let v1=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function UT(e="zone.js",t){return"noop"===e?new Ny:"zone.js"===e?new rt(t):e}(r?.ngZone,function m1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function kM(e,t,n){return new Zf(e,t,n)}(n.moduleType,this.injector,function g1(e){return[{provide:rt,useFactory:e},{provide:Ei,multi:!0,useFactory:()=>{const t=ce(rO,{optional:!0});return()=>t.initialize()}},{provide:Ei,multi:!0,useFactory:()=>{const t=ce(sO);return()=>{t.initialize()}}},{provide:nv,useFactory:iO}]}(()=>i)),s=o.injector.get(Rr,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{Ou(this._modules,o),a.unsubscribe()})}),function d1(e,t,n){try{const r=n();return xu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,i,()=>{const a=o.injector.get(Bh);return a.runInitializers(),a.donePromise.then(()=>(function Sw(e){"string"==typeof e&&(Ew=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Vr,Ho)||Ho),this._moduleDoBootstrap(o),o))})})}bootstrapModule(n,r=[]){const i=f1({},r);return function nO(e,t,n){const r=new Yf(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(ui);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new he(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new he(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Uh,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(mn))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ci=null;const y1=new be("");function w1(e,t,n=[]){const r=`Platform: ${t}`,i=new be(r);return(o=[])=>{let s=$h();if(!s||s.injector.get(y1,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function cO(e){if(ci&&!ci.get(y1,!1))throw new he(400,!1);(function c1(){!function Ce(e){K=e}(()=>{throw new he(600,!1)})})(),ci=e;const t=e.get(v1);(function _1(e){e.get(pm,null)?.forEach(n=>n())})(e)}(function C1(e=[],t){return mn.create({name:t,providers:[{provide:Ad,useValue:"platform"},{provide:Uh,useValue:new Set([()=>ci=null])},...e]})}(a,r))}return function dO(e){const t=$h();if(!t)throw new he(401,!1);return t}()}}function $h(){return ci?.get(v1)??null}let Pu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=hO}return e})();function hO(e){return function pO(e,t,n){if(yi(e)&&!n){const r=Sn(e.index,t);return new qs(r,r)}return 47&e.type?new qs(t[wt],t):null}(st(),ee(),16==(16&e))}const IO=w1(null,"core",[]);let TO=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(ui))};static#t=this.\u0275mod=Ir({type:e});static#n=this.\u0275inj=lr({})}return e})();function Qh(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let J1=null;function qo(){return J1}class uk{}const jt=new be("");let Xh=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ce(dk),providedIn:"platform"})}return e})();const ck=new be("");let dk=(()=>{class e extends Xh{constructor(){super(),this._doc=ce(jt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return qo().getBaseHref(this._doc)}onPopState(n){const r=qo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=qo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Kh(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function e_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Br(e){return e&&"?"!==e[0]?"?"+e:e}let Li=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ce(n_),providedIn:"root"})}return e})();const t_=new be("");let n_=(()=>{class e extends Li{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??ce(jt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Kh(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Br(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+Br(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+Br(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(Xh),Ae(t_,8))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fk=(()=>{class e extends Li{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Kh(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Br(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Br(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(Xh),Ae(t_,8))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})(),Ca=(()=>{class e{constructor(n){this._subject=new zt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function gk(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(e_(r_(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Br(r))}normalize(n){return e.stripTrailingSlash(function pk(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,r_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Br(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Br(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static#e=this.normalizeQueryParams=Br;static#t=this.joinWithSlash=Kh;static#n=this.stripTrailingSlash=e_;static#r=this.\u0275fac=function(r){return new(r||e)(Ae(Li))};static#i=this.\u0275prov=Ee({token:e,factory:()=>function hk(){return new Ca(Ae(Li))}(),providedIn:"root"})}return e})();function r_(e){return e.replace(/\/index.html$/,"")}const lp=/\s+/,f_=[];let h_=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=f_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(lp):f_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(lp):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const i=this.stateMap.get(n);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(lp).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(Oe(Nr),Oe(ru))};static#t=this.\u0275dir=Yt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[Hn.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),w_=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ir({type:e});static#n=this.\u0275inj=lr({})}return e})();const C_="browser";function hp(e){return"server"===e}let kP=(()=>{class e{static#e=this.\u0275prov=Ee({token:e,providedIn:"root",factory:()=>function OP(e){return e===C_}(ce(Xr))?new PP(ce(jt),window):new LP})}return e})();class PP{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){const n=function FP(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}}class LP{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}}class fF extends uk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class gp extends fF{static makeCurrent(){!function lk(e){J1??=e}(new gp)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||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,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function hF(){return Ea=Ea||document.querySelector("base"),Ea?Ea.getAttribute("href"):null}();return null==n?null:function pF(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Ea=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function Jk(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let Ea=null,mF=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const mp=new be("");let A_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new he(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(mp),Ae(rt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();class x_{constructor(t){this._doc=t}}const vp="ng-app-id";let N_=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=hp(o),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${vp}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){const i=this.styleRef;if(i.has(n)){const o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(vp),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(vp,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){const i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt),Ae(ll),Ae(gm,8),Ae(Xr))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const yp={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/"},wp=/%COMP%/g,CF=new be("",{providedIn:"root",factory:()=>!0});function O_(e,t){return t.map(n=>n.replace(wp,e))}let k_=(()=>{class e{constructor(n,r,i,o,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=hp(a),this.defaultRenderer=new Cp(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===$n.ShadowDom&&(r={...r,encapsulation:$n.Emulated});const i=this.getOrCreateRenderer(n,r);return i instanceof F_?i.applyToHost(n):i instanceof _p&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case $n.Emulated:o=new F_(l,u,r,this.appId,c,s,a,d);break;case $n.ShadowDom:return new EF(l,u,n,r,s,a,this.nonce,d);default:o=new _p(l,u,r,c,s,a,d)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(A_),Ae(N_),Ae(ll),Ae(CF),Ae(jt),Ae(Xr),Ae(rt),Ae(gm))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();class Cp{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(yp[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(P_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(P_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new he(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=yp[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=yp[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(ti.DashCase|ti.Important)?t.style.setProperty(n,r,i&ti.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ti.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=qo().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function P_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class EF extends Cp{constructor(t,n,r,i,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=O_(i.id,i.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _p extends Cp{constructor(t,n,r,i,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=l?O_(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class F_ extends _p{constructor(t,n,r,i,o,s,a,l){const u=i+"-"+r.id;super(t,n,r,o,s,a,l,u),this.contentAttr=function _F(e){return"_ngcontent-%COMP%".replace(wp,e)}(u),this.hostAttr=function bF(e){return"_nghost-%COMP%".replace(wp,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let SF=(()=>{class e extends x_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const L_=["alt","control","meta","shift"],IF={"\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"},TF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let MF=(()=>{class e extends x_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qo().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),L_.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=IF[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),L_.forEach(s=>{s!==i&&(0,TF[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const RF=w1(IO,"browser",[{provide:Xr,useValue:C_},{provide:pm,useValue:function AF(){gp.makeCurrent()},multi:!0},{provide:jt,useFactory:function NF(){return function ZE(e){ed=e}(document),document},deps:[]}]),OF=new be(""),j_=[{provide:Au,useClass:class gF{addToWindow(t){nt.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new he(5103,!1);return o},nt.getAllAngularTestabilities=()=>t.getAllTestabilities(),nt.getAllAngularRootElements=()=>t.getAllRootElements(),nt.frameworkStabilizers||(nt.frameworkStabilizers=[]),nt.frameworkStabilizers.push(r=>{const i=nt.getAllAngularTestabilities();let o=i.length;const s=function(){o--,0==o&&r()};i.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?qo().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:l1,useClass:Fh,deps:[rt,Lh,Au]},{provide:Fh,useClass:Fh,deps:[rt,Lh,Au]}],U_=[{provide:Ad,useValue:"root"},{provide:Rr,useFactory:function xF(){return new Rr},deps:[]},{provide:mp,useClass:SF,multi:!0,deps:[jt,rt,Xr]},{provide:mp,useClass:MF,multi:!0,deps:[jt]},k_,N_,A_,{provide:Iy,useExisting:k_},{provide:class VP{},useClass:mF,deps:[]},[]];let kF=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ll,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(OF,12))};static#t=this.\u0275mod=Ir({type:e});static#n=this.\u0275inj=lr({providers:[...U_,...j_],imports:[w_,TO]})}return e})(),PF=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function di(e){return this instanceof di?(this.v=e,this):new di(e)}function Z_(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Sp(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Y_=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Q_(e){return W(e?.then)}function X_(e){return W(e[Tc])}function K_(e){return Symbol.asyncIterator&&W(e?.[Symbol.asyncIterator])}function J_(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const eb=function aL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function tb(e){return W(e?.[eb])}function nb(e){return function q_(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(S){r[S]&&(i[S]=function(N){return new Promise(function(U,Z){o.push([S,N,U,Z])>1||a(S,N)})})}function a(S,N){try{!function l(S){S.value instanceof di?Promise.resolve(S.value.v).then(u,c):d(o[0][2],S)}(r[S](N))}catch(U){d(o[0][3],U)}}function u(S){a("next",S)}function c(S){a("throw",S)}function d(S,N){S(N),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield di(n.read());if(i)return yield di(void 0);yield yield di(r)}}finally{n.releaseLock()}})}function rb(e){return W(e?.getReader)}function $r(e){if(e instanceof Vt)return e;if(null!=e){if(X_(e))return function lL(e){return new Vt(t=>{const n=e[Tc]();if(W(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Y_(e))return function uL(e){return new Vt(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Me)})}(e);if(K_(e))return ib(e);if(tb(e))return function dL(e){return new Vt(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(rb(e))return function fL(e){return ib(nb(e))}(e)}throw J_(e)}function ib(e){return new Vt(t=>{(function hL(e,t){var n,r,i,o;return function G_(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Z_(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Hr(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ob(e,t=0){return Ht((n,r)=>{n.subscribe(Bt(r,i=>Hr(r,e,()=>r.next(i),t),()=>Hr(r,e,()=>r.complete(),t),i=>Hr(r,e,()=>r.error(i),t)))})}function sb(e,t=0){return Ht((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ab(e,t){if(!e)throw new Error("Iterable cannot be null");return new Vt(n=>{Hr(n,t,()=>{const r=e[Symbol.asyncIterator]();Hr(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function qt(e,t){return t?function wL(e,t){if(null!=e){if(X_(e))return function pL(e,t){return $r(e).pipe(sb(t),ob(t))}(e,t);if(Y_(e))return function mL(e,t){return new Vt(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Q_(e))return function gL(e,t){return $r(e).pipe(sb(t),ob(t))}(e,t);if(K_(e))return ab(e,t);if(tb(e))return function vL(e,t){return new Vt(n=>{let r;return Hr(n,t,()=>{r=e[eb](),Hr(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>W(r?.return)&&r.return()})}(e,t);if(rb(e))return function yL(e,t){return ab(nb(e),t)}(e,t)}throw J_(e)}(e,t):$r(e)}function Ip(e){return e[e.length-1]}function rc(e){return function CL(e){return e&&W(e.schedule)}(Ip(e))?e.pop():void 0}function Pe(...e){return qt(e,rc(e))}const{isArray:bL}=Array,{getPrototypeOf:DL,prototype:EL,keys:SL}=Object;const{isArray:ML}=Array;function Tp(...e){const t=rc(e),n=function _L(e){return W(Ip(e))?e.pop():void 0}(e),{args:r,keys:i}=function IL(e){if(1===e.length){const t=e[0];if(bL(t))return{args:t,keys:null};if(function TL(e){return e&&"object"==typeof e&&DL(e)===EL}(t)){const n=SL(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return qt([],t);const o=new Vt(function RL(e,t,n=mi){return r=>{lb(t,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let l=0;l{const u=qt(e[l],t);let c=!1;u.subscribe(Bt(r,d=>{o[l]=d,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>function NL(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}(i,s):mi));return n?o.pipe(function xL(e){return at(t=>function AL(e,t){return ML(t)?e(...t):e(t)}(e,t))}(n)):o}function lb(e,t,n){e?Hr(n,e,t):t()}const ic=k(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nn(e,t,n=1/0){return W(t)?nn((r,i)=>at((o,s)=>t(r,o,i,s))($r(e(r,i))),n):("number"==typeof t&&(n=t),Ht((r,i)=>function OL(e,t,n,r,i,o,s,a){const l=[];let u=0,c=0,d=!1;const S=()=>{d&&!l.length&&!u&&t.complete()},N=Z=>u{o&&t.next(Z),u++;let te=!1;$r(n(Z,c++)).subscribe(Bt(t,fe=>{i?.(fe),o?N(fe):t.next(fe)},()=>{te=!0},void 0,()=>{if(te)try{for(u--;l.length&&uU(fe)):U(fe)}S()}catch(fe){t.error(fe)}}))};return e.subscribe(Bt(t,N,()=>{d=!0,S()})),()=>{a?.()}}(r,i,e,n)))}function Ia(e=1/0){return nn(mi,e)}function Mp(...e){return function kL(){return Ia(1)}()(qt(e,rc(e)))}function ub(e){return new Vt(t=>{$r(e()).subscribe(t)})}function oc(e,t){const n=W(e)?e:()=>e,r=i=>i.error(n());return new Vt(t?i=>t.schedule(r,0,i):r)}const zr=new Vt(e=>e.complete());function Ap(){return Ht((e,t)=>{let n=null;e._refCount++;const r=Bt(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class cb extends Vt{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Cg(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,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new ie;const n=this.getSubject();t.add(this.source.subscribe(Bt(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=ie.EMPTY)}return t}refCount(){return Ap()(this)}}function mr(e,t){return Ht((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(Bt(r,l=>{i?.unsubscribe();let u=0;const c=o++;$r(e(l,c)).subscribe(i=Bt(r,d=>r.next(t?t(l,d,c,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Yo(e){return e<=0?()=>zr:Ht((t,n)=>{let r=0;t.subscribe(Bt(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Ln(e,t){return Ht((n,r)=>{let i=0;n.subscribe(Bt(r,o=>e.call(t,o,i++)&&r.next(o)))})}function sc(e){return Ht((t,n)=>{let r=!1;t.subscribe(Bt(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function db(e=LL){return Ht((t,n)=>{let r=!1;t.subscribe(Bt(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function LL(){return new ic}function Vi(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((i,o)=>e(i,o,r)):mi,Yo(1),n?sc(t):db(()=>new ic))}function Ta(e,t){return W(t)?nn(e,t,1):nn(e,1)}function rn(e,t,n){const r=W(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ht((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Bt(o,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),o.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):mi}function Qo(e){return Ht((t,n)=>{let o,r=null,i=!1;r=t.subscribe(Bt(n,void 0,void 0,s=>{o=$r(e(s,Qo(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function xp(e){return e<=0?()=>zr:Ht((t,n)=>{let r=[];t.subscribe(Bt(n,i=>{r.push(i),e{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Np(e){return Ht((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function fb(e){return Ht((t,n)=>{$r(e).subscribe(Bt(n,()=>n.complete(),tt)),!n.closed&&t.subscribe(n)})}const Ue="primary",Ma=Symbol("RouteTitle");class $L{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Xo(e){return new $L(e)}function HL(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[o]===i)}return e===t}function pb(e){return e.length>0?e[e.length-1]:null}function fi(e){return function BF(e){return!!e&&(e instanceof Vt||W(e.lift)&&W(e.subscribe))}(e)?e:xu(e)?qt(Promise.resolve(e)):Pe(e)}const GL={exact:function vb(e,t,n){if(!Bi(e.segments,t.segments)||!ac(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!vb(e.children[r],t.children[r],n))return!1;return!0},subset:yb},gb={exact:function WL(e,t){return vr(e,t)},subset:function qL(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>hb(e[n],t[n]))},ignored:()=>!0};function mb(e,t,n){return GL[n.paths](e.root,t.root,n.matrixParams)&&gb[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function yb(e,t,n){return wb(e,t,t.segments,n)}function wb(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!Bi(i,n)||t.hasChildren()||!ac(i,n,r))}if(e.segments.length===n.length){if(!Bi(e.segments,n)||!ac(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!yb(e.children[i],t.children[i],r))return!1;return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(Bi(e.segments,i)&&ac(e.segments,i,r)&&e.children[Ue])&&wb(e.children[Ue],t,o,r)}}function ac(e,t,n){return t.every((r,i)=>gb[n](e[i].parameters,r.parameters))}class Ko{constructor(t=new ut([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Xo(this.queryParams),this._queryParamMap}toString(){return QL.serialize(this)}}class ut{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lc(this)}}class Aa{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Xo(this.parameters),this._parameterMap}toString(){return bb(this)}}function Bi(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Jo=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>new Op,providedIn:"root"})}return e})();class Op{parse(t){const n=new a3(t);return new Ko(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${xa(t.root,!0)}`,r=function JL(e){const t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${uc(n)}=${uc(i)}`).join("&"):`${uc(n)}=${uc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function XL(e){return encodeURI(e)}(t.fragment)}`:""}`}}const QL=new Op;function lc(e){return e.segments.map(t=>bb(t)).join("/")}function xa(e,t){if(!e.hasChildren())return lc(e);if(t){const n=e.children[Ue]?xa(e.children[Ue],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==Ue&&r.push(`${i}:${xa(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function YL(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===Ue&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==Ue&&(n=n.concat(t(i,r)))}),n}(e,(r,i)=>i===Ue?[xa(e.children[Ue],!1)]:[`${i}:${xa(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ue]?`${lc(e)}/${n[0]}`:`${lc(e)}/(${n.join("//")})`}}function Cb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uc(e){return Cb(e).replace(/%3B/gi,";")}function kp(e){return Cb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cc(e){return decodeURIComponent(e)}function _b(e){return cc(e.replace(/\+/g,"%20"))}function bb(e){return`${kp(e.path)}${function KL(e){return Object.entries(e).map(([t,n])=>`;${kp(t)}=${kp(n)}`).join("")}(e.parameters)}`}const e3=/^[^\/()?;#]+/;function Pp(e){const t=e.match(e3);return t?t[0]:""}const t3=/^[^\/()?;=#]+/,r3=/^[^=?&#]+/,o3=/^[^&#]+/;class a3{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ut([],{}):new ut([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[Ue]=new ut(t,n)),r}parseSegment(){const t=Pp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new he(4009,!1);return this.capture(t),new Aa(cc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function n3(e){const t=e.match(t3);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=Pp(this.remaining);i&&(r=i,this.capture(r))}t[cc(n)]=cc(r)}parseQueryParam(t){const n=function i3(e){const t=e.match(r3);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function s3(e){const t=e.match(o3);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=_b(n),o=_b(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Pp(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new he(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ue);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[Ue]:new ut([],s),this.consumeOptional("//")}return n}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 he(4011,!1)}}function Db(e){return e.segments.length>0?new ut([],{[Ue]:e}):e}function Eb(e){const t={};for(const[r,i]of Object.entries(e.children)){const o=Eb(i);if(r===Ue&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function l3(e){if(1===e.numberOfChildren&&e.children[Ue]){const t=e.children[Ue];return new ut(e.segments.concat(t.segments),t.children)}return e}(new ut(e.segments,t))}function es(e){return e instanceof Ko}function Sb(e){let t;const i=Db(function n(o){const s={};for(const l of o.children){const u=n(l);s[l.outlet]=u}const a=new ut(o.url,s);return o===e&&(t=a),a}(e.root));return t??i}function Ib(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return Fp(i,i,i,n,r);const o=function c3(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Mb(!0,0,e);let t=0,n=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new Mb(n,t,r)}(t);if(o.toRoot())return Fp(i,i,new ut([],{}),n,r);const s=function d3(e,t,n){if(e.isAbsolute)return new fc(t,!0,0);if(!n)return new fc(t,!1,NaN);if(null===n.parent)return new fc(n,!0,0);const r=dc(e.commands[0])?0:1;return function f3(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new he(4005,!1);i=r.segments.length}return new fc(r,!1,i-o)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Ra(s.segmentGroup,s.index,o.commands):Ab(s.segmentGroup,s.index,o.commands);return Fp(i,s.segmentGroup,a,n,r)}function dc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Na(e){return"object"==typeof e&&null!=e&&e.outlets}function Fp(e,t,n,r,i){let s,o={};r&&Object.entries(r).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:Tb(e,t,n);const a=Db(Eb(s));return new Ko(a,o,i)}function Tb(e,t,n){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===t?n:Tb(o,t,n)}),new ut(e.segments,r)}class Mb{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&dc(r[0]))throw new he(4003,!1);const i=r.find(Na);if(i&&i!==pb(r))throw new he(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fc{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Ab(e,t,n){if(e??=new ut([],{}),0===e.segments.length&&e.hasChildren())return Ra(e,t,n);const r=function p3(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const s=e.segments[i],a=n[r];if(Na(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Nb(l,u,s))return o;r+=2}else{if(!Nb(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==Ue)&&e.children[Ue]&&1===e.numberOfChildren&&0===e.children[Ue].segments.length){const o=Ra(e.children[Ue],t,n);return new ut(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=Ab(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new ut(e.segments,i)}}function Lp(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=Lp(new ut([],{}),0,r))}),t}function xb(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Nb(e,t,n){return e==n.path&&vr(t,n.parameters)}const Oa="imperative";var Ye=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(Ye||{});class yr{constructor(t,n){this.id=t,this.url=n}}class hc extends yr{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Ye.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wr extends yr{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Ye.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Vn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Vn||{}),pc=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(pc||{});class ts extends yr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Ye.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ns extends yr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Ye.NavigationSkipped}}class gc extends yr{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Ye.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Rb extends yr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ye.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class m3 extends yr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ye.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class v3 extends yr{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Ye.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class y3 extends yr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ye.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class w3 extends yr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ye.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class C3{constructor(t){this.route=t,this.type=Ye.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _3{constructor(t){this.route=t,this.type=Ye.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class b3{constructor(t){this.snapshot=t,this.type=Ye.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class D3{constructor(t){this.snapshot=t,this.type=Ye.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E3{constructor(t){this.snapshot=t,this.type=Ye.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S3{constructor(t){this.snapshot=t,this.type=Ye.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ob{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=Ye.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Vp{}class Bp{constructor(t){this.url=t}}class I3{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ka,this.attachRef=null}}let ka=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new I3,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class kb{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=jp(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=jp(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Up(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Up(t,this._root).map(n=>n.value)}}function jp(e,t){if(e===t.value)return t;for(const n of t.children){const r=jp(e,n);if(r)return r}return null}function Up(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Up(e,n);if(r.length)return r.unshift(t),r}return[]}class tr{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function rs(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Pb extends kb{constructor(t,n){super(t),this.snapshot=n,zp(this,t)}toString(){return this.snapshot.toString()}}function Fb(e){const t=function T3(e){const o=new Hp([],{},{},"",{},Ue,e,null,{});return new Lb("",new tr(o,[]))}(e),n=new Rn([new Aa("",{})]),r=new Rn({}),i=new Rn({}),o=new Rn({}),s=new Rn(""),a=new is(n,r,o,s,i,Ue,e,t.root);return a.snapshot=t.root,new Pb(new tr(a,[]),t)}class is{constructor(t,n,r,i,o,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(at(u=>u[Ma]))??Pe(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(at(t=>Xo(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(at(t=>Xo(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $p(e,t,n="emptyOnly"){let r;const{routeConfig:i}=e;return r=null===t||"always"!==n&&""!==i?.path&&(t.component||t.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.data,...i?.data,...e._resolvedData}},i&&Bb(i)&&(r.resolve[Ma]=i.title),r}class Hp{get title(){return this.data?.[Ma]}constructor(t,n,r,i,o,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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??=Xo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Xo(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Lb extends kb{constructor(t,n){super(n),this.url=t,zp(this,n)}toString(){return Vb(this._root)}}function zp(e,t){t.value._routerState=e,t.children.forEach(n=>zp(e,n))}function Vb(e){const t=e.children.length>0?` { ${e.children.map(Vb).join(", ")} } `:"";return`${e.value}${t}`}function Gp(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,vr(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),vr(t.params,n.params)||e.paramsSubject.next(n.params),function zL(e,t){if(e.length!==t.length)return!1;for(let n=0;nvr(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Wp(e.parent,t.parent))}function Bb(e){return"string"==typeof e.title||null===e.title}let qp=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ue,this.activateEvents=new zt,this.deactivateEvents=new zt,this.attachEvents=new zt,this.detachEvents=new zt,this.parentContexts=ce(ka),this.location=ce(Yn),this.changeDetector=ce(Pu),this.environmentInjector=ce(Tn),this.inputBinder=ce(mc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new he(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new he(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new he(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new he(4013,!1);this._activatedRoute=n;const i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new M3(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Yt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ti]})}return e})();class M3{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===is?this.route:t===ka?this.childContexts:this.parent.get(t,n)}}const mc=new be("");let jb=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,i=Tp([r.queryParams,r.params,r.data]).pipe(mr(([o,s,a],l)=>(a={...o,...s,...a},0===l?Pe(a):Promise.resolve(a)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function ak(e){const t=He(e);if(!t)return null;const n=new ta(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();function Pa(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function x3(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Pa(e,r,i);return Pa(e,r)})}(e,t,n);return new tr(r,i)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Pa(e,a)),s}}const r=function N3(e){return new is(new Rn(e.url),new Rn(e.params),new Rn(e.queryParams),new Rn(e.fragment),new Rn(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>Pa(e,o));return new tr(r,i)}}const Ub="ngNavigationCancelingError";function $b(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=es(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Hb(!1,Vn.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Hb(e,t){const n=new Error(`NavigationCancelingError: ${e||""}`);return n[Ub]=!0,n.cancellationCode=t,n}function zb(e){return!!e&&e[Ub]}let Gb=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["ng-component"]],standalone:!0,features:[MC],decls:1,vars:0,template:function(r,i){1&r&&je(0,"router-outlet")},dependencies:[qp],encapsulation:2})}return e})();function Zp(e){const t=e.children&&e.children.map(Zp),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==Ue&&(n.component=Gb),n}function Cr(e){return e.outlet||Ue}function Fa(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class B3{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Gp(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=rs(n);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=rs(t);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=rs(t);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const i=rs(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new S3(o.value.snapshot))}),t.children.length&&this.forwardEvent(new D3(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(Gp(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Gp(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Fa(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Wb{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class vc{constructor(t,n){this.component=t,this.route=n}}function j3(e,t,n){const r=e._root;return La(r,t?t._root:null,n,[r.value])}function os(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function YE(e){return null!==ol(e)}(e)?t.get(e):e:r}function La(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=rs(t);return e.children.forEach(s=>{(function $3(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function H3(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Bi(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Bi(e.url,t.url)||!vr(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wp(e,t)||!vr(e.queryParams,t.queryParams);default:return!Wp(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Wb(r)):(o.data=s.data,o._resolvedData=s._resolvedData),La(e,t,o.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new vc(a.outlet.component,s))}else s&&Va(t,a,i),i.canActivateChecks.push(new Wb(r)),La(e,null,o.component?a?a.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Va(a,n.getContext(s),i)),i}function Va(e,t,n){const r=rs(e),i=e.value;Object.entries(r).forEach(([o,s])=>{Va(s,i.component?t?t.children.getContext(o):null:t,n)}),n.canDeactivateChecks.push(new vc(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Ba(e){return"function"==typeof e}function qb(e){return e instanceof ic||"EmptyError"===e?.name}const yc=Symbol("INITIAL_VALUE");function ss(){return mr(e=>Tp(e.map(t=>t.pipe(Yo(1),function FL(...e){const t=rc(e);return Ht((n,r)=>{(t?Mp(e,n,t):Mp(e,n)).subscribe(r)})}(yc)))).pipe(at(t=>{for(const n of t)if(!0!==n){if(n===yc)return yc;if(!1===n||n instanceof Ko)return n}return!0}),Ln(t=>t!==yc),Yo(1)))}function Zb(e){return function YD(...e){return vg(e)}(rn(t=>{if(es(t))throw $b(0,t)}),at(t=>!0===t))}class Yp{constructor(t){this.segmentGroup=t||null}}class Qp extends Error{constructor(t){super(),this.urlTree=t}}function as(e){return oc(new Yp(e))}class l5{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return Pe(r);if(i.numberOfChildren>1||!i.children[Ue])return oc(new he(4e3,!1));i=i.children[Ue]}}applyRedirectCommands(t,n,r){const i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Qp(i);return i}applyRedirectCreateUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new Ko(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([i,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){const o=this.createSegments(t,n.segments,r,i);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,i)}),new ut(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){const i=r[n.path.substring(1)];if(!i)throw new he(4001,!1);return i}findOrReturn(t,n){let r=0;for(const i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}}const Xp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function u5(e,t,n,r,i){const o=Kp(e,t,n);return o.matched?(r=function O3(e,t){return e.providers&&!e._injector&&(e._injector=lu(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function o5(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?Pe(i.map(s=>{const a=os(s,e);return fi(function Y3(e){return e&&Ba(e.canMatch)}(a)?a.canMatch(t,n):Ii(e,()=>a(t,n)))})).pipe(ss(),Zb()):Pe(!0)}(r,t,n).pipe(at(s=>!0===s?o:{...Xp}))):Pe(o)}function Kp(e,t,n){if("**"===t.path)return function c5(e){return{matched:!0,parameters:e.length>0?pb(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Xp}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const i=(t.matcher||HL)(n,e,t);if(!i)return{...Xp};const o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Yb(e,t,n,r){return n.length>0&&function h5(e,t,n){return n.some(r=>wc(e,t,r)&&Cr(r)!==Ue)}(e,n,r)?{segmentGroup:new ut(t,f5(r,new ut(n,e.children))),slicedSegments:[]}:0===n.length&&function p5(e,t,n){return n.some(r=>wc(e,t,r))}(e,n,r)?{segmentGroup:new ut(e.segments,d5(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ut(e.segments,e.children),slicedSegments:n}}function d5(e,t,n,r){const i={};for(const o of n)if(wc(e,t,o)&&!r[Cr(o)]){const s=new ut([],{});i[Cr(o)]=s}return{...r,...i}}function f5(e,t){const n={};n[Ue]=t;for(const r of e)if(""===r.path&&Cr(r)!==Ue){const i=new ut([],{});n[Cr(r)]=i}return n}function wc(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class v5{}class C5{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new l5(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new he(4002,`'${t.segmentGroup}'`)}recognize(){const t=Yb(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(at(n=>{const r=new Hp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ue,this.rootComponentType,null,{}),i=new tr(r,n),o=new Lb("",i),s=function u3(e,t,n=null,r=null){return Ib(Sb(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,Ue).pipe(Qo(r=>{if(r instanceof Qp)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Yp?this.noMatchError(r):r}))}inheritParamsAndData(t,n){const r=t.value,i=$p(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,r))}processSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i,!0).pipe(at(o=>o instanceof tr?[o]:[]))}processChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return qt(i).pipe(Ta(o=>{const s=r.children[o],a=function L3(e,t){const n=e.filter(r=>Cr(r)===t);return n.push(...e.filter(r=>Cr(r)!==t)),n}(n,o);return this.processSegmentGroup(t,a,s,o)}),function BL(e,t){return Ht(function VL(e,t,n,r,i){return(o,s)=>{let a=n,l=t,u=0;o.subscribe(Bt(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),sc(null),function jL(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((i,o)=>e(i,o,r)):mi,xp(1),n?sc(t):db(()=>new ic))}(),nn(o=>{if(null===o)return as(r);const s=Qb(o);return function _5(e){e.sort((t,n)=>t.value.outlet===Ue?-1:n.value.outlet===Ue?1:t.value.outlet.localeCompare(n.value.outlet))}(s),Pe(s)}))}processSegment(t,n,r,i,o,s){return qt(n).pipe(Ta(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,i,o,s).pipe(Qo(l=>{if(l instanceof Yp)return Pe(null);throw l}))),Vi(a=>!!a),Qo(a=>{if(qb(a))return function m5(e,t,n){return 0===t.length&&!e.children[n]}(r,i,o)?Pe(new v5):as(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return function g5(e,t,n,r){return!!(Cr(e)===r||r!==Ue&&wc(t,n,e))&&Kp(t,e,n).matched}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,i,r,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):as(i):as(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:l,positionalParamSegments:u,remainingSegments:c}=Kp(n,i,o);if(!a)return as(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,d).pipe(nn(S=>this.processSegment(t,r,n,S.concat(c),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){const s=u5(n,r,i,t);return"**"===r.path&&(n.children={}),s.pipe(mr(a=>a.matched?this.getChildConfig(t=r._injector??t,r,i).pipe(mr(({routes:l})=>{const u=r._loadedInjector??t,{consumedSegments:c,remainingSegments:d,parameters:S}=a,N=new Hp(c,S,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function D5(e){return e.data||{}}(r),Cr(r),r.component??r._loadedComponent??null,r,function E5(e){return e.resolve||{}}(r)),{segmentGroup:U,slicedSegments:Z}=Yb(n,c,d,l);if(0===Z.length&&U.hasChildren())return this.processChildren(u,l,U).pipe(at(fe=>null===fe?null:new tr(N,fe)));if(0===l.length&&0===Z.length)return Pe(new tr(N,[]));const te=Cr(r)===o;return this.processSegment(u,l,U,Z,te?Ue:o,!0).pipe(at(fe=>new tr(N,fe instanceof tr?[fe]:[])))})):as(n)))}getChildConfig(t,n,r){return n.children?Pe({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?Pe({routes:n._loadedRoutes,injector:n._loadedInjector}):function i5(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?Pe(!0):Pe(i.map(s=>{const a=os(s,e);return fi(function G3(e){return e&&Ba(e.canLoad)}(a)?a.canLoad(t,n):Ii(e,()=>a(t,n)))})).pipe(ss(),Zb())}(t,n,r).pipe(nn(i=>i?this.configLoader.loadChildren(t,n).pipe(rn(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):function a5(e){return oc(Hb(!1,Vn.GuardRejected))}())):Pe({routes:[],injector:t})}}function b5(e){const t=e.value.routeConfig;return t&&""===t.path}function Qb(e){const t=[],n=new Set;for(const r of e){if(!b5(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):t.push(r)}for(const r of n){const i=Qb(r.children);t.push(new tr(r.value,i))}return t.filter(r=>!n.has(r))}function Xb(e){const t=e.children.map(n=>Xb(n)).flat();return[e,...t]}function Jp(e){return mr(t=>{const n=e(t);return n?qt(n).pipe(at(()=>t)):Pe(t)})}let Kb=(()=>{class e{buildTitle(n){let r,i=n.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Ue);return r}getResolvedTitleForRoute(n){return n.data[Ma]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ce(x5),providedIn:"root"})}return e})(),x5=(()=>{class e extends Kb{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(PF))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ls=new be("",{providedIn:"root",factory:()=>({})}),us=new be("");let eg=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ce(h1)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Pe(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=fi(n.loadComponent()).pipe(at(Jb),rn(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Np(()=>{this.componentLoaders.delete(n)})),i=new cb(r,()=>new Nn).pipe(Ap());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Pe({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=function N5(e,t,n,r){return fi(e.loadChildren()).pipe(at(Jb),nn(i=>i instanceof w0||Array.isArray(i)?Pe(i):qt(t.compileModuleAsync(i))),at(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,!0):(o=i.create(n).injector,s=o.get(us,[],{optional:!0,self:!0}).flat()),{routes:s.map(Zp),injector:o}}))}(r,this.compiler,n,this.onLoadEndListener).pipe(Np(()=>{this.childrenLoaders.delete(r)})),s=new cb(o,()=>new Nn).pipe(Ap());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jb(e){return function R5(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let tg=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ce(O5),providedIn:"root"})}return e})(),O5=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const eD=new be(""),tD=new be("");function k5(e,t,n){const r=e.get(tD),i=e.get(jt);return e.get(rt).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,Promise.resolve();let o;const s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),function P5(e){return new Promise(t=>{Oy(t,{injector:e})})}(e))),{onViewTransitionCreated:l}=r;return l&&Ii(e,()=>l({transition:a,from:t,to:n})),s})}let Cc=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Nn,this.transitionAbortSubject=new Nn,this.configLoader=ce(eg),this.environmentInjector=ce(Tn),this.urlSerializer=ce(Jo),this.rootContexts=ce(ka),this.location=ce(Ca),this.inputBindingEnabled=null!==ce(mc,{optional:!0}),this.titleStrategy=ce(Kb),this.options=ce(ls,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=ce(tg),this.createViewTransition=ce(eD,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Pe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new _3(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new C3(i))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,i){return this.transitions=new Rn({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Oa,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ln(o=>0!==o.id),at(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),mr(o=>{this.currentTransition=o;let s=!1,a=!1;return Pe(o).pipe(rn(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),mr(l=>{const u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const d="";return this.events.next(new ns(l.id,this.urlSerializer.serialize(l.rawUrl),d,pc.IgnoredSameUrlNavigation)),l.resolve(null),zr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Pe(l).pipe(mr(d=>{const S=this.transitions?.getValue();return this.events.next(new hc(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),S!==this.transitions?.getValue()?zr:Promise.resolve(d)}),function S5(e,t,n,r,i,o){return nn(s=>function y5(e,t,n,r,i,o,s="emptyOnly"){return new C5(e,t,n,r,i,s,o).recognize()}(e,t,n,r,s.extractedUrl,i,o).pipe(at(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),rn(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const S=new Rb(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(S)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:S,source:N,restoredState:U,extras:Z}=l,te=new hc(d,this.urlSerializer.serialize(S),N,U);this.events.next(te);const fe=Fb(this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:fe,urlAfterRedirects:S,extras:{...Z,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=S,Pe(o)}{const d="";return this.events.next(new ns(l.id,this.urlSerializer.serialize(l.extractedUrl),d,pc.IgnoredByUrlHandlingStrategy)),l.resolve(null),zr}}),rn(l=>{const u=new m3(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),at(l=>(this.currentTransition=o={...l,guards:j3(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function Q3(e,t){return nn(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Pe({...n,guardsResult:!0}):function X3(e,t,n,r){return qt(e).pipe(nn(i=>function r5(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Pe(o.map(a=>{const l=Fa(t)??i,u=os(a,l);return fi(function Z3(e){return e&&Ba(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):Ii(l,()=>u(e,t,n,r))).pipe(Vi())})).pipe(ss()):Pe(!0)}(i.component,i.route,n,t,r)),Vi(i=>!0!==i,!0))}(s,r,i,e).pipe(nn(a=>a&&function z3(e){return"boolean"==typeof e}(a)?function K3(e,t,n,r){return qt(t).pipe(Ta(i=>Mp(function e5(e,t){return null!==e&&t&&t(new b3(e)),Pe(!0)}(i.route.parent,r),function J3(e,t){return null!==e&&t&&t(new E3(e)),Pe(!0)}(i.route,r),function n5(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function U3(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>ub(()=>Pe(s.guards.map(l=>{const u=Fa(s.node)??n,c=os(l,u);return fi(function q3(e){return e&&Ba(e.canActivateChild)}(c)?c.canActivateChild(r,e):Ii(u,()=>c(r,e))).pipe(Vi())})).pipe(ss())));return Pe(o).pipe(ss())}(e,i.path,n),function t5(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Pe(!0);const i=r.map(o=>ub(()=>{const s=Fa(t)??n,a=os(o,s);return fi(function W3(e){return e&&Ba(e.canActivate)}(a)?a.canActivate(t,e):Ii(s,()=>a(t,e))).pipe(Vi())}));return Pe(i).pipe(ss())}(e,i.route,n))),Vi(i=>!0!==i,!0))}(r,o,e,t):Pe(a)),at(a=>({...n,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),rn(l=>{if(o.guardsResult=l.guardsResult,es(l.guardsResult))throw $b(0,l.guardsResult);const u=new v3(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),Ln(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",Vn.GuardRejected),!1)),Jp(l=>{if(l.guards.canActivateChecks.length)return Pe(l).pipe(rn(u=>{const c=new y3(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),mr(u=>{let c=!1;return Pe(u).pipe(function I5(e,t){return nn(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return Pe(n);const o=new Set(i.map(l=>l.route)),s=new Set;for(const l of o)if(!s.has(l))for(const u of Xb(l))s.add(u);let a=0;return qt(s).pipe(Ta(l=>o.has(l)?function T5(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!Bb(i)&&(o[Ma]=i.title),function M5(e,t,n,r){const i=Rp(e);if(0===i.length)return Pe({});const o={};return qt(i).pipe(nn(s=>function A5(e,t,n,r){const i=Fa(t)??r,o=os(e,i);return fi(o.resolve?o.resolve(t,n):Ii(i,()=>o(t,n)))}(e[s],t,n,r).pipe(Vi(),rn(a=>{o[s]=a}))),xp(1),function UL(e){return at(()=>e)}(o),Qo(s=>qb(s)?zr:oc(s)))}(o,e,t,r).pipe(at(s=>(e._resolvedData=s,e.data=$p(e,e.parent,n).resolve,null)))}(l,r,e,t):(l.data=$p(l,l.parent,e).resolve,Pe(void 0))),rn(()=>a++),xp(1),nn(l=>a===s.size?Pe(n):zr))})}(this.paramsInheritanceStrategy,this.environmentInjector),rn({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(u,"",Vn.NoDataFromResolver)}}))}),rn(u=>{const c=new w3(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}))}),Jp(l=>{const u=c=>{const d=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(rn(S=>{c.component=S}),at(()=>{})));for(const S of c.children)d.push(...u(S));return d};return Tp(u(l.targetSnapshot.root)).pipe(sc(null),Yo(1))}),Jp(()=>this.afterPreactivation()),mr(()=>{const{currentSnapshot:l,targetSnapshot:u}=o,c=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return c?qt(c).pipe(at(()=>o)):Pe(o)}),at(l=>{const u=function A3(e,t,n){const r=Pa(e,t._root,n?n._root:void 0);return new Pb(r,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:u},this.currentNavigation.targetRouterState=u,o}),rn(()=>{this.events.next(new Vp)}),((e,t,n,r)=>at(i=>(new B3(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Yo(1),rn({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new wr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),fb(this.transitionAbortSubject.pipe(rn(l=>{throw l}))),Np(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",Vn.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Qo(l=>{if(a=!0,zb(l))this.events.next(new ts(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function R3(e){return zb(e)&&es(e.url)}(l)?this.events.next(new Bp(l.url)):o.resolve(!1);else{this.events.next(new gc(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(l))}catch(u){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(u)}}return zr}))}))}cancelNavigationTransition(n,r,i){const o=new ts(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function F5(e){return e!==Oa}let L5=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ce(B5),providedIn:"root"})}return e})();class V5{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let B5=(()=>{class e extends V5{static#e=this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Ud(e)))(i||e)}})();static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nD=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ce(j5),providedIn:"root"})}return e})(),j5=(()=>{class e extends nD{constructor(){super(...arguments),this.location=ce(Ca),this.urlSerializer=ce(Jo),this.options=ce(ls,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=ce(tg),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ko,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Fb(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{"popstate"===r.type&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof hc)this.stateMemento=this.createStateMemento();else if(n instanceof ns)this.rawUrlTree=r.initialUrl;else if(n instanceof Rb){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(i,r)}}else n instanceof Vp?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof ts&&(n.code===Vn.GuardRejected||n.code===Vn.NoDataFromResolver)?this.restoreHistory(r):n instanceof gc?this.restoreHistory(r,!0):n instanceof wr&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",s)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(i,"",o)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&0===o&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static#e=this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Ud(e)))(i||e)}})();static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ja=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ja||{});function rD(e,t){e.events.pipe(Ln(n=>n instanceof wr||n instanceof ts||n instanceof gc||n instanceof ns),at(n=>n instanceof wr||n instanceof ns?ja.COMPLETE:n instanceof ts&&(n.code===Vn.Redirect||n.code===Vn.SupersededByNewNavigation)?ja.REDIRECTING:ja.FAILED),Ln(n=>n!==ja.REDIRECTING),Yo(1)).subscribe(()=>{t()})}function U5(e){throw e}const $5={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},H5={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Bn=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=ce(r1),this.stateManager=ce(nD),this.options=ce(ls,{optional:!0})||{},this.pendingTasks=ce(Eo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=ce(Cc),this.urlSerializer=ce(Jo),this.location=ce(Ca),this.urlHandlingStrategy=ce(tg),this._events=new Nn,this.errorHandler=this.options.errorHandler||U5,this.navigated=!1,this.routeReuseStrategy=ce(L5),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=ce(us,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!ce(mc,{optional:!0}),this.eventsSubscription=new ie,this.isNgZoneEnabled=ce(rt)instanceof rt&&rt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==i&&null!==o)if(this.stateManager.handleRouterEvent(r,o),r instanceof ts&&r.code!==Vn.Redirect&&r.code!==Vn.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof wr)this.navigated=!0;else if(r instanceof Bp){const s=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||F5(i.source)};this.scheduleNavigation(s,Oa,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}(function G5(e){return!(e instanceof Vp||e instanceof Bp)})(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Oa,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const l={...i};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Zp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...o};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=o||null}null!==c&&(c=this.removeEmptyProps(c));try{d=Sb(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Ib(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=es(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Oa,null,r)}navigate(n,r={skipLocationChange:!1}){return function z5(e){for(let t=0;t(null!=o&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,S)=>{a=d,l=S});const c=this.pendingTasks.add();return rD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_c=(()=>{class e{constructor(n,r,i,o,s,a){this.router=n,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new Nn,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof wr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,i,o,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==n||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const n=this.urlTree;this.href=null!==n&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;const r=null===this.href?null:function mv(e,t,n){return function VI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?gv:Xd}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,n,r):i.removeAttribute(o,n)}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:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(Oe(Bn),Oe(is),function Nl(e){return function rI(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{class e{get isActive(){return this._isActive}constructor(n,r,i,o,s){this.router=n,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new zt,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof wr&&this.update()})}ngAfterContentInit(){Pe(this.links.changes,Pe(null)).pipe(Ia()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=qt(n).pipe(Ia()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&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(n))})}isLinkActive(n){const r=function W5(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{const o=i.urlTree;return!!o&&n.isActive(o,r)}}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static#e=this.\u0275fac=function(r){return new(r||e)(Oe(Bn),Oe(Nr),Oe(ru),Oe(Pu),Oe(_c,8))};static#t=this.\u0275dir=Yt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(1&r&&aC(o,_c,5),2&r){let s;bh(s=Dh())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ti]})}return e})();class oD{}let q5=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ln(n=>n instanceof wr),Ta(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=lu(o.providers,n,`Route: ${o.path}`));const s=o._injector??n,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return qt(i).pipe(Ia())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):Pe(null);const o=i.pipe(nn(s=>null===s?Pe(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?qt([o,this.loader.loadComponent(r)]).pipe(Ia()):o})}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(Bn),Ae(h1),Ae(Tn),Ae(oD),Ae(eg))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ng=new be("");let sD=(()=>{class e{constructor(n,r,i,o,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof hc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof wr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ns&&n.code===pc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Ob&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ob(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function qv(){throw new Error("invalid")}()};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();function _r(e,t){return{\u0275kind:e,\u0275providers:t}}function lD(){const e=ce(mn);return t=>{const n=e.get(ui);if(t!==n.components[0])return;const r=e.get(Bn),i=e.get(uD);1===e.get(rg)&&r.initialNavigation(),e.get(cD,null,Ge.Optional)?.setUpPreloading(),e.get(ng,null,Ge.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const uD=new be("",{factory:()=>new Nn}),rg=new be("",{providedIn:"root",factory:()=>1}),cD=new be("");function X5(e){return _r(0,[{provide:cD,useExisting:q5},{provide:oD,useExisting:e}])}function J5(e){return _r(9,[{provide:eD,useValue:k5},{provide:tD,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const dD=new be("ROUTER_FORROOT_GUARD"),e4=[Ca,{provide:Jo,useClass:Op},Bn,ka,{provide:is,useFactory:function aD(e){return e.routerState.root},deps:[Bn]},eg,[]];let fD=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[e4,[],{provide:us,multi:!0,useValue:n},{provide:dD,useFactory:i4,deps:[[Bn,new vl,new yl]]},{provide:ls,useValue:r||{}},r?.useHash?{provide:Li,useClass:fk}:{provide:Li,useClass:n_},{provide:ng,useFactory:()=>{const e=ce(kP),t=ce(rt),n=ce(ls),r=ce(Cc),i=ce(Jo);return n.scrollOffset&&e.setOffset(n.scrollOffset),new sD(i,r,e,t,n)}},r?.preloadingStrategy?X5(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?o4(r):[],r?.bindToComponentInputs?_r(8,[jb,{provide:mc,useExisting:jb}]).\u0275providers:[],r?.enableViewTransitions?J5().\u0275providers:[],[{provide:hD,useFactory:lD},{provide:Ru,multi:!0,useExisting:hD}]]}}static forChild(n){return{ngModule:e,providers:[{provide:us,multi:!0,useValue:n}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(dD,8))};static#t=this.\u0275mod=Ir({type:e});static#n=this.\u0275inj=lr({})}return e})();function i4(e){return"guarded"}function o4(e){return["disabled"===e.initialNavigation?_r(3,[{provide:Nu,multi:!0,useFactory:()=>{const t=ce(Bn);return()=>{t.setUpLocationChangeListener()}}},{provide:rg,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?_r(2,[{provide:rg,useValue:0},{provide:Nu,multi:!0,deps:[mn],useFactory:t=>{const n=t.get(ck,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const i=t.get(Bn),o=t.get(uD);rD(i,()=>{r(!0)}),t.get(Cc).afterPreactivation=()=>(r(!0),o.closed?Pe(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const hD=new be(""),ig=new be("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),pD=new be("ngx-window",{providedIn:"root",factory:()=>{const{defaultView:e}=ce(jt);if(!e)throw new Error("Window is not available");return e}}),u4=new be("ngx-data-layer",{providedIn:"root",factory:()=>function l4(e){return e?e.dataLayer=e.dataLayer||[]:null}(ce(pD))}),gD=new be("ngx-gtag-fn",{providedIn:"root",factory:()=>function c4(e,t){return e?e.gtag=e.gtag||function(){t.push(arguments)}:null}(ce(pD),ce(u4))});let bc=(()=>{class e{constructor(n,r,i){this.settings=n,this._document=r,this._gtag=i}get document(){return this._document}throw(n){this.settings.enableTracing&&console&&console.error&&console.error(n)}toKeyValue(n){return n.size>0?Array.from(n).reduce((r,[i,o])=>Object.defineProperty(r,i,{value:o,enumerable:!0}),{}):void 0}gtag(...n){try{this._gtag(...n.filter(r=>void 0!==r))}catch(r){this.throw(r)}}event(n,r,i,o,s,a){try{const l=new Map;r&&l.set("event_category",r),i&&l.set("event_label",i),o&&l.set("value",o),void 0!==s&&l.set("interaction",s),a&&Object.entries(a).map(([c,d])=>l.set(c,d));const u=this.toKeyValue(l);u?this.gtag("event",n,u):this.gtag("event",n)}catch(l){this.throw(l)}}pageView(n,r,i,o){try{const s=new Map([["page_path",n]]);r&&s.set("page_title",r),(i||this.document)&&s.set("page_location",i||this.document.location.href),o&&Object.entries(o).map(([a,l])=>s.set(a,l)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(s))}catch(s){this.throw(s)}}appView(n,r,i,o,s){try{const a=new Map([["screen_name",n],["app_name",r]]);i&&a.set("app_id",i),o&&a.set("app_version",o),s&&a.set("app_installer_id",s),this.gtag("event","screen_view",this.toKeyValue(a))}catch(a){this.throw(a)}}set(...n){try{this._gtag("set",...n)}catch(r){this.throw(r)}}exception(n,r){try{const i=new Map;n&&i.set("description",n),r&&i.set("fatal",r),this.toKeyValue(i)?this.gtag("event","exception",this.toKeyValue(i)):this.gtag("event","exception")}catch(i){this.throw(i)}}}return e.\u0275fac=function(n){return new(n||e)(Ae(ig),Ae(jt),Ae(gD))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const f4={provide:Nu,multi:!0,useFactory:function h4(e,t,n){return M(function*(){if(!e.trackingCode)return void console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule.");if(!t)return void console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface.");n||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),e.uri=e.uri||`https://www.googletagmanager.com/gtag/js?id=${e.trackingCode}`,e.initCommands=e?.initCommands??[],e.initCommands.find(o=>"config"===o.command)||e.initCommands.unshift({command:"config",values:[e.trackingCode]}),e.initCommands.find(o=>"js"===o.command)||e.initCommands.unshift({command:"js",values:[new Date]});for(const o of e.initCommands)t(o.command,...o.values);const r=n.createElement("script");r.async=!0,r.src=e.uri,e.nonce&&r.setAttribute("nonce",e.nonce),n.getElementsByTagName("head")[0].appendChild(r)})},deps:[ig,gD,jt]},mD=new be("ngx-google-analytics-routing-settings",{factory:()=>({})}),p4={provide:Ru,multi:!0,useFactory:function g4(e,t){return function(){var n=M(function*(r){const i=r.injector.get(Bn),{include:o=[],exclude:s=[]}=e??{},a=vD(o),l=vD(s),u=i.events.pipe(Ln(c=>c instanceof wr),function a4(e){return Ln((t,n)=>e<=n)}(1),Ln(c=>!(a.length>0)||a.some(d=>d.test(c.urlAfterRedirects))),Ln(c=>!(l.length>0&&l.some(d=>d.test(c.urlAfterRedirects))))).subscribe(c=>t.pageView(c.urlAfterRedirects,void 0));r.onDestroy(()=>u.unsubscribe())});return function(r){return n.apply(this,arguments)}}()},deps:[mD,bc]};function vD(e){return e.map(t=>t instanceof RegExp?t:new RegExp(`^${t.replace("*",".*")}$`,"i"))}let yD=(()=>{class e{static forRoot(n,r=[],i,o,s){return{ngModule:e,providers:[{provide:ig,useValue:{trackingCode:n,initCommands:r,uri:i,enableTracing:o,nonce:s}},f4]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ir({type:e}),e.\u0275inj=lr({}),e})(),m4=(()=>{class e{static forRoot(n){return{ngModule:e,providers:[{provide:mD,useValue:n??{}}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ir({type:e}),e.\u0275inj=lr({providers:[p4],imports:[w_,yD]}),e})();const og="3.1.7",sg=()=>({exact:!0});let v4=(()=>{class e{constructor(){this.document=ce(jt),this.platformId=ce(Xr),this.backgroundImagesCount=8}ngOnInit(){if(this.document.head.querySelector('meta[name="version"]')?.setAttribute("content",og),!hp(this.platformId)){const n=Math.floor(Math.random()*this.backgroundImagesCount+1);this.document.body.style.backgroundImage=`url('/assets/background/bg${n}.jpg')`}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["app-root"]],decls:54,vars:6,consts:[[1,"container","mx-auto","p-4"],[1,"card","mb-4","flex","flex-col","items-center","overflow-hidden","p-4","pb-0","sm:flex-row","sm:items-end","lg:inline-flex"],[1,"pb-4","pr-4"],["role","img","aria-label","Lyric Converter",1,"h-[88px]","fill-white"],[0,"xlink","href","#lyric-converter-logo"],[1,"flex","sm:ml-auto"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/",1,"rounded-t-md","p-4","text-xl","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/about",1,"rounded-t-md","p-4","text-xl","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/help",1,"rounded-t-md","p-4","text-xl","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"routerLinkActiveOptions"],["xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","lyric-converter-logo","viewBox","0 0 400 116.51"],["id","logo-text-converter"],["d","m112.8,107.12c-.93,1.58-2.11,2.87-3.55,3.88-1.44,1.01-3.06,1.76-4.88,2.24-1.81.49-3.66.73-5.55.73-3,0-5.59-.54-7.78-1.62s-4-2.55-5.44-4.42c-1.44-1.86-2.5-4.06-3.19-6.58-.69-2.52-1.03-5.23-1.03-8.13v-1.79c0-2.87.34-5.57,1.03-8.09.69-2.52,1.75-4.72,3.17-6.6s3.23-3.36,5.42-4.44,4.76-1.62,7.73-1.62c2.01,0,3.93.28,5.78.85s3.48,1.43,4.9,2.58c1.42,1.15,2.58,2.59,3.48,4.31s1.41,3.73,1.53,6.04h2.43c-.04-.78-.19-1.47-.3-2.19-.22-1.39-.56-2.69-1.07-3.88-.13-.29-.19-.63-.33-.91-1.02-2.01-2.35-3.69-4-5.04s-3.54-2.37-5.69-3.05-4.38-1.02-6.72-1.02c-3.15,0-5.94.57-8.38,1.71-1.84.86-3.4,2.05-4.81,3.42-.46.45-.97.84-1.39,1.34-1.69,2.03-2.98,4.46-3.87,7.28-.69,2.21-1.04,4.66-1.18,7.22-.04.7-.14,1.36-.14,2.08v1.79c0,3.39.44,6.49,1.33,9.31s2.17,5.24,3.87,7.28c1.69,2.04,3.78,3.62,6.25,4.76s5.28,1.71,8.43,1.71c2.37,0,4.61-.34,6.74-1s4.01-1.64,5.64-2.9c1.63-1.27,2.95-2.82,3.96-4.65,1-1.84,1.57-3.94,1.69-6.3h-2.43c-.15,2.22-.69,4.12-1.62,5.7Z"],["d","m160.68,82.12c-1.03-2.82-2.48-5.24-4.34-7.28s-4.1-3.62-6.72-4.76-5.52-1.71-8.7-1.71-6.02.57-8.63,1.71c-1.74.76-3.26,1.8-4.68,2.96-.7.58-1.42,1.13-2.04,1.8-1.87,2.03-3.33,4.46-4.36,7.28-.02.05-.03.11-.05.16-1,2.78-1.5,5.82-1.5,9.15v1.79c0,3.39.52,6.49,1.55,9.31s2.49,5.24,4.36,7.28c1.87,2.04,4.12,3.62,6.74,4.76s5.52,1.71,8.7,1.71,6.02-.57,8.63-1.71,4.85-2.73,6.72-4.76c1.87-2.03,3.32-4.46,4.34-7.28s1.53-5.92,1.53-9.31v-1.79c0-3.39-.52-6.49-1.55-9.31Zm-.88,11.1c0,2.76-.43,5.39-1.28,7.9-.85,2.51-2.08,4.71-3.69,6.62s-3.57,3.42-5.89,4.55c-2.32,1.13-4.97,1.69-7.93,1.69s-5.66-.56-8-1.69c-2.34-1.12-4.31-2.64-5.93-4.55s-2.85-4.11-3.71-6.62c-.85-2.5-1.28-5.14-1.28-7.9v-1.79c0-2.7.43-5.3,1.28-7.79.16-.48.41-.9.6-1.36.81-1.92,1.79-3.71,3.08-5.26.17-.2.38-.35.56-.54,1.5-1.65,3.26-3.04,5.35-4.07,2.34-1.15,4.99-1.73,7.96-1.73s5.62.58,7.96,1.73c2.34,1.15,4.31,2.69,5.93,4.61,1.62,1.92,2.85,4.13,3.71,6.62s1.28,5.09,1.28,7.79v1.79Z"],["d","m202.3,77.68c-.69-2.16-1.69-3.93-3.01-5.32s-2.94-2.39-4.85-3.03c-1.92-.64-4.1-.96-6.56-.96-.28,0-.55.05-.83.06-1.72.07-3.37.32-4.9.83-1.78.6-3.41,1.42-4.88,2.45-.85.61-1.63,1.3-2.37,2.03-.53.53-1.05,1.07-1.52,1.66-1.12,1.42-2.04,2.95-2.76,4.57v-10.76h-2.43v46.2h2.43v-29.59c.24-1,.58-2.06,1.03-3.2s1.01-2.28,1.69-3.42c.46-.77.99-1.5,1.56-2.22.27-.34.54-.69.84-1.03.93-1.02,1.99-1.94,3.17-2.73s2.51-1.43,3.98-1.9c1.27-.41,2.67-.6,4.16-.66.24,0,.45-.05.69-.05,1.92,0,3.69.23,5.3.68s3.01,1.24,4.18,2.37c1.17,1.13,2.07,2.65,2.72,4.57.64,1.92.97,4.35.97,7.28v29.89h2.43v-29.89c0-3.07-.34-5.69-1.03-7.86Z"],["points","242.59 69.23 240.86 73.43 236.63 83.7 225.1 111.75 208.61 71.63 207.62 69.23 206.91 69.23 205.01 69.23 223.89 115.42 226.27 115.42 239.33 83.53 243.75 72.74 245.19 69.23 242.59 69.23"],["d","m246.22,90.79h36.45v-2.69c0-2.93-.46-5.61-1.37-8.03s-2.19-4.5-3.82-6.23-3.58-3.08-5.84-4.03-4.74-1.43-7.44-1.43-5.23.54-7.61,1.58c-.11.05-.22.08-.32.13-2.47,1.14-4.63,2.73-6.47,4.76s-3.3,4.47-4.38,7.3c-.03.08-.05.16-.08.23-1.02,2.77-1.54,5.79-1.54,9.06v1.88c0,3.36.55,6.44,1.66,9.24,1.11,2.8,2.63,5.22,4.56,7.26,1.93,2.04,4.19,3.62,6.76,4.76s5.35,1.71,8.31,1.71c1.95,0,3.73-.19,5.35-.55,1.62-.37,3.09-.88,4.43-1.54s2.52-1.44,3.57-2.35,1.98-1.92,2.79-3.03l-1.71-1.15c-1.02,1.25-2.08,2.28-3.19,3.1-1.11.81-2.26,1.46-3.46,1.94s-2.45.83-3.75,1.02-2.64.3-4.02.3c-2.67,0-5.15-.54-7.46-1.62-2.31-1.08-4.31-2.55-6-4.42s-3.02-4.06-3.98-6.58c-.96-2.52-1.44-5.22-1.44-8.09v-2.52Zm5.8-14.97c1.56-1.61,3.36-2.87,5.42-3.78.15-.06.31-.09.46-.15,1.93-.79,4.02-1.22,6.3-1.22,2.43,0,4.63.46,6.61,1.39,1.98.93,3.66,2.18,5.06,3.76,1.39,1.58,2.47,3.42,3.24,5.51.76,2.09,1.15,4.29,1.15,6.6v.55h-33.89c.27-2.5.89-4.84,1.87-7,.01-.03.03-.05.05-.08.97-2.13,2.22-3.99,3.75-5.57Z"],["d","m309.18,70.89c-.48-.06-.98-.11-1.51-.17-.52-.06-1.07-.08-1.64-.08-2.25,0-4.27.37-6.07,1.11-1.8.74-3.36,1.76-4.67,3.05-1.32,1.3-2.4,2.83-3.26,4.59s-1.48,3.69-1.87,5.76v30.27h-2.43v-46.2h2.43v9.61c1.32-3.22,3.3-5.76,5.93-7.64s5.95-2.82,9.93-2.82c.75,0,1.41.04,1.98.13.57.09,1.05.2,1.44.34l-.27,2.05Z"],["d","m323.67,56.76v12.47h11.06v2.35h-11.06v32.79c0,2.02.19,3.66.58,4.91s.92,2.23,1.6,2.92c.67.7,1.45,1.17,2.34,1.41s1.82.36,2.81.36c.93,0,1.75-.04,2.47-.11s1.5-.16,2.34-.28l.4,2.18c-.33.11-.72.2-1.17.26s-.91.11-1.39.15c-.48.04-.94.07-1.39.09-.45.01-.82.02-1.12.02-1.56,0-2.95-.19-4.18-.55-1.23-.37-2.27-1.01-3.12-1.92s-1.51-2.13-1.96-3.67-.67-3.46-.67-5.76v-32.79h-8.99v-2.35h8.99v-12.47h2.47Z"],["d","m355.65,116.28c-2.97,0-5.74-.57-8.31-1.71s-4.83-2.73-6.76-4.76c-1.93-2.03-3.45-4.45-4.56-7.26-1.11-2.8-1.66-5.88-1.66-9.24v-1.88c0-3.36.54-6.45,1.62-9.29,1.08-2.83,2.54-5.27,4.38-7.3,1.84-2.03,4-3.62,6.47-4.76s5.12-1.71,7.93-1.71,5.18.48,7.44,1.43,4.21,2.3,5.84,4.03c1.63,1.74,2.91,3.81,3.82,6.23s1.37,5.1,1.37,8.03v2.69h-36.45v2.52c0,2.87.48,5.57,1.44,8.09.96,2.52,2.28,4.71,3.98,6.58s3.69,3.34,6,4.42c2.31,1.08,4.79,1.62,7.46,1.62,1.38,0,2.72-.1,4.02-.3s2.55-.54,3.75-1.02,2.35-1.13,3.46-1.94c1.11-.81,2.17-1.84,3.19-3.1l1.71,1.15c-.81,1.11-1.74,2.12-2.79,3.03s-2.24,1.69-3.57,2.35-2.81,1.17-4.43,1.54c-1.62.37-3.4.55-5.35.55Zm-.9-45.6c-2.46,0-4.71.46-6.76,1.37s-3.86,2.17-5.42,3.78c-1.56,1.61-2.82,3.5-3.8,5.66-.97,2.16-1.6,4.5-1.87,7h33.89v-.55c0-2.31-.38-4.5-1.15-6.6-.76-2.09-1.84-3.93-3.24-5.51-1.39-1.58-3.08-2.83-5.06-3.76-1.98-.92-4.18-1.39-6.61-1.39Z"],["d","m399.73,70.89c-.48-.06-.98-.11-1.51-.17-.52-.06-1.07-.08-1.64-.08-2.25,0-4.27.37-6.07,1.11-1.8.74-3.36,1.76-4.67,3.05-1.32,1.3-2.4,2.83-3.26,4.59s-1.48,3.69-1.87,5.76v30.27h-2.43v-46.2h2.43v9.61c1.32-3.22,3.3-5.76,5.93-7.64s5.95-2.82,9.93-2.82c.75,0,1.41.04,1.98.13.57.09,1.05.2,1.44.34l-.27,2.05Z"],["id","logo-text-lyric"],["d","m0,82.28V1.89h12.15v70.08h38.66v10.31H0Z"],["d","m78.82,81.66c.94-3,2.34-5.62,4.15-7.8,1.11-1.34,2.4-2.48,3.82-3.47l19.34-48.13h-11.54l-11.9,31.3c-.98,2.78-2.01,5.69-3.07,8.71-1.07,3.03-2.09,5.97-3.07,8.84h-.49c-1.23-2.95-2.41-5.93-3.56-8.96-1.15-3.03-2.29-5.89-3.44-8.59l-13.5-31.3h-12.15l27.37,59.64-1.6,4.17c-1.31,3.27-3.21,6.01-5.71,8.22-2.5,2.21-5.75,3.31-9.76,3.31-.9,0-1.8-.08-2.7-.25-.9-.16-1.72-.37-2.45-.61l-2.45,9.45c2.45.82,5.19,1.23,8.22,1.23,7.04,0,12.56-1.96,16.57-5.89,2.5-2.45,4.65-5.44,6.51-8.85v-1.27c0-3.53.47-6.81,1.4-9.77Z"],["d","m138.73,35.4c4.05-2.46,8.2-3.68,12.46-3.68,2.29,0,4.17.16,5.64.49,1.47.33,3.23.82,5.28,1.47l2.7-10.43c-3.52-1.63-7.45-2.45-11.78-2.45-5.32,0-10.23,1.37-14.73,4.11-4.5,2.74-8.31,6.53-11.41,11.35h-.37l-.98-13.99h-10.06v52.91c.35.54.74,1.03,1.03,1.62.83,1.63,1.39,3.47,1.67,5.48h1.38c.08-.23.13-.46.21-.69,1.1-3,2.67-5.62,4.67-7.79.96-1.04,2.02-1.98,3.17-2.8v-22.84c3.35-6.05,7.06-10.31,11.11-12.76Z"],["d","m180.97,25.94c2.35,0,4.3-.72,5.84-2.15,1.54-1.43,2.31-3.32,2.31-5.67s-.77-4.24-2.31-5.67c-1.54-1.43-3.49-2.15-5.84-2.15s-4.2.72-5.78,2.15c-1.58,1.43-2.37,3.32-2.37,5.67s.79,4.24,2.37,5.67c1.58,1.43,3.51,2.15,5.78,2.15Z"],["d","m181.65,67.81c1.68-.56,3.5-.84,5.39-.91V26.57h-.1c-1.71,1.1-3.7,1.67-5.98,1.67s-4.19-.57-5.91-1.67h-.17v45.12c.49-.42.96-.85,1.49-1.22,1.59-1.12,3.36-2.02,5.27-2.66Z"],["d","m208.65,67.69l.39.95,2.67,6.49c2.07,1.96,4.42,3.62,7.1,4.94,4.81,2.37,10.21,3.57,16.17,3.65l4.12-10.03c-.81.08-1.64.12-2.49.12-6.38,0-11.56-1.96-15.53-5.89-3.97-3.93-5.95-9.12-5.95-15.59s2.02-11.66,6.07-15.59c4.05-3.93,9.31-5.89,15.77-5.89,2.95,0,5.69.55,8.22,1.66,2.53,1.11,4.99,2.64,7.36,4.6l5.89-7.73c-2.46-2.37-5.52-4.4-9.2-6.07-3.68-1.67-7.98-2.52-12.89-2.52-6.06,0-11.64,1.25-16.75,3.74-5.11,2.5-9.23,6.07-12.33,10.74-3.11,4.66-4.66,10.35-4.66,17.06,0,5.89,1.22,10.99,3.51,15.36h2.53Z"],["id","check-circle-fill","viewBox","0 0 16 16"],["d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"],["id","exclamation-triangle-fill","viewBox","0 0 16 16"],["d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"],["id","files","viewBox","0 0 16 16"],["d","M13 0H6a2 2 0 0 0-2 2 2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2 2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm0 13V4a2 2 0 0 0-2-2H5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1zM3 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4z"],["id","file-text-fill","viewBox","0 0 16 16"],["d","M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM5 4h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zM5 8h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm0 2h3a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1z"],["id","file-zip-fill","viewBox","0 0 16 16"],["d","M8.5 9.438V8.5h-1v.938a1 1 0 0 1-.03.243l-.4 1.598.93.62.93-.62-.4-1.598a1 1 0 0 1-.03-.243z"],["d","M4 0h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm2.5 8.5v.938l-.4 1.599a1 1 0 0 0 .416 1.074l.93.62a1 1 0 0 0 1.109 0l.93-.62a1 1 0 0 0 .415-1.074l-.4-1.599V8.5a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1zm1-5.5h-1v1h1v1h-1v1h1v1H9V6H8V5h1V4H8V3h1V2H8V1H6.5v1h1v1z"],["id","github","viewBox","0 0 16 16"],["d","M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"],["id","info-fill","viewBox","0 0 16 16"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],["id","mastodon","viewBox","0 0 16 16"],["d","M11.19 12.195c2.016-.24 3.77-1.475 3.99-2.603.348-1.778.32-4.339.32-4.339 0-3.47-2.286-4.488-2.286-4.488C12.062.238 10.083.017 8.027 0h-.05C5.92.017 3.942.238 2.79.765c0 0-2.285 1.017-2.285 4.488l-.002.662c-.004.64-.007 1.35.011 2.091.083 3.394.626 6.74 3.78 7.57 1.454.383 2.703.463 3.709.408 1.823-.1 2.847-.647 2.847-.647l-.06-1.317s-1.303.41-2.767.36c-1.45-.05-2.98-.156-3.215-1.928a3.614 3.614 0 0 1-.033-.496s1.424.346 3.228.428c1.103.05 2.137-.064 3.188-.189zm1.613-2.47H11.13v-4.08c0-.859-.364-1.295-1.091-1.295-.804 0-1.207.517-1.207 1.541v2.233H7.168V5.89c0-1.024-.403-1.541-1.207-1.541-.727 0-1.091.436-1.091 1.296v4.079H3.197V5.522c0-.859.22-1.541.66-2.046.456-.505 1.052-.764 1.793-.764.856 0 1.504.328 1.933.983L8 4.39l.417-.695c.429-.655 1.077-.983 1.934-.983.74 0 1.336.259 1.791.764.442.505.661 1.187.661 2.046v4.203z"],["id","piggy-bank-fill","viewBox","0 0 16 16"],["d","M7.964 1.527c-2.977 0-5.571 1.704-6.32 4.125h-.55A1 1 0 0 0 .11 6.824l.254 1.46a1.5 1.5 0 0 0 1.478 1.243h.263c.3.513.688.978 1.145 1.382l-.729 2.477a.5.5 0 0 0 .48.641h2a.5.5 0 0 0 .471-.332l.482-1.351c.635.173 1.31.267 2.011.267.707 0 1.388-.095 2.028-.272l.543 1.372a.5.5 0 0 0 .465.316h2a.5.5 0 0 0 .478-.645l-.761-2.506C13.81 9.895 14.5 8.559 14.5 7.069c0-.145-.007-.29-.02-.431.261-.11.508-.266.705-.444.315.306.815.306.815-.417 0 .223-.5.223-.461-.026a.95.95 0 0 0 .09-.255.7.7 0 0 0-.202-.645.58.58 0 0 0-.707-.098.735.735 0 0 0-.375.562c-.024.243.082.48.32.654a2.112 2.112 0 0 1-.259.153c-.534-2.664-3.284-4.595-6.442-4.595Zm7.173 3.876a.565.565 0 0 1-.098.21.704.704 0 0 1-.044-.025c-.146-.09-.157-.175-.152-.223a.236.236 0 0 1 .117-.173c.049-.027.08-.021.113.012a.202.202 0 0 1 .064.199Zm-8.999-.65a.5.5 0 1 1-.276-.96A7.613 7.613 0 0 1 7.964 3.5c.763 0 1.497.11 2.18.315a.5.5 0 1 1-.287.958A6.602 6.602 0 0 0 7.964 4.5c-.64 0-1.255.09-1.826.254ZM5 6.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"],["id","x-circle","viewBox","0 0 16 16"],["d","M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"],["d","M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"]],template:function(r,i){1&r&&(ue(0,"div",0)(1,"header",1)(2,"h1",2),Ot(),ue(3,"svg",3),je(4,"use",4),le()(),ar(),ue(5,"nav",5)(6,"a",6),_e(7,"Convert"),le(),ue(8,"a",7),_e(9,"About"),le(),ue(10,"a",8),_e(11,"Help"),le()()(),je(12,"router-outlet"),le(),Ot(),ue(13,"svg",9)(14,"symbol",10)(15,"g",11),je(16,"path",12)(17,"path",13)(18,"path",14)(19,"polygon",15)(20,"path",16)(21,"path",17)(22,"path",18)(23,"path",19)(24,"path",20),le(),ue(25,"g",21),je(26,"path",22)(27,"path",23)(28,"path",24)(29,"path",25)(30,"path",26)(31,"path",27),le()(),ue(32,"symbol",28),je(33,"path",29),le(),ue(34,"symbol",30),je(35,"path",31),le(),ue(36,"symbol",32),je(37,"path",33),le(),ue(38,"symbol",34),je(39,"path",35),le(),ue(40,"symbol",36),je(41,"path",37)(42,"path",38),le(),ue(43,"symbol",39),je(44,"path",40),le(),ue(45,"symbol",41),je(46,"path",42),le(),ue(47,"symbol",43),je(48,"path",44),le(),ue(49,"symbol",45),je(50,"path",46),le(),ue(51,"symbol",47),je(52,"path",48)(53,"path",49),le()()),2&r&&($e(6),Qn("routerLinkActiveOptions",Eu(3,sg)),$e(2),Qn("routerLinkActiveOptions",Eu(4,sg)),$e(2),Qn("routerLinkActiveOptions",Eu(5,sg)))},dependencies:[qp,_c,iD],encapsulation:2})}return e})(),wD=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["app-donate-button"]],decls:10,vars:0,consts:[["action","https://www.paypal.com/donate","method","post","target","_blank"],["type","hidden","name","business","value","RWE3JEMR9ST5Q"],["type","hidden","name","no_recurring","value","0"],["type","hidden","name","item_name","value","Thanks for supporting Lyric Converter! (https://lyricconverter.net)"],["type","hidden","name","currency_code","value","USD"],["type","submit",1,"btn","btn-success"],["role","img","aria-label","Piggy Bank:",1,"icon"],[0,"xlink","href","#piggy-bank-fill"],["alt","","border","0","src","https://www.paypal.com/en_US/i/scr/pixel.gif","width","1","height","1"]],template:function(r,i){1&r&&(ue(0,"form",0),je(1,"input",1)(2,"input",2)(3,"input",3)(4,"input",4),ue(5,"button",5),Ot(),ue(6,"svg",6),je(7,"use",7),le(),_e(8," Donate! "),le(),ar(),je(9,"img",8),le())},encapsulation:2})}return e})(),y4=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["app-about"]],decls:44,vars:0,consts:[[1,"grid","gap-4","md:grid-cols-3"],[1,"card","md:col-span-2"],[1,"card-title"],[1,"card-content"],[1,"mb-2"],[1,"card","mb-4"],[1,"card"],["href","https://github.com/FiniteLooper/LyricConverter","target","_blank",1,"btn","btn-secondary"],["role","img","aria-label","Github:",1,"icon"],[0,"xlink","href","#github"]],template:function(r,i){1&r&&(ue(0,"div",0)(1,"div",1)(2,"h3",2),_e(3,"Why Was This Made?"),le(),ue(4,"div",3)(5,"p",4),_e(6," I'm the guy at my church who runs the lyric presentation software for a lot of the services. We used SongShow Plus for several years, and it worked pretty well for us. It did have a few key frustrations for us, plus the fact that we "),ue(7,"em"),_e(8,"really"),le(),_e(9," wanted to switch over to a Mac. After looking into it, ProPresenter seemed like a great choice. "),le(),ue(10,"p",4),_e(11," After making the leap, we quickly realized that SongShow Plus had absolutely "),ue(12,"strong"),_e(13,"no way to export"),le(),_e(14," our songs, and ProPresenter had absolutely no way of getting these songs from SongShow Plus! Sure, there are a few half-baked solutions out there, or the good old copy-n-paste-every-slide-of-every-song method, but none of those are really ideal. "),le(),ue(15,"p",4),_e(16," After talking to the media director at another church, he told me that they were holding off making the same software switch that we had made because they were uncertain of how to transfer all of their songs over. This got me thinking\u2026 It seemed as if enough people had the need for a tool like this and yet one didn't exist! "),le(),ue(17,"p"),_e(18," In my non-church time during the week I'm a full time web designer/developer, so I decided to take a look at the file formats for each program and determined that it wouldn't be that hard to do! Well\u2026 There ended up being a bit more complexities than I anticipated, and it did take quite a while to get it to the point where I felt comfortable releasing it. "),ue(19,"strong"),_e(20,"BUT"),le(),_e(21,", here it is. I hope you find it useful. "),le()()(),ue(22,"div")(23,"div",5)(24,"h3",2),_e(25,"Donations are welcome!"),le(),ue(26,"div",3)(27,"p",4),_e(28," If you find this service useful, please consider donating to this site to help support the cost! A small $5 donation (or more!) would really help to support my efforts. "),le(),je(29,"app-donate-button"),le()(),ue(30,"div",6)(31,"h3",2),_e(32,"Want To Make This Better?"),le(),ue(33,"div",3)(34,"p",4),_e(35," This project is on GitHub! Feel free to take a look at the code, or submit improvements & changes. "),le(),ue(36,"a",7),Ot(),ue(37,"svg",8),je(38,"use",9),le(),_e(39," Fork On GitHub! "),le()()()(),ar(),ue(40,"div",1)(41,"div",3)(42,"p"),_e(43," I am not in any way affiliated with any of the companies or organizations that make any of the lyric file formats or presentation software listed here "),le()()()())},dependencies:[wD],encapsulation:2})}return e})();function ag(e){e||(Ns(),e=ce(bo));const t=new Vt(n=>e.onDestroy(n.next.bind(n)));return n=>n.pipe(fb(t))}const Ua=" | ",CD="[[LyricConverter Custom Error]]";let _D=(()=>{class e{constructor(){this.$gaService=ce(bc),this.errorsList=[],this.errorsChanged$=new Nn}add(n){this.isCustomLyricConverterError(n.thrownError)&&(n.message=n.thrownError.message),this.errorsList.push(n),this.errorsChanged$.next(this.errorsList.slice()),this.$gaService.event("error","convert",n.message),console.warn("[LyricConverter Error Service]",n)}clear(){this.errorsList=[],this.errorsChanged$.next(this.errorsList.slice())}isCustomLyricConverterError(n){return null!=n&&Object.hasOwn(n,"cause")&&n.cause===CD}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class $a{static normalizeLineEndings(t){return t.replace(/(\r\n)|(\n\r)/g,"\n")}static mergeArraysByProp(t,n,r){return t.filter(o=>!n.find(s=>o[r]===s[r])).concat(n)}static getFileNameParts(t){const n=t.split("."),r=n.length>1?n.slice(-1)[0]:"";return{name:t.replace(`.${r}`,""),ext:r.toLowerCase()}}}class _4{constructor(){this.patternComments=/^#.*([\r\n])*/gm,this.patternChords=/\[.+?\]/gm,this.patternDirectives=/{(.+?)}/gm,this.patternDirectiveStartMarkers=/^((?:so)|(?:start_of_))([a-z]+)/,this.name="ChordPro",this.fileExt="cho",this.url="https://chordpro.org/"}doesInputFileMatchThisType(t){return/^cho|crd|chopro|chord|pro$/i.test(t.ext)}extractSongData(t){const n=$a.normalizeLineEndings(t.dataAsString),r=this.stripCommentsAndChords(n),i=this.gatherDirectives(r),o=this.getSongTitle(i,t.name),s=this.getSongInfo(i.keyValuePairs),a=this.getLyricContentWithoutDirectives(i.singles,r),l=this.getLyrics(a);return{fileName:t.name,title:o,info:s,slides:l}}stripCommentsAndChords(t){return t.replace(this.patternComments,"").replace(this.patternChords,"")}gatherDirectives(t){const n=t.matchAll(this.patternDirectives),r={keyValuePairs:[],singles:[]};for(const i of n){const o=i[1];if(null!=o){const s=i.index??0;if(o.includes(":")){const a=o.split(":").filter(l=>""!==l.trim());null!=a[0]&&null!=a[1]&&(this.patternDirectiveStartMarkers.test(o)?r.singles.push({name:a[0].trim(),position:s,sectionLabel:a[1].trim()}):r.keyValuePairs.push({name:a[0].trim(),value:a[1].trim()}))}else r.singles.push({name:o.trim(),position:s})}}return r}getSongTitle(t,n){const r=t.keyValuePairs.find(i=>"title"===i.name.toLowerCase());return r?r.value.toString():n}getSongInfo(t){const n=["gc","title","chorus"],r=["chorus"];return t.filter(i=>!n.includes(i.name.toLowerCase())&&!r.includes(i.value.toString().toLowerCase()))}getMatchedDirectivePairs(t){const n=[];for(const r of t){const i=this.patternDirectiveStartMarkers.exec(r.name);if(i){let o;"so"===i[1]?o=t.find(s=>s.name==="eo"+i[2]):"start_of_"===i[1]&&(o=t.find(s=>s.name==="end_of_"+i[2])),null!=i[2]&&o&&n.push({begin:r,end:o,type:i[2]})}}return n}getLyricContentWithoutDirectives(t,n){const r=this.getMatchedDirectivePairs(t),i=[],o=[],s=["c","v","b","chorus","verse","bridge"];for(const c of r){const d=n.substring(c.begin.position,c.end.position+c.end.name.length+2);if(s.includes(c.type)){let S=c.begin.position+c.begin.name.length+3;null!=c.begin.sectionLabel&&(S+=c.begin.sectionLabel.length+1);const N=n.substring(S,c.end.position);o.push({full:d,content:N,type:c.type,sectionLabel:c.begin.sectionLabel})}else i.push(d)}const a=i.reduce((c,d)=>c.replace(d,""),n);return o.reduce((c,d)=>{let S="";return null!=d.sectionLabel?S=d.sectionLabel:/^c(horus)?$/.test(d.type)&&!/^chorus/i.test(d.content)?S="Chorus:\n":/^v(erse)?$/.test(d.type)&&!/^verse/i.test(d.content)?S="Verse:\n":/^b(ridge)?$/.test(d.type)&&!/^bridge/i.test(d.content)&&(S="Bridge:\n"),c.replace(d.full,S+d.content)},a).replace(this.patternDirectives,"").trim()}getLyrics(t){const n=[],r=t.split("\n\n");for(const i of r){const o=i.trim().split("\n");if(null!=o[0]){let s=o[0].trim(),a=i.trim();/^(chorus|verse|bridge)/i.test(s)?(s=s.replace(":",""),a=a.replace(o[0]+"\n","")):s="Verse",n.push({title:s,lyrics:a})}}return n}}class bD extends Error{constructor(t){return super(),new Error(t,{cause:CD})}}class b4{constructor(){this.name="JSON",this.fileExt="json"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n={fileName:t.name,title:t.name,info:[],slides:[]},r=JSON.parse(t.dataAsString);if(!this.isSongObject(r))throw new bD(`This file is not formatted as a LyricConverter ${this.name} file`);return n.title=r.title,n.info=r.info,n.slides=r.slides,n}isSongObject(t){return Object.hasOwn(t,"title")&&Object.hasOwn(t,"info")&&Object.hasOwn(t,"slides")}}var hi=X(604);class D4{overwriteMeta(t,n){const i={createdIn:"openlyrics-parser 1.1.4",modifiedIn:"openlyrics-parser 1.1.4",lang:"en",...n};t.song["@xml:lang"]=i.lang,t.song["@createdIn"]=i.createdIn,t.song["@modifiedIn"]=i.modifiedIn,t.song["@modifiedDate"]=(new Date).toISOString().replace(/\.\d{3}Z$/,""),null!=i.chordNotation&&(t.song["@chordNotation"]=i.chordNotation)}overwriteProperties(t,n){this.overwriteSpecialPropTitles(t,n.titles),this.overwriteSpecialPropAuthors(t,n.authors),this.overwriteSpecialPropComments(t,n.comments),this.overwriteSpecialPropSongBooks(t,n.songBooks),this.overwriteSpecialPropThemes(t,n.themes),this.overwriteSpecialPropTempo(t,n.tempo);const r=["authors","titles","tempo"];Object.keys(n).forEach(i=>{if(!r.includes(i)){const o=n[i];("string"==typeof o||"number"==typeof o)&&(t.song.properties[i]=o.toString())}})}overwriteFormats(t,n){n?t.song.format.tags=n.map(r=>({"@application":r.application,tag:r.tags.map(i=>({"@name":i.name,open:this.encodeHtmlCarats(i.open),close:this.encodeHtmlCarats(i.close)}))})):t.song.format=void 0}overwriteVerses(t,n){const r=[];for(const i of n)r.push({"@name":i.name,"@break":!0===i.optionalBreak?"optional":void 0,"@lang":i.lang,"@transliteration":i.transliteration,lines:this.getVerseLines(i.lines)});t.song.lyrics.verse=r}overwriteInstruments(t,n){if(n){const r=[];for(const i of n)r.push({"@name":i.name,lines:this.getInstrumentLines(i.lines)});t.song.lyrics.instrument=r}}overwriteSpecialPropTitles(t,n){t.song.properties.titles.title="string"==typeof n?[{"#text":n}]:n.map(r=>({"#text":r.value,"@lang":r.lang,"@translit":r.transliteration,"@original":!0===r.original?"true":void 0}))}overwriteSpecialPropAuthors(t,n){"string"==typeof n?t.song.properties.authors={author:[{"#text":n}]}:Array.isArray(n)&&(t.song.properties.authors={author:n.map(r=>({"#text":r.value,"@lang":r.lang,"@type":r.type}))})}overwriteSpecialPropComments(t,n){n&&(t.song.properties.comments={comment:n})}overwriteSpecialPropSongBooks(t,n){n&&(t.song.properties.songbooks={songbook:n.map(r=>({"@name":r.name,"@entry":r.entry}))})}overwriteSpecialPropThemes(t,n){n&&(t.song.properties.themes={theme:n.map(r=>({"#text":r.value,"@lang":r.lang}))})}overwriteSpecialPropTempo(t,n){null!=n&&(t.song.properties.tempo={"#text":n,"@type":"number"==typeof n?"bpm":"text"})}getVerseLines(t){let n=[];return n=this.isStringArray(t)?t.map(r=>({"#text":this.convertToHtmlBreaks(r)})):t.map(r=>({"#text":r.content.map(o=>"chord"===o.type?this.getChord(o):"tag"===o.type?`${o.value}`:"comment"===o.type?`${o.value}`:this.convertToHtmlBreaks(o.value)).join(""),"@part":r.part,"@break":!0===r.optionalBreak?"optional":void 0,"@repeat":r.repeat})),n}getInstrumentLines(t){return t.map(r=>({"#text":r.content.map(o=>"chord"===o.type?this.getChord(o):this.getBeat(o)).join(""),"@part":r.part,"@repeat":r.repeat}))}getChord(t){let n="";return null!=t.root&&(n+=` root="${t.root}"`),null!=t.structure&&(n+=` structure="${t.structure}"`),!0===t.upbeat&&(n+=' upbeat="true"'),null!=t.bass&&(n+=` bass="${t.bass}"`),this.isVerseChord(t)?`${t.value}`:``}getBeat(t){return` ${t.chords.map(r=>this.getChord(r)).join("")}\n`}isStringArray(t){return t.every(n=>"string"==typeof n)}convertToHtmlBreaks(t){return t.replace(/[\n\r]/g,"
")}encodeHtmlCarats(t){return t.replace(//g,">")}isVerseChord(t){return"value"in t}}class E4{lyricLineParser=new hi.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"",isArray:(t,n)=>["beat.chord"].includes(n)});getSongMeta(t){return{createdIn:t.createdIn??"",chordNotation:t.chordNotation??"",lang:t["xml:lang"]??"",modifiedDate:null!=t.modifiedDate?new Date(t.modifiedDate):null,modifiedIn:t.modifiedIn??"",version:t.version.toString()}}getSongProperties(t){return null!=t.releaseDate&&(t.released=t.releaseDate),{authors:this.getSongPropertyAuthors(t.authors),ccliNo:t.ccliNo?.toString()??"",comments:this.getSongPropertyComments(t.comments),copyright:t.copyright?.toString()??"",key:t.key??"",keywords:t.keywords??"",publisher:t.publisher??"",released:t.released?.toString()??"",songBooks:this.getSongPropertySongBooks(t.songbooks),tempo:t.tempo?.["#text"].toString()??"",tempoType:t.tempo?.type??"",themes:this.getSongPropertyThemes(t.themes),timeSignature:t.timeSignature??"",titles:this.getSongPropertyTitles(t.titles),transposition:t.transposition?.toString()??"",variant:t.variant??"",verseOrder:t.verseOrder??"",version:t.version?.toString()??""}}getSongFormat(t){let n="",r=[];return t&&(n=t.tags.application,r=t.tags.tag.map(i=>({name:i.name,open:i.open,close:i.close??""}))),{application:n,tags:r}}getSongVerses(t){const n=[];if(t)for(const r of t)n.push({break:r.break??"",name:r.name,lang:r.lang??"",transliteration:r.translit??"",lines:this.getVerseLines(r.lines)});return n}getSongInstruments(t){const n=[];if(t)for(const r of t)n.push({name:r.name,lines:this.getInstrumentLines(r.lines)});return n}getVerseLines(t){const n=[];for(const r of t){const i=this.getStringOrTextProp(r),o=this.parseLineTextForXml(i);n.push({break:this.getOptionalPropOnPossibleObject(r,"break",""),content:this.getVerseContentObjects(o),part:this.getOptionalPropOnPossibleObject(r,"part",""),repeat:this.getOptionalPropOnPossibleObject(r,"repeat","")})}return n}getInstrumentLines(t){const n=[];for(const r of t){const i=this.getStringOrTextProp(r),o=this.parseLineTextForXml(i);n.push({content:this.getInstrumentContentObjects(o),part:this.getOptionalPropOnPossibleObject(r,"part",""),repeat:this.getOptionalPropOnPossibleObject(r,"repeat","")})}return n}parseLineTextForXml(t){return t.split(/(<[^/]+?>[\s\S]+?<\/.+?>)|(<[^/]+?\/>)/g).filter(n=>""!==n&&typeof n<"u")}getVerseContentObjects(t){const n=[];for(const r of t)if(r.startsWith("<")){const i=this.lyricLineParser.parse(r);null!=i.comment?n.push({type:"comment",value:i.comment}):null!=i.tag?n.push({type:"tag",name:i.tag.name,value:i.tag["#text"]??""}):null!=i.chord&&n.push(this.getChordObject(i.chord))}else n.push({type:"text",value:r});return n}getInstrumentContentObjects(t){const n=[];for(const r of t){const i=this.lyricLineParser.parse(r);null!=i.chord?n.push(this.getChordObject(i.chord)):null!=i.beat&&n.push({type:"beat",chords:i.beat.chord.map(o=>this.getChordObject(o))})}return n}getChordObject(t){const n={type:"chord"};return Object.keys(t).forEach(r=>{let i="#text"===r?"value":r;"name"===i&&(i="root"),n[i]=t[r]}),n}getSongPropertyAuthors(t){const n=[];if(t)for(const r of t.author)n.push({lang:this.getOptionalPropOnPossibleObject(r,"lang",""),type:this.getOptionalPropOnPossibleObject(r,"type",""),value:this.getStringOrTextProp(r)});return n}getSongPropertyComments(t){let n=[];return t&&(n=t.comment.map(r=>this.getStringOrTextProp(r))),n}getSongPropertyThemes(t){const n=[];if(t)for(const r of t.theme)n.push({lang:this.getOptionalPropOnPossibleObject(r,"lang",""),value:this.getStringOrTextProp(r)});return n}getSongPropertyTitles(t){const n=[];if(t)for(const r of t.title)n.push({lang:this.getOptionalPropOnPossibleObject(r,"lang",""),original:this.getOptionalPropOnPossibleObject(r,"original",null),transliteration:this.getOptionalPropOnPossibleObject(r,"translit",""),value:this.getStringOrTextProp(r)});return n}getSongPropertySongBooks(t){const n=[];if(t)for(const r of t.songbook)n.push({entry:r.entry?.toString()??"",name:r.name});return n}getStringOrTextProp(t){return"string"==typeof t?t:t["#text"]}getOptionalPropOnPossibleObject(t,n,r){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?r:t[n]??r}}class T4{constructor(){this.name="OpenLyrics",this.fileExt="xml",this.url="http://openlyrics.org/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=>{const t=["song.properties.titles.title","song.properties.titles.title.text","song.properties.authors.author","song.properties.comments.comment","song.properties.songbooks.songbook","song.properties.themes.theme","song.lyrics.verse","song.lyrics.verse.lines","song.lyrics.instrument","song.lyrics.instrument.lines"],r=new hi.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!0,attributeNamePrefix:"",parseTagValue:!0,parseAttributeValue:!0,stopNodes:["song.lyrics.verse.lines","song.lyrics.instrument.lines"],isArray:(c,d)=>t.includes(d),tagValueProcessor:(c,d,S)=>"song.lyrics.verse.lines"===S?d.replace(/<\/?br ?\/?>([\r\n])?/gi,"\n").replace(//g,""):null}).parse(e),i=new E4;return{meta:i.getSongMeta(r.song),properties:i.getSongProperties(r.song.properties),format:i.getSongFormat(r.song.format),verses:i.getSongVerses(r.song.lyrics.verse),instruments:i.getSongInstruments(r.song.lyrics.instrument)}})(t.dataAsString),r=this.getTitle(n.properties.titles,t.name),i=this.getInfo(n.properties),o=this.getSlides(n.verses);return{fileName:t.name,title:r,info:i,slides:o}}getTitle(t,n){let r=n;return null!=t[0]&&(r=t[0].value),r}getInfo(t){let n=[];const r=["tempoType","version"];if(Object.keys(t).forEach(i=>{let o=t[i];"string"==typeof o&&""!==o&&!r.includes(i)&&("tempo"===i?("bpm"===t.tempoType.toLowerCase()&&(o+=t.tempoType),n.push({name:"Tempo",value:o})):n.push({name:i,value:o}))}),t.authors.length>0&&(n=n.concat(this.getSpecialPropAuthors(t.authors))),t.comments.length>0&&(n=n.concat(this.getSpecialPropComments(t.comments))),t.songBooks.length>0&&(n=n.concat(this.getSpecialPropSongBooks(t.songBooks))),t.themes.length>0){const i=t.themes.map(o=>o.value);n.push({name:"Themes",value:i.join(Ua)})}return n}getSpecialPropAuthors(t){const n=[],r=1===t.length?"Author":"Authors",i=t.map(o=>""===o.type?o.value:`${o.value} (${o.type})`).join(Ua);return n.push({name:r,value:i}),n}getSpecialPropComments(t){const n=[],r="Comment";if(1===t.length)n.push({name:r,value:t[0]});else for(let i=0;is.content.filter(a=>"text"===a.type).map(a=>a.value).join("")).join("\n").replace(/\n[\t ]+/g,"\n").trim();""!==o&&n.push({title:i,lyrics:o})}return n}}class M4{constructor(){this.name="Plain Text",this.fileExt="txt"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){let n=t.name,r=[],i=[];const o=$a.normalizeLineEndings(t.dataAsString).split("\n\n\n");if(2!==o.length||null==o[0]||null==o[1])throw new bD(`This ${this.name} file is not formatted correctly. It needs to have 2 blank lines between the info at the top and the lyrics so they can be differentiated.`);return r=this.getSongInfo(o[0]),"title"===r[0]?.name.toLowerCase()&&(n=r[0].value.toString(),r=r.slice(1)),i=this.getSongLyrics(o[1]),{fileName:t.name,title:n,info:r,slides:i}}getSongInfo(t){const n=[];for(const r of t.split("\n")){const i=r.split(":");null!=i[0]&&null!=i[1]&&n.push({name:i[0].trim(),value:i[1].trim()})}return n}getSongLyrics(t){const n=[];for(const r of t.split("\n\n")){const i=r.split("\n");let o="",s=r;const a=i[0];a.endsWith(":")&&(o=a.replace(":","").trim(),s=s.replace(a+"\n","").trim()),n.push({title:o,lyrics:s})}return n}}const cs="function"==typeof Buffer,SD="function"==typeof TextDecoder?new TextDecoder:void 0,ID="function"==typeof TextEncoder?new TextEncoder:void 0,Ha=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Ec=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Ha),x4=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Zt=String.fromCharCode.bind(String),TD="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),AD=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),lg="function"==typeof btoa?e=>btoa(e):cs?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,r,i,o="";const s=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=Ha[t>>18&63]+Ha[t>>12&63]+Ha[t>>6&63]+Ha[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},ug=cs?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,i=e.length;r{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Zt(192|t>>>6)+Zt(128|63&t):Zt(224|t>>>12&15)+Zt(128|t>>>6&63)+Zt(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Zt(240|t>>>18&7)+Zt(128|t>>>12&63)+Zt(128|t>>>6&63)+Zt(128|63&t)},R4=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,RD=cs?e=>Buffer.from(e,"utf8").toString("base64"):ID?e=>ug(ID.encode(e)):e=>lg((e=>e.replace(R4,N4))(e)),O4=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k4=e=>{switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Zt(55296+(n>>>10))+Zt(56320+(1023&n));case 3:return Zt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Zt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},cg="function"==typeof atob?e=>atob(AD(e)):cs?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!x4.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,i,n="";for(let o=0;o>16&255):64===i?Zt(t>>16&255,t>>8&255):Zt(t>>16&255,t>>8&255,255&t);return n},FD=cs?e=>TD(Buffer.from(e,"base64")):e=>TD(cg(e).split("").map(t=>t.charCodeAt(0))),P4=cs?e=>Buffer.from(e,"base64").toString("utf8"):SD?e=>SD.decode(FD(e)):e=>(e=>e.replace(O4,k4))(cg(e)),nr_encode=(e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"))(RD(e)):RD(e),nr_decode=e=>P4((e=>AD(e.replace(/[-_]/g,t=>"-"==t?"+":"/")))(e)),fg=/^#?[a-f\d]{6}$/i,$D="[10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)?",hg=new RegExp("^"+$D+"$"),HD=e=>e.replace(/\n\\f[0-9]\s/g,"").replace(/\{\*?\\[^{}]+;}|[{}]|\\[A-Za-z]+\n?(?:-?\d+)?[ ]?/g,"").replace(/\\\n/g,"\n").trim(),zD=(e,t="Arial",n=60,r={r:255,g:255,b:255})=>`{\\rtf1\\ansi\\ansicpg1252\\cocoartf1038\\cocoasubrtf320',{\\fonttbl\\f0\\fswiss\\fcharset0 ${t};}{\\colortbl;\\red${r.r}\\green${r.g}\\blue${r.b};}\\pard\\tx560\\tx1120\\tx1680\\tx2240\\tx2800\\tx3360\\tx3920\\tx4480\\tx5040\\tx5600\\tx6160\\tx6720\\qc\\pardirnatural\\f0\\fs${2*n} \\cf1 ${e.replace(/\r|\n/g,"\\\r")}}`,pg=e=>{const t={r:0,g:0,b:0};let n="",r=0;const i=Array.from(e.matchAll(/\\fcharset0 (.+?);/gi));i.length>0&&(n=i[i.length-1][1]);const o=/\\red(\d+)\\green(\d+)\\blue(\d+);}/i.exec(e);o&&(t.r=parseInt(o[1],10),t.g=parseInt(o[2],10),t.b=parseInt(o[3],10));const s=Array.from(e.matchAll(/\\fs(\d+) ?\\/gi));return s.length>0&&(r=parseInt(s[s.length-1][1],10)/2),{color:t,font:n,size:r}},GD=()=>(new Date).toISOString().replace(/\.\d{3}Z$/,""),za=()=>{function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1).toUpperCase()}return`${e()+e()}-${e()}-${e()}-${e()}-${e()+e()+e()}`},WD=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(t)return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)};throw new Error(`Input color '${e}' could not be parsed! Are you sure this is a hex color?`)},fs=e=>{if("string"!=typeof e)return`${e.r/255} ${e.g/255} ${e.b/255} 1`;if(hg.test(e))return e;if(fg.test(e))return fs(WD(e));throw new Error(`Input color '${e}' could not be parsed to an RGBA color string!`)},Ut=e=>{if("string"!=typeof e)return e;if(hg.test(e)){const t=e.split(" ");return{r:255*parseFloat(t[0]),g:255*parseFloat(t[1]),b:255*parseFloat(t[2])}}if(fg.test(e))return WD(e);throw new Error(`Input color '${e}' could not be parsed to an RGB color object!`)};class V4{parse(t){const n=["RVPresentationDocument.timeline.timeCues","RVPresentationDocument.timeline.mediaTracks","RVPresentationDocument.slides.RVDisplaySlide","RVPresentationDocument.slides.RVDisplaySlide.displayElements.RVTextElement"],i=new hi.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@",parseAttributeValue:!0,isArray:(a,l)=>n.includes(l)}).parse(t);if(400!==i.RVPresentationDocument["@versionNumber"])throw new Error(`Expected a ProPresenter 4 file with versionNumber="400" but got versionNumber="${i.RVPresentationDocument["@versionNumber"]}"`);return{properties:this.getProperties(i.RVPresentationDocument),slides:this.getSlides(i.RVPresentationDocument.slides.RVDisplaySlide)}}getProperties(t){return{CCLIArtistCredits:t["@CCLIArtistCredits"]??"",CCLICopyrightInfo:t["@CCLICopyrightInfo"]??"",CCLIDisplay:!!t["@CCLIDisplay"],CCLILicenseNumber:t["@CCLILicenseNumber"]??"",CCLIPublisher:t["@CCLIPublisher"]??"",CCLISongTitle:t["@CCLISongTitle"]??"",album:t["@album"],artist:t["@artist"],author:t["@author"],backgroundColor:Ut(t["@backgroundColor"]),category:t["@category"],creatorCode:t["@creatorCode"],docType:null==t["@docType"]?null:t["@docType"],drawingBackgroundColor:null!=t["@drawingBackgroundColor"]&&!!t["@drawingBackgroundColor"],height:t["@height"],lastDateUsed:new Date(t["@lastDateUsed"]),notes:t["@notes"],resourcesDirectory:t["@resourcesDirectory"],usedCount:t["@usedCount"],versionNumber:t["@versionNumber"],width:t["@width"]}}getSlides(t){const n=[];for(const r of t){let i=[];r.displayElements.RVTextElement&&(i=r.displayElements.RVTextElement.map(o=>{const s=nr_decode(o["@RTFData"]),a=pg(s);return{position:{x:o["_-RVRect3D-_position"]["@x"],y:o["_-RVRect3D-_position"]["@y"],z:o["_-RVRect3D-_position"]["@z"],height:o["_-RVRect3D-_position"]["@height"],width:o["_-RVRect3D-_position"]["@width"]},rawRtfContent:s,textContent:HD(s),color:a.color,font:a.font,size:a.size}})),n.push({label:r["@label"],id:r["@UUID"],backgroundColor:Ut(r["@backgroundColor"]),highlightColor:Ut(r["@highlightColor"]),textElements:i})}return n}}var gg=function(e){return e[e.None=-1]="None",e[e.Dissolve=0]="Dissolve",e[e.Cube=1]="Cube",e[e.Flip=2]="Flip",e[e.Door=3]="Door",e[e.Swap=4]="Swap",e[e.Ripple=6]="Ripple",e[e.FadeToBlack=7]="FadeToBlack",e[e.Iris=8]="Iris",e[e.Cut=10]="Cut",e[e.FlyInDiagonalToBottomRight=91]="FlyInDiagonalToBottomRight",e[e.FlyInDown=92]="FlyInDown",e[e.FlyInDiagonalToBottomLeft=93]="FlyInDiagonalToBottomLeft",e[e.FlyInRight=94]="FlyInRight",e[e.FlyInCenter=95]="FlyInCenter",e[e.FlyInLeft=96]="FlyInLeft",e[e.FlyInDiagonalToTopRight=97]="FlyInDiagonalToTopRight",e[e.FlyInUp=98]="FlyInUp",e[e.FlyInDiagonalToTopLeft=99]="FlyInDiagonalToTopLeft",e[e.ZoomInDiagonalToBottomRight=101]="ZoomInDiagonalToBottomRight",e[e.ZoomInDown=102]="ZoomInDown",e[e.ZoomInDiagonalToBottomLeft=103]="ZoomInDiagonalToBottomLeft",e[e.ZoomInRight=104]="ZoomInRight",e[e.ZoomInCenter=105]="ZoomInCenter",e[e.ZoomInLeft=106]="ZoomInLeft",e[e.ZoomInDiagonalToTopRight=107]="ZoomInDiagonalToTopRight",e[e.ZoomInUp=108]="ZoomInUp",e[e.ZoomInDiagonalToTopLeft=109]="ZoomInDiagonalToTopLeft",e[e.WipeDiagonalToBottomRight=110]="WipeDiagonalToBottomRight",e[e.WipeDown=111]="WipeDown",e[e.WipeDiagonalToBottomLeft=112]="WipeDiagonalToBottomLeft",e[e.WipeRight=113]="WipeRight",e[e.WipeLeft=114]="WipeLeft",e[e.WipeDiagonalToTopRight=115]="WipeDiagonalToTopRight",e[e.WipeUp=116]="WipeUp",e[e.WipeDiagonalToTopLeft=117]="WipeDiagonalToTopLeft",e[e.CoverDiagonalToBottomRight=120]="CoverDiagonalToBottomRight",e[e.CoverDown=121]="CoverDown",e[e.CoverDiagonalToBottomLeft=122]="CoverDiagonalToBottomLeft",e[e.CoverRight=123]="CoverRight",e[e.CoverLeft=124]="CoverLeft",e[e.CoverDiagonalToTopRight=125]="CoverDiagonalToTopRight",e[e.CoverUp=126]="CoverUp",e[e.CoverDiagonalToTopLeft=127]="CoverDiagonalToTopLeft",e[e.PushRight=130]="PushRight",e[e.PushLeft=131]="PushLeft",e[e.PushDown=132]="PushDown",e[e.PushUp=133]="PushUp",e[e.RevealDiagonalToBottomRight=140]="RevealDiagonalToBottomRight",e[e.RevealDown=141]="RevealDown",e[e.RevealDiagonalToBottomLeft=142]="RevealDiagonalToBottomLeft",e[e.RevealRight=143]="RevealRight",e[e.RevealLeft=144]="RevealLeft",e[e.RevealDiagonalToTopRight=145]="RevealDiagonalToTopRight",e[e.RevealUp=146]="RevealUp",e[e.RevealDiagonalToTopLeft=147]="RevealDiagonalToTopLeft",e}(gg||{});class B4{xmlBuilder;options;defaultTransitionObj={"@transitionType":gg.None,"@transitionDuration":1,"@motionEnabled":0,"@motionDuration":20,"@motionSpeed":100};constructor(t){this.xmlBuilder=new hi.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressUnpairedNode:!1,unpairedTags:["arrangements","timeCues","mediaTracks","bibleReference","cues","_-RVProTransitionObject-_transitionObject","_-RVRect3D-_position","NSColor","NSNumber","NSMutableString"]}),this.options=t,this.options.properties={album:"",artist:"",author:"",category:"Song",ccliDisplay:!1,notes:"",publisher:"",height:720,width:1280,...this.options.properties},this.options.slideTextFormatting={textColor:{r:255,g:255,b:255},textPadding:20,...this.options.slideTextFormatting}}build(){const t={RVPresentationDocument:{"@CCLIArtistCredits":this.options.properties.artist,"@CCLICopyrightInfo":this.options.properties.copyrightYear??"","@CCLIDisplay":this.options.properties.ccliDisplay?1:0,"@CCLILicenseNumber":this.options.properties.ccliNumber??"","@CCLIPublisher":this.options.properties.publisher,"@CCLISongTitle":this.options.properties.title,"@album":this.options.properties.album,"@artist":this.options.properties.artist,"@author":this.options.properties.author,"@category":this.options.properties.category,"@notes":this.options.properties.notes,"@lastDateUsed":GD(),"@height":this.options.properties.height,"@width":this.options.properties.width,"@backgroundColor":"0 0 0 1","@creatorCode":0,"@chordChartPath":"","@docType":0,"@drawingBackgroundColor":0,"@resourcesDirectory":"","@usedCount":0,"@versionNumber":500,timeline:{"@timeOffSet":0,"@selectedMediaTrackIndex":0,"@unitOfMeasure":60,"@duration":0,"@loop":0,timeCues:{"@containerClass":"NSMutableArray"},mediaTracks:{"@containerClass":"NSMutableArray"}},bibleReference:{"@containerClass":"NSMutableDictionary"},"_-RVProTransitionObject-_transitionObject":this.getTransitions(),groups:{"@containerClass":"NSMutableArray",RVSlideGrouping:this.buildSlideGroups()},arrangements:{"@containerClass":"NSMutableArray",RVSongArrangement:[]}}};return this.xmlBuilder.build(t).trim()}getTransitions(){if(this.options.transitions){const t={...this.defaultTransitionObj};return t["@transitionDuration"]=this.options.transitions.duration,t["@transitionType"]=this.options.transitions.type,t}return this.defaultTransitionObj}buildSlideGroups(){const t=[];for(let n=0;nn.includes(u)}).parse(t);if(500!==i.RVPresentationDocument["@versionNumber"])throw new Error(`Expected a ProPresenter 5 file with versionNumber="500" but got versionNumber="${i.RVPresentationDocument["@versionNumber"]}"`);const o=this.getProperties(i.RVPresentationDocument),s=this.getSlideGroups(i.RVPresentationDocument.groups.RVSlideGrouping);return{properties:o,slideGroups:s,arrangements:this.getArrangements(i.RVPresentationDocument,s)}}getProperties(t){return{CCLIArtistCredits:t["@CCLIArtistCredits"]??"",CCLICopyrightInfo:t["@CCLICopyrightInfo"]??"",CCLIDisplay:!!t["@CCLIDisplay"],CCLILicenseNumber:t["@CCLILicenseNumber"]??"",CCLIPublisher:t["@CCLIPublisher"]??"",CCLISongTitle:t["@CCLISongTitle"]??"",album:t["@album"],artist:t["@artist"],author:t["@author"],backgroundColor:Ut(t["@backgroundColor"]),category:t["@category"],creatorCode:t["@creatorCode"],chordChartPath:t["@chordChartPath"],docType:t["@docType"],drawingBackgroundColor:!!t["@drawingBackgroundColor"],height:t["@height"],lastDateUsed:new Date(t["@lastDateUsed"]),notes:t["@notes"],resourcesDirectory:t["@resourcesDirectory"],usedCount:t["@usedCount"],versionNumber:t["@versionNumber"],width:t["@width"]}}getSlideGroups(t){return t.map(n=>({groupColor:""===n["@color"]?null:Ut(n["@color"]),groupLabel:n["@name"]??"",groupId:n["@uuid"],slides:this.getSlidesForGroup(n.slides.RVDisplaySlide)}))}getSlidesForGroup(t){return t.map(n=>{let r=[];n.displayElements.RVTextElement&&(r=n.displayElements.RVTextElement.map(s=>{const a=nr_decode(s["@RTFData"]),l=pg(a);return{position:{x:s["_-RVRect3D-_position"]["@x"],y:s["_-RVRect3D-_position"]["@y"],z:s["_-RVRect3D-_position"]["@z"],height:s["_-RVRect3D-_position"]["@height"],width:s["_-RVRect3D-_position"]["@width"]},rawRtfContent:a,textContent:HD(a),color:l.color,font:l.font,size:l.size}}));let i=[];n.cues.RVMediaCue&&(i=n.cues.RVMediaCue.map(s=>({displayName:s.element["@displayName"],source:s.element["@source"]})));const o=""===n["@highlightColor"]?null:Ut(n["@highlightColor"]);return{backgroundColor:Ut(n["@backgroundColor"]),chordChartPath:n["@chordChartPath"],enabled:!!n["@enabled"],highlightColor:o,id:n["@UUID"],label:n["@label"],notes:n["@notes"],mediaCues:i,textElements:r}})}getArrangements(t,n){const r=[];if(t.arrangements?.RVSongArrangement)for(const i of t.arrangements.RVSongArrangement)r.push({color:Ut(i["@color"]),label:i["@name"],groupOrder:i.groupIDs.NSMutableString.map(o=>{const s=n.find(a=>a.groupId===o["@serialization-native-value"]);return{groupId:o["@serialization-native-value"],groupLabel:s.groupLabel}})});return r}}class U4{xmlBuilder;options;winFontData='0025500010000Normal';defaultTransitionObj={"@rvXMLIvarName":"transitionObject","@transitionType":gg.None,"@transitionDirection":0,"@transitionDuration":1,"@motionEnabled":!1,"@motionDuration":0,"@motionSpeed":0,"@groupIndex":0,"@orderIndex":0,"@slideBuildAction":0,"@slideBuildDelay":0};constructor(t){this.xmlBuilder=new hi.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressUnpairedNode:!1,suppressBooleanAttributes:!1,unpairedTags:["array","RVTransition"]}),this.options=t,this.options.properties={CCLIArtistCredits:"",CCLIAuthor:"",CCLIDisplay:!1,CCLIPublisher:"",category:"Song",notes:"",height:720,width:1280,...this.options.properties},this.options.slideTextFormatting={textColor:{r:255,g:255,b:255},textPadding:20,fontName:"Arial",textSize:60,textShadow:{angle:135,color:{r:0,g:0,b:0},enabled:!1,length:7,radius:10},...this.options.slideTextFormatting}}build(){const t={"?xml":{"@version":"1.0","@encoding":"utf-8"},RVPresentationDocument:{"@CCLIArtistCredits":this.options.properties.CCLIArtistCredits,"@CCLIAuthor":this.options.properties.CCLIAuthor,"@CCLICopyrightYear":this.options.properties.CCLICopyrightYear??"","@CCLIDisplay":this.options.properties.CCLIDisplay,"@CCLIPublisher":this.options.properties.CCLIPublisher,"@CCLISongNumber":this.options.properties.CCLISongNumber??"","@CCLISongTitle":this.options.properties.CCLISongTitle,"@category":this.options.properties.category,"@notes":this.options.properties.notes,"@lastDateUsed":GD(),"@height":this.options.properties.height,"@width":this.options.properties.width,"@backgroundColor":"0 0 0 1","@buildNumber":6016,"@chordChartPath":"","@docType":0,"@drawingBackgroundColor":!1,"@resourcesDirectory":"","@selectedArrangementID":"","@os":1,"@usedCount":0,"@versionNumber":600,RVTransition:this.getTransitions(),RVTimeline:{"@rvXMLIvarName":"timeline","@timeOffset":0,"@duration":0,"@selectedMediaTrackIndex":0,"@loop":!1,array:[{"@rvXMLIvarName":"timeCues"},{"@rvXMLIvarName":"mediaTracks"}]},array:[{"@rvXMLIvarName":"groups",RVSlideGrouping:this.buildSlideGroups()},{"@rvXMLIvarName":"arrangements",RVSongArrangement:[]}]}};return this.xmlBuilder.build(t).trim()}getTransitions(){if(this.options.transitions){const t={...this.defaultTransitionObj};return t["@transitionDuration"]=this.options.transitions.duration,t["@transitionType"]=this.options.transitions.type,t}return this.defaultTransitionObj}buildSlideGroups(){const t=[];for(const n of this.options.slideGroups)t.push({"@name":n.label,"@uuid":za(),"@color":fs(n.groupColor??"0 0 0 0"),array:{"@rvXMLIvarName":"slides",RVDisplaySlide:this.buildSlidesForGroup(n)}});return t}buildSlidesForGroup(t){const n=[];for(const r of t.slides){let s,i="0 0 0 0",o="";"string"==typeof r?s=r:(i=fs(r.slideColor??i),o=r.label??"",s=r.text),n.push({"@backgroundColor":"0 0 0 0","@highlightColor":i,"@drawingBackgroundColor":!1,"@enabled":!0,"@hotKey":"","@label":o,"@notes":"","@UUID":za(),"@chordChartPath":"",array:[{"@rvXMLIvarName":"cues"},{"@rvXMLIvarName":"displayElements",RVTextElement:[this.buildTextElement(s)]}]})}return n}buildTextElement(t){const n=zD(t,this.options.slideTextFormatting.fontName,this.options.slideTextFormatting.textSize,Ut(this.options.slideTextFormatting.textColor));return{"@displayName":"Default","@UUID":za(),"@typeID":0,"@displayDelay":0,"@locked":!1,"@persistent":0,"@fromTemplate":!1,"@opacity":1,"@source":"","@bezelRadius":0,"@rotation":0,"@drawingFill":!1,"@drawingShadow":this.options.slideTextFormatting.textShadow.enabled,"@drawingStroke":!1,"@fillColor":"1 1 1 0","@adjustsHeightToFit":!1,"@verticalAlignment":0,"@revealType":0,RVRect3D:{"@rvXMLIvarName":"position","#text":this.getTextElementPosition()},shadow:{"@rvXMLIvarName":"shadow","#text":this.getElementShadow()},dictionary:{"@rvXMLIvarName":"stroke",NSColor:{"@rvXMLDictionaryKey":"RVShapeElementStrokeColorKey","#text":"0 0 0 1"},NSNumber:{"@rvXMLDictionaryKey":"RVShapeElementStrokeWidthKey","@hint":"double","#text":0}},NSString:[{"@rvXMLIvarName":"PlainText","#text":nr_encode(t)},{"@rvXMLIvarName":"RTFData","#text":nr_encode(n)},{"@rvXMLIvarName":"WinFlowData","#text":nr_encode(this.getWinFlowDocument(t))},{"@rvXMLIvarName":"WinFontData","#text":nr_encode(this.winFontData)}]}}getTextElementPosition(){return`{${this.options.slideTextFormatting.textPadding} ${this.options.slideTextFormatting.textPadding} 0 ${this.options.properties.width-2*this.options.slideTextFormatting.textPadding} ${this.options.properties.height-2*this.options.slideTextFormatting.textPadding}}`}getElementShadow(){const t=this.options.slideTextFormatting.textShadow.radius,n=fs(this.options.slideTextFormatting.textShadow.color),r=this.options.slideTextFormatting.textShadow.angle,i=this.options.slideTextFormatting.textShadow.length;return`${t}|${n}|{${Math.sin(r*(Math.PI/180))*i}, ${Math.cos(r*(Math.PI/180))*i}}`}getWinFlowDocument(t){const n=this.options.slideTextFormatting.fontName,r=this.options.slideTextFormatting.textSize,i=(e=>{const t=n=>("00"+n.toString(16)).slice(-2).toUpperCase();if("string"!=typeof e)return t(e.r)+t(e.g)+t(e.b);if(hg.test(e)){const n=e.split(" ");return t(Math.round(255*parseFloat(n[0])))+t(Math.round(255*parseFloat(n[1])))+t(Math.round(255*parseFloat(n[2])))}if(fg.test(e))return e.replace("#","");throw new Error(`Input color '${e}' could not be parsed to a HEX color!`)})(this.options.slideTextFormatting.textColor);return`${t.split(/[\n\r]/g).filter(s=>""!==s).map(s=>`${s}`).join("")}`}}class $4{parse(t){const n=["RVPresentationDocument.array","RVPresentationDocument.array.RVSlideGrouping","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVTextElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVImageElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVBezierPathElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVShapeElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVHTMLShapeElement","RVPresentationDocument.array.RVSongArrangement","RVPresentationDocument.array.RVSongArrangement.array.NSString"],i=new hi.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@",parseAttributeValue:!0,isArray:(c,d)=>n.includes(d)}).parse(t);if(600!==i.RVPresentationDocument["@versionNumber"])throw new Error(`Expected a ProPresenter 6 file with versionNumber="600" but got versionNumber="${i.RVPresentationDocument["@versionNumber"]}"`);const o=this.getProperties(i.RVPresentationDocument);let s=[];const a=i.RVPresentationDocument.array.find(c=>"groups"===c["@rvXMLIvarName"]);a&&(s=this.getSlideGroups(a.RVSlideGrouping));let l=[];const u=i.RVPresentationDocument.array.find(c=>"arrangements"===c["@rvXMLIvarName"]);return u?.RVSongArrangement&&(l=this.getArrangements(u.RVSongArrangement,s)),{properties:o,slideGroups:s,arrangements:l}}getProperties(t){return{CCLIArtistCredits:t["@CCLIArtistCredits"]??"",CCLIAuthor:t["@CCLIAuthor"]??"",CCLICopyrightYear:t["@CCLICopyrightYear"]??"",CCLIDisplay:t["@CCLIDisplay"],CCLIPublisher:t["@CCLIPublisher"]??"",CCLISongNumber:t["@CCLISongNumber"]??"",CCLISongTitle:t["@CCLISongTitle"]??"",backgroundColor:Ut(t["@backgroundColor"]),buildNumber:t["@buildNumber"],category:t["@category"],chordChartPath:t["@chordChartPath"],docType:t["@docType"],drawingBackgroundColor:t["@drawingBackgroundColor"],height:t["@height"],lastDateUsed:new Date(t["@lastDateUsed"]),notes:t["@notes"],os:t["@os"],resourcesDirectory:t["@resourcesDirectory"],selectedArrangementID:t["@selectedArrangementID"],usedCount:t["@usedCount"],versionNumber:t["@versionNumber"],width:t["@width"]}}getSlideGroups(t){const n=[];for(const r of t)n.push({groupColor:Ut(r["@color"]),groupId:r["@uuid"],groupLabel:r["@name"],slides:this.getSlidesForGroup(r.array.RVDisplaySlide)});return n}getSlidesForGroup(t){const n=[];for(const r of t){let i=[];const o=r.array.find(a=>"displayElements"===a["@rvXMLIvarName"]);o.RVTextElement&&(i=this.getTextElementsForSlide(o.RVTextElement));const s=""===r["@highlightColor"]?null:Ut(r["@highlightColor"]);n.push({backgroundColor:Ut(r["@backgroundColor"]),chordChartPath:r["@chordChartPath"],drawingBackgroundColor:r["@drawingBackgroundColor"],enabled:r["@enabled"],highlightColor:s,hotKey:r["@hotKey"],id:r["@UUID"],label:r["@label"],notes:r["@notes"],textElements:i})}return n}getTextElementsForSlide(t){const n=[];for(const r of t){let i="",o="",s="",a="";r.NSString.forEach(u=>{"PlainText"===u["@rvXMLIvarName"]?i=nr_decode(u["#text"]):"RTFData"===u["@rvXMLIvarName"]?o=nr_decode(u["#text"]):"WinFlowData"===u["@rvXMLIvarName"]?s=nr_decode(u["#text"]):"WinFontData"===u["@rvXMLIvarName"]&&(a=nr_decode(u["#text"]))});const l=pg(o);n.push({adjustsHeightToFit:r["@adjustsHeightToFit"],bezelRadius:r["@bezelRadius"],displayDelay:r["@displayDelay"],displayName:r["@displayName"],drawingFill:r["@drawingFill"],fillColor:Ut(r["@fillColor"]),fromTemplate:r["@fromTemplate"],id:r["@UUID"],locked:r["@locked"],opacity:r["@opacity"],persistent:r["@persistent"],revealType:r["@revealType"],rotation:r["@rotation"],source:r["@source"],typeID:r["@typeID"],verticalAlignment:r["@verticalAlignment"],fontName:l.font,textColor:l.color,textSize:l.size,plainText:i,rtfData:o,winFlowData:s,winFontData:a,outline:{color:Ut(r.dictionary.NSColor["#text"]),size:r.dictionary.NSNumber["#text"],enabled:r["@drawingStroke"]},position:this.getPosition(r.RVRect3D["#text"]),textShadow:this.getShadow(r.shadow["#text"],r["@drawingShadow"])})}return n}getPosition(t){const n=t.replace(/[{}]/g,"").split(" ").map(r=>parseInt(r,10));return{x:n[0],y:n[1],z:n[2],width:n[3],height:n[4]}}getShadow(t,n){const i=new RegExp("^(\\d+)\\|("+$D+")\\|\\{(-?\\d(?:\\.\\d+)?), (-?\\d(?:\\.\\d+)?)\\}$").exec(t),o=parseInt(i[1],10),s=Ut(i[2]),a=parseFloat(i[3]),l=parseFloat(i[4]);return{angle:180*Math.atan2(a,l)/Math.PI,color:s,enabled:n,length:Math.round(Math.hypot(a,l)),radius:o}}getArrangements(t,n){const r=[];for(const i of t){const o=i.array.NSString.map(s=>({groupId:s,groupLabel:n.find(a=>a.groupId===s).groupLabel}));r.push({label:i["@name"],color:Ut(i["@color"]),groupOrder:o})}return r}}class Z4{constructor(){this.name="ProPresenter 4",this.fileExt="pro4",this.url="https://renewedvision.com/propresenter/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=t.dataAsString,(new V4).parse(e));var e;let r=n.properties.CCLISongTitle;return""===r&&(r=t.name),{fileName:t.name,title:r,info:this.getInfo(n.properties),slides:this.getSlides(n.slides)}}getInfo(t){const n=[];return this.addStringPropValue(n,t,"Album","album"),this.addStringPropValue(n,t,"Artist Credits","CCLIArtistCredits"),this.addStringPropValue(n,t,"Artist","artist"),this.addStringPropValue(n,t,"Author","author"),this.addStringPropValue(n,t,"CCLI Number","CCLILicenseNumber"),this.addStringPropValue(n,t,"Category","category"),this.addStringPropValue(n,t,"Copyright","CCLICopyrightInfo"),this.addStringPropValue(n,t,"Creator Code","creatorCode"),this.addStringPropValue(n,t,"Notes","notes"),this.addStringPropValue(n,t,"Publisher","CCLIPublisher"),this.addStringPropValue(n,t,"Resources Directory","resourcesDirectory"),n}addStringPropValue(t,n,r,i){const o=n[i];("string"==typeof o||"number"==typeof o)&&""!==o&&t.push({name:r,value:o})}getSlides(t){const n=[];for(const r of t){const i=r.label,o=r.textElements.map(s=>s.textContent).join("\n");(""!==i||""!==o)&&n.push({title:i,lyrics:o})}return n}}class Y4{constructor(){this.name="ProPresenter 5",this.fileExt="pro5",this.url="https://renewedvision.com/propresenter/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=t.dataAsString,(new j4).parse(e));var e;let r=n.properties.CCLISongTitle;return""===r&&(r=t.name),{fileName:t.name,title:r,info:this.getInfo(n.properties),slides:this.getSlides(n.slideGroups)}}getInfo(t){const n=[];return this.addStringPropValue(n,t,"Album","album"),this.addStringPropValue(n,t,"Artist Credits","CCLIArtistCredits"),this.addStringPropValue(n,t,"Artist","artist"),this.addStringPropValue(n,t,"Author","author"),this.addStringPropValue(n,t,"CCLI Number","CCLILicenseNumber"),this.addStringPropValue(n,t,"Category","category"),this.addStringPropValue(n,t,"Copyright","CCLICopyrightInfo"),this.addStringPropValue(n,t,"Creator Code","creatorCode"),this.addStringPropValue(n,t,"Notes","notes"),this.addStringPropValue(n,t,"Publisher","CCLIPublisher"),this.addStringPropValue(n,t,"Resources Directory","resourcesDirectory"),n}addStringPropValue(t,n,r,i){const o=n[i];("string"==typeof o||"number"==typeof o)&&""!==o&&t.push({name:r,value:o})}getSlides(t){const n=[];for(const r of t)r.slides.forEach((i,o)=>{let s=r.groupLabel;r.slides.length>1&&(s+=` (${o+1})`);const a=i.textElements.map(l=>l.textContent).join("\n");(s||a)&&n.push({title:s,lyrics:a})});return n}}class Q4{constructor(){this.name="ProPresenter 6",this.fileExt="pro6",this.url="https://renewedvision.com/propresenter/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=t.dataAsString,(new $4).parse(e));var e;let r=n.properties.CCLISongTitle;return""===r&&(r=t.name),{fileName:t.name,title:r,info:this.getInfo(n.properties),slides:this.getSlides(n.slideGroups)}}getInfo(t){const n=[];return this.addStringPropValue(n,t,"Artist","CCLIArtistCredits"),this.addStringPropValue(n,t,"Author","CCLIAuthor"),this.addStringPropValue(n,t,"CCLI Number","CCLISongNumber"),this.addStringPropValue(n,t,"Category","category"),this.addStringPropValue(n,t,"Copyright","CCLICopyrightYear"),this.addStringPropValue(n,t,"Notes","notes"),this.addStringPropValue(n,t,"Publisher","CCLIPublisher"),this.addStringPropValue(n,t,"Resources Directory","resourcesDirectory"),n}addStringPropValue(t,n,r,i){const o=n[i];("string"==typeof o||"number"==typeof o)&&""!==o&&t.push({name:r,value:o})}getSlides(t){const n=[];for(const r of t)r.slides.forEach((i,o)=>{let s=r.groupLabel;r.slides.length>1&&(s+=` (${o+1})`);const a=i.textElements.map(l=>l.plainText).join("\n");(s||a)&&n.push({title:s,lyrics:a})});return n}}var X4=X(392);class K4{constructor(){this.name="SongPro",this.fileExt="sng",this.url="https://songpro.org/"}doesInputFileMatchThisType(t){const n=t.ext.toLowerCase();return n===this.fileExt||"md"===n}extractSongData(t){const n=X4.M.parse($a.normalizeLineEndings(t.dataAsString)),r=n.attrs.title??t.name,i=this.getSongInfo(n),o=this.getSongSlides(n);return{fileName:t.name,title:r,info:i,slides:o}}getSongInfo(t){const n=[];for(const r of Object.keys(t.attrs)){const i=t.attrs[r];"title"!==r&&null!=i&&n.push({name:r,value:i})}for(const r of Object.keys(t.custom)){const i=t.custom[r];"title"!==r&&null!=i&&n.push({name:r,value:i})}return n}getSongSlides(t){const n=[];for(const r of t.sections){const i=this.getCombinedLyricsFromLines(r.lines).trim();""!==i&&n.push({title:r.name,lyrics:i})}return n}getCombinedLyricsFromLines(t){return t.map(r=>r.parts.map(i=>i.lyric).join(" ")).join("\n").replace(/- /g,"-")}}class J4{id="";title="";author="";copyright="";ccli="";key="";comments="";verseOrder="";songBook="";songNumber="";topics=[];lyricSections=[]}class e6{byteLength=4;utf8Decoder=new TextDecoder("utf-8");parse(t){let n;n=typeof Buffer<"u"&&Buffer.isBuffer(t)?t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength):t;const r=this.getSections(n);return this.getFormattedSong(r)}getSections(t){let n=0;const r=[];for(;n0&&o.push({name:"Topics",value:r.topics.join(Ua)}),{fileName:t.name,title:i,info:o,slides:r.lyricSections}}}class n6{constructor(){this.name="ChordPro",this.fileExt="cho",this.url="https://chordpro.org/"}convertToType(t){const n="\n",r=n+n;let i=`{title: ${t.title}}`;for(const o of t.info)o.value.toString().trim().length>0&&(i+=n,i+=`{${o.name}: ${o.value}}`);i+=r;for(const o of t.slides)o.lyrics.trim().length>0&&(i+=o.title+":",i+=n,i+=o.lyrics.trim(),i+=r);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:i.trim()}}}class r6{constructor(){this.name="Display Slides"}convertToType(t){return{songData:t,fileName:"",outputContent:""}}}class i6{constructor(){this.name="JSON",this.fileExt="json"}convertToType(t){const n=JSON.stringify({title:t.title,info:t.info,slides:t.slides},null,2);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:n}}}class o6{constructor(){this.name="OpenLyrics",this.fileExt="xml",this.url="http://openlyrics.org/"}convertToType(t){const r=(e=>{const t=new D4,n={"?xml":{"@version":"1.0","@encoding":"UTF-8"},"?xml-stylesheet":{"@href":"../stylesheets/openlyrics.css","@type":"text/css"},song:{"@xmlns":"http://openlyrics.info/namespace/2009/song","@xml:lang":"","@version":"0.9","@createdIn":"","@modifiedIn":"","@modifiedDate":"",properties:{titles:{title:[]}},format:{},lyrics:{verse:[]}}};return t.overwriteMeta(n,e.meta),t.overwriteProperties(n,e.properties),t.overwriteFormats(n,e.format),t.overwriteVerses(n,e.verses),t.overwriteInstruments(n,e.instruments),new hi.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressBooleanAttributes:!1,suppressUnpairedNode:!1,unpairedTags:["songbook"]}).build(n).trim()})({meta:{createdIn:`LyricConverter ${og}`,modifiedIn:`LyricConverter ${og}`},properties:{authors:this.findSpecialPropertyAuthors(t.info),ccliNo:this.findPropertyValue(t.info,/(ccliNo)|(CCLI ?Number)/i),comments:this.findSpecialPropertyComments(t.info),copyright:this.findPropertyValue(t.info,/(year)|(copyright)/i),key:this.findPropertyValue(t.info,/^key$/i),keywords:this.findPropertyValue(t.info,/^keywords$/i),publisher:this.findPropertyValue(t.info,/^publisher$/i),released:this.findPropertyValue(t.info,/(year)|(released( ?date)?)/i),songBooks:this.findSpecialPropertySongBooks(t.info),tempo:this.findSpecialPropertyTempo(t.info),themes:this.findSpecialPropertyThemes(t.info),timeSignature:this.findPropertyValue(t.info,/time ?signature/i),titles:t.title,transposition:this.findPropertyValue(t.info,/^transposition$/i),variant:this.findPropertyValue(t.info,/^variant$/i),verseOrder:this.findPropertyValue(t.info,/order/i)},verses:this.findVerses(t.slides)});return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:r}}findPropertyValue(t,n){const r=t.find(i=>n.test(i.name));if(void 0!==r)return r.value.toString()}findSpecialPropertyAuthors(t){const n=t.filter(r=>/(artist)|(author)/i.test(r.name));if(n.length>0)return n.map(r=>r.value).join(Ua).split("|").map(r=>({value:r.trim()}))}findSpecialPropertyTempo(t){const n=this.findPropertyValue(t,/^tempo$/i);if(null!=n){const r=/(\d+)bpm/i.exec(n);return null!=r?.[1]?parseInt(r[1],10):n}}findSpecialPropertyThemes(t){const n=t.find(r=>r.name.toLowerCase().startsWith("theme"));if(n)return n.value.toString().split("|").map(r=>({value:r.trim()}))}findSpecialPropertyComments(t){const n=t.filter(r=>r.name.toLowerCase().startsWith("comment"));if(n.length>0)return n.map(r=>r.value).join(Ua).split("|")}findSpecialPropertySongBooks(t){const n=t.filter(r=>/^song ?book/i.test(r.name));if(n.length>0)return n.map(r=>{let o,i=r.value.toString().trim();const s=/^([\w\s]+)(\(:?entry ([0-9a-z]+)\))?$/i.exec(r.value.toString());return null!=s?.[1]&&null!=s[3]&&(i=s[1].trim(),o=s[3]),{name:i,entry:o}})}findVerses(t){return t.filter(n=>""!==n.lyrics.trim()).map(n=>{let i,r=n.title;const o=/^(.+?)(?: \(([a-z]{2}(?:-[a-z]{2})?)\))?$/i.exec(n.title);return null!=o?.[1]&&null!=o[2]&&(r=o[1],i=o[2]),{name:r,lang:i,lines:[n.lyrics]}})}}class s6{constructor(){this.name="Plain Text",this.fileExt="txt"}convertToType(t){const n="\n",r=n+n;let i="Title: "+t.title;for(const o of t.info)o.value.toString().trim().length>0&&(i+=n,i+=o.name+": "+o.value);i+=n+r;for(const o of t.slides)o.lyrics.trim().length>0&&(i+=o.title+":",i+=n,i+=o.lyrics.trim(),i+=r);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:i.trim()}}}class a6{constructor(){this.name="ProPresenter 5",this.fileExt="pro5",this.url="https://renewedvision.com/propresenter/"}convertToType(t){const n={properties:{title:t.title,width:1920,height:1080},slideTextFormatting:{textPadding:20},slideGroups:[{label:"Blank",groupColor:"#FF0000",slides:[""]},{label:"Song",groupColor:"#0000FF",slides:this.getSlides(t.slides)}]};this.setProperties(t.info,n.properties);const r=new B4(n).build();return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:r}}setProperties(t,n){this.setPropertyValueByNamePattern(t,/album/i,n,"album"),this.setPropertyValueByNamePattern(t,/artist/i,n,"artist"),this.setPropertyValueByNamePattern(t,/author/i,n,"author"),this.setPropertyValueByNamePattern(t,/category/i,n,"category"),this.setPropertyValueByNamePattern(t,/(ccliNo)|(CCLI ?Number)/i,n,"ccliNumber"),this.setPropertyValueByNamePattern(t,/(year)|(copyright)/i,n,"copyrightYear"),this.setPropertyValueByNamePattern(t,/notes/i,n,"notes"),this.setPropertyValueByNamePattern(t,/publisher/i,n,"publisher")}setPropertyValueByNamePattern(t,n,r,i){const o=t.find(s=>n.test(s.name));void 0!==o&&(r[i]=o.value.toString())}getSlides(t){const n=[];for(const r of t)n.push({label:r.title,text:r.lyrics});return n}}class l6{constructor(){this.name="ProPresenter 6",this.fileExt="pro6",this.url="https://renewedvision.com/propresenter/"}convertToType(t){const n={properties:{CCLISongTitle:t.title,width:1920,height:1080},slideTextFormatting:{textPadding:20},slideGroups:[{label:"Blank",groupColor:"#FF0000",slides:[""]},{label:"Song",groupColor:"#0000FF",slides:this.getSlides(t.slides)}]};this.setProperties(t.info,n.properties);const r=new U4(n).build();return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:r}}setProperties(t,n){this.setPropertyValueByNamePattern(t,/artist/i,n,"CCLIArtistCredits"),this.setPropertyValueByNamePattern(t,/author/i,n,"CCLIAuthor"),this.setPropertyValueByNamePattern(t,/category/i,n,"category"),this.setPropertyValueByNamePattern(t,/(ccliNo)|(CCLI ?Number)/i,n,"CCLISongNumber"),this.setPropertyValueByNamePattern(t,/(year)|(copyright)/i,n,"CCLICopyrightYear"),this.setPropertyValueByNamePattern(t,/notes/i,n,"notes"),this.setPropertyValueByNamePattern(t,/publisher/i,n,"CCLIPublisher")}setPropertyValueByNamePattern(t,n,r,i){const o=t.find(s=>n.test(s.name));void 0!==o&&(r[i]=o.value.toString())}getSlides(t){const n=[];for(const r of t)n.push({label:r.title,text:r.lyrics});return n}}class u6{constructor(){this.name="SongPro",this.fileExt="sng",this.url="https://songpro.org/"}convertToType(t){const n=this.generateSongProDocument(t);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:n}}generateSongProDocument(t){let n=this.getSongAttributes(t.title,t.info);return n+="\n"+this.getSongLyrics(t.slides),n.trim()}getSongAttributes(t,n){const r=["artist","capo","key","tempo","year","album","tuning"],i=[],o=[];for(const a of n)r.includes(a.name.toLowerCase())?i.push(`@${a.name.toLowerCase()}=${a.value}\n`):o.push(`!${a.name}=${a.value}\n`);let s=`@title=${t}\n`;return s+=i.join(""),s+=o.join(""),s}getSongLyrics(t){let n="";for(const r of t)""!==r.lyrics&&(n+=`# ${r.title}\n\n${r.lyrics}\n\n`);return n}}let qD=(()=>{class e{constructor(){this.errorsSvc=ce(_D),this.decoder=new TextDecoder,this.inputConverters=[new Z4,new Y4,new Q4,new _4,new K4,new t6,new T4,new M4,new b4],this.outputConverters=[new l6,new a6,new n6,new o6,new u6,new s6,new i6,new r6],this.parsedFilesChanged$=new Nn}parseFiles(n){try{const r=[];for(let i=0;i<=n.length-1;i++){const o=new FileReader,s=n[i],a=this.handleFile(s,r,n.length);o.addEventListener("loadend",a,!1),o.readAsArrayBuffer(s)}}catch(r){this.errorsSvc.add({message:"There was a problem reading one of the files",thrownError:r})}}detectInputTypeAndGetConverter(n){return this.inputConverters.find(r=>r.doesInputFileMatchThisType(n))}handleFile(n,r,i){return o=>{const s=$a.getFileNameParts(n.name);null!=o.target?.result&&r.push({name:n.name,nameWithoutExt:s.name,ext:s.ext,type:n.type,size:n.size,lastModified:n.lastModified,bufferData:o.target.result}),r.length===i&&this.emitRawFiles(r)}}emitRawFiles(n){const r=[];for(const i of n)r.push({name:i.nameWithoutExt,ext:i.ext,type:i.type,dataAsBuffer:i.bufferData,dataAsString:this.decoder.decode(i.bufferData)});this.parsedFilesChanged$.next(r)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),c6=(()=>{class e{constructor(n){this.document=n,this.dragOverClass="drag-over",this.fileDrop=new zt}ngOnDestroy(){this.toggleDragOver(!1)}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.toggleDragOver(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),0===n.x&&0===n.y&&this.toggleDragOver(!1)}onDrop(n){if(n.preventDefault(),n.stopPropagation(),this.toggleDragOver(!1),n.dataTransfer){const r=n.dataTransfer.files;r.length>0&&this.fileDrop.emit(r)}}toggleDragOver(n){n?this.document.body.classList.add(this.dragOverClass):this.document.body.classList.remove(this.dragOverClass)}static#e=this.\u0275fac=function(r){return new(r||e)(Oe(jt))};static#t=this.\u0275dir=Yt({type:e,selectors:[["","appDragAndDropFiles",""]],hostBindings:function(r,i){1&r&&kn("dragover",function(s){return i.onDragOver(s)},0,Bl)("dragleave",function(s){return i.onDragLeave(s)},!1,Bl)("drop",function(s){return i.onDrop(s)},!1,Bl)},outputs:{fileDrop:"fileDrop"}})}return e})();function d6(e,t){if(1&e&&(ue(0,"li",5)(1,"strong",6),_e(2),le(),ue(3,"span",7),_e(4),le()()),2&e){const n=t.$implicit;$e(2),Fr(n.name),$e(2),Lr(" ",n.value,"")}}function f6(e,t){if(1&e&&(ue(0,"div",8)(1,"p",9),_e(2),le(),ue(3,"footer",10),_e(4),le()()),2&e){const n=t.$implicit;$e(2),Fr(n.lyrics),$e(2),Fr(n.title)}}function h6(e,t){if(1&e&&(ue(0,"div",0)(1,"h3",1),_e(2),le(),ue(3,"div",2)(4,"ul",3),ai(5,d6,5,2,"li",11,si),le()(),ue(7,"div",4),ai(8,f6,5,2,"div",12,si),le()()),2&e){const n=t.$implicit;$e(2),Fr(n.songData.title),$e(3),li(n.songData.info),$e(3),li(n.songData.slides)}}let p6=(()=>{class e{constructor(){this.$gaService=ce(bc),this.outputFileList=[]}ngOnInit(){this.$gaService.event("display_slides","convert",void 0,this.outputFileList.length,!0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["app-slide-display"]],inputs:{outputFileList:"outputFileList"},decls:2,vars:0,consts:[[1,"card","mb-4","last-of-type:mb-0"],[1,"card-title"],[1,"card-content","!pb-2"],[1,"flex","flex-wrap","gap-1","text-sm"],["data-test","song-slides-container",1,"card-content","grid","grid-cols-2","gap-1","sm:grid-cols-3","lg:grid-cols-4","xl:grid-cols-5","2xl:grid-cols-6"],[1,"inline-flex","cursor-default","overflow-hidden","rounded","border","border-slate-500","bg-slate-300","text-slate-800","hover:border-slate-600","hover:bg-slate-400"],[1,"px-1"],[1,"bg-slate-50","px-1"],[1,"flex","cursor-default","flex-col","overflow-hidden","rounded-md","border","border-slate-500","bg-slate-300","text-slate-800","hover:border-slate-600","hover:bg-slate-400"],[1,"grow","bg-slate-50","p-1","text-sm","leading-4"],[1,"px-1","font-bold"],["class","inline-flex cursor-default overflow-hidden rounded border border-slate-500 bg-slate-300 text-slate-800 hover:border-slate-600 hover:bg-slate-400"],["class","flex cursor-default flex-col overflow-hidden rounded-md border border-slate-500 bg-slate-300 text-slate-800 hover:border-slate-600 hover:bg-slate-400"],["class","card mb-4 last-of-type:mb-0"]],template:function(r,i){1&r&&ai(0,h6,10,1,"div",13,si),2&r&&li(i.outputFileList)},encapsulation:2})}return e})();var g6=X(304),ZD=X(880);function m6(e,t){if(1&e){const n=Uo();ue(0,"button",4),kn("click",function(){return Ci(n),_i(At().onClickDownloadFiles())}),Ot(),ue(1,"svg",5),je(2,"use",6),le(),_e(3," Download File "),le()}}function v6(e,t){if(1&e){const n=Uo();ue(0,"div")(1,"button",4),kn("click",function(){return Ci(n),_i(At().onClickDownloadZipFile())}),Ot(),ue(2,"svg",5),je(3,"use",7),le(),_e(4," Download as .zip "),le(),_e(5," or "),ar(),ue(6,"button",8),kn("click",function(){return Ci(n),_i(At().onClickDownloadFiles())}),Ot(),ue(7,"svg",5),je(8,"use",9),le(),_e(9),le()()}if(2&e){const n=At();$e(9),Lr(" Download ",n.outputFileList.length," individual files ")}}let y6=(()=>{class e{constructor(){this.$gaService=ce(bc),this.outputFileList=[]}onClickDownloadFiles(){for(const n of this.outputFileList)ZD.saveAs(new File(["\ufeff"+n.outputContent],n.fileName,{type:"text/plain"}));this.$gaService.event("file_download",this.selectedOutputType.name,"files",this.outputFileList.length,!0)}onClickDownloadZipFile(){const n=new g6;for(const r of this.outputFileList)n.file(r.fileName,new File([r.outputContent],r.fileName));n.generateAsync({type:"blob"}).then(r=>{ZD.saveAs(r,`LyricConverter (${this.outputFileList.length} files).zip`),this.$gaService.event("file_download",this.selectedOutputType.name,"zip",this.outputFileList.length,!0)})}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["app-download-display"]],inputs:{outputFileList:"outputFileList",selectedOutputType:"selectedOutputType"},decls:6,vars:4,consts:[[1,"card"],[1,"card-title"],[1,"card-content"],["type","button","class","btn btn-primary"],["type","button",1,"btn","btn-primary",3,"click"],["role","img",1,"icon"],[0,"xlink","href","#file-text-fill"],[0,"xlink","href","#file-zip-fill"],["type","button",1,"btn","btn-secondary","btn-small",3,"click"],[0,"xlink","href","#files"]],template:function(r,i){1&r&&(ue(0,"div",0)(1,"h3",1),_e(2),le(),ue(3,"div",2),wn(4,m6,4,0,"button",3)(5,v6,10,1,"div"),le()()),2&r&&($e(2),Eh(" Converted ",i.outputFileList.length," ",1===i.outputFileList.length?"Song":"Songs"," "),$e(2),Cn(4,1===i.outputFileList.length?4:-1),$e(),Cn(5,i.outputFileList.length>1?5:-1))},encapsulation:2})}return e})();const w6=["fileInput"];function C6(e,t){if(1&e&&(ue(0,"span",15),_e(1),le()),2&e){const n=At().$implicit;$e(),Lr(".",n.fileExt,"")}}const _6=e=>({"border-l-2 border-l-lc-highlight bg-lc-highlight/10 font-bold":e});function b6(e,t){if(1&e){const n=Uo();ue(0,"a",13),kn("click",function(i){const s=Ci(n).$implicit;return _i(At().onSwitchConversionType(s,i))}),_e(1),wn(2,C6,2,1,"span",14),le()}if(2&e){const n=t.$implicit,r=At();Qn("ngClass",Su(3,_6,r.selectedOutputType===n)),$e(),Lr(" ",n.name," "),$e(),Cn(2,n.fileExt?2:-1)}}function D6(e,t){if(1&e){const n=Uo();ue(0,"div",16)(1,"div",17),_e(2," You can drag more songs into this window to convert them, or "),ue(3,"a",18),kn("click",function(i){return Ci(n),_i(At().onSelectFilesClick(i))}),_e(4,"select some more files"),le()()()}}function E6(e,t){if(1&e&&(ue(0,"span"),_e(1),le()),2&e){const n=t.$implicit,r=t.$index,i=At(2);$e(),Sh("",r===i.inputTypesList.length-1?"or ":"","",n.name,"",r=n.convertedCountMessageThreshold?2:-1),$e(),Cn(3,n.errorsList.length>0?3:-1),$e(),Cn(4,"Display Slides"===n.selectedOutputType.name?4:5)}}const O6=e=>({"sm:col-span-2 md:col-span-1":e}),k6=e=>({"sm:grid sm:grid-cols-2 sm:gap-4 md:block md:grid-cols-none":e});function F6(e,t){if(1&e&&(ue(0,"a",21),_e(1),le()),2&e){const n=At().$implicit;Qn("href",n.url,Xd),$e(),Fr(n.name)}}function L6(e,t){if(1&e&&(ue(0,"span"),_e(1),le()),2&e){const n=At().$implicit;$e(),Fr(n.name)}}function V6(e,t){1&e&&(Ot(),ue(0,"svg",26),je(1,"use",10),le())}function B6(e,t){1&e&&(Ot(),ue(0,"svg",27),je(1,"use",28),le())}function j6(e,t){1&e&&(Ot(),ue(0,"svg",29),je(1,"use",30),le())}function U6(e,t){1&e&&(Ot(),ue(0,"svg",31),je(1,"use",28),le())}function $6(e,t){1&e&&(Ot(),ue(0,"svg",29),je(1,"use",30),le())}function H6(e,t){if(1&e&&(ue(0,"tr")(1,"th",20),wn(2,F6,2,2,"a",21)(3,L6,2,1)(4,V6,2,0,":svg:svg",22),le(),ue(5,"td",23),wn(6,B6,2,0,":svg:svg",24)(7,j6,2,0),le(),ue(8,"td",23),wn(9,U6,2,0,":svg:svg",25)(10,$6,2,0),le()()),2&e){const n=t.$implicit;$e(2),Cn(2,n.url?2:3),$e(2),Cn(4,n.hasNote?4:-1),$e(2),Cn(6,n.canImport?6:7),$e(3),Cn(9,n.canExport?9:10)}}const z6=[{path:"",component:(()=>{class e{constructor(){this.destroyRef=ce(bo),this.document=ce(jt),this.elementRef=ce(Nr),this.parserSvc=ce(qD),this.errorsSvc=ce(_D),this.conversionTypeStorageKey="CONVERT_TO",this.convertedFileCountStorageKey="CONVERT_COUNT",this.window=this.document.defaultView,this.displayInitialUi=!0,this.convertedFileCount=0,this.convertedCountMessageThreshold=50,this.errorsList=[],this.outputTypesForMenu=[],this.inputTypesList=[],this.convertedSongsForOutput=[]}ngOnInit(){this.buildOutputTypesList(),this.buildInputTypesList(),this.getSavedConvertedFileCount(),this.parserSvc.parsedFilesChanged$.pipe(ag(this.destroyRef)).subscribe(n=>{this.getConvertersAndExtractData(n)}),this.errorsSvc.errorsChanged$.pipe(ag(this.destroyRef)).subscribe(n=>{this.errorsList=n})}onSwitchConversionType(n,r){r.preventDefault(),this.displayInitialUi=!0,this.selectedOutputType=n,localStorage.setItem(this.conversionTypeStorageKey,n.name)}onSelectFilesClick(n){n.preventDefault(),this.fileInput.nativeElement.click()}onFileSelect(n){const r=n.target.files;r&&this.onReceiveFiles(r)}onReceiveFiles(n){n.length>0&&(this.errorsSvc.clear(),this.parserSvc.parseFiles(n))}getConvertersAndExtractData(n){this.displayInitialUi=!1,this.scrollBackToTop();const r=[];for(const i of n){const o=""!==i.ext?`${i.name}.${i.ext}`:i.name,s=this.parserSvc.detectInputTypeAndGetConverter(i);if(s)try{r.push(s.extractSongData(i))}catch(a){this.errorsSvc.add({message:"There was a problem extracting the song data from this file!",fileName:o,thrownError:a})}else this.errorsSvc.add({message:"This is not a file type that LyricConverter knows how to convert!",fileName:o})}if(r.length){this.convertedFileCount+=r.length,localStorage.setItem(this.convertedFileCountStorageKey,this.convertedFileCount.toString());const i=[];for(const o of r)try{i.push(this.selectedOutputType.convertToType(o))}catch(s){this.errorsSvc.add({message:`There was a problem converting this song to the ${this.selectedOutputType.name} format`,fileName:o.fileName,thrownError:s})}this.convertedSongsForOutput=i}}buildOutputTypesList(){this.outputTypesForMenu=[...this.parserSvc.outputConverters];const n=localStorage.getItem(this.conversionTypeStorageKey);this.selectedOutputType=this.parserSvc.outputConverters.find(r=>r.name===n)??this.outputTypesForMenu[0]}buildInputTypesList(){this.inputTypesList=this.parserSvc.inputConverters.map(n=>({name:n.name,ext:n.fileExt}))}getSavedConvertedFileCount(){const n=parseInt(localStorage.getItem(this.convertedFileCountStorageKey)??"",10);!isNaN(n)&&n>0&&(this.convertedFileCount=n)}scrollBackToTop(){this.window.scrollTo({top:this.elementRef.nativeElement.offsetTop,behavior:"smooth"})}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["app-convert"]],viewQuery:function(r,i){if(1&r&&lC(w6,5),2&r){let o;bh(o=Dh())&&(i.fileInput=o.first)}},decls:19,vars:8,consts:[["id","drop-area","appDragAndDropFiles","",1,"pointer-events-none","fixed","inset-0","z-50","flex","items-center","justify-center","bg-slate-600/50","backdrop-blur-sm",3,"fileDrop"],[1,"flex","items-center","rounded-xl","border-2","border-slate-600","bg-slate-50/90","p-8","text-3xl","font-bold","text-slate-800","shadow-lg"],["role","img",1,"icon","mr-2"],[0,"xlink","href","#files"],["type","file","multiple","",1,"hidden",3,"change"],["fileInput",""],[1,"grid","grid-cols-1","gap-4","sm:grid-cols-2","md:grid-cols-4"],[3,"ngClass"],[1,"sticky","md:top-4",3,"ngClass"],["id","test-convert-types-nav",1,"card","grid","grid-cols-1","overflow-hidden","p-0"],[1,"card-title","py-2","text-center"],["id","test-drop-instructions-more","class","card mt-4 sm:mt-0 md:mt-4"],["id","begin-area","class","card md:col-span-3"],["href","#",1,"flex","items-center","border-b","border-b-lc-highlight/10","p-2","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"ngClass","click"],["class","ml-1 rounded border border-white/30 bg-slate-300 p-0.5 pl-0 font-mono text-xs leading-none text-slate-800"],[1,"ml-1","rounded","border","border-white/30","bg-slate-300","p-0.5","pl-0","font-mono","text-xs","leading-none","text-slate-800"],["id","test-drop-instructions-more",1,"card","mt-4","sm:mt-0","md:mt-4"],[1,"card-content"],["href","#",3,"click"],["id","begin-area",1,"card","md:col-span-3"],[1,"card-content","flex","flex-col","items-center","justify-center","text-center"],[1,"mb-4","mt-auto"],[1,"text-3xl"],["id","test-accepted-input-formats",1,"mt-auto"],["id","display-area",1,"sm:col-span-2","md:col-span-3"],[1,"mb-4","md:hidden"],["id","test-donate","class","card mb-4 border-blue-800/80 bg-blue-100/70 text-blue-900","role","alert"],["id","test-error-message-display","class","card mb-4 border-red-700/80 bg-red-200/80 text-red-700","role","alert"],[3,"outputFileList"],["id","test-donate","role","alert",1,"card","mb-4","border-blue-800/80","bg-blue-100/70","text-blue-900"],[1,"mb-2","flex","items-center"],["role","img","aria-label","Info:",1,"icon","icon-lg","me-2"],[0,"xlink","href","#info-fill"],[1,"text-lg"],[1,"mb-2"],["id","test-error-message-display","role","alert",1,"card","mb-4","border-red-700/80","bg-red-200/80","text-red-700"],[1,"mb-2","flex","items-center","text-xl","font-bold"],["role","img","aria-label","Alert:",1,"icon","icon-lg","mr-2"],[0,"xlink","href","#exclamation-triangle-fill"],[3,"selectedOutputType","outputFileList"],["class","flex items-center border-b border-b-lc-highlight/10 p-2 text-white hover:bg-lc-highlight/20 hover:no-underline","href","#",3,"ngClass"]],template:function(r,i){1&r&&(ue(0,"div",0),kn("fileDrop",function(s){return i.onReceiveFiles(s)}),ue(1,"div",1),Ot(),ue(2,"svg",2),je(3,"use",3),le(),ar(),ue(4,"span"),_e(5,"Drop Your Song Files Here"),le()()(),ue(6,"input",4,5),kn("change",function(s){return i.onFileSelect(s)}),le(),ue(8,"div",6)(9,"div",7)(10,"aside",8)(11,"nav",9)(12,"strong",10),_e(13," Convert To "),le(),ai(14,b6,3,5,"a",40,si),le(),wn(16,D6,5,0,"div",11),le()(),wn(17,S6,18,0,"div",12)(18,R6,6,3),le()),2&r&&($e(9),Qn("ngClass",Su(4,O6,!i.displayInitialUi)),$e(),Qn("ngClass",Su(6,k6,!i.displayInitialUi)),$e(4),li(i.outputTypesForMenu),$e(2),Cn(16,i.displayInitialUi?-1:16),$e(),Cn(17,i.displayInitialUi?17:18))},dependencies:[h_,wD,c6,p6,y6],styles:["#drop-area{opacity:0;transition:opacity .3s}body.drag-over #drop-area{opacity:1}\n"],encapsulation:2})}return e})(),title:"Lyric Converter"},{path:"about",component:y4,pathMatch:"full",title:"Lyric Converter: About"},{path:"help",component:(()=>{class e{constructor(){this.parserSvc=ce(qD),this.combinedFormatsList=[],this.unsupportedFormatsList=[{name:"ProPresenter 7",canImport:!1,canExport:!1,hasNote:!0,url:"https://renewedvision.com/propresenter/"},{name:"MediaShout",canImport:!1,canExport:!1,hasNote:!1,url:"https://mediashout.com/"},{name:"EasyWorship",canImport:!1,canExport:!1,hasNote:!1,url:"https://easyworship.com/"},{name:"OpenSong",canImport:!1,canExport:!1,hasNote:!1,url:"http://opensong.org/"}]}ngOnInit(){this.parserSvc.inputConverters.forEach(n=>{this.combinedFormatsList.push({name:n.name,canImport:!0,canExport:!1,hasNote:!1,url:n.url})}),this.parserSvc.outputConverters.filter(n=>"Display Slides"!==n.name).forEach(n=>{const r=this.combinedFormatsList.find(i=>i.name===n.name);r?r.canExport=!0:this.combinedFormatsList.push({name:n.name,canImport:!1,canExport:!0,hasNote:!1,url:n.url})}),this.combinedFormatsList=$a.mergeArraysByProp(this.combinedFormatsList,this.unsupportedFormatsList,"name").sort((n,r)=>n.namer.name?1:0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Sr({type:e,selectors:[["app-help"]],decls:38,vars:0,consts:[[1,"grid","gap-4","sm:grid-cols-2"],[1,"card"],[1,"card-title"],[1,"card-content"],[1,"mb-2","text-sm"],[1,"w-full"],["scope","col",1,"w-1/2"],["scope","col",1,"w-1/4","text-center"],[1,"my-2","text-sm"],["role","img","aria-label","Tip:",1,"icon","text-blue-400"],[0,"xlink","href","#info-fill"],[1,"card","mb-4"],[1,"inline-block","text-center"],["target","_blank","href","https://github.com/FiniteLooper/LyricConverter/issues",1,"btn","btn-secondary"],["role","img","aria-label","Github:",1,"icon","me-2","shrink-0"],[0,"xlink","href","#github"],[1,"my-2"],["target","_blank","href","https://hachyderm.io/@FiniteLooper",1,"btn","btn-secondary"],["role","img","aria-label","Mastodon:",1,"icon","me-2","shrink-0"],[0,"xlink","href","#mastodon"],["scope","row",1,"text-left"],["target","_blank",3,"href"],["class","icon ml-1 text-sm text-blue-400","role","img","aria-label","Info: about this format"],[1,"text-center"],["class","icon text-green-400 drop-shadow-md","role","img","aria-label","Import is supported"],["class","icon text-green-400 drop-shadow-md","role","img","aria-label","Export is supported"],["role","img","aria-label","Info: about this format",1,"icon","ml-1","text-sm","text-blue-400"],["role","img","aria-label","Import is supported",1,"icon","text-green-400","drop-shadow-md"],[0,"xlink","href","#check-circle-fill"],["role","img","aria-label","Export is not supported",1,"icon","text-red-400","drop-shadow-md"],[0,"xlink","href","#x-circle"],["role","img","aria-label","Export is supported",1,"icon","text-green-400","drop-shadow-md"]],template:function(r,i){1&r&&(ue(0,"div",0)(1,"div",1)(2,"h3",2),_e(3,"Supported Formats"),le(),ue(4,"div",3)(5,"p",4),_e(6," Eventually I would love for LyricConverter to convert between all of these formats and more, but for the time being this is all it can do. "),le(),ue(7,"table",5)(8,"thead")(9,"tr"),je(10,"th",6),ue(11,"th",7),_e(12,"Import"),le(),ue(13,"th",7),_e(14,"Export"),le()()(),ue(15,"tbody"),ai(16,H6,11,4,"tr",null,si),le()(),ue(18,"p",8),Ot(),ue(19,"svg",9),je(20,"use",10),le(),_e(21," You can import the ProPresenter 6 files made by LyricConverter into ProPresenter 7! "),le()()(),ar(),ue(22,"div")(23,"div",11)(24,"h3",2),_e(25,"Have a question or some other problem?"),le(),ue(26,"div",3)(27,"div",12)(28,"a",13),Ot(),ue(29,"svg",14),je(30,"use",15),le(),_e(31," Open an issue on GitHub "),le(),ar(),ue(32,"div",16),_e(33,"or"),le(),ue(34,"a",17),Ot(),ue(35,"svg",18),je(36,"use",19),le(),_e(37," Contact me on Mastodon "),le()()()()()()),2&r&&($e(16),li(i.combinedFormatsList))},styles:["table[_ngcontent-%COMP%]{table-layout:auto;border-collapse:collapse}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#1f2937b3}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#374151e6}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#1f293799}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd):hover{background-color:#374151e6}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem .5rem}"]})}return e})(),pathMatch:"full",title:"Lyric Converter: Help"},{path:"**",redirectTo:""}];let G6=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ir({type:e});static#n=this.\u0275inj=lr({imports:[fD.forRoot(z6,{initialNavigation:"enabledBlocking"}),fD]})}return e})(),W6=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ir({type:e,bootstrap:[v4]});static#n=this.\u0275inj=lr({imports:[kF,G6,yD.forRoot("G-1W69G30JB8"),m4]})}return e})();RF().bootstrapModule(W6).catch(e=>{console.error(e)})},604:(it,P,X)=>{"use strict";const F=X(632),M=X(904),T=X(320);it.exports={XMLParser:M,XMLValidator:F,XMLBuilder:T}},843:(it,P)=>{"use strict";const X=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",M="["+X+"]["+X+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",T=new RegExp("^"+M+"$");P.isExist=function(E){return typeof E<"u"},P.isEmptyObject=function(E){return 0===Object.keys(E).length},P.merge=function(E,b,v){if(b){const C=Object.keys(b),f=C.length;for(let m=0;m"u")},P.getAllMatches=function(E,b){const v=[];let C=b.exec(E);for(;C;){const f=[];f.startIndex=b.lastIndex-C[0].length;const m=C.length;for(let g=0;g{"use strict";const F=X(843),M={allowBooleanAttributes:!1,unpairedTags:[]};function T(I){return" "===I||"\t"===I||"\n"===I||"\r"===I}function y(I,L){const $=L;for(;L5&&"xml"===oe)return w("InvalidXml","XML declaration allowed only at the start of the document.",V(I,L));if("?"==I[L]&&">"==I[L+1]){L++;break}continue}return L}function D(I,L){if(I.length>L+5&&"-"===I[L+1]&&"-"===I[L+2]){for(L+=3;L"===I[L+2]){L+=2;break}}else if(I.length>L+8&&"D"===I[L+1]&&"O"===I[L+2]&&"C"===I[L+3]&&"T"===I[L+4]&&"Y"===I[L+5]&&"P"===I[L+6]&&"E"===I[L+7]){let $=1;for(L+=8;L"===I[L]&&($--,0===$))break}else if(I.length>L+9&&"["===I[L+1]&&"C"===I[L+2]&&"D"===I[L+3]&&"A"===I[L+4]&&"T"===I[L+5]&&"A"===I[L+6]&&"["===I[L+7])for(L+=8;L"===I[L+2]){L+=2;break}return L}P.validate=function(I,L){L=Object.assign({},M,L);const $=[];let oe=!1,R=!1;"\ufeff"===I[0]&&(I=I.substr(1));for(let B=0;B"!==I[B]&&" "!==I[B]&&"\t"!==I[B]&&"\n"!==I[B]&&"\r"!==I[B];B++)j+=I[B];if(j=j.trim(),"/"===j[j.length-1]&&(j=j.substring(0,j.length-1),B--),!O(j)){let ae;return ae=0===j.trim().length?"Invalid space after '<'.":"Tag '"+j+"' is an invalid name.",w("InvalidTag",ae,V(I,B))}const h=v(I,B);if(!1===h)return w("InvalidAttr","Attributes for '"+j+"' have open quote.",V(I,B));let Q=h.value;if(B=h.index,"/"===Q[Q.length-1]){const ae=B-Q.length;Q=Q.substring(0,Q.length-1);const G=f(Q,L);if(!0!==G)return w(G.err.code,G.err.msg,V(I,ae+G.err.line));oe=!0}else if(x){if(!h.tagClosed)return w("InvalidTag","Closing tag '"+j+"' doesn't have proper closing.",V(I,B));if(Q.trim().length>0)return w("InvalidTag","Closing tag '"+j+"' can't have attributes or invalid starting.",V(I,J));{const ae=$.pop();if(j!==ae.tagName){let G=V(I,ae.tagStartPos);return w("InvalidTag","Expected closing tag '"+ae.tagName+"' (opened in line "+G.line+", col "+G.col+") instead of closing tag '"+j+"'.",V(I,J))}0==$.length&&(R=!0)}}else{const ae=f(Q,L);if(!0!==ae)return w(ae.err.code,ae.err.msg,V(I,B-Q.length+ae.err.line));if(!0===R)return w("InvalidXml","Multiple possible root nodes found.",V(I,B));-1!==L.unpairedTags.indexOf(j)||$.push({tagName:j,tagStartPos:J}),oe=!0}for(B++;B0)||w("InvalidXml","Invalid '"+JSON.stringify($.map(B=>B.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):w("InvalidXml","Start tag expected.",1)};const E='"',b="'";function v(I,L){let $="",oe="",R=!1;for(;L"===I[L]&&""===oe){R=!0;break}$+=I[L]}return""===oe&&{value:$,index:L,tagClosed:R}}const C=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function f(I,L){const $=F.getAllMatches(I,C),oe={};for(let R=0;R<$.length;R++){if(0===$[R][1].length)return w("InvalidAttr","Attribute '"+$[R][2]+"' has no space in starting.",z($[R]));if(void 0!==$[R][3]&&void 0===$[R][4])return w("InvalidAttr","Attribute '"+$[R][2]+"' is without value.",z($[R]));if(void 0===$[R][3]&&!L.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+$[R][2]+"' is not allowed.",z($[R]));const B=$[R][2];if(!_(B))return w("InvalidAttr","Attribute '"+B+"' is an invalid name.",z($[R]));if(oe.hasOwnProperty(B))return w("InvalidAttr","Attribute '"+B+"' is repeated.",z($[R]));oe[B]=1}return!0}function g(I,L){if(";"===I[++L])return-1;if("#"===I[L])return function m(I,L){let $=/\d/;for("x"===I[L]&&(L++,$=/[\da-fA-F]/);L{"use strict";const F=X(500),M={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(v,C){return C},attributeValueProcessor:function(v,C){return C},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function T(v){this.options=Object.assign({},M,v),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=b),this.processTextOrObjNode=y,this.options.format?(this.indentate=E,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function y(v,C,f){const m=this.j2x(v,f+1);return void 0!==v[this.options.textNodeName]&&1===Object.keys(v).length?this.buildTextValNode(v[this.options.textNodeName],C,m.attrStr,f):this.buildObjectNode(m.val,C,m.attrStr,f)}function E(v){return this.options.indentBy.repeat(v)}function b(v){return!(!v.startsWith(this.options.attributeNamePrefix)||v===this.options.textNodeName)&&v.substr(this.attrPrefixLen)}T.prototype.build=function(v){return this.options.preserveOrder?F(v,this.options):(Array.isArray(v)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(v={[this.options.arrayNodeName]:v}),this.j2x(v,0).val)},T.prototype.j2x=function(v,C){let f="",m="";for(let g in v)if(Object.prototype.hasOwnProperty.call(v,g))if(typeof v[g]>"u")this.isAttribute(g)&&(m+="");else if(null===v[g])this.isAttribute(g)?m+="":m+="?"===g[0]?this.indentate(C)+"<"+g+"?"+this.tagEndChar:this.indentate(C)+"<"+g+"/"+this.tagEndChar;else if(v[g]instanceof Date)m+=this.buildTextValNode(v[g],g,"",C);else if("object"!=typeof v[g]){const w=this.isAttribute(g);if(w)f+=this.buildAttrPairStr(w,""+v[g]);else if(g===this.options.textNodeName){let _=this.options.tagValueProcessor(g,""+v[g]);m+=this.replaceEntitiesValue(_)}else m+=this.buildTextValNode(v[g],g,"",C)}else if(Array.isArray(v[g])){const w=v[g].length;let _="";for(let O=0;O"u"||(null===V?m+="?"===g[0]?this.indentate(C)+"<"+g+"?"+this.tagEndChar:this.indentate(C)+"<"+g+"/"+this.tagEndChar:_+="object"==typeof V?this.options.oneListGroup?this.j2x(V,C+1).val:this.processTextOrObjNode(V,g,C):this.buildTextValNode(V,g,"",C))}this.options.oneListGroup&&(_=this.buildObjectNode(_,g,"",C)),m+=_}else if(this.options.attributesGroupName&&g===this.options.attributesGroupName){const w=Object.keys(v[g]),_=w.length;for(let O=0;O<_;O++)f+=this.buildAttrPairStr(w[O],""+v[g][w[O]])}else m+=this.processTextOrObjNode(v[g],g,C);return{attrStr:f,val:m}},T.prototype.buildAttrPairStr=function(v,C){return C=this.options.attributeValueProcessor(v,""+C),C=this.replaceEntitiesValue(C),this.options.suppressBooleanAttributes&&"true"===C?" "+v:" "+v+'="'+C+'"'},T.prototype.buildObjectNode=function(v,C,f,m){if(""===v)return"?"===C[0]?this.indentate(m)+"<"+C+f+"?"+this.tagEndChar:this.indentate(m)+"<"+C+f+this.closeTag(C)+this.tagEndChar;{let g=""+v+g}},T.prototype.closeTag=function(v){let C="";return-1!==this.options.unpairedTags.indexOf(v)?this.options.suppressUnpairedNode||(C="/"):C=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&C===this.options.commentPropName)return this.indentate(m)+`\x3c!--${v}--\x3e`+this.newLine;if("?"===C[0])return this.indentate(m)+"<"+C+f+"?"+this.tagEndChar;{let g=this.options.tagValueProcessor(C,v);return g=this.replaceEntitiesValue(g),""===g?this.indentate(m)+"<"+C+f+this.closeTag(C)+this.tagEndChar:this.indentate(m)+"<"+C+f+">"+g+"0&&this.options.processEntities)for(let C=0;C{function F(E,b,v,C){let f="",m=!1;for(let g=0;g`,m=!1;continue}if(_===b.commentPropName){f+=C+`\x3c!--${w[_][0][b.textNodeName]}--\x3e`,m=!0;continue}if("?"===_[0]){const $=T(w[":@"],b);let R=w[_][0][b.textNodeName];R=0!==R.length?" "+R:"",f+=("?xml"===_?"":C)+`<${_}${R}${$}?>`,m=!0;continue}let V=C;""!==V&&(V+=b.indentBy);const I=C+`<${_}${T(w[":@"],b)}`,L=F(w[_],b,O,V);-1!==b.unpairedTags.indexOf(_)?f+=b.suppressUnpairedNode?I+">":I+"/>":L&&0!==L.length||!b.suppressEmptyNode?L&&L.endsWith(">")?f+=I+`>${L}${C}`:(f+=I+">",L&&""!==C&&(L.includes("/>")||L.includes("`):f+=I+"/>",m=!0}return f}function M(E){const b=Object.keys(E);for(let v=0;v0&&b.processEntities)for(let v=0;v0&&(v="\n"),F(E,b,"",v)}},960:(it,P,X)=>{const F=X(843);function T(f,m){let g="";for(;m"===f[m]){if(O?"-"===f[m-1]&&"-"===f[m-2]&&(O=!1,w--):w--,0===w)break}else"["===f[m]?_=!0:V+=f[m];else{if(_&&D(f,m))m+=7,[entityName,val,m]=T(f,m+1),-1===val.indexOf("&")&&(g[C(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(_&&E(f,m))m+=8;else if(_&&b(f,m))m+=8;else if(_&&v(f,m))m+=9;else{if(!y)throw new Error("Invalid DOCTYPE");O=!0}w++,V=""}if(0!==w)throw new Error("Unclosed DOCTYPE")}return{entities:g,i:m}}},136:(it,P)=>{const X={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(M,T){return T},attributeValueProcessor:function(M,T){return T},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(M,T,y){return M}};P.buildOptions=function(M){return Object.assign({},X,M)},P.defaultOptions=X},748:(it,P,X)=>{"use strict";const F=X(843),M=X(104),T=X(960),y=X(488);function b(R){const B=Object.keys(R);for(let J=0;J0)){Q||(R=this.replaceEntitiesValue(R));const ae=this.options.tagValueProcessor(B,R,J,j,h);return null==ae?R:typeof ae!=typeof R||ae!==R?ae:this.options.trimValues||R.trim()===R?oe(R,this.options.parseTagValue,this.options.numberParseOptions):R}}function C(R){if(this.options.removeNSPrefix){const B=R.split(":"),J="/"===R.charAt(0)?"/":"";if("xmlns"===B[0])return"";2===B.length&&(R=J+B[1])}return R}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,F.nameRegexp);const f=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function m(R,B,J){if(!this.options.ignoreAttributes&&"string"==typeof R){const x=F.getAllMatches(R,f),j=x.length,h={};for(let Q=0;Q",h,"Closing Tag is not closed.");let G=R.substring(h+2,ae).trim();if(this.options.removeNSPrefix){const Se=G.indexOf(":");-1!==Se&&(G=G.substr(Se+1))}this.options.transformTagName&&(G=this.options.transformTagName(G)),J&&(x=this.saveTextToParentTag(x,J,j));const De=j.substring(j.lastIndexOf(".")+1);if(G&&-1!==this.options.unpairedTags.indexOf(G))throw new Error(`Unpaired tag can not be used as closing tag: `);let re=0;De&&-1!==this.options.unpairedTags.indexOf(De)?(re=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=j.lastIndexOf("."),j=j.substring(0,re),J=this.tagsNodeStack.pop(),x="",h=ae}else if("?"===R[h+1]){let ae=L(R,h,!1,"?>");if(!ae)throw new Error("Pi Tag is not closed.");if(x=this.saveTextToParentTag(x,J,j),!(this.options.ignoreDeclaration&&"?xml"===ae.tagName||this.options.ignorePiTags)){const G=new M(ae.tagName);G.add(this.options.textNodeName,""),ae.tagName!==ae.tagExp&&ae.attrExpPresent&&(G[":@"]=this.buildAttributesMap(ae.tagExp,j,ae.tagName)),this.addChild(J,G,j)}h=ae.closeIndex+1}else if("!--"===R.substr(h+1,3)){const ae=I(R,"--\x3e",h+4,"Comment is not closed.");if(this.options.commentPropName){const G=R.substring(h+4,ae-2);x=this.saveTextToParentTag(x,J,j),J.add(this.options.commentPropName,[{[this.options.textNodeName]:G}])}h=ae}else if("!D"===R.substr(h+1,2)){const ae=T(R,h);this.docTypeEntities=ae.entities,h=ae.i}else if("!["===R.substr(h+1,2)){const ae=I(R,"]]>",h,"CDATA is not closed.")-2,G=R.substring(h+9,ae);if(x=this.saveTextToParentTag(x,J,j),this.options.cdataPropName)J.add(this.options.cdataPropName,[{[this.options.textNodeName]:G}]);else{let De=this.parseTextData(G,J.tagname,j,!0,!1,!0);null==De&&(De=""),J.add(this.options.textNodeName,De)}h=ae+2}else{let ae=L(R,h,this.options.removeNSPrefix),G=ae.tagName;const De=ae.rawTagName;let re=ae.tagExp,Se=ae.attrExpPresent,K=ae.closeIndex;if(this.options.transformTagName&&(G=this.options.transformTagName(G)),J&&x&&"!xml"!==J.tagname&&(x=this.saveTextToParentTag(x,J,j,!1)),J&&-1!==this.options.unpairedTags.indexOf(J.tagname)&&(J=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),G!==B.tagname&&(j+=j?"."+G:G),this.isItStopNode(this.options.stopNodes,j,G)){let Ce="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)h=ae.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(G))h=ae.closeIndex;else{const ve=this.readStopNodeData(R,De,K+1);if(!ve)throw new Error(`Unexpected end of ${De}`);h=ve.i,Ce=ve.tagContent}const ye=new M(G);G!==re&&Se&&(ye[":@"]=this.buildAttributesMap(re,j,G)),Ce&&(Ce=this.parseTextData(Ce,G,j,!0,Se,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),ye.add(this.options.textNodeName,Ce),this.addChild(J,ye,j)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){"/"===G[G.length-1]?(G=G.substr(0,G.length-1),j=j.substr(0,j.length-1),re=G):re=re.substr(0,re.length-1),this.options.transformTagName&&(G=this.options.transformTagName(G));const Ce=new M(G);G!==re&&Se&&(Ce[":@"]=this.buildAttributesMap(re,j,G)),this.addChild(J,Ce,j),j=j.substr(0,j.lastIndexOf("."))}else{const Ce=new M(G);this.tagsNodeStack.push(J),G!==re&&Se&&(Ce[":@"]=this.buildAttributesMap(re,j,G)),this.addChild(J,Ce,j),J=Ce}x="",h=K}}else x+=R[h];return B.child};function w(R,B,J){const x=this.options.updateTag(B.tagname,J,B[":@"]);!1===x||("string"==typeof x&&(B.tagname=x),R.addChild(B))}const _=function(R){if(this.options.processEntities){for(let B in this.docTypeEntities){const J=this.docTypeEntities[B];R=R.replace(J.regx,J.val)}for(let B in this.lastEntities){const J=this.lastEntities[B];R=R.replace(J.regex,J.val)}if(this.options.htmlEntities)for(let B in this.htmlEntities){const J=this.htmlEntities[B];R=R.replace(J.regex,J.val)}R=R.replace(this.ampEntity.regex,this.ampEntity.val)}return R};function O(R,B,J,x){return R&&(void 0===x&&(x=0===Object.keys(B.child).length),void 0!==(R=this.parseTextData(R,B.tagname,J,!1,!!B[":@"]&&0!==Object.keys(B[":@"]).length,x))&&""!==R&&B.add(this.options.textNodeName,R),R=""),R}function V(R,B,J){const x="*."+J;for(const j in R){const h=R[j];if(x===h||B===h)return!0}return!1}function I(R,B,J,x){const j=R.indexOf(B,J);if(-1===j)throw new Error(x);return j+B.length-1}function L(R,B,J,x=">"){const j=function z(R,B,J=">"){let x,j="";for(let h=B;h",J,`${B} is not closed`);if(R.substring(J+2,h).trim()===B&&(j--,0===j))return{tagContent:R.substring(x,J),i:h};J=h}else if("?"===R[J+1])J=I(R,"?>",J+1,"StopNode is not closed.");else if("!--"===R.substr(J+1,3))J=I(R,"--\x3e",J+3,"StopNode is not closed.");else if("!["===R.substr(J+1,2))J=I(R,"]]>",J,"StopNode is not closed.")-2;else{const h=L(R,J,">");h&&((h&&h.tagName)===B&&"/"!==h.tagExp[h.tagExp.length-1]&&j++,J=h.closeIndex)}}function oe(R,B,J){if(B&&"string"==typeof R){const x=R.trim();return"true"===x||"false"!==x&&y(R,J)}return F.isExist(R)?R:""}it.exports=class E{constructor(B){this.options=B,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"\u20ac"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"\u20b9"}},this.addExternalEntities=b,this.parseXml=g,this.parseTextData=v,this.resolveNameSpace=C,this.buildAttributesMap=m,this.isItStopNode=V,this.replaceEntitiesValue=_,this.readStopNodeData=$,this.saveTextToParentTag=O,this.addChild=w}}},904:(it,P,X)=>{const{buildOptions:F}=X(136),M=X(748),{prettify:T}=X(448),y=X(632);it.exports=class D{constructor(b){this.externalEntities={},this.options=F(b)}parse(b,v){if("string"!=typeof b){if(!b.toString)throw new Error("XML data is accepted in String or Bytes[] form.");b=b.toString()}if(v){!0===v&&(v={});const m=y.validate(b,v);if(!0!==m)throw Error(`${m.err.msg}:${m.err.line}:${m.err.col}`)}const C=new M(this.options);C.addExternalEntities(this.externalEntities);const f=C.parseXml(b);return this.options.preserveOrder||void 0===f?f:T(f,this.options)}addEntity(b,v){if(-1!==v.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==b.indexOf("&")||-1!==b.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===v)throw new Error("An entity with value '&' is not permitted");this.externalEntities[b]=v}}},448:(it,P)=>{"use strict";function F(D,E,b){let v;const C={};for(let f=0;f0&&(C[E.textNodeName]=v):void 0!==v&&(C[E.textNodeName]=v),C}function M(D){const E=Object.keys(D);for(let b=0;b{"use strict";it.exports=class P{constructor(F){this.tagname=F,this.child=[],this[":@"]={}}add(F,M){"__proto__"===F&&(F="#__proto__"),this.child.push({[F]:M})}addChild(F){"__proto__"===F.tagname&&(F.tagname="#__proto__"),F[":@"]&&Object.keys(F[":@"]).length>0?this.child.push({[F.tagname]:F.child,":@":F[":@"]}):this.child.push({[F.tagname]:F.child})}}},880:function(it,P){var X,M;void 0!==(M="function"==typeof(X=function(){"use strict";function y(f,m,g){var w=new XMLHttpRequest;w.open("GET",f),w.responseType="blob",w.onload=function(){C(w.response,m,g)},w.onerror=function(){console.error("could not download file")},w.send()}function D(f){var m=new XMLHttpRequest;m.open("HEAD",f,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function E(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(m)}}var b="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,v=b.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=b.saveAs||("object"!=typeof window||window!==b?function(){}:"download"in HTMLAnchorElement.prototype&&!v?function(f,m,g){var w=b.URL||b.webkitURL,_=document.createElement("a");_.download=m=m||f.name||"download",_.rel="noopener","string"==typeof f?(_.href=f,_.origin===location.origin?E(_):D(_.href)?y(f,m,g):E(_,_.target="_blank")):(_.href=w.createObjectURL(f),setTimeout(function(){w.revokeObjectURL(_.href)},4e4),setTimeout(function(){E(_)},0))}:"msSaveOrOpenBlob"in navigator?function(f,m,g){if(m=m||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(function T(f,m){return typeof m>"u"?m={autoBom:!1}:"object"!=typeof m&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\ufeff",f],{type:f.type}):f}(f,g),m);else if(D(f))y(f,m,g);else{var w=document.createElement("a");w.href=f,w.target="_blank",setTimeout(function(){E(w)})}}:function(f,m,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof f)return y(f,m,g);var _="application/octet-stream"===f.type,O=/constructor/i.test(b.HTMLElement)||b.safari,V=/CriOS\/[\d]+/.test(navigator.userAgent);if((V||_&&O||v)&&typeof FileReader<"u"){var z=new FileReader;z.onloadend=function(){var $=z.result;$=V?$:$.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=$:location=$,w=null},z.readAsDataURL(f)}else{var I=b.URL||b.webkitURL,L=I.createObjectURL(f);w?w.location=L:location.href=L,w=null,setTimeout(function(){I.revokeObjectURL(L)},4e4)}});b.saveAs=C.saveAs=C,it.exports=C})?X.apply(P,[]):X)&&(it.exports=M)},304:it=>{it.exports=function P(X,F,M){function T(E,b){if(!F[E]){if(!X[E]){if(y)return y(E,!0);var C=new Error("Cannot find module '"+E+"'");throw C.code="MODULE_NOT_FOUND",C}var f=F[E]={exports:{}};X[E][0].call(f.exports,function(m){return T(X[E][1][m]||m)},f,f.exports,P,X,F,M)}return F[E].exports}for(var y=void 0,D=0;D>4,m=1>6:64,g=2>2)+y.charAt(f)+y.charAt(m)+y.charAt(g));return w.join("")},F.decode=function(D){var E,b,v,C,f,m,g=0,w=0,_="data:";if(D.substr(0,5)===_)throw new Error("Invalid base64 input, it looks like a data url.");var O,V=3*(D=D.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(D.charAt(D.length-1)===y.charAt(64)&&V--,D.charAt(D.length-2)===y.charAt(64)&&V--,V%1!=0)throw new Error("Invalid base64 input, bad content length.");for(O=T.uint8array?new Uint8Array(0|V):new Array(0|V);g>4,b=(15&C)<<4|(f=y.indexOf(D.charAt(g++)))>>2,v=(3&f)<<6|(m=y.indexOf(D.charAt(g++))),O[w++]=E,64!==f&&(O[w++]=b),64!==m&&(O[w++]=v);return O}},{"./support":30,"./utils":32}],2:[function(P,X,F){"use strict";var M=P("./external"),T=P("./stream/DataWorker"),y=P("./stream/Crc32Probe"),D=P("./stream/DataLengthProbe");function E(b,v,C,f,m){this.compressedSize=b,this.uncompressedSize=v,this.crc32=C,this.compression=f,this.compressedContent=m}E.prototype={getContentWorker:function(){var b=new T(M.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new D("data_length")),v=this;return b.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new T(M.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},E.createWorkerFrom=function(b,v,C){return b.pipe(new y).pipe(new D("uncompressedSize")).pipe(v.compressWorker(C)).pipe(new D("compressedSize")).withStreamInfo("compression",v)},X.exports=E},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(P,X,F){"use strict";var M=P("./stream/GenericWorker");F.STORE={magic:"\0\0",compressWorker:function(){return new M("STORE compression")},uncompressWorker:function(){return new M("STORE decompression")}},F.DEFLATE=P("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(P,X,F){"use strict";var M=P("./utils"),T=function(){for(var y,D=[],E=0;E<256;E++){y=E;for(var b=0;b<8;b++)y=1&y?3988292384^y>>>1:y>>>1;D[E]=y}return D}();X.exports=function(y,D){return void 0!==y&&y.length?"string"!==M.getTypeOf(y)?function(E,b,v,C){var f=T,m=0+v;E^=-1;for(var g=0;g>>8^f[255&(E^b[g])];return-1^E}(0|D,y,y.length):function(E,b,v,C){var f=T,m=0+v;E^=-1;for(var g=0;g>>8^f[255&(E^b.charCodeAt(g))];return-1^E}(0|D,y,y.length):0}},{"./utils":32}],5:[function(P,X,F){"use strict";F.base64=!1,F.binary=!1,F.dir=!1,F.createFolders=!0,F.date=null,F.compression=null,F.compressionOptions=null,F.comment=null,F.unixPermissions=null,F.dosPermissions=null},{}],6:[function(P,X,F){"use strict";var M;M=typeof Promise<"u"?Promise:P("lie"),X.exports={Promise:M}},{lie:37}],7:[function(P,X,F){"use strict";var M=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",T=P("pako"),y=P("./utils"),D=P("./stream/GenericWorker"),E=M?"uint8array":"array";function b(v,C){D.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=C,this.meta={}}F.magic="\b\0",y.inherits(b,D),b.prototype.processChunk=function(v){this.meta=v.meta,null===this._pako&&this._createPako(),this._pako.push(y.transformTo(E,v.data),!1)},b.prototype.flush=function(){D.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){D.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new T[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(C){v.push({data:C,meta:v.meta})}},F.compressWorker=function(v){return new b("Deflate",v)},F.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(P,X,F){"use strict";function M(f,m){var g,w="";for(g=0;g>>=8;return w}function T(f,m,g,w,_,O){var V,z,I=f.file,L=f.compression,$=O!==E.utf8encode,oe=y.transformTo("string",O(I.name)),R=y.transformTo("string",E.utf8encode(I.name)),B=I.comment,J=y.transformTo("string",O(B)),x=y.transformTo("string",E.utf8encode(B)),j=R.length!==I.name.length,h=x.length!==B.length,Q="",ae="",G="",De=I.dir,re=I.date,Se={crc32:0,compressedSize:0,uncompressedSize:0};m&&!g||(Se.crc32=f.crc32,Se.compressedSize=f.compressedSize,Se.uncompressedSize=f.uncompressedSize);var K=0;m&&(K|=8),$||!j&&!h||(K|=2048);var ve,$t,Y=0,Ce=0;De&&(Y|=16),"UNIX"===_?(Ce=798,Y|=($t=ve=I.unixPermissions,ve||($t=De?16893:33204),(65535&$t)<<16)):(Ce=20,Y|=function(ve){return 63&(ve||0)}(I.dosPermissions)),V=re.getUTCHours(),V<<=6,V|=re.getUTCMinutes(),V<<=5,V|=re.getUTCSeconds()/2,z=re.getUTCFullYear()-1980,z<<=4,z|=re.getUTCMonth()+1,z<<=5,z|=re.getUTCDate(),j&&(ae=M(1,1)+M(b(oe),4)+R,Q+="up"+M(ae.length,2)+ae),h&&(G=M(1,1)+M(b(J),4)+x,Q+="uc"+M(G.length,2)+G);var ye="";return ye+="\n\0",ye+=M(K,2),ye+=L.magic,ye+=M(V,2),ye+=M(z,2),ye+=M(Se.crc32,4),ye+=M(Se.compressedSize,4),ye+=M(Se.uncompressedSize,4),ye+=M(oe.length,2),ye+=M(Q.length,2),{fileRecord:v.LOCAL_FILE_HEADER+ye+oe+Q,dirRecord:v.CENTRAL_FILE_HEADER+M(Ce,2)+ye+M(J.length,2)+"\0\0\0\0"+M(Y,4)+M(w,4)+oe+Q+J}}var y=P("../utils"),D=P("../stream/GenericWorker"),E=P("../utf8"),b=P("../crc32"),v=P("../signature");function C(f,m,g,w){D.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=g,this.encodeFileName=w,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}y.inherits(C,D),C.prototype.push=function(f){var m=f.meta.percent||0,g=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,D.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(m+100*(g-w-1))/g:100}}))},C.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var m=this.streamFiles&&!f.file.dir;if(m){var g=T(f,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},C.prototype.closedSource=function(f){this.accumulate=!1;var w,m=this.streamFiles&&!f.file.dir,g=T(f,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),m)this.push({data:(w=f,v.DATA_DESCRIPTOR+M(w.crc32,4)+M(w.compressedSize,4)+M(w.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},C.prototype.flush=function(){for(var f=this.bytesWritten,m=0;m=this.index;D--)E=(E<<8)+this.byteAt(D);return this.index+=y,E},readString:function(y){return M.transformTo("string",this.readData(y))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var y=this.readInt(4);return new Date(Date.UTC(1980+(y>>25&127),(y>>21&15)-1,y>>16&31,y>>11&31,y>>5&63,(31&y)<<1))}},X.exports=T},{"../utils":32}],19:[function(P,X,F){"use strict";var M=P("./Uint8ArrayReader");function T(y){M.call(this,y)}P("../utils").inherits(T,M),T.prototype.readData=function(y){this.checkOffset(y);var D=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,D},X.exports=T},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(P,X,F){"use strict";var M=P("./DataReader");function T(y){M.call(this,y)}P("../utils").inherits(T,M),T.prototype.byteAt=function(y){return this.data.charCodeAt(this.zero+y)},T.prototype.lastIndexOfSignature=function(y){return this.data.lastIndexOf(y)-this.zero},T.prototype.readAndCheckSignature=function(y){return y===this.readData(4)},T.prototype.readData=function(y){this.checkOffset(y);var D=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,D},X.exports=T},{"../utils":32,"./DataReader":18}],21:[function(P,X,F){"use strict";var M=P("./ArrayReader");function T(y){M.call(this,y)}P("../utils").inherits(T,M),T.prototype.readData=function(y){if(this.checkOffset(y),0===y)return new Uint8Array(0);var D=this.data.subarray(this.zero+this.index,this.zero+this.index+y);return this.index+=y,D},X.exports=T},{"../utils":32,"./ArrayReader":17}],22:[function(P,X,F){"use strict";var M=P("../utils"),T=P("../support"),y=P("./ArrayReader"),D=P("./StringReader"),E=P("./NodeBufferReader"),b=P("./Uint8ArrayReader");X.exports=function(v){var C=M.getTypeOf(v);return M.checkSupport(C),"string"!==C||T.uint8array?"nodebuffer"===C?new E(v):T.uint8array?new b(M.transformTo("uint8array",v)):new y(M.transformTo("array",v)):new D(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(P,X,F){"use strict";F.LOCAL_FILE_HEADER="PK\x03\x04",F.CENTRAL_FILE_HEADER="PK\x01\x02",F.CENTRAL_DIRECTORY_END="PK\x05\x06",F.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",F.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",F.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(P,X,F){"use strict";var M=P("./GenericWorker"),T=P("../utils");function y(D){M.call(this,"ConvertWorker to "+D),this.destType=D}T.inherits(y,M),y.prototype.processChunk=function(D){this.push({data:T.transformTo(this.destType,D.data),meta:D.meta})},X.exports=y},{"../utils":32,"./GenericWorker":28}],25:[function(P,X,F){"use strict";var M=P("./GenericWorker"),T=P("../crc32");function y(){M.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}P("../utils").inherits(y,M),y.prototype.processChunk=function(D){this.streamInfo.crc32=T(D.data,this.streamInfo.crc32||0),this.push(D)},X.exports=y},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(P,X,F){"use strict";var M=P("../utils"),T=P("./GenericWorker");function y(D){T.call(this,"DataLengthProbe for "+D),this.propName=D,this.withStreamInfo(D,0)}M.inherits(y,T),y.prototype.processChunk=function(D){D&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+D.data.length),T.prototype.processChunk.call(this,D)},X.exports=y},{"../utils":32,"./GenericWorker":28}],27:[function(P,X,F){"use strict";var M=P("../utils"),T=P("./GenericWorker");function y(D){T.call(this,"DataWorker");var E=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,D.then(function(b){E.dataIsReady=!0,E.data=b,E.max=b&&b.length||0,E.type=M.getTypeOf(b),E.isPaused||E._tickAndRepeat()},function(b){E.error(b)})}M.inherits(y,T),y.prototype.cleanUp=function(){T.prototype.cleanUp.call(this),this.data=null},y.prototype.resume=function(){return!!T.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,M.delay(this._tickAndRepeat,[],this)),!0)},y.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(M.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},y.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var D=null,E=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":D=this.data.substring(this.index,E);break;case"uint8array":D=this.data.subarray(this.index,E);break;case"array":case"nodebuffer":D=this.data.slice(this.index,E)}return this.index=E,this.push({data:D,meta:{percent:this.max?this.index/this.max*100:0}})},X.exports=y},{"../utils":32,"./GenericWorker":28}],28:[function(P,X,F){"use strict";function M(T){this.name=T||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}M.prototype={push:function(T){this.emit("data",T)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(T){this.emit("error",T)}return!0},error:function(T){return!this.isFinished&&(this.isPaused?this.generatedError=T:(this.isFinished=!0,this.emit("error",T),this.previous&&this.previous.error(T),this.cleanUp()),!0)},on:function(T,y){return this._listeners[T].push(y),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(T,y){if(this._listeners[T])for(var D=0;D "+T:T}},X.exports=M},{}],29:[function(P,X,F){"use strict";var M=P("../utils"),T=P("./ConvertWorker"),y=P("./GenericWorker"),D=P("../base64"),E=P("../support"),b=P("../external"),v=null;if(E.nodestream)try{v=P("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(m,g,w){var _=g;switch(g){case"blob":case"arraybuffer":_="uint8array";break;case"base64":_="string"}try{this._internalType=_,this._outputType=g,this._mimeType=w,M.checkSupport(_),this._worker=m.pipe(new T(_)),m.lock()}catch(O){this._worker=new y("error"),this._worker.error(O)}}f.prototype={accumulate:function(m){return function C(m,g){return new b.Promise(function(w,_){var O=[],V=m._internalType,z=m._outputType,I=m._mimeType;m.on("data",function(L,$){O.push(L),g&&g($)}).on("error",function(L){O=[],_(L)}).on("end",function(){try{var L=function($,oe,R){switch($){case"blob":return M.newBlob(M.transformTo("arraybuffer",oe),R);case"base64":return D.encode(oe);default:return M.transformTo($,oe)}}(z,function($,oe){var R,B=0,J=null,x=0;for(R=0;R"u")F.blob=!1;else{var M=new ArrayBuffer(0);try{F.blob=0===new Blob([M],{type:"application/zip"}).size}catch{try{var T=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);T.append(M),F.blob=0===T.getBlob("application/zip").size}catch{F.blob=!1}}}try{F.nodestream=!!P("readable-stream").Readable}catch{F.nodestream=!1}},{"readable-stream":16}],31:[function(P,X,F){"use strict";for(var M=P("./utils"),T=P("./support"),y=P("./nodejsUtils"),D=P("./stream/GenericWorker"),E=new Array(256),b=0;b<256;b++)E[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;function v(){D.call(this,"utf-8 decode"),this.leftOver=null}function C(){D.call(this,"utf-8 encode")}E[254]=E[254]=1,F.utf8encode=function(f){return T.nodebuffer?y.newBufferFrom(f,"utf-8"):function(m){var g,w,_,O,V,z=m.length,I=0;for(O=0;O>>6:(w<65536?g[V++]=224|w>>>12:(g[V++]=240|w>>>18,g[V++]=128|w>>>12&63),g[V++]=128|w>>>6&63),g[V++]=128|63&w);return g}(f)},F.utf8decode=function(f){return T.nodebuffer?M.transformTo("nodebuffer",f).toString("utf-8"):function(m){var g,w,_,O,V=m.length,z=new Array(2*V);for(g=w=0;g>10&1023,z[w++]=56320|1023&_)}return z.length!==w&&(z.subarray?z=z.subarray(0,w):z.length=w),M.applyFromCharCode(z)}(f=M.transformTo(T.uint8array?"uint8array":"array",f))},M.inherits(v,D),v.prototype.processChunk=function(f){var m=M.transformTo(T.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(T.uint8array){var g=m;(m=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),m.set(g,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var w=function(O,V){var z;for((V=V||O.length)>O.length&&(V=O.length),z=V-1;0<=z&&128==(192&O[z]);)z--;return z<0||0===z?V:z+E[O[z]]>V?z:V}(m),_=m;w!==m.length&&(T.uint8array?(_=m.subarray(0,w),this.leftOver=m.subarray(w,m.length)):(_=m.slice(0,w),this.leftOver=m.slice(w,m.length))),this.push({data:F.utf8decode(_),meta:f.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:F.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},F.Utf8DecodeWorker=v,M.inherits(C,D),C.prototype.processChunk=function(f){this.push({data:F.utf8encode(f.data),meta:f.meta})},F.Utf8EncodeWorker=C},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(P,X,F){"use strict";var M=P("./support"),T=P("./base64"),y=P("./nodejsUtils"),D=P("./external");function E(g){return g}function b(g,w){for(var _=0;_>8;this.dir=!!(16&this.externalFileAttributes),0==f&&(this.dosPermissions=63&this.externalFileAttributes),3==f&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=M(this.extraFields[1].value);this.uncompressedSize===T.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===T.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===T.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===T.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var m,g,w,_=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<_;)m=f.readInt(2),g=f.readInt(2),w=f.readData(g),this.extraFields[m]={id:m,length:g,value:w};f.setIndex(_)},handleUTF8:function(){var f=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=E.utf8decode(this.fileName),this.fileCommentStr=E.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(null!==m)this.fileNameStr=m;else{var g=T.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var w=this.findExtraFieldUnicodeComment();if(null!==w)this.fileCommentStr=w;else{var _=T.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(_)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var m=M(f.value);return 1!==m.readInt(1)||D(this.fileName)!==m.readInt(4)?null:E.utf8decode(m.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var m=M(f.value);return 1!==m.readInt(1)||D(this.fileComment)!==m.readInt(4)?null:E.utf8decode(m.readData(f.length-5))}return null}},X.exports=C},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(P,X,F){"use strict";function M(m,g,w){this.name=m,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=g,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var T=P("./stream/StreamHelper"),y=P("./stream/DataWorker"),D=P("./utf8"),E=P("./compressedObject"),b=P("./stream/GenericWorker");M.prototype={internalStream:function(m){var g=null,w="string";try{if(!m)throw new Error("No output type specified.");var _="string"===(w=m.toLowerCase())||"text"===w;"binarystring"!==w&&"text"!==w||(w="string"),g=this._decompressWorker();var O=!this._dataBinary;O&&!_&&(g=g.pipe(new D.Utf8EncodeWorker)),!O&&_&&(g=g.pipe(new D.Utf8DecodeWorker))}catch(V){(g=new b("error")).error(V)}return new T(g,w,"")},async:function(m,g){return this.internalStream(m).accumulate(g)},nodeStream:function(m,g){return this.internalStream(m||"nodebuffer").toNodejsStream(g)},_compressWorker:function(m,g){if(this._data instanceof E&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new D.Utf8EncodeWorker)),E.createWorkerFrom(w,m,g)},_decompressWorker:function(){return this._data instanceof E?this._data.getContentWorker():this._data instanceof b?this._data:new y(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],C=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f>>6:(f<65536?C[w++]=224|f>>>12:(C[w++]=240|f>>>18,C[w++]=128|f>>>12&63),C[w++]=128|f>>>6&63),C[w++]=128|63&f);return C},F.buf2binstring=function(v){return b(v,v.length)},F.binstring2buf=function(v){for(var C=new M.Buf8(v.length),f=0,m=C.length;f>10&1023,O[m++]=56320|1023&g)}return b(O,m)},F.utf8border=function(v,C){var f;for((C=C||v.length)>v.length&&(C=v.length),f=C-1;0<=f&&128==(192&v[f]);)f--;return f<0||0===f?C:f+D[v[f]]>C?f:C}},{"./common":41}],43:[function(P,X,F){"use strict";X.exports=function(M,T,y,D){for(var E=65535&M|0,b=M>>>16&65535|0,v=0;0!==y;){for(y-=v=2e3>>1:T>>>1;y[D]=T}return y}();X.exports=function(T,y,D,E){var b=M,v=E+D;T^=-1;for(var C=E;C>>8^b[255&(T^y[C])];return-1^T}},{}],46:[function(P,X,F){"use strict";var M,T=P("../utils/common"),y=P("./trees"),D=P("./adler32"),E=P("./crc32"),b=P("./messages"),v=0,f=0,m=-2,_=2,O=8,z=286,I=30,L=19,$=2*z+1,oe=15,R=3,B=258,J=B+R+1,x=42,j=113;function De(p,se){return p.msg=b[se],se}function re(p){return(p<<1)-(4p.avail_out&&(W=p.avail_out),0!==W&&(T.arraySet(p.output,se.pending_buf,se.pending_out,W,p.next_out),p.next_out+=W,se.pending_out+=W,p.total_out+=W,p.avail_out-=W,se.pending-=W,0===se.pending&&(se.pending_out=0))}function Y(p,se){y._tr_flush_block(p,0<=p.block_start?p.block_start:-1,p.strstart-p.block_start,se),p.block_start=p.strstart,K(p.strm)}function Ce(p,se){p.pending_buf[p.pending++]=se}function ye(p,se){p.pending_buf[p.pending++]=se>>>8&255,p.pending_buf[p.pending++]=255&se}function ve(p,se){var W,k,A=p.max_chain_length,H=p.strstart,ie=p.prev_length,de=p.nice_match,q=p.strstart>p.w_size-J?p.strstart-(p.w_size-J):0,pe=p.window,we=p.w_mask,ge=p.prev,Me=p.strstart+B,tt=pe[H+ie-1],Ze=pe[H+ie];p.prev_length>=p.good_match&&(A>>=2),de>p.lookahead&&(de=p.lookahead);do{if(pe[(W=se)+ie]===Ze&&pe[W+ie-1]===tt&&pe[W]===pe[H]&&pe[++W]===pe[H+1]){H+=2,W++;do{}while(pe[++H]===pe[++W]&&pe[++H]===pe[++W]&&pe[++H]===pe[++W]&&pe[++H]===pe[++W]&&pe[++H]===pe[++W]&&pe[++H]===pe[++W]&&pe[++H]===pe[++W]&&pe[++H]===pe[++W]&&Hq&&0!=--A);return ie<=p.lookahead?ie:p.lookahead}function _t(p){var se,W,k,A,H,ie,de,q,pe,we,ge=p.w_size;do{if(A=p.window_size-p.lookahead-p.strstart,p.strstart>=ge+(ge-J)){for(T.arraySet(p.window,p.window,ge,ge,0),p.match_start-=ge,p.strstart-=ge,p.block_start-=ge,se=W=p.hash_size;k=p.head[--se],p.head[se]=ge<=k?k-ge:0,--W;);for(se=W=ge;k=p.prev[--se],p.prev[se]=ge<=k?k-ge:0,--W;);A+=ge}if(0===p.strm.avail_in)break;if(de=p.window,q=p.strstart+p.lookahead,we=void 0,(pe=A)<(we=(ie=p.strm).avail_in)&&(we=pe),W=0===we?0:(ie.avail_in-=we,T.arraySet(de,ie.input,ie.next_in,we,q),1===ie.state.wrap?ie.adler=D(ie.adler,de,we,q):2===ie.state.wrap&&(ie.adler=E(ie.adler,de,we,q)),ie.next_in+=we,ie.total_in+=we,we),p.lookahead+=W,p.lookahead+p.insert>=R)for(p.ins_h=p.window[H=p.strstart-p.insert],p.ins_h=(p.ins_h<=R&&(p.ins_h=(p.ins_h<=R)if(k=y._tr_tally(p,p.strstart-p.match_start,p.match_length-R),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=R){for(p.match_length--;p.strstart++,p.ins_h=(p.ins_h<=R&&(p.ins_h=(p.ins_h<=R&&p.match_length<=p.prev_length){for(A=p.strstart+p.lookahead-R,k=y._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-R),p.lookahead-=p.prev_length-1,p.prev_length-=2;++p.strstart<=A&&(p.ins_h=(p.ins_h<p.pending_buf_size-5&&(W=p.pending_buf_size-5);;){if(p.lookahead<=1){if(_t(p),0===p.lookahead&&se===v)return 1;if(0===p.lookahead)break}p.strstart+=p.lookahead,p.lookahead=0;var k=p.block_start+W;if((0===p.strstart||p.strstart>=k)&&(p.lookahead=p.strstart-k,p.strstart=k,Y(p,!1),0===p.strm.avail_out)||p.strstart-p.block_start>=p.w_size-J&&(Y(p,!1),0===p.strm.avail_out))return 1}return p.insert=0,4===se?(Y(p,!0),0===p.strm.avail_out?3:4):(p.strstart>p.block_start&&Y(p,!1),1)}),new Xe(4,4,8,4,$t),new Xe(4,5,16,8,$t),new Xe(4,6,32,32,$t),new Xe(4,4,16,16,qe),new Xe(8,16,32,32,qe),new Xe(8,16,128,128,qe),new Xe(8,32,128,256,qe),new Xe(32,128,258,1024,qe),new Xe(32,258,258,4096,qe)],F.deflateInit=function(p,se){return cn(p,se,O,15,8,0)},F.deflateInit2=cn,F.deflateReset=jn,F.deflateResetKeep=yt,F.deflateSetHeader=function(p,se){return p&&p.state?2!==p.state.wrap?m:(p.state.gzhead=se,f):m},F.deflate=function(p,se){var W,k,A,H;if(!p||!p.state||5>8&255),Ce(k,k.gzhead.time>>16&255),Ce(k,k.gzhead.time>>24&255),Ce(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Ce(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(Ce(k,255&k.gzhead.extra.length),Ce(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(p.adler=E(p.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(Ce(k,0),Ce(k,0),Ce(k,0),Ce(k,0),Ce(k,0),Ce(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Ce(k,3),k.status=j);else{var ie=O+(k.w_bits-8<<4)<<8;ie|=(2<=k.strategy||k.level<2?0:k.level<6?1:6===k.level?2:3)<<6,0!==k.strstart&&(ie|=32),ie+=31-ie%31,k.status=j,ye(k,ie),0!==k.strstart&&(ye(k,p.adler>>>16),ye(k,65535&p.adler)),p.adler=1}if(69===k.status)if(k.gzhead.extra){for(A=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),K(p),A=k.pending,k.pending!==k.pending_buf_size));)Ce(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(73===k.status)if(k.gzhead.name){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),K(p),A=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexA&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),0===H&&(k.gzindex=0,k.status=91)}else k.status=91;if(91===k.status)if(k.gzhead.comment){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),K(p),A=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexA&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),0===H&&(k.status=103)}else k.status=103;if(103===k.status&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&K(p),k.pending+2<=k.pending_buf_size&&(Ce(k,255&p.adler),Ce(k,p.adler>>8&255),p.adler=0,k.status=j)):k.status=j),0!==k.pending){if(K(p),0===p.avail_out)return k.last_flush=-1,f}else if(0===p.avail_in&&re(se)<=re(W)&&4!==se)return De(p,-5);if(666===k.status&&0!==p.avail_in)return De(p,-5);if(0!==p.avail_in||0!==k.lookahead||se!==v&&666!==k.status){var de=2===k.strategy?function(q,pe){for(var we;;){if(0===q.lookahead&&(_t(q),0===q.lookahead)){if(pe===v)return 1;break}if(q.match_length=0,we=y._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,we&&(Y(q,!1),0===q.strm.avail_out))return 1}return q.insert=0,4===pe?(Y(q,!0),0===q.strm.avail_out?3:4):q.last_lit&&(Y(q,!1),0===q.strm.avail_out)?1:2}(k,se):3===k.strategy?function(q,pe){for(var we,ge,Me,tt,Ze=q.window;;){if(q.lookahead<=B){if(_t(q),q.lookahead<=B&&pe===v)return 1;if(0===q.lookahead)break}if(q.match_length=0,q.lookahead>=R&&0q.lookahead&&(q.match_length=q.lookahead)}if(q.match_length>=R?(we=y._tr_tally(q,1,q.match_length-R),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(we=y._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),we&&(Y(q,!1),0===q.strm.avail_out))return 1}return q.insert=0,4===pe?(Y(q,!0),0===q.strm.avail_out?3:4):q.last_lit&&(Y(q,!1),0===q.strm.avail_out)?1:2}(k,se):M[k.level].func(k,se);if(3!==de&&4!==de||(k.status=666),1===de||3===de)return 0===p.avail_out&&(k.last_flush=-1),f;if(2===de&&(1===se?y._tr_align(k):5!==se&&(y._tr_stored_block(k,0,0,!1),3===se&&(Se(k.head),0===k.lookahead&&(k.strstart=0,k.block_start=0,k.insert=0))),K(p),0===p.avail_out))return k.last_flush=-1,f}return 4!==se?f:k.wrap<=0?1:(2===k.wrap?(Ce(k,255&p.adler),Ce(k,p.adler>>8&255),Ce(k,p.adler>>16&255),Ce(k,p.adler>>24&255),Ce(k,255&p.total_in),Ce(k,p.total_in>>8&255),Ce(k,p.total_in>>16&255),Ce(k,p.total_in>>24&255)):(ye(k,p.adler>>>16),ye(k,65535&p.adler)),K(p),0=W.w_size&&(0===H&&(Se(W.head),W.strstart=0,W.block_start=0,W.insert=0),pe=new T.Buf8(W.w_size),T.arraySet(pe,se,we-W.w_size,W.w_size,0),se=pe,we=W.w_size),ie=p.avail_in,de=p.next_in,q=p.input,p.avail_in=we,p.next_in=0,p.input=se,_t(W);W.lookahead>=R;){for(k=W.strstart,A=W.lookahead-(R-1);W.ins_h=(W.ins_h<>>=R=oe>>>24,V-=R,0==(R=oe>>>16&255))Q[b++]=65535&oe;else{if(!(16&R)){if(!(64&R)){oe=z[(65535&oe)+(O&(1<>>=R,V-=R),V<15&&(O+=h[D++]<>>=R=oe>>>24,V-=R,!(16&(R=oe>>>16&255))){if(!(64&R)){oe=I[(65535&oe)+(O&(1<>>=R,V-=R,(R=b-v)>3,O&=(1<<(V-=B<<3))-1,M.next_in=D,M.next_out=b,M.avail_in=D>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function O(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new M.Buf16(320),this.work=new M.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function V(x){var j;return x&&x.state?(x.total_in=x.total_out=(j=x.state).total=0,x.msg="",j.wrap&&(x.adler=1&j.wrap),j.mode=m,j.last=0,j.havedict=0,j.dmax=32768,j.head=null,j.hold=0,j.bits=0,j.lencode=j.lendyn=new M.Buf32(g),j.distcode=j.distdyn=new M.Buf32(w),j.sane=1,j.back=-1,C):f}function z(x){var j;return x&&x.state?((j=x.state).wsize=0,j.whave=0,j.wnext=0,V(x)):f}function I(x,j){var h,Q;return x&&x.state?(Q=x.state,j<0?(h=0,j=-j):(h=1+(j>>4),j<48&&(j&=15)),j&&(j<8||15=G.wsize?(M.arraySet(G.window,j,h-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(Q<(ae=G.wsize-G.wnext)&&(ae=Q),M.arraySet(G.window,j,h-Q,ae,G.wnext),(Q-=ae)?(M.arraySet(G.window,j,h-Q,Q,0),G.wnext=Q,G.whave=G.wsize):(G.wnext+=ae,G.wnext===G.wsize&&(G.wnext=0),G.whave>>8&255,h.check=y(h.check,H,2,0),Y=K=0,h.mode=2;break}if(h.flags=0,h.head&&(h.head.done=!1),!(1&h.wrap)||(((255&K)<<8)+(K>>8))%31){x.msg="incorrect header check",h.mode=30;break}if(8!=(15&K)){x.msg="unknown compression method",h.mode=30;break}if(Y-=4,p=8+(15&(K>>>=4)),0===h.wbits)h.wbits=p;else if(p>h.wbits){x.msg="invalid window size",h.mode=30;break}h.dmax=1<>8&1),512&h.flags&&(H[0]=255&K,H[1]=K>>>8&255,h.check=y(h.check,H,2,0)),Y=K=0,h.mode=3;case 3:for(;Y<32;){if(0===re)break e;re--,K+=Q[G++]<>>8&255,H[2]=K>>>16&255,H[3]=K>>>24&255,h.check=y(h.check,H,4,0)),Y=K=0,h.mode=4;case 4:for(;Y<16;){if(0===re)break e;re--,K+=Q[G++]<>8),512&h.flags&&(H[0]=255&K,H[1]=K>>>8&255,h.check=y(h.check,H,2,0)),Y=K=0,h.mode=5;case 5:if(1024&h.flags){for(;Y<16;){if(0===re)break e;re--,K+=Q[G++]<>>8&255,h.check=y(h.check,H,2,0)),Y=K=0}else h.head&&(h.head.extra=null);h.mode=6;case 6:if(1024&h.flags&&(re<(ve=h.length)&&(ve=re),ve&&(h.head&&(p=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),M.arraySet(h.head.extra,Q,G,ve,p)),512&h.flags&&(h.check=y(h.check,Q,ve,G)),re-=ve,G+=ve,h.length-=ve),h.length))break e;h.length=0,h.mode=7;case 7:if(2048&h.flags){if(0===re)break e;for(ve=0;p=Q[G+ve++],h.head&&p&&h.length<65536&&(h.head.name+=String.fromCharCode(p)),p&&ve>9&1,h.head.done=!0),x.adler=h.check=0,h.mode=12;break;case 10:for(;Y<32;){if(0===re)break e;re--,K+=Q[G++]<>>=7&Y,Y-=7&Y,h.mode=27;break}for(;Y<3;){if(0===re)break e;re--,K+=Q[G++]<>>=1)){case 0:h.mode=14;break;case 1:if(B(h),h.mode=20,6!==j)break;K>>>=2,Y-=2;break e;case 2:h.mode=17;break;case 3:x.msg="invalid block type",h.mode=30}K>>>=2,Y-=2;break;case 14:for(K>>>=7&Y,Y-=7&Y;Y<32;){if(0===re)break e;re--,K+=Q[G++]<>>16^65535)){x.msg="invalid stored block lengths",h.mode=30;break}if(h.length=65535&K,Y=K=0,h.mode=15,6===j)break e;case 15:h.mode=16;case 16:if(ve=h.length){if(re>>=5)),Y-=5,h.ncode=4+(15&(K>>>=5)),K>>>=4,Y-=4,286>>=3,Y-=3}for(;h.have<19;)h.lens[ie[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,se=E(0,h.lens,0,19,h.lencode,0,h.work,W={bits:h.lenbits}),h.lenbits=W.bits,se){x.msg="invalid code lengths set",h.mode=30;break}h.have=0,h.mode=19;case 19:for(;h.have>>16&255,Mt=65535&A,!((qe=A>>>24)<=Y);){if(0===re)break e;re--,K+=Q[G++]<>>=qe,Y-=qe,h.lens[h.have++]=Mt;else{if(16===Mt){for(k=qe+2;Y>>=qe,Y-=qe,0===h.have){x.msg="invalid bit length repeat",h.mode=30;break}p=h.lens[h.have-1],ve=3+(3&K),K>>>=2,Y-=2}else if(17===Mt){for(k=qe+3;Y>>=qe)),K>>>=3,Y-=3}else{for(k=qe+7;Y>>=qe)),K>>>=7,Y-=7}if(h.have+ve>h.nlen+h.ndist){x.msg="invalid bit length repeat",h.mode=30;break}for(;ve--;)h.lens[h.have++]=p}}if(30===h.mode)break;if(0===h.lens[256]){x.msg="invalid code -- missing end-of-block",h.mode=30;break}if(h.lenbits=9,se=E(1,h.lens,0,h.nlen,h.lencode,0,h.work,W={bits:h.lenbits}),h.lenbits=W.bits,se){x.msg="invalid literal/lengths set",h.mode=30;break}if(h.distbits=6,h.distcode=h.distdyn,se=E(2,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,W={bits:h.distbits}),h.distbits=W.bits,se){x.msg="invalid distances set",h.mode=30;break}if(h.mode=20,6===j)break e;case 20:h.mode=21;case 21:if(6<=re&&258<=Se){x.next_out=De,x.avail_out=Se,x.next_in=G,x.avail_in=re,h.hold=K,h.bits=Y,D(x,ye),De=x.next_out,ae=x.output,Se=x.avail_out,G=x.next_in,Q=x.input,re=x.avail_in,K=h.hold,Y=h.bits,12===h.mode&&(h.back=-1);break}for(h.back=0;Xe=(A=h.lencode[K&(1<>>16&255,Mt=65535&A,!((qe=A>>>24)<=Y);){if(0===re)break e;re--,K+=Q[G++]<>yt)])>>>16&255,Mt=65535&A,!(yt+(qe=A>>>24)<=Y);){if(0===re)break e;re--,K+=Q[G++]<>>=yt,Y-=yt,h.back+=yt}if(K>>>=qe,Y-=qe,h.back+=qe,h.length=Mt,0===Xe){h.mode=26;break}if(32&Xe){h.back=-1,h.mode=12;break}if(64&Xe){x.msg="invalid literal/length code",h.mode=30;break}h.extra=15&Xe,h.mode=22;case 22:if(h.extra){for(k=h.extra;Y>>=h.extra,Y-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=23;case 23:for(;Xe=(A=h.distcode[K&(1<>>16&255,Mt=65535&A,!((qe=A>>>24)<=Y);){if(0===re)break e;re--,K+=Q[G++]<>yt)])>>>16&255,Mt=65535&A,!(yt+(qe=A>>>24)<=Y);){if(0===re)break e;re--,K+=Q[G++]<>>=yt,Y-=yt,h.back+=yt}if(K>>>=qe,Y-=qe,h.back+=qe,64&Xe){x.msg="invalid distance code",h.mode=30;break}h.offset=Mt,h.extra=15&Xe,h.mode=24;case 24:if(h.extra){for(k=h.extra;Y>>=h.extra,Y-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){x.msg="invalid distance too far back",h.mode=30;break}h.mode=25;case 25:if(0===Se)break e;if(h.offset>(ve=ye-Se)){if((ve=h.offset-ve)>h.whave&&h.sane){x.msg="invalid distance too far back",h.mode=30;break}_t=ve>h.wnext?h.wsize-(ve-=h.wnext):h.wnext-ve,ve>h.length&&(ve=h.length),$t=h.window}else $t=ae,_t=De-h.offset,ve=h.length;for(Se$?(R=_t[$t+w[j]],Y[Ce+w[j]]):(R=96,0),O=1<>De)+(V-=O)]=oe<<24|R<<16|B|0,0!==V;);for(O=1<>=1;if(0!==O?(K&=O-1,K+=O):K=0,j++,0==--ye[x]){if(x===Q)break;x=v[C+w[j]]}if(ae>>7)]}function Ce(A,H){A.pending_buf[A.pending++]=255&H,A.pending_buf[A.pending++]=H>>>8&255}function ye(A,H,ie){A.bi_valid>_-ie?(A.bi_buf|=H<>_-A.bi_valid,A.bi_valid+=ie-_):(A.bi_buf|=H<>>=1,ie<<=1,0<--H;);return ie>>>1}function $t(A,H,ie){var de,q,pe=new Array(w+1),we=0;for(de=1;de<=w;de++)pe[de]=we=we+ie[de-1]<<1;for(q=0;q<=H;q++){var ge=A[2*q+1];0!==ge&&(A[2*q]=_t(pe[ge]++,ge))}}function qe(A){var H;for(H=0;H>1;1<=ie;ie--)yt(A,pe,ie);for(q=Me;ie=A.heap[1],A.heap[1]=A.heap[A.heap_len--],yt(A,pe,1),de=A.heap[1],A.heap[--A.heap_max]=ie,A.heap[--A.heap_max]=de,pe[2*q]=pe[2*ie]+pe[2*de],A.depth[q]=(A.depth[ie]>=A.depth[de]?A.depth[ie]:A.depth[de])+1,pe[2*ie+1]=pe[2*de+1]=q,A.heap[1]=q++,yt(A,pe,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(Ze,dn){var pi,fn,bn,dt,ji,gi,Un=dn.dyn_tree,Ui=dn.max_code,Ic=dn.stat_desc.static_tree,hs=dn.stat_desc.has_stree,$i=dn.stat_desc.extra_bits,Ga=dn.stat_desc.extra_base,br=dn.stat_desc.max_length,Hi=0;for(dt=0;dt<=w;dt++)Ze.bl_count[dt]=0;for(Un[2*Ze.heap[Ze.heap_max]+1]=0,pi=Ze.heap_max+1;pi<573;pi++)br<(dt=Un[2*Un[2*(fn=Ze.heap[pi])+1]+1]+1)&&(dt=br,Hi++),Un[2*fn+1]=dt,Ui>=7;q>>=1)if(1&tt&&0!==ge.dyn_ltree[2*Me])return 0;if(0!==ge.dyn_ltree[18]||0!==ge.dyn_ltree[20]||0!==ge.dyn_ltree[26])return 1;for(Me=32;Me>>3)<=(q=A.opt_len+3+7>>>3)&&(q=pe)):q=pe=ie+5,ie+4<=q&&-1!==H?k(A,H,ie,de):4===A.strategy||pe===q?(ye(A,2+(de?1:0),3),jn(A,J,x)):(ye(A,4+(de?1:0),3),function(ge,Me,tt,Ze){var dn;for(ye(ge,Me-257,5),ye(ge,tt-1,5),ye(ge,Ze-4,4),dn=0;dn>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&H,A.pending_buf[A.l_buf+A.last_lit]=255&ie,A.last_lit++,0===H?A.dyn_ltree[2*ie]++:(A.matches++,H--,A.dyn_ltree[2*(h[ie]+v+1)]++,A.dyn_dtree[2*Y(H)]++),A.last_lit===A.lit_bufsize-1},F._tr_align=function(A){var H;ye(A,2,3),ve(A,256,J),16===(H=A).bi_valid?(Ce(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):8<=H.bi_valid&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}},{"../utils/common":41}],53:[function(P,X,F){"use strict";X.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(P,X,F){(function(M){!function(T,y){"use strict";if(!T.setImmediate){var D,E,b,v,C=1,f={},m=!1,g=T.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(T);w=w&&w.setTimeout?w:T,D="[object process]"==={}.toString.call(T.process)?function(z){process.nextTick(function(){O(z)})}:function(){if(T.postMessage&&!T.importScripts){var z=!0,I=T.onmessage;return T.onmessage=function(){z=!1},T.postMessage("","*"),T.onmessage=I,z}}()?(v="setImmediate$"+Math.random()+"$",T.addEventListener?T.addEventListener("message",V,!1):T.attachEvent("onmessage",V),function(z){T.postMessage(v+z,"*")}):T.MessageChannel?((b=new MessageChannel).port1.onmessage=function(z){O(z.data)},function(z){b.port2.postMessage(z)}):g&&"onreadystatechange"in g.createElement("script")?(E=g.documentElement,function(z){var I=g.createElement("script");I.onreadystatechange=function(){O(z),I.onreadystatechange=null,E.removeChild(I),I=null},E.appendChild(I)}):function(z){setTimeout(O,0,z)},w.setImmediate=function(z){"function"!=typeof z&&(z=new Function(""+z));for(var I=new Array(arguments.length-1),L=0;L"u"?void 0===M?this:M:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},392:(it,P)=>{"use strict";P.M=void 0;class F{constructor(){this.parts=[]}hasTablature(){return void 0!==this.tablature}hasMeasures(){return void 0!==this.measures}hasComment(){return void 0!==this.comment}}P.M=(()=>{class T{static parse(D){const E={attrs:{},sections:[],custom:{}};let b;const v=D.split("\n");for(const C of v)C.startsWith("@")?this.processAttribute(E,C):C.startsWith("!")?this.processCustomAttribute(E,C):C.startsWith("#")?b=this.processSection(E,C):this.processLyricsAndChords(E,b,C);return E}static processAttribute(D,E){const b=this.ATTRIBUTE_REGEX.exec(E);null!=b?.[1]&&(D.attrs[b[1]]=b[2])}static processCustomAttribute(D,E){const b=this.CUSTOM_ATTRIBUTE_REGEX.exec(E);null!=b?.[1]&&null!=b[2]&&(D.custom[b[1]]=b[2])}static processSection(D,E){const b=this.SECTION_REGEX.exec(E),v={name:"",lines:[]};return null!=b[1]&&(v.name=b[1],D.sections.push(v)),v}static processLyricsAndChords(D,E,b){if(""!==b){void 0===E&&D.sections.push(E={name:"",lines:[]});const v=this.buildLine(b);E.lines.push(v)}}static buildLine(D){const E=new F;if(D.startsWith("|-"))E.tablature=D;else if(D.startsWith("| "))E.measures=this.getMeasures(D);else if(D.startsWith(">"))E.comment=this.getComment(D);else{const b=this.scan(D,this.CHORDS_AND_LYRICS_REGEX),v=this.chunk(b,2);for(const C of v){const f=this.getPart(C[0],C[1]);""===f.chord&&""===f.lyric||E.parts.push(f)}}return E}static getMeasures(D){const E=this.scan(D,this.MEASURES_REGEX),b=[];for(const v of E){let C=[];void 0!==v&&(C=this.scan(v,this.CHORDS_REGEX));const f={chords:[]};f.chords=C,b.push(f)}return b}static getComment(D){return this.COMMENT_REGEX.exec(D)[1].trim()}static getPart(D,E){let b,v="";return null!=E&&(v=E),void 0!==D&&(b=D.replace("[","").replace("]","")),void 0===b&&(b=""),{chord:b.trim(),lyric:v.trim()}}static chunk(D,E,b=[]){const v=[...D];for(;v.length;)b.push(v.splice(0,E));return b}static scan(D,E){return[...D.matchAll(E)].flatMap(b=>b.slice(1))}}return T.SECTION_REGEX=/#\s*([^$]*)/,T.ATTRIBUTE_REGEX=/@(\w*)=([^%]*)/,T.CUSTOM_ATTRIBUTE_REGEX=/!(\w*)=([^%]*)/,T.CHORDS_AND_LYRICS_REGEX=/(\[[\w#b/]+])?([\w\s',.!()_\-"]*)/gi,T.MEASURES_REGEX=/([[\w#b/\]+\]\s]+)[|]*/gi,T.CHORDS_REGEX=/\[([\w#b+/]+)]?/gi,T.COMMENT_REGEX=/>\s*([^$]*)/,T})()},488:it=>{const P=/^[-+]?0x[a-fA-F0-9]+$/,X=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const F={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};it.exports=function M(y,D={}){if(D=Object.assign({},F,D),!y||"string"!=typeof y)return y;let E=y.trim();if(void 0!==D.skipLike&&D.skipLike.test(E))return y;if(D.hex&&P.test(E))return Number.parseInt(E,16);{const b=X.exec(E);if(b){const v=b[1],C=b[2];let f=function T(y){return y&&-1!==y.indexOf(".")&&("."===(y=y.replace(/0+$/,""))?y="0":"."===y[0]?y="0"+y:"."===y[y.length-1]&&(y=y.substr(0,y.length-1))),y}(b[3]);const m=b[4]||b[6];if(!D.leadingZeros&&C.length>0&&v&&"."!==E[2])return y;if(!D.leadingZeros&&C.length>0&&!v&&"."!==E[1])return y;{const g=Number(E),w=""+g;return-1!==w.search(/[eE]/)||m?D.eNotation?g:y:-1!==E.indexOf(".")?"0"===w&&""===f||w===f||v&&w==="-"+f?g:y:C?f===w||v+f===w?g:y:E===w||E===v+w?g:y}}return y}}}},it=>{it(it.s=52)}]); \ No newline at end of file diff --git a/main.17456bea9fb7170d.js b/main.17456bea9fb7170d.js new file mode 100644 index 0000000..e873500 --- /dev/null +++ b/main.17456bea9fb7170d.js @@ -0,0 +1 @@ +(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[792],{377:(it,P,Q)=>{"use strict";function F(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(l){return void n(l)}a.done?t(u):Promise.resolve(u).then(r,i)}function M(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(u){F(o,r,i,s,a,"next",u)}function a(u){F(o,r,i,s,a,"throw",u)}s(void 0)})}}let y=null,E=1;const b=Symbol("SIGNAL");function v(e){const t=y;return y=e,t}function R(e){if((!N(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==E)){if(!e.producerMustRecompute(e)&&!oe(e))return e.dirty=!1,void(e.lastCleanEpoch=E);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=E}}function oe(e){U(e);for(let t=0;t0}function U(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let K=null;function q(e){return"function"==typeof e}function k(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const A=k(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function H(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ie{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:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(q(r))try{r()}catch(o){t=o instanceof A?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{pe(o)}catch(s){t=t??[],s instanceof A?t=[...t,...s.errors]:t.push(s)}}if(t)throw new A(t)}}add(t){var n;if(t&&t!==this)if(this.closed)pe(t);else{if(t instanceof ie){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&H(n,t)}remove(t){const{_finalizers:n}=this;n&&H(n,t),t instanceof ie&&t._removeParent(this)}}ie.EMPTY=(()=>{const e=new ie;return e.closed=!0,e})();const fe=ie.EMPTY;function Z(e){return e instanceof ie||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function pe(e){q(e)?e():e.unsubscribe()}const we={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ge={setTimeout(e,t,...n){const{delegate:r}=ge;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ge;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Me(e){ge.setTimeout(()=>{const{onUnhandledError:t}=we;if(!t)throw e;t(e)})}function tt(){}const qe=fn("C",void 0,void 0);function fn(e,t,n){return{kind:e,value:t,error:n}}let En=null;function dt(e){if(we.useDeprecatedSynchronousErrorHandling){const t=!En;if(t&&(En={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=En;if(En=null,n)throw r}}else e()}class wi extends ie{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Z(t)&&t.add(this)):this.destination=Gi}static create(t,n,r){return new hs(t,n,r)}next(t){this.isStopped?Tr(function yi(e){return fn("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Tr(function dn(e){return fn("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Tr(qe,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 Hn=Function.prototype.bind;function Hi(e,t){return Hn.call(e,t)}class Rc{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){zi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){zi(r)}else zi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){zi(n)}}}class hs extends wi{constructor(t,n,r){let i;if(super(),q(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&we.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Hi(t.next,o),error:t.error&&Hi(t.error,o),complete:t.complete&&Hi(t.complete,o)}):i=t}this.destination=new Rc(i)}}function zi(e){we.useDeprecatedSynchronousErrorHandling?function $i(e){we.useDeprecatedSynchronousErrorHandling&&En&&(En.errorThrown=!0,En.error=e)}(e):Me(e)}function Tr(e,t){const{onStoppedNotification:n}=we;n&&ge.setTimeout(()=>n(e,t))}const Gi={closed:!0,next:tt,error:function Qa(e){throw e},complete:tt},Oc="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ci(e){return e}function bg(e){return 0===e.length?Ci:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}let Vt=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function aE(e){return e&&e instanceof wi||function sE(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}(e)&&Z(e)}(n)?n:new hs(n,r,i);return dt(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Dg(r))((i,o)=>{const s=new hs({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Oc](){return this}pipe(...n){return bg(n)(this)}toPromise(n){return new(n=Dg(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Dg(e){var t;return null!==(t=e??we.Promise)&&void 0!==t?t:Promise}const uE=k(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let hn=(()=>{class e extends Vt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Eg(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new uE}next(n){dt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){dt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){dt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?fe:(this.currentObservers=null,o.push(n),new ie(()=>{this.currentObservers=null,H(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new Vt;return n.source=this,n}}return e.create=(t,n)=>new Eg(t,n),e})();class Eg extends hn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:fe}}class Pn extends hn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Sg(e){return q(e?.lift)}function Ht(e){return t=>{if(Sg(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bt(e,t,n,r,i){return new lE(e,t,n,r,i)}class lE extends wi{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function at(e,t){return Ht((n,r)=>{let i=0;n.subscribe(Bt(r,o=>{r.next(e.call(t,o,i++))}))})}const Ig="https://g.co/ng/security#xss";class he extends Error{constructor(t,n){super(function Wi(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Mr(e){return{toString:e}.toString()}const Zi="__parameters__";function Xi(e,t,n){return Mr(()=>{const r=function kc(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(Zi)?u[Zi]:Object.defineProperty(u,Zi,{value:[]})[Zi];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const nt=globalThis;function ot(e){for(let t in e)if(e[t]===ot)return t;throw Error("Could not find renamed property on target object.")}function xt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(xt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Pc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const dE=ot({__forward_ref__:ot});function Fc(e){return e.__forward_ref__=Fc,e.toString=function(){return xt(this())},e}function xe(e){return Ja(e)?e():e}function Ja(e){return"function"==typeof e&&e.hasOwnProperty(dE)&&e.__forward_ref__===Fc}function Ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function or(e){return{providers:e.providers||[],imports:e.imports||[]}}function eu(e){return Ng(e,nu)||Ng(e,xg)}function Ng(e,t){return e.hasOwnProperty(t)?e[t]:null}function tu(e){return e&&(e.hasOwnProperty(Lc)||e.hasOwnProperty(vE))?e[Lc]:null}const nu=ot({\u0275prov:ot}),Lc=ot({\u0275inj:ot}),xg=ot({ngInjectableDef:ot}),vE=ot({ngInjectorDef:ot});class _e{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ee({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function $c(e){return e&&!!e.\u0275providers}const ps=ot({\u0275cmp:ot}),Hc=ot({\u0275dir:ot}),zc=ot({\u0275pipe:ot}),Og=ot({\u0275mod:ot}),Ar=ot({\u0275fac:ot}),gs=ot({__NG_ELEMENT_ID__:ot}),kg=ot({__NG_ENV_ID__:ot});function Fe(e){return"string"==typeof e?e:null==e?"":String(e)}function Gc(e,t){throw new he(-201,!1)}var ze=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ze||{});let Wc;function Pg(){return Wc}function pn(e){const t=Wc;return Wc=e,t}function Fg(e,t,n){const r=eu(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ze.Optional?null:void 0!==t?t:void Gc()}const ms={},qc="__NG_DI_FLAG__",ru="ngTempTokenPath",DE=/\n/gm,Lg="__source";let Qi;function Qr(e){const t=Qi;return Qi=e,t}function IE(e,t=ze.Default){if(void 0===Qi)throw new he(-203,!1);return null===Qi?Fg(e,void 0,t):Qi.get(e,t&ze.Optional?null:void 0,t)}function Ae(e,t=ze.Default){return(Pg()||IE)(xe(e),t)}function ue(e,t=ze.Default){return Ae(e,iu(t))}function iu(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Zc(e){const t=[];for(let n=0;nArray.isArray(n)?Ki(n,t):t(n))}function Bg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function au(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const sr={},Xe=[],bi=new _e(""),$g=new _e("",-1),Qc=new _e("");class lu{get(t,n=ms){if(n===ms){const r=new Error(`NullInjectorError: No provider for ${xt(t)}!`);throw r.name="NullInjectorError",r}return n}}var cu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(cu||{}),zn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(zn||{}),Gn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Gn||{});function kE(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Kc(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o-1){let o;for(;++io?"":i[c+1].toLowerCase(),2&r&&l!==d){if(Wn(r))return!1;s=!0}}}}else{if(!s&&!Wn(r)&&!Wn(u))return!1;if(s&&Wn(u))continue;s=!1,r=u|1&r}}return Wn(r)||s}function Wn(e){return!(1&e)}function VE(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Wn(s)&&(t+=Zg(o,i),i=""),r=s,o=o||!Wn(r);n++}return""!==i&&(t+=Zg(o,i)),t}function Nr(e){return Mr(()=>{const t=Xg(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===cu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||zn.Emulated,styles:e.styles||Xe,_:null,schemas:e.schemas||null,tView:null,id:""};Qg(n);const r=e.dependencies;return n.directiveDefs=du(r,!1),n.pipeDefs=du(r,!0),n.id=function YE(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of n)t=Math.imul(31,t)+i.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function WE(e){return He(e)||Rt(e)}function qE(e){return null!==e}function xr(e){return Mr(()=>({type:e.type,bootstrap:e.bootstrap||Xe,declarations:e.declarations||Xe,imports:e.imports||Xe,exports:e.exports||Xe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Yg(e,t){if(null==e)return sr;const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,s,a=Gn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Gn.None?[r,a]:r,t[o]=s):n[o]=r}return n}function Zt(e){return Mr(()=>{const t=Xg(e);return Qg(t),t})}function He(e){return e[ps]||null}function Rt(e){return e[Hc]||null}function zt(e){return e[zc]||null}function Yt(e,t){const n=e[Og]||null;if(!n&&!0===t)throw new Error(`Type ${xt(e)} does not have '\u0275mod' property.`);return n}function Xg(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||sr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Xe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Yg(e.inputs,t),outputs:Yg(e.outputs),debugInfo:null}}function Qg(e){e.features?.forEach(t=>t(e))}function du(e,t){if(!e)return null;const n=t?zt:WE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(qE)}function XE(...e){return{\u0275providers:ed(0,e),\u0275fromNgModule:!0}}function ed(e,...t){const n=[],r=new Set;let i;const o=s=>{n.push(s)};return Ki(t,s=>{const a=s;hu(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&Kg(i,o),n}function Kg(e,t){for(let n=0;n{t(o,r)})}}function hu(e,t,n,r){if(!(e=xe(e)))return!1;let i=null,o=tu(e);const s=!o&&He(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const u=e.ngModule;if(o=tu(u),!o)return!1;i=u}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)hu(l,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;r.add(i);try{Ki(o.imports,c=>{hu(c,t,n,r)&&(l||=[],l.push(c))})}finally{}void 0!==l&&Kg(l,t)}if(!a){const l=_i(i)||(()=>new i);t({provide:i,useFactory:l,deps:Xe},i),t({provide:Qc,useValue:i,multi:!0},i),t({provide:bi,useValue:()=>Ae(i),multi:!0},i)}const u=o.providers;if(null!=u&&!a){const l=e;td(u,c=>{t(c,l)})}}}return i!==e&&void 0!==e.providers}function td(e,t){for(let n of e)$c(n)&&(n=n.\u0275providers),Array.isArray(n)?td(n,t):t(n)}const QE=ot({provide:String,useValue:ot});function nd(e){return null!==e&&"object"==typeof e&&QE in e}function Di(e){return"function"==typeof e}const rd=new _e(""),pu={},JE={};let id;function gu(){return void 0===id&&(id=new lu),id}class Mn{}class eo extends Mn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sd(t,s=>this.processProvider(s)),this.records.set($g,to(void 0,this)),i.has("environment")&&this.records.set(Mn,to(void 0,this));const o=this.records.get(rd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Qc,Xe,ze.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=v(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),v(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Qr(this),r=pn(void 0);try{return t()}finally{Qr(n),pn(r)}}get(t,n=ms,r=ze.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(kg))return t[kg](this);r=iu(r);const o=Qr(this),s=pn(void 0);try{if(!(r&ze.SkipSelf)){let u=this.records.get(t);if(void 0===u){const l=function iS(e){return"function"==typeof e||"object"==typeof e&&e instanceof _e}(t)&&eu(t);u=l&&this.injectableDefInScope(l)?to(od(t),pu):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(r&ze.Self?gu():this.parent).get(t,n=r&ze.Optional&&n===ms?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ru]=a[ru]||[]).unshift(xt(t)),o)throw a;return function ME(e,t,n,r){const i=e[ru];throw t[Lg]&&i.unshift(t[Lg]),e.message=function AE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=xt(t);if(Array.isArray(t))i=t.map(xt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):xt(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(DE,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[ru]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{pn(s),Qr(o)}}resolveInjectorInitializers(){const t=v(null),n=Qr(this),r=pn(void 0);try{const o=this.get(bi,Xe,ze.Self);for(const s of o)s()}finally{Qr(n),pn(r),v(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(xt(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(t){let n=Di(t=xe(t))?t:xe(t&&t.provide);const r=function tS(e){return nd(e)?to(void 0,e.useValue):to(function tm(e,t,n){let r;if(Di(e)){const i=xe(e);return _i(i)||od(i)}if(nd(e))r=()=>xe(e.useValue);else if(function em(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Zc(e.deps||[]));else if(function Jg(e){return!(!e||!e.useExisting)}(e))r=()=>Ae(xe(e.useExisting));else{const i=xe(e&&(e.useClass||e.provide));if(!function nS(e){return!!e.deps}(e))return _i(i)||od(i);r=()=>new i(...Zc(e.deps))}return r}(e),pu)}(t);if(!Di(t)&&!0===t.multi){let i=this.records.get(n);i||(i=to(void 0,pu,!0),i.factory=()=>Zc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=v(null);try{return n.value===pu&&(n.value=JE,n.value=n.factory()),"object"==typeof n.value&&n.value&&function rS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{v(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=xe(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function od(e){const t=eu(e),n=null!==t?t.factory:_i(e);if(null!==n)return n;if(e instanceof _e)throw new he(204,!1);if(e instanceof Function)return function eS(e){if(e.length>0)throw new he(204,!1);const n=function mE(e){return e&&(e[nu]||e[xg])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new he(204,!1)}function to(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sd(e,t){for(const n of e)Array.isArray(n)?sd(n,t):n&&$c(n)?sd(n.\u0275providers,t):t(n)}function Rr(e,t){e instanceof eo&&e.assertNotDestroyed();const r=Qr(e),i=pn(void 0);try{return t()}finally{Qr(r),pn(i)}}function nm(){return void 0!==Pg()||null!=function SE(){return Qi}()}function ws(e){if(!nm())throw new he(-203,!1)}const vt=0,me=1,Te=2,bt=3,qn=4,Xt=5,An=6,ro=7,ft=8,Gt=9,Zn=10,Re=11,_s=12,im=13,io=14,wt=15,bs=16,oo=17,Or=18,Ds=19,om=20,Jr=21,vu=22,Ei=23,Le=25,ud=1,ar=7,so=9,Dt=10;var ld=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ld||{});function Qt(e){return Array.isArray(e)&&"object"==typeof e[ud]}function Kt(e){return Array.isArray(e)&&!0===e[ud]}function cd(e){return!!(4&e.flags)}function Si(e){return e.componentOffset>-1}function wu(e){return!(1&~e.flags)}function Yn(e){return!!e.template}function dd(e){return!!(512&e[Te])}class vS{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function lm(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Ii(){return cm}function cm(e){return e.type.prototype.ngOnChanges&&(e.setInput=wS),yS}function yS(){const e=fm(this),t=e?.current;if(t){const n=e.previous;if(n===sr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function wS(e,t,n,r,i){const o=this.declaredInputs[r],s=fm(e)||function CS(e,t){return e[dm]=t}(e,{previous:sr,current:null}),a=s.current||(s.current={}),u=s.previous,l=u[o];a[o]=new vS(l&&l.currentValue,n,u===sr),lm(e,t,i,n)}Ii.ngInherit=!0;const dm="__ngSimpleChanges__";function fm(e){return e[dm]||null}const ur=function(e,t,n){},hm="svg";let gm=!1;function ut(e){for(;Array.isArray(e);)e=e[vt];return e}function rn(e,t){return ut(t[e.index])}function Is(e,t){return e.data[t]}function Nn(e,t){const n=t[e];return Qt(n)?n:n[vt]}function md(e){return!(128&~e[Te])}function lr(e,t){return null==t?null:e[t]}function mm(e){e[oo]=0}function IS(e){1024&e[Te]||(e[Te]|=1024,md(e)&&Ts(e))}function vd(e){return!!(9216&e[Te]||e[Ei]?.dirty)}function yd(e){e[Zn].changeDetectionScheduler?.notify(1),vd(e)?Ts(e):64&e[Te]&&(function bS(){return gm}()?(e[Te]|=1024,Ts(e)):e[Zn].changeDetectionScheduler?.notify())}function Ts(e){e[Zn].changeDetectionScheduler?.notify();let t=Ti(e);for(;null!==t&&!(8192&t[Te])&&(t[Te]|=8192,md(t));)t=Ti(t)}function Cu(e,t){if(!(256&~e[Te]))throw new he(911,!1);null===e[Jr]&&(e[Jr]=[]),e[Jr].push(t)}function Ti(e){const t=e[bt];return Kt(t)?t[bt]:t}const Oe={lFrame:Im(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function wm(){return Oe.bindingsEnabled}function ee(){return Oe.lFrame.lView}function Ge(){return Oe.lFrame.tView}function kr(e){return Oe.lFrame.contextLView=e,e[ft]}function Pr(e){return Oe.lFrame.contextLView=null,e}function st(){let e=Cm();for(;null!==e&&64===e.type;)e=e.parent;return e}function Cm(){return Oe.lFrame.currentTNode}function cr(e,t){const n=Oe.lFrame;n.currentTNode=e,n.isParent=t}function Cd(){return Oe.lFrame.isParent}function on(){const e=Oe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Fr(){return Oe.lFrame.bindingIndex}function Xn(){return Oe.lFrame.bindingIndex++}function Lr(e){const t=Oe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function LS(e,t){const n=Oe.lFrame;n.bindingIndex=n.bindingRootIndex=e,bd(t)}function bd(e){Oe.lFrame.currentDirectiveIndex=e}function Ed(){return Oe.lFrame.currentQueryIndex}function _u(e){Oe.lFrame.currentQueryIndex=e}function BS(e){const t=e[me];return 2===t.type?t.declTNode:1===t.type?e[Xt]:null}function Em(e,t,n){if(n&ze.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&ze.Host||(i=BS(o),null===i||(o=o[io],10&i.type))););if(null===i)return!1;t=i,e=o}const r=Oe.lFrame=Sm();return r.currentTNode=t,r.lView=e,!0}function Sd(e){const t=Sm(),n=e[me];Oe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Sm(){const e=Oe.lFrame,t=null===e?null:e.child;return null===t?Im(e):t}function Im(e){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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Tm(){const e=Oe.lFrame;return Oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Mm=Tm;function Id(){const e=Tm();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Jt(){return Oe.lFrame.selectedIndex}function Mi(e){Oe.lFrame.selectedIndex=e}function ht(){const e=Oe.lFrame;return Is(e.tView,e.selectedIndex)}function kt(){Oe.lFrame.currentNamespace=hm}function dr(){!function $S(){Oe.lFrame.currentNamespace=null}()}let Nm=!0;function As(){return Nm}function fr(e){Nm=e}function bu(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[oo]+=65536),(a>14>16&&(3&e[Te])===t&&(e[Te]+=16384,Rm(a,o)):Rm(a,o)}const lo=-1;class Ns{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ad(e){return e!==lo}function xs(e){return 32767&e}function Rs(e,t){let n=function YS(e){return e>>16}(e),r=t;for(;n>0;)r=r[io],n--;return r}let Nd=!0;function Su(e){const t=Nd;return Nd=e,t}const Om=255,km=5;let XS=0;const hr={};function Iu(e,t){const n=Pm(e,t);if(-1!==n)return n;const r=t[me];r.firstCreatePass&&(e.injectorIndex=t.length,xd(r.data,e),xd(t,null),xd(r.blueprint,null));const i=Tu(e,t),o=e.injectorIndex;if(Ad(i)){const s=xs(i),a=Rs(i,t),u=a[me].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l]}return t[o+8]=i,o}function xd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Pm(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Tu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=$m(i),null===r)return lo;if(n++,i=i[io],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return lo}function Rd(e,t,n){!function QS(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(gs)&&(r=n[gs]),null==r&&(r=n[gs]=XS++);const i=r&Om;t.data[e+(i>>km)]|=1<=0?t&Om:tI:t}(n);if("function"==typeof o){if(!Em(t,e,r))return r&ze.Host?Fm(i,0,r):Lm(t,n,r,i);try{let s;if(s=o(r),null!=s||r&ze.Optional)return s;Gc()}finally{Mm()}}else if("number"==typeof o){let s=null,a=Pm(e,t),u=lo,l=r&ze.Host?t[wt][Xt]:null;for((-1===a||r&ze.SkipSelf)&&(u=-1===a?Tu(e,t):t[a+8],u!==lo&&Um(r,!1)?(s=t[me],a=xs(u),t=Rs(u,t)):a=-1);-1!==a;){const c=t[me];if(jm(o,a,c.data)){const d=JS(a,t,n,s,r,l);if(d!==hr)return d}u=t[a+8],u!==lo&&Um(r,t[me].data[a+8]===l)&&jm(o,a,t)?(s=c,a=xs(u),t=Rs(u,t)):a=-1}}return i}function JS(e,t,n,r,i,o){const s=t[me],a=s.data[e+8],c=Mu(a,s,n,null==r?Si(a)&&Nd:r!=s&&!!(3&a.type),i&ze.Host&&o===a);return null!==c?Ai(t,s,c,a):hr}function Mu(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=o>>20,S=i?a+c:e.directiveEnd;for(let O=r?a:a+c;O=u&&B.type===n)return O}if(i){const O=s[u];if(O&&Yn(O)&&O.type===n)return u}return null}function Ai(e,t,n,r){let i=e[n];const o=t.data;if(function GS(e){return e instanceof Ns}(i)){const s=i;s.resolving&&function CE(e,t){throw t&&t.join(" > "),new he(-200,e)}(function Ke(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Fe(e)}(o[n]));const a=Su(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?pn(s.injectImpl):null;Em(e,r,ze.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function HS(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=cm(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}(n,o[n],t)}finally{null!==l&&pn(l),Su(a),s.resolving=!1,Mm()}}return i}function jm(e,t,n){return!!(n[t+(e>>km)]&1<{const t=e.prototype.constructor,n=t[Ar]||kd(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Ar]||kd(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function kd(e){return Ja(e)?()=>{const t=kd(xe(e));return t&&t()}:_i(e)}function $m(e){const t=e[me],n=t.type;return 2===n?t.declTNode:1===n?e[Xt]:null}function qm(e,t=null,n=null,r){const i=Zm(e,t,n,r);return i.resolveInjectorInitializers(),i}function Zm(e,t=null,n=null,r,i=new Set){const o=[n||Xe,XE(e)];return r=r||("object"==typeof e?void 0:xt(e)),new eo(o,t||gu(),r||null,i)}let vn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ms;static#t=this.NULL=new lu;static create(n,r){if(Array.isArray(n))return qm({name:""},r,n,"");{const i=n.name??"";return qm({name:i},n.parent,n.providers,i)}}static#n=this.\u0275prov=Ee({token:e,providedIn:"any",factory:()=>Ae($g)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Fd(e){return e.ngOriginalError}class pr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Fd(t);for(;n&&Fd(n);)n=Fd(n);return n||null}}const Xm=new _e("",{providedIn:"root",factory:()=>ue(pr).handleError.bind(void 0)});let ei=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=dI;static#t=this.__NG_ENV_ID__=n=>n}return e})();class cI extends ei{constructor(t){super(),this._lView=t}onDestroy(t){return Cu(this._lView,t),()=>function wd(e,t){if(null===e[Jr])return;const n=e[Jr].indexOf(t);-1!==n&&e[Jr].splice(n,1)}(this._lView,t)}}function dI(){return new cI(ee())}function fI(){return ho(st(),ee())}function ho(e,t){return new Vr(rn(e,t))}let Vr=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=fI}return e})();function Km(e){return e instanceof Vr?e.nativeElement:e}function Ld(e){return t=>{setTimeout(e,void 0,t)}}const en=class hI extends hn{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,nm()&&(this.destroyRef=ue(ei,{optional:!0})??void 0)}emit(t){const n=v(null);try{super.next(t)}finally{v(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=Ld(o),i&&(i=Ld(i)),s&&(s=Ld(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof ie&&t.add(a),a}};function pI(){return this._results[Symbol.iterator]()}class Vd{static#e=Symbol.iterator;get changes(){return this._changes??=new en}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Vd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=pI)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function gn(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function OE(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rFI}),FI="ng",yv=new _e(""),ni=new _e("",{providedIn:"platform",factory:()=>"unknown"}),wv=new _e("",{providedIn:"root",factory:()=>function ti(){if(void 0!==$d)return $d;if(typeof document<"u")return document;throw new he(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Cv=()=>null;function Xd(e,t,n=!1){return Cv(e,t,n)}const Sv=new _e("",{providedIn:"root",factory:()=>!1});let Uu;function Av(e){return function tf(){if(void 0===Uu&&(Uu=null,nt.trustedTypes))try{Uu=nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Uu}()?.createScriptURL(e)||e}class Nv{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ig})`}}function ri(e){return e instanceof Nv?e.changingThisBreaksApplicationSecurity:e}function js(e,t){const n=function t2(e){return e instanceof Nv&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ig})`)}return n===t}const o2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var vo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(vo||{});function uf(e){const t=$s();return t?t.sanitize(vo.URL,e)||"":js(e,"URL")?ri(e):function nf(e){return(e=String(e)).match(o2)?e:"unsafe:"+e}(Fe(e))}function Bv(e){const t=$s();if(t)return Av(t.sanitize(vo.RESOURCE_URL,e)||"");if(js(e,"ResourceURL"))return Av(ri(e));throw new he(904,!1)}function $s(){const e=ee();return e&&e[Zn].sanitizer}function Gu(e){return e.ownerDocument}function xn(e){return e instanceof Function?e():e}var oi=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(oi||{});let ff;function hf(e,t){return ff(e,t)}function wo(e,t,n,r,i){if(null!=r){let o,s=!1;Kt(r)?o=r:Qt(r)&&(s=!0,r=r[vt]);const a=ut(r);0===e&&null!==n?null==i?Kv(t,n,a):Ni(t,n,a,i||null,!0):1===e&&null!==n?Ni(t,n,a,i||null,!0):2===e?function Gs(e,t,n){const r=Zu(e,t);r&&function U2(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function z2(e,t,n,r,i){const o=n[ar];o!==ut(n)&&wo(t,e,r,o,i);for(let a=Dt;a0&&(e[n-1][qn]=r[qn]);const o=au(e,Dt+t);!function k2(e,t){Yv(e,t),t[vt]=null,t[Xt]=null}(r[me],r);const s=o[Or];null!==s&&s.detachView(o[me]),r[bt]=null,r[qn]=null,r[Te]&=-129}return r}function qu(e,t){if(!(256&t[Te])){const n=t[Re];n.destroyNode&&Xu(e,t,n,3,null,null),function F2(e){let t=e[_s];if(!t)return mf(e[me],e);for(;t;){let n=null;if(Qt(t))n=t[_s];else{const r=t[Dt];r&&(n=r)}if(!n){for(;t&&!t[qn]&&t!==e;)Qt(t)&&mf(t[me],t),t=t[bt];null===t&&(t=e),Qt(t)&&mf(t[me],t),n=t&&t[qn]}t=n}}(t)}}function mf(e,t){if(256&t[Te])return;const n=v(null);try{t[Te]&=-129,t[Te]|=256,t[Ei]&&function x(e){if(U(e),N(e))for(let t=0;t=0?r[s]():r[-s].unsubscribe(),o+=2}else n[o].call(r[n[o+1]]);null!==r&&(t[ro]=null);const i=t[Jr];if(null!==i){t[Jr]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===zn.None||o===zn.Emulated)return null}return rn(r,n)}}(e,t.parent,n)}function Ni(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Kv(e,t,n){e.appendChild(t,n)}function Jv(e,t,n,r,i){null!==r?Ni(e,t,n,r,i):Kv(e,t,n)}function Zu(e,t){return e.parentNode(t)}let yf,ny=function ty(e,t,n){return 40&e.type?rn(e,n):null};function Yu(e,t,n,r){const i=vf(e,r,t),o=t[Re],a=function ey(e,t,n){return ny(e,t,n)}(r.parent||t[Xt],r,t);if(null!=i)if(Array.isArray(n))for(let u=0;uLe&&ly(e,t,Le,!1),ur(s?2:0,i),n(r,i)}finally{Mi(o),ur(s?3:1,i)}}function bf(e,t,n){if(cd(t)){const r=v(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function gy(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;const s=t[o];if(void 0===s)continue;r??={};let a,u=Gn.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let l=o;if(null!==i){if(!i.hasOwnProperty(o))continue;l=i[o]}0===e?my(r,n,l,a,u):my(r,n,l,a)}return r}function my(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],void 0!==i&&o.push(i)}function If(e,t,n,r){if(wm()){const i=null===r?null:{"":-1},o=function lT(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,Ws(e,n,i.hostVars,Ve),i)}function gr(e,t,n,r,i,o){const s=rn(e,t);!function Mf(e,t,n,r,i,o,s){if(null==o)e.removeAttribute(t,i,n);else{const a=null==s?Fe(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}(t[Re],s,o,e.value,n,r,i)}function gT(e,t,n,r,i,o){const s=o[t];if(null!==s)for(let a=0;a0&&(n[i-1][qn]=t),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Ts(e.lView)},consumerOnSignalRead(){this.lView[Ei]=this}},Ty=100;function el(e,t=!0,n=0){const r=e[Zn],i=r.rendererFactory;i.begin?.();try{!function ET(e,t){Of(e,t);let n=0;for(;vd(e);){if(n===Ty)throw new he(103,!1);n++,Of(e,1)}}(e,n)}catch(s){throw t&&Ju(e,s),s}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function ST(e,t,n,r){const i=t[Te];if(!(256&~i))return;t[Zn].inlineEffectRunner?.flush(),Sd(t);let s=null,a=null;(function IT(e){return 2!==e.type})(e)&&(a=function CT(e){return e[Ei]??function _T(e){const t=Iy.pop()??Object.create(DT);return t.lView=e,t}(e)}(t),s=function L(e){return e&&(e.nextProducerIndex=0),v(e)}(a));try{mm(t),function bm(e){return Oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&fy(e,t,n,2,r);const u=!(3&~i);if(u){const d=e.preOrderCheckHooks;null!==d&&Du(t,d,null)}else{const d=e.preOrderHooks;null!==d&&Eu(t,d,0,null),Td(t,0)}if(function TT(e){for(let t=uv(e);null!==t;t=lv(t)){if(!(t[Te]&ld.HasTransplantedViews))continue;const n=t[so];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function bT(e){e.lView[Ei]!==e&&(e.lView=null,Iy.push(e))}(a)),Id()}}function My(e,t){for(let n=uv(e);null!==n;n=lv(n))for(let r=Dt;r-1&&(Hs(t,r),au(n,r))}this._attachedToViewContainer=!1}qu(this._lView[me],this._lView)}onDestroy(t){Cu(this._lView,t)}markForCheck(){Xs(this._cdRefInjectingView||this._lView)}detach(){this._lView[Te]&=-129}reattach(){yd(this._lView),this._lView[Te]|=128}detectChanges(){this._lView[Te]|=1024,el(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Yv(this._lView[me],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=t,yd(this._lView)}}let Ur=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=xT}return e})();const AT=Ur,NT=class extends AT{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const i=qs(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Qs(i)}};function xT(){return tl(st(),ee())}function tl(e,t){return 4&e.type?new NT(t,e,ho(e,t)):null}let Fy=()=>null;function bo(e,t){return Fy(e,t)}class Bf{}class tM{}class Ly{}class rM{resolveComponentFactory(t){throw function nM(e){const t=Error(`No component factory found for ${xt(e)}.`);return t.ngComponent=e,t}(t)}}let sl=(()=>{class e{static#e=this.NULL=new rM}return e})();class By{}let al=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function iM(){const e=ee(),n=Nn(st().index,e);return(Qt(n)?n:e)[Re]}()}return e})(),oM=(()=>{class e{static#e=this.\u0275prov=Ee({token:e,providedIn:"root",factory:()=>null})}return e})();const jf={},jy=new Set;function mr(e){jy.has(e)||(jy.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Uy(...e){}class rt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new en(!1),this.onMicrotaskEmpty=new en(!1),this.onStable=new en(!1),this.onError=new en(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function sM(){const e="function"==typeof nt.requestAnimationFrame;let t=nt[e?"requestAnimationFrame":"setTimeout"],n=nt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function lM(e){const t=()=>{!function uM(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,$f(e),e.isCheckStableRunning=!0,Uf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),$f(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(function cM(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(i,o,s,a);try{return $y(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Hy(e)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return $y(e),n.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Hy(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,$f(e),Uf(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!rt.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(rt.isInAngularZone())throw new he(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,aM,Uy,Uy);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const aM={};function Uf(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function $f(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function $y(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hy(e){e._nesting--,Uf(e)}class zy{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new en,this.onMicrotaskEmpty=new en,this.onStable=new en,this.onError=new en}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}var xi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(xi||{});const Gy={destroy(){}};function Wy(e,t){!t&&ws();const n=t?.injector??ue(vn);if(!function ii(e){return"browser"===(e??ue(vn)).get(ni)}(n))return Gy;mr("NgAfterNextRender");const r=n.get(na),i=r.handler??=new Zy,o=t?.phase??xi.MixedReadWrite,s=()=>{i.unregister(u),a()},a=n.get(ei).onDestroy(s),u=Rr(n,()=>new qy(o,()=>{s(),e()}));return i.register(u),{destroy:s}}class qy{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=ue(rt),this.errorHandler=ue(pr,{optional:!0}),ue(Bf,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class Zy{constructor(){this.executingCallbacks=!1,this.buckets={[xi.EarlyRead]:new Set,[xi.Write]:new Set,[xi.MixedReadWrite]:new Set,[xi.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let na=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Ee({token:e,providedIn:"root",factory:()=>new e})}return e})();function ll(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s0&&ay(e,n,o.join(" "))}}(O,Ct,W,r),void 0!==n&&function bM(e,t,n){const r=e.projection=[];for(let i=0;i{class e{static#e=this.__NG_ELEMENT_ID__=EM}return e})();function EM(){return n0(st(),ee())}const SM=Qn,e0=class extends SM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ho(this._hostTNode,this._hostLView)}get injector(){return new Pt(this._hostTNode,this._hostLView)}get parentInjector(){const t=Tu(this._hostTNode,this._hostLView);if(Ad(t)){const n=Rs(t,this._hostLView),r=xs(t);return new Pt(n[me].data[r+8],n)}return new Pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=t0(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Dt}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=bo(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,_o(this._hostTNode,s)),a}createComponent(t,n,r,i,o){const s=t&&!function Cs(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const B=n||{};a=B.index,r=B.injector,i=B.projectableNodes,o=B.environmentInjector||B.ngModuleRef}const u=s?t:new oa(He(t)),l=r||this.parentInjector;if(!o&&null==u.ngModule){const W=(s?l:this.parentInjector).get(Mn,null);W&&(o=W)}const c=He(u.componentType??{}),d=bo(this._lContainer,c?.id??null),O=u.create(l,i,d?.firstChild??null,o);return this.insertImpl(O.hostView,a,_o(this._hostTNode,d)),O}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const i=t._lView;if(function SS(e){return Kt(e[bt])}(i)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const u=i[bt],l=new e0(u,u[Xt],u[bt]);l.detach(l.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;return Zs(s,i,o,r),t.attachToViewContainerRef(),Bg(Wf(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=t0(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Hs(this._lContainer,n);r&&(au(Wf(this._lContainer),n),qu(r[me],r))}detach(t){const n=this._adjustIndex(t,-1),r=Hs(this._lContainer,n);return r&&null!=au(Wf(this._lContainer),n)?new Qs(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function t0(e){return e[8]}function Wf(e){return e[8]||(e[8]=[])}function n0(e,t){let n;const r=t[e.index];return Kt(r)?n=r:(n=wy(r,t,null,e),t[e.index]=n,Ku(t,n)),r0(n,t,e,r),new e0(n,e,t)}let r0=function s0(e,t,n,r){if(e[ar])return;let i;i=8&n.type?ut(r):function IM(e,t){const n=e[Re],r=n.createComment(""),i=rn(t,e);return Ni(n,Zu(n,i),r,function $2(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[ar]=i},qf=()=>!1;class Zf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Zf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Yf{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let o=0;ot.trim())}(t):t}}class Xf{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(s[a/2]);else{const l=o[a+1],c=t[-u];for(let d=Dt;dn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class rh extends O0{constructor(t){super(),this.moduleType=t}create(t){return new nh(this.moduleType,t,[])}}class k0 extends Ri{constructor(t){super(),this.componentFactoryResolver=new Qy(this),this.instance=null;const n=new eo([...t.providers,{provide:Ri,useValue:this},{provide:sl,useValue:this.componentFactoryResolver}],t.parent||gu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function fl(e,t,n=null){return new k0({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Eo=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vr(e,t,n){return e[t]=n}function Et(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Oi(e,t,n,r){const i=Et(e,t,n);return Et(e,t+1,r)||i}function Cn(e,t,n,r,i,o,s,a){const u=ee(),l=Ge(),c=e+Le,d=l.firstCreatePass?function lA(e,t,n,r,i,o,s,a,u){const l=t.consts,c=Co(t,e,4,s||null,lr(l,a));If(t,n,c,lr(l,u)),bu(t,c);const d=c.tView=Sf(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,i,o,s):l.data[c];cr(d,!1);const S=P0(l,u,d,e);As()&&Yu(l,u,S,d),tn(S,u);const O=wy(S,u,S,d);return u[c]=O,Ku(u,O),function o0(e,t,n){return qf(e,t,n)}(O,d,u),wu(d)&&Df(l,u,d),null!=s&&Ef(u,d,a),Cn}let P0=function F0(e,t,n,r){return fr(!0),t[Re].createComment("")};function ph(e,t,n,r){const i=ee();return Et(i,Xn(),t)&&(Ge(),gr(ht(),i,e,t,n,r)),ph}function ko(e,t,n,r,i,o,s,a){const l=function gl(e,t,n,r,i){const o=Oi(e,t,n,r);return Et(e,t+2,i)||o}(e,Fr(),n,i,s);return Lr(3),l?t+Fe(n)+r+Fe(i)+o+Fe(s)+a:Ve}function Kn(e,t,n){const r=ee();return Et(r,Xn(),t)&&function wn(e,t,n,r,i,o,s,a){const u=rn(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(Nf(e,n,c,r,i),Si(t)&&function rT(e,t){const n=Nn(t,e);16&n[Te]||(n[Te]|=64)}(n,t.index)):3&t.type&&(r=function nT(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,t.value||"",r):i,o.setProperty(u,r,i))}(Ge(),ht(),r,e,t,r[Re],n,!1),Kn}function yh(e,t,n,r,i){const s=i?"class":"style";Nf(e,n,t.inputs[s],s,r)}class _N{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){const s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}}function Ch(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function _h(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function Mw(e,t,n,r,i){if(_h(e,t,r,n(r,i)))e.updateValue(r,i);else{const o=e.create(r,i);e.attach(r,o)}}function Aw(e,t,n,r){const i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}class Nw{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}}function _n(e,t,n){mr("NgControlFlow");const r=ee(),i=Xn(),o=bh(r,Le+e);if(Et(r,i,t)){const a=v(null);try{if(Rf(o,0),-1!==t){const u=Dh(r[me],Le+t),l=bo(o,u.tView.ssrId);Zs(o,qs(r,u,n,{dehydratedView:l}),0,_o(u,l))}}finally{v(a)}}else{const a=Ey(o,0);void 0!==a&&(a[ft]=n)}}class DN{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Dt}}function ci(e,t){return t}class SN{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function di(e,t,n,r,i,o,s,a,u,l,c,d,S){mr("NgControlFlow");const O=void 0!==u,B=ee(),W=a?s.bind(B[wt][ft]):s,te=new SN(O,W);B[Le+e]=te,Cn(e+1,t,n,r,i,o),O&&Cn(e+2,u,l,c,d,S)}class IN extends _N{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Dt}at(t){return this.getLView(t)[ft].$implicit}attach(t,n){const r=n[An];this.needsIndexUpdate||=t!==this.length,Zs(this.lContainer,n,t,_o(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function TN(e,t){return Hs(e,t)}(this.lContainer,t)}create(t,n){const r=bo(this.lContainer,this.templateTNode.tView.ssrId);return qs(this.hostLView,this.templateTNode,new DN(this.lContainer,n,t),{dehydratedView:r})}destroy(t){qu(t[me],t)}updateValue(t,n){this.getLView(t)[ft].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(a)})}(s,e,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){const a=Xn(),u=0===s.length;if(Et(r,a,u)){const l=n+2,c=bh(r,l);if(u){const d=Dh(i,l),S=bo(c,d.tView.ssrId);Zs(c,qs(r,d,void 0,{dehydratedView:S}),0,_o(d,S))}else Rf(c,0)}}}finally{v(t)}}function bh(e,t){return e[t]}function Dh(e,t){return Is(e,t)}function de(e,t,n,r){const i=ee(),o=Ge(),s=Le+e,a=i[Re],u=o.firstCreatePass?function AN(e,t,n,r,i,o){const s=t.consts,u=Co(t,e,2,r,lr(s,i));return If(t,n,u,lr(s,o)),null!==u.attrs&&ll(u,u.attrs,!1),null!==u.mergedAttrs&&ll(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,o,i,t,n,r):o.data[s],l=xw(o,i,u,a,t,e);i[s]=l;const c=wu(u);return cr(u,!0),uy(a,l,u),!function ua(e){return!(32&~e.flags)}(u)&&As()&&Yu(o,i,l,u),0===function TS(){return Oe.lFrame.elementDepthCount}()&&tn(l,i),function MS(){Oe.lFrame.elementDepthCount++}(),c&&(Df(o,i,u),bf(o,u,i)),null!==r&&Ef(i,u),de}function ce(){let e=st();Cd()?function _d(){Oe.lFrame.isParent=!1}():(e=e.parent,cr(e,!1));const t=e;(function NS(e){return Oe.skipHydrationRootTNode===e})(t)&&function kS(){Oe.skipHydrationRootTNode=null}(),function AS(){Oe.lFrame.elementDepthCount--}();const n=Ge();return n.firstCreatePass&&(bu(n,e),cd(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qS(e){return!!(8&e.flags)}(t)&&yh(n,t,ee(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ZS(e){return!!(16&e.flags)}(t)&&yh(n,t,ee(),t.stylesWithoutHost,!1),ce}function je(e,t,n,r){return de(e,t,n,r),ce(),je}let xw=(e,t,n,r,i,o)=>(fr(!0),Wu(r,i,function Am(){return Oe.lFrame.currentNamespace}()));function Fi(){return ee()}const $o="en-US";let Vw=$o;function Ln(e,t,n,r){const i=ee(),o=Ge(),s=st();return function Mh(e,t,n,r,i,o,s){const a=wu(r),l=e.firstCreatePass&&by(e),c=t[ft],d=_y(t);let S=!0;if(3&r.type||s){const W=rn(r,t),te=s?s(W):W,ae=d.length,ne=s?Be=>s(ut(Be[r.index])):r.index;let Ie=null;if(!s&&a&&(Ie=function Ox(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;ou?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==Ie)(Ie.__ngLastListenerFn__||Ie).__ngNextListenerFn__=o,Ie.__ngLastListenerFn__=o,S=!1;else{o=fC(r,t,c,o,!1);const Be=n.listen(te,i,o);d.push(o,Be),l&&l.push(i,ne,ae,ae+1)}}else o=fC(r,t,c,o,!1);const O=r.outputs;let B;if(S&&null!==O&&(B=O[i])){const W=B.length;if(W)for(let te=0;te-1?Nn(e.index,t):t);let u=dC(t,n,r,s),l=o.__ngNextListenerFn__;for(;l;)u=dC(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return i&&!1===u&&s.preventDefault(),u}}function Mt(e=1){return function jS(e){return(Oe.lFrame.contextLView=function vm(e,t){for(;e>0;)t=t[io],e--;return t}(e,Oe.lFrame.contextLView))[ft]}(e)}function bC(e,t,n,r){!function d0(e,t,n,r){const i=Ge();if(i.firstCreatePass){const o=st();f0(i,new a0(t,n,r),o.index),function PM(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),!(2&~n)&&(i.staticContentQueries=!0)}return l0(i,ee(),n)}(e,t,n,r)}function DC(e,t,n){!function c0(e,t,n){const r=Ge();return r.firstCreatePass&&(f0(r,new a0(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),l0(r,ee(),t)}(e,t,n)}function Nh(e){const t=ee(),n=Ge(),r=Ed();_u(r+1);const i=eh(n,r);if(e.dirty&&function ES(e){return!(4&~e[Te])}(t)===!(2&~i.metadata.flags)){if(null===i.matches)e.reset([]);else{const o=h0(t,r);e.reset(o,Km),e.notifyOnChanges()}return!0}return!1}function xh(){return function Jf(e,t){return e[Or].queries[t].queryList}(ee(),Ed())}function be(e,t=""){const n=ee(),r=Ge(),i=e+Le,o=r.firstCreatePass?Co(r,i,1,t,null):r.data[i],s=OC(r,n,o,t,e);n[i]=s,As()&&Yu(r,n,s,o),cr(o,!1)}let OC=(e,t,n,r,i)=>(fr(!0),function pf(e,t){return e.createText(t)}(t[Re],r));function $r(e){return Hr("",e,""),$r}function Hr(e,t,n){const r=ee(),i=function Ro(e,t,n,r){return Et(e,Xn(),n)?t+Fe(n)+r:Ve}(r,e,t,n);return i!==Ve&&jr(r,Jt(),i),Hr}function Rh(e,t,n,r,i){const o=ee(),s=function Oo(e,t,n,r,i,o){const a=Oi(e,Fr(),n,i);return Lr(2),a?t+Fe(n)+r+Fe(i)+o:Ve}(o,e,t,n,r,i);return s!==Ve&&jr(o,Jt(),s),Rh}function Oh(e,t,n,r,i,o,s){const a=ee(),u=ko(a,e,t,n,r,i,o,s);return u!==Ve&&jr(a,Jt(),u),Oh}let oR=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=ed(0,n.type),i=r.length>0?fl([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Ee({token:e,providedIn:"environment",factory:()=>new e(Ae(Mn))})}return e})();function HC(e){mr("NgStandalone"),e.getStandaloneInjector=t=>t.get(oR).getOrCreateStandaloneInjector(e)}function Ml(e,t,n){const r=on()+e,i=ee();return i[r]===Ve?vr(i,r,n?t.call(n):t()):function aa(e,t){return e[t]}(i,r)}function Al(e,t,n,r){return function GC(e,t,n,r,i,o){const s=t+n;return Et(e,s,i)?vr(e,s+1,o?r.call(o,i):r(i)):function wa(e,t){const n=e[t];return n===Ve?void 0:n}(e,s+1)}(ee(),on(),e,t,n,r)}let d1=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const m1=new _e(""),Ol=new _e("");let Gh,Hh=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Gh||(function mO(e){Gh=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(rt),Ae(zh),Ae(Ol))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})(),zh=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Gh?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function kl(e){return!!e&&"function"==typeof e.then}function v1(e){return!!e&&"function"==typeof e.subscribe}const Pl=new _e("");let Wh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=ue(Pl,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const i of this.appInits){const o=i();if(kl(o))n.push(o);else if(v1(o)){const s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Fl=new _e("");function C1(e,t){return Array.isArray(t)?t.reduce(C1,e):{...e,...t}}let hi=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ue(Xm),this.afterRenderEffectManager=ue(na),this.externalTestViews=new Set,this.beforeRender=new hn,this.afterTick=new hn,this.componentTypes=[],this.components=[],this.isStable=ue(Eo).hasPendingTasks.pipe(at(n=>!n)),this._injector=ue(Mn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Ly;if(!this._injector.get(Wh).done)throw!i&&function Kr(e){const t=He(e)||Rt(e)||zt(e);return null!==t&&t.standalone}(n),new he(405,!1);let s;s=i?n:this._injector.get(sl).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function vO(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Ri),l=s.create(vn.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(m1,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Ll(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new he(101,!1);const r=v(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,v(r)}}detectChangesInAttachedViews(n){let r=0;const i=this.afterRenderEffectManager;for(;;){if(r===Ty)throw new he(103,!1);if(n){const o=0===r;this.beforeRender.next(o);for(let{_lView:s,notifyErrorHandler:a}of this._views)wO(s,o,a)}if(r++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>qh(o))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>qh(o))))break}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ll(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fl,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ll(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new he(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ll(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function wO(e,t,n){!t&&!qh(e)||function CO(e,t,n){let r;n?(r=0,e[Te]|=1024):r=64&e[Te]?0:1,el(e,t,r)}(e,n,t)}function qh(e){return vd(e)}class _O{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let _1=(()=>{class e{compileModuleSync(n){return new rh(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=xn(Yt(n).declarations).reduce((s,a)=>{const u=He(a);return u&&s.push(new oa(u)),s},[]);return new _O(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),EO=(()=>{class e{constructor(){this.zone=ue(rt),this.applicationRef=ue(hi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function SO(){const e=ue(rt),t=ue(pr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let TO=(()=>{class e{constructor(){this.subscription=new ie,this.initialized=!1,this.zone=ue(rt),this.pendingTasks=ue(Eo)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{rt.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{rt.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const zr=new _e("",{providedIn:"root",factory:()=>ue(zr,ze.Optional|ze.SkipSelf)||function MO(){return typeof $localize<"u"&&$localize.locale||$o}()}),Zh=new _e("");let S1=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function dM(e="zone.js",t){return"noop"===e?new zy:"zone.js"===e?new rt(t):e}(r?.ngZone,function E1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function rA(e,t,n){return new nh(e,t,n)}(n.moduleType,this.injector,function D1(e){return[{provide:rt,useFactory:e},{provide:bi,multi:!0,useFactory:()=>{const t=ue(EO,{optional:!0});return()=>t.initialize()}},{provide:bi,multi:!0,useFactory:()=>{const t=ue(TO);return()=>{t.initialize()}}},{provide:Xm,useFactory:SO}]}(()=>i)),s=o.injector.get(pr,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:u=>{s.handleError(u)}});o.onDestroy(()=>{Ll(this._modules,o),a.unsubscribe()})}),function w1(e,t,n){try{const r=n();return kl(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,i,()=>{const a=o.injector.get(Wh);return a.runInitializers(),a.donePromise.then(()=>(function Bw(e){"string"==typeof e&&(Vw=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(zr,$o)||$o),this._moduleDoBootstrap(o),o))})})}bootstrapModule(n,r=[]){const i=C1({},r);return function DO(e,t,n){const r=new rh(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(hi);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new he(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new he(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Zh,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(vn))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),pi=null;const I1=new _e("");function T1(e,t,n=[]){const r=`Platform: ${t}`,i=new _e(r);return(o=[])=>{let s=Yh();if(!s||s.injector.get(I1,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function xO(e){if(pi&&!pi.get(I1,!1))throw new he(400,!1);(function y1(){!function Ce(e){K=e}(()=>{throw new he(600,!1)})})(),pi=e;const t=e.get(S1);(function A1(e){e.get(yv,null)?.forEach(n=>n())})(e)}(function M1(e=[],t){return vn.create({name:t,providers:[{provide:rd,useValue:"platform"},{provide:Zh,useValue:new Set([()=>pi=null])},...e]})}(a,r))}return function RO(e){const t=Yh();if(!t)throw new he(401,!1);return t}()}}function Yh(){return pi?.get(S1)??null}let Bl=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=kO}return e})();function kO(e){return function PO(e,t,n){if(Si(e)&&!n){const r=Nn(e.index,t);return new Qs(r,r)}return 47&e.type?new Qs(t[wt],t):null}(st(),ee(),!(16&~e))}const qO=T1(null,"core",[]);let ZO=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(hi))};static#t=this.\u0275mod=xr({type:e});static#n=this.\u0275inj=or({})}return e})();function rp(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let u_=null;function Wo(){return u_}class xk{}const jt=new _e("");let ip=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ue(Ok),providedIn:"platform"})}return e})();const Rk=new _e("");let Ok=(()=>{class e extends ip{constructor(){super(),this._doc=ue(jt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wo().getBaseHref(this._doc)}onPopState(n){const r=Wo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Wo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function op(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function l_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Gr(e){return e&&"?"!==e[0]?"?"+e:e}let Bi=(()=>{class e{historyGo(n){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ue(d_),providedIn:"root"})}return e})();const c_=new _e("");let d_=(()=>{class e extends Bi{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??ue(jt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return op(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Gr(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+Gr(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+Gr(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(ip),Ae(c_,8))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kk=(()=>{class e extends Bi{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=op(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Gr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Gr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(ip),Ae(c_,8))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})(),Ia=(()=>{class e{constructor(n){this._subject=new en,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function Lk(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(l_(f_(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Gr(r))}normalize(n){return e.stripTrailingSlash(function Fk(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,f_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Gr(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Gr(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static#e=this.normalizeQueryParams=Gr;static#t=this.joinWithSlash=op;static#n=this.stripTrailingSlash=l_;static#r=this.\u0275fac=function(r){return new(r||e)(Ae(Bi))};static#i=this.\u0275prov=Ee({token:e,factory:()=>function Pk(){return new Ia(Ae(Bi))}(),providedIn:"root"})}return e})();function f_(e){return e.replace(/\/index.html$/,"")}const gp=/\s+/,__=[];let b_=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=__,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(gp):__}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(gp):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const i=this.stateMap.get(n);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(gp).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(ke(Vr),ke(al))};static#t=this.\u0275dir=Zt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[Gn.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),M_=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=xr({type:e});static#n=this.\u0275inj=or({})}return e})();const A_="browser";function Cp(e){return"server"===e}let nF=(()=>{class e{static#e=this.\u0275prov=Ee({token:e,providedIn:"root",factory:()=>function tF(e){return e===A_}(ue(ni))?new rF(ue(jt),window):new oF})}return e})();class rF{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){const n=function iF(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}}class oF{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}}class kF extends xk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class bp extends kF{static makeCurrent(){!function Nk(e){u_??=e}(new bp)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||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,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function PF(){return Na=Na||document.querySelector("base"),Na?Na.getAttribute("href"):null}();return null==n?null:function FF(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Na=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function _P(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let Na=null,VF=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const Dp=new _e("");let V_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new he(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(Dp),Ae(rt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();class B_{constructor(t){this._doc=t}}const Ep="ng-app-id";let j_=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Cp(o),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Ep}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){const i=this.styleRef;if(i.has(n)){const o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(Ep),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Ep,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){const i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt),Ae(Ou),Ae(wv,8),Ae(ni))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const Sp={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/"},Ip=/%COMP%/g,$F=new _e("",{providedIn:"root",factory:()=>!0});function $_(e,t){return t.map(n=>n.replace(Ip,e))}let H_=(()=>{class e{constructor(n,r,i,o,s,a,u,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Cp(a),this.defaultRenderer=new Tp(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===zn.ShadowDom&&(r={...r,encapsulation:zn.Emulated});const i=this.getOrCreateRenderer(n,r);return i instanceof G_?i.applyToHost(n):i instanceof Mp&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,a=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case zn.Emulated:o=new G_(u,l,r,this.appId,c,s,a,d);break;case zn.ShadowDom:return new WF(u,l,n,r,s,a,this.nonce,d);default:o=new Mp(u,l,r,c,s,a,d)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(V_),Ae(j_),Ae(Ou),Ae($F),Ae(jt),Ae(ni),Ae(rt),Ae(wv))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();class Tp{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Sp[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(z_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(z_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new he(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Sp[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Sp[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(oi.DashCase|oi.Important)?t.style.setProperty(n,r,i&oi.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&oi.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Wo().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function z_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class WF extends Tp{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=$_(i.id,i.styles);for(const c of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Mp extends Tp{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?$_(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class G_ extends Mp{constructor(t,n,r,i,o,s,a,u){const l=i+"-"+r.id;super(t,n,r,o,s,a,u,l),this.contentAttr=function HF(e){return"_ngcontent-%COMP%".replace(Ip,e)}(l),this.hostAttr=function zF(e){return"_nghost-%COMP%".replace(Ip,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let qF=(()=>{class e extends B_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const W_=["alt","control","meta","shift"],ZF={"\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"},YF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let XF=(()=>{class e extends B_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wo().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),W_.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=ZF[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),W_.forEach(s=>{s!==i&&(0,YF[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();const eL=T1(qO,"browser",[{provide:ni,useValue:A_},{provide:yv,useValue:function QF(){bp.makeCurrent()},multi:!0},{provide:jt,useFactory:function JF(){return function PI(e){$d=e}(document),document},deps:[]}]),tL=new _e(""),Y_=[{provide:Ol,useClass:class LF{addToWindow(t){nt.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new he(5103,!1);return o},nt.getAllAngularTestabilities=()=>t.getAllTestabilities(),nt.getAllAngularRootElements=()=>t.getAllRootElements(),nt.frameworkStabilizers||(nt.frameworkStabilizers=[]),nt.frameworkStabilizers.push(r=>{const i=nt.getAllAngularTestabilities();let o=i.length;const s=function(){o--,0==o&&r()};i.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Wo().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:m1,useClass:Hh,deps:[rt,zh,Ol]},{provide:Hh,useClass:Hh,deps:[rt,zh,Ol]}],X_=[{provide:rd,useValue:"root"},{provide:pr,useFactory:function KF(){return new pr},deps:[]},{provide:Dp,useClass:qF,multi:!0,deps:[jt,rt,ni]},{provide:Dp,useClass:XF,multi:!0,deps:[jt]},H_,j_,V_,{provide:By,useExisting:H_},{provide:class sF{},useClass:VF,deps:[]},[]];let nL=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Ou,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(tL,12))};static#t=this.\u0275mod=xr({type:e});static#n=this.\u0275inj=or({providers:[...X_,...Y_],imports:[M_,ZO]})}return e})(),rL=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(jt))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function gi(e){return this instanceof gi?(this.v=e,this):new gi(e)}function rb(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Rp(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){!function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}(a,u,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ib=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function ob(e){return q(e?.then)}function sb(e){return q(e[Oc])}function ab(e){return Symbol.asyncIterator&&q(e?.[Symbol.asyncIterator])}function ub(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const lb=function AL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function cb(e){return q(e?.[lb])}function db(e){return function nb(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(S){r[S]&&(i[S]=function(O){return new Promise(function(B,W){o.push([S,O,B,W])>1||a(S,O)})})}function a(S,O){try{!function u(S){S.value instanceof gi?Promise.resolve(S.value.v).then(l,c):d(o[0][2],S)}(r[S](O))}catch(B){d(o[0][3],B)}}function l(S){a("next",S)}function c(S){a("throw",S)}function d(S,O){S(O),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield gi(n.read());if(i)return yield gi(void 0);yield yield gi(r)}}finally{n.releaseLock()}})}function fb(e){return q(e?.getReader)}function Zr(e){if(e instanceof Vt)return e;if(null!=e){if(sb(e))return function NL(e){return new Vt(t=>{const n=e[Oc]();if(q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(ib(e))return function xL(e){return new Vt(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Me)})}(e);if(ab(e))return hb(e);if(cb(e))return function OL(e){return new Vt(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(fb(e))return function kL(e){return hb(db(e))}(e)}throw ub(e)}function hb(e){return new Vt(t=>{(function PL(e,t){var n,r,i,o;return function eb(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=rb(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Yr(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function pb(e,t=0){return Ht((n,r)=>{n.subscribe(Bt(r,i=>Yr(r,e,()=>r.next(i),t),()=>Yr(r,e,()=>r.complete(),t),i=>Yr(r,e,()=>r.error(i),t)))})}function gb(e,t=0){return Ht((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function mb(e,t){if(!e)throw new Error("Iterable cannot be null");return new Vt(n=>{Yr(n,t,()=>{const r=e[Symbol.asyncIterator]();Yr(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Wt(e,t){return t?function UL(e,t){if(null!=e){if(sb(e))return function FL(e,t){return Zr(e).pipe(gb(t),pb(t))}(e,t);if(ib(e))return function VL(e,t){return new Vt(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(ob(e))return function LL(e,t){return Zr(e).pipe(gb(t),pb(t))}(e,t);if(ab(e))return mb(e,t);if(cb(e))return function BL(e,t){return new Vt(n=>{let r;return Yr(n,t,()=>{r=e[lb](),Yr(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>q(r?.return)&&r.return()})}(e,t);if(fb(e))return function jL(e,t){return mb(db(e),t)}(e,t)}throw ub(e)}(e,t):Zr(e)}function Op(e){return e[e.length-1]}function uc(e){return function $L(e){return e&&q(e.schedule)}(Op(e))?e.pop():void 0}function Pe(...e){return Wt(e,uc(e))}const{isArray:zL}=Array,{getPrototypeOf:GL,prototype:WL,keys:qL}=Object;const{isArray:XL}=Array;function kp(...e){const t=uc(e),n=function HL(e){return q(Op(e))?e.pop():void 0}(e),{args:r,keys:i}=function ZL(e){if(1===e.length){const t=e[0];if(zL(t))return{args:t,keys:null};if(function YL(e){return e&&"object"==typeof e&&GL(e)===WL}(t)){const n=qL(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return Wt([],t);const o=new Vt(function e3(e,t,n=Ci){return r=>{vb(t,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let u=0;u{const l=Wt(e[u],t);let c=!1;l.subscribe(Bt(r,d=>{o[u]=d,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>function JL(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}(i,s):Ci));return n?o.pipe(function KL(e){return at(t=>function QL(e,t){return XL(t)?e(...t):e(t)}(e,t))}(n)):o}function vb(e,t,n){e?Yr(n,e,t):t()}const lc=k(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nn(e,t,n=1/0){return q(t)?nn((r,i)=>at((o,s)=>t(r,o,i,s))(Zr(e(r,i))),n):("number"==typeof t&&(n=t),Ht((r,i)=>function t3(e,t,n,r,i,o,s,a){const u=[];let l=0,c=0,d=!1;const S=()=>{d&&!u.length&&!l&&t.complete()},O=W=>l{o&&t.next(W),l++;let te=!1;Zr(n(W,c++)).subscribe(Bt(t,ae=>{i?.(ae),o?O(ae):t.next(ae)},()=>{te=!0},void 0,()=>{if(te)try{for(l--;u.length&&lB(ae)):B(ae)}S()}catch(ae){t.error(ae)}}))};return e.subscribe(Bt(t,O,()=>{d=!0,S()})),()=>{a?.()}}(r,i,e,n)))}function Ra(e=1/0){return nn(Ci,e)}function Pp(...e){return function n3(){return Ra(1)}()(Wt(e,uc(e)))}function yb(e){return new Vt(t=>{Zr(e()).subscribe(t)})}function cc(e,t){const n=q(e)?e:()=>e,r=i=>i.error(n());return new Vt(t?i=>t.schedule(r,0,i):r)}const Cr=new Vt(e=>e.complete());function Fp(){return Ht((e,t)=>{let n=null;e._refCount++;const r=Bt(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class wb extends Vt{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Sg(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,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new ie;const n=this.getSubject();t.add(this.source.subscribe(Bt(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=ie.EMPTY)}return t}refCount(){return Fp()(this)}}function _r(e,t){return Ht((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(Bt(r,u=>{i?.unsubscribe();let l=0;const c=o++;Zr(e(u,c)).subscribe(i=Bt(r,d=>r.next(t?t(u,d,c,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Zo(e){return e<=0?()=>Cr:Ht((t,n)=>{let r=0;t.subscribe(Bt(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function jn(e,t){return Ht((n,r)=>{let i=0;n.subscribe(Bt(r,o=>e.call(t,o,i++)&&r.next(o)))})}function dc(e){return Ht((t,n)=>{let r=!1;t.subscribe(Bt(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Cb(e=o3){return Ht((t,n)=>{let r=!1;t.subscribe(Bt(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function o3(){return new lc}function ji(e,t){const n=arguments.length>=2;return r=>r.pipe(e?jn((i,o)=>e(i,o,r)):Ci,Zo(1),n?dc(t):Cb(()=>new lc))}function Oa(e,t){return q(t)?nn(e,t,1):nn(e,1)}function ln(e,t,n){const r=q(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ht((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Bt(o,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),o.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),o.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),o.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Ci}function Yo(e){return Ht((t,n)=>{let o,r=null,i=!1;r=t.subscribe(Bt(n,void 0,void 0,s=>{o=Zr(e(s,Yo(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Lp(e){return e<=0?()=>Cr:Ht((t,n)=>{let r=[];t.subscribe(Bt(n,i=>{r.push(i),e{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Vp(e){return Ht((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function _b(e){return Ht((t,n)=>{Zr(e).subscribe(Bt(n,()=>n.complete(),tt)),!n.closed&&t.subscribe(n)})}const Ue="primary",ka=Symbol("RouteTitle");class c3{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Xo(e){return new c3(e)}function d3(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[o]===i)}return e===t}function Db(e){return e.length>0?e[e.length-1]:null}function mi(e){return function aL(e){return!!e&&(e instanceof Vt||q(e.lift)&&q(e.subscribe))}(e)?e:kl(e)?Wt(Promise.resolve(e)):Pe(e)}const h3={exact:function Ib(e,t,n){if(!Ui(e.segments,t.segments)||!fc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!Ib(e.children[r],t.children[r],n))return!1;return!0},subset:Tb},Eb={exact:function p3(e,t){return br(e,t)},subset:function g3(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>bb(e[n],t[n]))},ignored:()=>!0};function Sb(e,t,n){return h3[n.paths](e.root,t.root,n.matrixParams)&&Eb[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Tb(e,t,n){return Mb(e,t,t.segments,n)}function Mb(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!Ui(i,n)||t.hasChildren()||!fc(i,n,r))}if(e.segments.length===n.length){if(!Ui(e.segments,n)||!fc(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!Tb(e.children[i],t.children[i],r))return!1;return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(Ui(e.segments,i)&&fc(e.segments,i,r)&&e.children[Ue])&&Mb(e.children[Ue],t,o,r)}}function fc(e,t,n){return t.every((r,i)=>Eb[n](e[i].parameters,r.parameters))}class Qo{constructor(t=new lt([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Xo(this.queryParams),this._queryParamMap}toString(){return y3.serialize(this)}}class lt{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hc(this)}}class Pa{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Xo(this.parameters),this._parameterMap}toString(){return xb(this)}}function Ui(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Ko=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>new jp,providedIn:"root"})}return e})();class jp{parse(t){const n=new A3(t);return new Qo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Fa(t.root,!0)}`,r=function _3(e){const t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${pc(n)}=${pc(i)}`).join("&"):`${pc(n)}=${pc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function w3(e){return encodeURI(e)}(t.fragment)}`:""}`}}const y3=new jp;function hc(e){return e.segments.map(t=>xb(t)).join("/")}function Fa(e,t){if(!e.hasChildren())return hc(e);if(t){const n=e.children[Ue]?Fa(e.children[Ue],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==Ue&&r.push(`${i}:${Fa(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function v3(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===Ue&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==Ue&&(n=n.concat(t(i,r)))}),n}(e,(r,i)=>i===Ue?[Fa(e.children[Ue],!1)]:[`${i}:${Fa(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ue]?`${hc(e)}/${n[0]}`:`${hc(e)}/(${n.join("//")})`}}function Ab(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pc(e){return Ab(e).replace(/%3B/gi,";")}function Up(e){return Ab(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function gc(e){return decodeURIComponent(e)}function Nb(e){return gc(e.replace(/\+/g,"%20"))}function xb(e){return`${Up(e.path)}${function C3(e){return Object.entries(e).map(([t,n])=>`;${Up(t)}=${Up(n)}`).join("")}(e.parameters)}`}const b3=/^[^\/()?;#]+/;function $p(e){const t=e.match(b3);return t?t[0]:""}const D3=/^[^\/()?;=#]+/,S3=/^[^=?&#]+/,T3=/^[^&#]+/;class A3{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lt([],{}):new lt([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[Ue]=new lt(t,n)),r}parseSegment(){const t=$p(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new he(4009,!1);return this.capture(t),new Pa(gc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function E3(e){const t=e.match(D3);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=$p(this.remaining);i&&(r=i,this.capture(r))}t[gc(n)]=gc(r)}parseQueryParam(t){const n=function I3(e){const t=e.match(S3);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function M3(e){const t=e.match(T3);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Nb(n),o=Nb(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=$p(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new he(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ue);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[Ue]:new lt([],s),this.consumeOptional("//")}return n}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 he(4011,!1)}}function Rb(e){return e.segments.length>0?new lt([],{[Ue]:e}):e}function Ob(e){const t={};for(const[r,i]of Object.entries(e.children)){const o=Ob(i);if(r===Ue&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function N3(e){if(1===e.numberOfChildren&&e.children[Ue]){const t=e.children[Ue];return new lt(e.segments.concat(t.segments),t.children)}return e}(new lt(e.segments,t))}function Jo(e){return e instanceof Qo}function kb(e){let t;const i=Rb(function n(o){const s={};for(const u of o.children){const l=n(u);s[u.outlet]=l}const a=new lt(o.url,s);return o===e&&(t=a),a}(e.root));return t??i}function Pb(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return Hp(i,i,i,n,r);const o=function R3(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Lb(!0,0,e);let t=0,n=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([u,l])=>{a[u]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new Lb(n,t,r)}(t);if(o.toRoot())return Hp(i,i,new lt([],{}),n,r);const s=function O3(e,t,n){if(e.isAbsolute)return new vc(t,!0,0);if(!n)return new vc(t,!1,NaN);if(null===n.parent)return new vc(n,!0,0);const r=mc(e.commands[0])?0:1;return function k3(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new he(4005,!1);i=r.segments.length}return new vc(r,!1,i-o)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Va(s.segmentGroup,s.index,o.commands):Vb(s.segmentGroup,s.index,o.commands);return Hp(i,s.segmentGroup,a,n,r)}function mc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function La(e){return"object"==typeof e&&null!=e&&e.outlets}function Hp(e,t,n,r,i){let s,o={};r&&Object.entries(r).forEach(([u,l])=>{o[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===t?n:Fb(e,t,n);const a=Rb(Ob(s));return new Qo(a,o,i)}function Fb(e,t,n){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===t?n:Fb(o,t,n)}),new lt(e.segments,r)}class Lb{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&mc(r[0]))throw new he(4003,!1);const i=r.find(La);if(i&&i!==Db(r))throw new he(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vc{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Vb(e,t,n){if(e??=new lt([],{}),0===e.segments.length&&e.hasChildren())return Va(e,t,n);const r=function F3(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const s=e.segments[i],a=n[r];if(La(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!jb(u,l,s))return o;r+=2}else{if(!jb(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==Ue)&&e.children[Ue]&&1===e.numberOfChildren&&0===e.children[Ue].segments.length){const o=Va(e.children[Ue],t,n);return new lt(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=Vb(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new lt(e.segments,i)}}function zp(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=zp(new lt([],{}),0,r))}),t}function Bb(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function jb(e,t,n){return e==n.path&&br(t,n.parameters)}const Ba="imperative";var Ze=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(Ze||{});class Dr{constructor(t,n){this.id=t,this.url=n}}class yc extends Dr{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Ze.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Er extends Dr{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Ze.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var kn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(kn||{}),wc=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(wc||{});class es extends Dr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Ze.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ts extends Dr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Ze.NavigationSkipped}}class Cc extends Dr{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Ze.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ub extends Dr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ze.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class V3 extends Dr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ze.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class B3 extends Dr{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Ze.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class j3 extends Dr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ze.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class U3 extends Dr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Ze.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $3{constructor(t){this.route=t,this.type=Ze.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class H3{constructor(t){this.route=t,this.type=Ze.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class z3{constructor(t){this.snapshot=t,this.type=Ze.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G3{constructor(t){this.snapshot=t,this.type=Ze.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W3{constructor(t){this.snapshot=t,this.type=Ze.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class q3{constructor(t){this.snapshot=t,this.type=Ze.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $b{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=Ze.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Gp{}class Wp{constructor(t){this.url=t}}class Z3{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ja,this.attachRef=null}}let ja=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Z3,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Hb{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=qp(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=qp(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Zp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Zp(t,this._root).map(n=>n.value)}}function qp(e,t){if(e===t.value)return t;for(const n of t.children){const r=qp(e,n);if(r)return r}return null}function Zp(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Zp(e,n);if(r.length)return r.unshift(t),r}return[]}class rr{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function ns(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class zb extends Hb{constructor(t,n){super(t),this.snapshot=n,Qp(this,t)}toString(){return this.snapshot.toString()}}function Gb(e){const t=function Y3(e){const o=new Xp([],{},{},"",{},Ue,e,null,{});return new Wb("",new rr(o,[]))}(e),n=new Pn([new Pa("",{})]),r=new Pn({}),i=new Pn({}),o=new Pn({}),s=new Pn(""),a=new rs(n,r,o,s,i,Ue,e,t.root);return a.snapshot=t.root,new zb(new rr(a,[]),t)}class rs{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(at(l=>l[ka]))??Pe(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(at(t=>Xo(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(at(t=>Xo(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yp(e,t,n="emptyOnly"){let r;const{routeConfig:i}=e;return r=null===t||"always"!==n&&""!==i?.path&&(t.component||t.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.data,...i?.data,...e._resolvedData}},i&&Zb(i)&&(r.resolve[ka]=i.title),r}class Xp{get title(){return this.data?.[ka]}constructor(t,n,r,i,o,s,a,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Xo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Xo(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Wb extends Hb{constructor(t,n){super(n),this.url=t,Qp(this,n)}toString(){return qb(this._root)}}function Qp(e,t){t.value._routerState=e,t.children.forEach(n=>Qp(e,n))}function qb(e){const t=e.children.length>0?` { ${e.children.map(qb).join(", ")} } `:"";return`${e.value}${t}`}function Kp(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,br(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),br(t.params,n.params)||e.paramsSubject.next(n.params),function f3(e,t){if(e.length!==t.length)return!1;for(let n=0;nbr(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Jp(e.parent,t.parent))}function Zb(e){return"string"==typeof e.title||null===e.title}let eg=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ue,this.activateEvents=new en,this.deactivateEvents=new en,this.attachEvents=new en,this.detachEvents=new en,this.parentContexts=ue(ja),this.location=ue(Qn),this.changeDetector=ue(Bl),this.environmentInjector=ue(Mn),this.inputBinder=ue(_c,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new he(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new he(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new he(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new he(4013,!1);this._activatedRoute=n;const i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new X3(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Zt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ii]})}return e})();class X3{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r,this.__ngOutletInjector=!0}get(t,n){return t===rs?this.route:t===ja?this.childContexts:this.parent.get(t,n)}}const _c=new _e("");let Yb=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,i=kp([r.queryParams,r.params,r.data]).pipe(_r(([o,s,a],u)=>(a={...o,...s,...a},0===u?Pe(a):Promise.resolve(a)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function Ak(e){const t=He(e);if(!t)return null;const n=new oa(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();function Ua(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function K3(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ua(e,r,i);return Ua(e,r)})}(e,t,n);return new rr(r,i)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Ua(e,a)),s}}const r=function J3(e){return new rs(new Pn(e.url),new Pn(e.params),new Pn(e.queryParams),new Pn(e.fragment),new Pn(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>Ua(e,o));return new rr(r,i)}}const Xb="ngNavigationCancelingError";function Qb(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Jo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Kb(!1,kn.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Kb(e,t){const n=new Error(`NavigationCancelingError: ${e||""}`);return n[Xb]=!0,n.cancellationCode=t,n}function Jb(e){return!!e&&e[Xb]}let eD=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["ng-component"]],standalone:!0,features:[HC],decls:1,vars:0,template:function(r,i){1&r&&je(0,"router-outlet")},dependencies:[eg],encapsulation:2})}return e})();function tg(e){const t=e.children&&e.children.map(tg),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==Ue&&(n.component=eD),n}function Sr(e){return e.outlet||Ue}function $a(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class a5{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Kp(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=ns(n);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=ns(t);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=ns(t);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const i=ns(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new q3(o.value.snapshot))}),t.children.length&&this.forwardEvent(new G3(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(Kp(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Kp(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=$a(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class tD{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class bc{constructor(t,n){this.component=t,this.route=n}}function u5(e,t,n){const r=e._root;return Ha(r,t?t._root:null,n,[r.value])}function is(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function gE(e){return null!==eu(e)}(e)?t.get(e):e:r}function Ha(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=ns(t);return e.children.forEach(s=>{(function c5(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const u=function d5(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ui(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ui(e.url,t.url)||!br(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jp(e,t)||!br(e.queryParams,t.queryParams);default:return!Jp(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new tD(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Ha(e,t,o.component?a?a.children:null:n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new bc(a.outlet.component,s))}else s&&za(t,a,i),i.canActivateChecks.push(new tD(r)),Ha(e,null,o.component?a?a.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>za(a,n.getContext(s),i)),i}function za(e,t,n){const r=ns(e),i=e.value;Object.entries(r).forEach(([o,s])=>{za(s,i.component?t?t.children.getContext(o):null:t,n)}),n.canDeactivateChecks.push(new bc(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Ga(e){return"function"==typeof e}function nD(e){return e instanceof lc||"EmptyError"===e?.name}const Dc=Symbol("INITIAL_VALUE");function os(){return _r(e=>kp(e.map(t=>t.pipe(Zo(1),function i3(...e){const t=uc(e);return Ht((n,r)=>{(t?Pp(e,n,t):Pp(e,n)).subscribe(r)})}(Dc)))).pipe(at(t=>{for(const n of t)if(!0!==n){if(n===Dc)return Dc;if(!1===n||n instanceof Qo)return n}return!0}),jn(t=>t!==Dc),Zo(1)))}function rD(e){return function oE(...e){return bg(e)}(ln(t=>{if(Jo(t))throw Qb(0,t)}),at(t=>!0===t))}class ng{constructor(t){this.segmentGroup=t||null}}class rg extends Error{constructor(t){super(),this.urlTree=t}}function ss(e){return cc(new ng(e))}class N5{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return Pe(r);if(i.numberOfChildren>1||!i.children[Ue])return cc(new he(4e3,!1));i=i.children[Ue]}}applyRedirectCommands(t,n,r){const i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new rg(i);return i}applyRedirectCreateUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new Qo(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([i,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){const o=this.createSegments(t,n.segments,r,i);let s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new lt(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){const i=r[n.path.substring(1)];if(!i)throw new he(4001,!1);return i}findOrReturn(t,n){let r=0;for(const i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}}const ig={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function x5(e,t,n,r,i){const o=og(e,t,n);return o.matched?(r=function t5(e,t){return e.providers&&!e._injector&&(e._injector=fl(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function T5(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?Pe(i.map(s=>{const a=is(s,e);return mi(function v5(e){return e&&Ga(e.canMatch)}(a)?a.canMatch(t,n):Rr(e,()=>a(t,n)))})).pipe(os(),rD()):Pe(!0)}(r,t,n).pipe(at(s=>!0===s?o:{...ig}))):Pe(o)}function og(e,t,n){if("**"===t.path)return function R5(e){return{matched:!0,parameters:e.length>0?Db(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...ig}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const i=(t.matcher||d3)(n,e,t);if(!i)return{...ig};const o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function iD(e,t,n,r){return n.length>0&&function P5(e,t,n){return n.some(r=>Ec(e,t,r)&&Sr(r)!==Ue)}(e,n,r)?{segmentGroup:new lt(t,k5(r,new lt(n,e.children))),slicedSegments:[]}:0===n.length&&function F5(e,t,n){return n.some(r=>Ec(e,t,r))}(e,n,r)?{segmentGroup:new lt(e.segments,O5(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new lt(e.segments,e.children),slicedSegments:n}}function O5(e,t,n,r){const i={};for(const o of n)if(Ec(e,t,o)&&!r[Sr(o)]){const s=new lt([],{});i[Sr(o)]=s}return{...r,...i}}function k5(e,t){const n={};n[Ue]=t;for(const r of e)if(""===r.path&&Sr(r)!==Ue){const i=new lt([],{});n[Sr(r)]=i}return n}function Ec(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class B5{}class $5{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new N5(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new he(4002,`'${t.segmentGroup}'`)}recognize(){const t=iD(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(at(n=>{const r=new Xp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ue,this.rootComponentType,null,{}),i=new rr(r,n),o=new Wb("",i),s=function x3(e,t,n=null,r=null){return Pb(kb(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,Ue).pipe(Yo(r=>{if(r instanceof rg)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof ng?this.noMatchError(r):r}))}inheritParamsAndData(t,n){const r=t.value,i=Yp(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,r))}processSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i,!0).pipe(at(o=>o instanceof rr?[o]:[]))}processChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Wt(i).pipe(Oa(o=>{const s=r.children[o],a=function o5(e,t){const n=e.filter(r=>Sr(r)===t);return n.push(...e.filter(r=>Sr(r)!==t)),n}(n,o);return this.processSegmentGroup(t,a,s,o)}),function a3(e,t){return Ht(function s3(e,t,n,r,i){return(o,s)=>{let a=n,u=t,l=0;o.subscribe(Bt(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}(e,t,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),dc(null),function u3(e,t){const n=arguments.length>=2;return r=>r.pipe(e?jn((i,o)=>e(i,o,r)):Ci,Lp(1),n?dc(t):Cb(()=>new lc))}(),nn(o=>{if(null===o)return ss(r);const s=oD(o);return function H5(e){e.sort((t,n)=>t.value.outlet===Ue?-1:n.value.outlet===Ue?1:t.value.outlet.localeCompare(n.value.outlet))}(s),Pe(s)}))}processSegment(t,n,r,i,o,s){return Wt(n).pipe(Oa(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,i,o,s).pipe(Yo(u=>{if(u instanceof ng)return Pe(null);throw u}))),ji(a=>!!a),Yo(a=>{if(nD(a))return function V5(e,t,n){return 0===t.length&&!e.children[n]}(r,i,o)?Pe(new B5):ss(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return function L5(e,t,n,r){return!!(Sr(e)===r||r!==Ue&&Ec(t,n,e))&&og(t,e,n).matched}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,i,r,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):ss(i):ss(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:u,positionalParamSegments:l,remainingSegments:c}=og(n,i,o);if(!a)return ss(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,l);return this.applyRedirects.lineralizeSegments(i,d).pipe(nn(S=>this.processSegment(t,r,n,S.concat(c),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){const s=x5(n,r,i,t);return"**"===r.path&&(n.children={}),s.pipe(_r(a=>a.matched?this.getChildConfig(t=r._injector??t,r,i).pipe(_r(({routes:u})=>{const l=r._loadedInjector??t,{consumedSegments:c,remainingSegments:d,parameters:S}=a,O=new Xp(c,S,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function G5(e){return e.data||{}}(r),Sr(r),r.component??r._loadedComponent??null,r,function W5(e){return e.resolve||{}}(r)),{segmentGroup:B,slicedSegments:W}=iD(n,c,d,u);if(0===W.length&&B.hasChildren())return this.processChildren(l,u,B).pipe(at(ae=>null===ae?null:new rr(O,ae)));if(0===u.length&&0===W.length)return Pe(new rr(O,[]));const te=Sr(r)===o;return this.processSegment(l,u,B,W,te?Ue:o,!0).pipe(at(ae=>new rr(O,ae instanceof rr?[ae]:[])))})):ss(n)))}getChildConfig(t,n,r){return n.children?Pe({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?Pe({routes:n._loadedRoutes,injector:n._loadedInjector}):function I5(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?Pe(!0):Pe(i.map(s=>{const a=is(s,e);return mi(function h5(e){return e&&Ga(e.canLoad)}(a)?a.canLoad(t,n):Rr(e,()=>a(t,n)))})).pipe(os(),rD())}(t,n,r).pipe(nn(i=>i?this.configLoader.loadChildren(t,n).pipe(ln(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):function A5(e){return cc(Kb(!1,kn.GuardRejected))}())):Pe({routes:[],injector:t})}}function z5(e){const t=e.value.routeConfig;return t&&""===t.path}function oD(e){const t=[],n=new Set;for(const r of e){if(!z5(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):t.push(r)}for(const r of n){const i=oD(r.children);t.push(new rr(r.value,i))}return t.filter(r=>!n.has(r))}function sD(e){const t=e.children.map(n=>sD(n)).flat();return[e,...t]}function sg(e){return _r(t=>{const n=e(t);return n?Wt(n).pipe(at(()=>t)):Pe(t)})}let aD=(()=>{class e{buildTitle(n){let r,i=n.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Ue);return r}getResolvedTitleForRoute(n){return n.data[ka]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ue(K5),providedIn:"root"})}return e})(),K5=(()=>{class e extends aD{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(rL))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const as=new _e("",{providedIn:"root",factory:()=>({})}),us=new _e("");let ag=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ue(_1)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Pe(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=mi(n.loadComponent()).pipe(at(uD),ln(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Vp(()=>{this.componentLoaders.delete(n)})),i=new wb(r,()=>new hn).pipe(Fp());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Pe({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=function J5(e,t,n,r){return mi(e.loadChildren()).pipe(at(uD),nn(i=>i instanceof O0||Array.isArray(i)?Pe(i):Wt(t.compileModuleAsync(i))),at(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,!0):(o=i.create(n).injector,s=o.get(us,[],{optional:!0,self:!0}).flat()),{routes:s.map(tg),injector:o}}))}(r,this.compiler,n,this.onLoadEndListener).pipe(Vp(()=>{this.childrenLoaders.delete(r)})),s=new wb(o,()=>new hn).pipe(Fp());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function uD(e){return function e4(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ug=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ue(t4),providedIn:"root"})}return e})(),t4=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const lD=new _e(""),cD=new _e("");function n4(e,t,n){const r=e.get(cD),i=e.get(jt);return e.get(rt).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,Promise.resolve();let o;const s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),function r4(e){return new Promise(t=>{Wy(t,{injector:e})})}(e))),{onViewTransitionCreated:u}=r;return u&&Rr(e,()=>u({transition:a,from:t,to:n})),s})}let Sc=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new hn,this.transitionAbortSubject=new hn,this.configLoader=ue(ag),this.environmentInjector=ue(Mn),this.urlSerializer=ue(Ko),this.rootContexts=ue(ja),this.location=ue(Ia),this.inputBindingEnabled=null!==ue(_c,{optional:!0}),this.titleStrategy=ue(aD),this.options=ue(as,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=ue(ug),this.createViewTransition=ue(lD,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Pe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new H3(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new $3(i))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,i){return this.transitions=new Pn({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ba,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(jn(o=>0!==o.id),at(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),_r(o=>{let s=!1,a=!1;return Pe(o).pipe(_r(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",kn.SupersededByNewNavigation),Cr;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(u.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const d="";return this.events.next(new ts(u.id,this.urlSerializer.serialize(u.rawUrl),d,wc.IgnoredSameUrlNavigation)),u.resolve(null),Cr}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Pe(u).pipe(_r(d=>{const S=this.transitions?.getValue();return this.events.next(new yc(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),S!==this.transitions?.getValue()?Cr:Promise.resolve(d)}),function q5(e,t,n,r,i,o){return nn(s=>function j5(e,t,n,r,i,o,s="emptyOnly"){return new $5(e,t,n,r,i,s,o).recognize()}(e,t,n,r,s.extractedUrl,i,o).pipe(at(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ln(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const S=new Ub(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(S)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){const{id:d,extractedUrl:S,source:O,restoredState:B,extras:W}=u,te=new yc(d,this.urlSerializer.serialize(S),O,B);this.events.next(te);const ae=Gb(this.rootComponentType).snapshot;return this.currentTransition=o={...u,targetSnapshot:ae,urlAfterRedirects:S,extras:{...W,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=S,Pe(o)}{const d="";return this.events.next(new ts(u.id,this.urlSerializer.serialize(u.extractedUrl),d,wc.IgnoredByUrlHandlingStrategy)),u.resolve(null),Cr}}),ln(u=>{const l=new V3(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),at(u=>(this.currentTransition=o={...u,guards:u5(u.targetSnapshot,u.currentSnapshot,this.rootContexts)},o)),function y5(e,t){return nn(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Pe({...n,guardsResult:!0}):function w5(e,t,n,r){return Wt(e).pipe(nn(i=>function S5(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Pe(o.map(a=>{const u=$a(t)??i,l=is(a,u);return mi(function m5(e){return e&&Ga(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):Rr(u,()=>l(e,t,n,r))).pipe(ji())})).pipe(os()):Pe(!0)}(i.component,i.route,n,t,r)),ji(i=>!0!==i,!0))}(s,r,i,e).pipe(nn(a=>a&&function f5(e){return"boolean"==typeof e}(a)?function C5(e,t,n,r){return Wt(t).pipe(Oa(i=>Pp(function b5(e,t){return null!==e&&t&&t(new z3(e)),Pe(!0)}(i.route.parent,r),function _5(e,t){return null!==e&&t&&t(new W3(e)),Pe(!0)}(i.route,r),function E5(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function l5(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>yb(()=>Pe(s.guards.map(u=>{const l=$a(s.node)??n,c=is(u,l);return mi(function g5(e){return e&&Ga(e.canActivateChild)}(c)?c.canActivateChild(r,e):Rr(l,()=>c(r,e))).pipe(ji())})).pipe(os())));return Pe(o).pipe(os())}(e,i.path,n),function D5(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Pe(!0);const i=r.map(o=>yb(()=>{const s=$a(t)??n,a=is(o,s);return mi(function p5(e){return e&&Ga(e.canActivate)}(a)?a.canActivate(t,e):Rr(s,()=>a(t,e))).pipe(ji())}));return Pe(i).pipe(os())}(e,i.route,n))),ji(i=>!0!==i,!0))}(r,o,e,t):Pe(a)),at(a=>({...n,guardsResult:a})))})}(this.environmentInjector,u=>this.events.next(u)),ln(u=>{if(o.guardsResult=u.guardsResult,Jo(u.guardsResult))throw Qb(0,u.guardsResult);const l=new B3(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),jn(u=>!!u.guardsResult||(this.cancelNavigationTransition(u,"",kn.GuardRejected),!1)),sg(u=>{if(u.guards.canActivateChecks.length)return Pe(u).pipe(ln(l=>{const c=new j3(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),_r(l=>{let c=!1;return Pe(l).pipe(function Z5(e,t){return nn(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return Pe(n);const o=new Set(i.map(u=>u.route)),s=new Set;for(const u of o)if(!s.has(u))for(const l of sD(u))s.add(l);let a=0;return Wt(s).pipe(Oa(u=>o.has(u)?function Y5(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!Zb(i)&&(o[ka]=i.title),function X5(e,t,n,r){const i=Bp(e);if(0===i.length)return Pe({});const o={};return Wt(i).pipe(nn(s=>function Q5(e,t,n,r){const i=$a(t)??r,o=is(e,i);return mi(o.resolve?o.resolve(t,n):Rr(i,()=>o(t,n)))}(e[s],t,n,r).pipe(ji(),ln(a=>{o[s]=a}))),Lp(1),function l3(e){return at(()=>e)}(o),Yo(s=>nD(s)?Cr:cc(s)))}(o,e,t,r).pipe(at(s=>(e._resolvedData=s,e.data=Yp(e,e.parent,n).resolve,null)))}(u,r,e,t):(u.data=Yp(u,u.parent,e).resolve,Pe(void 0))),ln(()=>a++),Lp(1),nn(u=>a===s.size?Pe(n):Cr))})}(this.paramsInheritanceStrategy,this.environmentInjector),ln({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(l,"",kn.NoDataFromResolver)}}))}),ln(l=>{const c=new U3(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}))}),sg(u=>{const l=c=>{const d=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(ln(S=>{c.component=S}),at(()=>{})));for(const S of c.children)d.push(...l(S));return d};return kp(l(u.targetSnapshot.root)).pipe(dc(null),Zo(1))}),sg(()=>this.afterPreactivation()),_r(()=>{const{currentSnapshot:u,targetSnapshot:l}=o,c=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return c?Wt(c).pipe(at(()=>o)):Pe(o)}),at(u=>{const l=function Q3(e,t,n){const r=Ua(e,t._root,n?n._root:void 0);return new zb(r,t)}(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o={...u,targetRouterState:l},this.currentNavigation.targetRouterState=l,o}),ln(()=>{this.events.next(new Gp)}),((e,t,n,r)=>at(i=>(new a5(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)))(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Zo(1),ln({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Er(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),_b(this.transitionAbortSubject.pipe(ln(u=>{throw u}))),Vp(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",kn.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Yo(u=>{if(a=!0,Jb(u))this.events.next(new es(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),function e5(e){return Jb(e)&&Jo(e.url)}(u)?this.events.next(new Wp(u.url)):o.resolve(!1);else{this.events.next(new Cc(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return Cr}))}))}cancelNavigationTransition(n,r,i){const o=new es(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function i4(e){return e!==Ba}let o4=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ue(a4),providedIn:"root"})}return e})();class s4{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let a4=(()=>{class e extends s4{static#e=this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Od(e)))(i||e)}})();static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dD=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:()=>ue(u4),providedIn:"root"})}return e})(),u4=(()=>{class e extends dD{constructor(){super(...arguments),this.location=ue(Ia),this.urlSerializer=ue(Ko),this.options=ue(as,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=ue(ug),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Qo,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Gb(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{"popstate"===r.type&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof yc)this.stateMemento=this.createStateMemento();else if(n instanceof ts)this.rawUrlTree=r.initialUrl;else if(n instanceof Ub){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(i,r)}}else n instanceof Gp?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof es&&(n.code===kn.GuardRejected||n.code===kn.NoDataFromResolver)?this.restoreHistory(r):n instanceof Cc?this.restoreHistory(r,!0):n instanceof Er&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",s)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(i,"",o)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&0===o&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static#e=this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Od(e)))(i||e)}})();static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Wa=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Wa||{});function fD(e,t){e.events.pipe(jn(n=>n instanceof Er||n instanceof es||n instanceof Cc||n instanceof ts),at(n=>n instanceof Er||n instanceof ts?Wa.COMPLETE:n instanceof es&&(n.code===kn.Redirect||n.code===kn.SupersededByNewNavigation)?Wa.REDIRECTING:Wa.FAILED),jn(n=>n!==Wa.REDIRECTING),Zo(1)).subscribe(()=>{t()})}function l4(e){throw e}const c4={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},d4={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Un=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=ue(d1),this.stateManager=ue(dD),this.options=ue(as,{optional:!0})||{},this.pendingTasks=ue(Eo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=ue(Sc),this.urlSerializer=ue(Ko),this.location=ue(Ia),this.urlHandlingStrategy=ue(ug),this._events=new hn,this.errorHandler=this.options.errorHandler||l4,this.navigated=!1,this.routeReuseStrategy=ue(o4),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=ue(us,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!ue(_c,{optional:!0}),this.eventsSubscription=new ie,this.isNgZoneEnabled=ue(rt)instanceof rt&&rt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==i&&null!==o)if(this.stateManager.handleRouterEvent(r,o),r instanceof es&&r.code!==kn.Redirect&&r.code!==kn.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Er)this.navigated=!0;else if(r instanceof Wp){const s=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||i4(i.source)};this.scheduleNavigation(s,Ba,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}(function h4(e){return!(e instanceof Gp||e instanceof Wp)})(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ba,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const u={...i};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(o.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(tg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...o};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=o||null}null!==c&&(c=this.removeEmptyProps(c));try{d=kb(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Pb(d,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=Jo(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ba,null,r)}navigate(n,r={skipLocationChange:!1}){return function f4(e){for(let t=0;t(null!=o&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,S)=>{a=d,u=S});const c=this.pendingTasks.add();return fD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ic=(()=>{class e{constructor(n,r,i,o,s,a){this.router=n,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new hn,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Er&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,i,o,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==n||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const n=this.urlTree;this.href=null!==n&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;const r=null===this.href?null:function jv(e,t,n){return function C2(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bv:uf}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,n,r):i.removeAttribute(o,n)}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:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(ke(Un),ke(rs),function Os(e){return function KS(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{class e{get isActive(){return this._isActive}constructor(n,r,i,o,s){this.router=n,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new en,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Er&&this.update()})}ngAfterContentInit(){Pe(this.links.changes,Pe(null)).pipe(Ra()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Wt(n).pipe(Ra()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function p4(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{const o=i.urlTree;return!!o&&n.isActive(o,r)}}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static#e=this.\u0275fac=function(r){return new(r||e)(ke(Un),ke(Vr),ke(al),ke(Bl),ke(Ic,8))};static#t=this.\u0275dir=Zt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(1&r&&bC(o,Ic,5),2&r){let s;Nh(s=xh())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ii]})}return e})();class pD{}let g4=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(jn(n=>n instanceof Er),Oa(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=fl(o.providers,n,`Route: ${o.path}`));const s=o._injector??n,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Wt(i).pipe(Ra())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):Pe(null);const o=i.pipe(nn(s=>null===s?Pe(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Wt([o,this.loader.loadComponent(r)]).pipe(Ra()):o})}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(Un),Ae(_1),Ae(Mn),Ae(pD),Ae(ag))};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const lg=new _e("");let gD=(()=>{class e{constructor(n,r,i,o,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof yc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Er?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ts&&n.code===wc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof $b&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $b(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function cy(){throw new Error("invalid")}()};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac})}return e})();function Ir(e,t){return{\u0275kind:e,\u0275providers:t}}function vD(){const e=ue(vn);return t=>{const n=e.get(hi);if(t!==n.components[0])return;const r=e.get(Un),i=e.get(yD);1===e.get(cg)&&r.initialNavigation(),e.get(wD,null,ze.Optional)?.setUpPreloading(),e.get(lg,null,ze.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const yD=new _e("",{factory:()=>new hn}),cg=new _e("",{providedIn:"root",factory:()=>1}),wD=new _e("");function w4(e){return Ir(0,[{provide:wD,useExisting:g4},{provide:pD,useExisting:e}])}function _4(e){return Ir(9,[{provide:lD,useValue:n4},{provide:cD,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const CD=new _e("ROUTER_FORROOT_GUARD"),b4=[Ia,{provide:Ko,useClass:jp},Un,ja,{provide:rs,useFactory:function mD(e){return e.routerState.root},deps:[Un]},ag,[]];let _D=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[b4,[],{provide:us,multi:!0,useValue:n},{provide:CD,useFactory:I4,deps:[[Un,new ou,new su]]},{provide:as,useValue:r||{}},r?.useHash?{provide:Bi,useClass:kk}:{provide:Bi,useClass:d_},{provide:lg,useFactory:()=>{const e=ue(nF),t=ue(rt),n=ue(as),r=ue(Sc),i=ue(Ko);return n.scrollOffset&&e.setOffset(n.scrollOffset),new gD(i,r,e,t,n)}},r?.preloadingStrategy?w4(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?T4(r):[],r?.bindToComponentInputs?Ir(8,[Yb,{provide:_c,useExisting:Yb}]).\u0275providers:[],r?.enableViewTransitions?_4().\u0275providers:[],[{provide:bD,useFactory:vD},{provide:Fl,multi:!0,useExisting:bD}]]}}static forChild(n){return{ngModule:e,providers:[{provide:us,multi:!0,useValue:n}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(CD,8))};static#t=this.\u0275mod=xr({type:e});static#n=this.\u0275inj=or({})}return e})();function I4(e){return"guarded"}function T4(e){return["disabled"===e.initialNavigation?Ir(3,[{provide:Pl,multi:!0,useFactory:()=>{const t=ue(Un);return()=>{t.setUpLocationChangeListener()}}},{provide:cg,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ir(2,[{provide:cg,useValue:0},{provide:Pl,multi:!0,deps:[vn],useFactory:t=>{const n=t.get(Rk,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const i=t.get(Un),o=t.get(yD);fD(i,()=>{r(!0)}),t.get(Sc).afterPreactivation=()=>(r(!0),o.closed?Pe(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const bD=new _e(""),dg=new _e("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),DD=new _e("ngx-window",{providedIn:"root",factory:()=>{const{defaultView:e}=ue(jt);if(!e)throw new Error("Window is not available");return e}}),x4=new _e("ngx-data-layer",{providedIn:"root",factory:()=>function N4(e){return e?e.dataLayer=e.dataLayer||[]:null}(ue(DD))}),ED=new _e("ngx-gtag-fn",{providedIn:"root",factory:()=>function R4(e,t){return e?e.gtag=e.gtag||function(){t.push(arguments)}:null}(ue(DD),ue(x4))});let Tc=(()=>{class e{constructor(n,r,i){this.settings=n,this._document=r,this._gtag=i}get document(){return this._document}throw(n){this.settings.enableTracing&&console&&console.error&&console.error(n)}toKeyValue(n){return n.size>0?Array.from(n).reduce((r,[i,o])=>Object.defineProperty(r,i,{value:o,enumerable:!0}),{}):void 0}gtag(...n){try{this._gtag(...n.filter(r=>void 0!==r))}catch(r){this.throw(r)}}event(n,r,i,o,s,a){try{const u=new Map;r&&u.set("event_category",r),i&&u.set("event_label",i),o&&u.set("value",o),void 0!==s&&u.set("interaction",s),a&&Object.entries(a).map(([c,d])=>u.set(c,d));const l=this.toKeyValue(u);l?this.gtag("event",n,l):this.gtag("event",n)}catch(u){this.throw(u)}}pageView(n,r,i,o){try{const s=new Map([["page_path",n]]);r&&s.set("page_title",r),(i||this.document)&&s.set("page_location",i||this.document.location.href),o&&Object.entries(o).map(([a,u])=>s.set(a,u)),this.gtag("config",this.settings.trackingCode,this.toKeyValue(s))}catch(s){this.throw(s)}}appView(n,r,i,o,s){try{const a=new Map([["screen_name",n],["app_name",r]]);i&&a.set("app_id",i),o&&a.set("app_version",o),s&&a.set("app_installer_id",s),this.gtag("event","screen_view",this.toKeyValue(a))}catch(a){this.throw(a)}}set(...n){try{this._gtag("set",...n)}catch(r){this.throw(r)}}exception(n,r){try{const i=new Map;n&&i.set("description",n),r&&i.set("fatal",r),this.toKeyValue(i)?this.gtag("event","exception",this.toKeyValue(i)):this.gtag("event","exception")}catch(i){this.throw(i)}}}return e.\u0275fac=function(n){return new(n||e)(Ae(dg),Ae(jt),Ae(ED))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const k4={provide:Pl,multi:!0,useFactory:function P4(e,t,n){return M(function*(){if(!e.trackingCode)return void console.error("Empty tracking code for Google Analytics. Make sure to provide one when initializing NgxGoogleAnalyticsModule.");if(!t)return void console.error("Was not possible create or read gtag() fn. Make sure this module is running on a Browser w/ access to Window interface.");n||console.error("Was not possible to access Document interface. Make sure this module is running on a Browser w/ access do Document interface."),e.uri=e.uri||`https://www.googletagmanager.com/gtag/js?id=${e.trackingCode}`,e.initCommands=e?.initCommands??[],e.initCommands.find(o=>"config"===o.command)||e.initCommands.unshift({command:"config",values:[e.trackingCode]}),e.initCommands.find(o=>"js"===o.command)||e.initCommands.unshift({command:"js",values:[new Date]});for(const o of e.initCommands)t(o.command,...o.values);const r=n.createElement("script");r.async=!0,r.src=e.uri,e.nonce&&r.setAttribute("nonce",e.nonce),n.getElementsByTagName("head")[0].appendChild(r)})},deps:[dg,ED,jt]},SD=new _e("ngx-google-analytics-routing-settings",{factory:()=>({})}),F4={provide:Fl,multi:!0,useFactory:function L4(e,t){return function(){var n=M(function*(r){const i=r.injector.get(Un),{include:o=[],exclude:s=[]}=e??{},a=ID(o),u=ID(s),l=i.events.pipe(jn(c=>c instanceof Er),function A4(e){return jn((t,n)=>e<=n)}(1),jn(c=>!(a.length>0)||a.some(d=>d.test(c.urlAfterRedirects))),jn(c=>!(u.length>0&&u.some(d=>d.test(c.urlAfterRedirects))))).subscribe(c=>t.pageView(c.urlAfterRedirects,void 0));r.onDestroy(()=>l.unsubscribe())});return function(r){return n.apply(this,arguments)}}()},deps:[SD,Tc]};function ID(e){return e.map(t=>t instanceof RegExp?t:new RegExp(`^${t.replace("*",".*")}$`,"i"))}let TD=(()=>{class e{static forRoot(n,r=[],i,o,s){return{ngModule:e,providers:[{provide:dg,useValue:{trackingCode:n,initCommands:r,uri:i,enableTracing:o,nonce:s}},k4]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=xr({type:e}),e.\u0275inj=or({}),e})(),V4=(()=>{class e{static forRoot(n){return{ngModule:e,providers:[{provide:SD,useValue:n??{}}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=xr({type:e}),e.\u0275inj=or({providers:[F4],imports:[M_,TD]}),e})();const fg="3.1.7",hg=()=>({exact:!0});let B4=(()=>{class e{constructor(){this.document=ue(jt),this.platformId=ue(ni),this.backgroundImagesCount=8}ngOnInit(){if(this.document.head.querySelector('meta[name="version"]')?.setAttribute("content",fg),!Cp(this.platformId)){const n=Math.floor(Math.random()*this.backgroundImagesCount+1);this.document.body.style.backgroundImage=`url('/assets/background/bg${n}.jpg')`}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["app-root"]],decls:54,vars:6,consts:[[1,"container","mx-auto","p-4"],[1,"card","mb-4","flex","flex-col","items-center","overflow-hidden","p-4","pb-0","sm:flex-row","sm:items-end","lg:inline-flex"],[1,"pb-4","pr-4"],["role","img","aria-label","Lyric Converter",1,"h-[88px]","fill-white"],[0,"xlink","href","#lyric-converter-logo"],[1,"flex","sm:ml-auto"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/",1,"rounded-t-md","p-4","text-xl","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/about",1,"rounded-t-md","p-4","text-xl","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/help",1,"rounded-t-md","p-4","text-xl","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"routerLinkActiveOptions"],["xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","lyric-converter-logo","viewBox","0 0 400 116.51"],["id","logo-text-converter"],["d","m112.8,107.12c-.93,1.58-2.11,2.87-3.55,3.88-1.44,1.01-3.06,1.76-4.88,2.24-1.81.49-3.66.73-5.55.73-3,0-5.59-.54-7.78-1.62s-4-2.55-5.44-4.42c-1.44-1.86-2.5-4.06-3.19-6.58-.69-2.52-1.03-5.23-1.03-8.13v-1.79c0-2.87.34-5.57,1.03-8.09.69-2.52,1.75-4.72,3.17-6.6s3.23-3.36,5.42-4.44,4.76-1.62,7.73-1.62c2.01,0,3.93.28,5.78.85s3.48,1.43,4.9,2.58c1.42,1.15,2.58,2.59,3.48,4.31s1.41,3.73,1.53,6.04h2.43c-.04-.78-.19-1.47-.3-2.19-.22-1.39-.56-2.69-1.07-3.88-.13-.29-.19-.63-.33-.91-1.02-2.01-2.35-3.69-4-5.04s-3.54-2.37-5.69-3.05-4.38-1.02-6.72-1.02c-3.15,0-5.94.57-8.38,1.71-1.84.86-3.4,2.05-4.81,3.42-.46.45-.97.84-1.39,1.34-1.69,2.03-2.98,4.46-3.87,7.28-.69,2.21-1.04,4.66-1.18,7.22-.04.7-.14,1.36-.14,2.08v1.79c0,3.39.44,6.49,1.33,9.31s2.17,5.24,3.87,7.28c1.69,2.04,3.78,3.62,6.25,4.76s5.28,1.71,8.43,1.71c2.37,0,4.61-.34,6.74-1s4.01-1.64,5.64-2.9c1.63-1.27,2.95-2.82,3.96-4.65,1-1.84,1.57-3.94,1.69-6.3h-2.43c-.15,2.22-.69,4.12-1.62,5.7Z"],["d","m160.68,82.12c-1.03-2.82-2.48-5.24-4.34-7.28s-4.1-3.62-6.72-4.76-5.52-1.71-8.7-1.71-6.02.57-8.63,1.71c-1.74.76-3.26,1.8-4.68,2.96-.7.58-1.42,1.13-2.04,1.8-1.87,2.03-3.33,4.46-4.36,7.28-.02.05-.03.11-.05.16-1,2.78-1.5,5.82-1.5,9.15v1.79c0,3.39.52,6.49,1.55,9.31s2.49,5.24,4.36,7.28c1.87,2.04,4.12,3.62,6.74,4.76s5.52,1.71,8.7,1.71,6.02-.57,8.63-1.71,4.85-2.73,6.72-4.76c1.87-2.03,3.32-4.46,4.34-7.28s1.53-5.92,1.53-9.31v-1.79c0-3.39-.52-6.49-1.55-9.31Zm-.88,11.1c0,2.76-.43,5.39-1.28,7.9-.85,2.51-2.08,4.71-3.69,6.62s-3.57,3.42-5.89,4.55c-2.32,1.13-4.97,1.69-7.93,1.69s-5.66-.56-8-1.69c-2.34-1.12-4.31-2.64-5.93-4.55s-2.85-4.11-3.71-6.62c-.85-2.5-1.28-5.14-1.28-7.9v-1.79c0-2.7.43-5.3,1.28-7.79.16-.48.41-.9.6-1.36.81-1.92,1.79-3.71,3.08-5.26.17-.2.38-.35.56-.54,1.5-1.65,3.26-3.04,5.35-4.07,2.34-1.15,4.99-1.73,7.96-1.73s5.62.58,7.96,1.73c2.34,1.15,4.31,2.69,5.93,4.61,1.62,1.92,2.85,4.13,3.71,6.62s1.28,5.09,1.28,7.79v1.79Z"],["d","m202.3,77.68c-.69-2.16-1.69-3.93-3.01-5.32s-2.94-2.39-4.85-3.03c-1.92-.64-4.1-.96-6.56-.96-.28,0-.55.05-.83.06-1.72.07-3.37.32-4.9.83-1.78.6-3.41,1.42-4.88,2.45-.85.61-1.63,1.3-2.37,2.03-.53.53-1.05,1.07-1.52,1.66-1.12,1.42-2.04,2.95-2.76,4.57v-10.76h-2.43v46.2h2.43v-29.59c.24-1,.58-2.06,1.03-3.2s1.01-2.28,1.69-3.42c.46-.77.99-1.5,1.56-2.22.27-.34.54-.69.84-1.03.93-1.02,1.99-1.94,3.17-2.73s2.51-1.43,3.98-1.9c1.27-.41,2.67-.6,4.16-.66.24,0,.45-.05.69-.05,1.92,0,3.69.23,5.3.68s3.01,1.24,4.18,2.37c1.17,1.13,2.07,2.65,2.72,4.57.64,1.92.97,4.35.97,7.28v29.89h2.43v-29.89c0-3.07-.34-5.69-1.03-7.86Z"],["points","242.59 69.23 240.86 73.43 236.63 83.7 225.1 111.75 208.61 71.63 207.62 69.23 206.91 69.23 205.01 69.23 223.89 115.42 226.27 115.42 239.33 83.53 243.75 72.74 245.19 69.23 242.59 69.23"],["d","m246.22,90.79h36.45v-2.69c0-2.93-.46-5.61-1.37-8.03s-2.19-4.5-3.82-6.23-3.58-3.08-5.84-4.03-4.74-1.43-7.44-1.43-5.23.54-7.61,1.58c-.11.05-.22.08-.32.13-2.47,1.14-4.63,2.73-6.47,4.76s-3.3,4.47-4.38,7.3c-.03.08-.05.16-.08.23-1.02,2.77-1.54,5.79-1.54,9.06v1.88c0,3.36.55,6.44,1.66,9.24,1.11,2.8,2.63,5.22,4.56,7.26,1.93,2.04,4.19,3.62,6.76,4.76s5.35,1.71,8.31,1.71c1.95,0,3.73-.19,5.35-.55,1.62-.37,3.09-.88,4.43-1.54s2.52-1.44,3.57-2.35,1.98-1.92,2.79-3.03l-1.71-1.15c-1.02,1.25-2.08,2.28-3.19,3.1-1.11.81-2.26,1.46-3.46,1.94s-2.45.83-3.75,1.02-2.64.3-4.02.3c-2.67,0-5.15-.54-7.46-1.62-2.31-1.08-4.31-2.55-6-4.42s-3.02-4.06-3.98-6.58c-.96-2.52-1.44-5.22-1.44-8.09v-2.52Zm5.8-14.97c1.56-1.61,3.36-2.87,5.42-3.78.15-.06.31-.09.46-.15,1.93-.79,4.02-1.22,6.3-1.22,2.43,0,4.63.46,6.61,1.39,1.98.93,3.66,2.18,5.06,3.76,1.39,1.58,2.47,3.42,3.24,5.51.76,2.09,1.15,4.29,1.15,6.6v.55h-33.89c.27-2.5.89-4.84,1.87-7,.01-.03.03-.05.05-.08.97-2.13,2.22-3.99,3.75-5.57Z"],["d","m309.18,70.89c-.48-.06-.98-.11-1.51-.17-.52-.06-1.07-.08-1.64-.08-2.25,0-4.27.37-6.07,1.11-1.8.74-3.36,1.76-4.67,3.05-1.32,1.3-2.4,2.83-3.26,4.59s-1.48,3.69-1.87,5.76v30.27h-2.43v-46.2h2.43v9.61c1.32-3.22,3.3-5.76,5.93-7.64s5.95-2.82,9.93-2.82c.75,0,1.41.04,1.98.13.57.09,1.05.2,1.44.34l-.27,2.05Z"],["d","m323.67,56.76v12.47h11.06v2.35h-11.06v32.79c0,2.02.19,3.66.58,4.91s.92,2.23,1.6,2.92c.67.7,1.45,1.17,2.34,1.41s1.82.36,2.81.36c.93,0,1.75-.04,2.47-.11s1.5-.16,2.34-.28l.4,2.18c-.33.11-.72.2-1.17.26s-.91.11-1.39.15c-.48.04-.94.07-1.39.09-.45.01-.82.02-1.12.02-1.56,0-2.95-.19-4.18-.55-1.23-.37-2.27-1.01-3.12-1.92s-1.51-2.13-1.96-3.67-.67-3.46-.67-5.76v-32.79h-8.99v-2.35h8.99v-12.47h2.47Z"],["d","m355.65,116.28c-2.97,0-5.74-.57-8.31-1.71s-4.83-2.73-6.76-4.76c-1.93-2.03-3.45-4.45-4.56-7.26-1.11-2.8-1.66-5.88-1.66-9.24v-1.88c0-3.36.54-6.45,1.62-9.29,1.08-2.83,2.54-5.27,4.38-7.3,1.84-2.03,4-3.62,6.47-4.76s5.12-1.71,7.93-1.71,5.18.48,7.44,1.43,4.21,2.3,5.84,4.03c1.63,1.74,2.91,3.81,3.82,6.23s1.37,5.1,1.37,8.03v2.69h-36.45v2.52c0,2.87.48,5.57,1.44,8.09.96,2.52,2.28,4.71,3.98,6.58s3.69,3.34,6,4.42c2.31,1.08,4.79,1.62,7.46,1.62,1.38,0,2.72-.1,4.02-.3s2.55-.54,3.75-1.02,2.35-1.13,3.46-1.94c1.11-.81,2.17-1.84,3.19-3.1l1.71,1.15c-.81,1.11-1.74,2.12-2.79,3.03s-2.24,1.69-3.57,2.35-2.81,1.17-4.43,1.54c-1.62.37-3.4.55-5.35.55Zm-.9-45.6c-2.46,0-4.71.46-6.76,1.37s-3.86,2.17-5.42,3.78c-1.56,1.61-2.82,3.5-3.8,5.66-.97,2.16-1.6,4.5-1.87,7h33.89v-.55c0-2.31-.38-4.5-1.15-6.6-.76-2.09-1.84-3.93-3.24-5.51-1.39-1.58-3.08-2.83-5.06-3.76-1.98-.92-4.18-1.39-6.61-1.39Z"],["d","m399.73,70.89c-.48-.06-.98-.11-1.51-.17-.52-.06-1.07-.08-1.64-.08-2.25,0-4.27.37-6.07,1.11-1.8.74-3.36,1.76-4.67,3.05-1.32,1.3-2.4,2.83-3.26,4.59s-1.48,3.69-1.87,5.76v30.27h-2.43v-46.2h2.43v9.61c1.32-3.22,3.3-5.76,5.93-7.64s5.95-2.82,9.93-2.82c.75,0,1.41.04,1.98.13.57.09,1.05.2,1.44.34l-.27,2.05Z"],["id","logo-text-lyric"],["d","m0,82.28V1.89h12.15v70.08h38.66v10.31H0Z"],["d","m78.82,81.66c.94-3,2.34-5.62,4.15-7.8,1.11-1.34,2.4-2.48,3.82-3.47l19.34-48.13h-11.54l-11.9,31.3c-.98,2.78-2.01,5.69-3.07,8.71-1.07,3.03-2.09,5.97-3.07,8.84h-.49c-1.23-2.95-2.41-5.93-3.56-8.96-1.15-3.03-2.29-5.89-3.44-8.59l-13.5-31.3h-12.15l27.37,59.64-1.6,4.17c-1.31,3.27-3.21,6.01-5.71,8.22-2.5,2.21-5.75,3.31-9.76,3.31-.9,0-1.8-.08-2.7-.25-.9-.16-1.72-.37-2.45-.61l-2.45,9.45c2.45.82,5.19,1.23,8.22,1.23,7.04,0,12.56-1.96,16.57-5.89,2.5-2.45,4.65-5.44,6.51-8.85v-1.27c0-3.53.47-6.81,1.4-9.77Z"],["d","m138.73,35.4c4.05-2.46,8.2-3.68,12.46-3.68,2.29,0,4.17.16,5.64.49,1.47.33,3.23.82,5.28,1.47l2.7-10.43c-3.52-1.63-7.45-2.45-11.78-2.45-5.32,0-10.23,1.37-14.73,4.11-4.5,2.74-8.31,6.53-11.41,11.35h-.37l-.98-13.99h-10.06v52.91c.35.54.74,1.03,1.03,1.62.83,1.63,1.39,3.47,1.67,5.48h1.38c.08-.23.13-.46.21-.69,1.1-3,2.67-5.62,4.67-7.79.96-1.04,2.02-1.98,3.17-2.8v-22.84c3.35-6.05,7.06-10.31,11.11-12.76Z"],["d","m180.97,25.94c2.35,0,4.3-.72,5.84-2.15,1.54-1.43,2.31-3.32,2.31-5.67s-.77-4.24-2.31-5.67c-1.54-1.43-3.49-2.15-5.84-2.15s-4.2.72-5.78,2.15c-1.58,1.43-2.37,3.32-2.37,5.67s.79,4.24,2.37,5.67c1.58,1.43,3.51,2.15,5.78,2.15Z"],["d","m181.65,67.81c1.68-.56,3.5-.84,5.39-.91V26.57h-.1c-1.71,1.1-3.7,1.67-5.98,1.67s-4.19-.57-5.91-1.67h-.17v45.12c.49-.42.96-.85,1.49-1.22,1.59-1.12,3.36-2.02,5.27-2.66Z"],["d","m208.65,67.69l.39.95,2.67,6.49c2.07,1.96,4.42,3.62,7.1,4.94,4.81,2.37,10.21,3.57,16.17,3.65l4.12-10.03c-.81.08-1.64.12-2.49.12-6.38,0-11.56-1.96-15.53-5.89-3.97-3.93-5.95-9.12-5.95-15.59s2.02-11.66,6.07-15.59c4.05-3.93,9.31-5.89,15.77-5.89,2.95,0,5.69.55,8.22,1.66,2.53,1.11,4.99,2.64,7.36,4.6l5.89-7.73c-2.46-2.37-5.52-4.4-9.2-6.07-3.68-1.67-7.98-2.52-12.89-2.52-6.06,0-11.64,1.25-16.75,3.74-5.11,2.5-9.23,6.07-12.33,10.74-3.11,4.66-4.66,10.35-4.66,17.06,0,5.89,1.22,10.99,3.51,15.36h2.53Z"],["id","check-circle-fill","viewBox","0 0 16 16"],["d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"],["id","exclamation-triangle-fill","viewBox","0 0 16 16"],["d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"],["id","files","viewBox","0 0 16 16"],["d","M13 0H6a2 2 0 0 0-2 2 2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2 2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm0 13V4a2 2 0 0 0-2-2H5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1zM3 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4z"],["id","file-text-fill","viewBox","0 0 16 16"],["d","M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM5 4h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zM5 8h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm0 2h3a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1z"],["id","file-zip-fill","viewBox","0 0 16 16"],["d","M8.5 9.438V8.5h-1v.938a1 1 0 0 1-.03.243l-.4 1.598.93.62.93-.62-.4-1.598a1 1 0 0 1-.03-.243z"],["d","M4 0h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm2.5 8.5v.938l-.4 1.599a1 1 0 0 0 .416 1.074l.93.62a1 1 0 0 0 1.109 0l.93-.62a1 1 0 0 0 .415-1.074l-.4-1.599V8.5a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1zm1-5.5h-1v1h1v1h-1v1h1v1H9V6H8V5h1V4H8V3h1V2H8V1H6.5v1h1v1z"],["id","github","viewBox","0 0 16 16"],["d","M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"],["id","info-fill","viewBox","0 0 16 16"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],["id","mastodon","viewBox","0 0 16 16"],["d","M11.19 12.195c2.016-.24 3.77-1.475 3.99-2.603.348-1.778.32-4.339.32-4.339 0-3.47-2.286-4.488-2.286-4.488C12.062.238 10.083.017 8.027 0h-.05C5.92.017 3.942.238 2.79.765c0 0-2.285 1.017-2.285 4.488l-.002.662c-.004.64-.007 1.35.011 2.091.083 3.394.626 6.74 3.78 7.57 1.454.383 2.703.463 3.709.408 1.823-.1 2.847-.647 2.847-.647l-.06-1.317s-1.303.41-2.767.36c-1.45-.05-2.98-.156-3.215-1.928a3.614 3.614 0 0 1-.033-.496s1.424.346 3.228.428c1.103.05 2.137-.064 3.188-.189zm1.613-2.47H11.13v-4.08c0-.859-.364-1.295-1.091-1.295-.804 0-1.207.517-1.207 1.541v2.233H7.168V5.89c0-1.024-.403-1.541-1.207-1.541-.727 0-1.091.436-1.091 1.296v4.079H3.197V5.522c0-.859.22-1.541.66-2.046.456-.505 1.052-.764 1.793-.764.856 0 1.504.328 1.933.983L8 4.39l.417-.695c.429-.655 1.077-.983 1.934-.983.74 0 1.336.259 1.791.764.442.505.661 1.187.661 2.046v4.203z"],["id","piggy-bank-fill","viewBox","0 0 16 16"],["d","M7.964 1.527c-2.977 0-5.571 1.704-6.32 4.125h-.55A1 1 0 0 0 .11 6.824l.254 1.46a1.5 1.5 0 0 0 1.478 1.243h.263c.3.513.688.978 1.145 1.382l-.729 2.477a.5.5 0 0 0 .48.641h2a.5.5 0 0 0 .471-.332l.482-1.351c.635.173 1.31.267 2.011.267.707 0 1.388-.095 2.028-.272l.543 1.372a.5.5 0 0 0 .465.316h2a.5.5 0 0 0 .478-.645l-.761-2.506C13.81 9.895 14.5 8.559 14.5 7.069c0-.145-.007-.29-.02-.431.261-.11.508-.266.705-.444.315.306.815.306.815-.417 0 .223-.5.223-.461-.026a.95.95 0 0 0 .09-.255.7.7 0 0 0-.202-.645.58.58 0 0 0-.707-.098.735.735 0 0 0-.375.562c-.024.243.082.48.32.654a2.112 2.112 0 0 1-.259.153c-.534-2.664-3.284-4.595-6.442-4.595Zm7.173 3.876a.565.565 0 0 1-.098.21.704.704 0 0 1-.044-.025c-.146-.09-.157-.175-.152-.223a.236.236 0 0 1 .117-.173c.049-.027.08-.021.113.012a.202.202 0 0 1 .064.199Zm-8.999-.65a.5.5 0 1 1-.276-.96A7.613 7.613 0 0 1 7.964 3.5c.763 0 1.497.11 2.18.315a.5.5 0 1 1-.287.958A6.602 6.602 0 0 0 7.964 4.5c-.64 0-1.255.09-1.826.254ZM5 6.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"],["id","x-circle","viewBox","0 0 16 16"],["d","M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"],["d","M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"]],template:function(r,i){1&r&&(de(0,"div",0)(1,"header",1)(2,"h1",2),kt(),de(3,"svg",3),je(4,"use",4),ce()(),dr(),de(5,"nav",5)(6,"a",6),be(7,"Convert"),ce(),de(8,"a",7),be(9,"About"),ce(),de(10,"a",8),be(11,"Help"),ce()()(),je(12,"router-outlet"),ce(),kt(),de(13,"svg",9)(14,"symbol",10)(15,"g",11),je(16,"path",12)(17,"path",13)(18,"path",14)(19,"polygon",15)(20,"path",16)(21,"path",17)(22,"path",18)(23,"path",19)(24,"path",20),ce(),de(25,"g",21),je(26,"path",22)(27,"path",23)(28,"path",24)(29,"path",25)(30,"path",26)(31,"path",27),ce()(),de(32,"symbol",28),je(33,"path",29),ce(),de(34,"symbol",30),je(35,"path",31),ce(),de(36,"symbol",32),je(37,"path",33),ce(),de(38,"symbol",34),je(39,"path",35),ce(),de(40,"symbol",36),je(41,"path",37)(42,"path",38),ce(),de(43,"symbol",39),je(44,"path",40),ce(),de(45,"symbol",41),je(46,"path",42),ce(),de(47,"symbol",43),je(48,"path",44),ce(),de(49,"symbol",45),je(50,"path",46),ce(),de(51,"symbol",47),je(52,"path",48)(53,"path",49),ce()()),2&r&&($e(6),Kn("routerLinkActiveOptions",Ml(3,hg)),$e(2),Kn("routerLinkActiveOptions",Ml(4,hg)),$e(2),Kn("routerLinkActiveOptions",Ml(5,hg)))},dependencies:[eg,Ic,hD],encapsulation:2})}return e})(),MD=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["app-donate-button"]],decls:10,vars:0,consts:[["action","https://www.paypal.com/donate","method","post","target","_blank"],["type","hidden","name","business","value","RWE3JEMR9ST5Q"],["type","hidden","name","no_recurring","value","0"],["type","hidden","name","item_name","value","Thanks for supporting Lyric Converter! (https://lyricconverter.net)"],["type","hidden","name","currency_code","value","USD"],["type","submit",1,"btn","btn-success"],["role","img","aria-label","Piggy Bank:",1,"icon"],[0,"xlink","href","#piggy-bank-fill"],["alt","","border","0","src","https://www.paypal.com/en_US/i/scr/pixel.gif","width","1","height","1"]],template:function(r,i){1&r&&(de(0,"form",0),je(1,"input",1)(2,"input",2)(3,"input",3)(4,"input",4),de(5,"button",5),kt(),de(6,"svg",6),je(7,"use",7),ce(),be(8," Donate! "),ce(),dr(),je(9,"img",8),ce())},encapsulation:2})}return e})(),j4=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["app-about"]],decls:44,vars:0,consts:[[1,"grid","gap-4","md:grid-cols-3"],[1,"card","md:col-span-2"],[1,"card-title"],[1,"card-content"],[1,"mb-2"],[1,"card","mb-4"],[1,"card"],["href","https://github.com/FiniteLooper/LyricConverter","target","_blank",1,"btn","btn-secondary"],["role","img","aria-label","Github:",1,"icon"],[0,"xlink","href","#github"]],template:function(r,i){1&r&&(de(0,"div",0)(1,"div",1)(2,"h3",2),be(3,"Why Was This Made?"),ce(),de(4,"div",3)(5,"p",4),be(6," I'm the guy at my church who runs the lyric presentation software for a lot of the services. We used SongShow Plus for several years, and it worked pretty well for us. It did have a few key frustrations for us, plus the fact that we "),de(7,"em"),be(8,"really"),ce(),be(9," wanted to switch over to a Mac. After looking into it, ProPresenter seemed like a great choice. "),ce(),de(10,"p",4),be(11," After making the leap, we quickly realized that SongShow Plus had absolutely "),de(12,"strong"),be(13,"no way to export"),ce(),be(14," our songs, and ProPresenter had absolutely no way of getting these songs from SongShow Plus! Sure, there are a few half-baked solutions out there, or the good old copy-n-paste-every-slide-of-every-song method, but none of those are really ideal. "),ce(),de(15,"p",4),be(16," After talking to the media director at another church, he told me that they were holding off making the same software switch that we had made because they were uncertain of how to transfer all of their songs over. This got me thinking\u2026 It seemed as if enough people had the need for a tool like this and yet one didn't exist! "),ce(),de(17,"p"),be(18," In my non-church time during the week I'm a full time web designer/developer, so I decided to take a look at the file formats for each program and determined that it wouldn't be that hard to do! Well\u2026 There ended up being a bit more complexities than I anticipated, and it did take quite a while to get it to the point where I felt comfortable releasing it. "),de(19,"strong"),be(20,"BUT"),ce(),be(21,", here it is. I hope you find it useful. "),ce()()(),de(22,"div")(23,"div",5)(24,"h3",2),be(25,"Donations are welcome!"),ce(),de(26,"div",3)(27,"p",4),be(28," If you find this service useful, please consider donating to this site to help support the cost! A small $5 donation (or more!) would really help to support my efforts. "),ce(),je(29,"app-donate-button"),ce()(),de(30,"div",6)(31,"h3",2),be(32,"Want To Make This Better?"),ce(),de(33,"div",3)(34,"p",4),be(35," This project is on GitHub! Feel free to take a look at the code, or submit improvements & changes. "),ce(),de(36,"a",7),kt(),de(37,"svg",8),je(38,"use",9),ce(),be(39," Fork On GitHub! "),ce()()()(),dr(),de(40,"div",1)(41,"div",3)(42,"p"),be(43," I am not in any way affiliated with any of the companies or organizations that make any of the lyric file formats or presentation software listed here "),ce()()()())},dependencies:[MD],encapsulation:2})}return e})();function Mc(e){e||(ws(),e=ue(ei));const t=new Vt(n=>e.onDestroy(n.next.bind(n)));return n=>n.pipe(_b(t))}const qa=" | ",AD="[[LyricConverter Custom Error]]";let ND=(()=>{class e{constructor(){this.$gaService=ue(Tc),this.errorsList=[],this.errorsChanged$=new hn}add(n){this.isCustomLyricConverterError(n.thrownError)&&(n.message=n.thrownError.message),this.errorsList.push(n),this.errorsChanged$.next(this.errorsList.slice()),this.$gaService.event("error","convert",n.message),console.warn("[LyricConverter Error Service]",n)}clear(){this.errorsList=[],this.errorsChanged$.next(this.errorsList.slice())}isCustomLyricConverterError(n){return null!=n&&Object.hasOwn(n,"cause")&&n.cause===AD}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Za{static normalizeLineEndings(t){return t.replace(/(\r\n)|(\n\r)/g,"\n")}static mergeArraysByProp(t,n,r){return t.filter(o=>!n.find(s=>o[r]===s[r])).concat(n)}static getFileNameParts(t){const n=t.split("."),r=n.length>1?n.slice(-1)[0]:"";return{name:t.replace(`.${r}`,""),ext:r.toLowerCase()}}}class z4{constructor(){this.patternComments=/^#.*([\r\n])*/gm,this.patternChords=/\[.+?\]/gm,this.patternDirectives=/{(.+?)}/gm,this.patternDirectiveStartMarkers=/^((?:so)|(?:start_of_))([a-z]+)/,this.name="ChordPro",this.fileExt="cho",this.url="https://chordpro.org/"}doesInputFileMatchThisType(t){return/^cho|crd|chopro|chord|pro$/i.test(t.ext)}extractSongData(t){const n=Za.normalizeLineEndings(t.dataAsString),r=this.stripCommentsAndChords(n),i=this.gatherDirectives(r),o=this.getSongTitle(i,t.name),s=this.getSongInfo(i.keyValuePairs),a=this.getLyricContentWithoutDirectives(i.singles,r),u=this.getLyrics(a);return{fileName:t.name,title:o,info:s,slides:u}}stripCommentsAndChords(t){return t.replace(this.patternComments,"").replace(this.patternChords,"")}gatherDirectives(t){const n=t.matchAll(this.patternDirectives),r={keyValuePairs:[],singles:[]};for(const i of n){const o=i[1];if(null!=o){const s=i.index??0;if(o.includes(":")){const a=o.split(":").filter(u=>""!==u.trim());null!=a[0]&&null!=a[1]&&(this.patternDirectiveStartMarkers.test(o)?r.singles.push({name:a[0].trim(),position:s,sectionLabel:a[1].trim()}):r.keyValuePairs.push({name:a[0].trim(),value:a[1].trim()}))}else r.singles.push({name:o.trim(),position:s})}}return r}getSongTitle(t,n){const r=t.keyValuePairs.find(i=>"title"===i.name.toLowerCase());return r?r.value.toString():n}getSongInfo(t){const n=["gc","title","chorus"],r=["chorus"];return t.filter(i=>!n.includes(i.name.toLowerCase())&&!r.includes(i.value.toString().toLowerCase()))}getMatchedDirectivePairs(t){const n=[];for(const r of t){const i=this.patternDirectiveStartMarkers.exec(r.name);if(i){let o;"so"===i[1]?o=t.find(s=>s.name==="eo"+i[2]):"start_of_"===i[1]&&(o=t.find(s=>s.name==="end_of_"+i[2])),null!=i[2]&&o&&n.push({begin:r,end:o,type:i[2]})}}return n}getLyricContentWithoutDirectives(t,n){const r=this.getMatchedDirectivePairs(t),i=[],o=[],s=["c","v","b","chorus","verse","bridge"];for(const c of r){const d=n.substring(c.begin.position,c.end.position+c.end.name.length+2);if(s.includes(c.type)){let S=c.begin.position+c.begin.name.length+3;null!=c.begin.sectionLabel&&(S+=c.begin.sectionLabel.length+1);const O=n.substring(S,c.end.position);o.push({full:d,content:O,type:c.type,sectionLabel:c.begin.sectionLabel})}else i.push(d)}const a=i.reduce((c,d)=>c.replace(d,""),n);return o.reduce((c,d)=>{let S="";return null!=d.sectionLabel?S=d.sectionLabel:/^c(horus)?$/.test(d.type)&&!/^chorus/i.test(d.content)?S="Chorus:\n":/^v(erse)?$/.test(d.type)&&!/^verse/i.test(d.content)?S="Verse:\n":/^b(ridge)?$/.test(d.type)&&!/^bridge/i.test(d.content)&&(S="Bridge:\n"),c.replace(d.full,S+d.content)},a).replace(this.patternDirectives,"").trim()}getLyrics(t){const n=[],r=t.split("\n\n");for(const i of r){const o=i.trim().split("\n");if(null!=o[0]){let s=o[0].trim(),a=i.trim();/^(chorus|verse|bridge)/i.test(s)?(s=s.replace(":",""),a=a.replace(o[0]+"\n","")):s="Verse",n.push({title:s,lyrics:a})}}return n}}class xD extends Error{constructor(t){return super(),new Error(t,{cause:AD})}}class G4{constructor(){this.name="JSON",this.fileExt="json"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n={fileName:t.name,title:t.name,info:[],slides:[]},r=JSON.parse(t.dataAsString);if(!this.isSongObject(r))throw new xD(`This file is not formatted as a LyricConverter ${this.name} file`);return n.title=r.title,n.info=r.info,n.slides=r.slides,n}isSongObject(t){return Object.hasOwn(t,"title")&&Object.hasOwn(t,"info")&&Object.hasOwn(t,"slides")}}var vi=Q(337);class W4{overwriteMeta(t,n){const i={createdIn:"openlyrics-parser 1.1.4",modifiedIn:"openlyrics-parser 1.1.4",lang:"en",...n};t.song["@xml:lang"]=i.lang,t.song["@createdIn"]=i.createdIn,t.song["@modifiedIn"]=i.modifiedIn,t.song["@modifiedDate"]=(new Date).toISOString().replace(/\.\d{3}Z$/,""),null!=i.chordNotation&&(t.song["@chordNotation"]=i.chordNotation)}overwriteProperties(t,n){this.overwriteSpecialPropTitles(t,n.titles),this.overwriteSpecialPropAuthors(t,n.authors),this.overwriteSpecialPropComments(t,n.comments),this.overwriteSpecialPropSongBooks(t,n.songBooks),this.overwriteSpecialPropThemes(t,n.themes),this.overwriteSpecialPropTempo(t,n.tempo);const r=["authors","titles","tempo"];Object.keys(n).forEach(i=>{if(!r.includes(i)){const o=n[i];("string"==typeof o||"number"==typeof o)&&(t.song.properties[i]=o.toString())}})}overwriteFormats(t,n){n?t.song.format.tags=n.map(r=>({"@application":r.application,tag:r.tags.map(i=>({"@name":i.name,open:this.encodeHtmlCarats(i.open),close:this.encodeHtmlCarats(i.close)}))})):t.song.format=void 0}overwriteVerses(t,n){const r=[];for(const i of n)r.push({"@name":i.name,"@break":!0===i.optionalBreak?"optional":void 0,"@lang":i.lang,"@transliteration":i.transliteration,lines:this.getVerseLines(i.lines)});t.song.lyrics.verse=r}overwriteInstruments(t,n){if(n){const r=[];for(const i of n)r.push({"@name":i.name,lines:this.getInstrumentLines(i.lines)});t.song.lyrics.instrument=r}}overwriteSpecialPropTitles(t,n){t.song.properties.titles.title="string"==typeof n?[{"#text":n}]:n.map(r=>({"#text":r.value,"@lang":r.lang,"@translit":r.transliteration,"@original":!0===r.original?"true":void 0}))}overwriteSpecialPropAuthors(t,n){"string"==typeof n?t.song.properties.authors={author:[{"#text":n}]}:Array.isArray(n)&&(t.song.properties.authors={author:n.map(r=>({"#text":r.value,"@lang":r.lang,"@type":r.type}))})}overwriteSpecialPropComments(t,n){n&&(t.song.properties.comments={comment:n})}overwriteSpecialPropSongBooks(t,n){n&&(t.song.properties.songbooks={songbook:n.map(r=>({"@name":r.name,"@entry":r.entry}))})}overwriteSpecialPropThemes(t,n){n&&(t.song.properties.themes={theme:n.map(r=>({"#text":r.value,"@lang":r.lang}))})}overwriteSpecialPropTempo(t,n){null!=n&&(t.song.properties.tempo={"#text":n,"@type":"number"==typeof n?"bpm":"text"})}getVerseLines(t){let n=[];return n=this.isStringArray(t)?t.map(r=>({"#text":this.convertToHtmlBreaks(r)})):t.map(r=>({"#text":r.content.map(o=>"chord"===o.type?this.getChord(o):"tag"===o.type?`${o.value}`:"comment"===o.type?`${o.value}`:this.convertToHtmlBreaks(o.value)).join(""),"@part":r.part,"@break":!0===r.optionalBreak?"optional":void 0,"@repeat":r.repeat})),n}getInstrumentLines(t){return t.map(r=>({"#text":r.content.map(o=>"chord"===o.type?this.getChord(o):this.getBeat(o)).join(""),"@part":r.part,"@repeat":r.repeat}))}getChord(t){let n="";return null!=t.root&&(n+=` root="${t.root}"`),null!=t.structure&&(n+=` structure="${t.structure}"`),!0===t.upbeat&&(n+=' upbeat="true"'),null!=t.bass&&(n+=` bass="${t.bass}"`),this.isVerseChord(t)?`${t.value}`:``}getBeat(t){return` ${t.chords.map(r=>this.getChord(r)).join("")}\n`}isStringArray(t){return t.every(n=>"string"==typeof n)}convertToHtmlBreaks(t){return t.replace(/[\n\r]/g,"
")}encodeHtmlCarats(t){return t.replace(//g,">")}isVerseChord(t){return"value"in t}}class q4{lyricLineParser=new vi.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"",isArray:(t,n)=>["beat.chord"].includes(n)});getSongMeta(t){return{createdIn:t.createdIn??"",chordNotation:t.chordNotation??"",lang:t["xml:lang"]??"",modifiedDate:null!=t.modifiedDate?new Date(t.modifiedDate):null,modifiedIn:t.modifiedIn??"",version:t.version.toString()}}getSongProperties(t){return null!=t.releaseDate&&(t.released=t.releaseDate),{authors:this.getSongPropertyAuthors(t.authors),ccliNo:t.ccliNo?.toString()??"",comments:this.getSongPropertyComments(t.comments),copyright:t.copyright?.toString()??"",key:t.key??"",keywords:t.keywords??"",publisher:t.publisher??"",released:t.released?.toString()??"",songBooks:this.getSongPropertySongBooks(t.songbooks),tempo:t.tempo?.["#text"].toString()??"",tempoType:t.tempo?.type??"",themes:this.getSongPropertyThemes(t.themes),timeSignature:t.timeSignature??"",titles:this.getSongPropertyTitles(t.titles),transposition:t.transposition?.toString()??"",variant:t.variant??"",verseOrder:t.verseOrder??"",version:t.version?.toString()??""}}getSongFormat(t){let n="",r=[];return t&&(n=t.tags.application,r=t.tags.tag.map(i=>({name:i.name,open:i.open,close:i.close??""}))),{application:n,tags:r}}getSongVerses(t){const n=[];if(t)for(const r of t)n.push({break:r.break??"",name:r.name,lang:r.lang??"",transliteration:r.translit??"",lines:this.getVerseLines(r.lines)});return n}getSongInstruments(t){const n=[];if(t)for(const r of t)n.push({name:r.name,lines:this.getInstrumentLines(r.lines)});return n}getVerseLines(t){const n=[];for(const r of t){const i=this.getStringOrTextProp(r),o=this.parseLineTextForXml(i);n.push({break:this.getOptionalPropOnPossibleObject(r,"break",""),content:this.getVerseContentObjects(o),part:this.getOptionalPropOnPossibleObject(r,"part",""),repeat:this.getOptionalPropOnPossibleObject(r,"repeat","")})}return n}getInstrumentLines(t){const n=[];for(const r of t){const i=this.getStringOrTextProp(r),o=this.parseLineTextForXml(i);n.push({content:this.getInstrumentContentObjects(o),part:this.getOptionalPropOnPossibleObject(r,"part",""),repeat:this.getOptionalPropOnPossibleObject(r,"repeat","")})}return n}parseLineTextForXml(t){return t.split(/(<[^/]+?>[\s\S]+?<\/.+?>)|(<[^/]+?\/>)/g).filter(n=>""!==n&&typeof n<"u")}getVerseContentObjects(t){const n=[];for(const r of t)if(r.startsWith("<")){const i=this.lyricLineParser.parse(r);null!=i.comment?n.push({type:"comment",value:i.comment}):null!=i.tag?n.push({type:"tag",name:i.tag.name,value:i.tag["#text"]??""}):null!=i.chord&&n.push(this.getChordObject(i.chord))}else n.push({type:"text",value:r});return n}getInstrumentContentObjects(t){const n=[];for(const r of t){const i=this.lyricLineParser.parse(r);null!=i.chord?n.push(this.getChordObject(i.chord)):null!=i.beat&&n.push({type:"beat",chords:i.beat.chord.map(o=>this.getChordObject(o))})}return n}getChordObject(t){const n={type:"chord"};return Object.keys(t).forEach(r=>{let i="#text"===r?"value":r;"name"===i&&(i="root"),n[i]=t[r]}),n}getSongPropertyAuthors(t){const n=[];if(t)for(const r of t.author)n.push({lang:this.getOptionalPropOnPossibleObject(r,"lang",""),type:this.getOptionalPropOnPossibleObject(r,"type",""),value:this.getStringOrTextProp(r)});return n}getSongPropertyComments(t){let n=[];return t&&(n=t.comment.map(r=>this.getStringOrTextProp(r))),n}getSongPropertyThemes(t){const n=[];if(t)for(const r of t.theme)n.push({lang:this.getOptionalPropOnPossibleObject(r,"lang",""),value:this.getStringOrTextProp(r)});return n}getSongPropertyTitles(t){const n=[];if(t)for(const r of t.title)n.push({lang:this.getOptionalPropOnPossibleObject(r,"lang",""),original:this.getOptionalPropOnPossibleObject(r,"original",null),transliteration:this.getOptionalPropOnPossibleObject(r,"translit",""),value:this.getStringOrTextProp(r)});return n}getSongPropertySongBooks(t){const n=[];if(t)for(const r of t.songbook)n.push({entry:r.entry?.toString()??"",name:r.name});return n}getStringOrTextProp(t){return"string"==typeof t?t:t["#text"]}getOptionalPropOnPossibleObject(t,n,r){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?r:t[n]??r}}class X4{constructor(){this.name="OpenLyrics",this.fileExt="xml",this.url="http://openlyrics.org/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=>{const t=["song.properties.titles.title","song.properties.titles.title.text","song.properties.authors.author","song.properties.comments.comment","song.properties.songbooks.songbook","song.properties.themes.theme","song.lyrics.verse","song.lyrics.verse.lines","song.lyrics.instrument","song.lyrics.instrument.lines"],r=new vi.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!0,attributeNamePrefix:"",parseTagValue:!0,parseAttributeValue:!0,stopNodes:["song.lyrics.verse.lines","song.lyrics.instrument.lines"],isArray:(c,d)=>t.includes(d),tagValueProcessor:(c,d,S)=>"song.lyrics.verse.lines"===S?d.replace(/<\/?br ?\/?>([\r\n])?/gi,"\n").replace(//g,""):null}).parse(e),i=new q4;return{meta:i.getSongMeta(r.song),properties:i.getSongProperties(r.song.properties),format:i.getSongFormat(r.song.format),verses:i.getSongVerses(r.song.lyrics.verse),instruments:i.getSongInstruments(r.song.lyrics.instrument)}})(t.dataAsString),r=this.getTitle(n.properties.titles,t.name),i=this.getInfo(n.properties),o=this.getSlides(n.verses);return{fileName:t.name,title:r,info:i,slides:o}}getTitle(t,n){let r=n;return null!=t[0]&&(r=t[0].value),r}getInfo(t){let n=[];const r=["tempoType","version"];if(Object.keys(t).forEach(i=>{let o=t[i];"string"==typeof o&&""!==o&&!r.includes(i)&&("tempo"===i?("bpm"===t.tempoType.toLowerCase()&&(o+=t.tempoType),n.push({name:"Tempo",value:o})):n.push({name:i,value:o}))}),t.authors.length>0&&(n=n.concat(this.getSpecialPropAuthors(t.authors))),t.comments.length>0&&(n=n.concat(this.getSpecialPropComments(t.comments))),t.songBooks.length>0&&(n=n.concat(this.getSpecialPropSongBooks(t.songBooks))),t.themes.length>0){const i=t.themes.map(o=>o.value);n.push({name:"Themes",value:i.join(qa)})}return n}getSpecialPropAuthors(t){const n=[],r=1===t.length?"Author":"Authors",i=t.map(o=>""===o.type?o.value:`${o.value} (${o.type})`).join(qa);return n.push({name:r,value:i}),n}getSpecialPropComments(t){const n=[],r="Comment";if(1===t.length)n.push({name:r,value:t[0]});else for(let i=0;is.content.filter(a=>"text"===a.type).map(a=>a.value).join("")).join("\n").replace(/\n[\t ]+/g,"\n").trim();""!==o&&n.push({title:i,lyrics:o})}return n}}class Q4{constructor(){this.name="Plain Text",this.fileExt="txt"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){let n=t.name,r=[],i=[];const o=Za.normalizeLineEndings(t.dataAsString).split("\n\n\n");if(2!==o.length||null==o[0]||null==o[1])throw new xD(`This ${this.name} file is not formatted correctly. It needs to have 2 blank lines between the info at the top and the lyrics so they can be differentiated.`);return r=this.getSongInfo(o[0]),"title"===r[0]?.name.toLowerCase()&&(n=r[0].value.toString(),r=r.slice(1)),i=this.getSongLyrics(o[1]),{fileName:t.name,title:n,info:r,slides:i}}getSongInfo(t){const n=[];for(const r of t.split("\n")){const i=r.split(":");null!=i[0]&&null!=i[1]&&n.push({name:i[0].trim(),value:i[1].trim()})}return n}getSongLyrics(t){const n=[];for(const r of t.split("\n\n")){const i=r.split("\n");let o="",s=r;const a=i[0];a.endsWith(":")&&(o=a.replace(":","").trim(),s=s.replace(a+"\n","").trim()),n.push({title:o,lyrics:s})}return n}}const ls="function"==typeof Buffer,kD="function"==typeof TextDecoder?new TextDecoder:void 0,PD="function"==typeof TextEncoder?new TextEncoder:void 0,Ya=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Nc=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Ya),J4=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,qt=String.fromCharCode.bind(String),FD="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),VD=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),pg="function"==typeof btoa?e=>btoa(e):ls?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,r,i,o="";const s=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=Ya[t>>18&63]+Ya[t>>12&63]+Ya[t>>6&63]+Ya[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},gg=ls?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,i=e.length;r{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?qt(192|t>>>6)+qt(128|63&t):qt(224|t>>>12&15)+qt(128|t>>>6&63)+qt(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return qt(240|t>>>18&7)+qt(128|t>>>12&63)+qt(128|t>>>6&63)+qt(128|63&t)},t6=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,UD=ls?e=>Buffer.from(e,"utf8").toString("base64"):PD?e=>gg(PD.encode(e)):e=>pg((e=>e.replace(t6,e6))(e)),n6=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,r6=e=>{switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return qt(55296+(n>>>10))+qt(56320+(1023&n));case 3:return qt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return qt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},mg="function"==typeof atob?e=>atob(VD(e)):ls?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!J4.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,i,n="";for(let o=0;o>16&255):64===i?qt(t>>16&255,t>>8&255):qt(t>>16&255,t>>8&255,255&t);return n},GD=ls?e=>FD(Buffer.from(e,"base64")):e=>FD(mg(e).split("").map(t=>t.charCodeAt(0))),i6=ls?e=>Buffer.from(e,"base64").toString("utf8"):kD?e=>kD.decode(GD(e)):e=>(e=>e.replace(n6,r6))(mg(e)),ir_encode=(e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"))(UD(e)):UD(e),ir_decode=e=>i6((e=>VD(e.replace(/[-_]/g,t=>"-"==t?"+":"/")))(e)),yg=/^#?[a-f\d]{6}$/i,QD="[10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)?",wg=new RegExp("^"+QD+"$"),KD=e=>e.replace(/\n\\f[0-9]\s/g,"").replace(/\{\*?\\[^{}]+;}|[{}]|\\[A-Za-z]+\n?(?:-?\d+)?[ ]?/g,"").replace(/\\\n/g,"\n").trim(),JD=(e,t="Arial",n=60,r={r:255,g:255,b:255})=>`{\\rtf1\\ansi\\ansicpg1252\\cocoartf1038\\cocoasubrtf320',{\\fonttbl\\f0\\fswiss\\fcharset0 ${t};}{\\colortbl;\\red${r.r}\\green${r.g}\\blue${r.b};}\\pard\\tx560\\tx1120\\tx1680\\tx2240\\tx2800\\tx3360\\tx3920\\tx4480\\tx5040\\tx5600\\tx6160\\tx6720\\qc\\pardirnatural\\f0\\fs${2*n} \\cf1 ${e.replace(/\r|\n/g,"\\\r")}}`,Cg=e=>{const t={r:0,g:0,b:0};let n="",r=0;const i=Array.from(e.matchAll(/\\fcharset0 (.+?);/gi));i.length>0&&(n=i[i.length-1][1]);const o=/\\red(\d+)\\green(\d+)\\blue(\d+);}/i.exec(e);o&&(t.r=parseInt(o[1],10),t.g=parseInt(o[2],10),t.b=parseInt(o[3],10));const s=Array.from(e.matchAll(/\\fs(\d+) ?\\/gi));return s.length>0&&(r=parseInt(s[s.length-1][1],10)/2),{color:t,font:n,size:r}},eE=()=>(new Date).toISOString().replace(/\.\d{3}Z$/,""),Xa=()=>{function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1).toUpperCase()}return`${e()+e()}-${e()}-${e()}-${e()}-${e()+e()+e()}`},tE=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(t)return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)};throw new Error(`Input color '${e}' could not be parsed! Are you sure this is a hex color?`)},ds=e=>{if("string"!=typeof e)return`${e.r/255} ${e.g/255} ${e.b/255} 1`;if(wg.test(e))return e;if(yg.test(e))return ds(tE(e));throw new Error(`Input color '${e}' could not be parsed to an RGBA color string!`)},Ut=e=>{if("string"!=typeof e)return e;if(wg.test(e)){const t=e.split(" ");return{r:255*parseFloat(t[0]),g:255*parseFloat(t[1]),b:255*parseFloat(t[2])}}if(yg.test(e))return tE(e);throw new Error(`Input color '${e}' could not be parsed to an RGB color object!`)};class a6{parse(t){const n=["RVPresentationDocument.timeline.timeCues","RVPresentationDocument.timeline.mediaTracks","RVPresentationDocument.slides.RVDisplaySlide","RVPresentationDocument.slides.RVDisplaySlide.displayElements.RVTextElement"],i=new vi.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@",parseAttributeValue:!0,isArray:(a,u)=>n.includes(u)}).parse(t);if(400!==i.RVPresentationDocument["@versionNumber"])throw new Error(`Expected a ProPresenter 4 file with versionNumber="400" but got versionNumber="${i.RVPresentationDocument["@versionNumber"]}"`);return{properties:this.getProperties(i.RVPresentationDocument),slides:this.getSlides(i.RVPresentationDocument.slides.RVDisplaySlide)}}getProperties(t){return{CCLIArtistCredits:t["@CCLIArtistCredits"]??"",CCLICopyrightInfo:t["@CCLICopyrightInfo"]??"",CCLIDisplay:!!t["@CCLIDisplay"],CCLILicenseNumber:t["@CCLILicenseNumber"]??"",CCLIPublisher:t["@CCLIPublisher"]??"",CCLISongTitle:t["@CCLISongTitle"]??"",album:t["@album"],artist:t["@artist"],author:t["@author"],backgroundColor:Ut(t["@backgroundColor"]),category:t["@category"],creatorCode:t["@creatorCode"],docType:null==t["@docType"]?null:t["@docType"],drawingBackgroundColor:null!=t["@drawingBackgroundColor"]&&!!t["@drawingBackgroundColor"],height:t["@height"],lastDateUsed:new Date(t["@lastDateUsed"]),notes:t["@notes"],resourcesDirectory:t["@resourcesDirectory"],usedCount:t["@usedCount"],versionNumber:t["@versionNumber"],width:t["@width"]}}getSlides(t){const n=[];for(const r of t){let i=[];r.displayElements.RVTextElement&&(i=r.displayElements.RVTextElement.map(o=>{const s=ir_decode(o["@RTFData"]),a=Cg(s);return{position:{x:o["_-RVRect3D-_position"]["@x"],y:o["_-RVRect3D-_position"]["@y"],z:o["_-RVRect3D-_position"]["@z"],height:o["_-RVRect3D-_position"]["@height"],width:o["_-RVRect3D-_position"]["@width"]},rawRtfContent:s,textContent:KD(s),color:a.color,font:a.font,size:a.size}})),n.push({label:r["@label"],id:r["@UUID"],backgroundColor:Ut(r["@backgroundColor"]),highlightColor:Ut(r["@highlightColor"]),textElements:i})}return n}}var _g=function(e){return e[e.None=-1]="None",e[e.Dissolve=0]="Dissolve",e[e.Cube=1]="Cube",e[e.Flip=2]="Flip",e[e.Door=3]="Door",e[e.Swap=4]="Swap",e[e.Ripple=6]="Ripple",e[e.FadeToBlack=7]="FadeToBlack",e[e.Iris=8]="Iris",e[e.Cut=10]="Cut",e[e.FlyInDiagonalToBottomRight=91]="FlyInDiagonalToBottomRight",e[e.FlyInDown=92]="FlyInDown",e[e.FlyInDiagonalToBottomLeft=93]="FlyInDiagonalToBottomLeft",e[e.FlyInRight=94]="FlyInRight",e[e.FlyInCenter=95]="FlyInCenter",e[e.FlyInLeft=96]="FlyInLeft",e[e.FlyInDiagonalToTopRight=97]="FlyInDiagonalToTopRight",e[e.FlyInUp=98]="FlyInUp",e[e.FlyInDiagonalToTopLeft=99]="FlyInDiagonalToTopLeft",e[e.ZoomInDiagonalToBottomRight=101]="ZoomInDiagonalToBottomRight",e[e.ZoomInDown=102]="ZoomInDown",e[e.ZoomInDiagonalToBottomLeft=103]="ZoomInDiagonalToBottomLeft",e[e.ZoomInRight=104]="ZoomInRight",e[e.ZoomInCenter=105]="ZoomInCenter",e[e.ZoomInLeft=106]="ZoomInLeft",e[e.ZoomInDiagonalToTopRight=107]="ZoomInDiagonalToTopRight",e[e.ZoomInUp=108]="ZoomInUp",e[e.ZoomInDiagonalToTopLeft=109]="ZoomInDiagonalToTopLeft",e[e.WipeDiagonalToBottomRight=110]="WipeDiagonalToBottomRight",e[e.WipeDown=111]="WipeDown",e[e.WipeDiagonalToBottomLeft=112]="WipeDiagonalToBottomLeft",e[e.WipeRight=113]="WipeRight",e[e.WipeLeft=114]="WipeLeft",e[e.WipeDiagonalToTopRight=115]="WipeDiagonalToTopRight",e[e.WipeUp=116]="WipeUp",e[e.WipeDiagonalToTopLeft=117]="WipeDiagonalToTopLeft",e[e.CoverDiagonalToBottomRight=120]="CoverDiagonalToBottomRight",e[e.CoverDown=121]="CoverDown",e[e.CoverDiagonalToBottomLeft=122]="CoverDiagonalToBottomLeft",e[e.CoverRight=123]="CoverRight",e[e.CoverLeft=124]="CoverLeft",e[e.CoverDiagonalToTopRight=125]="CoverDiagonalToTopRight",e[e.CoverUp=126]="CoverUp",e[e.CoverDiagonalToTopLeft=127]="CoverDiagonalToTopLeft",e[e.PushRight=130]="PushRight",e[e.PushLeft=131]="PushLeft",e[e.PushDown=132]="PushDown",e[e.PushUp=133]="PushUp",e[e.RevealDiagonalToBottomRight=140]="RevealDiagonalToBottomRight",e[e.RevealDown=141]="RevealDown",e[e.RevealDiagonalToBottomLeft=142]="RevealDiagonalToBottomLeft",e[e.RevealRight=143]="RevealRight",e[e.RevealLeft=144]="RevealLeft",e[e.RevealDiagonalToTopRight=145]="RevealDiagonalToTopRight",e[e.RevealUp=146]="RevealUp",e[e.RevealDiagonalToTopLeft=147]="RevealDiagonalToTopLeft",e}(_g||{});class u6{xmlBuilder;options;defaultTransitionObj={"@transitionType":_g.None,"@transitionDuration":1,"@motionEnabled":0,"@motionDuration":20,"@motionSpeed":100};constructor(t){this.xmlBuilder=new vi.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressUnpairedNode:!1,unpairedTags:["arrangements","timeCues","mediaTracks","bibleReference","cues","_-RVProTransitionObject-_transitionObject","_-RVRect3D-_position","NSColor","NSNumber","NSMutableString"]}),this.options=t,this.options.properties={album:"",artist:"",author:"",category:"Song",ccliDisplay:!1,notes:"",publisher:"",height:720,width:1280,...this.options.properties},this.options.slideTextFormatting={textColor:{r:255,g:255,b:255},textPadding:20,...this.options.slideTextFormatting}}build(){const t={RVPresentationDocument:{"@CCLIArtistCredits":this.options.properties.artist,"@CCLICopyrightInfo":this.options.properties.copyrightYear??"","@CCLIDisplay":this.options.properties.ccliDisplay?1:0,"@CCLILicenseNumber":this.options.properties.ccliNumber??"","@CCLIPublisher":this.options.properties.publisher,"@CCLISongTitle":this.options.properties.title,"@album":this.options.properties.album,"@artist":this.options.properties.artist,"@author":this.options.properties.author,"@category":this.options.properties.category,"@notes":this.options.properties.notes,"@lastDateUsed":eE(),"@height":this.options.properties.height,"@width":this.options.properties.width,"@backgroundColor":"0 0 0 1","@creatorCode":0,"@chordChartPath":"","@docType":0,"@drawingBackgroundColor":0,"@resourcesDirectory":"","@usedCount":0,"@versionNumber":500,timeline:{"@timeOffSet":0,"@selectedMediaTrackIndex":0,"@unitOfMeasure":60,"@duration":0,"@loop":0,timeCues:{"@containerClass":"NSMutableArray"},mediaTracks:{"@containerClass":"NSMutableArray"}},bibleReference:{"@containerClass":"NSMutableDictionary"},"_-RVProTransitionObject-_transitionObject":this.getTransitions(),groups:{"@containerClass":"NSMutableArray",RVSlideGrouping:this.buildSlideGroups()},arrangements:{"@containerClass":"NSMutableArray",RVSongArrangement:[]}}};return this.xmlBuilder.build(t).trim()}getTransitions(){if(this.options.transitions){const t={...this.defaultTransitionObj};return t["@transitionDuration"]=this.options.transitions.duration,t["@transitionType"]=this.options.transitions.type,t}return this.defaultTransitionObj}buildSlideGroups(){const t=[];for(let n=0;nn.includes(l)}).parse(t);if(500!==i.RVPresentationDocument["@versionNumber"])throw new Error(`Expected a ProPresenter 5 file with versionNumber="500" but got versionNumber="${i.RVPresentationDocument["@versionNumber"]}"`);const o=this.getProperties(i.RVPresentationDocument),s=this.getSlideGroups(i.RVPresentationDocument.groups.RVSlideGrouping);return{properties:o,slideGroups:s,arrangements:this.getArrangements(i.RVPresentationDocument,s)}}getProperties(t){return{CCLIArtistCredits:t["@CCLIArtistCredits"]??"",CCLICopyrightInfo:t["@CCLICopyrightInfo"]??"",CCLIDisplay:!!t["@CCLIDisplay"],CCLILicenseNumber:t["@CCLILicenseNumber"]??"",CCLIPublisher:t["@CCLIPublisher"]??"",CCLISongTitle:t["@CCLISongTitle"]??"",album:t["@album"],artist:t["@artist"],author:t["@author"],backgroundColor:Ut(t["@backgroundColor"]),category:t["@category"],creatorCode:t["@creatorCode"],chordChartPath:t["@chordChartPath"],docType:t["@docType"],drawingBackgroundColor:!!t["@drawingBackgroundColor"],height:t["@height"],lastDateUsed:new Date(t["@lastDateUsed"]),notes:t["@notes"],resourcesDirectory:t["@resourcesDirectory"],usedCount:t["@usedCount"],versionNumber:t["@versionNumber"],width:t["@width"]}}getSlideGroups(t){return t.map(n=>({groupColor:""===n["@color"]?null:Ut(n["@color"]),groupLabel:n["@name"]??"",groupId:n["@uuid"],slides:this.getSlidesForGroup(n.slides.RVDisplaySlide)}))}getSlidesForGroup(t){return t.map(n=>{let r=[];n.displayElements.RVTextElement&&(r=n.displayElements.RVTextElement.map(s=>{const a=ir_decode(s["@RTFData"]),u=Cg(a);return{position:{x:s["_-RVRect3D-_position"]["@x"],y:s["_-RVRect3D-_position"]["@y"],z:s["_-RVRect3D-_position"]["@z"],height:s["_-RVRect3D-_position"]["@height"],width:s["_-RVRect3D-_position"]["@width"]},rawRtfContent:a,textContent:KD(a),color:u.color,font:u.font,size:u.size}}));let i=[];n.cues.RVMediaCue&&(i=n.cues.RVMediaCue.map(s=>({displayName:s.element["@displayName"],source:s.element["@source"]})));const o=""===n["@highlightColor"]?null:Ut(n["@highlightColor"]);return{backgroundColor:Ut(n["@backgroundColor"]),chordChartPath:n["@chordChartPath"],enabled:!!n["@enabled"],highlightColor:o,id:n["@UUID"],label:n["@label"],notes:n["@notes"],mediaCues:i,textElements:r}})}getArrangements(t,n){const r=[];if(t.arrangements?.RVSongArrangement)for(const i of t.arrangements.RVSongArrangement)r.push({color:Ut(i["@color"]),label:i["@name"],groupOrder:i.groupIDs.NSMutableString.map(o=>{const s=n.find(a=>a.groupId===o["@serialization-native-value"]);return{groupId:o["@serialization-native-value"],groupLabel:s.groupLabel}})});return r}}class c6{xmlBuilder;options;winFontData='0025500010000Normal';defaultTransitionObj={"@rvXMLIvarName":"transitionObject","@transitionType":_g.None,"@transitionDirection":0,"@transitionDuration":1,"@motionEnabled":!1,"@motionDuration":0,"@motionSpeed":0,"@groupIndex":0,"@orderIndex":0,"@slideBuildAction":0,"@slideBuildDelay":0};constructor(t){this.xmlBuilder=new vi.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressUnpairedNode:!1,suppressBooleanAttributes:!1,unpairedTags:["array","RVTransition"]}),this.options=t,this.options.properties={CCLIArtistCredits:"",CCLIAuthor:"",CCLIDisplay:!1,CCLIPublisher:"",category:"Song",notes:"",height:720,width:1280,...this.options.properties},this.options.slideTextFormatting={textColor:{r:255,g:255,b:255},textPadding:20,fontName:"Arial",textSize:60,textShadow:{angle:135,color:{r:0,g:0,b:0},enabled:!1,length:7,radius:10},...this.options.slideTextFormatting}}build(){const t={"?xml":{"@version":"1.0","@encoding":"utf-8"},RVPresentationDocument:{"@CCLIArtistCredits":this.options.properties.CCLIArtistCredits,"@CCLIAuthor":this.options.properties.CCLIAuthor,"@CCLICopyrightYear":this.options.properties.CCLICopyrightYear??"","@CCLIDisplay":this.options.properties.CCLIDisplay,"@CCLIPublisher":this.options.properties.CCLIPublisher,"@CCLISongNumber":this.options.properties.CCLISongNumber??"","@CCLISongTitle":this.options.properties.CCLISongTitle,"@category":this.options.properties.category,"@notes":this.options.properties.notes,"@lastDateUsed":eE(),"@height":this.options.properties.height,"@width":this.options.properties.width,"@backgroundColor":"0 0 0 1","@buildNumber":6016,"@chordChartPath":"","@docType":0,"@drawingBackgroundColor":!1,"@resourcesDirectory":"","@selectedArrangementID":"","@os":1,"@usedCount":0,"@versionNumber":600,RVTransition:this.getTransitions(),RVTimeline:{"@rvXMLIvarName":"timeline","@timeOffset":0,"@duration":0,"@selectedMediaTrackIndex":0,"@loop":!1,array:[{"@rvXMLIvarName":"timeCues"},{"@rvXMLIvarName":"mediaTracks"}]},array:[{"@rvXMLIvarName":"groups",RVSlideGrouping:this.buildSlideGroups()},{"@rvXMLIvarName":"arrangements",RVSongArrangement:[]}]}};return this.xmlBuilder.build(t).trim()}getTransitions(){if(this.options.transitions){const t={...this.defaultTransitionObj};return t["@transitionDuration"]=this.options.transitions.duration,t["@transitionType"]=this.options.transitions.type,t}return this.defaultTransitionObj}buildSlideGroups(){const t=[];for(const n of this.options.slideGroups)t.push({"@name":n.label,"@uuid":Xa(),"@color":ds(n.groupColor??"0 0 0 0"),array:{"@rvXMLIvarName":"slides",RVDisplaySlide:this.buildSlidesForGroup(n)}});return t}buildSlidesForGroup(t){const n=[];for(const r of t.slides){let s,i="0 0 0 0",o="";"string"==typeof r?s=r:(i=ds(r.slideColor??i),o=r.label??"",s=r.text),n.push({"@backgroundColor":"0 0 0 0","@highlightColor":i,"@drawingBackgroundColor":!1,"@enabled":!0,"@hotKey":"","@label":o,"@notes":"","@UUID":Xa(),"@chordChartPath":"",array:[{"@rvXMLIvarName":"cues"},{"@rvXMLIvarName":"displayElements",RVTextElement:[this.buildTextElement(s)]}]})}return n}buildTextElement(t){const n=JD(t,this.options.slideTextFormatting.fontName,this.options.slideTextFormatting.textSize,Ut(this.options.slideTextFormatting.textColor));return{"@displayName":"Default","@UUID":Xa(),"@typeID":0,"@displayDelay":0,"@locked":!1,"@persistent":0,"@fromTemplate":!1,"@opacity":1,"@source":"","@bezelRadius":0,"@rotation":0,"@drawingFill":!1,"@drawingShadow":this.options.slideTextFormatting.textShadow.enabled,"@drawingStroke":!1,"@fillColor":"1 1 1 0","@adjustsHeightToFit":!1,"@verticalAlignment":0,"@revealType":0,RVRect3D:{"@rvXMLIvarName":"position","#text":this.getTextElementPosition()},shadow:{"@rvXMLIvarName":"shadow","#text":this.getElementShadow()},dictionary:{"@rvXMLIvarName":"stroke",NSColor:{"@rvXMLDictionaryKey":"RVShapeElementStrokeColorKey","#text":"0 0 0 1"},NSNumber:{"@rvXMLDictionaryKey":"RVShapeElementStrokeWidthKey","@hint":"double","#text":0}},NSString:[{"@rvXMLIvarName":"PlainText","#text":ir_encode(t)},{"@rvXMLIvarName":"RTFData","#text":ir_encode(n)},{"@rvXMLIvarName":"WinFlowData","#text":ir_encode(this.getWinFlowDocument(t))},{"@rvXMLIvarName":"WinFontData","#text":ir_encode(this.winFontData)}]}}getTextElementPosition(){return`{${this.options.slideTextFormatting.textPadding} ${this.options.slideTextFormatting.textPadding} 0 ${this.options.properties.width-2*this.options.slideTextFormatting.textPadding} ${this.options.properties.height-2*this.options.slideTextFormatting.textPadding}}`}getElementShadow(){const t=this.options.slideTextFormatting.textShadow.radius,n=ds(this.options.slideTextFormatting.textShadow.color),r=this.options.slideTextFormatting.textShadow.angle,i=this.options.slideTextFormatting.textShadow.length;return`${t}|${n}|{${Math.sin(r*(Math.PI/180))*i}, ${Math.cos(r*(Math.PI/180))*i}}`}getWinFlowDocument(t){const n=this.options.slideTextFormatting.fontName,r=this.options.slideTextFormatting.textSize,i=(e=>{const t=n=>("00"+n.toString(16)).slice(-2).toUpperCase();if("string"!=typeof e)return t(e.r)+t(e.g)+t(e.b);if(wg.test(e)){const n=e.split(" ");return t(Math.round(255*parseFloat(n[0])))+t(Math.round(255*parseFloat(n[1])))+t(Math.round(255*parseFloat(n[2])))}if(yg.test(e))return e.replace("#","");throw new Error(`Input color '${e}' could not be parsed to a HEX color!`)})(this.options.slideTextFormatting.textColor);return`${t.split(/[\n\r]/g).filter(s=>""!==s).map(s=>`${s}`).join("")}`}}class d6{parse(t){const n=["RVPresentationDocument.array","RVPresentationDocument.array.RVSlideGrouping","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVTextElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVImageElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVBezierPathElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVShapeElement","RVPresentationDocument.array.RVSlideGrouping.array.RVDisplaySlide.array.RVHTMLShapeElement","RVPresentationDocument.array.RVSongArrangement","RVPresentationDocument.array.RVSongArrangement.array.NSString"],i=new vi.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@",parseAttributeValue:!0,isArray:(c,d)=>n.includes(d)}).parse(t);if(600!==i.RVPresentationDocument["@versionNumber"])throw new Error(`Expected a ProPresenter 6 file with versionNumber="600" but got versionNumber="${i.RVPresentationDocument["@versionNumber"]}"`);const o=this.getProperties(i.RVPresentationDocument);let s=[];const a=i.RVPresentationDocument.array.find(c=>"groups"===c["@rvXMLIvarName"]);a&&(s=this.getSlideGroups(a.RVSlideGrouping));let u=[];const l=i.RVPresentationDocument.array.find(c=>"arrangements"===c["@rvXMLIvarName"]);return l?.RVSongArrangement&&(u=this.getArrangements(l.RVSongArrangement,s)),{properties:o,slideGroups:s,arrangements:u}}getProperties(t){return{CCLIArtistCredits:t["@CCLIArtistCredits"]??"",CCLIAuthor:t["@CCLIAuthor"]??"",CCLICopyrightYear:t["@CCLICopyrightYear"]??"",CCLIDisplay:t["@CCLIDisplay"],CCLIPublisher:t["@CCLIPublisher"]??"",CCLISongNumber:t["@CCLISongNumber"]??"",CCLISongTitle:t["@CCLISongTitle"]??"",backgroundColor:Ut(t["@backgroundColor"]),buildNumber:t["@buildNumber"],category:t["@category"],chordChartPath:t["@chordChartPath"],docType:t["@docType"],drawingBackgroundColor:t["@drawingBackgroundColor"],height:t["@height"],lastDateUsed:new Date(t["@lastDateUsed"]),notes:t["@notes"],os:t["@os"],resourcesDirectory:t["@resourcesDirectory"],selectedArrangementID:t["@selectedArrangementID"],usedCount:t["@usedCount"],versionNumber:t["@versionNumber"],width:t["@width"]}}getSlideGroups(t){const n=[];for(const r of t)n.push({groupColor:Ut(r["@color"]),groupId:r["@uuid"],groupLabel:r["@name"],slides:this.getSlidesForGroup(r.array.RVDisplaySlide)});return n}getSlidesForGroup(t){const n=[];for(const r of t){let i=[];const o=r.array.find(a=>"displayElements"===a["@rvXMLIvarName"]);o.RVTextElement&&(i=this.getTextElementsForSlide(o.RVTextElement));const s=""===r["@highlightColor"]?null:Ut(r["@highlightColor"]);n.push({backgroundColor:Ut(r["@backgroundColor"]),chordChartPath:r["@chordChartPath"],drawingBackgroundColor:r["@drawingBackgroundColor"],enabled:r["@enabled"],highlightColor:s,hotKey:r["@hotKey"],id:r["@UUID"],label:r["@label"],notes:r["@notes"],textElements:i})}return n}getTextElementsForSlide(t){const n=[];for(const r of t){let i="",o="",s="",a="";r.NSString.forEach(l=>{"PlainText"===l["@rvXMLIvarName"]?i=ir_decode(l["#text"]):"RTFData"===l["@rvXMLIvarName"]?o=ir_decode(l["#text"]):"WinFlowData"===l["@rvXMLIvarName"]?s=ir_decode(l["#text"]):"WinFontData"===l["@rvXMLIvarName"]&&(a=ir_decode(l["#text"]))});const u=Cg(o);n.push({adjustsHeightToFit:r["@adjustsHeightToFit"],bezelRadius:r["@bezelRadius"],displayDelay:r["@displayDelay"],displayName:r["@displayName"],drawingFill:r["@drawingFill"],fillColor:Ut(r["@fillColor"]),fromTemplate:r["@fromTemplate"],id:r["@UUID"],locked:r["@locked"],opacity:r["@opacity"],persistent:r["@persistent"],revealType:r["@revealType"],rotation:r["@rotation"],source:r["@source"],typeID:r["@typeID"],verticalAlignment:r["@verticalAlignment"],fontName:u.font,textColor:u.color,textSize:u.size,plainText:i,rtfData:o,winFlowData:s,winFontData:a,outline:{color:Ut(r.dictionary.NSColor["#text"]),size:r.dictionary.NSNumber["#text"],enabled:r["@drawingStroke"]},position:this.getPosition(r.RVRect3D["#text"]),textShadow:this.getShadow(r.shadow["#text"],r["@drawingShadow"])})}return n}getPosition(t){const n=t.replace(/[{}]/g,"").split(" ").map(r=>parseInt(r,10));return{x:n[0],y:n[1],z:n[2],width:n[3],height:n[4]}}getShadow(t,n){const i=new RegExp("^(\\d+)\\|("+QD+")\\|\\{(-?\\d(?:\\.\\d+)?), (-?\\d(?:\\.\\d+)?)\\}$").exec(t),o=parseInt(i[1],10),s=Ut(i[2]),a=parseFloat(i[3]),u=parseFloat(i[4]);return{angle:180*Math.atan2(a,u)/Math.PI,color:s,enabled:n,length:Math.round(Math.hypot(a,u)),radius:o}}getArrangements(t,n){const r=[];for(const i of t){const o=i.array.NSString.map(s=>({groupId:s,groupLabel:n.find(a=>a.groupId===s).groupLabel}));r.push({label:i["@name"],color:Ut(i["@color"]),groupOrder:o})}return r}}class v6{constructor(){this.name="ProPresenter 4",this.fileExt="pro4",this.url="https://renewedvision.com/propresenter/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=t.dataAsString,(new a6).parse(e));var e;let r=n.properties.CCLISongTitle;return""===r&&(r=t.name),{fileName:t.name,title:r,info:this.getInfo(n.properties),slides:this.getSlides(n.slides)}}getInfo(t){const n=[];return this.addStringPropValue(n,t,"Album","album"),this.addStringPropValue(n,t,"Artist Credits","CCLIArtistCredits"),this.addStringPropValue(n,t,"Artist","artist"),this.addStringPropValue(n,t,"Author","author"),this.addStringPropValue(n,t,"CCLI Number","CCLILicenseNumber"),this.addStringPropValue(n,t,"Category","category"),this.addStringPropValue(n,t,"Copyright","CCLICopyrightInfo"),this.addStringPropValue(n,t,"Creator Code","creatorCode"),this.addStringPropValue(n,t,"Notes","notes"),this.addStringPropValue(n,t,"Publisher","CCLIPublisher"),this.addStringPropValue(n,t,"Resources Directory","resourcesDirectory"),n}addStringPropValue(t,n,r,i){const o=n[i];("string"==typeof o||"number"==typeof o)&&""!==o&&t.push({name:r,value:o})}getSlides(t){const n=[];for(const r of t){const i=r.label,o=r.textElements.map(s=>s.textContent).join("\n");(""!==i||""!==o)&&n.push({title:i,lyrics:o})}return n}}class y6{constructor(){this.name="ProPresenter 5",this.fileExt="pro5",this.url="https://renewedvision.com/propresenter/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=t.dataAsString,(new l6).parse(e));var e;let r=n.properties.CCLISongTitle;return""===r&&(r=t.name),{fileName:t.name,title:r,info:this.getInfo(n.properties),slides:this.getSlides(n.slideGroups)}}getInfo(t){const n=[];return this.addStringPropValue(n,t,"Album","album"),this.addStringPropValue(n,t,"Artist Credits","CCLIArtistCredits"),this.addStringPropValue(n,t,"Artist","artist"),this.addStringPropValue(n,t,"Author","author"),this.addStringPropValue(n,t,"CCLI Number","CCLILicenseNumber"),this.addStringPropValue(n,t,"Category","category"),this.addStringPropValue(n,t,"Copyright","CCLICopyrightInfo"),this.addStringPropValue(n,t,"Creator Code","creatorCode"),this.addStringPropValue(n,t,"Notes","notes"),this.addStringPropValue(n,t,"Publisher","CCLIPublisher"),this.addStringPropValue(n,t,"Resources Directory","resourcesDirectory"),n}addStringPropValue(t,n,r,i){const o=n[i];("string"==typeof o||"number"==typeof o)&&""!==o&&t.push({name:r,value:o})}getSlides(t){const n=[];for(const r of t)r.slides.forEach((i,o)=>{let s=r.groupLabel;r.slides.length>1&&(s+=` (${o+1})`);const a=i.textElements.map(u=>u.textContent).join("\n");(s||a)&&n.push({title:s,lyrics:a})});return n}}class w6{constructor(){this.name="ProPresenter 6",this.fileExt="pro6",this.url="https://renewedvision.com/propresenter/"}doesInputFileMatchThisType(t){return t.ext.toLowerCase()===this.fileExt}extractSongData(t){const n=(e=t.dataAsString,(new d6).parse(e));var e;let r=n.properties.CCLISongTitle;return""===r&&(r=t.name),{fileName:t.name,title:r,info:this.getInfo(n.properties),slides:this.getSlides(n.slideGroups)}}getInfo(t){const n=[];return this.addStringPropValue(n,t,"Artist","CCLIArtistCredits"),this.addStringPropValue(n,t,"Author","CCLIAuthor"),this.addStringPropValue(n,t,"CCLI Number","CCLISongNumber"),this.addStringPropValue(n,t,"Category","category"),this.addStringPropValue(n,t,"Copyright","CCLICopyrightYear"),this.addStringPropValue(n,t,"Notes","notes"),this.addStringPropValue(n,t,"Publisher","CCLIPublisher"),this.addStringPropValue(n,t,"Resources Directory","resourcesDirectory"),n}addStringPropValue(t,n,r,i){const o=n[i];("string"==typeof o||"number"==typeof o)&&""!==o&&t.push({name:r,value:o})}getSlides(t){const n=[];for(const r of t)r.slides.forEach((i,o)=>{let s=r.groupLabel;r.slides.length>1&&(s+=` (${o+1})`);const a=i.textElements.map(u=>u.plainText).join("\n");(s||a)&&n.push({title:s,lyrics:a})});return n}}var C6=Q(617);class _6{constructor(){this.name="SongPro",this.fileExt="sng",this.url="https://songpro.org/"}doesInputFileMatchThisType(t){const n=t.ext.toLowerCase();return n===this.fileExt||"md"===n}extractSongData(t){const n=C6.X.parse(Za.normalizeLineEndings(t.dataAsString)),r=n.attrs.title??t.name,i=this.getSongInfo(n),o=this.getSongSlides(n);return{fileName:t.name,title:r,info:i,slides:o}}getSongInfo(t){const n=[];for(const r of Object.keys(t.attrs)){const i=t.attrs[r];"title"!==r&&null!=i&&n.push({name:r,value:i})}for(const r of Object.keys(t.custom)){const i=t.custom[r];"title"!==r&&null!=i&&n.push({name:r,value:i})}return n}getSongSlides(t){const n=[];for(const r of t.sections){const i=this.getCombinedLyricsFromLines(r.lines).trim();""!==i&&n.push({title:r.name,lyrics:i})}return n}getCombinedLyricsFromLines(t){return t.map(r=>r.parts.map(i=>i.lyric).join(" ")).join("\n").replace(/- /g,"-")}}class b6{id="";title="";author="";copyright="";ccli="";key="";comments="";verseOrder="";songBook="";songNumber="";topics=[];lyricSections=[]}class D6{byteLength=4;utf8Decoder=new TextDecoder("utf-8");parse(t){let n;n=typeof Buffer<"u"&&Buffer.isBuffer(t)?t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength):t;const r=this.getSections(n);return this.getFormattedSong(r)}getSections(t){let n=0;const r=[];for(;n0&&o.push({name:"Topics",value:r.topics.join(qa)}),{fileName:t.name,title:i,info:o,slides:r.lyricSections}}}class S6{constructor(){this.name="ChordPro",this.fileExt="cho",this.url="https://chordpro.org/"}convertToType(t){const n="\n",r=n+n;let i=`{title: ${t.title}}`;for(const o of t.info)o.value.toString().trim().length>0&&(i+=n,i+=`{${o.name}: ${o.value}}`);i+=r;for(const o of t.slides)o.lyrics.trim().length>0&&(i+=o.title+":",i+=n,i+=o.lyrics.trim(),i+=r);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:i.trim()}}}class I6{constructor(){this.name="Display Slides"}convertToType(t){return{songData:t,fileName:"",outputContent:""}}}class T6{constructor(){this.name="JSON",this.fileExt="json"}convertToType(t){const n=JSON.stringify({title:t.title,info:t.info,slides:t.slides},null,2);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:n}}}class M6{constructor(){this.name="OpenLyrics",this.fileExt="xml",this.url="http://openlyrics.org/"}convertToType(t){const r=(e=>{const t=new W4,n={"?xml":{"@version":"1.0","@encoding":"UTF-8"},"?xml-stylesheet":{"@href":"../stylesheets/openlyrics.css","@type":"text/css"},song:{"@xmlns":"http://openlyrics.info/namespace/2009/song","@xml:lang":"","@version":"0.9","@createdIn":"","@modifiedIn":"","@modifiedDate":"",properties:{titles:{title:[]}},format:{},lyrics:{verse:[]}}};return t.overwriteMeta(n,e.meta),t.overwriteProperties(n,e.properties),t.overwriteFormats(n,e.format),t.overwriteVerses(n,e.verses),t.overwriteInstruments(n,e.instruments),new vi.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressBooleanAttributes:!1,suppressUnpairedNode:!1,unpairedTags:["songbook"]}).build(n).trim()})({meta:{createdIn:`LyricConverter ${fg}`,modifiedIn:`LyricConverter ${fg}`},properties:{authors:this.findSpecialPropertyAuthors(t.info),ccliNo:this.findPropertyValue(t.info,/(ccliNo)|(CCLI ?Number)/i),comments:this.findSpecialPropertyComments(t.info),copyright:this.findPropertyValue(t.info,/(year)|(copyright)/i),key:this.findPropertyValue(t.info,/^key$/i),keywords:this.findPropertyValue(t.info,/^keywords$/i),publisher:this.findPropertyValue(t.info,/^publisher$/i),released:this.findPropertyValue(t.info,/(year)|(released( ?date)?)/i),songBooks:this.findSpecialPropertySongBooks(t.info),tempo:this.findSpecialPropertyTempo(t.info),themes:this.findSpecialPropertyThemes(t.info),timeSignature:this.findPropertyValue(t.info,/time ?signature/i),titles:t.title,transposition:this.findPropertyValue(t.info,/^transposition$/i),variant:this.findPropertyValue(t.info,/^variant$/i),verseOrder:this.findPropertyValue(t.info,/order/i)},verses:this.findVerses(t.slides)});return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:r}}findPropertyValue(t,n){const r=t.find(i=>n.test(i.name));if(void 0!==r)return r.value.toString()}findSpecialPropertyAuthors(t){const n=t.filter(r=>/(artist)|(author)/i.test(r.name));if(n.length>0)return n.map(r=>r.value).join(qa).split("|").map(r=>({value:r.trim()}))}findSpecialPropertyTempo(t){const n=this.findPropertyValue(t,/^tempo$/i);if(null!=n){const r=/(\d+)bpm/i.exec(n);return null!=r?.[1]?parseInt(r[1],10):n}}findSpecialPropertyThemes(t){const n=t.find(r=>r.name.toLowerCase().startsWith("theme"));if(n)return n.value.toString().split("|").map(r=>({value:r.trim()}))}findSpecialPropertyComments(t){const n=t.filter(r=>r.name.toLowerCase().startsWith("comment"));if(n.length>0)return n.map(r=>r.value).join(qa).split("|")}findSpecialPropertySongBooks(t){const n=t.filter(r=>/^song ?book/i.test(r.name));if(n.length>0)return n.map(r=>{let o,i=r.value.toString().trim();const s=/^([\w\s]+)(\(:?entry ([0-9a-z]+)\))?$/i.exec(r.value.toString());return null!=s?.[1]&&null!=s[3]&&(i=s[1].trim(),o=s[3]),{name:i,entry:o}})}findVerses(t){return t.filter(n=>""!==n.lyrics.trim()).map(n=>{let i,r=n.title;const o=/^(.+?)(?: \(([a-z]{2}(?:-[a-z]{2})?)\))?$/i.exec(n.title);return null!=o?.[1]&&null!=o[2]&&(r=o[1],i=o[2]),{name:r,lang:i,lines:[n.lyrics]}})}}class A6{constructor(){this.name="Plain Text",this.fileExt="txt"}convertToType(t){const n="\n",r=n+n;let i="Title: "+t.title;for(const o of t.info)o.value.toString().trim().length>0&&(i+=n,i+=o.name+": "+o.value);i+=n+r;for(const o of t.slides)o.lyrics.trim().length>0&&(i+=o.title+":",i+=n,i+=o.lyrics.trim(),i+=r);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:i.trim()}}}class N6{constructor(){this.name="ProPresenter 5",this.fileExt="pro5",this.url="https://renewedvision.com/propresenter/"}convertToType(t){const n={properties:{title:t.title,width:1920,height:1080},slideTextFormatting:{textPadding:20},slideGroups:[{label:"Blank",groupColor:"#FF0000",slides:[""]},{label:"Song",groupColor:"#0000FF",slides:this.getSlides(t.slides)}]};this.setProperties(t.info,n.properties);const r=new u6(n).build();return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:r}}setProperties(t,n){this.setPropertyValueByNamePattern(t,/album/i,n,"album"),this.setPropertyValueByNamePattern(t,/artist/i,n,"artist"),this.setPropertyValueByNamePattern(t,/author/i,n,"author"),this.setPropertyValueByNamePattern(t,/category/i,n,"category"),this.setPropertyValueByNamePattern(t,/(ccliNo)|(CCLI ?Number)/i,n,"ccliNumber"),this.setPropertyValueByNamePattern(t,/(year)|(copyright)/i,n,"copyrightYear"),this.setPropertyValueByNamePattern(t,/notes/i,n,"notes"),this.setPropertyValueByNamePattern(t,/publisher/i,n,"publisher")}setPropertyValueByNamePattern(t,n,r,i){const o=t.find(s=>n.test(s.name));void 0!==o&&(r[i]=o.value.toString())}getSlides(t){const n=[];for(const r of t)n.push({label:r.title,text:r.lyrics});return n}}class x6{constructor(){this.name="ProPresenter 6",this.fileExt="pro6",this.url="https://renewedvision.com/propresenter/"}convertToType(t){const n={properties:{CCLISongTitle:t.title,width:1920,height:1080},slideTextFormatting:{textPadding:20},slideGroups:[{label:"Blank",groupColor:"#FF0000",slides:[""]},{label:"Song",groupColor:"#0000FF",slides:this.getSlides(t.slides)}]};this.setProperties(t.info,n.properties);const r=new c6(n).build();return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:r}}setProperties(t,n){this.setPropertyValueByNamePattern(t,/artist/i,n,"CCLIArtistCredits"),this.setPropertyValueByNamePattern(t,/author/i,n,"CCLIAuthor"),this.setPropertyValueByNamePattern(t,/category/i,n,"category"),this.setPropertyValueByNamePattern(t,/(ccliNo)|(CCLI ?Number)/i,n,"CCLISongNumber"),this.setPropertyValueByNamePattern(t,/(year)|(copyright)/i,n,"CCLICopyrightYear"),this.setPropertyValueByNamePattern(t,/notes/i,n,"notes"),this.setPropertyValueByNamePattern(t,/publisher/i,n,"CCLIPublisher")}setPropertyValueByNamePattern(t,n,r,i){const o=t.find(s=>n.test(s.name));void 0!==o&&(r[i]=o.value.toString())}getSlides(t){const n=[];for(const r of t)n.push({label:r.title,text:r.lyrics});return n}}class R6{constructor(){this.name="SongPro",this.fileExt="sng",this.url="https://songpro.org/"}convertToType(t){const n=this.generateSongProDocument(t);return{songData:t,fileName:`${t.fileName}.${this.fileExt}`,outputContent:n}}generateSongProDocument(t){let n=this.getSongAttributes(t.title,t.info);return n+="\n"+this.getSongLyrics(t.slides),n.trim()}getSongAttributes(t,n){const r=["artist","capo","key","tempo","year","album","tuning"],i=[],o=[];for(const a of n)r.includes(a.name.toLowerCase())?i.push(`@${a.name.toLowerCase()}=${a.value}\n`):o.push(`!${a.name}=${a.value}\n`);let s=`@title=${t}\n`;return s+=i.join(""),s+=o.join(""),s}getSongLyrics(t){let n="";for(const r of t)""!==r.lyrics&&(n+=`# ${r.title}\n\n${r.lyrics}\n\n`);return n}}let nE=(()=>{class e{constructor(){this.errorsSvc=ue(ND),this.decoder=new TextDecoder,this.inputConverters=[new v6,new y6,new w6,new z4,new _6,new E6,new X4,new Q4,new G4],this.outputConverters=[new x6,new N6,new S6,new M6,new R6,new A6,new T6,new I6],this.parsedFilesChanged$=new hn}parseFiles(n){try{const r=[];for(let i=0;i<=n.length-1;i++){const o=new FileReader,s=n[i],a=this.handleFile(s,r,n.length);o.addEventListener("loadend",a,!1),o.readAsArrayBuffer(s)}}catch(r){this.errorsSvc.add({message:"There was a problem reading one of the files",thrownError:r})}}detectInputTypeAndGetConverter(n){return this.inputConverters.find(r=>r.doesInputFileMatchThisType(n))}handleFile(n,r,i){return o=>{const s=Za.getFileNameParts(n.name);null!=o.target?.result&&r.push({name:n.name,nameWithoutExt:s.name,ext:s.ext,type:n.type,size:n.size,lastModified:n.lastModified,bufferData:o.target.result}),r.length===i&&this.emitRawFiles(r)}}emitRawFiles(n){const r=[];for(const i of n)r.push({name:i.nameWithoutExt,ext:i.ext,type:i.type,dataAsBuffer:i.bufferData,dataAsString:this.decoder.decode(i.bufferData)});this.parsedFilesChanged$.next(r)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Ee({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),O6=(()=>{class e{constructor(n){this.document=n,this.dragOverClass="drag-over",this.fileDrop=new en}ngOnDestroy(){this.toggleDragOver(!1)}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.toggleDragOver(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),0===n.x&&0===n.y&&this.toggleDragOver(!1)}onDrop(n){if(n.preventDefault(),n.stopPropagation(),this.toggleDragOver(!1),n.dataTransfer){const r=n.dataTransfer.files;r.length>0&&this.fileDrop.emit(r)}}toggleDragOver(n){n?this.document.body.classList.add(this.dragOverClass):this.document.body.classList.remove(this.dragOverClass)}static#e=this.\u0275fac=function(r){return new(r||e)(ke(jt))};static#t=this.\u0275dir=Zt({type:e,selectors:[["","appDragAndDropFiles",""]],hostBindings:function(r,i){1&r&&Ln("dragover",function(s){return i.onDragOver(s)},0,Gu)("dragleave",function(s){return i.onDragLeave(s)},!1,Gu)("drop",function(s){return i.onDrop(s)},!1,Gu)},outputs:{fileDrop:"fileDrop"}})}return e})();function k6(e,t){if(1&e&&(de(0,"li",4)(1,"strong",7),be(2),ce(),de(3,"span",8),be(4),ce()()),2&e){const n=t.$implicit;$e(2),$r(n.name),$e(2),Hr(" ",n.value,"")}}function P6(e,t){if(1&e&&(de(0,"div",6)(1,"p",9),be(2),ce(),de(3,"footer",10),be(4),ce()()),2&e){const n=t.$implicit;$e(2),$r(n.lyrics),$e(2),$r(n.title)}}function F6(e,t){if(1&e&&(de(0,"div",0)(1,"h3",1),be(2),ce(),de(3,"div",2)(4,"ul",3),di(5,k6,5,2,"li",4,ci),ce()(),de(7,"div",5),di(8,P6,5,2,"div",6,ci),ce()()),2&e){const n=t.$implicit;$e(2),$r(n.songData.title),$e(3),fi(n.songData.info),$e(3),fi(n.songData.slides)}}let L6=(()=>{class e{constructor(){this.$gaService=ue(Tc),this.outputFileList=[]}ngOnInit(){this.$gaService.event("display_slides","convert",void 0,this.outputFileList.length,!0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["app-slide-display"]],inputs:{outputFileList:"outputFileList"},decls:2,vars:0,consts:[[1,"card","mb-4","last-of-type:mb-0"],[1,"card-title"],[1,"card-content","!pb-2"],[1,"flex","flex-wrap","gap-1","text-sm"],[1,"inline-flex","cursor-default","overflow-hidden","rounded","border","border-slate-500","bg-slate-300","text-slate-800","hover:border-slate-600","hover:bg-slate-400"],["data-test","song-slides-container",1,"card-content","grid","grid-cols-2","gap-1","sm:grid-cols-3","lg:grid-cols-4","xl:grid-cols-5","2xl:grid-cols-6"],[1,"flex","cursor-default","flex-col","overflow-hidden","rounded-md","border","border-slate-500","bg-slate-300","text-slate-800","hover:border-slate-600","hover:bg-slate-400"],[1,"px-1"],[1,"bg-slate-50","px-1"],[1,"grow","bg-slate-50","p-1","text-sm","leading-4"],[1,"px-1","font-bold"]],template:function(r,i){1&r&&di(0,F6,10,1,"div",0,ci),2&r&&fi(i.outputFileList)},encapsulation:2})}return e})();var V6=Q(247),rE=Q(578);function B6(e,t){if(1&e){const n=Fi();de(0,"button",4),Ln("click",function(){return kr(n),Pr(Mt().onClickDownloadFiles())}),kt(),de(1,"svg",5),je(2,"use",6),ce(),be(3," Download File "),ce()}}function j6(e,t){if(1&e){const n=Fi();de(0,"div")(1,"button",4),Ln("click",function(){return kr(n),Pr(Mt().onClickDownloadZipFile())}),kt(),de(2,"svg",5),je(3,"use",7),ce(),be(4," Download as .zip "),ce(),be(5," or "),dr(),de(6,"button",8),Ln("click",function(){return kr(n),Pr(Mt().onClickDownloadFiles())}),kt(),de(7,"svg",5),je(8,"use",9),ce(),be(9),ce()()}if(2&e){const n=Mt();$e(9),Hr(" Download ",n.outputFileList.length," individual files ")}}let U6=(()=>{class e{constructor(){this.$gaService=ue(Tc),this.outputFileList=[]}onClickDownloadFiles(){for(const n of this.outputFileList)rE.saveAs(new File(["\ufeff"+n.outputContent],n.fileName,{type:"text/plain"}));this.$gaService.event("file_download",this.selectedOutputType.name,"files",this.outputFileList.length,!0)}onClickDownloadZipFile(){const n=new V6;for(const r of this.outputFileList)n.file(r.fileName,new File([r.outputContent],r.fileName));n.generateAsync({type:"blob"}).then(r=>{rE.saveAs(r,`LyricConverter (${this.outputFileList.length} files).zip`),this.$gaService.event("file_download",this.selectedOutputType.name,"zip",this.outputFileList.length,!0)})}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["app-download-display"]],inputs:{outputFileList:"outputFileList",selectedOutputType:"selectedOutputType"},decls:6,vars:4,consts:[[1,"card"],[1,"card-title"],[1,"card-content"],["type","button",1,"btn","btn-primary"],["type","button",1,"btn","btn-primary",3,"click"],["role","img",1,"icon"],[0,"xlink","href","#file-text-fill"],[0,"xlink","href","#file-zip-fill"],["type","button",1,"btn","btn-secondary","btn-small",3,"click"],[0,"xlink","href","#files"]],template:function(r,i){1&r&&(de(0,"div",0)(1,"h3",1),be(2),ce(),de(3,"div",2),Cn(4,B6,4,0,"button",3)(5,j6,10,1,"div"),ce()()),2&r&&($e(2),Rh(" Converted ",i.outputFileList.length," ",1===i.outputFileList.length?"Song":"Songs"," "),$e(2),_n(4,1===i.outputFileList.length?4:-1),$e(),_n(5,i.outputFileList.length>1?5:-1))},encapsulation:2})}return e})();const $6=["fileInput"],H6=e=>({"sm:col-span-2 md:col-span-1":e}),z6=e=>({"sm:grid sm:grid-cols-2 sm:gap-4 md:block md:grid-cols-none":e}),G6=e=>({"border-l-2 border-l-lc-highlight bg-lc-highlight/10 font-bold":e});function W6(e,t){if(1&e&&(de(0,"span",15),be(1),ce()),2&e){const n=Mt().$implicit;$e(),Hr(".",n.fileExt,"")}}function q6(e,t){if(1&e){const n=Fi();de(0,"a",14),Ln("click",function(i){const o=kr(n).$implicit;return Pr(Mt().onSwitchConversionType(o,i))}),be(1),Cn(2,W6,2,1,"span",15),ce()}if(2&e){const n=t.$implicit,r=Mt();Kn("ngClass",Al(3,G6,r.selectedOutputType===n)),$e(),Hr(" ",n.name," "),$e(),_n(2,n.fileExt?2:-1)}}function Z6(e,t){if(1&e){const n=Fi();de(0,"div",12)(1,"div",16),be(2," You can drag more songs into this window to convert them, or "),de(3,"a",17),Ln("click",function(i){return kr(n),Pr(Mt().onSelectFilesClick(i))}),be(4,"select some more files"),ce()()()}}function Y6(e,t){if(1&e&&(de(0,"span"),be(1),ce()),2&e){const n=t.$implicit,r=t.$index,i=Mt(2);$e(),Oh("",r===i.inputTypesList.length-1?"or ":"","",n.name,"",r=n.convertedCountMessageThreshold?2:-1),$e(),_n(3,n.errorsList.length>0?3:-1),$e(),_n(4,"Display Slides"===n.selectedOutputType.name?4:5)}}function o8(e,t){if(1&e&&(de(0,"a",21),be(1),ce()),2&e){const n=Mt().$implicit;Kn("href",n.url,uf),$e(),$r(n.name)}}function s8(e,t){if(1&e&&(de(0,"span"),be(1),ce()),2&e){const n=Mt().$implicit;$e(),$r(n.name)}}function a8(e,t){1&e&&(kt(),de(0,"svg",22),je(1,"use",10),ce())}function u8(e,t){1&e&&(kt(),de(0,"svg",24),je(1,"use",26),ce())}function l8(e,t){1&e&&(kt(),de(0,"svg",27),je(1,"use",28),ce())}function c8(e,t){1&e&&(kt(),de(0,"svg",25),je(1,"use",26),ce())}function d8(e,t){1&e&&(kt(),de(0,"svg",27),je(1,"use",28),ce())}function f8(e,t){if(1&e&&(de(0,"tr")(1,"th",20),Cn(2,o8,2,2,"a",21)(3,s8,2,1)(4,a8,2,0,":svg:svg",22),ce(),de(5,"td",23),Cn(6,u8,2,0,":svg:svg",24)(7,l8,2,0),ce(),de(8,"td",23),Cn(9,c8,2,0,":svg:svg",25)(10,d8,2,0),ce()()),2&e){const n=t.$implicit;$e(2),_n(2,n.url?2:3),$e(2),_n(4,n.hasNote?4:-1),$e(2),_n(6,n.canImport?6:7),$e(3),_n(9,n.canExport?9:10)}}const h8=[{path:"",component:(()=>{class e{constructor(){this.destroyRef=ue(ei),this.document=ue(jt),this.elementRef=ue(Vr),this.parserSvc=ue(nE),this.errorsSvc=ue(ND),this.conversionTypeStorageKey="CONVERT_TO",this.convertedFileCountStorageKey="CONVERT_COUNT",this.window=this.document.defaultView,this.displayInitialUi=!0,this.convertedFileCount=0,this.convertedCountMessageThreshold=50,this.errorsList=[],this.outputTypesForMenu=[],this.inputTypesList=[],this.convertedSongsForOutput=[]}ngOnInit(){this.buildOutputTypesList(),this.buildInputTypesList(),this.getSavedConvertedFileCount(),this.parserSvc.parsedFilesChanged$.pipe(Mc(this.destroyRef)).subscribe(n=>{this.getConvertersAndExtractData(n)}),this.errorsSvc.errorsChanged$.pipe(Mc(this.destroyRef)).subscribe(n=>{this.errorsList=n})}onSwitchConversionType(n,r){r.preventDefault(),this.displayInitialUi=!0,this.selectedOutputType=n,localStorage.setItem(this.conversionTypeStorageKey,n.name)}onSelectFilesClick(n){n.preventDefault(),this.fileInput.nativeElement.click()}onFileSelect(n){const r=n.target.files;r&&this.onReceiveFiles(r)}onReceiveFiles(n){n.length>0&&(this.errorsSvc.clear(),this.parserSvc.parseFiles(n))}getConvertersAndExtractData(n){this.displayInitialUi=!1,this.scrollBackToTop();const r=[];for(const i of n){const o=""!==i.ext?`${i.name}.${i.ext}`:i.name,s=this.parserSvc.detectInputTypeAndGetConverter(i);if(s)try{r.push(s.extractSongData(i))}catch(a){this.errorsSvc.add({message:"There was a problem extracting the song data from this file!",fileName:o,thrownError:a})}else this.errorsSvc.add({message:"This is not a file type that LyricConverter knows how to convert!",fileName:o})}if(r.length){this.convertedFileCount+=r.length,localStorage.setItem(this.convertedFileCountStorageKey,this.convertedFileCount.toString());const i=[];for(const o of r)try{i.push(this.selectedOutputType.convertToType(o))}catch(s){this.errorsSvc.add({message:`There was a problem converting this song to the ${this.selectedOutputType.name} format`,fileName:o.fileName,thrownError:s})}this.convertedSongsForOutput=i}}buildOutputTypesList(){this.outputTypesForMenu=[...this.parserSvc.outputConverters];const n=localStorage.getItem(this.conversionTypeStorageKey);this.selectedOutputType=this.parserSvc.outputConverters.find(r=>r.name===n)??this.outputTypesForMenu[0]}buildInputTypesList(){this.inputTypesList=this.parserSvc.inputConverters.map(n=>({name:n.name,ext:n.fileExt}))}getSavedConvertedFileCount(){const n=parseInt(localStorage.getItem(this.convertedFileCountStorageKey)??"",10);!isNaN(n)&&n>0&&(this.convertedFileCount=n)}scrollBackToTop(){this.window.scrollTo({top:this.elementRef.nativeElement.offsetTop,behavior:"smooth"})}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["app-convert"]],viewQuery:function(r,i){if(1&r&&DC($6,5),2&r){let o;Nh(o=xh())&&(i.fileInput=o.first)}},decls:19,vars:8,consts:[["fileInput",""],["id","drop-area","appDragAndDropFiles","",1,"pointer-events-none","fixed","inset-0","z-50","flex","items-center","justify-center","bg-slate-600/50","backdrop-blur-sm",3,"fileDrop"],[1,"flex","items-center","rounded-xl","border-2","border-slate-600","bg-slate-50/90","p-8","text-3xl","font-bold","text-slate-800","shadow-lg"],["role","img",1,"icon","mr-2"],[0,"xlink","href","#files"],["type","file","multiple","",1,"hidden",3,"change"],[1,"grid","grid-cols-1","gap-4","sm:grid-cols-2","md:grid-cols-4"],[3,"ngClass"],[1,"sticky","md:top-4",3,"ngClass"],["id","test-convert-types-nav",1,"card","grid","grid-cols-1","overflow-hidden","p-0"],[1,"card-title","py-2","text-center"],["href","#",1,"flex","items-center","border-b","border-b-lc-highlight/10","p-2","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"ngClass"],["id","test-drop-instructions-more",1,"card","mt-4","sm:mt-0","md:mt-4"],["id","begin-area",1,"card","md:col-span-3"],["href","#",1,"flex","items-center","border-b","border-b-lc-highlight/10","p-2","text-white","hover:bg-lc-highlight/20","hover:no-underline",3,"click","ngClass"],[1,"ml-1","rounded","border","border-white/30","bg-slate-300","p-0.5","pl-0","font-mono","text-xs","leading-none","text-slate-800"],[1,"card-content"],["href","#",3,"click"],[1,"card-content","flex","flex-col","items-center","justify-center","text-center"],[1,"mb-4","mt-auto"],[1,"text-3xl"],["id","test-accepted-input-formats",1,"mt-auto"],["id","display-area",1,"sm:col-span-2","md:col-span-3"],[1,"mb-4","md:hidden"],["id","test-donate","role","alert",1,"card","mb-4","border-blue-800/80","bg-blue-100/70","text-blue-900"],["id","test-error-message-display","role","alert",1,"card","mb-4","border-red-700/80","bg-red-200/80","text-red-700"],[3,"outputFileList"],[1,"mb-2","flex","items-center"],["role","img","aria-label","Info:",1,"icon","icon-lg","me-2"],[0,"xlink","href","#info-fill"],[1,"text-lg"],[1,"mb-2"],[1,"mb-2","flex","items-center","text-xl","font-bold"],["role","img","aria-label","Alert:",1,"icon","icon-lg","mr-2"],[0,"xlink","href","#exclamation-triangle-fill"],[3,"selectedOutputType","outputFileList"]],template:function(r,i){if(1&r){const o=Fi();de(0,"div",1),Ln("fileDrop",function(a){return kr(o),Pr(i.onReceiveFiles(a))}),de(1,"div",2),kt(),de(2,"svg",3),je(3,"use",4),ce(),dr(),de(4,"span"),be(5,"Drop Your Song Files Here"),ce()()(),de(6,"input",5,0),Ln("change",function(a){return kr(o),Pr(i.onFileSelect(a))}),ce(),de(8,"div",6)(9,"div",7)(10,"aside",8)(11,"nav",9)(12,"strong",10),be(13," Convert To "),ce(),di(14,q6,3,5,"a",11,ci),ce(),Cn(16,Z6,5,0,"div",12),ce()(),Cn(17,X6,18,0,"div",13)(18,r8,6,3),ce()}2&r&&($e(9),Kn("ngClass",Al(4,H6,!i.displayInitialUi)),$e(),Kn("ngClass",Al(6,z6,!i.displayInitialUi)),$e(4),fi(i.outputTypesForMenu),$e(2),_n(16,i.displayInitialUi?-1:16),$e(),_n(17,i.displayInitialUi?17:18))},dependencies:[b_,MD,O6,L6,U6],styles:["#drop-area{opacity:0;transition:opacity .3s}body.drag-over #drop-area{opacity:1}\n"],encapsulation:2})}return e})(),title:"Lyric Converter"},{path:"about",component:j4,pathMatch:"full",title:"Lyric Converter: About"},{path:"help",component:(()=>{class e{constructor(){this.parserSvc=ue(nE),this.combinedFormatsList=[],this.unsupportedFormatsList=[{name:"ProPresenter 7",canImport:!1,canExport:!1,hasNote:!0,url:"https://renewedvision.com/propresenter/"},{name:"MediaShout",canImport:!1,canExport:!1,hasNote:!1,url:"https://mediashout.com/"},{name:"EasyWorship",canImport:!1,canExport:!1,hasNote:!1,url:"https://easyworship.com/"},{name:"OpenSong",canImport:!1,canExport:!1,hasNote:!1,url:"http://opensong.org/"}]}ngOnInit(){this.parserSvc.inputConverters.forEach(n=>{this.combinedFormatsList.push({name:n.name,canImport:!0,canExport:!1,hasNote:!1,url:n.url})}),this.parserSvc.outputConverters.filter(n=>"Display Slides"!==n.name).forEach(n=>{const r=this.combinedFormatsList.find(i=>i.name===n.name);r?r.canExport=!0:this.combinedFormatsList.push({name:n.name,canImport:!1,canExport:!0,hasNote:!1,url:n.url})}),this.combinedFormatsList=Za.mergeArraysByProp(this.combinedFormatsList,this.unsupportedFormatsList,"name").sort((n,r)=>n.namer.name?1:0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Nr({type:e,selectors:[["app-help"]],decls:38,vars:0,consts:[[1,"grid","gap-4","sm:grid-cols-2"],[1,"card"],[1,"card-title"],[1,"card-content"],[1,"mb-2","text-sm"],[1,"w-full"],["scope","col",1,"w-1/2"],["scope","col",1,"w-1/4","text-center"],[1,"my-2","text-sm"],["role","img","aria-label","Tip:",1,"icon","text-blue-400"],[0,"xlink","href","#info-fill"],[1,"card","mb-4"],[1,"inline-block","text-center"],["target","_blank","href","https://github.com/FiniteLooper/LyricConverter/issues",1,"btn","btn-secondary"],["role","img","aria-label","Github:",1,"icon","me-2","shrink-0"],[0,"xlink","href","#github"],[1,"my-2"],["target","_blank","href","https://hachyderm.io/@FiniteLooper",1,"btn","btn-secondary"],["role","img","aria-label","Mastodon:",1,"icon","me-2","shrink-0"],[0,"xlink","href","#mastodon"],["scope","row",1,"text-left"],["target","_blank",3,"href"],["role","img","aria-label","Info: about this format",1,"icon","ml-1","text-sm","text-blue-400"],[1,"text-center"],["role","img","aria-label","Import is supported",1,"icon","text-green-400","drop-shadow-md"],["role","img","aria-label","Export is supported",1,"icon","text-green-400","drop-shadow-md"],[0,"xlink","href","#check-circle-fill"],["role","img","aria-label","Export is not supported",1,"icon","text-red-400","drop-shadow-md"],[0,"xlink","href","#x-circle"]],template:function(r,i){1&r&&(de(0,"div",0)(1,"div",1)(2,"h3",2),be(3,"Supported Formats"),ce(),de(4,"div",3)(5,"p",4),be(6," Eventually I would love for LyricConverter to convert between all of these formats and more, but for the time being this is all it can do. "),ce(),de(7,"table",5)(8,"thead")(9,"tr"),je(10,"th",6),de(11,"th",7),be(12,"Import"),ce(),de(13,"th",7),be(14,"Export"),ce()()(),de(15,"tbody"),di(16,f8,11,4,"tr",null,ci),ce()(),de(18,"p",8),kt(),de(19,"svg",9),je(20,"use",10),ce(),be(21," You can import the ProPresenter 6 files made by LyricConverter into ProPresenter 7! "),ce()()(),dr(),de(22,"div")(23,"div",11)(24,"h3",2),be(25,"Have a question or some other problem?"),ce(),de(26,"div",3)(27,"div",12)(28,"a",13),kt(),de(29,"svg",14),je(30,"use",15),ce(),be(31," Open an issue on GitHub "),ce(),dr(),de(32,"div",16),be(33,"or"),ce(),de(34,"a",17),kt(),de(35,"svg",18),je(36,"use",19),ce(),be(37," Contact me on Mastodon "),ce()()()()()()),2&r&&($e(16),fi(i.combinedFormatsList))},styles:["table[_ngcontent-%COMP%]{table-layout:auto;border-collapse:collapse}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#1f2937b3}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#374151e6}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#1f293799}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd):hover{background-color:#374151e6}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem .5rem}"]})}return e})(),pathMatch:"full",title:"Lyric Converter: Help"},{path:"**",redirectTo:""}];let p8=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=xr({type:e});static#n=this.\u0275inj=or({imports:[_D.forRoot(h8,{initialNavigation:"enabledBlocking"}),_D]})}return e})(),g8=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=xr({type:e,bootstrap:[B4]});static#n=this.\u0275inj=or({imports:[nL,p8,TD.forRoot("G-1W69G30JB8"),V4]})}return e})();eL().bootstrapModule(g8).catch(e=>{console.error(e)})},337:(it,P,Q)=>{"use strict";const F=Q(573),M=Q(240),T=Q(303);it.exports={XMLParser:M,XMLValidator:F,XMLBuilder:T}},999:(it,P)=>{"use strict";const Q=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",M="["+Q+"]["+Q+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",T=new RegExp("^"+M+"$");P.isExist=function(E){return typeof E<"u"},P.isEmptyObject=function(E){return 0===Object.keys(E).length},P.merge=function(E,b,v){if(b){const C=Object.keys(b),f=C.length;for(let m=0;m"u")},P.getAllMatches=function(E,b){const v=[];let C=b.exec(E);for(;C;){const f=[];f.startIndex=b.lastIndex-C[0].length;const m=C.length;for(let g=0;g{"use strict";const F=Q(999),M={allowBooleanAttributes:!1,unpairedTags:[]};function T(I){return" "===I||"\t"===I||"\n"===I||"\r"===I}function y(I,L){const $=L;for(;L5&&"xml"===oe)return w("InvalidXml","XML declaration allowed only at the start of the document.",V(I,L));if("?"==I[L]&&">"==I[L+1]){L++;break}continue}return L}function D(I,L){if(I.length>L+5&&"-"===I[L+1]&&"-"===I[L+2]){for(L+=3;L"===I[L+2]){L+=2;break}}else if(I.length>L+8&&"D"===I[L+1]&&"O"===I[L+2]&&"C"===I[L+3]&&"T"===I[L+4]&&"Y"===I[L+5]&&"P"===I[L+6]&&"E"===I[L+7]){let $=1;for(L+=8;L"===I[L]&&($--,0===$))break}else if(I.length>L+9&&"["===I[L+1]&&"C"===I[L+2]&&"D"===I[L+3]&&"A"===I[L+4]&&"T"===I[L+5]&&"A"===I[L+6]&&"["===I[L+7])for(L+=8;L"===I[L+2]){L+=2;break}return L}P.validate=function(I,L){L=Object.assign({},M,L);const $=[];let oe=!1,x=!1;"\ufeff"===I[0]&&(I=I.substr(1));for(let j=0;j"!==I[j]&&" "!==I[j]&&"\t"!==I[j]&&"\n"!==I[j]&&"\r"!==I[j];j++)U+=I[j];if(U=U.trim(),"/"===U[U.length-1]&&(U=U.substring(0,U.length-1),j--),!R(U)){let le;return le=0===U.trim().length?"Invalid space after '<'.":"Tag '"+U+"' is an invalid name.",w("InvalidTag",le,V(I,j))}const h=v(I,j);if(!1===h)return w("InvalidAttr","Attributes for '"+U+"' have open quote.",V(I,j));let X=h.value;if(j=h.index,"/"===X[X.length-1]){const le=j-X.length;X=X.substring(0,X.length-1);const G=f(X,L);if(!0!==G)return w(G.err.code,G.err.msg,V(I,le+G.err.line));oe=!0}else if(N){if(!h.tagClosed)return w("InvalidTag","Closing tag '"+U+"' doesn't have proper closing.",V(I,j));if(X.trim().length>0)return w("InvalidTag","Closing tag '"+U+"' can't have attributes or invalid starting.",V(I,J));{const le=$.pop();if(U!==le.tagName){let G=V(I,le.tagStartPos);return w("InvalidTag","Expected closing tag '"+le.tagName+"' (opened in line "+G.line+", col "+G.col+") instead of closing tag '"+U+"'.",V(I,J))}0==$.length&&(x=!0)}}else{const le=f(X,L);if(!0!==le)return w(le.err.code,le.err.msg,V(I,j-X.length+le.err.line));if(!0===x)return w("InvalidXml","Multiple possible root nodes found.",V(I,j));-1!==L.unpairedTags.indexOf(U)||$.push({tagName:U,tagStartPos:J}),oe=!0}for(j++;j0)||w("InvalidXml","Invalid '"+JSON.stringify($.map(j=>j.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):w("InvalidXml","Start tag expected.",1)};const E='"',b="'";function v(I,L){let $="",oe="",x=!1;for(;L"===I[L]&&""===oe){x=!0;break}$+=I[L]}return""===oe&&{value:$,index:L,tagClosed:x}}const C=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function f(I,L){const $=F.getAllMatches(I,C),oe={};for(let x=0;x<$.length;x++){if(0===$[x][1].length)return w("InvalidAttr","Attribute '"+$[x][2]+"' has no space in starting.",z($[x]));if(void 0!==$[x][3]&&void 0===$[x][4])return w("InvalidAttr","Attribute '"+$[x][2]+"' is without value.",z($[x]));if(void 0===$[x][3]&&!L.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+$[x][2]+"' is not allowed.",z($[x]));const j=$[x][2];if(!_(j))return w("InvalidAttr","Attribute '"+j+"' is an invalid name.",z($[x]));if(oe.hasOwnProperty(j))return w("InvalidAttr","Attribute '"+j+"' is repeated.",z($[x]));oe[j]=1}return!0}function g(I,L){if(";"===I[++L])return-1;if("#"===I[L])return function m(I,L){let $=/\d/;for("x"===I[L]&&(L++,$=/[\da-fA-F]/);L{"use strict";const F=Q(505),M={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(v,C){return C},attributeValueProcessor:function(v,C){return C},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function T(v){this.options=Object.assign({},M,v),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=b),this.processTextOrObjNode=y,this.options.format?(this.indentate=E,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function y(v,C,f){const m=this.j2x(v,f+1);return void 0!==v[this.options.textNodeName]&&1===Object.keys(v).length?this.buildTextValNode(v[this.options.textNodeName],C,m.attrStr,f):this.buildObjectNode(m.val,C,m.attrStr,f)}function E(v){return this.options.indentBy.repeat(v)}function b(v){return!(!v.startsWith(this.options.attributeNamePrefix)||v===this.options.textNodeName)&&v.substr(this.attrPrefixLen)}T.prototype.build=function(v){return this.options.preserveOrder?F(v,this.options):(Array.isArray(v)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(v={[this.options.arrayNodeName]:v}),this.j2x(v,0).val)},T.prototype.j2x=function(v,C){let f="",m="";for(let g in v)if(Object.prototype.hasOwnProperty.call(v,g))if(typeof v[g]>"u")this.isAttribute(g)&&(m+="");else if(null===v[g])this.isAttribute(g)?m+="":m+="?"===g[0]?this.indentate(C)+"<"+g+"?"+this.tagEndChar:this.indentate(C)+"<"+g+"/"+this.tagEndChar;else if(v[g]instanceof Date)m+=this.buildTextValNode(v[g],g,"",C);else if("object"!=typeof v[g]){const w=this.isAttribute(g);if(w)f+=this.buildAttrPairStr(w,""+v[g]);else if(g===this.options.textNodeName){let _=this.options.tagValueProcessor(g,""+v[g]);m+=this.replaceEntitiesValue(_)}else m+=this.buildTextValNode(v[g],g,"",C)}else if(Array.isArray(v[g])){const w=v[g].length;let _="";for(let R=0;R"u"||(null===V?m+="?"===g[0]?this.indentate(C)+"<"+g+"?"+this.tagEndChar:this.indentate(C)+"<"+g+"/"+this.tagEndChar:_+="object"==typeof V?this.options.oneListGroup?this.j2x(V,C+1).val:this.processTextOrObjNode(V,g,C):this.buildTextValNode(V,g,"",C))}this.options.oneListGroup&&(_=this.buildObjectNode(_,g,"",C)),m+=_}else if(this.options.attributesGroupName&&g===this.options.attributesGroupName){const w=Object.keys(v[g]),_=w.length;for(let R=0;R<_;R++)f+=this.buildAttrPairStr(w[R],""+v[g][w[R]])}else m+=this.processTextOrObjNode(v[g],g,C);return{attrStr:f,val:m}},T.prototype.buildAttrPairStr=function(v,C){return C=this.options.attributeValueProcessor(v,""+C),C=this.replaceEntitiesValue(C),this.options.suppressBooleanAttributes&&"true"===C?" "+v:" "+v+'="'+C+'"'},T.prototype.buildObjectNode=function(v,C,f,m){if(""===v)return"?"===C[0]?this.indentate(m)+"<"+C+f+"?"+this.tagEndChar:this.indentate(m)+"<"+C+f+this.closeTag(C)+this.tagEndChar;{let g=""+v+g}},T.prototype.closeTag=function(v){let C="";return-1!==this.options.unpairedTags.indexOf(v)?this.options.suppressUnpairedNode||(C="/"):C=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&C===this.options.commentPropName)return this.indentate(m)+`\x3c!--${v}--\x3e`+this.newLine;if("?"===C[0])return this.indentate(m)+"<"+C+f+"?"+this.tagEndChar;{let g=this.options.tagValueProcessor(C,v);return g=this.replaceEntitiesValue(g),""===g?this.indentate(m)+"<"+C+f+this.closeTag(C)+this.tagEndChar:this.indentate(m)+"<"+C+f+">"+g+"0&&this.options.processEntities)for(let C=0;C{function F(E,b,v,C){let f="",m=!1;for(let g=0;g`,m=!1;continue}if(_===b.commentPropName){f+=C+`\x3c!--${w[_][0][b.textNodeName]}--\x3e`,m=!0;continue}if("?"===_[0]){const $=T(w[":@"],b);let x=w[_][0][b.textNodeName];x=0!==x.length?" "+x:"",f+=("?xml"===_?"":C)+`<${_}${x}${$}?>`,m=!0;continue}let V=C;""!==V&&(V+=b.indentBy);const I=C+`<${_}${T(w[":@"],b)}`,L=F(w[_],b,R,V);-1!==b.unpairedTags.indexOf(_)?f+=b.suppressUnpairedNode?I+">":I+"/>":L&&0!==L.length||!b.suppressEmptyNode?L&&L.endsWith(">")?f+=I+`>${L}${C}`:(f+=I+">",L&&""!==C&&(L.includes("/>")||L.includes("`):f+=I+"/>",m=!0}return f}function M(E){const b=Object.keys(E);for(let v=0;v0&&b.processEntities)for(let v=0;v0&&(v="\n"),F(E,b,"",v)}},563:(it,P,Q)=>{const F=Q(999);function T(f,m){let g="";for(;m"===f[m]){if(R?"-"===f[m-1]&&"-"===f[m-2]&&(R=!1,w--):w--,0===w)break}else"["===f[m]?_=!0:V+=f[m];else{if(_&&D(f,m))m+=7,[entityName,val,m]=T(f,m+1),-1===val.indexOf("&")&&(g[C(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(_&&E(f,m))m+=8;else if(_&&b(f,m))m+=8;else if(_&&v(f,m))m+=9;else{if(!y)throw new Error("Invalid DOCTYPE");R=!0}w++,V=""}if(0!==w)throw new Error("Unclosed DOCTYPE")}return{entities:g,i:m}}},621:(it,P)=>{const Q={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(M,T){return T},attributeValueProcessor:function(M,T){return T},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(M,T,y){return M}};P.buildOptions=function(M){return Object.assign({},Q,M)},P.defaultOptions=Q},954:(it,P,Q)=>{"use strict";const F=Q(999),M=Q(380),T=Q(563),y=Q(140);function b(x){const j=Object.keys(x);for(let J=0;J0)){X||(x=this.replaceEntitiesValue(x));const le=this.options.tagValueProcessor(j,x,J,U,h);return null==le?x:typeof le!=typeof x||le!==x?le:this.options.trimValues||x.trim()===x?oe(x,this.options.parseTagValue,this.options.numberParseOptions):x}}function C(x){if(this.options.removeNSPrefix){const j=x.split(":"),J="/"===x.charAt(0)?"/":"";if("xmlns"===j[0])return"";2===j.length&&(x=J+j[1])}return x}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,F.nameRegexp);const f=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function m(x,j,J){if(!this.options.ignoreAttributes&&"string"==typeof x){const N=F.getAllMatches(x,f),U=N.length,h={};for(let X=0;X",h,"Closing Tag is not closed.");let G=x.substring(h+2,le).trim();if(this.options.removeNSPrefix){const Se=G.indexOf(":");-1!==Se&&(G=G.substr(Se+1))}this.options.transformTagName&&(G=this.options.transformTagName(G)),J&&(N=this.saveTextToParentTag(N,J,U));const De=U.substring(U.lastIndexOf(".")+1);if(G&&-1!==this.options.unpairedTags.indexOf(G))throw new Error(`Unpaired tag can not be used as closing tag: `);let re=0;De&&-1!==this.options.unpairedTags.indexOf(De)?(re=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=U.lastIndexOf("."),U=U.substring(0,re),J=this.tagsNodeStack.pop(),N="",h=le}else if("?"===x[h+1]){let le=L(x,h,!1,"?>");if(!le)throw new Error("Pi Tag is not closed.");if(N=this.saveTextToParentTag(N,J,U),!(this.options.ignoreDeclaration&&"?xml"===le.tagName||this.options.ignorePiTags)){const G=new M(le.tagName);G.add(this.options.textNodeName,""),le.tagName!==le.tagExp&&le.attrExpPresent&&(G[":@"]=this.buildAttributesMap(le.tagExp,U,le.tagName)),this.addChild(J,G,U)}h=le.closeIndex+1}else if("!--"===x.substr(h+1,3)){const le=I(x,"--\x3e",h+4,"Comment is not closed.");if(this.options.commentPropName){const G=x.substring(h+4,le-2);N=this.saveTextToParentTag(N,J,U),J.add(this.options.commentPropName,[{[this.options.textNodeName]:G}])}h=le}else if("!D"===x.substr(h+1,2)){const le=T(x,h);this.docTypeEntities=le.entities,h=le.i}else if("!["===x.substr(h+1,2)){const le=I(x,"]]>",h,"CDATA is not closed.")-2,G=x.substring(h+9,le);if(N=this.saveTextToParentTag(N,J,U),this.options.cdataPropName)J.add(this.options.cdataPropName,[{[this.options.textNodeName]:G}]);else{let De=this.parseTextData(G,J.tagname,U,!0,!1,!0);null==De&&(De=""),J.add(this.options.textNodeName,De)}h=le+2}else{let le=L(x,h,this.options.removeNSPrefix),G=le.tagName;const De=le.rawTagName;let re=le.tagExp,Se=le.attrExpPresent,K=le.closeIndex;if(this.options.transformTagName&&(G=this.options.transformTagName(G)),J&&N&&"!xml"!==J.tagname&&(N=this.saveTextToParentTag(N,J,U,!1)),J&&-1!==this.options.unpairedTags.indexOf(J.tagname)&&(J=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."))),G!==j.tagname&&(U+=U?"."+G:G),this.isItStopNode(this.options.stopNodes,U,G)){let Ce="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)h=le.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(G))h=le.closeIndex;else{const ve=this.readStopNodeData(x,De,K+1);if(!ve)throw new Error(`Unexpected end of ${De}`);h=ve.i,Ce=ve.tagContent}const ye=new M(G);G!==re&&Se&&(ye[":@"]=this.buildAttributesMap(re,U,G)),Ce&&(Ce=this.parseTextData(Ce,G,U,!0,Se,!0,!0)),U=U.substr(0,U.lastIndexOf(".")),ye.add(this.options.textNodeName,Ce),this.addChild(J,ye,U)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){"/"===G[G.length-1]?(G=G.substr(0,G.length-1),U=U.substr(0,U.length-1),re=G):re=re.substr(0,re.length-1),this.options.transformTagName&&(G=this.options.transformTagName(G));const Ce=new M(G);G!==re&&Se&&(Ce[":@"]=this.buildAttributesMap(re,U,G)),this.addChild(J,Ce,U),U=U.substr(0,U.lastIndexOf("."))}else{const Ce=new M(G);this.tagsNodeStack.push(J),G!==re&&Se&&(Ce[":@"]=this.buildAttributesMap(re,U,G)),this.addChild(J,Ce,U),J=Ce}N="",h=K}}else N+=x[h];return j.child};function w(x,j,J){const N=this.options.updateTag(j.tagname,J,j[":@"]);!1===N||("string"==typeof N&&(j.tagname=N),x.addChild(j))}const _=function(x){if(this.options.processEntities){for(let j in this.docTypeEntities){const J=this.docTypeEntities[j];x=x.replace(J.regx,J.val)}for(let j in this.lastEntities){const J=this.lastEntities[j];x=x.replace(J.regex,J.val)}if(this.options.htmlEntities)for(let j in this.htmlEntities){const J=this.htmlEntities[j];x=x.replace(J.regex,J.val)}x=x.replace(this.ampEntity.regex,this.ampEntity.val)}return x};function R(x,j,J,N){return x&&(void 0===N&&(N=0===Object.keys(j.child).length),void 0!==(x=this.parseTextData(x,j.tagname,J,!1,!!j[":@"]&&0!==Object.keys(j[":@"]).length,N))&&""!==x&&j.add(this.options.textNodeName,x),x=""),x}function V(x,j,J){const N="*."+J;for(const U in x){const h=x[U];if(N===h||j===h)return!0}return!1}function I(x,j,J,N){const U=x.indexOf(j,J);if(-1===U)throw new Error(N);return U+j.length-1}function L(x,j,J,N=">"){const U=function z(x,j,J=">"){let N,U="";for(let h=j;h",J,`${j} is not closed`);if(x.substring(J+2,h).trim()===j&&(U--,0===U))return{tagContent:x.substring(N,J),i:h};J=h}else if("?"===x[J+1])J=I(x,"?>",J+1,"StopNode is not closed.");else if("!--"===x.substr(J+1,3))J=I(x,"--\x3e",J+3,"StopNode is not closed.");else if("!["===x.substr(J+1,2))J=I(x,"]]>",J,"StopNode is not closed.")-2;else{const h=L(x,J,">");h&&((h&&h.tagName)===j&&"/"!==h.tagExp[h.tagExp.length-1]&&U++,J=h.closeIndex)}}function oe(x,j,J){if(j&&"string"==typeof x){const N=x.trim();return"true"===N||"false"!==N&&y(x,J)}return F.isExist(x)?x:""}it.exports=class E{constructor(j){this.options=j,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"\u20ac"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"\u20b9"}},this.addExternalEntities=b,this.parseXml=g,this.parseTextData=v,this.resolveNameSpace=C,this.buildAttributesMap=m,this.isItStopNode=V,this.replaceEntitiesValue=_,this.readStopNodeData=$,this.saveTextToParentTag=R,this.addChild=w}}},240:(it,P,Q)=>{const{buildOptions:F}=Q(621),M=Q(954),{prettify:T}=Q(526),y=Q(573);it.exports=class D{constructor(b){this.externalEntities={},this.options=F(b)}parse(b,v){if("string"!=typeof b){if(!b.toString)throw new Error("XML data is accepted in String or Bytes[] form.");b=b.toString()}if(v){!0===v&&(v={});const m=y.validate(b,v);if(!0!==m)throw Error(`${m.err.msg}:${m.err.line}:${m.err.col}`)}const C=new M(this.options);C.addExternalEntities(this.externalEntities);const f=C.parseXml(b);return this.options.preserveOrder||void 0===f?f:T(f,this.options)}addEntity(b,v){if(-1!==v.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==b.indexOf("&")||-1!==b.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===v)throw new Error("An entity with value '&' is not permitted");this.externalEntities[b]=v}}},526:(it,P)=>{"use strict";function F(D,E,b){let v;const C={};for(let f=0;f0&&(C[E.textNodeName]=v):void 0!==v&&(C[E.textNodeName]=v),C}function M(D){const E=Object.keys(D);for(let b=0;b{"use strict";it.exports=class P{constructor(F){this.tagname=F,this.child=[],this[":@"]={}}add(F,M){"__proto__"===F&&(F="#__proto__"),this.child.push({[F]:M})}addChild(F){"__proto__"===F.tagname&&(F.tagname="#__proto__"),F[":@"]&&Object.keys(F[":@"]).length>0?this.child.push({[F.tagname]:F.child,":@":F[":@"]}):this.child.push({[F.tagname]:F.child})}}},578:function(it,P){var Q,M;void 0!==(M="function"==typeof(Q=function(){"use strict";function y(f,m,g){var w=new XMLHttpRequest;w.open("GET",f),w.responseType="blob",w.onload=function(){C(w.response,m,g)},w.onerror=function(){console.error("could not download file")},w.send()}function D(f){var m=new XMLHttpRequest;m.open("HEAD",f,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function E(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(m)}}var b="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,v=b.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=b.saveAs||("object"!=typeof window||window!==b?function(){}:"download"in HTMLAnchorElement.prototype&&!v?function(f,m,g){var w=b.URL||b.webkitURL,_=document.createElement("a");_.download=m=m||f.name||"download",_.rel="noopener","string"==typeof f?(_.href=f,_.origin===location.origin?E(_):D(_.href)?y(f,m,g):E(_,_.target="_blank")):(_.href=w.createObjectURL(f),setTimeout(function(){w.revokeObjectURL(_.href)},4e4),setTimeout(function(){E(_)},0))}:"msSaveOrOpenBlob"in navigator?function(f,m,g){if(m=m||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(function T(f,m){return typeof m>"u"?m={autoBom:!1}:"object"!=typeof m&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\ufeff",f],{type:f.type}):f}(f,g),m);else if(D(f))y(f,m,g);else{var w=document.createElement("a");w.href=f,w.target="_blank",setTimeout(function(){E(w)})}}:function(f,m,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof f)return y(f,m,g);var _="application/octet-stream"===f.type,R=/constructor/i.test(b.HTMLElement)||b.safari,V=/CriOS\/[\d]+/.test(navigator.userAgent);if((V||_&&R||v)&&typeof FileReader<"u"){var z=new FileReader;z.onloadend=function(){var $=z.result;$=V?$:$.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=$:location=$,w=null},z.readAsDataURL(f)}else{var I=b.URL||b.webkitURL,L=I.createObjectURL(f);w?w.location=L:location.href=L,w=null,setTimeout(function(){I.revokeObjectURL(L)},4e4)}});b.saveAs=C.saveAs=C,it.exports=C})?Q.apply(P,[]):Q)&&(it.exports=M)},247:it=>{it.exports=function P(Q,F,M){function T(E,b){if(!F[E]){if(!Q[E]){if(y)return y(E,!0);var C=new Error("Cannot find module '"+E+"'");throw C.code="MODULE_NOT_FOUND",C}var f=F[E]={exports:{}};Q[E][0].call(f.exports,function(m){return T(Q[E][1][m]||m)},f,f.exports,P,Q,F,M)}return F[E].exports}for(var y=void 0,D=0;D>4,m=1>6:64,g=2>2)+y.charAt(f)+y.charAt(m)+y.charAt(g));return w.join("")},F.decode=function(D){var E,b,v,C,f,m,g=0,w=0,_="data:";if(D.substr(0,5)===_)throw new Error("Invalid base64 input, it looks like a data url.");var R,V=3*(D=D.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(D.charAt(D.length-1)===y.charAt(64)&&V--,D.charAt(D.length-2)===y.charAt(64)&&V--,V%1!=0)throw new Error("Invalid base64 input, bad content length.");for(R=T.uint8array?new Uint8Array(0|V):new Array(0|V);g>4,b=(15&C)<<4|(f=y.indexOf(D.charAt(g++)))>>2,v=(3&f)<<6|(m=y.indexOf(D.charAt(g++))),R[w++]=E,64!==f&&(R[w++]=b),64!==m&&(R[w++]=v);return R}},{"./support":30,"./utils":32}],2:[function(P,Q,F){"use strict";var M=P("./external"),T=P("./stream/DataWorker"),y=P("./stream/Crc32Probe"),D=P("./stream/DataLengthProbe");function E(b,v,C,f,m){this.compressedSize=b,this.uncompressedSize=v,this.crc32=C,this.compression=f,this.compressedContent=m}E.prototype={getContentWorker:function(){var b=new T(M.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new D("data_length")),v=this;return b.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new T(M.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},E.createWorkerFrom=function(b,v,C){return b.pipe(new y).pipe(new D("uncompressedSize")).pipe(v.compressWorker(C)).pipe(new D("compressedSize")).withStreamInfo("compression",v)},Q.exports=E},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(P,Q,F){"use strict";var M=P("./stream/GenericWorker");F.STORE={magic:"\0\0",compressWorker:function(){return new M("STORE compression")},uncompressWorker:function(){return new M("STORE decompression")}},F.DEFLATE=P("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(P,Q,F){"use strict";var M=P("./utils"),T=function(){for(var y,D=[],E=0;E<256;E++){y=E;for(var b=0;b<8;b++)y=1&y?3988292384^y>>>1:y>>>1;D[E]=y}return D}();Q.exports=function(y,D){return void 0!==y&&y.length?"string"!==M.getTypeOf(y)?function(E,b,v,C){var f=T,m=0+v;E^=-1;for(var g=0;g>>8^f[255&(E^b[g])];return~E}(0|D,y,y.length):function(E,b,v,C){var f=T,m=0+v;E^=-1;for(var g=0;g>>8^f[255&(E^b.charCodeAt(g))];return~E}(0|D,y,y.length):0}},{"./utils":32}],5:[function(P,Q,F){"use strict";F.base64=!1,F.binary=!1,F.dir=!1,F.createFolders=!0,F.date=null,F.compression=null,F.compressionOptions=null,F.comment=null,F.unixPermissions=null,F.dosPermissions=null},{}],6:[function(P,Q,F){"use strict";var M;M=typeof Promise<"u"?Promise:P("lie"),Q.exports={Promise:M}},{lie:37}],7:[function(P,Q,F){"use strict";var M=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",T=P("pako"),y=P("./utils"),D=P("./stream/GenericWorker"),E=M?"uint8array":"array";function b(v,C){D.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=C,this.meta={}}F.magic="\b\0",y.inherits(b,D),b.prototype.processChunk=function(v){this.meta=v.meta,null===this._pako&&this._createPako(),this._pako.push(y.transformTo(E,v.data),!1)},b.prototype.flush=function(){D.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){D.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new T[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(C){v.push({data:C,meta:v.meta})}},F.compressWorker=function(v){return new b("Deflate",v)},F.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(P,Q,F){"use strict";function M(f,m){var g,w="";for(g=0;g>>=8;return w}function T(f,m,g,w,_,R){var V,z,I=f.file,L=f.compression,$=R!==E.utf8encode,oe=y.transformTo("string",R(I.name)),x=y.transformTo("string",E.utf8encode(I.name)),j=I.comment,J=y.transformTo("string",R(j)),N=y.transformTo("string",E.utf8encode(j)),U=x.length!==I.name.length,h=N.length!==j.length,X="",le="",G="",De=I.dir,re=I.date,Se={crc32:0,compressedSize:0,uncompressedSize:0};m&&!g||(Se.crc32=f.crc32,Se.compressedSize=f.compressedSize,Se.uncompressedSize=f.uncompressedSize);var K=0;m&&(K|=8),$||!U&&!h||(K|=2048);var ve,$t,Y=0,Ce=0;De&&(Y|=16),"UNIX"===_?(Ce=798,Y|=($t=ve=I.unixPermissions,ve||($t=De?16893:33204),(65535&$t)<<16)):(Ce=20,Y|=function(ve){return 63&(ve||0)}(I.dosPermissions)),V=re.getUTCHours(),V<<=6,V|=re.getUTCMinutes(),V<<=5,V|=re.getUTCSeconds()/2,z=re.getUTCFullYear()-1980,z<<=4,z|=re.getUTCMonth()+1,z<<=5,z|=re.getUTCDate(),U&&(le=M(1,1)+M(b(oe),4)+x,X+="up"+M(le.length,2)+le),h&&(G=M(1,1)+M(b(J),4)+N,X+="uc"+M(G.length,2)+G);var ye="";return ye+="\n\0",ye+=M(K,2),ye+=L.magic,ye+=M(V,2),ye+=M(z,2),ye+=M(Se.crc32,4),ye+=M(Se.compressedSize,4),ye+=M(Se.uncompressedSize,4),ye+=M(oe.length,2),ye+=M(X.length,2),{fileRecord:v.LOCAL_FILE_HEADER+ye+oe+X,dirRecord:v.CENTRAL_FILE_HEADER+M(Ce,2)+ye+M(J.length,2)+"\0\0\0\0"+M(Y,4)+M(w,4)+oe+X+J}}var y=P("../utils"),D=P("../stream/GenericWorker"),E=P("../utf8"),b=P("../crc32"),v=P("../signature");function C(f,m,g,w){D.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=g,this.encodeFileName=w,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}y.inherits(C,D),C.prototype.push=function(f){var m=f.meta.percent||0,g=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,D.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(m+100*(g-w-1))/g:100}}))},C.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var m=this.streamFiles&&!f.file.dir;if(m){var g=T(f,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},C.prototype.closedSource=function(f){this.accumulate=!1;var w,m=this.streamFiles&&!f.file.dir,g=T(f,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),m)this.push({data:(w=f,v.DATA_DESCRIPTOR+M(w.crc32,4)+M(w.compressedSize,4)+M(w.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},C.prototype.flush=function(){for(var f=this.bytesWritten,m=0;m=this.index;D--)E=(E<<8)+this.byteAt(D);return this.index+=y,E},readString:function(y){return M.transformTo("string",this.readData(y))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var y=this.readInt(4);return new Date(Date.UTC(1980+(y>>25&127),(y>>21&15)-1,y>>16&31,y>>11&31,y>>5&63,(31&y)<<1))}},Q.exports=T},{"../utils":32}],19:[function(P,Q,F){"use strict";var M=P("./Uint8ArrayReader");function T(y){M.call(this,y)}P("../utils").inherits(T,M),T.prototype.readData=function(y){this.checkOffset(y);var D=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,D},Q.exports=T},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(P,Q,F){"use strict";var M=P("./DataReader");function T(y){M.call(this,y)}P("../utils").inherits(T,M),T.prototype.byteAt=function(y){return this.data.charCodeAt(this.zero+y)},T.prototype.lastIndexOfSignature=function(y){return this.data.lastIndexOf(y)-this.zero},T.prototype.readAndCheckSignature=function(y){return y===this.readData(4)},T.prototype.readData=function(y){this.checkOffset(y);var D=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,D},Q.exports=T},{"../utils":32,"./DataReader":18}],21:[function(P,Q,F){"use strict";var M=P("./ArrayReader");function T(y){M.call(this,y)}P("../utils").inherits(T,M),T.prototype.readData=function(y){if(this.checkOffset(y),0===y)return new Uint8Array(0);var D=this.data.subarray(this.zero+this.index,this.zero+this.index+y);return this.index+=y,D},Q.exports=T},{"../utils":32,"./ArrayReader":17}],22:[function(P,Q,F){"use strict";var M=P("../utils"),T=P("../support"),y=P("./ArrayReader"),D=P("./StringReader"),E=P("./NodeBufferReader"),b=P("./Uint8ArrayReader");Q.exports=function(v){var C=M.getTypeOf(v);return M.checkSupport(C),"string"!==C||T.uint8array?"nodebuffer"===C?new E(v):T.uint8array?new b(M.transformTo("uint8array",v)):new y(M.transformTo("array",v)):new D(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(P,Q,F){"use strict";F.LOCAL_FILE_HEADER="PK\x03\x04",F.CENTRAL_FILE_HEADER="PK\x01\x02",F.CENTRAL_DIRECTORY_END="PK\x05\x06",F.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",F.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",F.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(P,Q,F){"use strict";var M=P("./GenericWorker"),T=P("../utils");function y(D){M.call(this,"ConvertWorker to "+D),this.destType=D}T.inherits(y,M),y.prototype.processChunk=function(D){this.push({data:T.transformTo(this.destType,D.data),meta:D.meta})},Q.exports=y},{"../utils":32,"./GenericWorker":28}],25:[function(P,Q,F){"use strict";var M=P("./GenericWorker"),T=P("../crc32");function y(){M.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}P("../utils").inherits(y,M),y.prototype.processChunk=function(D){this.streamInfo.crc32=T(D.data,this.streamInfo.crc32||0),this.push(D)},Q.exports=y},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(P,Q,F){"use strict";var M=P("../utils"),T=P("./GenericWorker");function y(D){T.call(this,"DataLengthProbe for "+D),this.propName=D,this.withStreamInfo(D,0)}M.inherits(y,T),y.prototype.processChunk=function(D){D&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+D.data.length),T.prototype.processChunk.call(this,D)},Q.exports=y},{"../utils":32,"./GenericWorker":28}],27:[function(P,Q,F){"use strict";var M=P("../utils"),T=P("./GenericWorker");function y(D){T.call(this,"DataWorker");var E=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,D.then(function(b){E.dataIsReady=!0,E.data=b,E.max=b&&b.length||0,E.type=M.getTypeOf(b),E.isPaused||E._tickAndRepeat()},function(b){E.error(b)})}M.inherits(y,T),y.prototype.cleanUp=function(){T.prototype.cleanUp.call(this),this.data=null},y.prototype.resume=function(){return!!T.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,M.delay(this._tickAndRepeat,[],this)),!0)},y.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(M.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},y.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var D=null,E=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":D=this.data.substring(this.index,E);break;case"uint8array":D=this.data.subarray(this.index,E);break;case"array":case"nodebuffer":D=this.data.slice(this.index,E)}return this.index=E,this.push({data:D,meta:{percent:this.max?this.index/this.max*100:0}})},Q.exports=y},{"../utils":32,"./GenericWorker":28}],28:[function(P,Q,F){"use strict";function M(T){this.name=T||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}M.prototype={push:function(T){this.emit("data",T)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(T){this.emit("error",T)}return!0},error:function(T){return!this.isFinished&&(this.isPaused?this.generatedError=T:(this.isFinished=!0,this.emit("error",T),this.previous&&this.previous.error(T),this.cleanUp()),!0)},on:function(T,y){return this._listeners[T].push(y),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(T,y){if(this._listeners[T])for(var D=0;D "+T:T}},Q.exports=M},{}],29:[function(P,Q,F){"use strict";var M=P("../utils"),T=P("./ConvertWorker"),y=P("./GenericWorker"),D=P("../base64"),E=P("../support"),b=P("../external"),v=null;if(E.nodestream)try{v=P("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(m,g,w){var _=g;switch(g){case"blob":case"arraybuffer":_="uint8array";break;case"base64":_="string"}try{this._internalType=_,this._outputType=g,this._mimeType=w,M.checkSupport(_),this._worker=m.pipe(new T(_)),m.lock()}catch(R){this._worker=new y("error"),this._worker.error(R)}}f.prototype={accumulate:function(m){return function C(m,g){return new b.Promise(function(w,_){var R=[],V=m._internalType,z=m._outputType,I=m._mimeType;m.on("data",function(L,$){R.push(L),g&&g($)}).on("error",function(L){R=[],_(L)}).on("end",function(){try{var L=function($,oe,x){switch($){case"blob":return M.newBlob(M.transformTo("arraybuffer",oe),x);case"base64":return D.encode(oe);default:return M.transformTo($,oe)}}(z,function($,oe){var x,j=0,J=null,N=0;for(x=0;x"u")F.blob=!1;else{var M=new ArrayBuffer(0);try{F.blob=0===new Blob([M],{type:"application/zip"}).size}catch{try{var T=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);T.append(M),F.blob=0===T.getBlob("application/zip").size}catch{F.blob=!1}}}try{F.nodestream=!!P("readable-stream").Readable}catch{F.nodestream=!1}},{"readable-stream":16}],31:[function(P,Q,F){"use strict";for(var M=P("./utils"),T=P("./support"),y=P("./nodejsUtils"),D=P("./stream/GenericWorker"),E=new Array(256),b=0;b<256;b++)E[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;function v(){D.call(this,"utf-8 decode"),this.leftOver=null}function C(){D.call(this,"utf-8 encode")}E[254]=E[254]=1,F.utf8encode=function(f){return T.nodebuffer?y.newBufferFrom(f,"utf-8"):function(m){var g,w,_,R,V,z=m.length,I=0;for(R=0;R>>6:(w<65536?g[V++]=224|w>>>12:(g[V++]=240|w>>>18,g[V++]=128|w>>>12&63),g[V++]=128|w>>>6&63),g[V++]=128|63&w);return g}(f)},F.utf8decode=function(f){return T.nodebuffer?M.transformTo("nodebuffer",f).toString("utf-8"):function(m){var g,w,_,R,V=m.length,z=new Array(2*V);for(g=w=0;g>10&1023,z[w++]=56320|1023&_)}return z.length!==w&&(z.subarray?z=z.subarray(0,w):z.length=w),M.applyFromCharCode(z)}(f=M.transformTo(T.uint8array?"uint8array":"array",f))},M.inherits(v,D),v.prototype.processChunk=function(f){var m=M.transformTo(T.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(T.uint8array){var g=m;(m=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),m.set(g,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var w=function(R,V){var z;for((V=V||R.length)>R.length&&(V=R.length),z=V-1;0<=z&&128==(192&R[z]);)z--;return z<0||0===z?V:z+E[R[z]]>V?z:V}(m),_=m;w!==m.length&&(T.uint8array?(_=m.subarray(0,w),this.leftOver=m.subarray(w,m.length)):(_=m.slice(0,w),this.leftOver=m.slice(w,m.length))),this.push({data:F.utf8decode(_),meta:f.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:F.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},F.Utf8DecodeWorker=v,M.inherits(C,D),C.prototype.processChunk=function(f){this.push({data:F.utf8encode(f.data),meta:f.meta})},F.Utf8EncodeWorker=C},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(P,Q,F){"use strict";var M=P("./support"),T=P("./base64"),y=P("./nodejsUtils"),D=P("./external");function E(g){return g}function b(g,w){for(var _=0;_>8;this.dir=!!(16&this.externalFileAttributes),0==f&&(this.dosPermissions=63&this.externalFileAttributes),3==f&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=M(this.extraFields[1].value);this.uncompressedSize===T.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===T.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===T.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===T.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var m,g,w,_=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<_;)m=f.readInt(2),g=f.readInt(2),w=f.readData(g),this.extraFields[m]={id:m,length:g,value:w};f.setIndex(_)},handleUTF8:function(){var f=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=E.utf8decode(this.fileName),this.fileCommentStr=E.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(null!==m)this.fileNameStr=m;else{var g=T.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var w=this.findExtraFieldUnicodeComment();if(null!==w)this.fileCommentStr=w;else{var _=T.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(_)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var m=M(f.value);return 1!==m.readInt(1)||D(this.fileName)!==m.readInt(4)?null:E.utf8decode(m.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var m=M(f.value);return 1!==m.readInt(1)||D(this.fileComment)!==m.readInt(4)?null:E.utf8decode(m.readData(f.length-5))}return null}},Q.exports=C},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(P,Q,F){"use strict";function M(m,g,w){this.name=m,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=g,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var T=P("./stream/StreamHelper"),y=P("./stream/DataWorker"),D=P("./utf8"),E=P("./compressedObject"),b=P("./stream/GenericWorker");M.prototype={internalStream:function(m){var g=null,w="string";try{if(!m)throw new Error("No output type specified.");var _="string"===(w=m.toLowerCase())||"text"===w;"binarystring"!==w&&"text"!==w||(w="string"),g=this._decompressWorker();var R=!this._dataBinary;R&&!_&&(g=g.pipe(new D.Utf8EncodeWorker)),!R&&_&&(g=g.pipe(new D.Utf8DecodeWorker))}catch(V){(g=new b("error")).error(V)}return new T(g,w,"")},async:function(m,g){return this.internalStream(m).accumulate(g)},nodeStream:function(m,g){return this.internalStream(m||"nodebuffer").toNodejsStream(g)},_compressWorker:function(m,g){if(this._data instanceof E&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new D.Utf8EncodeWorker)),E.createWorkerFrom(w,m,g)},_decompressWorker:function(){return this._data instanceof E?this._data.getContentWorker():this._data instanceof b?this._data:new y(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],C=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f>>6:(f<65536?C[w++]=224|f>>>12:(C[w++]=240|f>>>18,C[w++]=128|f>>>12&63),C[w++]=128|f>>>6&63),C[w++]=128|63&f);return C},F.buf2binstring=function(v){return b(v,v.length)},F.binstring2buf=function(v){for(var C=new M.Buf8(v.length),f=0,m=C.length;f>10&1023,R[m++]=56320|1023&g)}return b(R,m)},F.utf8border=function(v,C){var f;for((C=C||v.length)>v.length&&(C=v.length),f=C-1;0<=f&&128==(192&v[f]);)f--;return f<0||0===f?C:f+D[v[f]]>C?f:C}},{"./common":41}],43:[function(P,Q,F){"use strict";Q.exports=function(M,T,y,D){for(var E=65535&M,b=M>>>16&65535,v=0;0!==y;){for(y-=v=2e3>>1:T>>>1;y[D]=T}return y}();Q.exports=function(T,y,D,E){var b=M,v=E+D;T^=-1;for(var C=E;C>>8^b[255&(T^y[C])];return~T}},{}],46:[function(P,Q,F){"use strict";var M,T=P("../utils/common"),y=P("./trees"),D=P("./adler32"),E=P("./crc32"),b=P("./messages"),v=0,f=0,m=-2,_=2,R=8,z=286,I=30,L=19,$=2*z+1,oe=15,x=3,j=258,J=j+x+1,N=42,U=113;function De(p,se){return p.msg=b[se],se}function re(p){return(p<<1)-(4p.avail_out&&(q=p.avail_out),0!==q&&(T.arraySet(p.output,se.pending_buf,se.pending_out,q,p.next_out),p.next_out+=q,se.pending_out+=q,p.total_out+=q,p.avail_out-=q,se.pending-=q,0===se.pending&&(se.pending_out=0))}function Y(p,se){y._tr_flush_block(p,0<=p.block_start?p.block_start:-1,p.strstart-p.block_start,se),p.block_start=p.strstart,K(p.strm)}function Ce(p,se){p.pending_buf[p.pending++]=se}function ye(p,se){p.pending_buf[p.pending++]=se>>>8&255,p.pending_buf[p.pending++]=255&se}function ve(p,se){var q,k,A=p.max_chain_length,H=p.strstart,ie=p.prev_length,fe=p.nice_match,Z=p.strstart>p.w_size-J?p.strstart-(p.w_size-J):0,pe=p.window,we=p.w_mask,ge=p.prev,Me=p.strstart+j,tt=pe[H+ie-1],qe=pe[H+ie];p.prev_length>=p.good_match&&(A>>=2),fe>p.lookahead&&(fe=p.lookahead);do{if(pe[(q=se)+ie]===qe&&pe[q+ie-1]===tt&&pe[q]===pe[H]&&pe[++q]===pe[H+1]){H+=2,q++;do{}while(pe[++H]===pe[++q]&&pe[++H]===pe[++q]&&pe[++H]===pe[++q]&&pe[++H]===pe[++q]&&pe[++H]===pe[++q]&&pe[++H]===pe[++q]&&pe[++H]===pe[++q]&&pe[++H]===pe[++q]&&HZ&&0!=--A);return ie<=p.lookahead?ie:p.lookahead}function _t(p){var se,q,k,A,H,ie,fe,Z,pe,we,ge=p.w_size;do{if(A=p.window_size-p.lookahead-p.strstart,p.strstart>=ge+(ge-J)){for(T.arraySet(p.window,p.window,ge,ge,0),p.match_start-=ge,p.strstart-=ge,p.block_start-=ge,se=q=p.hash_size;k=p.head[--se],p.head[se]=ge<=k?k-ge:0,--q;);for(se=q=ge;k=p.prev[--se],p.prev[se]=ge<=k?k-ge:0,--q;);A+=ge}if(0===p.strm.avail_in)break;if(fe=p.window,Z=p.strstart+p.lookahead,we=void 0,(pe=A)<(we=(ie=p.strm).avail_in)&&(we=pe),q=0===we?0:(ie.avail_in-=we,T.arraySet(fe,ie.input,ie.next_in,we,Z),1===ie.state.wrap?ie.adler=D(ie.adler,fe,we,Z):2===ie.state.wrap&&(ie.adler=E(ie.adler,fe,we,Z)),ie.next_in+=we,ie.total_in+=we,we),p.lookahead+=q,p.lookahead+p.insert>=x)for(p.ins_h=p.window[H=p.strstart-p.insert],p.ins_h=(p.ins_h<=x&&(p.ins_h=(p.ins_h<=x)if(k=y._tr_tally(p,p.strstart-p.match_start,p.match_length-x),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=x){for(p.match_length--;p.strstart++,p.ins_h=(p.ins_h<=x&&(p.ins_h=(p.ins_h<=x&&p.match_length<=p.prev_length){for(A=p.strstart+p.lookahead-x,k=y._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-x),p.lookahead-=p.prev_length-1,p.prev_length-=2;++p.strstart<=A&&(p.ins_h=(p.ins_h<p.pending_buf_size-5&&(q=p.pending_buf_size-5);;){if(p.lookahead<=1){if(_t(p),0===p.lookahead&&se===v)return 1;if(0===p.lookahead)break}p.strstart+=p.lookahead,p.lookahead=0;var k=p.block_start+q;if((0===p.strstart||p.strstart>=k)&&(p.lookahead=p.strstart-k,p.strstart=k,Y(p,!1),0===p.strm.avail_out)||p.strstart-p.block_start>=p.w_size-J&&(Y(p,!1),0===p.strm.avail_out))return 1}return p.insert=0,4===se?(Y(p,!0),0===p.strm.avail_out?3:4):(p.strstart>p.block_start&&Y(p,!1),1)}),new Qe(4,4,8,4,$t),new Qe(4,5,16,8,$t),new Qe(4,6,32,32,$t),new Qe(4,4,16,16,We),new Qe(8,16,32,32,We),new Qe(8,16,128,128,We),new Qe(8,32,128,256,We),new Qe(32,128,258,1024,We),new Qe(32,258,258,4096,We)],F.deflateInit=function(p,se){return cn(p,se,R,15,8,0)},F.deflateInit2=cn,F.deflateReset=$n,F.deflateResetKeep=yt,F.deflateSetHeader=function(p,se){return p&&p.state?2!==p.state.wrap?m:(p.state.gzhead=se,f):m},F.deflate=function(p,se){var q,k,A,H;if(!p||!p.state||5>8&255),Ce(k,k.gzhead.time>>16&255),Ce(k,k.gzhead.time>>24&255),Ce(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Ce(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(Ce(k,255&k.gzhead.extra.length),Ce(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(p.adler=E(p.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(Ce(k,0),Ce(k,0),Ce(k,0),Ce(k,0),Ce(k,0),Ce(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Ce(k,3),k.status=U);else{var ie=R+(k.w_bits-8<<4)<<8;ie|=(2<=k.strategy||k.level<2?0:k.level<6?1:6===k.level?2:3)<<6,0!==k.strstart&&(ie|=32),ie+=31-ie%31,k.status=U,ye(k,ie),0!==k.strstart&&(ye(k,p.adler>>>16),ye(k,65535&p.adler)),p.adler=1}if(69===k.status)if(k.gzhead.extra){for(A=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),K(p),A=k.pending,k.pending!==k.pending_buf_size));)Ce(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(73===k.status)if(k.gzhead.name){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),K(p),A=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexA&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),0===H&&(k.gzindex=0,k.status=91)}else k.status=91;if(91===k.status)if(k.gzhead.comment){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),K(p),A=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexA&&(p.adler=E(p.adler,k.pending_buf,k.pending-A,A)),0===H&&(k.status=103)}else k.status=103;if(103===k.status&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&K(p),k.pending+2<=k.pending_buf_size&&(Ce(k,255&p.adler),Ce(k,p.adler>>8&255),p.adler=0,k.status=U)):k.status=U),0!==k.pending){if(K(p),0===p.avail_out)return k.last_flush=-1,f}else if(0===p.avail_in&&re(se)<=re(q)&&4!==se)return De(p,-5);if(666===k.status&&0!==p.avail_in)return De(p,-5);if(0!==p.avail_in||0!==k.lookahead||se!==v&&666!==k.status){var fe=2===k.strategy?function(Z,pe){for(var we;;){if(0===Z.lookahead&&(_t(Z),0===Z.lookahead)){if(pe===v)return 1;break}if(Z.match_length=0,we=y._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++,we&&(Y(Z,!1),0===Z.strm.avail_out))return 1}return Z.insert=0,4===pe?(Y(Z,!0),0===Z.strm.avail_out?3:4):Z.last_lit&&(Y(Z,!1),0===Z.strm.avail_out)?1:2}(k,se):3===k.strategy?function(Z,pe){for(var we,ge,Me,tt,qe=Z.window;;){if(Z.lookahead<=j){if(_t(Z),Z.lookahead<=j&&pe===v)return 1;if(0===Z.lookahead)break}if(Z.match_length=0,Z.lookahead>=x&&0Z.lookahead&&(Z.match_length=Z.lookahead)}if(Z.match_length>=x?(we=y._tr_tally(Z,1,Z.match_length-x),Z.lookahead-=Z.match_length,Z.strstart+=Z.match_length,Z.match_length=0):(we=y._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++),we&&(Y(Z,!1),0===Z.strm.avail_out))return 1}return Z.insert=0,4===pe?(Y(Z,!0),0===Z.strm.avail_out?3:4):Z.last_lit&&(Y(Z,!1),0===Z.strm.avail_out)?1:2}(k,se):M[k.level].func(k,se);if(3!==fe&&4!==fe||(k.status=666),1===fe||3===fe)return 0===p.avail_out&&(k.last_flush=-1),f;if(2===fe&&(1===se?y._tr_align(k):5!==se&&(y._tr_stored_block(k,0,0,!1),3===se&&(Se(k.head),0===k.lookahead&&(k.strstart=0,k.block_start=0,k.insert=0))),K(p),0===p.avail_out))return k.last_flush=-1,f}return 4!==se?f:k.wrap<=0?1:(2===k.wrap?(Ce(k,255&p.adler),Ce(k,p.adler>>8&255),Ce(k,p.adler>>16&255),Ce(k,p.adler>>24&255),Ce(k,255&p.total_in),Ce(k,p.total_in>>8&255),Ce(k,p.total_in>>16&255),Ce(k,p.total_in>>24&255)):(ye(k,p.adler>>>16),ye(k,65535&p.adler)),K(p),0=q.w_size&&(0===H&&(Se(q.head),q.strstart=0,q.block_start=0,q.insert=0),pe=new T.Buf8(q.w_size),T.arraySet(pe,se,we-q.w_size,q.w_size,0),se=pe,we=q.w_size),ie=p.avail_in,fe=p.next_in,Z=p.input,p.avail_in=we,p.next_in=0,p.input=se,_t(q);q.lookahead>=x;){for(k=q.strstart,A=q.lookahead-(x-1);q.ins_h=(q.ins_h<>>=x=oe>>>24,V-=x,0==(x=oe>>>16&255))X[b++]=65535&oe;else{if(!(16&x)){if(!(64&x)){oe=z[(65535&oe)+(R&(1<>>=x,V-=x),V<15&&(R+=h[D++]<>>=x=oe>>>24,V-=x,!(16&(x=oe>>>16&255))){if(!(64&x)){oe=I[(65535&oe)+(R&(1<>>=x,V-=x,(x=b-v)>3,R&=(1<<(V-=j<<3))-1,M.next_in=D,M.next_out=b,M.avail_in=D>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function R(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new M.Buf16(320),this.work=new M.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function V(N){var U;return N&&N.state?(N.total_in=N.total_out=(U=N.state).total=0,N.msg="",U.wrap&&(N.adler=1&U.wrap),U.mode=m,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new M.Buf32(g),U.distcode=U.distdyn=new M.Buf32(w),U.sane=1,U.back=-1,C):f}function z(N){var U;return N&&N.state?((U=N.state).wsize=0,U.whave=0,U.wnext=0,V(N)):f}function I(N,U){var h,X;return N&&N.state?(X=N.state,U<0?(h=0,U=-U):(h=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15=G.wsize?(M.arraySet(G.window,U,h-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(X<(le=G.wsize-G.wnext)&&(le=X),M.arraySet(G.window,U,h-X,le,G.wnext),(X-=le)?(M.arraySet(G.window,U,h-X,X,0),G.wnext=X,G.whave=G.wsize):(G.wnext+=le,G.wnext===G.wsize&&(G.wnext=0),G.whave>>8&255,h.check=y(h.check,H,2,0),Y=K=0,h.mode=2;break}if(h.flags=0,h.head&&(h.head.done=!1),!(1&h.wrap)||(((255&K)<<8)+(K>>8))%31){N.msg="incorrect header check",h.mode=30;break}if(8!=(15&K)){N.msg="unknown compression method",h.mode=30;break}if(Y-=4,p=8+(15&(K>>>=4)),0===h.wbits)h.wbits=p;else if(p>h.wbits){N.msg="invalid window size",h.mode=30;break}h.dmax=1<>8&1),512&h.flags&&(H[0]=255&K,H[1]=K>>>8&255,h.check=y(h.check,H,2,0)),Y=K=0,h.mode=3;case 3:for(;Y<32;){if(0===re)break e;re--,K+=X[G++]<>>8&255,H[2]=K>>>16&255,H[3]=K>>>24&255,h.check=y(h.check,H,4,0)),Y=K=0,h.mode=4;case 4:for(;Y<16;){if(0===re)break e;re--,K+=X[G++]<>8),512&h.flags&&(H[0]=255&K,H[1]=K>>>8&255,h.check=y(h.check,H,2,0)),Y=K=0,h.mode=5;case 5:if(1024&h.flags){for(;Y<16;){if(0===re)break e;re--,K+=X[G++]<>>8&255,h.check=y(h.check,H,2,0)),Y=K=0}else h.head&&(h.head.extra=null);h.mode=6;case 6:if(1024&h.flags&&(re<(ve=h.length)&&(ve=re),ve&&(h.head&&(p=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),M.arraySet(h.head.extra,X,G,ve,p)),512&h.flags&&(h.check=y(h.check,X,ve,G)),re-=ve,G+=ve,h.length-=ve),h.length))break e;h.length=0,h.mode=7;case 7:if(2048&h.flags){if(0===re)break e;for(ve=0;p=X[G+ve++],h.head&&p&&h.length<65536&&(h.head.name+=String.fromCharCode(p)),p&&ve>9&1,h.head.done=!0),N.adler=h.check=0,h.mode=12;break;case 10:for(;Y<32;){if(0===re)break e;re--,K+=X[G++]<>>=7&Y,Y-=7&Y,h.mode=27;break}for(;Y<3;){if(0===re)break e;re--,K+=X[G++]<>>=1)){case 0:h.mode=14;break;case 1:if(j(h),h.mode=20,6!==U)break;K>>>=2,Y-=2;break e;case 2:h.mode=17;break;case 3:N.msg="invalid block type",h.mode=30}K>>>=2,Y-=2;break;case 14:for(K>>>=7&Y,Y-=7&Y;Y<32;){if(0===re)break e;re--,K+=X[G++]<>>16^65535)){N.msg="invalid stored block lengths",h.mode=30;break}if(h.length=65535&K,Y=K=0,h.mode=15,6===U)break e;case 15:h.mode=16;case 16:if(ve=h.length){if(re>>=5)),Y-=5,h.ncode=4+(15&(K>>>=5)),K>>>=4,Y-=4,286>>=3,Y-=3}for(;h.have<19;)h.lens[ie[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,se=E(0,h.lens,0,19,h.lencode,0,h.work,q={bits:h.lenbits}),h.lenbits=q.bits,se){N.msg="invalid code lengths set",h.mode=30;break}h.have=0,h.mode=19;case 19:for(;h.have>>16&255,Tt=65535&A,!((We=A>>>24)<=Y);){if(0===re)break e;re--,K+=X[G++]<>>=We,Y-=We,h.lens[h.have++]=Tt;else{if(16===Tt){for(k=We+2;Y>>=We,Y-=We,0===h.have){N.msg="invalid bit length repeat",h.mode=30;break}p=h.lens[h.have-1],ve=3+(3&K),K>>>=2,Y-=2}else if(17===Tt){for(k=We+3;Y>>=We)),K>>>=3,Y-=3}else{for(k=We+7;Y>>=We)),K>>>=7,Y-=7}if(h.have+ve>h.nlen+h.ndist){N.msg="invalid bit length repeat",h.mode=30;break}for(;ve--;)h.lens[h.have++]=p}}if(30===h.mode)break;if(0===h.lens[256]){N.msg="invalid code -- missing end-of-block",h.mode=30;break}if(h.lenbits=9,se=E(1,h.lens,0,h.nlen,h.lencode,0,h.work,q={bits:h.lenbits}),h.lenbits=q.bits,se){N.msg="invalid literal/lengths set",h.mode=30;break}if(h.distbits=6,h.distcode=h.distdyn,se=E(2,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,q={bits:h.distbits}),h.distbits=q.bits,se){N.msg="invalid distances set",h.mode=30;break}if(h.mode=20,6===U)break e;case 20:h.mode=21;case 21:if(6<=re&&258<=Se){N.next_out=De,N.avail_out=Se,N.next_in=G,N.avail_in=re,h.hold=K,h.bits=Y,D(N,ye),De=N.next_out,le=N.output,Se=N.avail_out,G=N.next_in,X=N.input,re=N.avail_in,K=h.hold,Y=h.bits,12===h.mode&&(h.back=-1);break}for(h.back=0;Qe=(A=h.lencode[K&(1<>>16&255,Tt=65535&A,!((We=A>>>24)<=Y);){if(0===re)break e;re--,K+=X[G++]<>yt)])>>>16&255,Tt=65535&A,!(yt+(We=A>>>24)<=Y);){if(0===re)break e;re--,K+=X[G++]<>>=yt,Y-=yt,h.back+=yt}if(K>>>=We,Y-=We,h.back+=We,h.length=Tt,0===Qe){h.mode=26;break}if(32&Qe){h.back=-1,h.mode=12;break}if(64&Qe){N.msg="invalid literal/length code",h.mode=30;break}h.extra=15&Qe,h.mode=22;case 22:if(h.extra){for(k=h.extra;Y>>=h.extra,Y-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=23;case 23:for(;Qe=(A=h.distcode[K&(1<>>16&255,Tt=65535&A,!((We=A>>>24)<=Y);){if(0===re)break e;re--,K+=X[G++]<>yt)])>>>16&255,Tt=65535&A,!(yt+(We=A>>>24)<=Y);){if(0===re)break e;re--,K+=X[G++]<>>=yt,Y-=yt,h.back+=yt}if(K>>>=We,Y-=We,h.back+=We,64&Qe){N.msg="invalid distance code",h.mode=30;break}h.offset=Tt,h.extra=15&Qe,h.mode=24;case 24:if(h.extra){for(k=h.extra;Y>>=h.extra,Y-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){N.msg="invalid distance too far back",h.mode=30;break}h.mode=25;case 25:if(0===Se)break e;if(h.offset>(ve=ye-Se)){if((ve=h.offset-ve)>h.whave&&h.sane){N.msg="invalid distance too far back",h.mode=30;break}_t=ve>h.wnext?h.wsize-(ve-=h.wnext):h.wnext-ve,ve>h.length&&(ve=h.length),$t=h.window}else $t=le,_t=De-h.offset,ve=h.length;for(Se$?(x=_t[$t+w[U]],Y[Ce+w[U]]):(x=96,0),R=1<>De)+(V-=R)]=oe<<24|x<<16|j,0!==V;);for(R=1<>=1;if(0!==R?(K&=R-1,K+=R):K=0,U++,0==--ye[N]){if(N===X)break;N=v[C+w[U]]}if(le>>7)]}function Ce(A,H){A.pending_buf[A.pending++]=255&H,A.pending_buf[A.pending++]=H>>>8&255}function ye(A,H,ie){A.bi_valid>_-ie?(A.bi_buf|=H<>_-A.bi_valid,A.bi_valid+=ie-_):(A.bi_buf|=H<>>=1,ie<<=1,0<--H;);return ie>>>1}function $t(A,H,ie){var fe,Z,pe=new Array(w+1),we=0;for(fe=1;fe<=w;fe++)pe[fe]=we=we+ie[fe-1]<<1;for(Z=0;Z<=H;Z++){var ge=A[2*Z+1];0!==ge&&(A[2*Z]=_t(pe[ge]++,ge))}}function We(A){var H;for(H=0;H>1;1<=ie;ie--)yt(A,pe,ie);for(Z=Me;ie=A.heap[1],A.heap[1]=A.heap[A.heap_len--],yt(A,pe,1),fe=A.heap[1],A.heap[--A.heap_max]=ie,A.heap[--A.heap_max]=fe,pe[2*Z]=pe[2*ie]+pe[2*fe],A.depth[Z]=(A.depth[ie]>=A.depth[fe]?A.depth[ie]:A.depth[fe])+1,pe[2*ie+1]=pe[2*fe+1]=Z,A.heap[1]=Z++,yt(A,pe,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(qe,dn){var yi,fn,En,dt,$i,wi,Hn=dn.dyn_tree,Hi=dn.max_code,Rc=dn.stat_desc.static_tree,hs=dn.stat_desc.has_stree,zi=dn.stat_desc.extra_bits,Qa=dn.stat_desc.extra_base,Tr=dn.stat_desc.max_length,Gi=0;for(dt=0;dt<=w;dt++)qe.bl_count[dt]=0;for(Hn[2*qe.heap[qe.heap_max]+1]=0,yi=qe.heap_max+1;yi<573;yi++)Tr<(dt=Hn[2*Hn[2*(fn=qe.heap[yi])+1]+1]+1)&&(dt=Tr,Gi++),Hn[2*fn+1]=dt,Hi>=7;Z>>=1)if(1&tt&&0!==ge.dyn_ltree[2*Me])return 0;if(0!==ge.dyn_ltree[18]||0!==ge.dyn_ltree[20]||0!==ge.dyn_ltree[26])return 1;for(Me=32;Me>>3)<=(Z=A.opt_len+3+7>>>3)&&(Z=pe)):Z=pe=ie+5,ie+4<=Z&&-1!==H?k(A,H,ie,fe):4===A.strategy||pe===Z?(ye(A,2+(fe?1:0),3),$n(A,J,N)):(ye(A,4+(fe?1:0),3),function(ge,Me,tt,qe){var dn;for(ye(ge,Me-257,5),ye(ge,tt-1,5),ye(ge,qe-4,4),dn=0;dn>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&H,A.pending_buf[A.l_buf+A.last_lit]=255&ie,A.last_lit++,0===H?A.dyn_ltree[2*ie]++:(A.matches++,H--,A.dyn_ltree[2*(h[ie]+v+1)]++,A.dyn_dtree[2*Y(H)]++),A.last_lit===A.lit_bufsize-1},F._tr_align=function(A){var H;ye(A,2,3),ve(A,256,J),16===(H=A).bi_valid?(Ce(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):8<=H.bi_valid&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}},{"../utils/common":41}],53:[function(P,Q,F){"use strict";Q.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(P,Q,F){(function(M){!function(T,y){"use strict";if(!T.setImmediate){var D,E,b,v,C=1,f={},m=!1,g=T.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(T);w=w&&w.setTimeout?w:T,D="[object process]"==={}.toString.call(T.process)?function(z){process.nextTick(function(){R(z)})}:function(){if(T.postMessage&&!T.importScripts){var z=!0,I=T.onmessage;return T.onmessage=function(){z=!1},T.postMessage("","*"),T.onmessage=I,z}}()?(v="setImmediate$"+Math.random()+"$",T.addEventListener?T.addEventListener("message",V,!1):T.attachEvent("onmessage",V),function(z){T.postMessage(v+z,"*")}):T.MessageChannel?((b=new MessageChannel).port1.onmessage=function(z){R(z.data)},function(z){b.port2.postMessage(z)}):g&&"onreadystatechange"in g.createElement("script")?(E=g.documentElement,function(z){var I=g.createElement("script");I.onreadystatechange=function(){R(z),I.onreadystatechange=null,E.removeChild(I),I=null},E.appendChild(I)}):function(z){setTimeout(R,0,z)},w.setImmediate=function(z){"function"!=typeof z&&(z=new Function(""+z));for(var I=new Array(arguments.length-1),L=0;L"u"?void 0===M?this:M:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},617:(it,P)=>{"use strict";P.X=void 0;class F{constructor(){this.parts=[]}hasTablature(){return void 0!==this.tablature}hasMeasures(){return void 0!==this.measures}hasComment(){return void 0!==this.comment}}P.X=(()=>{class T{static parse(D){const E={attrs:{},sections:[],custom:{}};let b;const v=D.split("\n");for(const C of v)C.startsWith("@")?this.processAttribute(E,C):C.startsWith("!")?this.processCustomAttribute(E,C):C.startsWith("#")?b=this.processSection(E,C):this.processLyricsAndChords(E,b,C);return E}static processAttribute(D,E){const b=this.ATTRIBUTE_REGEX.exec(E);null!=b?.[1]&&(D.attrs[b[1]]=b[2])}static processCustomAttribute(D,E){const b=this.CUSTOM_ATTRIBUTE_REGEX.exec(E);null!=b?.[1]&&null!=b[2]&&(D.custom[b[1]]=b[2])}static processSection(D,E){const b=this.SECTION_REGEX.exec(E),v={name:"",lines:[]};return null!=b[1]&&(v.name=b[1],D.sections.push(v)),v}static processLyricsAndChords(D,E,b){if(""!==b){void 0===E&&D.sections.push(E={name:"",lines:[]});const v=this.buildLine(b);E.lines.push(v)}}static buildLine(D){const E=new F;if(D.startsWith("|-"))E.tablature=D;else if(D.startsWith("| "))E.measures=this.getMeasures(D);else if(D.startsWith(">"))E.comment=this.getComment(D);else{const b=this.scan(D,this.CHORDS_AND_LYRICS_REGEX),v=this.chunk(b,2);for(const C of v){const f=this.getPart(C[0],C[1]);""===f.chord&&""===f.lyric||E.parts.push(f)}}return E}static getMeasures(D){const E=this.scan(D,this.MEASURES_REGEX),b=[];for(const v of E){let C=[];void 0!==v&&(C=this.scan(v,this.CHORDS_REGEX));const f={chords:[]};f.chords=C,b.push(f)}return b}static getComment(D){return this.COMMENT_REGEX.exec(D)[1].trim()}static getPart(D,E){let b,v="";return null!=E&&(v=E),void 0!==D&&(b=D.replace("[","").replace("]","")),void 0===b&&(b=""),{chord:b.trim(),lyric:v.trim()}}static chunk(D,E,b=[]){const v=[...D];for(;v.length;)b.push(v.splice(0,E));return b}static scan(D,E){return[...D.matchAll(E)].flatMap(b=>b.slice(1))}}return T.SECTION_REGEX=/#\s*([^$]*)/,T.ATTRIBUTE_REGEX=/@(\w*)=([^%]*)/,T.CUSTOM_ATTRIBUTE_REGEX=/!(\w*)=([^%]*)/,T.CHORDS_AND_LYRICS_REGEX=/(\[[\w#b/]+])?([\w\s',.!()_\-"]*)/gi,T.MEASURES_REGEX=/([[\w#b/\]+\]\s]+)[|]*/gi,T.CHORDS_REGEX=/\[([\w#b+/]+)]?/gi,T.COMMENT_REGEX=/>\s*([^$]*)/,T})()},140:it=>{const P=/^[-+]?0x[a-fA-F0-9]+$/,Q=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const F={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};it.exports=function M(y,D={}){if(D=Object.assign({},F,D),!y||"string"!=typeof y)return y;let E=y.trim();if(void 0!==D.skipLike&&D.skipLike.test(E))return y;if(D.hex&&P.test(E))return Number.parseInt(E,16);{const b=Q.exec(E);if(b){const v=b[1],C=b[2];let f=function T(y){return y&&-1!==y.indexOf(".")&&("."===(y=y.replace(/0+$/,""))?y="0":"."===y[0]?y="0"+y:"."===y[y.length-1]&&(y=y.substr(0,y.length-1))),y}(b[3]);const m=b[4]||b[6];if(!D.leadingZeros&&C.length>0&&v&&"."!==E[2])return y;if(!D.leadingZeros&&C.length>0&&!v&&"."!==E[1])return y;{const g=Number(E),w=""+g;return-1!==w.search(/[eE]/)||m?D.eNotation?g:y:-1!==E.indexOf(".")?"0"===w&&""===f||w===f||v&&w==="-"+f?g:y:C?f===w||v+f===w?g:y:E===w||E===v+w?g:y}}return y}}}},it=>{it(it.s=377)}]); \ No newline at end of file diff --git a/polyfills.ab27f2a3a43d7a63.js b/polyfills.31679bdf4dceaf28.js similarity index 99% rename from polyfills.ab27f2a3a43d7a63.js rename to polyfills.31679bdf4dceaf28.js index 618f231..f4c6c1d 100644 --- a/polyfills.ab27f2a3a43d7a63.js +++ b/polyfills.31679bdf4dceaf28.js @@ -1 +1 @@ -"use strict";(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[260],{728:()=>{!function(t){const n=t.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,T){n&&n.measure&&n.measure(M,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(y||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class M{static#e=this.__symbol__=a;static assertZonePatched(){if(t.Promise!==se.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=M.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return oe}static __load_patch(e,r,k=!1){if(se.hasOwnProperty(e)){if(!k&&y)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),se[e]=r(t,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===P))return;const C=e.state!=E;C&&e._transitionTo(E,j),e.runCount++;const $=oe;oe=e,U={parent:U,zone:this};try{e.type==P&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(j,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,oe=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(j,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new p(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new p(P,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new p(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===j||e.state===E){e._transitionTo(G,j,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CM.hasTask(e,r),onScheduleTask:(M,T,e,r)=>M.scheduleTask(e,r),onInvokeTask:(M,T,e,r,k,C)=>M.invokeTask(e,r,k,C),onCancelTask:(M,T,e,r)=>M.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const u=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(t,u,this,arguments)}}static invokeTask(T,e,r){T||(T=this),te++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==te&&_(),te--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(M){if(K||t[O]&&(K=t[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,M)}else t[L](M,0)}function R(M){0===te&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},oe=null,te=0;function W(){}o("Zone","Zone"),t.Zone=d}(globalThis);const fe=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,be=Object.getPrototypeOf,De=Object.create,ct=Array.prototype.slice,Ze="addEventListener",Oe="removeEventListener",Ne=Zone.__symbol__(Ze),Ie=Zone.__symbol__(Oe),ce="true",ae="false",me=Zone.__symbol__("");function Le(t,n){return Zone.current.wrap(t,n)}function Me(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",_e=Pe?window:void 0,Y=Pe&&_e||globalThis,at="removeAttribute";function je(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Le(t[i],n+"_"+i));return t}function Fe(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Be&&!(!Pe||!_e.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!_e.HTMLElement),Re={},We=function(t){if(!(t=t||Y.event))return;let n=Re[t.type];n||(n=Re[t.type]=A("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function qe(t,n,i){let o=fe(t,n);if(!o&&i&&fe(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Re[d];b||(b=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&t===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,We),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v[at]&&v.removeAttribute(n),L}return null},pe(t,n,o),t[c]=!0}function Xe(t,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function ue(t,n){t[A("OriginalDelegate")]=n}let ze=!1,He=!1;function ht(){if(ze)return He;ze=!0;try{const t=_e.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(He=!0)}catch{}return He}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!1!==t[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),L="__creationTrace__";i.onUnhandledError=u=>{if(i.showUncaughtError()){const l=u&&u.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(u)}},i.microtaskDrainDone=()=>{for(;d.length;){const u=d.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(l){N(l)}}};const O=y("unhandledPromiseRejectionHandler");function N(u){i.onUnhandledError(u);try{const l=n[O];"function"==typeof l&&l.call(this,u)}catch{}}function B(u){return u&&u.then}function H(u){return u}function K(u){return e.reject(u)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",j=null,E=!0,G=!1,h=0;function I(u,l){return s=>{try{z(u,l,s)}catch(f){z(u,!1,f)}}}const P=function(){let u=!1;return function(s){return function(){u||(u=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",se=y("currentTaskTrace");function z(u,l,s){const f=P();if(u===s)throw new TypeError(Q);if(u[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(u,!1,w)})(),u}if(l!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)oe(s),z(u,s[q],s[R]);else if(l!==G&&"function"==typeof g)try{g.call(s,f(I(u,l)),f(I(u,!1)))}catch(w){f(()=>{z(u,!1,w)})()}else{u[q]=l;const w=u[R];if(u[R]=s,u[_]===_&&l===E&&(u[q]=u[x],u[R]=u[J]),l===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[L];m&&c(s,se,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const S=u[R],D=!!s&&_===s[_];D&&(s[J]=S,s[x]=w);const Z=l.run(m,void 0,D&&m!==K&&m!==H?[]:[S]);z(s,!0,Z)}catch(S){z(s,!1,S)}},s)}const M=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(l){return l instanceof e?l:z(new this(null),E,l)}static reject(l){return z(new this(null),G,l)}static withResolvers(){const l={};return l.promise=new e((s,f)=>{l.resolve=s,l.reject=f}),l}static any(l){if(!l||"function"!=typeof l[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of l)f++,s.push(e.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new e((m,S)=>{for(let D=0;D{g||(g=!0,m(Z))},Z=>{w.push(Z),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(l){let s,f,g=new this((S,D)=>{s=S,f=D});function w(S){s(S)}function m(S){f(S)}for(let S of l)B(S)||(S=this.resolve(S)),S.then(w,m);return g}static all(l){return e.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof e?this:e).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,s){let f,g,w=new this((Z,V)=>{f=Z,g=V}),m=2,S=0;const D=[];for(let Z of l){B(Z)||(Z=this.resolve(Z));const V=S;try{Z.then(F=>{D[V]=s?s.thenCallback(F):F,m--,0===m&&f(D)},F=>{s?(D[V]=s.errorCallback(F),m--,0===m&&f(D)):g(F)})}catch(F){g(F)}m++,S++}return m-=2,0===m&&f(D),w}constructor(l){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=P();l&&l(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(l,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||e);const g=new f(M),w=n.current;return this[q]==j?this[R].push(w,g,l,s):te(this,w,g,l,s),g}catch(l){return this.then(null,l)}finally(l){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=e);const f=new s(M);f[_]=_;const g=n.current;return this[q]==j?this[R].push(g,f,l,l):te(this,g,f,l,l),f}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=y("thenPatched");function C(u){const l=u.prototype,s=o(l,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=l.then;l[p]=f,u.prototype.then=function(g,w){return new e((S,D)=>{f.call(this,S,D)}).then(g,w)},u[k]=!0}return i.patchThen=C,r&&(C(r),le(t,"fetch",u=>function $(u){return function(l,s){let f=u.apply(l,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=t[o];if(p)return n.call(p)}if(this===Error){const p=t[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}const dt={useG:!0},ne={},Ye={},$e=new RegExp("^"+me+"(\\w+)(true|false)$"),Je=A("propagationStopped");function Ke(t,n){const i=(n?n(t):t)+ae,o=(n?n(t):t)+ce,c=me+i,a=me+o;ne[t]={},ne[t][ae]=c,ne[t][ce]=a}function _t(t,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||Oe,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=A(c),v="."+c+":",p="prependListener",L="."+p+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,J){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[ne[_.type][J?ce:ae]];if(X){const j=[];if(1===X.length){const E=O(X[0],x,_);E&&j.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=be(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[A(a)]=E[a],Q=E[A(y)]=E[y],se=E[A(d)]=E[d];let z;_&&_.prepend&&(z=E[A(_.prepend)]=E[_.prepend]);const e=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=ne[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const w=g&&s.target[g];if(w)for(let m=0;m{ie.zone.cancelTask(ie)},{once:!0})),h.target=null,ve&&(ve.taskData=null),nt&&(ee.once=!0),!Ee&&"boolean"==typeof ie.options||(ie.options=ee),ie.target=D,ie.capture=Ge,ie.eventName=Z,F&&(ie.originalDelegate=V),S?ye.unshift(ie):ye.push(ie),m?D:void 0}};return E[c]=l(I,v,e,r,j),z&&(E[p]=l(z,L,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),E[a]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],w=!!g&&("boolean"==typeof g||g.capture),m=arguments[1];if(!m)return P.apply(this,arguments);if(x&&!x(P,m,s,arguments))return;const S=ne[f];let D;S&&(D=S[w?ce:ae]);const Z=D&&s[D];if(Z)for(let V=0;Vfunction(c,a){c[Je]=!0,o&&o.apply(c,a)})}function Tt(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const L=`${i}.${o}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){const N=t.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,L),t._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=t.wrapWithCurrentZone(O[p],L))}else O[p]&&(O[p]=t.wrapWithCurrentZone(O[p],L))}catch{}}),y.call(n,d,b,v)},t.attachOriginToPatched(n[o],y)}function et(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(t,n,i,o){t&&Xe(t,et(t,n,i),o)}function xe(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=xe(t);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=je,i.patchMacroTask=ut;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=Et,i.patchEventTarget=_t,i.isIEOrEdge=ht,i.ObjectDefineProperty=pe,i.ObjectGetOwnPropertyDescriptor=fe,i.ObjectCreate=De,i.ArraySlice=ct,i.patchClass=ge,i.wrapWithCurrentZone=Le,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Tt,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:ne,eventNames:o,isBrowser:Ae,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:Oe})});const Ce=A("zoneTask");function Te(t,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(t,p.args),v}function b(v){return a.call(t,v.data.handleId)}c=le(t,n+=o,v=>function(p,L){if("function"==typeof L[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Ce]=null))}};const B=Me(n,L[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,L)}),a=le(t,i,v=>function(p,L){const O=L[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Ce],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Ce]=null),N.zone.cancelTask(N)):v.apply(t,L)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",t=>{const n="set",i="clear";Te(t,n,i,"Timeout"),Te(t,n,i,"Interval"),Te(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Te(t,"request","cancel","AnimationFrame"),Te(t,"mozRequest","mozCancel","AnimationFrame"),Te(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function kt(t,n){n.patchEventPrototype(t,n)})(t,i),function gt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function yt(t,n){if(we&&!Ue||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ft(){try{const t=_e.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,xe(c),i&&i.concat(a),be(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function mt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const L=p.prototype;let N=L[Ne],B=L[Ie];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ne],B=I[Ie]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Ne],B=P[Ie]),Q&&B.call(P,H,Q);const se=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===K){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const oe=h.invoke;h.invoke=function(){const te=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),E=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const P=function O(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function lt(t,n){const i=t.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,je(arguments,i+"."+c))};return ue(b,d),b})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Qe(t,o).forEach(y=>{const d=t.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}t.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{!function pt(t,n){n.patchMethod(t,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(t,i)})}},fe=>{fe(fe.s=728)}]); \ No newline at end of file +"use strict";(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[461],{935:()=>{!function(t){const n=t.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,T){n&&n.measure&&n.measure(M,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(y||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class M{static#e=this.__symbol__=a;static assertZonePatched(){if(t.Promise!==se.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=M.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return oe}static __load_patch(e,r,k=!1){if(se.hasOwnProperty(e)){if(!k&&y)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),se[e]=r(t,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===P))return;const C=e.state!=E;C&&e._transitionTo(E,j),e.runCount++;const $=oe;oe=e,U={parent:U,zone:this};try{e.type==P&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(j,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,oe=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(j,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new p(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new p(P,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new p(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===j||e.state===E){e._transitionTo(G,j,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CM.hasTask(e,r),onScheduleTask:(M,T,e,r)=>M.scheduleTask(e,r),onInvokeTask:(M,T,e,r,k,C)=>M.invokeTask(e,r,k,C),onCancelTask:(M,T,e,r)=>M.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const u=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(t,u,this,arguments)}}static invokeTask(T,e,r){T||(T=this),te++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==te&&_(),te--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(M){if(K||t[O]&&(K=t[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,M)}else t[L](M,0)}function R(M){0===te&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},oe=null,te=0;function W(){}o("Zone","Zone"),t.Zone=d}(globalThis);const fe=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,be=Object.getPrototypeOf,De=Object.create,ct=Array.prototype.slice,Ze="addEventListener",Oe="removeEventListener",Ne=Zone.__symbol__(Ze),Ie=Zone.__symbol__(Oe),ce="true",ae="false",me=Zone.__symbol__("");function Le(t,n){return Zone.current.wrap(t,n)}function Me(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",_e=Pe?window:void 0,Y=Pe&&_e||globalThis,at="removeAttribute";function je(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Le(t[i],n+"_"+i));return t}function Fe(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Be&&!(!Pe||!_e.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!_e.HTMLElement),Re={},We=function(t){if(!(t=t||Y.event))return;let n=Re[t.type];n||(n=Re[t.type]=A("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function qe(t,n,i){let o=fe(t,n);if(!o&&i&&fe(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Re[d];b||(b=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&t===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,We),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v[at]&&v.removeAttribute(n),L}return null},pe(t,n,o),t[c]=!0}function Xe(t,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function ue(t,n){t[A("OriginalDelegate")]=n}let ze=!1,He=!1;function ht(){if(ze)return He;ze=!0;try{const t=_e.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(He=!0)}catch{}return He}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!1!==t[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),L="__creationTrace__";i.onUnhandledError=u=>{if(i.showUncaughtError()){const l=u&&u.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(u)}},i.microtaskDrainDone=()=>{for(;d.length;){const u=d.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(l){N(l)}}};const O=y("unhandledPromiseRejectionHandler");function N(u){i.onUnhandledError(u);try{const l=n[O];"function"==typeof l&&l.call(this,u)}catch{}}function B(u){return u&&u.then}function H(u){return u}function K(u){return e.reject(u)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",j=null,E=!0,G=!1,h=0;function I(u,l){return s=>{try{z(u,l,s)}catch(f){z(u,!1,f)}}}const P=function(){let u=!1;return function(s){return function(){u||(u=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",se=y("currentTaskTrace");function z(u,l,s){const f=P();if(u===s)throw new TypeError(Q);if(u[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(u,!1,w)})(),u}if(l!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)oe(s),z(u,s[q],s[R]);else if(l!==G&&"function"==typeof g)try{g.call(s,f(I(u,l)),f(I(u,!1)))}catch(w){f(()=>{z(u,!1,w)})()}else{u[q]=l;const w=u[R];if(u[R]=s,u[_]===_&&l===E&&(u[q]=u[x],u[R]=u[J]),l===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[L];m&&c(s,se,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const S=u[R],D=!!s&&_===s[_];D&&(s[J]=S,s[x]=w);const Z=l.run(m,void 0,D&&m!==K&&m!==H?[]:[S]);z(s,!0,Z)}catch(S){z(s,!1,S)}},s)}const M=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(l){return l instanceof e?l:z(new this(null),E,l)}static reject(l){return z(new this(null),G,l)}static withResolvers(){const l={};return l.promise=new e((s,f)=>{l.resolve=s,l.reject=f}),l}static any(l){if(!l||"function"!=typeof l[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of l)f++,s.push(e.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new e((m,S)=>{for(let D=0;D{g||(g=!0,m(Z))},Z=>{w.push(Z),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(l){let s,f,g=new this((S,D)=>{s=S,f=D});function w(S){s(S)}function m(S){f(S)}for(let S of l)B(S)||(S=this.resolve(S)),S.then(w,m);return g}static all(l){return e.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof e?this:e).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,s){let f,g,w=new this((Z,V)=>{f=Z,g=V}),m=2,S=0;const D=[];for(let Z of l){B(Z)||(Z=this.resolve(Z));const V=S;try{Z.then(F=>{D[V]=s?s.thenCallback(F):F,m--,0===m&&f(D)},F=>{s?(D[V]=s.errorCallback(F),m--,0===m&&f(D)):g(F)})}catch(F){g(F)}m++,S++}return m-=2,0===m&&f(D),w}constructor(l){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=P();l&&l(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(l,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||e);const g=new f(M),w=n.current;return this[q]==j?this[R].push(w,g,l,s):te(this,w,g,l,s),g}catch(l){return this.then(null,l)}finally(l){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=e);const f=new s(M);f[_]=_;const g=n.current;return this[q]==j?this[R].push(g,f,l,l):te(this,g,f,l,l),f}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=y("thenPatched");function C(u){const l=u.prototype,s=o(l,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=l.then;l[p]=f,u.prototype.then=function(g,w){return new e((S,D)=>{f.call(this,S,D)}).then(g,w)},u[k]=!0}return i.patchThen=C,r&&(C(r),le(t,"fetch",u=>function $(u){return function(l,s){let f=u.apply(l,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=t[o];if(p)return n.call(p)}if(this===Error){const p=t[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}const dt={useG:!0},ne={},Ye={},$e=new RegExp("^"+me+"(\\w+)(true|false)$"),Je=A("propagationStopped");function Ke(t,n){const i=(n?n(t):t)+ae,o=(n?n(t):t)+ce,c=me+i,a=me+o;ne[t]={},ne[t][ae]=c,ne[t][ce]=a}function _t(t,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||Oe,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=A(c),v="."+c+":",p="prependListener",L="."+p+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,J){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[ne[_.type][J?ce:ae]];if(X){const j=[];if(1===X.length){const E=O(X[0],x,_);E&&j.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=be(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[A(a)]=E[a],Q=E[A(y)]=E[y],se=E[A(d)]=E[d];let z;_&&_.prepend&&(z=E[A(_.prepend)]=E[_.prepend]);const e=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=ne[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const w=g&&s.target[g];if(w)for(let m=0;m{ie.zone.cancelTask(ie)},{once:!0})),h.target=null,ve&&(ve.taskData=null),nt&&(ee.once=!0),!Ee&&"boolean"==typeof ie.options||(ie.options=ee),ie.target=D,ie.capture=Ge,ie.eventName=Z,F&&(ie.originalDelegate=V),S?ye.unshift(ie):ye.push(ie),m?D:void 0}};return E[c]=l(I,v,e,r,j),z&&(E[p]=l(z,L,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),E[a]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],w=!!g&&("boolean"==typeof g||g.capture),m=arguments[1];if(!m)return P.apply(this,arguments);if(x&&!x(P,m,s,arguments))return;const S=ne[f];let D;S&&(D=S[w?ce:ae]);const Z=D&&s[D];if(Z)for(let V=0;Vfunction(c,a){c[Je]=!0,o&&o.apply(c,a)})}function Tt(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const L=`${i}.${o}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){const N=t.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,L),t._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=t.wrapWithCurrentZone(O[p],L))}else O[p]&&(O[p]=t.wrapWithCurrentZone(O[p],L))}catch{}}),y.call(n,d,b,v)},t.attachOriginToPatched(n[o],y)}function et(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(t,n,i,o){t&&Xe(t,et(t,n,i),o)}function xe(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=xe(t);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=je,i.patchMacroTask=ut;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=Et,i.patchEventTarget=_t,i.isIEOrEdge=ht,i.ObjectDefineProperty=pe,i.ObjectGetOwnPropertyDescriptor=fe,i.ObjectCreate=De,i.ArraySlice=ct,i.patchClass=ge,i.wrapWithCurrentZone=Le,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Tt,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:ne,eventNames:o,isBrowser:Ae,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:Oe})});const Ce=A("zoneTask");function Te(t,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(t,p.args),v}function b(v){return a.call(t,v.data.handleId)}c=le(t,n+=o,v=>function(p,L){if("function"==typeof L[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Ce]=null))}};const B=Me(n,L[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,L)}),a=le(t,i,v=>function(p,L){const O=L[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Ce],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Ce]=null),N.zone.cancelTask(N)):v.apply(t,L)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",t=>{const n="set",i="clear";Te(t,n,i,"Timeout"),Te(t,n,i,"Interval"),Te(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Te(t,"request","cancel","AnimationFrame"),Te(t,"mozRequest","mozCancel","AnimationFrame"),Te(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function kt(t,n){n.patchEventPrototype(t,n)})(t,i),function gt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function yt(t,n){if(we&&!Ue||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ft(){try{const t=_e.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,xe(c),i&&i.concat(a),be(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function mt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const L=p.prototype;let N=L[Ne],B=L[Ie];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ne],B=I[Ie]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Ne],B=P[Ie]),Q&&B.call(P,H,Q);const se=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===K){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const oe=h.invoke;h.invoke=function(){const te=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),E=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const P=function O(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function lt(t,n){const i=t.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,je(arguments,i+"."+c))};return ue(b,d),b})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Qe(t,o).forEach(y=>{const d=t.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}t.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{!function pt(t,n){n.patchMethod(t,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(t,i)})}},fe=>{fe(fe.s=935)}]); \ No newline at end of file diff --git a/runtime.df470991e38aa025.js b/runtime.c9d1078716570054.js similarity index 93% rename from runtime.df470991e38aa025.js rename to runtime.c9d1078716570054.js index cbdc464..0b41186 100644 --- a/runtime.df470991e38aa025.js +++ b/runtime.c9d1078716570054.js @@ -1 +1 @@ -(()=>{"use strict";var e,i={},p={};function a(e){var o=p[e];if(void 0!==o)return o.exports;var r=p[e]={exports:{}};return i[e].call(r.exports,r,r.exports,a),r.exports}a.m=i,e=[],a.O=(o,r,c,l)=>{if(!r){var t=1/0;for(n=0;n=l)&&Object.keys(a.O).every(h=>a.O[h](r[f]))?r.splice(f--,1):(u=!1,l0&&e[n-1][2]>l;n--)e[n]=e[n-1];e[n]=[r,c,l]},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={688:0};a.O.j=c=>0===e[c];var o=(c,l)=>{var f,s,[n,t,u]=l,v=0;if(n.some(d=>0!==e[d])){for(f in t)a.o(t,f)&&(a.m[f]=t[f]);if(u)var _=u(a)}for(c&&c(l);v{"use strict";var e,i={},p={};function a(e){var o=p[e];if(void 0!==o)return o.exports;var r=p[e]={exports:{}};return i[e].call(r.exports,r,r.exports,a),r.exports}a.m=i,e=[],a.O=(o,r,c,l)=>{if(!r){var t=1/0;for(n=0;n=l)&&Object.keys(a.O).every(h=>a.O[h](r[f]))?r.splice(f--,1):(u=!1,l0&&e[n-1][2]>l;n--)e[n]=e[n-1];e[n]=[r,c,l]},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={121:0};a.O.j=c=>0===e[c];var o=(c,l)=>{var f,s,[n,t,u]=l,v=0;if(n.some(d=>0!==e[d])){for(f in t)a.o(t,f)&&(a.m[f]=t[f]);if(u)var _=u(a)}for(c&&c(l);v