diff --git a/about/index.html b/about/index.html index 8b5185b..d82d5a0 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 bfb8d04..26762d0 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 33c1e58..3ed1f4a 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 23e6861..db2a399 100644 --- a/index.original.html +++ b/index.original.html @@ -16,8 +16,8 @@ - + - + diff --git a/main.1c476083a732fedd.js b/main.1c476083a732fedd.js deleted file mode 100644 index a0936d8..0000000 --- a/main.1c476083a732fedd.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[179],{99:(rt,F,Y)=>{"use strict";function O(e){return"function"==typeof e}function x(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 I=x(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 v(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class b{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(O(r))try{r()}catch(o){t=o instanceof I?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{y(o)}catch(s){t=t??[],s instanceof I?t=[...t,...s.errors]:t.push(s)}}if(t)throw new I(t)}}add(t){var n;if(t&&t!==this)if(this.closed)y(t);else{if(t instanceof b){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)&&v(n,t)}remove(t){const{_finalizers:n}=this;n&&v(n,t),t instanceof b&&t._removeParent(this)}}b.EMPTY=(()=>{const e=new b;return e.closed=!0,e})();const E=b.EMPTY;function D(e){return e instanceof b||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function y(e){O(e)?e():e.unsubscribe()}const _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},d={setTimeout(e,t,...n){const{delegate:r}=d;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=d;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function m(e){d.setTimeout(()=>{const{onUnhandledError:t}=_;if(!t)throw e;t(e)})}function g(){}const w=L("C",void 0,void 0);function L(e,t,n){return{kind:e,value:t,error:n}}let U=null;function S(e){if(_.useDeprecatedSynchronousErrorHandling){const t=!U;if(t&&(U={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=U;if(U=null,n)throw r}}else e()}class $ extends b{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,D(t)&&t.add(this)):this.destination=Z}static create(t,n,r){return new K(t,n,r)}next(t){this.isStopped?f(function P(e){return L("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?f(function C(e){return L("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?f(w,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 ne=Function.prototype.bind;function R(e,t){return ne.call(e,t)}class j{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){T(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){T(r)}else T(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){T(n)}}}class K extends ${constructor(t,n,r){let i;if(super(),O(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&_.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&R(t.next,o),error:t.error&&R(t.error,o),complete:t.complete&&R(t.complete,o)}):i=t}this.destination=new j(i)}}function T(e){_.useDeprecatedSynchronousErrorHandling?function V(e){_.useDeprecatedSynchronousErrorHandling&&U&&(U.errorThrown=!0,U.error=e)}(e):m(e)}function f(e,t){const{onStoppedNotification:n}=_;n&&d.setTimeout(()=>n(e,t))}const Z={closed:!0,next:g,error:function B(e){throw e},complete:g},oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function G(e){return e}function re(e){return 0===e.length?G:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}let _e=(()=>{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 Se(e){return e&&e instanceof $||function W(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}(e)&&D(e)}(n)?n:new K(n,r,i);return S(()=>{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=X(r))((i,o)=>{const s=new K({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)}[oe](){return this}pipe(...n){return re(n)(this)}toPromise(n){return new(n=X(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function X(e){var t;return null!==(t=e??_.Promise)&&void 0!==t?t:Promise}const we=x(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fe=(()=>{class e extends _e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new ht(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new we}next(n){S(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){S(()=>{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(){S(()=>{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?E:(this.currentObservers=null,o.push(n),new b(()=>{this.currentObservers=null,v(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new _e;return n.source=this,n}}return e.create=(t,n)=>new ht(t,n),e})();class ht extends fe{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:E}}function It(e){return O(e?.lift)}function Ie(e){return t=>{if(It(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 Te(e,t,n,r,i){return new Dt(e,t,n,r,i)}class Dt extends ${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 Re(e,t){return Ie((n,r)=>{let i=0;n.subscribe(Te(r,o=>{r.next(e.call(t,o,i++))}))})}function nn(e){return this instanceof nn?(this.v=e,this):new nn(e)}function pi(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 tt(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 Hh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function zh(e){return O(e?.then)}function Gh(e){return O(e[oe])}function Wh(e){return Symbol.asyncIterator&&O(e?.[Symbol.asyncIterator])}function qh(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 Zh=function MC(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Yh(e){return O(e?.[Zh])}function Xh(e){return function pt(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(A){r[A]&&(i[A]=function(N){return new Promise(function(z,Q){o.push([A,N,z,Q])>1||a(A,N)})})}function a(A,N){try{!function l(A){A.value instanceof nn?Promise.resolve(A.value.v).then(u,c):p(o[0][2],A)}(r[A](N))}catch(z){p(o[0][3],z)}}function u(A){a("next",A)}function c(A){a("throw",A)}function p(A,N){A(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 nn(n.read());if(i)return yield nn(void 0);yield yield nn(r)}}finally{n.releaseLock()}})}function Kh(e){return O(e?.getReader)}function Cn(e){if(e instanceof _e)return e;if(null!=e){if(Gh(e))return function TC(e){return new _e(t=>{const n=e[oe]();if(O(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Hh(e))return function NC(e){return new _e(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,m)})}(e);if(Wh(e))return Qh(e);if(Yh(e))return function PC(e){return new _e(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Kh(e))return function OC(e){return Qh(Xh(e))}(e)}throw qh(e)}function Qh(e){return new _e(t=>{(function kC(e,t){var n,r,i,o;return function he(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(p){s(p)}}function l(c){try{u(r.throw(c))}catch(p){s(p)}}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=pi(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 lr(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 Ot(e,t,n=1/0){return O(t)?Ot((r,i)=>Re((o,s)=>t(r,o,i,s))(Cn(e(r,i))),n):("number"==typeof t&&(n=t),Ie((r,i)=>function FC(e,t,n,r,i,o,s,a){const l=[];let u=0,c=0,p=!1;const A=()=>{p&&!l.length&&!u&&t.complete()},N=Q=>u{o&&t.next(Q),u++;let ue=!1;Cn(n(Q,c++)).subscribe(Te(t,de=>{i?.(de),o?N(de):t.next(de)},()=>{ue=!0},void 0,()=>{if(ue)try{for(u--;l.length&&uz(de)):z(de)}A()}catch(de){t.error(de)}}))};return e.subscribe(Te(t,N,()=>{p=!0,A()})),()=>{a?.()}}(r,i,e,n)))}function mi(e=1/0){return Ot(G,e)}const zn=new _e(e=>e.complete());function xu(e){return e[e.length-1]}function Mo(e){return function VC(e){return e&&O(e.schedule)}(xu(e))?e.pop():void 0}function Jh(e,t=0){return Ie((n,r)=>{n.subscribe(Te(r,i=>lr(r,e,()=>r.next(i),t),()=>lr(r,e,()=>r.complete(),t),i=>lr(r,e,()=>r.error(i),t)))})}function ep(e,t=0){return Ie((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function tp(e,t){if(!e)throw new Error("Iterable cannot be null");return new _e(n=>{lr(n,t,()=>{const r=e[Symbol.asyncIterator]();lr(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function kt(e,t){return t?function WC(e,t){if(null!=e){if(Gh(e))return function $C(e,t){return Cn(e).pipe(ep(t),Jh(t))}(e,t);if(Hh(e))return function HC(e,t){return new _e(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(zh(e))return function UC(e,t){return Cn(e).pipe(ep(t),Jh(t))}(e,t);if(Wh(e))return tp(e,t);if(Yh(e))return function zC(e,t){return new _e(n=>{let r;return lr(n,t,()=>{r=e[Zh](),lr(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)}),()=>O(r?.return)&&r.return()})}(e,t);if(Kh(e))return function GC(e,t){return tp(Xh(e),t)}(e,t)}throw qh(e)}(e,t):Cn(e)}class bn extends fe{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 Le(...e){return kt(e,Mo(e))}function np(e={}){const{connector:t=(()=>new fe),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,l,u=0,c=!1,p=!1;const A=()=>{a?.unsubscribe(),a=void 0},N=()=>{A(),s=l=void 0,c=p=!1},z=()=>{const Q=s;N(),Q?.unsubscribe()};return Ie((Q,ue)=>{u++,!p&&!c&&A();const de=l=l??t();ue.add(()=>{u--,0===u&&!p&&!c&&(a=Mu(z,i))}),de.subscribe(ue),!s&&u>0&&(s=new K({next:ee=>de.next(ee),error:ee=>{p=!0,A(),a=Mu(N,n,ee),de.error(ee)},complete:()=>{c=!0,A(),a=Mu(N,r),de.complete()}}),Cn(Q).subscribe(s))})(o)}}function Mu(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new K({next:()=>{r.unsubscribe(),e()}});return Cn(t(...n)).subscribe(r)}function Gn(e,t){return Ie((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(Te(r,l=>{i?.unsubscribe();let u=0;const c=o++;Cn(e(l,c)).subscribe(i=Te(r,p=>r.next(t?t(l,p,c,u++):p),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function YC(e,t){return e===t}function it(e){for(let t in e)if(e[t]===it)return t;throw Error("Could not find renamed property on target object.")}function At(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(At).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 Tu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const XC=it({__forward_ref__:it});function Nu(e){return e.__forward_ref__=Nu,e.toString=function(){return At(this())},e}function Fe(e){return Ru(e)?e():e}function Ru(e){return"function"==typeof e&&e.hasOwnProperty(XC)&&e.__forward_ref__===Nu}function Pu(e){return e&&!!e.\u0275providers}const rp="https://g.co/ng/security#xss";class ge extends Error{constructor(t,n){super(function Js(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Ve(e){return"string"==typeof e?e:null==e?"":String(e)}function Ou(e,t){throw new ge(-201,!1)}function Dn(e,t){null==e&&function Pe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Me(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wn(e){return{providers:e.providers||[],imports:e.imports||[]}}function ea(e){return ip(e,na)||ip(e,op)}function ip(e,t){return e.hasOwnProperty(t)?e[t]:null}function ta(e){return e&&(e.hasOwnProperty(ku)||e.hasOwnProperty(ib))?e[ku]:null}const na=it({\u0275prov:it}),ku=it({\u0275inj:it}),op=it({ngInjectableDef:it}),ib=it({ngInjectorDef:it});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||{});let Fu;function sp(){return Fu}function rn(e){const t=Fu;return Fu=e,t}function ap(e,t,n){const r=ea(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 Ou(At(e))}const st=globalThis,To={},$u="__NG_DI_FLAG__",ra="ngTempTokenPath",ab=/\n/gm,up="__source";let vi;function Nr(e){const t=vi;return vi=e,t}function cb(e,t=Ge.Default){if(void 0===vi)throw new ge(-203,!1);return null===vi?ap(e,void 0,t):vi.get(e,t&Ge.Optional?null:void 0,t)}function xe(e,t=Ge.Default){return(sp()||cb)(Fe(e),t)}function me(e,t=Ge.Default){return xe(e,ia(t))}function ia(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Uu(e){const t=[];for(let n=0;nt){s=o-1;break}}}for(;oo?"":i[p+1].toLowerCase();const N=8&r?A:null;if(N&&-1!==hp(N,u,0)||2&r&&u!==A){if(On(r))return!1;s=!0}}}}else{if(!s&&!On(r)&&!On(l))return!1;if(s&&On(l))continue;s=!1,r=l|1&r}}return On(r)||s}function On(e){return 0==(1&e)}function vb(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&&!On(s)&&(t+=wp(o,i),i=""),r=s,o=o||!On(r);n++}return""!==i&&(t+=wp(o,i)),t}function dr(e){return ur(()=>{const t=bp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===oa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Pn.Emulated,styles:e.styles||Qe,_:null,schemas:e.schemas||null,tView:null,id:""};Dp(n);const r=e.dependencies;return n.directiveDefs=aa(r,!1),n.pipeDefs=aa(r,!0),n.id=function Tb(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 Ib(e){return Xe(e)||Ft(e)}function Ab(e){return null!==e}function fr(e){return ur(()=>({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 Cp(e,t){if(null==e)return qn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function Bt(e){return ur(()=>{const t=bp(e);return Dp(t),t})}function Xe(e){return e[sa]||null}function Ft(e){return e[Hu]||null}function Wt(e){return e[zu]||null}function pn(e,t){const n=e[dp]||null;if(!n&&!0===t)throw new Error(`Type ${At(e)} does not have '\u0275mod' property.`);return n}function bp(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||qn,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:Cp(e.inputs,t),outputs:Cp(e.outputs)}}function Dp(e){e.features?.forEach(t=>t(e))}function aa(e,t){if(!e)return null;const n=t?Wt:Ib;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Ab)}const vt=0,ye=1,$e=2,gt=3,kn=4,Oo=5,$t=6,_i=7,wt=8,Rr=9,wi=10,je=11,ko=12,Ep=13,Ci=14,Ct=15,Fo=16,bi=17,Zn=18,Lo=19,Sp=20,Pr=21,hr=22,la=23,ua=24,qe=25,Wu=1,Ip=2,Yn=7,Di=9,Lt=11;function sn(e){return Array.isArray(e)&&"object"==typeof e[Wu]}function qt(e){return Array.isArray(e)&&!0===e[Wu]}function qu(e){return 0!=(4&e.flags)}function Wr(e){return e.componentOffset>-1}function da(e){return 1==(1&e.flags)}function Fn(e){return!!e.template}function Zu(e){return 0!=(512&e[$e])}function qr(e,t){return e.hasOwnProperty(cr)?e[cr]:null}let Fb=st.WeakRef??class kb{constructor(t){this.ref=t}deref(){return this.ref}},Vb=0,Xn=null,fa=!1;function Nt(e){const t=Xn;return Xn=e,t}class Np{constructor(){this.id=Vb++,this.ref=function Lb(e){return new Fb(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(null!=r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=fa;fa=!0;try{for(const[n,r]of this.consumers){const i=r.consumerNode.deref();null!=i&&i.trackingVersion===r.atTrackingVersion?i.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),i?.producers.delete(this.id))}}finally{fa=t}}producerAccessed(){if(fa)throw new Error("");if(null===Xn)return;let t=Xn.producers.get(this.id);void 0===t?(t={consumerNode:Xn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Xn.trackingVersion},Xn.producers.set(this.id,t),this.consumers.set(Xn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=Xn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Xn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let Rp=null;const Op=()=>{};class Ub extends Np{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=Op,this.registerOnCleanup=i=>{this.cleanupFn=i},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=Nt(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Op,this.watch(this.registerOnCleanup)}finally{Nt(t)}}cleanup(){this.cleanupFn()}}class Hb{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Zr(){return kp}function kp(e){return e.type.prototype.ngOnChanges&&(e.setInput=Gb),zb}function zb(){const e=Lp(this),t=e?.current;if(t){const n=e.previous;if(n===qn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Gb(e,t,n,r){const i=this.declaredInputs[n],o=Lp(e)||function Wb(e,t){return e[Fp]=t}(e,{previous:qn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new Hb(l&&l.currentValue,t,a===qn),e[r]=t}Zr.ngInherit=!0;const Fp="__ngSimpleChanges__";function Lp(e){return e[Fp]||null}const Kn=function(e,t,n){},Vp="svg";function lt(e){for(;Array.isArray(e);)e=e[vt];return e}function an(e,t){return lt(t[e.index])}function Bp(e,t){return e.data[t]}function gn(e,t){const n=t[e];return sn(n)?n:n[vt]}function Or(e,t){return null==t?null:e[t]}function $p(e){e[bi]=0}function Qb(e){1024&e[$e]||(e[$e]|=1024,Hp(e,1))}function Up(e){1024&e[$e]&&(e[$e]&=-1025,Hp(e,-1))}function Hp(e,t){let n=e[gt];if(null===n)return;n[Oo]+=t;let r=n;for(n=n[gt];null!==n&&(1===t&&1===r[Oo]||-1===t&&0===r[Oo]);)n[Oo]+=t,r=n,n=n[gt]}function zp(e,t){if(256==(256&e[$e]))throw new ge(911,!1);null===e[Pr]&&(e[Pr]=[]),e[Pr].push(t)}const Oe={lFrame:eg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Wp(){return Oe.bindingsEnabled}function ie(){return Oe.lFrame.lView}function Ke(){return Oe.lFrame.tView}function Yr(e){return Oe.lFrame.contextLView=e,e[wt]}function Xr(e){return Oe.lFrame.contextLView=null,e}function Vt(){let e=qp();for(;null!==e&&64===e.type;)e=e.parent;return e}function qp(){return Oe.lFrame.currentTNode}function Qn(e,t){const n=Oe.lFrame;n.currentTNode=e,n.isParent=t}function tc(){return Oe.lFrame.isParent}function Zt(){const e=Oe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function pr(){return Oe.lFrame.bindingIndex}function Ii(){return Oe.lFrame.bindingIndex++}function gr(e){const t=Oe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function cD(e,t){const n=Oe.lFrame;n.bindingIndex=n.bindingRootIndex=e,rc(t)}function rc(e){Oe.lFrame.currentDirectiveIndex=e}function Kp(){return Oe.lFrame.currentQueryIndex}function oc(e){Oe.lFrame.currentQueryIndex=e}function fD(e){const t=e[ye];return 2===t.type?t.declTNode:1===t.type?e[$t]:null}function Qp(e,t,n){if(n&Ge.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&Ge.Host||(i=fD(o),null===i||(o=o[Ci],10&i.type))););if(null===i)return!1;t=i,e=o}const r=Oe.lFrame=Jp();return r.currentTNode=t,r.lView=e,!0}function sc(e){const t=Jp(),n=e[ye];Oe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Jp(){const e=Oe.lFrame,t=null===e?null:e.child;return null===t?eg(e):t}function eg(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 tg(){const e=Oe.lFrame;return Oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ng=tg;function ac(){const e=tg();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 Yt(){return Oe.lFrame.selectedIndex}function Kr(e){Oe.lFrame.selectedIndex=e}function mt(){const e=Oe.lFrame;return Bp(e.tView,e.selectedIndex)}function xt(){Oe.lFrame.currentNamespace=Vp}function Jn(){!function mD(){Oe.lFrame.currentNamespace=null}()}let ig=!0;function ma(){return ig}function kr(e){ig=e}function va(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[bi]+=65536),(a>13>16&&(3&e[$e])===t&&(e[$e]+=8192,sg(a,o)):sg(a,o)}const Ai=-1;class Bo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function cc(e){return e!==Ai}function $o(e){return 32767&e}function Uo(e,t){let n=function bD(e){return e>>16}(e),r=t;for(;n>0;)r=r[Ci],n--;return r}let dc=!0;function wa(e){const t=dc;return dc=e,t}const ag=255,lg=5;let DD=0;const er={};function Ca(e,t){const n=ug(e,t);if(-1!==n)return n;const r=t[ye];r.firstCreatePass&&(e.injectorIndex=t.length,fc(r.data,e),fc(t,null),fc(r.blueprint,null));const i=ba(e,t),o=e.injectorIndex;if(cc(i)){const s=$o(i),a=Uo(i,t),l=a[ye].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function fc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ug(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ba(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=vg(i),null===r)return Ai;if(n++,i=i[Ci],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Ai}function hc(e,t,n){!function ED(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ro)&&(r=n[Ro]),null==r&&(r=n[Ro]=DD++);const i=r&ag;t.data[e+(i>>lg)]|=1<=0?t&ag:MD:t}(n);if("function"==typeof o){if(!Qp(t,e,r))return r&Ge.Host?cg(i,0,r):dg(t,n,r,i);try{let s;if(s=o(r),null!=s||r&Ge.Optional)return s;Ou()}finally{ng()}}else if("number"==typeof o){let s=null,a=ug(e,t),l=Ai,u=r&Ge.Host?t[Ct][$t]:null;for((-1===a||r&Ge.SkipSelf)&&(l=-1===a?ba(e,t):t[a+8],l!==Ai&&gg(r,!1)?(s=t[ye],a=$o(l),t=Uo(l,t)):a=-1);-1!==a;){const c=t[ye];if(pg(o,a,c.data)){const p=ID(a,t,n,s,r,u);if(p!==er)return p}l=t[a+8],l!==Ai&&gg(r,t[ye].data[a+8]===u)&&pg(o,a,t)?(s=c,a=$o(l),t=Uo(l,t)):a=-1}}return i}function ID(e,t,n,r,i,o){const s=t[ye],a=s.data[e+8],c=Da(a,s,n,null==r?Wr(a)&&dc:r!=s&&0!=(3&a.type),i&Ge.Host&&o===a);return null!==c?Qr(t,s,c,a):er}function Da(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,l=e.directiveStart,c=o>>20,A=i?a+c:e.directiveEnd;for(let N=r?a:a+c;N=l&&z.type===n)return N}if(i){const N=s[l];if(N&&Fn(N)&&N.type===n)return l}return null}function Qr(e,t,n,r){let i=e[n];const o=t.data;if(function _D(e){return e instanceof Bo}(i)){const s=i;s.resolving&&function KC(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ge(-200,`Circular dependency in DI detected for ${e}${n}`)}(function nt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ve(e)}(o[n]));const a=wa(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?rn(s.injectImpl):null;Qp(e,r,Ge.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vD(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=kp(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&&rn(u),wa(a),s.resolving=!1,ng()}}return i}function pg(e,t,n){return!!(n[t+(e>>lg)]&1<{const t=pc(Fe(e));return t&&t()}:qr(e)}function vg(e){const t=e[ye],n=t.type;return 2===n?t.declTNode:1===n?e[$t]:null}const Mi="__parameters__";function Ni(e,t,n){return ur(()=>{const r=function gc(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 p=l.hasOwnProperty(Mi)?l[Mi]:Object.defineProperty(l,Mi,{value:[]})[Mi];for(;p.length<=c;)p.push(null);return(p[c]=p[c]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Pi(e,t){e.forEach(n=>Array.isArray(n)?Pi(n,t):t(n))}function _g(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Sa(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Aa=No(Ni("Optional"),8),xa=No(Ni("SkipSelf"),4);function Pa(e){return 128==(128&e.flags)}var Fr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Fr||{});const Cc=new Map;let aE=0;const Dc="__ngContext__";function Ut(e,t){sn(t)?(e[Dc]=t[Lo],function uE(e){Cc.set(e[Lo],e)}(t)):e[Dc]=t}let Ec;function Sc(e,t){return Ec(e,t)}function Zo(e){const t=e[gt];return qt(t)?t[gt]:t}function Bg(e){return Ug(e[ko])}function $g(e){return Ug(e[kn])}function Ug(e){for(;null!==e&&!qt(e);)e=e[kn];return e}function Li(e,t,n,r,i){if(null!=r){let o,s=!1;qt(r)?o=r:sn(r)&&(s=!0,r=r[vt]);const a=lt(r);0===e&&null!==n?null==i?Wg(t,n,a):Jr(t,n,a,i||null,!0):1===e&&null!==n?Jr(t,n,a,i||null,!0):2===e?function Ba(e,t,n){const r=Va(e,t);r&&function xE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function NE(e,t,n,r,i){const o=n[Yn];o!==lt(n)&&Li(t,e,r,o,i);for(let a=Lt;a0&&(e[n-1][kn]=r[kn]);const o=Sa(e,Lt+t);!function wE(e,t){Xo(e,t,t[je],2,null,null),t[vt]=null,t[$t]=null}(r[ye],r);const s=o[Zn];null!==s&&s.detachView(o[ye]),r[gt]=null,r[kn]=null,r[$e]&=-129}return r}function Ac(e,t){if(!(256&t[$e])){const n=t[je];t[la]?.destroy(),t[ua]?.destroy(),n.destroyNode&&Xo(e,t,n,3,null,null),function DE(e){let t=e[ko];if(!t)return xc(e[ye],e);for(;t;){let n=null;if(sn(t))n=t[ko];else{const r=t[Lt];r&&(n=r)}if(!n){for(;t&&!t[kn]&&t!==e;)sn(t)&&xc(t[ye],t),t=t[gt];null===t&&(t=e),sn(t)&&xc(t[ye],t),n=t&&t[kn]}t=n}}(t)}}function xc(e,t){if(!(256&t[$e])){t[$e]&=-129,t[$e]|=256,function AE(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else n[o].call(r[n[o+1]]);null!==r&&(t[_i]=null);const i=t[Pr];if(null!==i){t[Pr]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Pn.None||o===Pn.Emulated)return null}return an(r,n)}}(e,t.parent,n)}function Jr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Wg(e,t,n){e.appendChild(t,n)}function qg(e,t,n,r,i){null!==r?Jr(e,t,n,r,i):Wg(e,t,n)}function Va(e,t){return e.parentNode(t)}let Tc,Oc,Ua,Xg=function Yg(e,t,n){return 40&e.type?an(e,n):null};function ja(e,t,n,r){const i=Mc(e,r,t),o=t[je],a=function Zg(e,t,n){return Xg(e,t,n)}(r.parent||t[$t],r,t);if(null!=i)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ua}()?.createScriptURL(e)||e}class sm{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rp})`}}function Lr(e){return e instanceof sm?e.changingThisBreaksApplicationSecurity:e}function Ko(e,t){const n=function HE(e){return e instanceof sm&&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 ${rp})`)}return n===t}const qE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Bi=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}(Bi||{});function Bc(e){const t=Jo();return t?t.sanitize(Bi.URL,e)||"":Ko(e,"URL")?Lr(e):function Fc(e){return(e=String(e)).match(qE)?e:"unsafe:"+e}(Ve(e))}function hm(e){const t=Jo();if(t)return om(t.sanitize(Bi.RESOURCE_URL,e)||"");if(Ko(e,"ResourceURL"))return om(Lr(e));throw new ge(904,!1)}function Jo(){const e=ie();return e&&e[wi].sanitizer}class De{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=Me({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const es=new De("ENVIRONMENT_INITIALIZER"),gm=new De("INJECTOR",-1),mm=new De("INJECTOR_DEF_TYPES");class $c{get(t,n=To){if(n===To){const r=new Error(`NullInjectorError: No provider for ${At(t)}!`);throw r.name="NullInjectorError",r}return n}}function sS(...e){return{\u0275providers:ym(0,e),\u0275fromNgModule:!0}}function ym(e,...t){const n=[],r=new Set;let i;const o=s=>{n.push(s)};return Pi(t,s=>{const a=s;za(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&_m(i,o),n}function _m(e,t){for(let n=0;n{t(o,r)})}}function za(e,t,n,r){if(!(e=Fe(e)))return!1;let i=null,o=ta(e);const s=!o&&Xe(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const l=e.ngModule;if(o=ta(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)za(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Pi(o.imports,c=>{za(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&_m(u,t)}if(!a){const u=qr(i)||(()=>new i);t({provide:i,useFactory:u,deps:Qe},i),t({provide:mm,useValue:i,multi:!0},i),t({provide:es,useValue:()=>xe(i),multi:!0},i)}const l=o.providers;if(null!=l&&!a){const u=e;Uc(l,c=>{t(c,u)})}}}return i!==e&&void 0!==e.providers}function Uc(e,t){for(let n of e)Pu(n)&&(n=n.\u0275providers),Array.isArray(n)?Uc(n,t):t(n)}const aS=it({provide:String,useValue:it});function Hc(e){return null!==e&&"object"==typeof e&&aS in e}function ei(e){return"function"==typeof e}const zc=new De("Set Injector scope."),Ga={},uS={};let Gc;function Wa(){return void 0===Gc&&(Gc=new $c),Gc}class Sn{}class qa extends Sn{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,qc(t,s=>this.processProvider(s)),this.records.set(gm,$i(void 0,this)),i.has("environment")&&this.records.set(Sn,$i(void 0,this));const o=this.records.get(zc);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(mm.multi,Qe,Ge.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Nr(this),r=rn(void 0);try{return t()}finally{Nr(n),rn(r)}}get(t,n=To,r=Ge.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(fp))return t[fp](this);r=ia(r);const o=Nr(this),s=rn(void 0);try{if(!(r&Ge.SkipSelf)){let l=this.records.get(t);if(void 0===l){const u=function pS(e){return"function"==typeof e||"object"==typeof e&&e instanceof De}(t)&&ea(t);l=u&&this.injectableDefInScope(u)?$i(Wc(t),Ga):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(r&Ge.Self?Wa():this.parent).get(t,n=r&Ge.Optional&&n===To?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ra]=a[ra]||[]).unshift(At(t)),o)throw a;return function fb(e,t,n,r){const i=e[ra];throw t[up]&&i.unshift(t[up]),e.message=function hb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=At(t);if(Array.isArray(t))i=t.map(At).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):At(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ab,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[ra]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{rn(s),Nr(o)}}resolveInjectorInitializers(){const t=Nr(this),n=rn(void 0);try{const i=this.get(es.multi,Qe,Ge.Self);for(const o of i)o()}finally{Nr(t),rn(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(At(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ge(205,!1)}processProvider(t){let n=ei(t=Fe(t))?t:Fe(t&&t.provide);const r=function dS(e){return Hc(e)?$i(void 0,e.useValue):$i(function bm(e,t,n){let r;if(ei(e)){const i=Fe(e);return qr(i)||Wc(i)}if(Hc(e))r=()=>Fe(e.useValue);else if(function Cm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Uu(e.deps||[]));else if(function wm(e){return!(!e||!e.useExisting)}(e))r=()=>xe(Fe(e.useExisting));else{const i=Fe(e&&(e.useClass||e.provide));if(!function fS(e){return!!e.deps}(e))return qr(i)||Wc(i);r=()=>new i(...Uu(e.deps))}return r}(e),Ga)}(t);if(ei(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=$i(void 0,Ga,!0),i.factory=()=>Uu(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ga&&(n.value=uS,n.value=n.factory()),"object"==typeof n.value&&n.value&&function hS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Fe(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 Wc(e){const t=ea(e),n=null!==t?t.factory:qr(e);if(null!==n)return n;if(e instanceof De)throw new ge(204,!1);if(e instanceof Function)return function cS(e){const t=e.length;if(t>0)throw function Go(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new ge(204,!1)}function $i(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qc(e,t){for(const n of e)Array.isArray(n)?qc(n,t):n&&Pu(n)?qc(n.\u0275providers,t):t(n)}const Za=new De("AppId",{providedIn:"root",factory:()=>gS}),gS="ng",Dm=new De("Platform Initializer"),ti=new De("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Em=new De("CSP nonce",{providedIn:"root",factory:()=>function ji(){if(void 0!==Oc)return Oc;if(typeof document<"u")return document;throw new ge(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Sm=(e,t,n)=>null;function td(e,t,n=!1){return Sm(e,t,n)}class SS{}class xm{}class AS{resolveComponentFactory(t){throw function IS(e){const t=Error(`No component factory found for ${At(e)}.`);return t.ngComponent=e,t}(t)}}let el=(()=>{class t{}return t.NULL=new AS,t})();function xS(){return zi(Vt(),ie())}function zi(e,t){return new vr(an(e,t))}let vr=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=xS,t})();function MS(e){return e instanceof vr?e.nativeElement:e}class Tm{}let tl=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function TS(){const e=ie(),n=gn(Vt().index,e);return(sn(n)?n:e)[je]}(),t})(),NS=(()=>{var e;class t{}return(e=t).\u0275prov=Me({token:e,providedIn:"root",factory:()=>null}),t})();class nl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const RS=new nl("16.2.3"),id={};function Om(e,t=null,n=null,r){const i=km(e,t,n,r);return i.resolveInjectorInitializers(),i}function km(e,t=null,n=null,r,i=new Set){const o=[n||Qe,sS(e)];return r=r||("object"==typeof e?void 0:At(e)),new qa(o,t||Wa(),r||null,i)}let In=(()=>{var e;class t{static create(r,i){if(Array.isArray(r))return Om({name:""},i,r,"");{const o=r.name??"";return Om({name:o},r.parent,r.providers,o)}}}return(e=t).THROW_IF_NOT_FOUND=To,e.NULL=new $c,e.\u0275prov=Me({token:e,providedIn:"any",factory:()=>xe(gm)}),e.__NG_ELEMENT_ID__=-1,t})(),Gi=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=jS,e.__NG_ENV_ID__=n=>n,t})();class VS extends Gi{constructor(t){super(),this._lView=t}onDestroy(t){return zp(this._lView,t),()=>function Jb(e,t){if(null===e[Pr])return;const n=e[Pr].indexOf(t);-1!==n&&e[Pr].splice(n,1)}(this._lView,t)}}function jS(){return new VS(ie())}function od(e){return t=>{setTimeout(e,void 0,t)}}const Ht=class BS extends fe{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}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=od(o),i&&(i=od(i)),s&&(s=od(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof b&&t.add(a),a}};function Fm(...e){}class ut{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ht(!1),this.onMicrotaskEmpty=new Ht(!1),this.onStable=new Ht(!1),this.onError=new Ht(!1),typeof Zone>"u")throw new ge(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 $S(){const e="function"==typeof st.requestAnimationFrame;let t=st[e?"requestAnimationFrame":"setTimeout"],n=st[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 zS(e){const t=()=>{!function HS(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(st,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ad(e),e.isCheckStableRunning=!0,sd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ad(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Lm(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Vm(e)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return Lm(e),n.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Vm(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,ad(e),sd(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(!ut.isInAngularZone())throw new ge(909,!1)}static assertNotInAngularZone(){if(ut.isInAngularZone())throw new ge(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,US,Fm,Fm);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 US={};function sd(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 ad(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Lm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vm(e){e._nesting--,sd(e)}class GS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ht,this.onMicrotaskEmpty=new Ht,this.onStable=new Ht,this.onError=new Ht}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)}}const jm=new De("",{providedIn:"root",factory:Bm});function Bm(){const e=me(ut);let t=!0;return function qC(...e){const t=Mo(e),n=function BC(e,t){return"number"==typeof xu(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Cn(r[0]):mi(n)(kt(r,t)):zn}(new _e(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),new _e(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{ut.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ut.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(np()))}function il(e){return e.ownerDocument}function yr(e){return e instanceof Function?e():e}let ld=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new ge(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const r of this.callbacks)r.invoke()}finally{this.runningCallbacks=!1;for(const r of this.deferredCallbacks)this.callbacks.add(r);this.deferredCallbacks.clear()}}register(r){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(r)}unregister(r){this.callbacks.delete(r),this.deferredCallbacks.delete(r)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=Me({token:e,providedIn:"root",factory:()=>new e}),t})();function rs(e){for(;e;){e[$e]|=64;const t=Zo(e);if(Zu(e)&&!t)return e;e=t}return null}function ud(e){return e.ngOriginalError}class ni{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&&ud(t);for(;n&&ud(n);)n=ud(n);return n||null}}const Gm=new De("",{providedIn:"root",factory:()=>!1});class Ym extends Np{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){rs(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const i=Nt(this);this.trackingVersion++;try{t(n,r)}finally{Nt(i)}}destroy(){this.trackingVersion++}}let sl=null;function Xm(){return sl??=new Ym,sl}function Km(e,t){return e[t]??Xm()}function Qm(e,t){const n=Xm();n.hasReadASignal&&(e[t]=sl,n.lView=e,sl=new Ym)}const Ue={};function Be(e){Jm(Ke(),ie(),Yt()+e,!1)}function Jm(e,t,n,r){if(!r)if(3==(3&t[$e])){const o=e.preOrderCheckHooks;null!==o&&ya(t,o,n)}else{const o=e.preOrderHooks;null!==o&&_a(t,o,0,n)}Kr(n)}function Ne(e,t=Ge.Default){const n=ie();return null===n?xe(e,t):fg(Vt(),n,Fe(e),t)}function al(e,t,n,r,i,o,s,a,l,u,c){const p=t.blueprint.slice();return p[vt]=i,p[$e]=140|r,(null!==u||e&&2048&e[$e])&&(p[$e]|=2048),$p(p),p[gt]=p[Ci]=e,p[wt]=n,p[wi]=s||e&&e[wi],p[je]=a||e&&e[je],p[Rr]=l||e&&e[Rr]||null,p[$t]=o,p[Lo]=function lE(){return aE++}(),p[hr]=c,p[Sp]=u,p[Ct]=2==t.type?e[Ct]:p,p}function Zi(e,t,n,r,i){let o=e.data[t];if(null===o)o=function cd(e,t,n,r,i){const o=qp(),s=tc(),l=e.data[t]=function aI(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return function Si(){return null!==Oe.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(e,t,n,r,i),function uD(){return Oe.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=function jo(){const e=Oe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Qn(o,!0),o}function is(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;oqe&&Jm(e,t,qe,!1),Kn(a?2:0,i),a)o.runInContext(n,r,i);else{const u=Nt(null);try{n(r,i)}finally{Nt(u)}}}finally{a&&null===t[la]&&Qm(t,la),Kr(s),Kn(a?3:1,i)}}function dd(e,t,n){if(qu(t)){const r=Nt(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function iv(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const o=e[i];null===r?ov(n,t,i,o):r.hasOwnProperty(i)&&ov(n,t,r[i],o)}return n}function ov(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function gd(e,t,n,r){if(Wp()){const i=null===r?null:{"":-1},o=function mI(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,is(e,n,i.hostVars,Ue),i)}function tr(e,t,n,r,i,o){const s=an(e,t);!function vd(e,t,n,r,i,o,s){if(null==o)e.removeAttribute(t,i,n);else{const a=null==s?Ve(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}(t[je],s,o,e.value,n,r,i)}function bI(e,t,n,r,i,o){const s=o[t];if(null!==s)for(let a=0;a{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(r,i,o){const s=typeof Zone>"u"?null:Zone.current,a=new Ub(r,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let l;this.all.add(a),a.notify();const u=()=>{a.cleanup(),l?.(),this.all.delete(a),this.queue.delete(a)};return l=i?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=Me({token:e,providedIn:"root",factory:()=>new e}),t})();function ul(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s0){yv(e,1);const i=e[ye].components;null!==i&&wv(e,i,1)}}function wv(e,t,n){for(let r=0;r-1&&(La(t,r),Sa(n,r))}this._attachedToViewContainer=!1}Ac(this._lView[ye],this._lView)}onDestroy(t){zp(this._lView,t)}markForCheck(){rs(this._cdRefInjectingView||this._lView)}detach(){this._lView[$e]&=-129}reattach(){this._lView[$e]|=128}detectChanges(){cl(this._lView[ye],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ge(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function bE(e,t){Xo(e,t,t[je],2,null,null)}(this._lView[ye],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ge(902,!1);this._appRef=t}}class NI extends ss{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;cl(t[ye],t,t[wt],!1)}checkNoChanges(){}get context(){return null}}class Cv extends el{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Xe(t);return new as(n,this.ngModule)}}function bv(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class PI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ia(r);const i=this.injector.get(t,id,r);return i!==id||n===id?i:this.parentInjector.get(t,n,r)}}class as extends xm{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=bv(t.inputs);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return bv(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Db(e){return e.map(bb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Sn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new PI(t,o):t,a=s.get(Tm,null);if(null===a)throw new ge(407,!1);const p={rendererFactory:a,sanitizer:s.get(NS,null),effectManager:s.get(gv,null),afterRenderEventManager:s.get(ld,null)},A=a.createRenderer(null,this.componentDef),N=this.componentDef.selectors[0][0]||"div",z=r?function nI(e,t,n,r){const o=r.get(Gm,!1)||n===Pn.ShadowDom,s=e.selectRootElement(t,o);return function rI(e){rv(e)}(s),s}(A,r,this.componentDef.encapsulation,s):Fa(A,N,function RI(e){const t=e.toLowerCase();return"svg"===t?Vp:"math"===t?"math":null}(N)),de=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let ee=null;null!==z&&(ee=td(z,s,!0));const Ee=pd(0,null,null,1,0,null,null,null,null,null,null),ke=al(null,Ee,null,de,null,null,p,A,s,null,ee);let Ye,dn;sc(ke);try{const Tr=this.componentDef;let xo,Uh=null;Tr.findHostDirectiveDefs?(xo=[],Uh=new Map,Tr.findHostDirectiveDefs(Tr,xo,Uh),xo.push(Tr)):xo=[Tr];const HF=function kI(e,t){const n=e[ye],r=qe;return e[r]=t,Zi(n,r,2,"#host",null)}(ke,z),zF=function FI(e,t,n,r,i,o,s){const a=i[ye];!function LI(e,t,n,r){for(const i of e)t.mergedAttrs=Po(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(ul(t,t.mergedAttrs,!0),null!==n&&nm(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=td(t,i[Rr]));const u=o.rendererFactory.createRenderer(t,n);let c=16;n.signals?c=4096:n.onPush&&(c=64);const p=al(i,nv(n),null,c,i[e.index],e,o,u,null,null,l);return a.firstCreatePass&&md(a,e,r.length-1),ll(i,p),i[e.index]=p}(HF,z,Tr,xo,ke,p,A);dn=Bp(Ee,qe),z&&function jI(e,t,n,r){if(r)Gu(e,n,["ng-version",RS.full]);else{const{attrs:i,classes:o}=function Eb(e){const t=[],n=[];let r=1,i=2;for(;r0&&tm(e,n,o.join(" "))}}(A,Tr,z,r),void 0!==n&&function BI(e,t,n){const r=e.projection=[];for(let i=0;i(kr(!0),Fa(r,i,function rg(){return Oe.lFrame.currentNamespace}()));function io(){return ie()}function vl(e){return!!e&&"function"==typeof e.then}function Wv(e){return!!e&&"function"==typeof e.subscribe}function xn(e,t,n,r){const i=ie(),o=Ke(),s=Vt();return function Zv(e,t,n,r,i,o,s){const a=da(r),u=e.firstCreatePass&&fv(e),c=t[wt],p=dv(t);let A=!0;if(3&r.type||s){const Q=an(r,t),ue=s?s(Q):Q,de=p.length,ee=s?ke=>s(lt(ke[r.index])):r.index;let Ee=null;if(!s&&a&&(Ee=function A2(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!==Ee)(Ee.__ngLastListenerFn__||Ee).__ngNextListenerFn__=o,Ee.__ngLastListenerFn__=o,A=!1;else{o=Xv(r,t,c,o,!1);const ke=n.listen(ue,i,o);p.push(o,ke),u&&u.push(i,ee,de,de+1)}}else o=Xv(r,t,c,o,!1);const N=r.outputs;let z;if(A&&null!==N&&(z=N[i])){const Q=z.length;if(Q)for(let ue=0;ue-1?gn(e.index,t):t);let l=Yv(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)l=Yv(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&s.preventDefault(),l}}function Et(e=1){return function hD(e){return(Oe.lFrame.contextLView=function pD(e,t){for(;e>0;)t=t[Ci],e--;return t}(e,Oe.lFrame.contextLView))[wt]}(e)}function be(e,t=""){const n=ie(),r=Ke(),i=e+qe,o=r.firstCreatePass?Zi(r,i,1,t,null):r.data[i],s=Cy(r,n,o,t,e);n[i]=s,ma()&&ja(r,n,s,o),Qn(o,!1)}let Cy=(e,t,n,r,i)=>(kr(!0),function ka(e,t){return e.createText(t)}(t[je],r));function wr(e){return Cr("",e,""),wr}function Cr(e,t,n){const r=ie(),i=function Xi(e,t,n,r){return zt(e,Ii(),n)?t+Ve(n)+r:Ue}(r,e,t,n);return i!==Ue&&_r(r,Yt(),i),Cr}function Fd(e,t,n,r,i){const o=ie(),s=function Ki(e,t,n,r,i,o){const a=ri(e,pr(),n,i);return gr(2),a?t+Ve(n)+r+Ve(i)+o:Ue}(o,e,t,n,r,i);return s!==Ue&&_r(o,Yt(),s),Fd}function Ld(e,t,n,r,i,o,s){const a=ie(),l=Qi(a,e,t,n,r,i,o,s);return l!==Ue&&_r(a,Yt(),l),Ld}const ao="en-US";let $y=ao;class si{}class p0{}class zd extends si{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Cv(this);const i=pn(t);this._bootstrapComponents=yr(i.bootstrap),this._r3Injector=km(t,n,[{provide:si,useValue:this},{provide:el,useValue:this.componentFactoryResolver},...r],At(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Gd extends p0{constructor(t){super(),this.moduleType=t}create(t){return new zd(this.moduleType,t,[])}}class g0 extends si{constructor(t){super(),this.componentFactoryResolver=new Cv(this),this.instance=null;const n=new qa([...t.providers,{provide:si,useValue:this},{provide:el,useValue:this.componentFactoryResolver}],t.parent||Wa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Wd(e,t,n=null){return new g0({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Dx=(()=>{var e;class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=ym(0,r.type),o=i.length>0?Wd([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Me({token:e,providedIn:"environment",factory:()=>new e(xe(Sn))}),t})();function m0(e){e.getStandaloneInjector=t=>t.get(Dx).getOrCreateStandaloneInjector(e)}function El(e,t,n){const r=Zt()+e,i=ie();return i[r]===Ue?nr(i,r,n?t.call(n):t()):function ls(e,t){return e[t]}(i,r)}function Sl(e,t,n,r){return function D0(e,t,n,r,i,o){const s=t+n;return zt(e,s,i)?nr(e,s+1,o?r.call(o,i):r(i)):function ys(e,t){const n=e[t];return n===Ue?void 0:n}(e,s+1)}(ie(),Zt(),e,t,n,r)}function qx(){return this._results[Symbol.iterator]()}class Zd{get changes(){return this._changes||(this._changes=new Ht)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Zd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=qx)}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){const r=this;r.dirty=!1;const i=function En(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function kD(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(n[i-1][kn]=t),r{class t{}return t.__NG_ELEMENT_ID__=Qx,t})();const Xx=br,Kx=class extends Xx{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=function Zx(e,t,n,r){const i=t.tView,a=al(e,i,n,4096&e[$e]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[Fo]=e[t.index];const u=e[Zn];return null!==u&&(a[Zn]=u.createEmbeddedView(i)),wd(i,a,n),a}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new ss(i)}};function Qx(){return Il(Vt(),ie())}function Il(e,t){return 4&e.type?new Kx(t,e,zi(e,t)):null}let jn=(()=>{class t{}return t.__NG_ELEMENT_ID__=iM,t})();function iM(){return O0(Vt(),ie())}const oM=jn,R0=class extends oM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return zi(this._hostTNode,this._hostLView)}get injector(){return new Xt(this._hostTNode,this._hostLView)}get parentInjector(){const t=ba(this._hostTNode,this._hostLView);if(cc(t)){const n=Uo(t,this._hostLView),r=$o(t);return new Xt(n[ye].data[r+8],n)}return new Xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=P0(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Lt}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=t.createEmbeddedViewImpl(n||{},o,null);return this.insertImpl(a,i,false),a}createComponent(t,n,r,i,o){const s=t&&!function zo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const Q=n||{};a=Q.index,r=Q.injector,i=Q.projectableNodes,o=Q.environmentInjector||Q.ngModuleRef}const l=s?t:new as(Xe(t)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const ue=(s?u:this.parentInjector).get(Sn,null);ue&&(o=ue)}Xe(l.componentType??{});const N=l.create(u,i,null,o);return this.insertImpl(N.hostView,a,false),N}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const i=t._lView;if(function Kb(e){return qt(e[gt])}(i)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=i[gt],c=new R0(u,u[$t],u[gt]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;return Yx(a,i,s,!r),t.attachToViewContainerRef(),_g(Yd(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=P0(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=La(this._lContainer,n);r&&(Sa(Yd(this._lContainer),n),Ac(r[ye],r))}detach(t){const n=this._adjustIndex(t,-1),r=La(this._lContainer,n);return r&&null!=Sa(Yd(this._lContainer),n)?new ss(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function P0(e){return e[8]}function Yd(e){return e[8]||(e[8]=[])}function O0(e,t){let n;const r=t[e.index];return qt(r)?n=r:(n=uv(r,t,null,e),t[e.index]=n,ll(t,n)),k0(n,t,e,r),new R0(n,e,t)}let k0=function F0(e,t,n,r){if(e[Yn])return;let i;i=8&n.type?lt(r):function sM(e,t){const n=e[je],r=n.createComment(""),i=an(t,e);return Jr(n,Va(n,i),r,function ME(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[Yn]=i};class Xd{constructor(t){this.queryList=t,this.matches=null}clone(){return new Xd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Kd{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;o0)r.push(s[a/2]);else{const u=o[a+1],c=t[-l];for(let p=Lt;p{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=me(Ml,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const o of this.appInits){const s=o();if(vl(s))r.push(s);else if(Wv(s)){const a=new Promise((l,u)=>{s.subscribe({complete:l,error:u})});r.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),0===r.length&&i(),this.initialized=!0}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),s1=(()=>{var e;class t{log(r){console.log(r)}warn(r){console.warn(r)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const Dr=new De("LocaleId",{providedIn:"root",factory:()=>me(Dr,Ge.Optional|Ge.SkipSelf)||function FM(){return typeof $localize<"u"&&$localize.locale||ao}()});let a1=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new bn(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class jM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let l1=(()=>{var e;class t{compileModuleSync(r){return new Gd(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const i=this.compileModuleSync(r),s=yr(pn(r).declarations).reduce((a,l)=>{const u=Xe(l);return u&&a.push(new as(u)),a},[]);return new jM(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const f1=new De(""),Nl=new De("");let gf,hf=(()=>{var e;class t{constructor(r,i,o){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gf||(function oT(e){gf=e}(o),o.addToWindow(i)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ut.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:o})}whenStable(r,i,o){if(o&&!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(r,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(ut),xe(pf),xe(Nl))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})(),pf=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return gf?.findTestabilityInTree(this,r,i)??null}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),jr=null;const h1=new De("AllowMultipleToken"),mf=new De("PlatformDestroyListeners"),Rl=new De("appBootstrapListener");class g1{constructor(t,n){this.name=t,this.token=n}}function v1(e,t,n=[]){const r=`Platform: ${t}`,i=new De(r);return(o=[])=>{let s=vf();if(!s||s.injector.get(h1,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function lT(e){if(jr&&!jr.get(h1,!1))throw new ge(400,!1);(function p1(){!function Bb(e){Rp=e}(()=>{throw new ge(600,!1)})})(),jr=e;const t=e.get(_1);(function m1(e){e.get(Dm,null)?.forEach(n=>n())})(e)}(function y1(e=[],t){return In.create({name:t,providers:[{provide:zc,useValue:"platform"},{provide:mf,useValue:new Set([()=>jr=null])},...e]})}(a,r))}return function cT(e){const t=vf();if(!t)throw new ge(401,!1);return t}()}}function vf(){return jr?.get(_1)??null}let _1=(()=>{var e;class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const o=function dT(e="zone.js",t){return"noop"===e?new GS:"zone.js"===e?new ut(t):e}(i?.ngZone,function w1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const s=function bx(e,t,n){return new zd(e,t,n)}(r.moduleType,this.injector,function S1(e){return[{provide:ut,useFactory:e},{provide:es,multi:!0,useFactory:()=>{const t=me(hT,{optional:!0});return()=>t.initialize()}},{provide:E1,useFactory:fT},{provide:jm,useFactory:Bm}]}(()=>o)),a=s.injector.get(ni,null);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:u=>{a.handleError(u)}});s.onDestroy(()=>{Pl(this._modules,s),l.unsubscribe()})}),function C1(e,t,n){try{const r=n();return vl(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(a,o,()=>{const l=s.injector.get(cf);return l.runInitializers(),l.donePromise.then(()=>(function Uy(e){Dn(e,"Expected localeId to be defined"),"string"==typeof e&&($y=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Dr,ao)||ao),this._moduleDoBootstrap(s),s))})})}bootstrapModule(r,i=[]){const o=b1({},i);return function sT(e,t,n){const r=new Gd(n);return Promise.resolve(r)}(0,0,r).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(r){const i=r.injector.get(co);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!r.instance.ngDoBootstrap)throw new ge(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ge(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(mf,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(In))},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function b1(e,t){return Array.isArray(t)?t.reduce(b1,e):{...e,...t}}let co=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=me(E1),this.zoneIsStable=me(jm),this.componentTypes=[],this.components=[],this.isStable=me(a1).hasPendingTasks.pipe(Gn(r=>r?Le(!1):this.zoneIsStable),function ZC(e,t=G){return e=e??YC,Ie((n,r)=>{let i,o=!0;n.subscribe(Te(r,s=>{const a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}(),np()),this._injector=me(Sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const o=r instanceof xm;if(!this._injector.get(cf).done)throw!o&&function yi(e){const t=Xe(e)||Ft(e)||Wt(e);return null!==t&&t.standalone}(r),new ge(405,!1);let a;a=o?r:this._injector.get(el).resolveComponentFactory(r),this.componentTypes.push(a.componentType);const l=function aT(e){return e.isBoundToModule}(a)?void 0:this._injector.get(si),c=a.create(In.NULL,[],i||a.selector,l),p=c.location.nativeElement,A=c.injector.get(f1,null);return A?.registerApplication(p),c.onDestroy(()=>{this.detachView(c.hostView),Pl(this.components,c),A?.unregisterApplication(p)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new ge(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;Pl(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(Rl,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Pl(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new ge(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const E1=new De("",{providedIn:"root",factory:()=>me(ni).handleError.bind(void 0)});function fT(){const e=me(ut),t=me(ni);return n=>e.runOutsideAngular(()=>t.handleError(n))}let hT=(()=>{var e;class t{constructor(){this.zone=me(ut),this.applicationRef=me(co)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let yf=(()=>{class t{}return t.__NG_ELEMENT_ID__=gT,t})();function gT(e){return function mT(e,t,n){if(Wr(e)&&!n){const r=gn(e.index,t);return new ss(r,r)}return 47&e.type?new ss(t[Ct],t):null}(Vt(),ie(),16==(16&e))}class M1{constructor(){}supports(t){return fl(t)}create(t){return new bT(t)}}const CT=(e,t)=>t;class bT{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||CT}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new DT(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new T1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new T1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class DT{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ET{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class T1{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new ET,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function N1(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new IT(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class IT{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function P1(){return new Fl([new M1])}let Fl=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,i){if(null!=i){const o=i.factories.slice();r=r.concat(o)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||P1()),deps:[[t,new xa,new Aa]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(null!=i)return i;throw new ge(901,!1)}}return(e=t).\u0275prov=Me({token:e,providedIn:"root",factory:P1}),t})();function O1(){return new Ds([new R1])}let Ds=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,i){if(i){const o=i.factories.slice();r=r.concat(o)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||O1()),deps:[[t,new xa,new Aa]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(i)return i;throw new ge(901,!1)}}return(e=t).\u0275prov=Me({token:e,providedIn:"root",factory:O1}),t})();const MT=v1(null,"core",[]);let TT=(()=>{var e;class t{constructor(r){}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(co))},e.\u0275mod=fr({type:e}),e.\u0275inj=Wn({}),t})();function Ef(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Sf=null;function fo(){return Sf}class zT{}const Rt=new De("DocumentToken");let If=(()=>{var e;class t{historyGo(r){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:function(){return me(WT)},providedIn:"platform"}),t})();const GT=new De("Location Initialized");let WT=(()=>{var e;class t extends If{constructor(){super(),this._doc=me(Rt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fo().getBaseHref(this._doc)}onPopState(r){const i=fo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){const i=fo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function Af(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 H1(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 Er(e){return e&&"?"!==e[0]?"?"+e:e}let li=(()=>{var e;class t{historyGo(r){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:function(){return me(G1)},providedIn:"root"}),t})();const z1=new De("appBaseHref");let G1=(()=>{var e;class t extends li{constructor(r,i){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??me(Rt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Af(this._baseHref,r)}path(r=!1){const i=this._platformLocation.pathname+Er(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){const a=this.prepareExternalUrl(o+Er(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){const a=this.prepareExternalUrl(o+Er(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(If),xe(z1,8))},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),qT=(()=>{var e;class t extends li{constructor(r,i){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}path(r=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(r){const i=Af(this._baseHref,r);return i.length>0?"#"+i:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Er(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Er(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(If),xe(z1,8))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})(),xf=(()=>{var e;class t{constructor(r){this._subject=new Ht,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;const i=this._locationStrategy.getBaseHref();this._basePath=function XT(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(H1(W1(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+Er(i))}normalize(r){return t.stripTrailingSlash(function YT(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,W1(r)))}prepareExternalUrl(r){return r&&"/"!==r[0]&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Er(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Er(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}}return(e=t).normalizeQueryParams=Er,e.joinWithSlash=Af,e.stripTrailingSlash=H1,e.\u0275fac=function(r){return new(r||e)(xe(li))},e.\u0275prov=Me({token:e,factory:function(){return function ZT(){return new xf(xe(li))}()},providedIn:"root"}),t})();function W1(e){return e.replace(/\/index.html$/,"")}const Vf=/\s+/,t_=[];let n_=(()=>{var e;class t{constructor(r,i,o,s){this._iterableDiffers=r,this._keyValueDiffers=i,this._ngEl=o,this._renderer=s,this.initialClasses=t_,this.stateMap=new Map}set klass(r){this.initialClasses=null!=r?r.trim().split(Vf):t_}set ngClass(r){this.rawClass="string"==typeof r?r.trim().split(Vf):r}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(const i of r)this._updateState(i,!0);else if(null!=r)for(const i of Object.keys(r))this._updateState(i,!!r[i]);this._applyStateDiff()}_updateState(r,i){const o=this.stateMap.get(r);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(r,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const r of this.stateMap){const i=r[0],o=r[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(r,i){(r=r.trim()).length>0&&r.split(Vf).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return(e=t).\u0275fac=function(r){return new(r||e)(Ne(Fl),Ne(Ds),Ne(vr),Ne(tl))},e.\u0275dir=Bt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class FN{constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Zl=(()=>{var e;class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const r=this._ngForOf;!this._differ&&r&&(this._differ=this._differs.find(r).create(this.ngForTrackBy))}if(this._differ){const r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){const i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new FN(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===s?void 0:s);else if(null!==s){const l=i.get(s);i.move(l,a),i_(l,o)}});for(let o=0,s=i.length;o{i_(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(r,i){return!0}}return(e=t).\u0275fac=function(r){return new(r||e)(Ne(jn),Ne(br),Ne(Fl))},e.\u0275dir=Bt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function i_(e,t){e.context.$implicit=t.item}let Yl=(()=>{var e;class t{constructor(r,i){this._viewContainer=r,this._context=new LN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){o_("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){o_("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,i){return!0}}return(e=t).\u0275fac=function(r){return new(r||e)(Ne(jn),Ne(br))},e.\u0275dir=Bt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class LN{constructor(){this.$implicit=null,this.ngIf=null}}function o_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${At(t)}'.`)}let l_=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275mod=fr({type:e}),e.\u0275inj=Wn({}),t})();function Hf(e){return"server"===e}let dR=(()=>{var e;class t{}return(e=t).\u0275prov=Me({token:e,providedIn:"root",factory:()=>new fR(xe(Rt),window)}),t})();class fR{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.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function hR(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.supportsScrolling()&&(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])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class LR extends zT{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Wf extends LR{static makeCurrent(){!function HT(e){Sf||(Sf=e)}(new Wf)}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 VR(){return As=As||document.querySelector("base"),As?As.getAttribute("href"):null}();return null==n?null:function jR(e){Ql=Ql||document.createElement("a"),Ql.setAttribute("href",e);const t=Ql.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){As=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function ON(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 Ql,As=null,$R=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();const qf=new De("EventManagerPlugins");let p_=(()=>{var e;class t{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new ge(5101,!1);return this._eventNameToPlugin.set(r,i),i}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(qf),xe(ut))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();class g_{constructor(t){this._doc=t}}const Zf="ng-app-id";let m_=(()=>{var e;class t{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Hf(s),this.resetHostNodes()}addStyles(r){for(const i of r)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(r){for(const i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(const i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(const i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){const i=this.styleRef;i.get(r)?.elements?.forEach(o=>o.remove()),i.delete(r)}collectServerRenderedStyles(){const r=this.doc.head?.querySelectorAll(`style[${Zf}="${this.appId}"]`);if(r?.length){const i=new Map;return r.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(r,i){const o=this.styleRef;if(o.has(r)){const s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){const o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===r)return o.delete(i),s.removeAttribute(Zf),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Zf,this.appId),a}}addStyleToHost(r,i){const o=this.getStyleElement(r,i);r.appendChild(o);const s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){const r=this.hostNodes;r.clear(),r.add(this.doc.head)}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(Rt),xe(Za),xe(Em,8),xe(ti))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();const Yf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Xf=/%COMP%/g,GR=new De("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function y_(e,t){return t.map(n=>n.replace(Xf,e))}let __=(()=>{var e;class t{constructor(r,i,o,s,a,l,u,c=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Hf(l),this.defaultRenderer=new Kf(r,a,u,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Pn.ShadowDom&&(i={...i,encapsulation:Pn.Emulated});const o=this.getOrCreateRenderer(r,i);return o instanceof C_?o.applyToHost(r):o instanceof Qf&&o.applyStyles(),o}getOrCreateRenderer(r,i){const o=this.rendererByCompId;let s=o.get(i.id);if(!s){const a=this.doc,l=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,A=this.platformIsServer;switch(i.encapsulation){case Pn.Emulated:s=new C_(u,c,i,this.appId,p,a,l,A);break;case Pn.ShadowDom:return new YR(u,c,r,i,a,l,this.nonce,A);default:s=new Qf(u,c,i,p,a,l,A)}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(p_),xe(m_),xe(Za),xe(GR),xe(Rt),xe(ti),xe(ut),xe(Em))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();class Kf{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Yf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(w_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(w_(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 ge(-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=Yf[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Yf[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&(Fr.DashCase|Fr.Important)?t.style.setProperty(n,r,i&Fr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Fr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=fo().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 w_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class YR extends Kf{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=y_(i.id,i.styles);for(const c of u){const p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=c,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Qf extends Kf{constructor(t,n,r,i,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=l?y_(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class C_ extends Qf{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 WR(e){return"_ngcontent-%COMP%".replace(Xf,e)}(u),this.hostAttr=function qR(e){return"_nghost-%COMP%".replace(Xf,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 XR=(()=>{var e;class t extends g_{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(Rt))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();const b_=["alt","control","meta","shift"],KR={"\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"},QR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let JR=(()=>{var e;class t extends g_{constructor(r){super(r)}supports(r){return null!=t.parseEventName(r)}addEventListener(r,i,o){const s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fo().onAndCancel(r,s.domEventName,a))}static parseEventName(r){const i=r.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(i.pop());let a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),b_.forEach(c=>{const p=i.indexOf(c);p>-1&&(i.splice(p,1),a+=c+".")}),a+=s,0!=i.length||0===s.length)return null;const u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(r,i){let o=KR[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),b_.forEach(a=>{a!==o&&(0,QR[a])(r)&&(s+=a+".")}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{t.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return"esc"===r?"escape":r}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(Rt))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();const rP=v1(MT,"browser",[{provide:ti,useValue:"browser"},{provide:Dm,useValue:function eP(){Wf.makeCurrent()},multi:!0},{provide:Rt,useFactory:function nP(){return function LE(e){Oc=e}(document),document},deps:[]}]),iP=new De(""),S_=[{provide:Nl,useClass:class BR{addToWindow(t){st.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new ge(5103,!1);return o},st.getAllAngularTestabilities=()=>t.getAllTestabilities(),st.getAllAngularRootElements=()=>t.getAllRootElements(),st.frameworkStabilizers||(st.frameworkStabilizers=[]),st.frameworkStabilizers.push(r=>{const i=st.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?fo().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:f1,useClass:hf,deps:[ut,pf,Nl]},{provide:hf,useClass:hf,deps:[ut,pf,Nl]}],I_=[{provide:zc,useValue:"root"},{provide:ni,useFactory:function tP(){return new ni},deps:[]},{provide:qf,useClass:XR,multi:!0,deps:[Rt,ut,ti]},{provide:qf,useClass:JR,multi:!0,deps:[Rt]},__,m_,p_,{provide:Tm,useExisting:__},{provide:class pR{},useClass:$R,deps:[]},[]];let oP=(()=>{var e;class t{constructor(r){}static withServerTransition(r){return{ngModule:t,providers:[{provide:Za,useValue:r.appId}]}}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(iP,12))},e.\u0275mod=fr({type:e}),e.\u0275inj=Wn({providers:[...I_,...S_],imports:[l_,TT]}),t})(),A_=(()=>{var e;class t{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(Rt))},e.\u0275prov=Me({token:e,factory:function(r){let i=null;return i=r?new r:function aP(){return new A_(xe(Rt))}(),i},providedIn:"root"}),t})();function N_(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 R_(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){N_(o,r,i,s,a,"next",l)}function a(l){N_(o,r,i,s,a,"throw",l)}s(void 0)})}}typeof window<"u"&&window;const{isArray:hP}=Array,{getPrototypeOf:pP,prototype:gP,keys:mP}=Object;const{isArray:_P}=Array;function eh(...e){const t=Mo(e),n=function jC(e){return O(xu(e))?e.pop():void 0}(e),{args:r,keys:i}=function vP(e){if(1===e.length){const t=e[0];if(hP(t))return{args:t,keys:null};if(function yP(e){return e&&"object"==typeof e&&pP(e)===gP}(t)){const n=mP(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return kt([],t);const o=new _e(function DP(e,t,n=G){return r=>{P_(t,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let l=0;l{const u=kt(e[l],t);let c=!1;u.subscribe(Te(r,p=>{o[l]=p,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>function bP(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}(i,s):G));return n?o.pipe(function CP(e){return Re(t=>function wP(e,t){return _P(t)?e(...t):e(t)}(e,t))}(n)):o}function P_(e,t,n){e?lr(n,e,t):t()}const Jl=x(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function th(...e){return function EP(){return mi(1)}()(kt(e,Mo(e)))}function O_(e){return new _e(t=>{Cn(e()).subscribe(t)})}function xs(e,t){const n=O(e)?e:()=>e,r=i=>i.error(n());return new _e(t?i=>t.schedule(r,0,i):r)}function nh(){return Ie((e,t)=>{let n=null;e._refCount++;const r=Te(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 k_ extends _e{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,It(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 b;const n=this.getSubject();t.add(this.source.subscribe(Te(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=b.EMPTY)}return t}refCount(){return nh()(this)}}function po(e){return e<=0?()=>zn:Ie((t,n)=>{let r=0;t.subscribe(Te(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Nn(e,t){return Ie((n,r)=>{let i=0;n.subscribe(Te(r,o=>e.call(t,o,i++)&&r.next(o)))})}function eu(e){return Ie((t,n)=>{let r=!1;t.subscribe(Te(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function F_(e=IP){return Ie((t,n)=>{let r=!1;t.subscribe(Te(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function IP(){return new Jl}function ui(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Nn((i,o)=>e(i,o,r)):G,po(1),n?eu(t):F_(()=>new Jl))}function Ms(e,t){return O(t)?Ot(e,t,1):Ot(e,1)}function Gt(e,t,n){const r=O(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ie((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Te(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)}))}):G}function ci(e){return Ie((t,n)=>{let o,r=null,i=!1;r=t.subscribe(Te(n,void 0,void 0,s=>{o=Cn(e(s,ci(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function rh(e){return e<=0?()=>zn:Ie((t,n)=>{let r=[];t.subscribe(Te(n,i=>{r.push(i),e{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function ih(e){return Ie((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function L_(e){return Ie((t,n)=>{Cn(e).subscribe(Te(n,()=>n.complete(),g)),!n.closed&&t.subscribe(n)})}const He="primary",Ts=Symbol("RouteTitle");class NP{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 go(e){return new NP(e)}function RP(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 j_(e){return e.length>0?e[e.length-1]:null}function $r(e){return function fP(e){return!!e&&(e instanceof _e||O(e.lift)&&O(e.subscribe))}(e)?e:vl(e)?kt(Promise.resolve(e)):Le(e)}const OP={exact:function U_(e,t,n){if(!di(e.segments,t.segments)||!tu(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!U_(e.children[r],t.children[r],n))return!1;return!0},subset:H_},B_={exact:function kP(e,t){return or(e,t)},subset:function FP(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>V_(e[n],t[n]))},ignored:()=>!0};function $_(e,t,n){return OP[n.paths](e.root,t.root,n.matrixParams)&&B_[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function H_(e,t,n){return z_(e,t,t.segments,n)}function z_(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!di(i,n)||t.hasChildren()||!tu(i,n,r))}if(e.segments.length===n.length){if(!di(e.segments,n)||!tu(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!H_(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!!(di(e.segments,i)&&tu(e.segments,i,r)&&e.children[He])&&z_(e.children[He],t,o,r)}}function tu(e,t,n){return t.every((r,i)=>B_[n](e[i].parameters,r.parameters))}class mo{constructor(t=new ot([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=go(this.queryParams)),this._queryParamMap}toString(){return jP.serialize(this)}}class ot{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 nu(this)}}class Ns{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=go(this.parameters)),this._parameterMap}toString(){return q_(this)}}function di(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Rs=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:function(){return new oh},providedIn:"root"}),t})();class oh{parse(t){const n=new XP(t);return new mo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Ps(t.root,!0)}`,r=function UP(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${ru(n)}=${ru(i)}`).join("&"):`${ru(n)}=${ru(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function BP(e){return encodeURI(e)}(t.fragment)}`:""}`}}const jP=new oh;function nu(e){return e.segments.map(t=>q_(t)).join("/")}function Ps(e,t){if(!e.hasChildren())return nu(e);if(t){const n=e.children[He]?Ps(e.children[He],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==He&&r.push(`${i}:${Ps(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function VP(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===He&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==He&&(n=n.concat(t(i,r)))}),n}(e,(r,i)=>i===He?[Ps(e.children[He],!1)]:[`${i}:${Ps(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[He]?`${nu(e)}/${n[0]}`:`${nu(e)}/(${n.join("//")})`}}function G_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ru(e){return G_(e).replace(/%3B/gi,";")}function sh(e){return G_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function iu(e){return decodeURIComponent(e)}function W_(e){return iu(e.replace(/\+/g,"%20"))}function q_(e){return`${sh(e.path)}${function $P(e){return Object.keys(e).map(t=>`;${sh(t)}=${sh(e[t])}`).join("")}(e.parameters)}`}const HP=/^[^\/()?;#]+/;function ah(e){const t=e.match(HP);return t?t[0]:""}const zP=/^[^\/()?;=#]+/,WP=/^[^=?&#]+/,ZP=/^[^&#]+/;class XP{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ot([],{}):new ot([],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[He]=new ot(t,n)),r}parseSegment(){const t=ah(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new ge(4009,!1);return this.capture(t),new Ns(iu(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function GP(e){const t=e.match(zP);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=ah(this.remaining);i&&(r=i,this.capture(r))}t[iu(n)]=iu(r)}parseQueryParam(t){const n=function qP(e){const t=e.match(WP);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function YP(e){const t=e.match(ZP);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=W_(n),o=W_(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=ah(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new ge(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=He);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[He]:new ot([],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 ge(4011,!1)}}function Z_(e){return e.segments.length>0?new ot([],{[He]:e}):e}function Y_(e){const t={};for(const r of Object.keys(e.children)){const o=Y_(e.children[r]);if(r===He&&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 KP(e){if(1===e.numberOfChildren&&e.children[He]){const t=e.children[He];return new ot(e.segments.concat(t.segments),t.children)}return e}(new ot(e.segments,t))}function fi(e){return e instanceof mo}function X_(e){let t;const i=Z_(function n(o){const s={};for(const l of o.children){const u=n(l);s[l.outlet]=u}const a=new ot(o.url,s);return o===e&&(t=a),a}(e.root));return t??i}function K_(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return lh(i,i,i,n,r);const o=function JP(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new J_(!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 J_(n,t,r)}(t);if(o.toRoot())return lh(i,i,new ot([],{}),n,r);const s=function eO(e,t,n){if(e.isAbsolute)return new su(t,!0,0);if(!n)return new su(t,!1,NaN);if(null===n.parent)return new su(n,!0,0);const r=ou(e.commands[0])?0:1;return function tO(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new ge(4005,!1);i=r.segments.length}return new su(r,!1,i-o)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?ks(s.segmentGroup,s.index,o.commands):ew(s.segmentGroup,s.index,o.commands);return lh(i,s.segmentGroup,a,n,r)}function ou(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Os(e){return"object"==typeof e&&null!=e&&e.outlets}function lh(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:Q_(e,t,n);const a=Z_(Y_(s));return new mo(a,o,i)}function Q_(e,t,n){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===t?n:Q_(o,t,n)}),new ot(e.segments,r)}class J_{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ou(r[0]))throw new ge(4003,!1);const i=r.find(Os);if(i&&i!==j_(r))throw new ge(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class su{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function ew(e,t,n){if(e||(e=new ot([],{})),0===e.segments.length&&e.hasChildren())return ks(e,t,n);const r=function rO(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(Os(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!nw(l,u,s))return o;r+=2}else{if(!nw(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!==He)&&e.children[He]&&1===e.numberOfChildren&&0===e.children[He].segments.length){const o=ks(e.children[He],t,n);return new ot(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=ew(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new ot(e.segments,i)}}function uh(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=uh(new ot([],{}),0,r))}),t}function tw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function nw(e,t,n){return e==n.path&&or(t,n.parameters)}const Fs="imperative";class sr{constructor(t,n){this.id=t,this.url=n}}class au extends sr{constructor(t,n,r="imperative",i=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ar extends sr{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ls extends sr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vo extends sr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=16}}class lu extends sr{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rw extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oO extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sO extends sr{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class aO extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lO extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uO{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cO{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class dO{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fO{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hO{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pO{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ch{}class dh{constructor(t){this.url=t}}class gO{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Vs,this.attachRef=null}}let Vs=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,i){const o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){const i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new gO,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class ow{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=fh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=fh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=hh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return hh(t,this._root).map(n=>n.value)}}function fh(e,t){if(e===t.value)return t;for(const n of t.children){const r=fh(e,n);if(r)return r}return null}function hh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=hh(e,n);if(r.length)return r.unshift(t),r}return[]}class xr{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function yo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class sw extends ow{constructor(t,n){super(t),this.snapshot=n,ph(this,t)}toString(){return this.snapshot.toString()}}function aw(e,t){const n=function mO(e,t){const s=new uu([],{},{},"",{},He,t,null,{});return new uw("",new xr(s,[]))}(0,t),r=new bn([new Ns("",{})]),i=new bn({}),o=new bn({}),s=new bn({}),a=new bn(""),l=new _o(r,i,s,a,o,He,t,n.root);return l.snapshot=n.root,new sw(new xr(l,[]),n)}class _o{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(Re(u=>u[Ts]))??Le(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._paramMap=this.params.pipe(Re(t=>go(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Re(t=>go(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function lw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function vO(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class uu{get title(){return this.data?.[Ts]}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||(this._paramMap=go(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=go(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class uw extends ow{constructor(t,n){super(n),this.url=t,ph(this,n)}toString(){return cw(this._root)}}function ph(e,t){t.value._routerState=e,t.children.forEach(n=>ph(e,n))}function cw(e){const t=e.children.length>0?` { ${e.children.map(cw).join(", ")} } `:"";return`${e.value}${t}`}function gh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,or(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),or(t.params,n.params)||e.paramsSubject.next(n.params),function PP(e,t){if(e.length!==t.length)return!1;for(let n=0;nor(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||mh(e.parent,t.parent))}let vh=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=He,this.activateEvents=new Ht,this.deactivateEvents=new Ht,this.attachEvents=new Ht,this.detachEvents=new Ht,this.parentContexts=me(Vs),this.location=me(jn),this.changeDetector=me(yf),this.environmentInjector=me(Sn),this.inputBinder=me(cu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){const{firstChange:i,previousValue:o}=r.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ge(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ge(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ge(4012,!1);this.location.detach();const r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){const r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){if(this.isActivated)throw new ge(4013,!1);this._activatedRoute=r;const o=this.location,a=r.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new yO(r,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275dir=Bt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zr]}),t})();class yO{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===_o?this.route:t===Vs?this.childContexts:this.parent.get(t,n)}}const cu=new De("");let dw=(()=>{var e;class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){this.outletDataSubscriptions.get(r)?.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){const{activatedRoute:i}=r,o=eh([i.queryParams,i.params,i.data]).pipe(Gn(([s,a,l],u)=>(l={...s,...a,...l},0===u?Le(l):Promise.resolve(l)))).subscribe(s=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(r);const a=function UT(e){const t=Xe(e);if(!t)return null;const n=new as(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}}}(i.component);if(a)for(const{templateName:l}of a.inputs)r.activatedComponentRef.setInput(l,s[l]);else this.unsubscribeFromRouteData(r)});this.outletDataSubscriptions.set(r,o)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();function js(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function wO(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return js(e,r,i);return js(e,r)})}(e,t,n);return new xr(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=>js(e,a)),s}}const r=function CO(e){return new _o(new bn(e.url),new bn(e.params),new bn(e.queryParams),new bn(e.fragment),new bn(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>js(e,o));return new xr(r,i)}}const yh="ngNavigationCancelingError";function fw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=fi(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=hw(!1,0,t);return i.url=n,i.navigationBehaviorOptions=r,i}function hw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[yh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function pw(e){return e&&e[yh]}let gw=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({type:e,selectors:[["ng-component"]],standalone:!0,features:[m0],decls:1,vars:0,template:function(r,i){1&r&&ze(0,"router-outlet")},dependencies:[vh],encapsulation:2}),t})();function _h(e){const t=e.children&&e.children.map(_h),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==He&&(n.component=gw),n}function Un(e){return e.outlet||He}function Bs(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 MO{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),gh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=yo(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=yo(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[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=yo(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const i=yo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new pO(o.value.snapshot))}),t.children.length&&this.forwardEvent(new fO(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(gh(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),gh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Bs(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 mw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class du{constructor(t,n){this.component=t,this.route=n}}function TO(e,t,n){const r=e._root;return $s(r,t?t._root:null,n,[r.value])}function wo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function nb(e){return null!==ea(e)}(e)?t.get(e):e:r}function $s(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=yo(t);return e.children.forEach(s=>{(function RO(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 PO(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!di(e.url,t.url);case"pathParamsOrQueryParamsChange":return!di(e.url,t.url)||!or(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mh(e,t)||!or(e.queryParams,t.queryParams);default:return!mh(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new mw(r)):(o.data=s.data,o._resolvedData=s._resolvedData),$s(e,t,o.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new du(a.outlet.component,s))}else s&&Us(t,a,i),i.canActivateChecks.push(new mw(r)),$s(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])=>Us(a,n.getContext(s),i)),i}function Us(e,t,n){const r=yo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{Us(s,i.component?t?t.children.getContext(o):null:t,n)}),n.canDeactivateChecks.push(new du(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Hs(e){return"function"==typeof e}function vw(e){return e instanceof Jl||"EmptyError"===e?.name}const fu=Symbol("INITIAL_VALUE");function Co(){return Gn(e=>eh(e.map(t=>t.pipe(po(1),function SP(...e){const t=Mo(e);return Ie((n,r)=>{(t?th(e,n,t):th(e,n)).subscribe(r)})}(fu)))).pipe(Re(t=>{for(const n of t)if(!0!==n){if(n===fu)return fu;if(!1===n||n instanceof mo)return n}return!0}),Nn(t=>t!==fu),po(1)))}function yw(e){return function ve(...e){return re(e)}(Gt(t=>{if(fi(t))throw fw(0,t)}),Re(t=>!0===t))}class hu{constructor(t){this.segmentGroup=t||null}}class _w{constructor(t){this.urlTree=t}}function bo(e){return xs(new hu(e))}function ww(e){return xs(new _w(e))}class JO{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new ge(4002,!1)}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return Le(r);if(i.numberOfChildren>1||!i.children[He])return xs(new ge(4e3,!1));i=i.children[He]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new mo(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 ot(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 ge(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 wh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ek(e,t,n,r,i){const o=Ch(e,t,n);return o.matched?(r=function DO(e,t){return e.providers&&!e._injector&&(e._injector=Wd(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function XO(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?Le(i.map(s=>{const a=wo(s,e);return $r(function jO(e){return e&&Hs(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Co(),yw()):Le(!0)}(r,t,n).pipe(Re(s=>!0===s?o:{...wh}))):Le(o)}function Ch(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...wh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const i=(t.matcher||RP)(n,e,t);if(!i)return{...wh};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 Cw(e,t,n,r){return n.length>0&&function rk(e,t,n){return n.some(r=>pu(e,t,r)&&Un(r)!==He)}(e,n,r)?{segmentGroup:new ot(t,nk(r,new ot(n,e.children))),slicedSegments:[]}:0===n.length&&function ik(e,t,n){return n.some(r=>pu(e,t,r))}(e,n,r)?{segmentGroup:new ot(e.segments,tk(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ot(e.segments,e.children),slicedSegments:n}}function tk(e,t,n,r,i){const o={};for(const s of r)if(pu(e,n,s)&&!i[Un(s)]){const a=new ot([],{});o[Un(s)]=a}return{...i,...o}}function nk(e,t){const n={};n[He]=t;for(const r of e)if(""===r.path&&Un(r)!==He){const i=new ot([],{});n[Un(r)]=i}return n}function pu(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class lk{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.allowRedirects=!0,this.applyRedirects=new JO(this.urlSerializer,this.urlTree)}noMatchError(t){return new ge(4002,!1)}recognize(){const t=Cw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,He).pipe(ci(n=>{if(n instanceof _w)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof hu?this.noMatchError(n):n}),Re(n=>{const r=new uu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},He,this.rootComponentType,null,{}),i=new xr(r,n),o=new uw("",i),s=function QP(e,t,n=null,r=null){return K_(X_(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),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,He).pipe(ci(r=>{throw r instanceof hu?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=lw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}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)}processChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return kt(i).pipe(Ms(o=>{const s=r.children[o],a=function AO(e,t){const n=e.filter(r=>Un(r)===t);return n.push(...e.filter(r=>Un(r)!==t)),n}(n,o);return this.processSegmentGroup(t,a,s,o)}),function xP(e,t){return Ie(function AP(e,t,n,r,i){return(o,s)=>{let a=n,l=t,u=0;o.subscribe(Te(s,c=>{const p=u++;l=a?e(l,c,p):(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)),eu(null),function MP(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Nn((i,o)=>e(i,o,r)):G,rh(1),n?eu(t):F_(()=>new Jl))}(),Ot(o=>{if(null===o)return bo(r);const s=bw(o);return function uk(e){e.sort((t,n)=>t.value.outlet===He?-1:n.value.outlet===He?1:t.value.outlet.localeCompare(n.value.outlet))}(s),Le(s)}))}processSegment(t,n,r,i,o,s){return kt(n).pipe(Ms(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,i,o,s).pipe(ci(l=>{if(l instanceof hu)return Le(null);throw l}))),ui(a=>!!a),ci(a=>{if(vw(a))return function sk(e,t,n){return 0===t.length&&!e.children[n]}(r,i,o)?Le([]):bo(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return function ok(e,t,n,r){return!!(Un(e)===r||r!==He&&pu(t,n,e))&&("**"===e.path||Ch(t,e,n).matched)}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,i,r,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):bo(i):bo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i){const o=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ww(o):this.applyRedirects.lineralizeSegments(r,o).pipe(Ot(s=>{const a=new ot(s,{});return this.processSegment(t,n,a,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Ch(n,i,o);if(!a)return bo(n);const p=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?ww(p):this.applyRedirects.lineralizeSegments(i,p).pipe(Ot(A=>this.processSegment(t,r,n,A.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a;if("**"===r.path){const l=i.length>0?j_(i).parameters:{};a=Le({snapshot:new uu(i,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Dw(r),Un(r),r.component??r._loadedComponent??null,r,Ew(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=ek(n,r,i,t).pipe(Re(({matched:l,consumedSegments:u,remainingSegments:c,parameters:p})=>l?{snapshot:new uu(u,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Dw(r),Un(r),r.component??r._loadedComponent??null,r,Ew(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(Gn(l=>null===l?bo(n):this.getChildConfig(t=r._injector??t,r,i).pipe(Gn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:p,consumedSegments:A,remainingSegments:N}=l,{segmentGroup:z,slicedSegments:Q}=Cw(n,A,N,u);if(0===Q.length&&z.hasChildren())return this.processChildren(c,u,z).pipe(Re(de=>null===de?null:[new xr(p,de)]));if(0===u.length&&0===Q.length)return Le([new xr(p,[])]);const ue=Un(r)===o;return this.processSegment(c,u,z,Q,ue?He:o,!0).pipe(Re(de=>[new xr(p,de)]))}))))}getChildConfig(t,n,r){return n.children?Le({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?Le({routes:n._loadedRoutes,injector:n._loadedInjector}):function YO(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?Le(!0):Le(i.map(s=>{const a=wo(s,e);return $r(function kO(e){return e&&Hs(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Co(),yw())}(t,n,r).pipe(Ot(i=>i?this.configLoader.loadChildren(t,n).pipe(Gt(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):function QO(e){return xs(hw(!1,3))}())):Le({routes:[],injector:t})}}function ck(e){const t=e.value.routeConfig;return t&&""===t.path}function bw(e){const t=[],n=new Set;for(const r of e){if(!ck(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=bw(r.children);t.push(new xr(r.value,i))}return t.filter(r=>!n.has(r))}function Dw(e){return e.data||{}}function Ew(e){return e.resolve||{}}function Sw(e){return"string"==typeof e.title||null===e.title}function bh(e){return Gn(t=>{const n=e(t);return n?kt(n).pipe(Re(()=>t)):Le(t)})}const Do=new De("ROUTES");let Dh=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=me(l1)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Le(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);const i=$r(r.loadComponent()).pipe(Re(Iw),Gt(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),ih(()=>{this.componentLoaders.delete(r)})),o=new k_(i,()=>new fe).pipe(nh());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Le({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Re(l=>{this.onLoadEndListener&&this.onLoadEndListener(i);let u,c;return Array.isArray(l)?c=l:(u=l.create(r).injector,c=u.get(Do,[],Ge.Self|Ge.Optional).flat()),{routes:c.map(_h),injector:u}}),ih(()=>{this.childrenLoaders.delete(i)})),a=new k_(s,()=>new fe).pipe(nh());return this.childrenLoaders.set(i,a),a}loadModuleFactoryOrRoutes(r){return $r(r()).pipe(Re(Iw),Ot(i=>i instanceof p0||Array.isArray(i)?Le(i):kt(this.compiler.compileModuleAsync(i))))}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Iw(e){return function vk(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let gu=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new fe,this.transitionAbortSubject=new fe,this.configLoader=me(Dh),this.environmentInjector=me(Sn),this.urlSerializer=me(Rs),this.rootContexts=me(Vs),this.inputBindingEnabled=null!==me(cu,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Le(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new cO(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new uO(o))}complete(){this.transitions?.complete()}handleNavigationRequest(r){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...r,id:i})}setupNavigations(r,i,o){return this.transitions=new bn({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:r.urlHandlingStrategy.extract(i),urlAfterRedirects:r.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Fs,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Nn(s=>0!==s.id),Re(s=>({...s,extractedUrl:r.urlHandlingStrategy.extract(s.rawUrl)})),Gn(s=>{this.currentTransition=s;let a=!1,l=!1;return Le(s).pipe(Gt(u=>{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}}),Gn(u=>{const c=u.currentBrowserUrl.toString(),p=!r.navigated||u.extractedUrl.toString()!==c||c!==u.currentUrlTree.toString();if(!p&&"reload"!==(u.extras.onSameUrlNavigation??r.onSameUrlNavigation)){const N="";return this.events.next(new vo(u.id,this.urlSerializer.serialize(u.rawUrl),N,0)),u.resolve(null),zn}if(r.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Le(u).pipe(Gn(N=>{const z=this.transitions?.getValue();return this.events.next(new au(N.id,this.urlSerializer.serialize(N.extractedUrl),N.source,N.restoredState)),z!==this.transitions?.getValue()?zn:Promise.resolve(N)}),function dk(e,t,n,r,i,o){return Ot(s=>function ak(e,t,n,r,i,o,s="emptyOnly"){return new lk(e,t,n,r,i,s,o).recognize()}(e,t,n,r,s.extractedUrl,i,o).pipe(Re(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,r.paramsInheritanceStrategy),Gt(N=>{s.targetSnapshot=N.targetSnapshot,s.urlAfterRedirects=N.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:N.urlAfterRedirects};const z=new rw(N.id,this.urlSerializer.serialize(N.extractedUrl),this.urlSerializer.serialize(N.urlAfterRedirects),N.targetSnapshot);this.events.next(z)}));if(p&&r.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){const{id:N,extractedUrl:z,source:Q,restoredState:ue,extras:de}=u,ee=new au(N,this.urlSerializer.serialize(z),Q,ue);this.events.next(ee);const Ee=aw(0,this.rootComponentType).snapshot;return this.currentTransition=s={...u,targetSnapshot:Ee,urlAfterRedirects:z,extras:{...de,skipLocationChange:!1,replaceUrl:!1}},Le(s)}{const N="";return this.events.next(new vo(u.id,this.urlSerializer.serialize(u.extractedUrl),N,1)),u.resolve(null),zn}}),Gt(u=>{const c=new oO(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),Re(u=>(this.currentTransition=s={...u,guards:TO(u.targetSnapshot,u.currentSnapshot,this.rootContexts)},s)),function $O(e,t){return Ot(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Le({...n,guardsResult:!0}):function UO(e,t,n,r){return kt(e).pipe(Ot(i=>function ZO(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Le(o.map(a=>{const l=Bs(t)??i,u=wo(a,l);return $r(function VO(e){return e&&Hs(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(ui())})).pipe(Co()):Le(!0)}(i.component,i.route,n,t,r)),ui(i=>!0!==i,!0))}(s,r,i,e).pipe(Ot(a=>a&&function OO(e){return"boolean"==typeof e}(a)?function HO(e,t,n,r){return kt(t).pipe(Ms(i=>th(function GO(e,t){return null!==e&&t&&t(new dO(e)),Le(!0)}(i.route.parent,r),function zO(e,t){return null!==e&&t&&t(new hO(e)),Le(!0)}(i.route,r),function qO(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function NO(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=>O_(()=>Le(s.guards.map(l=>{const u=Bs(s.node)??n,c=wo(l,u);return $r(function LO(e){return e&&Hs(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(ui())})).pipe(Co())));return Le(o).pipe(Co())}(e,i.path,n),function WO(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Le(!0);const i=r.map(o=>O_(()=>{const s=Bs(t)??n,a=wo(o,s);return $r(function FO(e){return e&&Hs(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(ui())}));return Le(i).pipe(Co())}(e,i.route,n))),ui(i=>!0!==i,!0))}(r,o,e,t):Le(a)),Re(a=>({...n,guardsResult:a})))})}(this.environmentInjector,u=>this.events.next(u)),Gt(u=>{if(s.guardsResult=u.guardsResult,fi(u.guardsResult))throw fw(0,u.guardsResult);const c=new sO(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),Nn(u=>!!u.guardsResult||(this.cancelNavigationTransition(u,"",3),!1)),bh(u=>{if(u.guards.canActivateChecks.length)return Le(u).pipe(Gt(c=>{const p=new aO(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}),Gn(c=>{let p=!1;return Le(c).pipe(function fk(e,t){return Ot(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return Le(n);let o=0;return kt(i).pipe(Ms(s=>function hk(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!Sw(i)&&(o[Ts]=i.title),function pk(e,t,n,r){const i=function gk(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return Le({});const o={};return kt(i).pipe(Ot(s=>function mk(e,t,n,r){const i=Bs(t)??r,o=wo(e,i);return $r(o.resolve?o.resolve(t,n):i.runInContext(()=>o(t,n)))}(e[s],t,n,r).pipe(ui(),Gt(a=>{o[s]=a}))),rh(1),function TP(e){return Re(()=>e)}(o),ci(s=>vw(s)?zn:xs(s)))}(o,e,t,r).pipe(Re(s=>(e._resolvedData=s,e.data=lw(e,n).resolve,i&&Sw(i)&&(e.data[Ts]=i.title),null)))}(s.route,r,e,t)),Gt(()=>o++),rh(1),Ot(s=>o===i.length?Le(n):zn))})}(r.paramsInheritanceStrategy,this.environmentInjector),Gt({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(c,"",2)}}))}),Gt(c=>{const p=new lO(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}))}),bh(u=>{const c=p=>{const A=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&A.push(this.configLoader.loadComponent(p.routeConfig).pipe(Gt(N=>{p.component=N}),Re(()=>{})));for(const N of p.children)A.push(...c(N));return A};return eh(c(u.targetSnapshot.root)).pipe(eu(),po(1))}),bh(()=>this.afterPreactivation()),Re(u=>{const c=function _O(e,t,n){const r=js(e,t._root,n?n._root:void 0);return new sw(r,t)}(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s={...u,targetRouterState:c},s}),Gt(()=>{this.events.next(new ch)}),((e,t,n,r)=>Re(i=>(new MO(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)))(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),po(1),Gt({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ar(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),r.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),L_(this.transitionAbortSubject.pipe(Gt(u=>{throw u}))),ih(()=>{a||l||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),ci(u=>{if(l=!0,pw(u))this.events.next(new Ls(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),function bO(e){return pw(e)&&fi(e.url)}(u)?this.events.next(new dh(u.url)):s.resolve(!1);else{this.events.next(new lu(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0));try{s.resolve(r.errorHandler(u))}catch(c){s.reject(c)}}return zn}))}))}cancelNavigationTransition(r,i,o){const s=new Ls(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Aw(e){return e!==Fs}let xw=(()=>{var e;class t{buildTitle(r){let i,o=r.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===He);return i}getResolvedTitleForRoute(r){return r.data[Ts]}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:function(){return me(yk)},providedIn:"root"}),t})(),yk=(()=>{var e;class t extends xw{constructor(r){super(),this.title=r}updateTitle(r){const i=this.buildTitle(r);void 0!==i&&this.title.setTitle(i)}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(A_))},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),_k=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:function(){return me(Ck)},providedIn:"root"}),t})();class wk{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let Ck=(()=>{var e;class t extends wk{}return(e=t).\u0275fac=function(){let n;return function(i){return(n||(n=function mg(e){return ur(()=>{const t=e.prototype.constructor,n=t[cr]||pc(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[cr]||pc(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(i||e)}}(),e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const mu=new De("",{providedIn:"root",factory:()=>({})});let bk=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:function(){return me(Dk)},providedIn:"root"}),t})(),Dk=(()=>{var e;class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var zs=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(zs||{});function Mw(e,t){e.events.pipe(Nn(n=>n instanceof Ar||n instanceof Ls||n instanceof lu||n instanceof vo),Re(n=>n instanceof Ar||n instanceof vo?zs.COMPLETE:n instanceof Ls&&(0===n.code||1===n.code)?zs.REDIRECTING:zs.FAILED),Nn(n=>n!==zs.REDIRECTING),po(1)).subscribe(()=>{t()})}function Ek(e){throw e}function Sk(e,t,n){return t.parse("/")}const Ik={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ak={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _n=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=me(s1),this.isNgZoneEnabled=!1,this._events=new fe,this.options=me(mu,{optional:!0})||{},this.pendingTasks=me(a1),this.errorHandler=this.options.errorHandler||Ek,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Sk,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=me(bk),this.routeReuseStrategy=me(_k),this.titleStrategy=me(xw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=me(Do,{optional:!0})?.flat()??[],this.navigationTransitions=me(gu),this.urlSerializer=me(Rs),this.location=me(xf),this.componentInputBindingEnabled=!!me(cu,{optional:!0}),this.eventsSubscription=new b,this.isNgZoneEnabled=me(ut)instanceof ut&&ut.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new mo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=aw(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(r=>{this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId},r=>{this.console.warn(`Unhandled Navigation Error: ${r}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const r=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(Tw(i)&&this._events.next(i));if(i instanceof au)Aw(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(i instanceof vo)this.rawUrlTree=o.rawUrl;else if(i instanceof rw){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(i instanceof ch)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(i instanceof Ls)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(o);else if(i instanceof dh){const s=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),a={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Aw(o.source)};this.scheduleNavigation(s,Fs,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}i instanceof lu&&this.restoreHistory(o,!0),i instanceof Ar&&(this.navigated=!0),Tw(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const r=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Fs,r)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(r=>{const i="popstate"===r.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(r.url,i,r.state)},0)}))}navigateToSyncWithBrowser(r,i,o){const s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}const l=this.parseUrl(r);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(_h),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,i={}){const{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:u}=i,c=u?this.currentUrlTree.fragment:a;let A,p=null;switch(l){case"merge":p={...this.currentUrlTree.queryParams,...s};break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=s||null}null!==p&&(p=this.removeEmptyProps(p));try{A=X_(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof r[0]||!r[0].startsWith("/"))&&(r=[]),A=this.currentUrlTree.root}return K_(A,r,p,c??null)}navigateByUrl(r,i={skipLocationChange:!1}){const o=fi(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Fs,null,i)}navigate(r,i={skipLocationChange:!1}){return function xk(e){for(let t=0;t{const s=r[o];return null!=s&&(i[o]=s),i},{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,u,c;a?(l=a.resolve,u=a.reject,c=a.promise):c=new Promise((A,N)=>{l=A,u=N});const p=this.pendingTasks.add();return Mw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:r,extras:s,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(A=>Promise.reject(A))}setBrowserUrl(r,i){const o=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(r,i=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(r),this.browserUrlTree=r.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=r.currentRouterState,this.currentUrlTree=r.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return"computed"===this.canceledNavigationResolution?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Tw(e){return!(e instanceof ch||e instanceof dh)}let vu=(()=>{var e;class t{constructor(r,i,o,s,a,l){this.router=r,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new fe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=r.events.subscribe(c=>{c instanceof Ar&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){null!=r?(this.commands=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(r,i,o,s,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==r||i||o||s||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const r=null===this.href?null:function pm(e,t,n){return function oS(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?hm:Bc}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(r,i){const o=this.renderer,s=this.el.nativeElement;null!==i?o.setAttribute(s,r,i):o.removeAttribute(s,r)}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})}}return(e=t).\u0275fac=function(r){return new(r||e)(Ne(_n),Ne(_o),function Ea(e){return function SD(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{var e;class t{get isActive(){return this._isActive}constructor(r,i,o,s,a){this.router=r,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ht,this.routerEventsSubscription=r.events.subscribe(l=>{l instanceof Ar&&this.update()})}ngAfterContentInit(){Le(this.links.changes,Le(null)).pipe(mi()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const r=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=kt(r).pipe(mi()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(r){const i=Array.isArray(r)?r:r.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(r){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const r=this.hasActiveLinks();this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.classes.forEach(i=>{r?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),r&&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(r))})}isLinkActive(r){const i=function Mk(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&r.isActive(o.urlTree,i)}hasActiveLinks(){const r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}}return(e=t).\u0275fac=function(r){return new(r||e)(Ne(_n),Ne(vr),Ne(tl),Ne(yf),Ne(vu,8))},e.\u0275dir=Bt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(1&r&&function B0(e,t,n,r){const i=Ke();if(i.firstCreatePass){const o=Vt();U0(i,new L0(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==(2&n)&&(i.staticContentQueries=!0)}$0(i,ie(),n)}(o,vu,5),2&r){let s;tf(s=nf())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Zr]}),t})();class Rw{}let Tk=(()=>{var e;class t{constructor(r,i,o,s,a){this.router=r,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Nn(r=>r instanceof Ar),Ms(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(r,i){const o=[];for(const s of i){s.providers&&!s._injector&&(s._injector=Wd(s.providers,r,`Route: ${s.path}`));const a=s._injector??r,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return kt(o).pipe(mi())}preloadConfig(r,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(r,i):Le(null);const s=o.pipe(Ot(a=>null===a?Le(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??r,a.routes))));return i.loadComponent&&!i._loadedComponent?kt([s,this.loader.loadComponent(i)]).pipe(mi()):s})}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(_n),xe(l1),xe(Sn),xe(Rw),xe(Dh))},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Eh=new De("");let Pw=(()=>{var e;class t{constructor(r,i,o,s,a={}){this.urlSerializer=r,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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(r=>{r instanceof au?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof Ar?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof vo&&0===r.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof iw&&(r.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(r.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new iw(r,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(r){!function ev(){throw new Error("invalid")}()},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),t})();function Mr(e,t){return{\u0275kind:e,\u0275providers:t}}function kw(){const e=me(In);return t=>{const n=e.get(co);if(t!==n.components[0])return;const r=e.get(_n),i=e.get(Fw);1===e.get(Sh)&&r.initialNavigation(),e.get(Lw,null,Ge.Optional)?.setUpPreloading(),e.get(Eh,null,Ge.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const Fw=new De("",{factory:()=>new fe}),Sh=new De("",{providedIn:"root",factory:()=>1}),Lw=new De("");function Ok(e){return Mr(0,[{provide:Lw,useExisting:Tk},{provide:Rw,useExisting:e}])}const Vw=new De("ROUTER_FORROOT_GUARD"),Fk=[xf,{provide:Rs,useClass:oh},_n,Vs,{provide:_o,useFactory:function Ow(e){return e.routerState.root},deps:[_n]},Dh,[]];function Lk(){return new g1("Router",_n)}let jw=(()=>{var e;class t{constructor(r){}static forRoot(r,i){return{ngModule:t,providers:[Fk,[],{provide:Do,multi:!0,useValue:r},{provide:Vw,useFactory:$k,deps:[[_n,new Aa,new xa]]},{provide:mu,useValue:i||{}},i?.useHash?{provide:li,useClass:qT}:{provide:li,useClass:G1},{provide:Eh,useFactory:()=>{const e=me(dR),t=me(ut),n=me(mu),r=me(gu),i=me(Rs);return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pw(i,r,e,t,n)}},i?.preloadingStrategy?Ok(i.preloadingStrategy).\u0275providers:[],{provide:g1,multi:!0,useFactory:Lk},i?.initialNavigation?Uk(i):[],i?.bindToComponentInputs?Mr(8,[dw,{provide:cu,useExisting:dw}]).\u0275providers:[],[{provide:Bw,useFactory:kw},{provide:Rl,multi:!0,useExisting:Bw}]]}}static forChild(r){return{ngModule:t,providers:[{provide:Do,multi:!0,useValue:r}]}}}return(e=t).\u0275fac=function(r){return new(r||e)(xe(Vw,8))},e.\u0275mod=fr({type:e}),e.\u0275inj=Wn({}),t})();function $k(e){return"guarded"}function Uk(e){return["disabled"===e.initialNavigation?Mr(3,[{provide:Ml,multi:!0,useFactory:()=>{const t=me(_n);return()=>{t.setUpLocationChangeListener()}}},{provide:Sh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Mr(2,[{provide:Sh,useValue:0},{provide:Ml,multi:!0,deps:[In],useFactory:t=>{const n=t.get(GT,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const i=t.get(_n),o=t.get(Fw);Mw(i,()=>{r(!0)}),t.get(gu).afterPreactivation=()=>(r(!0),o.closed?Le(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const Bw=new De(""),Ih=new De("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),$w=new De("ngx-window",{providedIn:"root",factory:()=>{const{defaultView:e}=me(Rt);if(!e)throw new Error("Window is not available");return e}}),Wk=new De("ngx-data-layer",{providedIn:"root",factory:()=>function Gk(e){return e?e.dataLayer=e.dataLayer||[]:null}(me($w))}),Uw=new De("ngx-gtag-fn",{providedIn:"root",factory:()=>function qk(e,t){return e?e.gtag=e.gtag||function(){t.push(arguments)}:null}(me($w),me(Wk))});let yu=(()=>{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,p])=>l.set(c,p));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)(xe(Ih),xe(Rt),xe(Uw))},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yk={provide:Ml,multi:!0,useFactory:function Xk(e,t,n){return R_(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:[Ih,Uw,Rt]},Hw=new De("ngx-google-analytics-routing-settings",{factory:()=>({})}),Kk={provide:Rl,multi:!0,useFactory:function Qk(e,t){return function(){var n=R_(function*(r){const i=r.injector.get(_n),{include:o=[],exclude:s=[]}=e??{},a=zw(o),l=zw(s),u=i.events.pipe(Nn(c=>c instanceof Ar),function zk(e){return Nn((t,n)=>e<=n)}(1),Nn(c=>!(a.length>0)||a.some(p=>p.test(c.urlAfterRedirects))),Nn(c=>!(l.length>0&&l.some(p=>p.test(c.urlAfterRedirects))))).subscribe(c=>t.pageView(c.urlAfterRedirects,void 0));r.onDestroy(()=>u.unsubscribe())});return function(r){return n.apply(this,arguments)}}()},deps:[Hw,yu]};function zw(e){return e.map(t=>t instanceof RegExp?t:new RegExp(`^${t.replace("*",".*")}$`,"i"))}let Gw=(()=>{class e{static forRoot(n,r=[],i,o,s){return{ngModule:e,providers:[{provide:Ih,useValue:{trackingCode:n,initCommands:r,uri:i,enableTracing:o,nonce:s}},Yk]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=fr({type:e}),e.\u0275inj=Wn({}),e})(),Jk=(()=>{class e{static forRoot(n){return{ngModule:e,providers:[{provide:Hw,useValue:n??{}}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=fr({type:e}),e.\u0275inj=Wn({providers:[Kk],imports:[l_,Gw]}),e})();const Ah="3.1.6",xh=function(){return{exact:!0}};let e3=(()=>{var e;class t{constructor(){this.document=me(Rt),this.platformId=me(ti),this.backgroundImagesCount=8}ngOnInit(){if(this.document.head.querySelector('meta[name="version"]')?.setAttribute("content",Ah),!Hf(this.platformId)){const r=Math.floor(Math.random()*this.backgroundImagesCount+1);this.document.body.style.backgroundImage=`url('/assets/bg${r}.jpg')`}}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({type:e,selectors:[["app-root"]],decls:54,vars:6,consts:[[1,"container","mx-auto","p-4"],[1,"card","p-4","mb-4","flex","lg:inline-flex","flex-col","sm:flex-row","items-center","sm:items-end","pb-0","overflow-hidden"],[1,"pb-4","pr-4"],["role","img","aria-label","Lyric Converter",1,"fill-white","h-[88px]"],[0,"xlink","href","#lyric-converter-logo"],[1,"flex","sm:ml-auto"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/",1,"text-white","text-xl","p-4","rounded-t-md","hover:no-underline","hover:bg-lc-highlight/20",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/about",1,"text-white","text-xl","p-4","rounded-t-md","hover:no-underline","hover:bg-lc-highlight/20",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/help",1,"text-white","text-xl","p-4","rounded-t-md","hover:no-underline","hover:bg-lc-highlight/20",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&&(le(0,"div",0)(1,"header",1)(2,"h1",2),xt(),le(3,"svg",3),ze(4,"use",4),se()(),Jn(),le(5,"nav",5)(6,"a",6),be(7,"Convert"),se(),le(8,"a",7),be(9,"About"),se(),le(10,"a",8),be(11,"Help"),se()()(),ze(12,"router-outlet"),se(),xt(),le(13,"svg",9)(14,"symbol",10)(15,"g",11),ze(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),se(),le(25,"g",21),ze(26,"path",22)(27,"path",23)(28,"path",24)(29,"path",25)(30,"path",26)(31,"path",27),se()(),le(32,"symbol",28),ze(33,"path",29),se(),le(34,"symbol",30),ze(35,"path",31),se(),le(36,"symbol",32),ze(37,"path",33),se(),le(38,"symbol",34),ze(39,"path",35),se(),le(40,"symbol",36),ze(41,"path",37)(42,"path",38),se(),le(43,"symbol",39),ze(44,"path",40),se(),le(45,"symbol",41),ze(46,"path",42),se(),le(47,"symbol",43),ze(48,"path",44),se(),le(49,"symbol",45),ze(50,"path",46),se(),le(51,"symbol",47),ze(52,"path",48)(53,"path",49),se()()),2&r&&(Be(6),Ze("routerLinkActiveOptions",El(3,xh)),Be(2),Ze("routerLinkActiveOptions",El(4,xh)),Be(2),Ze("routerLinkActiveOptions",El(5,xh)))},dependencies:[vh,vu,Nw]}),t})(),Ww=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({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-lg","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&&(le(0,"form",0),ze(1,"input",1)(2,"input",2)(3,"input",3)(4,"input",4),le(5,"button",5),xt(),le(6,"svg",6),ze(7,"use",7),se(),be(8," Donate! "),se(),Jn(),ze(9,"img",8),se())},encapsulation:2}),t})(),t3=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({type:e,selectors:[["app-about"]],decls:44,vars:0,consts:[[1,"grid","md:grid-cols-3","gap-4"],[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","btn-lg"],["role","img","aria-label","Github:",1,"icon"],[0,"xlink","href","#github"]],template:function(r,i){1&r&&(le(0,"div",0)(1,"div",1)(2,"h3",2),be(3,"Why Was This Made?"),se(),le(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 "),le(7,"em"),be(8,"really"),se(),be(9," wanted to switch over to a Mac. After looking into it, ProPresenter seemed like a great choice. "),se(),le(10,"p",4),be(11," After making the leap, we quickly realized that SongShow Plus had absolutely "),le(12,"strong"),be(13,"no way to export"),se(),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. "),se(),le(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! "),se(),le(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. "),le(19,"strong"),be(20,"BUT"),se(),be(21,", here it is. I hope you find it useful. "),se()()(),le(22,"div")(23,"div",5)(24,"h3",2),be(25,"Donations are welcome!"),se(),le(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. "),se(),ze(29,"app-donate-button"),se()(),le(30,"div",6)(31,"h3",2),be(32,"Want To Make This Better?"),se(),le(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. "),se(),le(36,"a",7),xt(),le(37,"svg",8),ze(38,"use",9),se(),be(39," Fork On GitHub! "),se()()()(),Jn(),le(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 "),se()()()())},dependencies:[Ww]}),t})();function Mh(e){e||(function rl(e){if(!sp()&&!function ub(){return vi}())throw new ge(-203,!1)}(),e=me(Gi));const t=new _e(n=>e.onDestroy(n.next.bind(n)));return n=>n.pipe(L_(t))}globalThis;const Gs=" | ",Qw="[[LyricConverter Custom Error]]";let Jw=(()=>{var e;class t{constructor(){this.$gaService=me(yu),this.errorsList=[],this.errorsChanged$=new fe}add(r){this.isCustomLyricConverterError(r.thrownError)&&(r.message=r.thrownError.message),this.errorsList.push(r),this.errorsChanged$.next(this.errorsList.slice()),this.$gaService.event("error","convert",r.message),console.warn("[LyricConverter Error Service]",r)}clear(){this.errorsList=[],this.errorsChanged$.next(this.errorsList.slice())}isCustomLyricConverterError(r){return null!=r&&Object.hasOwn(r,"cause")&&r.cause===Qw}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Ws{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 f3{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=Ws.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 p=n.substring(c.begin.position,c.end.position+c.end.name.length+2);if(s.includes(c.type)){let A=c.begin.position+c.begin.name.length+3;null!=c.begin.sectionLabel&&(A+=c.begin.sectionLabel.length+1);const N=n.substring(A,c.end.position);o.push({full:p,content:N,type:c.type,sectionLabel:c.begin.sectionLabel})}else i.push(p)}const a=i.reduce((c,p)=>c.replace(p,""),n);return o.reduce((c,p)=>{let A="";return null!=p.sectionLabel?A=p.sectionLabel:/^c(horus)?$/.test(p.type)&&!/^chorus/i.test(p.content)?A="Chorus:\n":/^v(erse)?$/.test(p.type)&&!/^verse/i.test(p.content)?A="Verse:\n":/^b(ridge)?$/.test(p.type)&&!/^bridge/i.test(p.content)&&(A="Bridge:\n"),c.replace(p.full,A+p.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 eC extends Error{constructor(t){return super(),new Error(t,{cause:Qw})}}class h3{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 eC(`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 Ur=Y(660);class p3{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}}function qs(e){return(qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function _t(e,t,n){return(t=function m3(e){var t=function g3(e,t){if("object"!==qs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class v3{constructor(){_t(this,"lyricLineParser",new Ur.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 w3{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 Ur.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!0,attributeNamePrefix:"",parseTagValue:!0,parseAttributeValue:!0,stopNodes:["song.lyrics.verse.lines","song.lyrics.instrument.lines"],isArray:(c,p)=>t.includes(p),tagValueProcessor:(c,p,A)=>"song.lyrics.verse.lines"===A?p.replace(/<\/?br ?\/?>([\r\n])?/gi,"\n").replace(//g,""):null}).parse(e),i=new v3;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(Gs)})}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(Gs);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 C3{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=Ws.normalizeLineEndings(t.dataAsString).split("\n\n\n");if(2!==o.length||null==o[0]||null==o[1])throw new eC(`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 D3="function"==typeof atob,E3="function"==typeof btoa,So="function"==typeof Buffer,rC="function"==typeof TextDecoder?new TextDecoder:void 0,iC="function"==typeof TextEncoder?new TextEncoder:void 0,Zs=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Du=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Zs),I3=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,jt=String.fromCharCode.bind(String),oC="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),aC=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Oh=E3?e=>btoa(e):So?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+=Zs[t>>18&63]+Zs[t>>12&63]+Zs[t>>6&63]+Zs[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},kh=So?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?jt(192|t>>>6)+jt(128|63&t):jt(224|t>>>12&15)+jt(128|t>>>6&63)+jt(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return jt(240|t>>>18&7)+jt(128|t>>>12&63)+jt(128|t>>>6&63)+jt(128|63&t)},x3=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,cC=So?e=>Buffer.from(e,"utf8").toString("base64"):iC?e=>kh(iC.encode(e)):e=>Oh((e=>e.replace(x3,A3))(e)),M3=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T3=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 jt(55296+(n>>>10))+jt(56320+(1023&n));case 3:return jt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return jt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Fh=D3?e=>atob(aC(e)):So?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!I3.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?jt(t>>16&255,t>>8&255):jt(t>>16&255,t>>8&255,255&t);return n},pC=So?e=>oC(Buffer.from(e,"base64")):e=>oC(Fh(e).split("").map(t=>t.charCodeAt(0))),N3=So?e=>Buffer.from(e,"base64").toString("utf8"):rC?e=>rC.decode(pC(e)):e=>(e=>e.replace(M3,T3))(Fh(e)),Hn_encode=(e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"))(cC(e)):cC(e),Hn_decode=e=>N3((e=>aC(e.replace(/[-_]/g,t=>"-"==t?"+":"/")))(e)),Vh=/^#?[a-f\d]{6}$/i,wC="[10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)?",jh=new RegExp("^"+wC+"$"),CC=e=>e.replace(/\n\\f[0-9]\s/g,"").replace(/\{\*?\\[^{}]+;}|[{}]|\\[A-Za-z]+\n?(?:-?\d+)?[ ]?/g,"").replace(/\\\n/g,"\n").trim(),bC=(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")}}`,Bh=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}},DC=()=>(new Date).toISOString().replace(/\.\d{3}Z$/,""),Ys=()=>{function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1).toUpperCase()}return`${e()+e()}-${e()}-${e()}-${e()}-${e()+e()+e()}`},EC=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?`)},Ao=e=>{if("string"!=typeof e)return`${e.r/255} ${e.g/255} ${e.b/255} 1`;if(jh.test(e))return e;if(Vh.test(e))return Ao(EC(e));throw new Error(`Input color '${e}' could not be parsed to an RGBA color string!`)},Pt=e=>{if("string"!=typeof e)return e;if(jh.test(e)){const t=e.split(" ");return{r:255*parseFloat(t[0]),g:255*parseFloat(t[1]),b:255*parseFloat(t[2])}}if(Vh.test(e))return EC(e);throw new Error(`Input color '${e}' could not be parsed to an RGB color object!`)};class O3{parse(t){const n=["RVPresentationDocument.timeline.timeCues","RVPresentationDocument.timeline.mediaTracks","RVPresentationDocument.slides.RVDisplaySlide","RVPresentationDocument.slides.RVDisplaySlide.displayElements.RVTextElement"],i=new Ur.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:Pt(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=Hn_decode(o["@RTFData"]),a=Bh(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:CC(s),color:a.color,font:a.font,size:a.size}})),n.push({label:r["@label"],id:r["@UUID"],backgroundColor:Pt(r["@backgroundColor"]),highlightColor:Pt(r["@highlightColor"]),textElements:i})}return n}}var $h=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}($h||{});class k3{constructor(t){_t(this,"xmlBuilder",void 0),_t(this,"options",void 0),_t(this,"defaultTransitionObj",{"@transitionType":$h.None,"@transitionDuration":1,"@motionEnabled":0,"@motionDuration":20,"@motionSpeed":100}),this.xmlBuilder=new Ur.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":DC(),"@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:Pt(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:Pt(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=Hn_decode(s["@RTFData"]),l=Bh(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:CC(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:Pt(n["@highlightColor"]);return{backgroundColor:Pt(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:Pt(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 L3{constructor(t){_t(this,"xmlBuilder",void 0),_t(this,"options",void 0),_t(this,"winFontData",'0025500010000Normal'),_t(this,"defaultTransitionObj",{"@rvXMLIvarName":"transitionObject","@transitionType":$h.None,"@transitionDirection":0,"@transitionDuration":1,"@motionEnabled":!1,"@motionDuration":0,"@motionSpeed":0,"@groupIndex":0,"@orderIndex":0,"@slideBuildAction":0,"@slideBuildDelay":0}),this.xmlBuilder=new Ur.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":DC(),"@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":Ys(),"@color":Ao(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=Ao(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":Ys(),"@chordChartPath":"",array:[{"@rvXMLIvarName":"cues"},{"@rvXMLIvarName":"displayElements",RVTextElement:[this.buildTextElement(s)]}]})}return n}buildTextElement(t){const n=bC(t,this.options.slideTextFormatting.fontName,this.options.slideTextFormatting.textSize,Pt(this.options.slideTextFormatting.textColor));return{"@displayName":"Default","@UUID":Ys(),"@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":Hn_encode(t)},{"@rvXMLIvarName":"RTFData","#text":Hn_encode(n)},{"@rvXMLIvarName":"WinFlowData","#text":Hn_encode(this.getWinFlowDocument(t))},{"@rvXMLIvarName":"WinFontData","#text":Hn_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=Ao(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(jh.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(Vh.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 V3{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 Ur.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@",parseAttributeValue:!0,isArray:(c,p)=>n.includes(p)}).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:Pt(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:Pt(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:Pt(r["@highlightColor"]);n.push({backgroundColor:Pt(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=Hn_decode(u["#text"]):"RTFData"===u["@rvXMLIvarName"]?o=Hn_decode(u["#text"]):"WinFlowData"===u["@rvXMLIvarName"]?s=Hn_decode(u["#text"]):"WinFontData"===u["@rvXMLIvarName"]&&(a=Hn_decode(u["#text"]))});const l=Bh(o);n.push({adjustsHeightToFit:r["@adjustsHeightToFit"],bezelRadius:r["@bezelRadius"],displayDelay:r["@displayDelay"],displayName:r["@displayName"],drawingFill:r["@drawingFill"],fillColor:Pt(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:Pt(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+)\\|("+wC+")\\|\\{(-?\\d(?:\\.\\d+)?), (-?\\d(?:\\.\\d+)?)\\}$").exec(t),o=parseInt(i[1],10),s=Pt(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:Pt(i["@color"]),groupOrder:o})}return r}}class z3{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 O3).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 G3{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 F3).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 W3{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 V3).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 q3=Y(8);class Z3{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=q3.y.parse(Ws.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 Y3{constructor(){_t(this,"id",""),_t(this,"title",""),_t(this,"author",""),_t(this,"copyright",""),_t(this,"ccli",""),_t(this,"key",""),_t(this,"comments",""),_t(this,"verseOrder",""),_t(this,"songBook",""),_t(this,"songNumber",""),_t(this,"topics",[]),_t(this,"lyricSections",[])}}class X3{constructor(){_t(this,"byteLength",4),_t(this,"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(Gs)}),{fileName:t.name,title:i,info:o,slides:r.lyricSections}}}class Q3{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 J3{constructor(){this.name="Display Slides"}convertToType(t){return{songData:t,fileName:"",outputContent:""}}}class eF{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 tF{constructor(){this.name="OpenLyrics",this.fileExt="xml",this.url="http://openlyrics.org/"}convertToType(t){const r=(e=>{const t=new p3,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 Ur.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressBooleanAttributes:!1,suppressUnpairedNode:!1,unpairedTags:["songbook"]}).build(n).trim()})({meta:{createdIn:`LyricConverter ${Ah}`,modifiedIn:`LyricConverter ${Ah}`},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(Gs).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(Gs).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 nF{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 rF{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 k3(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 iF{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 L3(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 oF{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 SC=(()=>{var e;class t{constructor(){this.errorsSvc=me(Jw),this.decoder=new TextDecoder,this.inputConverters=[new z3,new G3,new W3,new f3,new Z3,new K3,new w3,new C3,new h3],this.outputConverters=[new iF,new rF,new Q3,new tF,new oF,new nF,new eF,new J3],this.parsedFilesChanged$=new fe}parseFiles(r){try{const i=[];for(let o=0;o<=r.length-1;o++){const s=new FileReader,a=r[o],l=this.handleFile(a,i,r.length);s.addEventListener("loadend",l,!1),s.readAsArrayBuffer(a)}}catch(i){this.errorsSvc.add({message:"There was a problem reading one of the files",thrownError:i})}}detectInputTypeAndGetConverter(r){return this.inputConverters.find(i=>i.doesInputFileMatchThisType(r))}handleFile(r,i,o){return s=>{const a=Ws.getFileNameParts(r.name);null!=s.target?.result&&i.push({name:r.name,nameWithoutExt:a.name,ext:a.ext,type:r.type,size:r.size,lastModified:r.lastModified,bufferData:s.target.result}),i.length===o&&this.emitRawFiles(i)}}emitRawFiles(r){const i=[];for(const o of r)i.push({name:o.nameWithoutExt,ext:o.ext,type:o.type,dataAsBuffer:o.bufferData,dataAsString:this.decoder.decode(o.bufferData)});this.parsedFilesChanged$.next(i)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),sF=(()=>{var e;class t{constructor(r){this.document=r,this.dragOverClass="drag-over",this.fileDrop=new Ht}ngOnDestroy(){this.toggleDragOver(!1)}onDragOver(r){r.preventDefault(),r.stopPropagation(),this.toggleDragOver(!0)}onDragLeave(r){r.preventDefault(),r.stopPropagation(),0===r.x&&0===r.y&&this.toggleDragOver(!1)}onDrop(r){if(r.preventDefault(),r.stopPropagation(),this.toggleDragOver(!1),r.dataTransfer){const i=r.dataTransfer.files;i.length>0&&this.fileDrop.emit(i)}}toggleDragOver(r){r?this.document.body.classList.add(this.dragOverClass):this.document.body.classList.remove(this.dragOverClass)}}return(e=t).\u0275fac=function(r){return new(r||e)(Ne(Rt))},e.\u0275dir=Bt({type:e,selectors:[["","appDragAndDropFiles",""]],hostBindings:function(r,i){1&r&&xn("dragover",function(s){return i.onDragOver(s)},0,il)("dragleave",function(s){return i.onDragLeave(s)},!1,il)("drop",function(s){return i.onDrop(s)},!1,il)},outputs:{fileDrop:"fileDrop"}}),t})();function aF(e,t){if(1&e&&(le(0,"li",8)(1,"strong",9),be(2),se(),le(3,"span",10),be(4),se()()),2&e){const n=t.$implicit;Be(2),wr(n.name),Be(2),Cr(" ",n.value,"")}}function lF(e,t){if(1&e&&(le(0,"div",11)(1,"p",12),be(2),se(),le(3,"footer",13),be(4),se()()),2&e){const n=t.$implicit;Be(2),wr(n.lyrics),Be(2),wr(n.title)}}function uF(e,t){if(1&e&&(le(0,"div",1)(1,"h3",2),be(2),se(),le(3,"div",3)(4,"ul",4),ct(5,aF,5,2,"li",5),se()(),le(6,"div",6),ct(7,lF,5,2,"div",7),se()()),2&e){const n=t.$implicit;Be(2),wr(n.songData.title),Be(3),Ze("ngForOf",n.songData.info),Be(2),Ze("ngForOf",n.songData.slides)}}let cF=(()=>{var e;class t{constructor(){this.$gaService=me(yu),this.outputFileList=[]}ngOnInit(){this.$gaService.event("display_slides","convert",void 0,this.outputFileList.length,!0)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({type:e,selectors:[["app-slide-display"]],inputs:{outputFileList:"outputFileList"},decls:1,vars:1,consts:[["class","card mb-4 last-of-type:mb-0",4,"ngFor","ngForOf"],[1,"card","mb-4","last-of-type:mb-0"],[1,"card-title"],[1,"card-content","!pb-2"],[1,"text-sm","flex","flex-wrap","gap-1"],["class","inline-flex rounded overflow-hidden text-slate-800 cursor-default border border-slate-500 hover:border-slate-600 bg-slate-300 hover:bg-slate-400",4,"ngFor","ngForOf"],[1,"test-song-slides-container","card-content","grid","gap-1","grid-cols-2","sm:grid-cols-3","lg:grid-cols-4","xl:grid-cols-5","2xl:grid-cols-6"],["class","flex flex-col rounded-md overflow-hidden text-slate-800 cursor-default border border-slate-500 hover:border-slate-600 bg-slate-300 hover:bg-slate-400",4,"ngFor","ngForOf"],[1,"inline-flex","rounded","overflow-hidden","text-slate-800","cursor-default","border","border-slate-500","hover:border-slate-600","bg-slate-300","hover:bg-slate-400"],[1,"px-1"],[1,"bg-slate-50","px-1"],[1,"flex","flex-col","rounded-md","overflow-hidden","text-slate-800","cursor-default","border","border-slate-500","hover:border-slate-600","bg-slate-300","hover:bg-slate-400"],[1,"grow","p-1","leading-4","text-sm","bg-slate-50"],[1,"px-1","font-bold"]],template:function(r,i){1&r&&ct(0,uF,8,3,"div",0),2&r&&Ze("ngForOf",i.outputFileList)},dependencies:[Zl]}),t})();var dF=Y(965),IC=Y(217);function fF(e,t){if(1&e){const n=io();le(0,"button",5),xn("click",function(){return Yr(n),Xr(Et().onClickDownloadFiles())}),xt(),le(1,"svg",6),ze(2,"use",7),se(),be(3," Download File "),se()}}function hF(e,t){if(1&e){const n=io();le(0,"div")(1,"button",5),xn("click",function(){return Yr(n),Xr(Et().onClickDownloadZipFile())}),xt(),le(2,"svg",6),ze(3,"use",8),se(),be(4," Download as .zip "),se(),be(5," or "),Jn(),le(6,"button",9),xn("click",function(){return Yr(n),Xr(Et().onClickDownloadFiles())}),xt(),le(7,"svg",6),ze(8,"use",10),se(),be(9),se()()}if(2&e){const n=Et();Be(9),Cr(" Download ",n.outputFileList.length," individual files ")}}let pF=(()=>{var e;class t{constructor(){this.$gaService=me(yu),this.outputFileList=[]}onClickDownloadFiles(){for(const r of this.outputFileList)IC.saveAs(new File(["\ufeff"+r.outputContent],r.fileName,{type:"text/plain"}));this.$gaService.event("file_download",this.selectedOutputType.name,"files",this.outputFileList.length,!0)}onClickDownloadZipFile(){const r=new dF;for(const i of this.outputFileList)r.file(i.fileName,new File([i.outputContent],i.fileName));r.generateAsync({type:"blob"}).then(i=>{IC.saveAs(i,`LyricConverter (${this.outputFileList.length} files).zip`),this.$gaService.event("file_download",this.selectedOutputType.name,"zip",this.outputFileList.length,!0)})}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({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",3,"click",4,"ngIf"],[4,"ngIf"],["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&&(le(0,"div",0)(1,"h3",1),be(2),se(),le(3,"div",2),ct(4,fF,4,0,"button",3),ct(5,hF,10,1,"div",4),se()()),2&r&&(Be(2),Fd(" Converted ",i.outputFileList.length," ",1===i.outputFileList.length?"Song":"Songs"," "),Be(2),Ze("ngIf",1===i.outputFileList.length),Be(1),Ze("ngIf",i.outputFileList.length>1))},dependencies:[Yl]}),t})();const gF=["fileInput"];function mF(e,t){if(1&e&&(le(0,"span",17),be(1),se()),2&e){const n=Et().$implicit;Be(1),Cr(".",n.fileExt,"")}}const vF=function(e){return{"font-bold bg-lc-highlight/10 border-l-2 border-l-lc-highlight":e}};function yF(e,t){if(1&e){const n=io();le(0,"a",15),xn("click",function(i){const s=Yr(n).$implicit;return Xr(Et().onSwitchConversionType(s,i))}),be(1),ct(2,mF,2,1,"span",16),se()}if(2&e){const n=t.$implicit,r=Et();Ze("ngClass",Sl(3,vF,r.selectedOutputType===n)),Be(1),Cr(" ",n.name," "),Be(1),Ze("ngIf",n.fileExt)}}function _F(e,t){if(1&e){const n=io();le(0,"div",18)(1,"div",19),be(2," You can drag more songs into this window to convert them, or "),le(3,"a",20),xn("click",function(i){return Yr(n),Xr(Et().onSelectFilesClick(i))}),be(4,"select some more files"),se()()()}}function wF(e,t){if(1&e&&(le(0,"span"),be(1),se()),2&e){const n=t.$implicit,r=t.index,i=Et(2);Be(1),Ld("",r===i.inputTypesList.length-1?"or ":"","",n.name,"",r=n.convertedCountMessageThreshold),Be(1),Ze("ngIf",n.errorsList.length>0),Be(1),Ze("ngIf","Display Slides"===n.selectedOutputType.name),Be(1),Ze("ngIf","Display Slides"!==n.selectedOutputType.name)}}const MF=function(e){return{"sm:col-span-2 md:col-span-1":e}},TF=function(e){return{"sm:grid sm:grid-cols-2 sm:gap-4 md:block md:grid-cols-none":e}};function RF(e,t){if(1&e&&(le(0,"a",29),be(1),se()),2&e){const n=Et().$implicit;Ze("href",n.url,Bc),Be(1),wr(n.name)}}function PF(e,t){if(1&e&&(le(0,"span"),be(1),se()),2&e){const n=Et().$implicit;Be(1),wr(n.name)}}function OF(e,t){1&e&&(xt(),le(0,"svg",30),ze(1,"use",11),se())}function kF(e,t){1&e&&(xt(),le(0,"svg",31),ze(1,"use",32),se())}function FF(e,t){1&e&&(xt(),le(0,"svg",33),ze(1,"use",34),se())}function LF(e,t){1&e&&(xt(),le(0,"svg",35),ze(1,"use",32),se())}function VF(e,t){1&e&&(xt(),le(0,"svg",33),ze(1,"use",34),se())}function jF(e,t){if(1&e&&(le(0,"tr")(1,"th",21),ct(2,RF,2,2,"a",22),ct(3,PF,2,1,"span",23),ct(4,OF,2,0,"svg",24),se(),le(5,"td",25),ct(6,kF,2,0,"svg",26),ct(7,FF,2,0,"svg",27),se(),le(8,"td",25),ct(9,LF,2,0,"svg",28),ct(10,VF,2,0,"svg",27),se()()),2&e){const n=t.$implicit;Be(2),Ze("ngIf",n.url),Be(1),Ze("ngIf",!n.url),Be(1),Ze("ngIf",n.hasNote),Be(2),Ze("ngIf",n.canImport),Be(1),Ze("ngIf",!n.canImport),Be(2),Ze("ngIf",n.canExport),Be(1),Ze("ngIf",!n.canExport)}}const BF=[{path:"",component:(()=>{var e;class t{constructor(){this.destroyRef=me(Gi),this.document=me(Rt),this.elementRef=me(vr),this.parserSvc=me(SC),this.errorsSvc=me(Jw),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(Mh(this.destroyRef)).subscribe(r=>{this.getConvertersAndExtractData(r)}),this.errorsSvc.errorsChanged$.pipe(Mh(this.destroyRef)).subscribe(r=>{this.errorsList=r})}onSwitchConversionType(r,i){i.preventDefault(),this.displayInitialUi=!0,this.selectedOutputType=r,localStorage.setItem(this.conversionTypeStorageKey,r.name)}onSelectFilesClick(r){r.preventDefault(),this.fileInput.nativeElement.click()}onFileSelect(r){const i=r.target.files;i&&this.onReceiveFiles(i)}onReceiveFiles(r){r.length>0&&(this.errorsSvc.clear(),this.parserSvc.parseFiles(r))}getConvertersAndExtractData(r){this.displayInitialUi=!1,this.scrollBackToTop();const i=[];for(const o of r){const s=""!==o.ext?`${o.name}.${o.ext}`:o.name,a=this.parserSvc.detectInputTypeAndGetConverter(o);if(a)try{i.push(a.extractSongData(o))}catch(l){this.errorsSvc.add({message:"There was a problem extracting the song data from this file!",fileName:s,thrownError:l})}else this.errorsSvc.add({message:"This is not a file type that LyricConverter knows how to convert!",fileName:s})}if(i.length){this.convertedFileCount+=i.length,localStorage.setItem(this.convertedFileCountStorageKey,this.convertedFileCount.toString());const o=[];for(const s of i)try{o.push(this.selectedOutputType.convertToType(s))}catch(a){this.errorsSvc.add({message:`There was a problem converting this song to the ${this.selectedOutputType.name} format`,fileName:s.fileName,thrownError:a})}this.convertedSongsForOutput=o}}buildOutputTypesList(){this.outputTypesForMenu=[...this.parserSvc.outputConverters];const r=localStorage.getItem(this.conversionTypeStorageKey);this.selectedOutputType=this.parserSvc.outputConverters.find(i=>i.name===r)??this.outputTypesForMenu[0]}buildInputTypesList(){this.inputTypesList=this.parserSvc.inputConverters.map(r=>({name:r.name,ext:r.fileExt}))}getSavedConvertedFileCount(){const r=parseInt(localStorage.getItem(this.convertedFileCountStorageKey)??"",10);!isNaN(r)&&r>0&&(this.convertedFileCount=r)}scrollBackToTop(){this.window.scrollTo({top:this.elementRef.nativeElement.offsetTop,behavior:"smooth"})}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({type:e,selectors:[["app-convert"]],viewQuery:function(r,i){if(1&r&&function j0(e,t,n){const r=Ke();r.firstCreatePass&&(U0(r,new L0(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),$0(r,ie(),t)}(gF,5),2&r){let o;tf(o=nf())&&(i.fileInput=o.first)}},decls:18,vars:10,consts:[["id","drop-area","appDragAndDropFiles","",1,"pointer-events-none","fixed","top-0","left-0","right-0","bottom-0","z-50","flex","items-center","justify-center","backdrop-blur-sm","bg-slate-600/50",3,"fileDrop"],[1,"bg-slate-50/90","text-slate-800","rounded-xl","shadow-lg","text-3xl","font-bold","p-8","border-2","border-slate-600","flex","items-center"],["role","img",1,"icon","mr-2"],[0,"xlink","href","#files"],["type","file","multiple","",1,"hidden",3,"change"],["fileInput",""],[1,"grid","gap-4","grid-cols-1","sm:grid-cols-2","md:grid-cols-4"],[3,"ngClass"],[1,"sticky","md:top-4",3,"ngClass"],["id","test-convert-types-nav",1,"card","p-0","grid","grid-cols-1","overflow-hidden"],[1,"card-title","text-center","py-2"],["class","flex items-center p-2 text-white border-b border-b-lc-highlight/10 hover:no-underline hover:bg-lc-highlight/20","href","#",3,"ngClass","click",4,"ngFor","ngForOf"],["id","test-drop-instructions-more","class","card mt-4 sm:mt-0 md:mt-4",4,"ngIf"],["id","begin-area","class","card md:col-span-3",4,"ngIf"],["id","display-area","class","sm:col-span-2 md:col-span-3",4,"ngIf"],["href","#",1,"flex","items-center","p-2","text-white","border-b","border-b-lc-highlight/10","hover:no-underline","hover:bg-lc-highlight/20",3,"ngClass","click"],["class","bg-slate-300 text-slate-800 border border-white/30 p-0.5 pl-0 leading-none rounded text-xs font-mono ml-1",4,"ngIf"],[1,"bg-slate-300","text-slate-800","border","border-white/30","p-0.5","pl-0","leading-none","rounded","text-xs","font-mono","ml-1"],["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","text-center","flex","flex-col","items-center","justify-center"],[1,"mb-4","mt-auto"],[1,"text-3xl"],["id","test-accepted-input-formats",1,"mt-auto"],[4,"ngFor","ngForOf"],["id","display-area",1,"sm:col-span-2","md:col-span-3"],[1,"mb-4","md:hidden"],["id","test-donate","class","card bg-blue-100/70 text-blue-900 border-blue-800/80 mb-4","role","alert",4,"ngIf"],["id","test-error-message-display","class","card bg-red-200/80 text-red-700 border-red-700/80 mb-4","role","alert",4,"ngIf"],[3,"outputFileList",4,"ngIf"],[3,"selectedOutputType","outputFileList",4,"ngIf"],["id","test-donate","role","alert",1,"card","bg-blue-100/70","text-blue-900","border-blue-800/80","mb-4"],[1,"flex","items-center","mb-2"],["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","bg-red-200/80","text-red-700","border-red-700/80","mb-4"],[1,"flex","items-center","text-xl","font-bold","mb-2"],["role","img","aria-label","Alert:",1,"icon","icon-lg","mr-2"],[0,"xlink","href","#exclamation-triangle-fill"],[4,"ngIf"],[3,"outputFileList"],[3,"selectedOutputType","outputFileList"]],template:function(r,i){1&r&&(le(0,"div",0),xn("fileDrop",function(s){return i.onReceiveFiles(s)}),le(1,"div",1),xt(),le(2,"svg",2),ze(3,"use",3),se(),Jn(),le(4,"span"),be(5,"Drop Your Song Files Here"),se()()(),le(6,"input",4,5),xn("change",function(s){return i.onFileSelect(s)}),se(),le(8,"div",6)(9,"div",7)(10,"aside",8)(11,"nav",9)(12,"strong",10),be(13," Convert To "),se(),ct(14,yF,3,5,"a",11),se(),ct(15,_F,5,0,"div",12),se()(),ct(16,CF,17,1,"div",13),ct(17,xF,6,4,"div",14),se()),2&r&&(Be(9),Ze("ngClass",Sl(6,MF,!i.displayInitialUi)),Be(1),Ze("ngClass",Sl(8,TF,!i.displayInitialUi)),Be(4),Ze("ngForOf",i.outputTypesForMenu),Be(1),Ze("ngIf",!i.displayInitialUi),Be(1),Ze("ngIf",i.displayInitialUi),Be(1),Ze("ngIf",!i.displayInitialUi))},dependencies:[n_,Zl,Yl,Ww,sF,cF,pF],styles:["#drop-area{opacity:0;transition:opacity .3s}body.drag-over #drop-area{opacity:1}\n"],encapsulation:2}),t})(),title:"Lyric Converter"},{path:"about",component:t3,pathMatch:"full",title:"Lyric Converter: About"},{path:"help",component:(()=>{var e;class t{constructor(){this.parserSvc=me(SC),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(r=>{this.combinedFormatsList.push({name:r.name,canImport:!0,canExport:!1,hasNote:!1,url:r.url})}),this.parserSvc.outputConverters.filter(r=>"Display Slides"!==r.name).forEach(r=>{const i=this.combinedFormatsList.find(o=>o.name===r.name);i?i.canExport=!0:this.combinedFormatsList.push({name:r.name,canImport:!1,canExport:!0,hasNote:!1,url:r.url})}),this.combinedFormatsList=Ws.mergeArraysByProp(this.combinedFormatsList,this.unsupportedFormatsList,"name").sort((r,i)=>r.namei.name?1:0)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275cmp=dr({type:e,selectors:[["app-help"]],decls:37,vars:1,consts:[[1,"grid","sm:grid-cols-2","gap-4"],[1,"card"],[1,"card-title"],[1,"card-content"],[1,"text-sm","mb-2"],[1,"w-full"],["scope","col",1,"w-1/2"],["scope","col",1,"w-1/4","text-center"],[4,"ngFor","ngForOf"],[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","btn-lg"],["role","img","aria-label","Github:",1,"icon","flex-shrink-0","me-2"],[0,"xlink","href","#github"],[1,"my-2"],["target","_blank","href","https://hachyderm.io/@FiniteLooper",1,"btn","btn-secondary","btn-lg"],["role","img","aria-label","Mastodon:",1,"icon","flex-shrink-0","me-2"],[0,"xlink","href","#mastodon"],["scope","row",1,"text-left"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["class","icon ml-1 text-sm text-blue-400","role","img","aria-label","Info: about this format",4,"ngIf"],[1,"text-center"],["class","icon text-green-400 drop-shadow-md","role","img","aria-label","Import is supported",4,"ngIf"],["class","icon text-red-400 drop-shadow-md","role","img","aria-label","Export is not supported",4,"ngIf"],["class","icon text-green-400 drop-shadow-md","role","img","aria-label","Export is supported",4,"ngIf"],["target","_blank",3,"href"],["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&&(le(0,"div",0)(1,"div",1)(2,"h3",2),be(3,"Supported Formats"),se(),le(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. "),se(),le(7,"table",5)(8,"thead")(9,"tr"),ze(10,"th",6),le(11,"th",7),be(12,"Import"),se(),le(13,"th",7),be(14,"Export"),se()()(),le(15,"tbody"),ct(16,jF,11,7,"tr",8),se()(),le(17,"p",9),xt(),le(18,"svg",10),ze(19,"use",11),se(),be(20," You can import the ProPresenter 6 files made by LyricConverter into ProPresenter 7! "),se()()(),Jn(),le(21,"div")(22,"div",12)(23,"h3",2),be(24,"Have a question or some other problem?"),se(),le(25,"div",3)(26,"div",13)(27,"a",14),xt(),le(28,"svg",15),ze(29,"use",16),se(),be(30," Open an issue on GitHub "),se(),Jn(),le(31,"div",17),be(32," or "),se(),le(33,"a",18),xt(),le(34,"svg",19),ze(35,"use",20),se(),be(36," Contact me on Mastodon "),se()()()()()()),2&r&&(Be(16),Ze("ngForOf",i.combinedFormatsList))},dependencies:[Zl,Yl],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}"]}),t})(),pathMatch:"full",title:"Lyric Converter: Help"},{path:"**",redirectTo:""}];let $F=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275mod=fr({type:e}),e.\u0275inj=Wn({imports:[jw.forRoot(BF,{initialNavigation:"enabledBlocking"}),jw]}),t})(),UF=(()=>{var e;class t{}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275mod=fr({type:e,bootstrap:[e3]}),e.\u0275inj=Wn({imports:[oP,$F,Gw.forRoot("G-1W69G30JB8"),Jk]}),t})();rP().bootstrapModule(UF).catch(e=>{console.error(e)})},660:(rt,F,Y)=>{"use strict";const O=Y(313),x=Y(786),I=Y(612);rt.exports={XMLParser:x,XMLValidator:O,XMLBuilder:I}},206:(rt,F)=>{"use strict";const Y=":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",x="["+Y+"]["+Y+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",I=new RegExp("^"+x+"$");F.isExist=function(E){return typeof E<"u"},F.isEmptyObject=function(E){return 0===Object.keys(E).length},F.merge=function(E,D,y){if(D){const _=Object.keys(D),d=_.length;for(let m=0;m"u")},F.getAllMatches=function(E,D){const y=[];let _=D.exec(E);for(;_;){const d=[];d.startIndex=D.lastIndex-_[0].length;const m=_.length;for(let g=0;g{"use strict";const O=Y(206),x={allowBooleanAttributes:!1,unpairedTags:[]};function I(S){return" "===S||"\t"===S||"\n"===S||"\r"===S}function v(S,V){const $=V;for(;V5&&"xml"===ne)return w("InvalidXml","XML declaration allowed only at the start of the document.",L(S,V));if("?"==S[V]&&">"==S[V+1]){V++;break}continue}return V}function b(S,V){if(S.length>V+5&&"-"===S[V+1]&&"-"===S[V+2]){for(V+=3;V"===S[V+2]){V+=2;break}}else if(S.length>V+8&&"D"===S[V+1]&&"O"===S[V+2]&&"C"===S[V+3]&&"T"===S[V+4]&&"Y"===S[V+5]&&"P"===S[V+6]&&"E"===S[V+7]){let $=1;for(V+=8;V"===S[V]&&($--,0===$))break}else if(S.length>V+9&&"["===S[V+1]&&"C"===S[V+2]&&"D"===S[V+3]&&"A"===S[V+4]&&"T"===S[V+5]&&"A"===S[V+6]&&"["===S[V+7])for(V+=8;V"===S[V+2]){V+=2;break}return V}F.validate=function(S,V){V=Object.assign({},x,V);const $=[];let ne=!1,R=!1;"\ufeff"===S[0]&&(S=S.substr(1));for(let j=0;j"!==S[j]&&" "!==S[j]&&"\t"!==S[j]&&"\n"!==S[j]&&"\r"!==S[j];j++)B+=S[j];if(B=B.trim(),"/"===B[B.length-1]&&(B=B.substring(0,B.length-1),j--),!P(B)){let oe;return oe=0===B.trim().length?"Invalid space after '<'.":"Tag '"+B+"' is an invalid name.",w("InvalidTag",oe,L(S,j))}const f=y(S,j);if(!1===f)return w("InvalidAttr","Attributes for '"+B+"' have open quote.",L(S,j));let Z=f.value;if(j=f.index,"/"===Z[Z.length-1]){const oe=j-Z.length;Z=Z.substring(0,Z.length-1);const G=d(Z,V);if(!0!==G)return w(G.err.code,G.err.msg,L(S,oe+G.err.line));ne=!0}else if(T){if(!f.tagClosed)return w("InvalidTag","Closing tag '"+B+"' doesn't have proper closing.",L(S,j));if(Z.trim().length>0)return w("InvalidTag","Closing tag '"+B+"' can't have attributes or invalid starting.",L(S,K));{const oe=$.pop();if(B!==oe.tagName){let G=L(S,oe.tagStartPos);return w("InvalidTag","Expected closing tag '"+oe.tagName+"' (opened in line "+G.line+", col "+G.col+") instead of closing tag '"+B+"'.",L(S,K))}0==$.length&&(R=!0)}}else{const oe=d(Z,V);if(!0!==oe)return w(oe.err.code,oe.err.msg,L(S,j-Z.length+oe.err.line));if(!0===R)return w("InvalidXml","Multiple possible root nodes found.",L(S,j));-1!==V.unpairedTags.indexOf(B)||$.push({tagName:B,tagStartPos:K}),ne=!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='"',D="'";function y(S,V){let $="",ne="",R=!1;for(;V"===S[V]&&""===ne){R=!0;break}$+=S[V]}return""===ne&&{value:$,index:V,tagClosed:R}}const _=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function d(S,V){const $=O.getAllMatches(S,_),ne={};for(let R=0;R<$.length;R++){if(0===$[R][1].length)return w("InvalidAttr","Attribute '"+$[R][2]+"' has no space in starting.",U($[R]));if(void 0!==$[R][3]&&void 0===$[R][4])return w("InvalidAttr","Attribute '"+$[R][2]+"' is without value.",U($[R]));if(void 0===$[R][3]&&!V.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+$[R][2]+"' is not allowed.",U($[R]));const j=$[R][2];if(!C(j))return w("InvalidAttr","Attribute '"+j+"' is an invalid name.",U($[R]));if(ne.hasOwnProperty(j))return w("InvalidAttr","Attribute '"+j+"' is repeated.",U($[R]));ne[j]=1}return!0}function g(S,V){if(";"===S[++V])return-1;if("#"===S[V])return function m(S,V){let $=/\d/;for("x"===S[V]&&(V++,$=/[\da-fA-F]/);V{"use strict";const O=Y(289),x={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(y,_){return _},attributeValueProcessor:function(y,_){return _},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 I(y){this.options=Object.assign({},x,y),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=D),this.processTextOrObjNode=v,this.options.format?(this.indentate=E,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function v(y,_,d){const m=this.j2x(y,d+1);return void 0!==y[this.options.textNodeName]&&1===Object.keys(y).length?this.buildTextValNode(y[this.options.textNodeName],_,m.attrStr,d):this.buildObjectNode(m.val,_,m.attrStr,d)}function E(y){return this.options.indentBy.repeat(y)}function D(y){return!(!y.startsWith(this.options.attributeNamePrefix)||y===this.options.textNodeName)&&y.substr(this.attrPrefixLen)}I.prototype.build=function(y){return this.options.preserveOrder?O(y,this.options):(Array.isArray(y)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(y={[this.options.arrayNodeName]:y}),this.j2x(y,0).val)},I.prototype.j2x=function(y,_){let d="",m="";for(let g in y)if(typeof y[g]>"u")this.isAttribute(g)&&(m+="");else if(null===y[g])this.isAttribute(g)?m+="":m+="?"===g[0]?this.indentate(_)+"<"+g+"?"+this.tagEndChar:this.indentate(_)+"<"+g+"/"+this.tagEndChar;else if(y[g]instanceof Date)m+=this.buildTextValNode(y[g],g,"",_);else if("object"!=typeof y[g]){const w=this.isAttribute(g);if(w)d+=this.buildAttrPairStr(w,""+y[g]);else if(g===this.options.textNodeName){let C=this.options.tagValueProcessor(g,""+y[g]);m+=this.replaceEntitiesValue(C)}else m+=this.buildTextValNode(y[g],g,"",_)}else if(Array.isArray(y[g])){const w=y[g].length;let C="";for(let P=0;P"u"||(null===L?m+="?"===g[0]?this.indentate(_)+"<"+g+"?"+this.tagEndChar:this.indentate(_)+"<"+g+"/"+this.tagEndChar:C+="object"==typeof L?this.options.oneListGroup?this.j2x(L,_+1).val:this.processTextOrObjNode(L,g,_):this.buildTextValNode(L,g,"",_))}this.options.oneListGroup&&(C=this.buildObjectNode(C,g,"",_)),m+=C}else if(this.options.attributesGroupName&&g===this.options.attributesGroupName){const w=Object.keys(y[g]),C=w.length;for(let P=0;P"+y+g}},I.prototype.closeTag=function(y){let _="";return-1!==this.options.unpairedTags.indexOf(y)?this.options.suppressUnpairedNode||(_="/"):_=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&_===this.options.commentPropName)return this.indentate(m)+`\x3c!--${y}--\x3e`+this.newLine;if("?"===_[0])return this.indentate(m)+"<"+_+d+"?"+this.tagEndChar;{let g=this.options.tagValueProcessor(_,y);return g=this.replaceEntitiesValue(g),""===g?this.indentate(m)+"<"+_+d+this.closeTag(_)+this.tagEndChar:this.indentate(m)+"<"+_+d+">"+g+"0&&this.options.processEntities)for(let _=0;_{function O(E,D,y,_){let d="",m=!1;for(let g=0;g`,m=!1;continue}if(C===D.commentPropName){d+=_+`\x3c!--${w[C][0][D.textNodeName]}--\x3e`,m=!0;continue}if("?"===C[0]){const $=I(w[":@"],D);let R=w[C][0][D.textNodeName];R=0!==R.length?" "+R:"",d+=("?xml"===C?"":_)+`<${C}${R}${$}?>`,m=!0;continue}let L=_;""!==L&&(L+=D.indentBy);const S=_+`<${C}${I(w[":@"],D)}`,V=O(w[C],D,P,L);-1!==D.unpairedTags.indexOf(C)?d+=D.suppressUnpairedNode?S+">":S+"/>":V&&0!==V.length||!D.suppressEmptyNode?V&&V.endsWith(">")?d+=S+`>${V}${_}`:(d+=S+">",V&&""!==_&&(V.includes("/>")||V.includes("`):d+=S+"/>",m=!0}return d}function x(E){const D=Object.keys(E);for(let y=0;y0&&D.processEntities)for(let y=0;y0&&(y="\n"),O(E,D,"",y)}},271:(rt,F,Y)=>{const O=Y(206);function I(d,m){let g="";for(;m"===d[m]){if(P?"-"===d[m-1]&&"-"===d[m-2]&&(P=!1,w--):w--,0===w)break}else"["===d[m]?C=!0:L+=d[m];else{if(C&&b(d,m))m+=7,[entityName,val,m]=I(d,m+1),-1===val.indexOf("&")&&(g[_(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(C&&E(d,m))m+=8;else if(C&&D(d,m))m+=8;else if(C&&y(d,m))m+=9;else{if(!v)throw new Error("Invalid DOCTYPE");P=!0}w++,L=""}if(0!==w)throw new Error("Unclosed DOCTYPE")}return{entities:g,i:m}}},635:(rt,F)=>{const Y={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(x,I){return I},attributeValueProcessor:function(x,I){return I},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(x,I,v){return x}};F.buildOptions=function(x){return Object.assign({},Y,x)},F.defaultOptions=Y},208:(rt,F,Y)=>{"use strict";const O=Y(206),x=Y(338),I=Y(271),v=Y(626);function D(R){const j=Object.keys(R);for(let K=0;K0)){Z||(R=this.replaceEntitiesValue(R));const oe=this.options.tagValueProcessor(j,R,K,B,f);return null==oe?R:typeof oe!=typeof R||oe!==R?oe:this.options.trimValues||R.trim()===R?ne(R,this.options.parseTagValue,this.options.numberParseOptions):R}}function _(R){if(this.options.removeNSPrefix){const j=R.split(":"),K="/"===R.charAt(0)?"/":"";if("xmlns"===j[0])return"";2===j.length&&(R=K+j[1])}return R}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,O.nameRegexp);const d=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function m(R,j,K){if(!this.options.ignoreAttributes&&"string"==typeof R){const T=O.getAllMatches(R,d),B=T.length,f={};for(let Z=0;Z",f,"Closing Tag is not closed.");let G=R.substring(f+2,oe).trim();if(this.options.removeNSPrefix){const _e=G.indexOf(":");-1!==_e&&(G=G.substr(_e+1))}this.options.transformTagName&&(G=this.options.transformTagName(G)),K&&(T=this.saveTextToParentTag(T,K,B));const ve=B.substring(B.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;ve&&-1!==this.options.unpairedTags.indexOf(ve)?(re=B.lastIndexOf(".",B.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=B.lastIndexOf("."),B=B.substring(0,re),K=this.tagsNodeStack.pop(),T="",f=oe}else if("?"===R[f+1]){let oe=V(R,f,!1,"?>");if(!oe)throw new Error("Pi Tag is not closed.");if(T=this.saveTextToParentTag(T,K,B),!(this.options.ignoreDeclaration&&"?xml"===oe.tagName||this.options.ignorePiTags)){const G=new x(oe.tagName);G.add(this.options.textNodeName,""),oe.tagName!==oe.tagExp&&oe.attrExpPresent&&(G[":@"]=this.buildAttributesMap(oe.tagExp,B,oe.tagName)),this.addChild(K,G,B)}f=oe.closeIndex+1}else if("!--"===R.substr(f+1,3)){const oe=S(R,"--\x3e",f+4,"Comment is not closed.");if(this.options.commentPropName){const G=R.substring(f+4,oe-2);T=this.saveTextToParentTag(T,K,B),K.add(this.options.commentPropName,[{[this.options.textNodeName]:G}])}f=oe}else if("!D"===R.substr(f+1,2)){const oe=I(R,f);this.docTypeEntities=oe.entities,f=oe.i}else if("!["===R.substr(f+1,2)){const oe=S(R,"]]>",f,"CDATA is not closed.")-2,G=R.substring(f+9,oe);if(T=this.saveTextToParentTag(T,K,B),this.options.cdataPropName)K.add(this.options.cdataPropName,[{[this.options.textNodeName]:G}]);else{let ve=this.parseTextData(G,K.tagname,B,!0,!1,!0);null==ve&&(ve=""),K.add(this.options.textNodeName,ve)}f=oe+2}else{let oe=V(R,f,this.options.removeNSPrefix),G=oe.tagName,ve=oe.tagExp,re=oe.attrExpPresent,_e=oe.closeIndex;if(this.options.transformTagName&&(G=this.options.transformTagName(G)),K&&T&&"!xml"!==K.tagname&&(T=this.saveTextToParentTag(T,K,B,!1)),K&&-1!==this.options.unpairedTags.indexOf(K.tagname)&&(K=this.tagsNodeStack.pop(),B=B.substring(0,B.lastIndexOf("."))),G!==j.tagname&&(B+=B?"."+G:G),this.isItStopNode(this.options.stopNodes,B,G)){let W="";if(ve.length>0&&ve.lastIndexOf("/")===ve.length-1)f=oe.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(G))f=oe.closeIndex;else{const we=this.readStopNodeData(R,G,_e+1);if(!we)throw new Error(`Unexpected end of ${G}`);f=we.i,W=we.tagContent}const Se=new x(G);G!==ve&&re&&(Se[":@"]=this.buildAttributesMap(ve,B,G)),W&&(W=this.parseTextData(W,G,B,!0,re,!0,!0)),B=B.substr(0,B.lastIndexOf(".")),Se.add(this.options.textNodeName,W),this.addChild(K,Se,B)}else{if(ve.length>0&&ve.lastIndexOf("/")===ve.length-1){"/"===G[G.length-1]?(G=G.substr(0,G.length-1),B=B.substr(0,B.length-1),ve=G):ve=ve.substr(0,ve.length-1),this.options.transformTagName&&(G=this.options.transformTagName(G));const W=new x(G);G!==ve&&re&&(W[":@"]=this.buildAttributesMap(ve,B,G)),this.addChild(K,W,B),B=B.substr(0,B.lastIndexOf("."))}else{const W=new x(G);this.tagsNodeStack.push(K),G!==ve&&re&&(W[":@"]=this.buildAttributesMap(ve,B,G)),this.addChild(K,W,B),K=W}T="",f=_e}}else T+=R[f];return j.child};function w(R,j,K){const T=this.options.updateTag(j.tagname,K,j[":@"]);!1===T||("string"==typeof T&&(j.tagname=T),R.addChild(j))}const C=function(R){if(this.options.processEntities){for(let j in this.docTypeEntities){const K=this.docTypeEntities[j];R=R.replace(K.regx,K.val)}for(let j in this.lastEntities){const K=this.lastEntities[j];R=R.replace(K.regex,K.val)}if(this.options.htmlEntities)for(let j in this.htmlEntities){const K=this.htmlEntities[j];R=R.replace(K.regex,K.val)}R=R.replace(this.ampEntity.regex,this.ampEntity.val)}return R};function P(R,j,K,T){return R&&(void 0===T&&(T=0===Object.keys(j.child).length),void 0!==(R=this.parseTextData(R,j.tagname,K,!1,!!j[":@"]&&0!==Object.keys(j[":@"]).length,T))&&""!==R&&j.add(this.options.textNodeName,R),R=""),R}function L(R,j,K){const T="*."+K;for(const B in R){const f=R[B];if(T===f||j===f)return!0}return!1}function S(R,j,K,T){const B=R.indexOf(j,K);if(-1===B)throw new Error(T);return B+j.length-1}function V(R,j,K,T=">"){const B=function U(R,j,K=">"){let T,B="";for(let f=j;f",K,`${j} is not closed`);if(R.substring(K+2,f).trim()===j&&(B--,0===B))return{tagContent:R.substring(T,K),i:f};K=f}else if("?"===R[K+1])K=S(R,"?>",K+1,"StopNode is not closed.");else if("!--"===R.substr(K+1,3))K=S(R,"--\x3e",K+3,"StopNode is not closed.");else if("!["===R.substr(K+1,2))K=S(R,"]]>",K,"StopNode is not closed.")-2;else{const f=V(R,K,">");f&&((f&&f.tagName)===j&&"/"!==f.tagExp[f.tagExp.length-1]&&B++,K=f.closeIndex)}}function ne(R,j,K){if(j&&"string"==typeof R){const T=R.trim();return"true"===T||"false"!==T&&v(R,K)}return O.isExist(R)?R:""}rt.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=D,this.parseXml=g,this.parseTextData=y,this.resolveNameSpace=_,this.buildAttributesMap=m,this.isItStopNode=L,this.replaceEntitiesValue=C,this.readStopNodeData=$,this.saveTextToParentTag=P,this.addChild=w}}},786:(rt,F,Y)=>{const{buildOptions:O}=Y(635),x=Y(208),{prettify:I}=Y(651),v=Y(313);rt.exports=class b{constructor(D){this.externalEntities={},this.options=O(D)}parse(D,y){if("string"!=typeof D){if(!D.toString)throw new Error("XML data is accepted in String or Bytes[] form.");D=D.toString()}if(y){!0===y&&(y={});const m=v.validate(D,y);if(!0!==m)throw Error(`${m.err.msg}:${m.err.line}:${m.err.col}`)}const _=new x(this.options);_.addExternalEntities(this.externalEntities);const d=_.parseXml(D);return this.options.preserveOrder||void 0===d?d:I(d,this.options)}addEntity(D,y){if(-1!==y.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==D.indexOf("&")||-1!==D.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===y)throw new Error("An entity with value '&' is not permitted");this.externalEntities[D]=y}}},651:(rt,F)=>{"use strict";function O(b,E,D){let y;const _={};for(let d=0;d0&&(_[E.textNodeName]=y):void 0!==y&&(_[E.textNodeName]=y),_}function x(b){const E=Object.keys(b);for(let D=0;D{"use strict";rt.exports=class F{constructor(O){this.tagname=O,this.child=[],this[":@"]={}}add(O,x){"__proto__"===O&&(O="#__proto__"),this.child.push({[O]:x})}addChild(O){"__proto__"===O.tagname&&(O.tagname="#__proto__"),O[":@"]&&Object.keys(O[":@"]).length>0?this.child.push({[O.tagname]:O.child,":@":O[":@"]}):this.child.push({[O.tagname]:O.child})}}},217:function(rt,F){var Y,x;void 0!==(x="function"==typeof(Y=function(){"use strict";function v(d,m,g){var w=new XMLHttpRequest;w.open("GET",d),w.responseType="blob",w.onload=function(){_(w.response,m,g)},w.onerror=function(){console.error("could not download file")},w.send()}function b(d){var m=new XMLHttpRequest;m.open("HEAD",d,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function E(d){try{d.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),d.dispatchEvent(m)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,y=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),_=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(d,m,g){var w=D.URL||D.webkitURL,C=document.createElement("a");C.download=m=m||d.name||"download",C.rel="noopener","string"==typeof d?(C.href=d,C.origin===location.origin?E(C):b(C.href)?v(d,m,g):E(C,C.target="_blank")):(C.href=w.createObjectURL(d),setTimeout(function(){w.revokeObjectURL(C.href)},4e4),setTimeout(function(){E(C)},0))}:"msSaveOrOpenBlob"in navigator?function(d,m,g){if(m=m||d.name||"download","string"!=typeof d)navigator.msSaveOrOpenBlob(function I(d,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(d.type)?new Blob(["\ufeff",d],{type:d.type}):d}(d,g),m);else if(b(d))v(d,m,g);else{var w=document.createElement("a");w.href=d,w.target="_blank",setTimeout(function(){E(w)})}}:function(d,m,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof d)return v(d,m,g);var C="application/octet-stream"===d.type,P=/constructor/i.test(D.HTMLElement)||D.safari,L=/CriOS\/[\d]+/.test(navigator.userAgent);if((L||C&&P||y)&&typeof FileReader<"u"){var U=new FileReader;U.onloadend=function(){var $=U.result;$=L?$:$.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=$:location=$,w=null},U.readAsDataURL(d)}else{var S=D.URL||D.webkitURL,V=S.createObjectURL(d);w?w.location=V:location.href=V,w=null,setTimeout(function(){S.revokeObjectURL(V)},4e4)}});D.saveAs=_.saveAs=_,rt.exports=_})?Y.apply(F,[]):Y)&&(rt.exports=x)},965:rt=>{rt.exports=function F(Y,O,x){function I(E,D){if(!O[E]){if(!Y[E]){if(v)return v(E,!0);var _=new Error("Cannot find module '"+E+"'");throw _.code="MODULE_NOT_FOUND",_}var d=O[E]={exports:{}};Y[E][0].call(d.exports,function(m){return I(Y[E][1][m]||m)},d,d.exports,F,Y,O,x)}return O[E].exports}for(var v=void 0,b=0;b>4,m=1>6:64,g=2>2)+v.charAt(d)+v.charAt(m)+v.charAt(g));return w.join("")},O.decode=function(b){var E,D,y,_,d,m,g=0,w=0,C="data:";if(b.substr(0,5)===C)throw new Error("Invalid base64 input, it looks like a data url.");var P,L=3*(b=b.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(b.charAt(b.length-1)===v.charAt(64)&&L--,b.charAt(b.length-2)===v.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(P=I.uint8array?new Uint8Array(0|L):new Array(0|L);g>4,D=(15&_)<<4|(d=v.indexOf(b.charAt(g++)))>>2,y=(3&d)<<6|(m=v.indexOf(b.charAt(g++))),P[w++]=E,64!==d&&(P[w++]=D),64!==m&&(P[w++]=y);return P}},{"./support":30,"./utils":32}],2:[function(F,Y,O){"use strict";var x=F("./external"),I=F("./stream/DataWorker"),v=F("./stream/Crc32Probe"),b=F("./stream/DataLengthProbe");function E(D,y,_,d,m){this.compressedSize=D,this.uncompressedSize=y,this.crc32=_,this.compression=d,this.compressedContent=m}E.prototype={getContentWorker:function(){var D=new I(x.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")),y=this;return D.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),D},getCompressedWorker:function(){return new I(x.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},E.createWorkerFrom=function(D,y,_){return D.pipe(new v).pipe(new b("uncompressedSize")).pipe(y.compressWorker(_)).pipe(new b("compressedSize")).withStreamInfo("compression",y)},Y.exports=E},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(F,Y,O){"use strict";var x=F("./stream/GenericWorker");O.STORE={magic:"\0\0",compressWorker:function(){return new x("STORE compression")},uncompressWorker:function(){return new x("STORE decompression")}},O.DEFLATE=F("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(F,Y,O){"use strict";var x=F("./utils"),I=function(){for(var v,b=[],E=0;E<256;E++){v=E;for(var D=0;D<8;D++)v=1&v?3988292384^v>>>1:v>>>1;b[E]=v}return b}();Y.exports=function(v,b){return void 0!==v&&v.length?"string"!==x.getTypeOf(v)?function(E,D,y,_){var d=I,m=0+y;E^=-1;for(var g=0;g>>8^d[255&(E^D[g])];return-1^E}(0|b,v,v.length):function(E,D,y,_){var d=I,m=0+y;E^=-1;for(var g=0;g>>8^d[255&(E^D.charCodeAt(g))];return-1^E}(0|b,v,v.length):0}},{"./utils":32}],5:[function(F,Y,O){"use strict";O.base64=!1,O.binary=!1,O.dir=!1,O.createFolders=!0,O.date=null,O.compression=null,O.compressionOptions=null,O.comment=null,O.unixPermissions=null,O.dosPermissions=null},{}],6:[function(F,Y,O){"use strict";var x;x=typeof Promise<"u"?Promise:F("lie"),Y.exports={Promise:x}},{lie:37}],7:[function(F,Y,O){"use strict";var x=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",I=F("pako"),v=F("./utils"),b=F("./stream/GenericWorker"),E=x?"uint8array":"array";function D(y,_){b.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=_,this.meta={}}O.magic="\b\0",v.inherits(D,b),D.prototype.processChunk=function(y){this.meta=y.meta,null===this._pako&&this._createPako(),this._pako.push(v.transformTo(E,y.data),!1)},D.prototype.flush=function(){b.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},D.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this._pako=null},D.prototype._createPako=function(){this._pako=new I[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(_){y.push({data:_,meta:y.meta})}},O.compressWorker=function(y){return new D("Deflate",y)},O.uncompressWorker=function(){return new D("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(F,Y,O){"use strict";function x(d,m){var g,w="";for(g=0;g>>=8;return w}function I(d,m,g,w,C,P){var L,U,S=d.file,V=d.compression,$=P!==E.utf8encode,ne=v.transformTo("string",P(S.name)),R=v.transformTo("string",E.utf8encode(S.name)),j=S.comment,K=v.transformTo("string",P(j)),T=v.transformTo("string",E.utf8encode(j)),B=R.length!==S.name.length,f=T.length!==j.length,Z="",oe="",G="",ve=S.dir,re=S.date,_e={crc32:0,compressedSize:0,uncompressedSize:0};m&&!g||(_e.crc32=d.crc32,_e.compressedSize=d.compressedSize,_e.uncompressedSize=d.uncompressedSize);var X=0;m&&(X|=8),$||!B&&!f||(X|=2048);var fe,It,W=0,Se=0;ve&&(W|=16),"UNIX"===C?(Se=798,W|=(It=fe=S.unixPermissions,fe||(It=ve?16893:33204),(65535&It)<<16)):(Se=20,W|=function(fe){return 63&(fe||0)}(S.dosPermissions)),L=re.getUTCHours(),L<<=6,L|=re.getUTCMinutes(),L<<=5,L|=re.getUTCSeconds()/2,U=re.getUTCFullYear()-1980,U<<=4,U|=re.getUTCMonth()+1,U<<=5,U|=re.getUTCDate(),B&&(oe=x(1,1)+x(D(ne),4)+R,Z+="up"+x(oe.length,2)+oe),f&&(G=x(1,1)+x(D(K),4)+T,Z+="uc"+x(G.length,2)+G);var we="";return we+="\n\0",we+=x(X,2),we+=V.magic,we+=x(L,2),we+=x(U,2),we+=x(_e.crc32,4),we+=x(_e.compressedSize,4),we+=x(_e.uncompressedSize,4),we+=x(ne.length,2),we+=x(Z.length,2),{fileRecord:y.LOCAL_FILE_HEADER+we+ne+Z,dirRecord:y.CENTRAL_FILE_HEADER+x(Se,2)+we+x(K.length,2)+"\0\0\0\0"+x(W,4)+x(w,4)+ne+Z+K}}var v=F("../utils"),b=F("../stream/GenericWorker"),E=F("../utf8"),D=F("../crc32"),y=F("../signature");function _(d,m,g,w){b.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=g,this.encodeFileName=w,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(_,b),_.prototype.push=function(d){var m=d.meta.percent||0,g=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,b.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:g?(m+100*(g-w-1))/g:100}}))},_.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var m=this.streamFiles&&!d.file.dir;if(m){var g=I(d,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(d){this.accumulate=!1;var w,m=this.streamFiles&&!d.file.dir,g=I(d,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),m)this.push({data:(w=d,y.DATA_DESCRIPTOR+x(w.crc32,4)+x(w.compressedSize,4)+x(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},_.prototype.flush=function(){for(var d=this.bytesWritten,m=0;m=this.index;b--)E=(E<<8)+this.byteAt(b);return this.index+=v,E},readString:function(v){return x.transformTo("string",this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v>>25&127),(v>>21&15)-1,v>>16&31,v>>11&31,v>>5&63,(31&v)<<1))}},Y.exports=I},{"../utils":32}],19:[function(F,Y,O){"use strict";var x=F("./Uint8ArrayReader");function I(v){x.call(this,v)}F("../utils").inherits(I,x),I.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},Y.exports=I},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(F,Y,O){"use strict";var x=F("./DataReader");function I(v){x.call(this,v)}F("../utils").inherits(I,x),I.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},I.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},I.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},I.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},Y.exports=I},{"../utils":32,"./DataReader":18}],21:[function(F,Y,O){"use strict";var x=F("./ArrayReader");function I(v){x.call(this,v)}F("../utils").inherits(I,x),I.prototype.readData=function(v){if(this.checkOffset(v),0===v)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},Y.exports=I},{"../utils":32,"./ArrayReader":17}],22:[function(F,Y,O){"use strict";var x=F("../utils"),I=F("../support"),v=F("./ArrayReader"),b=F("./StringReader"),E=F("./NodeBufferReader"),D=F("./Uint8ArrayReader");Y.exports=function(y){var _=x.getTypeOf(y);return x.checkSupport(_),"string"!==_||I.uint8array?"nodebuffer"===_?new E(y):I.uint8array?new D(x.transformTo("uint8array",y)):new v(x.transformTo("array",y)):new b(y)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(F,Y,O){"use strict";O.LOCAL_FILE_HEADER="PK\x03\x04",O.CENTRAL_FILE_HEADER="PK\x01\x02",O.CENTRAL_DIRECTORY_END="PK\x05\x06",O.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",O.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",O.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(F,Y,O){"use strict";var x=F("./GenericWorker"),I=F("../utils");function v(b){x.call(this,"ConvertWorker to "+b),this.destType=b}I.inherits(v,x),v.prototype.processChunk=function(b){this.push({data:I.transformTo(this.destType,b.data),meta:b.meta})},Y.exports=v},{"../utils":32,"./GenericWorker":28}],25:[function(F,Y,O){"use strict";var x=F("./GenericWorker"),I=F("../crc32");function v(){x.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}F("../utils").inherits(v,x),v.prototype.processChunk=function(b){this.streamInfo.crc32=I(b.data,this.streamInfo.crc32||0),this.push(b)},Y.exports=v},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(F,Y,O){"use strict";var x=F("../utils"),I=F("./GenericWorker");function v(b){I.call(this,"DataLengthProbe for "+b),this.propName=b,this.withStreamInfo(b,0)}x.inherits(v,I),v.prototype.processChunk=function(b){b&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+b.data.length),I.prototype.processChunk.call(this,b)},Y.exports=v},{"../utils":32,"./GenericWorker":28}],27:[function(F,Y,O){"use strict";var x=F("../utils"),I=F("./GenericWorker");function v(b){I.call(this,"DataWorker");var E=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,b.then(function(D){E.dataIsReady=!0,E.data=D,E.max=D&&D.length||0,E.type=x.getTypeOf(D),E.isPaused||E._tickAndRepeat()},function(D){E.error(D)})}x.inherits(v,I),v.prototype.cleanUp=function(){I.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,x.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(x.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var b=null,E=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,E);break;case"uint8array":b=this.data.subarray(this.index,E);break;case"array":case"nodebuffer":b=this.data.slice(this.index,E)}return this.index=E,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},Y.exports=v},{"../utils":32,"./GenericWorker":28}],28:[function(F,Y,O){"use strict";function x(I){this.name=I||"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}x.prototype={push:function(I){this.emit("data",I)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(I){this.emit("error",I)}return!0},error:function(I){return!this.isFinished&&(this.isPaused?this.generatedError=I:(this.isFinished=!0,this.emit("error",I),this.previous&&this.previous.error(I),this.cleanUp()),!0)},on:function(I,v){return this._listeners[I].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(I,v){if(this._listeners[I])for(var b=0;b "+I:I}},Y.exports=x},{}],29:[function(F,Y,O){"use strict";var x=F("../utils"),I=F("./ConvertWorker"),v=F("./GenericWorker"),b=F("../base64"),E=F("../support"),D=F("../external"),y=null;if(E.nodestream)try{y=F("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(m,g,w){var C=g;switch(g){case"blob":case"arraybuffer":C="uint8array";break;case"base64":C="string"}try{this._internalType=C,this._outputType=g,this._mimeType=w,x.checkSupport(C),this._worker=m.pipe(new I(C)),m.lock()}catch(P){this._worker=new v("error"),this._worker.error(P)}}d.prototype={accumulate:function(m){return function _(m,g){return new D.Promise(function(w,C){var P=[],L=m._internalType,U=m._outputType,S=m._mimeType;m.on("data",function(V,$){P.push(V),g&&g($)}).on("error",function(V){P=[],C(V)}).on("end",function(){try{var V=function($,ne,R){switch($){case"blob":return x.newBlob(x.transformTo("arraybuffer",ne),R);case"base64":return b.encode(ne);default:return x.transformTo($,ne)}}(U,function($,ne){var R,j=0,K=null,T=0;for(R=0;R"u")O.blob=!1;else{var x=new ArrayBuffer(0);try{O.blob=0===new Blob([x],{type:"application/zip"}).size}catch{try{var I=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);I.append(x),O.blob=0===I.getBlob("application/zip").size}catch{O.blob=!1}}}try{O.nodestream=!!F("readable-stream").Readable}catch{O.nodestream=!1}},{"readable-stream":16}],31:[function(F,Y,O){"use strict";for(var x=F("./utils"),I=F("./support"),v=F("./nodejsUtils"),b=F("./stream/GenericWorker"),E=new Array(256),D=0;D<256;D++)E[D]=252<=D?6:248<=D?5:240<=D?4:224<=D?3:192<=D?2:1;function y(){b.call(this,"utf-8 decode"),this.leftOver=null}function _(){b.call(this,"utf-8 encode")}E[254]=E[254]=1,O.utf8encode=function(d){return I.nodebuffer?v.newBufferFrom(d,"utf-8"):function(m){var g,w,C,P,L,U=m.length,S=0;for(P=0;P>>6:(w<65536?g[L++]=224|w>>>12:(g[L++]=240|w>>>18,g[L++]=128|w>>>12&63),g[L++]=128|w>>>6&63),g[L++]=128|63&w);return g}(d)},O.utf8decode=function(d){return I.nodebuffer?x.transformTo("nodebuffer",d).toString("utf-8"):function(m){var g,w,C,P,L=m.length,U=new Array(2*L);for(g=w=0;g>10&1023,U[w++]=56320|1023&C)}return U.length!==w&&(U.subarray?U=U.subarray(0,w):U.length=w),x.applyFromCharCode(U)}(d=x.transformTo(I.uint8array?"uint8array":"array",d))},x.inherits(y,b),y.prototype.processChunk=function(d){var m=x.transformTo(I.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(I.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(P,L){var U;for((L=L||P.length)>P.length&&(L=P.length),U=L-1;0<=U&&128==(192&P[U]);)U--;return U<0||0===U?L:U+E[P[U]]>L?U:L}(m),C=m;w!==m.length&&(I.uint8array?(C=m.subarray(0,w),this.leftOver=m.subarray(w,m.length)):(C=m.slice(0,w),this.leftOver=m.slice(w,m.length))),this.push({data:O.utf8decode(C),meta:d.meta})},y.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:O.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},O.Utf8DecodeWorker=y,x.inherits(_,b),_.prototype.processChunk=function(d){this.push({data:O.utf8encode(d.data),meta:d.meta})},O.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(F,Y,O){"use strict";var x=F("./support"),I=F("./base64"),v=F("./nodejsUtils"),b=F("./external");function E(g){return g}function D(g,w){for(var C=0;C>8;this.dir=!!(16&this.externalFileAttributes),0==d&&(this.dosPermissions=63&this.externalFileAttributes),3==d&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=x(this.extraFields[1].value);this.uncompressedSize===I.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===I.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===I.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===I.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var m,g,w,C=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4>>6:(d<65536?_[w++]=224|d>>>12:(_[w++]=240|d>>>18,_[w++]=128|d>>>12&63),_[w++]=128|d>>>6&63),_[w++]=128|63&d);return _},O.buf2binstring=function(y){return D(y,y.length)},O.binstring2buf=function(y){for(var _=new x.Buf8(y.length),d=0,m=_.length;d>10&1023,P[m++]=56320|1023&g)}return D(P,m)},O.utf8border=function(y,_){var d;for((_=_||y.length)>y.length&&(_=y.length),d=_-1;0<=d&&128==(192&y[d]);)d--;return d<0||0===d?_:d+b[y[d]]>_?d:_}},{"./common":41}],43:[function(F,Y,O){"use strict";Y.exports=function(x,I,v,b){for(var E=65535&x|0,D=x>>>16&65535|0,y=0;0!==v;){for(v-=y=2e3>>1:I>>>1;v[b]=I}return v}();Y.exports=function(I,v,b,E){var D=x,y=E+b;I^=-1;for(var _=E;_>>8^D[255&(I^v[_])];return-1^I}},{}],46:[function(F,Y,O){"use strict";var x,I=F("../utils/common"),v=F("./trees"),b=F("./adler32"),E=F("./crc32"),D=F("./messages"),y=0,d=0,m=-2,C=2,P=8,U=286,S=30,V=19,$=2*U+1,ne=15,R=3,j=258,K=j+R+1,T=42,B=113;function ve(h,te){return h.msg=D[te],te}function re(h){return(h<<1)-(4h.avail_out&&(J=h.avail_out),0!==J&&(I.arraySet(h.output,te.pending_buf,te.pending_out,J,h.next_out),h.next_out+=J,te.pending_out+=J,h.total_out+=J,h.avail_out-=J,te.pending-=J,0===te.pending&&(te.pending_out=0))}function W(h,te){v._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,te),h.block_start=h.strstart,X(h.strm)}function Se(h,te){h.pending_buf[h.pending++]=te}function we(h,te){h.pending_buf[h.pending++]=te>>>8&255,h.pending_buf[h.pending++]=255&te}function fe(h,te){var J,k,M=h.max_chain_length,H=h.strstart,ae=h.prev_length,ce=h.nice_match,q=h.strstart>h.w_size-K?h.strstart-(h.w_size-K):0,he=h.window,Ce=h.w_mask,pe=h.prev,Ae=h.strstart+j,tt=he[H+ae-1],We=he[H+ae];h.prev_length>=h.good_match&&(M>>=2),ce>h.lookahead&&(ce=h.lookahead);do{if(he[(J=te)+ae]===We&&he[J+ae-1]===tt&&he[J]===he[H]&&he[++J]===he[H+1]){H+=2,J++;do{}while(he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&Hq&&0!=--M);return ae<=h.lookahead?ae:h.lookahead}function ht(h){var te,J,k,M,H,ae,ce,q,he,Ce,pe=h.w_size;do{if(M=h.window_size-h.lookahead-h.strstart,h.strstart>=pe+(pe-K)){for(I.arraySet(h.window,h.window,pe,pe,0),h.match_start-=pe,h.strstart-=pe,h.block_start-=pe,te=J=h.hash_size;k=h.head[--te],h.head[te]=pe<=k?k-pe:0,--J;);for(te=J=pe;k=h.prev[--te],h.prev[te]=pe<=k?k-pe:0,--J;);M+=pe}if(0===h.strm.avail_in)break;if(ce=h.window,q=h.strstart+h.lookahead,Ce=void 0,(he=M)<(Ce=(ae=h.strm).avail_in)&&(Ce=he),J=0===Ce?0:(ae.avail_in-=Ce,I.arraySet(ce,ae.input,ae.next_in,Ce,q),1===ae.state.wrap?ae.adler=b(ae.adler,ce,Ce,q):2===ae.state.wrap&&(ae.adler=E(ae.adler,ce,Ce,q)),ae.next_in+=Ce,ae.total_in+=Ce,Ce),h.lookahead+=J,h.lookahead+h.insert>=R)for(h.ins_h=h.window[H=h.strstart-h.insert],h.ins_h=(h.ins_h<=R&&(h.ins_h=(h.ins_h<=R)if(k=v._tr_tally(h,h.strstart-h.match_start,h.match_length-R),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=R){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<=R&&(h.ins_h=(h.ins_h<=R&&h.match_length<=h.prev_length){for(M=h.strstart+h.lookahead-R,k=v._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-R),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=M&&(h.ins_h=(h.ins_h<h.pending_buf_size-5&&(J=h.pending_buf_size-5);;){if(h.lookahead<=1){if(ht(h),0===h.lookahead&&te===y)return 1;if(0===h.lookahead)break}h.strstart+=h.lookahead,h.lookahead=0;var k=h.block_start+J;if((0===h.strstart||h.strstart>=k)&&(h.lookahead=h.strstart-k,h.strstart=k,W(h,!1),0===h.strm.avail_out)||h.strstart-h.block_start>=h.w_size-K&&(W(h,!1),0===h.strm.avail_out))return 1}return h.insert=0,4===te?(W(h,!0),0===h.strm.avail_out?3:4):(h.strstart>h.block_start&&W(h,!1),1)}),new Te(4,4,8,4,It),new Te(4,5,16,8,It),new Te(4,6,32,32,It),new Te(4,4,16,16,Ie),new Te(8,16,32,32,Ie),new Te(8,16,128,128,Ie),new Te(8,32,128,256,Ie),new Te(32,128,258,1024,Ie),new Te(32,258,258,4096,Ie)],O.deflateInit=function(h,te){return fn(h,te,P,15,8,0)},O.deflateInit2=fn,O.deflateReset=en,O.deflateResetKeep=Re,O.deflateSetHeader=function(h,te){return h&&h.state?2!==h.state.wrap?m:(h.state.gzhead=te,d):m},O.deflate=function(h,te){var J,k,M,H;if(!h||!h.state||5>8&255),Se(k,k.gzhead.time>>16&255),Se(k,k.gzhead.time>>24&255),Se(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Se(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(Se(k,255&k.gzhead.extra.length),Se(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(h.adler=E(h.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(Se(k,0),Se(k,0),Se(k,0),Se(k,0),Se(k,0),Se(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Se(k,3),k.status=B);else{var ae=P+(k.w_bits-8<<4)<<8;ae|=(2<=k.strategy||k.level<2?0:k.level<6?1:6===k.level?2:3)<<6,0!==k.strstart&&(ae|=32),ae+=31-ae%31,k.status=B,we(k,ae),0!==k.strstart&&(we(k,h.adler>>>16),we(k,65535&h.adler)),h.adler=1}if(69===k.status)if(k.gzhead.extra){for(M=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>M&&(h.adler=E(h.adler,k.pending_buf,k.pending-M,M)),X(h),M=k.pending,k.pending!==k.pending_buf_size));)Se(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>M&&(h.adler=E(h.adler,k.pending_buf,k.pending-M,M)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(73===k.status)if(k.gzhead.name){M=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>M&&(h.adler=E(h.adler,k.pending_buf,k.pending-M,M)),X(h),M=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexM&&(h.adler=E(h.adler,k.pending_buf,k.pending-M,M)),0===H&&(k.gzindex=0,k.status=91)}else k.status=91;if(91===k.status)if(k.gzhead.comment){M=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>M&&(h.adler=E(h.adler,k.pending_buf,k.pending-M,M)),X(h),M=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexM&&(h.adler=E(h.adler,k.pending_buf,k.pending-M,M)),0===H&&(k.status=103)}else k.status=103;if(103===k.status&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&X(h),k.pending+2<=k.pending_buf_size&&(Se(k,255&h.adler),Se(k,h.adler>>8&255),h.adler=0,k.status=B)):k.status=B),0!==k.pending){if(X(h),0===h.avail_out)return k.last_flush=-1,d}else if(0===h.avail_in&&re(te)<=re(J)&&4!==te)return ve(h,-5);if(666===k.status&&0!==h.avail_in)return ve(h,-5);if(0!==h.avail_in||0!==k.lookahead||te!==y&&666!==k.status){var ce=2===k.strategy?function(q,he){for(var Ce;;){if(0===q.lookahead&&(ht(q),0===q.lookahead)){if(he===y)return 1;break}if(q.match_length=0,Ce=v._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,Ce&&(W(q,!1),0===q.strm.avail_out))return 1}return q.insert=0,4===he?(W(q,!0),0===q.strm.avail_out?3:4):q.last_lit&&(W(q,!1),0===q.strm.avail_out)?1:2}(k,te):3===k.strategy?function(q,he){for(var Ce,pe,Ae,tt,We=q.window;;){if(q.lookahead<=j){if(ht(q),q.lookahead<=j&&he===y)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?(Ce=v._tr_tally(q,1,q.match_length-R),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(Ce=v._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),Ce&&(W(q,!1),0===q.strm.avail_out))return 1}return q.insert=0,4===he?(W(q,!0),0===q.strm.avail_out?3:4):q.last_lit&&(W(q,!1),0===q.strm.avail_out)?1:2}(k,te):x[k.level].func(k,te);if(3!==ce&&4!==ce||(k.status=666),1===ce||3===ce)return 0===h.avail_out&&(k.last_flush=-1),d;if(2===ce&&(1===te?v._tr_align(k):5!==te&&(v._tr_stored_block(k,0,0,!1),3===te&&(_e(k.head),0===k.lookahead&&(k.strstart=0,k.block_start=0,k.insert=0))),X(h),0===h.avail_out))return k.last_flush=-1,d}return 4!==te?d:k.wrap<=0?1:(2===k.wrap?(Se(k,255&h.adler),Se(k,h.adler>>8&255),Se(k,h.adler>>16&255),Se(k,h.adler>>24&255),Se(k,255&h.total_in),Se(k,h.total_in>>8&255),Se(k,h.total_in>>16&255),Se(k,h.total_in>>24&255)):(we(k,h.adler>>>16),we(k,65535&h.adler)),X(h),0=J.w_size&&(0===H&&(_e(J.head),J.strstart=0,J.block_start=0,J.insert=0),he=new I.Buf8(J.w_size),I.arraySet(he,te,Ce-J.w_size,J.w_size,0),te=he,Ce=J.w_size),ae=h.avail_in,ce=h.next_in,q=h.input,h.avail_in=Ce,h.next_in=0,h.input=te,ht(J);J.lookahead>=R;){for(k=J.strstart,M=J.lookahead-(R-1);J.ins_h=(J.ins_h<>>=R=ne>>>24,L-=R,0==(R=ne>>>16&255))Z[D++]=65535≠else{if(!(16&R)){if(!(64&R)){ne=U[(65535&ne)+(P&(1<>>=R,L-=R),L<15&&(P+=f[b++]<>>=R=ne>>>24,L-=R,!(16&(R=ne>>>16&255))){if(!(64&R)){ne=S[(65535&ne)+(P&(1<>>=R,L-=R,(R=D-y)>3,P&=(1<<(L-=j<<3))-1,x.next_in=b,x.next_out=D,x.avail_in=b>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function P(){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 x.Buf16(320),this.work=new x.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(T){var B;return T&&T.state?(T.total_in=T.total_out=(B=T.state).total=0,T.msg="",B.wrap&&(T.adler=1&B.wrap),B.mode=m,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new x.Buf32(g),B.distcode=B.distdyn=new x.Buf32(w),B.sane=1,B.back=-1,_):d}function U(T){var B;return T&&T.state?((B=T.state).wsize=0,B.whave=0,B.wnext=0,L(T)):d}function S(T,B){var f,Z;return T&&T.state?(Z=T.state,B<0?(f=0,B=-B):(f=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15=G.wsize?(x.arraySet(G.window,B,f-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(Z<(oe=G.wsize-G.wnext)&&(oe=Z),x.arraySet(G.window,B,f-Z,oe,G.wnext),(Z-=oe)?(x.arraySet(G.window,B,f-Z,Z,0),G.wnext=Z,G.whave=G.wsize):(G.wnext+=oe,G.wnext===G.wsize&&(G.wnext=0),G.whave>>8&255,f.check=v(f.check,H,2,0),W=X=0,f.mode=2;break}if(f.flags=0,f.head&&(f.head.done=!1),!(1&f.wrap)||(((255&X)<<8)+(X>>8))%31){T.msg="incorrect header check",f.mode=30;break}if(8!=(15&X)){T.msg="unknown compression method",f.mode=30;break}if(W-=4,h=8+(15&(X>>>=4)),0===f.wbits)f.wbits=h;else if(h>f.wbits){T.msg="invalid window size",f.mode=30;break}f.dmax=1<>8&1),512&f.flags&&(H[0]=255&X,H[1]=X>>>8&255,f.check=v(f.check,H,2,0)),W=X=0,f.mode=3;case 3:for(;W<32;){if(0===re)break e;re--,X+=Z[G++]<>>8&255,H[2]=X>>>16&255,H[3]=X>>>24&255,f.check=v(f.check,H,4,0)),W=X=0,f.mode=4;case 4:for(;W<16;){if(0===re)break e;re--,X+=Z[G++]<>8),512&f.flags&&(H[0]=255&X,H[1]=X>>>8&255,f.check=v(f.check,H,2,0)),W=X=0,f.mode=5;case 5:if(1024&f.flags){for(;W<16;){if(0===re)break e;re--,X+=Z[G++]<>>8&255,f.check=v(f.check,H,2,0)),W=X=0}else f.head&&(f.head.extra=null);f.mode=6;case 6:if(1024&f.flags&&(re<(fe=f.length)&&(fe=re),fe&&(f.head&&(h=f.head.extra_len-f.length,f.head.extra||(f.head.extra=new Array(f.head.extra_len)),x.arraySet(f.head.extra,Z,G,fe,h)),512&f.flags&&(f.check=v(f.check,Z,fe,G)),re-=fe,G+=fe,f.length-=fe),f.length))break e;f.length=0,f.mode=7;case 7:if(2048&f.flags){if(0===re)break e;for(fe=0;h=Z[G+fe++],f.head&&h&&f.length<65536&&(f.head.name+=String.fromCharCode(h)),h&&fe>9&1,f.head.done=!0),T.adler=f.check=0,f.mode=12;break;case 10:for(;W<32;){if(0===re)break e;re--,X+=Z[G++]<>>=7&W,W-=7&W,f.mode=27;break}for(;W<3;){if(0===re)break e;re--,X+=Z[G++]<>>=1)){case 0:f.mode=14;break;case 1:if(j(f),f.mode=20,6!==B)break;X>>>=2,W-=2;break e;case 2:f.mode=17;break;case 3:T.msg="invalid block type",f.mode=30}X>>>=2,W-=2;break;case 14:for(X>>>=7&W,W-=7&W;W<32;){if(0===re)break e;re--,X+=Z[G++]<>>16^65535)){T.msg="invalid stored block lengths",f.mode=30;break}if(f.length=65535&X,W=X=0,f.mode=15,6===B)break e;case 15:f.mode=16;case 16:if(fe=f.length){if(re>>=5)),W-=5,f.ncode=4+(15&(X>>>=5)),X>>>=4,W-=4,286>>=3,W-=3}for(;f.have<19;)f.lens[ae[f.have++]]=0;if(f.lencode=f.lendyn,f.lenbits=7,te=E(0,f.lens,0,19,f.lencode,0,f.work,J={bits:f.lenbits}),f.lenbits=J.bits,te){T.msg="invalid code lengths set",f.mode=30;break}f.have=0,f.mode=19;case 19:for(;f.have>>16&255,Dt=65535&M,!((Ie=M>>>24)<=W);){if(0===re)break e;re--,X+=Z[G++]<>>=Ie,W-=Ie,f.lens[f.have++]=Dt;else{if(16===Dt){for(k=Ie+2;W>>=Ie,W-=Ie,0===f.have){T.msg="invalid bit length repeat",f.mode=30;break}h=f.lens[f.have-1],fe=3+(3&X),X>>>=2,W-=2}else if(17===Dt){for(k=Ie+3;W>>=Ie)),X>>>=3,W-=3}else{for(k=Ie+7;W>>=Ie)),X>>>=7,W-=7}if(f.have+fe>f.nlen+f.ndist){T.msg="invalid bit length repeat",f.mode=30;break}for(;fe--;)f.lens[f.have++]=h}}if(30===f.mode)break;if(0===f.lens[256]){T.msg="invalid code -- missing end-of-block",f.mode=30;break}if(f.lenbits=9,te=E(1,f.lens,0,f.nlen,f.lencode,0,f.work,J={bits:f.lenbits}),f.lenbits=J.bits,te){T.msg="invalid literal/lengths set",f.mode=30;break}if(f.distbits=6,f.distcode=f.distdyn,te=E(2,f.lens,f.nlen,f.ndist,f.distcode,0,f.work,J={bits:f.distbits}),f.distbits=J.bits,te){T.msg="invalid distances set",f.mode=30;break}if(f.mode=20,6===B)break e;case 20:f.mode=21;case 21:if(6<=re&&258<=_e){T.next_out=ve,T.avail_out=_e,T.next_in=G,T.avail_in=re,f.hold=X,f.bits=W,b(T,we),ve=T.next_out,oe=T.output,_e=T.avail_out,G=T.next_in,Z=T.input,re=T.avail_in,X=f.hold,W=f.bits,12===f.mode&&(f.back=-1);break}for(f.back=0;Te=(M=f.lencode[X&(1<>>16&255,Dt=65535&M,!((Ie=M>>>24)<=W);){if(0===re)break e;re--,X+=Z[G++]<>Re)])>>>16&255,Dt=65535&M,!(Re+(Ie=M>>>24)<=W);){if(0===re)break e;re--,X+=Z[G++]<>>=Re,W-=Re,f.back+=Re}if(X>>>=Ie,W-=Ie,f.back+=Ie,f.length=Dt,0===Te){f.mode=26;break}if(32&Te){f.back=-1,f.mode=12;break}if(64&Te){T.msg="invalid literal/length code",f.mode=30;break}f.extra=15&Te,f.mode=22;case 22:if(f.extra){for(k=f.extra;W>>=f.extra,W-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=23;case 23:for(;Te=(M=f.distcode[X&(1<>>16&255,Dt=65535&M,!((Ie=M>>>24)<=W);){if(0===re)break e;re--,X+=Z[G++]<>Re)])>>>16&255,Dt=65535&M,!(Re+(Ie=M>>>24)<=W);){if(0===re)break e;re--,X+=Z[G++]<>>=Re,W-=Re,f.back+=Re}if(X>>>=Ie,W-=Ie,f.back+=Ie,64&Te){T.msg="invalid distance code",f.mode=30;break}f.offset=Dt,f.extra=15&Te,f.mode=24;case 24:if(f.extra){for(k=f.extra;W>>=f.extra,W-=f.extra,f.back+=f.extra}if(f.offset>f.dmax){T.msg="invalid distance too far back",f.mode=30;break}f.mode=25;case 25:if(0===_e)break e;if(f.offset>(fe=we-_e)){if((fe=f.offset-fe)>f.whave&&f.sane){T.msg="invalid distance too far back",f.mode=30;break}ht=fe>f.wnext?f.wsize-(fe-=f.wnext):f.wnext-fe,fe>f.length&&(fe=f.length),It=f.window}else It=oe,ht=ve-f.offset,fe=f.length;for(_e$?(R=ht[It+w[B]],W[Se+w[B]]):(R=96,0),P=1<>ve)+(L-=P)]=ne<<24|R<<16|j|0,0!==L;);for(P=1<>=1;if(0!==P?(X&=P-1,X+=P):X=0,B++,0==--we[T]){if(T===Z)break;T=y[_+w[B]]}if(oe>>7)]}function Se(M,H){M.pending_buf[M.pending++]=255&H,M.pending_buf[M.pending++]=H>>>8&255}function we(M,H,ae){M.bi_valid>C-ae?(M.bi_buf|=H<>C-M.bi_valid,M.bi_valid+=ae-C):(M.bi_buf|=H<>>=1,ae<<=1,0<--H;);return ae>>>1}function It(M,H,ae){var ce,q,he=new Array(w+1),Ce=0;for(ce=1;ce<=w;ce++)he[ce]=Ce=Ce+ae[ce-1]<<1;for(q=0;q<=H;q++){var pe=M[2*q+1];0!==pe&&(M[2*q]=ht(he[pe]++,pe))}}function Ie(M){var H;for(H=0;H<_;H++)M.dyn_ltree[2*H]=0;for(H=0;H>1;1<=ae;ae--)Re(M,he,ae);for(q=Ae;ae=M.heap[1],M.heap[1]=M.heap[M.heap_len--],Re(M,he,1),ce=M.heap[1],M.heap[--M.heap_max]=ae,M.heap[--M.heap_max]=ce,he[2*q]=he[2*ae]+he[2*ce],M.depth[q]=(M.depth[ae]>=M.depth[ce]?M.depth[ae]:M.depth[ce])+1,he[2*ae+1]=he[2*ce+1]=q,M.heap[1]=q++,Re(M,he,1),2<=M.heap_len;);M.heap[--M.heap_max]=M.heap[1],function(We,tn){var Hr,wn,nn,pt,hi,pi,Rn=tn.dyn_tree,Xs=tn.max_code,Su=tn.stat_desc.static_tree,Iu=tn.stat_desc.has_stree,Au=tn.stat_desc.extra_bits,Ks=tn.stat_desc.extra_base,zr=tn.stat_desc.max_length,gi=0;for(pt=0;pt<=w;pt++)We.bl_count[pt]=0;for(Rn[2*We.heap[We.heap_max]+1]=0,Hr=We.heap_max+1;Hr<573;Hr++)zr<(pt=Rn[2*Rn[2*(wn=We.heap[Hr])+1]+1]+1)&&(pt=zr,gi++),Rn[2*wn+1]=pt,Xs>=7;q>>=1)if(1&tt&&0!==pe.dyn_ltree[2*Ae])return 0;if(0!==pe.dyn_ltree[18]||0!==pe.dyn_ltree[20]||0!==pe.dyn_ltree[26])return 1;for(Ae=32;Ae>>3)<=(q=M.opt_len+3+7>>>3)&&(q=he)):q=he=ae+5,ae+4<=q&&-1!==H?k(M,H,ae,ce):4===M.strategy||he===q?(we(M,2+(ce?1:0),3),en(M,K,T)):(we(M,4+(ce?1:0),3),function(pe,Ae,tt,We){var tn;for(we(pe,Ae-257,5),we(pe,tt-1,5),we(pe,We-4,4),tn=0;tn>>8&255,M.pending_buf[M.d_buf+2*M.last_lit+1]=255&H,M.pending_buf[M.l_buf+M.last_lit]=255&ae,M.last_lit++,0===H?M.dyn_ltree[2*ae]++:(M.matches++,H--,M.dyn_ltree[2*(f[ae]+y+1)]++,M.dyn_dtree[2*W(H)]++),M.last_lit===M.lit_bufsize-1},O._tr_align=function(M){var H;we(M,2,3),fe(M,256,K),16===(H=M).bi_valid?(Se(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(F,Y,O){"use strict";Y.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(F,Y,O){(function(x){!function(I,v){"use strict";if(!I.setImmediate){var b,E,D,y,_=1,d={},m=!1,g=I.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(I);w=w&&w.setTimeout?w:I,b="[object process]"==={}.toString.call(I.process)?function(U){process.nextTick(function(){P(U)})}:function(){if(I.postMessage&&!I.importScripts){var U=!0,S=I.onmessage;return I.onmessage=function(){U=!1},I.postMessage("","*"),I.onmessage=S,U}}()?(y="setImmediate$"+Math.random()+"$",I.addEventListener?I.addEventListener("message",L,!1):I.attachEvent("onmessage",L),function(U){I.postMessage(y+U,"*")}):I.MessageChannel?((D=new MessageChannel).port1.onmessage=function(U){P(U.data)},function(U){D.port2.postMessage(U)}):g&&"onreadystatechange"in g.createElement("script")?(E=g.documentElement,function(U){var S=g.createElement("script");S.onreadystatechange=function(){P(U),S.onreadystatechange=null,E.removeChild(S),S=null},E.appendChild(S)}):function(U){setTimeout(P,0,U)},w.setImmediate=function(U){"function"!=typeof U&&(U=new Function(""+U));for(var S=new Array(arguments.length-1),V=0;V"u"?void 0===x?this:x:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},8:(rt,F)=>{"use strict";F.y=void 0;class O{constructor(){this.parts=[]}hasTablature(){return void 0!==this.tablature}hasMeasures(){return void 0!==this.measures}hasComment(){return void 0!==this.comment}}F.y=(()=>{class I{static parse(b){const E={attrs:{},sections:[],custom:{}};let D;const y=b.split("\n");for(const _ of y)_.startsWith("@")?this.processAttribute(E,_):_.startsWith("!")?this.processCustomAttribute(E,_):_.startsWith("#")?D=this.processSection(E,_):this.processLyricsAndChords(E,D,_);return E}static processAttribute(b,E){const D=this.ATTRIBUTE_REGEX.exec(E);null!=D?.[1]&&(b.attrs[D[1]]=D[2])}static processCustomAttribute(b,E){const D=this.CUSTOM_ATTRIBUTE_REGEX.exec(E);null!=D?.[1]&&null!=D[2]&&(b.custom[D[1]]=D[2])}static processSection(b,E){const D=this.SECTION_REGEX.exec(E),y={name:"",lines:[]};return null!=D[1]&&(y.name=D[1],b.sections.push(y)),y}static processLyricsAndChords(b,E,D){if(""!==D){void 0===E&&b.sections.push(E={name:"",lines:[]});const y=this.buildLine(D);E.lines.push(y)}}static buildLine(b){const E=new O;if(b.startsWith("|-"))E.tablature=b;else if(b.startsWith("| "))E.measures=this.getMeasures(b);else if(b.startsWith(">"))E.comment=this.getComment(b);else{const D=this.scan(b,this.CHORDS_AND_LYRICS_REGEX),y=this.chunk(D,2);for(const _ of y){const d=this.getPart(_[0],_[1]);""===d.chord&&""===d.lyric||E.parts.push(d)}}return E}static getMeasures(b){const E=this.scan(b,this.MEASURES_REGEX),D=[];for(const y of E){let _=[];void 0!==y&&(_=this.scan(y,this.CHORDS_REGEX));const d={chords:[]};d.chords=_,D.push(d)}return D}static getComment(b){return this.COMMENT_REGEX.exec(b)[1].trim()}static getPart(b,E){let D,y="";return null!=E&&(y=E),void 0!==b&&(D=b.replace("[","").replace("]","")),void 0===D&&(D=""),{chord:D.trim(),lyric:y.trim()}}static chunk(b,E,D=[]){const y=[...b];for(;y.length;)D.push(y.splice(0,E));return D}static scan(b,E){return[...b.matchAll(E)].flatMap(D=>D.slice(1))}}return I.SECTION_REGEX=/#\s*([^$]*)/,I.ATTRIBUTE_REGEX=/@(\w*)=([^%]*)/,I.CUSTOM_ATTRIBUTE_REGEX=/!(\w*)=([^%]*)/,I.CHORDS_AND_LYRICS_REGEX=/(\[[\w#b/]+])?([\w\s',.!()_\-"]*)/gi,I.MEASURES_REGEX=/([[\w#b/\]+\]\s]+)[|]*/gi,I.CHORDS_REGEX=/\[([\w#b+/]+)]?/gi,I.COMMENT_REGEX=/>\s*([^$]*)/,I})()},626:rt=>{const F=/^[-+]?0x[a-fA-F0-9]+$/,Y=/^([\-\+])?(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 O={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};rt.exports=function x(v,b={}){if(b=Object.assign({},O,b),!v||"string"!=typeof v)return v;let E=v.trim();if(void 0!==b.skipLike&&b.skipLike.test(E))return v;if(b.hex&&F.test(E))return Number.parseInt(E,16);{const D=Y.exec(E);if(D){const y=D[1],_=D[2];let d=function I(v){return v&&-1!==v.indexOf(".")&&("."===(v=v.replace(/0+$/,""))?v="0":"."===v[0]?v="0"+v:"."===v[v.length-1]&&(v=v.substr(0,v.length-1))),v}(D[3]);const m=D[4]||D[6];if(!b.leadingZeros&&_.length>0&&y&&"."!==E[2])return v;if(!b.leadingZeros&&_.length>0&&!y&&"."!==E[1])return v;{const g=Number(E),w=""+g;return-1!==w.search(/[eE]/)||m?b.eNotation?g:v:-1!==E.indexOf(".")?"0"===w&&""===d||w===d||y&&w==="-"+d?g:v:_?d===w||y+d===w?g:v:E===w||E===y+w?g:v}}return v}}}},rt=>{rt(rt.s=99)}]); \ No newline at end of file diff --git a/main.6c73e15b3d119844.js b/main.6c73e15b3d119844.js new file mode 100644 index 0000000..f32135e --- /dev/null +++ b/main.6c73e15b3d119844.js @@ -0,0 +1 @@ +(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[179],{544:(rt,F,Y)=>{"use strict";function O(e){return"function"==typeof e}function A(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 I=A(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 v(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class b{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(O(r))try{r()}catch(o){t=o instanceof I?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{y(o)}catch(s){t=t??[],s instanceof I?t=[...t,...s.errors]:t.push(s)}}if(t)throw new I(t)}}add(t){var n;if(t&&t!==this)if(this.closed)y(t);else{if(t instanceof b){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)&&v(n,t)}remove(t){const{_finalizers:n}=this;n&&v(n,t),t instanceof b&&t._removeParent(this)}}b.EMPTY=(()=>{const e=new b;return e.closed=!0,e})();const E=b.EMPTY;function D(e){return e instanceof b||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function y(e){O(e)?e():e.unsubscribe()}const _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},d={setTimeout(e,t,...n){const{delegate:r}=d;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=d;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function m(e){d.setTimeout(()=>{const{onUnhandledError:t}=_;if(!t)throw e;t(e)})}function p(){}const w=L("C",void 0,void 0);function L(e,t,n){return{kind:e,value:t,error:n}}let U=null;function S(e){if(_.useDeprecatedSynchronousErrorHandling){const t=!U;if(t&&(U={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=U;if(U=null,n)throw r}}else e()}class $ extends b{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,D(t)&&t.add(this)):this.destination=Z}static create(t,n,r){return new K(t,n,r)}next(t){this.isStopped?f(function R(e){return L("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?f(function C(e){return L("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?f(w,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 ne=Function.prototype.bind;function N(e,t){return ne.call(e,t)}class B{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){M(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){M(r)}else M(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){M(n)}}}class K extends ${constructor(t,n,r){let i;if(super(),O(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&_.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&N(t.next,o),error:t.error&&N(t.error,o),complete:t.complete&&N(t.complete,o)}):i=t}this.destination=new B(i)}}function M(e){_.useDeprecatedSynchronousErrorHandling?function j(e){_.useDeprecatedSynchronousErrorHandling&&U&&(U.errorThrown=!0,U.error=e)}(e):m(e)}function f(e,t){const{onStoppedNotification:n}=_;n&&d.setTimeout(()=>n(e,t))}const Z={closed:!0,next:p,error:function V(e){throw e},complete:p},oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function z(e){return e}function re(e){return 0===e.length?z:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}let ye=(()=>{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 Ee(e){return e&&e instanceof $||function W(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}(e)&&D(e)}(n)?n:new K(n,r,i);return S(()=>{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=X(r))((i,o)=>{const s=new K({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)}[oe](){return this}pipe(...n){return re(n)(this)}toPromise(n){return new(n=X(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function X(e){var t;return null!==(t=e??_.Promise)&&void 0!==t?t:Promise}const we=A(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fe=(()=>{class e extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new ht(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new we}next(n){S(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){S(()=>{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(){S(()=>{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?E:(this.currentObservers=null,o.push(n),new b(()=>{this.currentObservers=null,v(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new ye;return n.source=this,n}}return e.create=(t,n)=>new ht(t,n),e})();class ht extends fe{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:E}}function St(e){return O(e?.lift)}function Ie(e){return t=>{if(St(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 Me(e,t,n,r,i){return new bt(e,t,n,r,i)}class bt extends ${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 Re(e,t){return Ie((n,r)=>{let i=0;n.subscribe(Me(r,o=>{r.next(e.call(t,o,i++))}))})}function nn(e){return this instanceof nn?(this.v=e,this):new nn(e)}function gi(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 tt(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 Gh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Wh(e){return O(e?.then)}function qh(e){return O(e[oe])}function Zh(e){return Symbol.asyncIterator&&O(e?.[Symbol.asyncIterator])}function Yh(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 Xh=function GC(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Kh(e){return O(e?.[Xh])}function Qh(e){return function pt(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(x){r[x]&&(i[x]=function(P){return new Promise(function(G,Q){o.push([x,P,G,Q])>1||a(x,P)})})}function a(x,P){try{!function u(x){x.value instanceof nn?Promise.resolve(x.value.v).then(l,c):g(o[0][2],x)}(r[x](P))}catch(G){g(o[0][3],G)}}function l(x){a("next",x)}function c(x){a("throw",x)}function g(x,P){x(P),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 nn(n.read());if(i)return yield nn(void 0);yield yield nn(r)}}finally{n.releaseLock()}})}function Jh(e){return O(e?.getReader)}function Cn(e){if(e instanceof ye)return e;if(null!=e){if(qh(e))return function WC(e){return new ye(t=>{const n=e[oe]();if(O(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Gh(e))return function qC(e){return new ye(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,m)})}(e);if(Zh(e))return ep(e);if(Kh(e))return function YC(e){return new ye(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Jh(e))return function XC(e){return ep(Qh(e))}(e)}throw Yh(e)}function ep(e){return new ye(t=>{(function KC(e,t){var n,r,i,o;return function he(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{l(r.next(c))}catch(g){s(g)}}function u(c){try{l(r.throw(c))}catch(g){s(g)}}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=gi(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 ar(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 Rt(e,t,n=1/0){return O(t)?Rt((r,i)=>Re((o,s)=>t(r,o,i,s))(Cn(e(r,i))),n):("number"==typeof t&&(n=t),Ie((r,i)=>function QC(e,t,n,r,i,o,s,a){const u=[];let l=0,c=0,g=!1;const x=()=>{g&&!u.length&&!l&&t.complete()},P=Q=>l{o&&t.next(Q),l++;let le=!1;Cn(n(Q,c++)).subscribe(Me(t,de=>{i?.(de),o?P(de):t.next(de)},()=>{le=!0},void 0,()=>{if(le)try{for(l--;u.length&&lG(de)):G(de)}x()}catch(de){t.error(de)}}))};return e.subscribe(Me(t,P,()=>{g=!0,x()})),()=>{a?.()}}(r,i,e,n)))}function vi(e=1/0){return Rt(z,e)}const Gn=new ye(e=>e.complete());function Ml(e){return e[e.length-1]}function No(e){return function eb(e){return e&&O(e.schedule)}(Ml(e))?e.pop():void 0}function tp(e,t=0){return Ie((n,r)=>{n.subscribe(Me(r,i=>ar(r,e,()=>r.next(i),t),()=>ar(r,e,()=>r.complete(),t),i=>ar(r,e,()=>r.error(i),t)))})}function np(e,t=0){return Ie((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function rp(e,t){if(!e)throw new Error("Iterable cannot be null");return new ye(n=>{ar(n,t,()=>{const r=e[Symbol.asyncIterator]();ar(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Ot(e,t){return t?function ub(e,t){if(null!=e){if(qh(e))return function rb(e,t){return Cn(e).pipe(np(t),tp(t))}(e,t);if(Gh(e))return function ob(e,t){return new ye(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Wh(e))return function ib(e,t){return Cn(e).pipe(np(t),tp(t))}(e,t);if(Zh(e))return rp(e,t);if(Kh(e))return function sb(e,t){return new ye(n=>{let r;return ar(n,t,()=>{r=e[Xh](),ar(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)}),()=>O(r?.return)&&r.return()})}(e,t);if(Jh(e))return function ab(e,t){return rp(Qh(e),t)}(e,t)}throw Yh(e)}(e,t):Cn(e)}class bn extends fe{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 Le(...e){return Ot(e,No(e))}function ip(e={}){const{connector:t=(()=>new fe),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,u,l=0,c=!1,g=!1;const x=()=>{a?.unsubscribe(),a=void 0},P=()=>{x(),s=u=void 0,c=g=!1},G=()=>{const Q=s;P(),Q?.unsubscribe()};return Ie((Q,le)=>{l++,!g&&!c&&x();const de=u=u??t();le.add(()=>{l--,0===l&&!g&&!c&&(a=Nl(G,i))}),de.subscribe(le),!s&&l>0&&(s=new K({next:ee=>de.next(ee),error:ee=>{g=!0,x(),a=Nl(P,n,ee),de.error(ee)},complete:()=>{c=!0,x(),a=Nl(P,r),de.complete()}}),Cn(Q).subscribe(s))})(o)}}function Nl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new K({next:()=>{r.unsubscribe(),e()}});return Cn(t(...n)).subscribe(r)}function Wn(e,t){return Ie((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(Me(r,u=>{i?.unsubscribe();let l=0;const c=o++;Cn(e(u,c)).subscribe(i=Me(r,g=>r.next(t?t(u,g,c,l++):g),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function db(e,t){return e===t}function it(e){for(let t in e)if(e[t]===it)return t;throw Error("Could not find renamed property on target object.")}function It(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(It).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 Rl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const fb=it({__forward_ref__:it});function Ol(e){return e.__forward_ref__=Ol,e.toString=function(){return It(this())},e}function Fe(e){return kl(e)?e():e}function kl(e){return"function"==typeof e&&e.hasOwnProperty(fb)&&e.__forward_ref__===Ol}function Pl(e){return e&&!!e.\u0275providers}const op="https://g.co/ng/security#xss";class ge extends Error{constructor(t,n){super(function ia(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function je(e){return"string"==typeof e?e:null==e?"":String(e)}function Fl(e,t){throw new ge(-201,!1)}function Dn(e,t){null==e&&function Oe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qn(e){return{providers:e.providers||[],imports:e.imports||[]}}function oa(e){return sp(e,aa)||sp(e,ap)}function sp(e,t){return e.hasOwnProperty(t)?e[t]:null}function sa(e){return e&&(e.hasOwnProperty(Ll)||e.hasOwnProperty(wb))?e[Ll]:null}const aa=it({\u0275prov:it}),Ll=it({\u0275inj:it}),ap=it({ngInjectableDef:it}),wb=it({ngInjectorDef:it});var We=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}(We||{});let jl;function up(){return jl}function rn(e){const t=jl;return jl=e,t}function lp(e,t,n){const r=oa(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&We.Optional?null:void 0!==t?t:void Fl(It(e))}const at=globalThis,Ro={},Hl="__NG_DI_FLAG__",ua="ngTempTokenPath",Db=/\n/gm,dp="__source";let yi;function Nr(e){const t=yi;return yi=e,t}function Ib(e,t=We.Default){if(void 0===yi)throw new ge(-203,!1);return null===yi?lp(e,void 0,t):yi.get(e,t&We.Optional?null:void 0,t)}function Ae(e,t=We.Default){return(up()||Ib)(Fe(e),t)}function me(e,t=We.Default){return Ae(e,la(t))}function la(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function zl(e){const t=[];for(let n=0;nt){s=o-1;break}}}for(;oo?"":i[g+1].toLowerCase();const P=8&r?x:null;if(P&&-1!==gp(P,l,0)||2&r&&l!==x){if(Pn(r))return!1;s=!0}}}}else{if(!s&&!Pn(r)&&!Pn(u))return!1;if(s&&Pn(u))continue;s=!1,r=u|1&r}}return Pn(r)||s}function Pn(e){return 0==(1&e)}function Ob(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&&!Pn(s)&&(t+=bp(o,i),i=""),r=s,o=o||!Pn(r);n++}return""!==i&&(t+=bp(o,i)),t}function cr(e){return ur(()=>{const t=Ep(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ca.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kn.Emulated,styles:e.styles||Qe,_:null,schemas:e.schemas||null,tView:null,id:""};Sp(n);const r=e.dependencies;return n.directiveDefs=fa(r,!1),n.pipeDefs=fa(r,!0),n.id=function Wb(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 Ub(e){return Xe(e)||kt(e)}function Hb(e){return null!==e}function dr(e){return ur(()=>({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 Dp(e,t){if(null==e)return Zn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function Vt(e){return ur(()=>{const t=Ep(e);return Sp(t),t})}function Xe(e){return e[da]||null}function kt(e){return e[Gl]||null}function Wt(e){return e[Wl]||null}function pn(e,t){const n=e[hp]||null;if(!n&&!0===t)throw new Error(`Type ${It(e)} does not have '\u0275mod' property.`);return n}function Ep(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||Zn,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:Dp(e.inputs,t),outputs:Dp(e.outputs)}}function Sp(e){e.features?.forEach(t=>t(e))}function fa(e,t){if(!e)return null;const n=t?Wt:Ub;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Hb)}const vt=0,_e=1,Ue=2,gt=3,Fn=4,Fo=5,$t=6,wi=7,_t=8,Rr=9,Ci=10,Be=11,Lo=12,Ip=13,bi=14,wt=15,jo=16,Di=17,Yn=18,Bo=19,xp=20,Or=21,fr=22,Vo=23,$o=24,qe=25,Zl=1,Ap=2,Xn=7,Ei=9,Pt=11;function sn(e){return Array.isArray(e)&&"object"==typeof e[Zl]}function qt(e){return Array.isArray(e)&&!0===e[Zl]}function Yl(e){return 0!=(4&e.flags)}function Zr(e){return e.componentOffset>-1}function pa(e){return 1==(1&e.flags)}function Ln(e){return!!e.template}function Xl(e){return 0!=(512&e[Ue])}function Yr(e,t){return e.hasOwnProperty(lr)?e[lr]:null}let Ft=null,ga=!1;function En(e){const t=Ft;return Ft=e,t}const Np={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Op(e){if(!Ho(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Fp(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Pp(e){e.dirty=!0,function kp(e){if(void 0===e.liveConsumerNode)return;const t=ga;ga=!0;try{for(const n of e.liveConsumerNode)n.dirty||Pp(n)}finally{ga=t}}(e),e.consumerMarkedDirty?.(e)}function Ql(e){return e&&(e.nextProducerIndex=0),En(e)}function Jl(e,t){if(En(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ho(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fp(e){Si(e);for(let t=0;t0}function Si(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Vp=null;const zp=()=>{},oD=(()=>({...Np,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:zp}))();class sD{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Xr(){return Gp}function Gp(e){return e.type.prototype.ngOnChanges&&(e.setInput=uD),aD}function aD(){const e=qp(this),t=e?.current;if(t){const n=e.previous;if(n===Zn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function uD(e,t,n,r){const i=this.declaredInputs[n],o=qp(e)||function lD(e,t){return e[Wp]=t}(e,{previous:Zn,current:null}),s=o.current||(o.current={}),a=o.previous,u=a[i];s[i]=new sD(u&&u.currentValue,t,a===Zn),e[r]=t}Xr.ngInherit=!0;const Wp="__ngSimpleChanges__";function qp(e){return e[Wp]||null}const Kn=function(e,t,n){},Zp="svg";function ut(e){for(;Array.isArray(e);)e=e[vt];return e}function an(e,t){return ut(t[e.index])}function Xp(e,t){return e.data[t]}function gn(e,t){const n=t[e];return sn(n)?n:n[vt]}function Pr(e,t){return null==t?null:e[t]}function Kp(e){e[Di]=0}function gD(e){1024&e[Ue]||(e[Ue]|=1024,Jp(e,1))}function Qp(e){1024&e[Ue]&&(e[Ue]&=-1025,Jp(e,-1))}function Jp(e,t){let n=e[gt];if(null===n)return;n[Fo]+=t;let r=n;for(n=n[gt];null!==n&&(1===t&&1===r[Fo]||-1===t&&0===r[Fo]);)n[Fo]+=t,r=n,n=n[gt]}function eg(e,t){if(256==(256&e[Ue]))throw new ge(911,!1);null===e[Or]&&(e[Or]=[]),e[Or].push(t)}const ke={lFrame:cg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ng(){return ke.bindingsEnabled}function ie(){return ke.lFrame.lView}function Ke(){return ke.lFrame.tView}function Kr(e){return ke.lFrame.contextLView=e,e[_t]}function Qr(e){return ke.lFrame.contextLView=null,e}function Lt(){let e=rg();for(;null!==e&&64===e.type;)e=e.parent;return e}function rg(){return ke.lFrame.currentTNode}function Qn(e,t){const n=ke.lFrame;n.currentTNode=e,n.isParent=t}function ic(){return ke.lFrame.isParent}function Zt(){const e=ke.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hr(){return ke.lFrame.bindingIndex}function Ai(){return ke.lFrame.bindingIndex++}function pr(e){const t=ke.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function xD(e,t){const n=ke.lFrame;n.bindingIndex=n.bindingRootIndex=e,sc(t)}function sc(e){ke.lFrame.currentDirectiveIndex=e}function ag(){return ke.lFrame.currentQueryIndex}function uc(e){ke.lFrame.currentQueryIndex=e}function TD(e){const t=e[_e];return 2===t.type?t.declTNode:1===t.type?e[$t]:null}function ug(e,t,n){if(n&We.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&We.Host||(i=TD(o),null===i||(o=o[bi],10&i.type))););if(null===i)return!1;t=i,e=o}const r=ke.lFrame=lg();return r.currentTNode=t,r.lView=e,!0}function lc(e){const t=lg(),n=e[_e];ke.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function lg(){const e=ke.lFrame,t=null===e?null:e.child;return null===t?cg(e):t}function cg(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 dg(){const e=ke.lFrame;return ke.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const fg=dg;function cc(){const e=dg();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 Yt(){return ke.lFrame.selectedIndex}function Jr(e){ke.lFrame.selectedIndex=e}function mt(){const e=ke.lFrame;return Xp(e.tView,e.selectedIndex)}function xt(){ke.lFrame.currentNamespace=Zp}function Jn(){!function OD(){ke.lFrame.currentNamespace=null}()}let pg=!0;function ya(){return pg}function Fr(e){pg=e}function _a(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Di]+=65536),(a>13>16&&(3&e[Ue])===t&&(e[Ue]+=8192,mg(a,o)):mg(a,o)}const Ti=-1;class Go{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function hc(e){return e!==Ti}function Wo(e){return 32767&e}function qo(e,t){let n=function BD(e){return e>>16}(e),r=t;for(;n>0;)r=r[bi],n--;return r}let pc=!0;function ba(e){const t=pc;return pc=e,t}const vg=255,yg=5;let VD=0;const er={};function Da(e,t){const n=_g(e,t);if(-1!==n)return n;const r=t[_e];r.firstCreatePass&&(e.injectorIndex=t.length,gc(r.data,e),gc(t,null),gc(r.blueprint,null));const i=Ea(e,t),o=e.injectorIndex;if(hc(i)){const s=Wo(i),a=qo(i,t),u=a[_e].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l]}return t[o+8]=i,o}function gc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function _g(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ea(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=xg(i),null===r)return Ti;if(n++,i=i[bi],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Ti}function mc(e,t,n){!function $D(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ko)&&(r=n[ko]),null==r&&(r=n[ko]=VD++);const i=r&vg;t.data[e+(i>>yg)]|=1<=0?t&vg:WD:t}(n);if("function"==typeof o){if(!ug(t,e,r))return r&We.Host?wg(i,0,r):Cg(t,n,r,i);try{let s;if(s=o(r),null!=s||r&We.Optional)return s;Fl()}finally{fg()}}else if("number"==typeof o){let s=null,a=_g(e,t),u=Ti,l=r&We.Host?t[wt][$t]:null;for((-1===a||r&We.SkipSelf)&&(u=-1===a?Ea(e,t):t[a+8],u!==Ti&&Sg(r,!1)?(s=t[_e],a=Wo(u),t=qo(u,t)):a=-1);-1!==a;){const c=t[_e];if(Eg(o,a,c.data)){const g=HD(a,t,n,s,r,l);if(g!==er)return g}u=t[a+8],u!==Ti&&Sg(r,t[_e].data[a+8]===l)&&Eg(o,a,t)?(s=c,a=Wo(u),t=qo(u,t)):a=-1}}return i}function HD(e,t,n,r,i,o){const s=t[_e],a=s.data[e+8],c=Sa(a,s,n,null==r?Zr(a)&&pc:r!=s&&0!=(3&a.type),i&We.Host&&o===a);return null!==c?ei(t,s,c,a):er}function Sa(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=o>>20,x=i?a+c:e.directiveEnd;for(let P=r?a:a+c;P=u&&G.type===n)return P}if(i){const P=s[u];if(P&&Ln(P)&&P.type===n)return u}return null}function ei(e,t,n,r){let i=e[n];const o=t.data;if(function FD(e){return e instanceof Go}(i)){const s=i;s.resolving&&function hb(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ge(-200,`Circular dependency in DI detected for ${e}${n}`)}(function nt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():je(e)}(o[n]));const a=ba(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?rn(s.injectImpl):null;ug(e,r,We.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function kD(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Gp(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&&rn(l),ba(a),s.resolving=!1,fg()}}return i}function Eg(e,t,n){return!!(n[t+(e>>yg)]&1<{const t=vc(Fe(e));return t&&t()}:Yr(e)}function xg(e){const t=e[_e],n=t.type;return 2===n?t.declTNode:1===n?e[$t]:null}const Ni="__parameters__";function Oi(e,t,n){return ur(()=>{const r=function yc(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 g=u.hasOwnProperty(Ni)?u[Ni]:Object.defineProperty(u,Ni,{value:[]})[Ni];for(;g.length<=c;)g.push(null);return(g[c]=g[c]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Pi(e,t){e.forEach(n=>Array.isArray(n)?Pi(n,t):t(n))}function Tg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xa(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Ta=Oo(Oi("Optional"),8),Ma=Oo(Oi("SkipSelf"),4);function Pa(e){return 128==(128&e.flags)}var Lr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Lr||{});const Ec=new Map;let EE=0;const Ic="__ngContext__";function Ut(e,t){sn(t)?(e[Ic]=t[Bo],function IE(e){Ec.set(e[Bo],e)}(t)):e[Ic]=t}let xc;function Ac(e,t){return xc(e,t)}function Jo(e){const t=e[gt];return qt(t)?t[gt]:t}function Xg(e){return Qg(e[Lo])}function Kg(e){return Qg(e[Fn])}function Qg(e){for(;null!==e&&!qt(e);)e=e[Fn];return e}function Bi(e,t,n,r,i){if(null!=r){let o,s=!1;qt(r)?o=r:sn(r)&&(s=!0,r=r[vt]);const a=ut(r);0===e&&null!==n?null==i?nm(t,n,a):ti(t,n,a,i||null,!0):1===e&&null!==n?ti(t,n,a,i||null,!0):2===e?function Ua(e,t,n){const r=Va(e,t);r&&function GE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function ZE(e,t,n,r,i){const o=n[Xn];o!==ut(n)&&Bi(t,e,r,o,i);for(let a=Pt;a0&&(e[n-1][Fn]=r[Fn]);const o=xa(e,Pt+t);!function LE(e,t){ts(e,t,t[Be],2,null,null),t[vt]=null,t[$t]=null}(r[_e],r);const s=o[Yn];null!==s&&s.detachView(o[_e]),r[gt]=null,r[Fn]=null,r[Ue]&=-129}return r}function Mc(e,t){if(!(256&t[Ue])){const n=t[Be];t[Vo]&&Lp(t[Vo]),t[$o]&&Lp(t[$o]),n.destroyNode&&ts(e,t,n,3,null,null),function VE(e){let t=e[Lo];if(!t)return Nc(e[_e],e);for(;t;){let n=null;if(sn(t))n=t[Lo];else{const r=t[Pt];r&&(n=r)}if(!n){for(;t&&!t[Fn]&&t!==e;)sn(t)&&Nc(t[_e],t),t=t[gt];null===t&&(t=e),sn(t)&&Nc(t[_e],t),n=t&&t[Fn]}t=n}}(t)}}function Nc(e,t){if(!(256&t[Ue])){t[Ue]&=-129,t[Ue]|=256,function zE(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else n[o].call(r[n[o+1]]);null!==r&&(t[wi]=null);const i=t[Or];if(null!==i){t[Or]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===kn.None||o===kn.Emulated)return null}return an(r,n)}}(e,t.parent,n)}function ti(e,t,n,r,i){e.insertBefore(t,n,r,i)}function nm(e,t,n){e.appendChild(t,n)}function rm(e,t,n,r,i){null!==r?ti(e,t,n,r,i):nm(e,t,n)}function Va(e,t){return e.parentNode(t)}let Oc,Lc,za,sm=function om(e,t,n){return 40&e.type?an(e,n):null};function $a(e,t,n,r){const i=Rc(e,r,t),o=t[Be],a=function im(e,t,n){return sm(e,t,n)}(r.parent||t[$t],r,t);if(null!=i)if(Array.isArray(n))for(let u=0;ue,createScript:e=>e,createScriptURL:e=>e})}catch{}return za}()?.createScriptURL(e)||e}class mm{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${op})`}}function jr(e){return e instanceof mm?e.changingThisBreaksApplicationSecurity:e}function ns(e,t){const n=function sS(e){return e instanceof mm&&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 ${op})`)}return n===t}const cS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ui=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}(Ui||{});function Hc(e){const t=is();return t?t.sanitize(Ui.URL,e)||"":ns(e,"URL")?jr(e):function Bc(e){return(e=String(e)).match(cS)?e:"unsafe:"+e}(je(e))}function Dm(e){const t=is();if(t)return gm(t.sanitize(Ui.RESOURCE_URL,e)||"");if(ns(e,"ResourceURL"))return gm(jr(e));throw new ge(904,!1)}function is(){const e=ie();return e&&e[Ci].sanitizer}class De{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=Te({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const os=new De("ENVIRONMENT_INITIALIZER"),Sm=new De("INJECTOR",-1),Im=new De("INJECTOR_DEF_TYPES");class zc{get(t,n=Ro){if(n===Ro){const r=new Error(`NullInjectorError: No provider for ${It(t)}!`);throw r.name="NullInjectorError",r}return n}}function DS(...e){return{\u0275providers:Am(0,e),\u0275fromNgModule:!0}}function Am(e,...t){const n=[],r=new Set;let i;const o=s=>{n.push(s)};return Pi(t,s=>{const a=s;Wa(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&Tm(i,o),n}function Tm(e,t){for(let n=0;n{t(o,r)})}}function Wa(e,t,n,r){if(!(e=Fe(e)))return!1;let i=null,o=sa(e);const s=!o&&Xe(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const u=e.ngModule;if(o=sa(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)Wa(l,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;r.add(i);try{Pi(o.imports,c=>{Wa(c,t,n,r)&&(l||=[],l.push(c))})}finally{}void 0!==l&&Tm(l,t)}if(!a){const l=Yr(i)||(()=>new i);t({provide:i,useFactory:l,deps:Qe},i),t({provide:Im,useValue:i,multi:!0},i),t({provide:os,useValue:()=>Ae(i),multi:!0},i)}const u=o.providers;if(null!=u&&!a){const l=e;Gc(u,c=>{t(c,l)})}}}return i!==e&&void 0!==e.providers}function Gc(e,t){for(let n of e)Pl(n)&&(n=n.\u0275providers),Array.isArray(n)?Gc(n,t):t(n)}const ES=it({provide:String,useValue:it});function Wc(e){return null!==e&&"object"==typeof e&&ES in e}function ni(e){return"function"==typeof e}const qc=new De("Set Injector scope."),qa={},IS={};let Zc;function Za(){return void 0===Zc&&(Zc=new zc),Zc}class In{}class Ya extends In{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,Xc(t,s=>this.processProvider(s)),this.records.set(Sm,Hi(void 0,this)),i.has("environment")&&this.records.set(In,Hi(void 0,this));const o=this.records.get(qc);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Im.multi,Qe,We.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Nr(this),r=rn(void 0);try{return t()}finally{Nr(n),rn(r)}}get(t,n=Ro,r=We.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(pp))return t[pp](this);r=la(r);const o=Nr(this),s=rn(void 0);try{if(!(r&We.SkipSelf)){let u=this.records.get(t);if(void 0===u){const l=function NS(e){return"function"==typeof e||"object"==typeof e&&e instanceof De}(t)&&oa(t);u=l&&this.injectableDefInScope(l)?Hi(Yc(t),qa):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(r&We.Self?Za():this.parent).get(t,n=r&We.Optional&&n===Ro?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ua]=a[ua]||[]).unshift(It(t)),o)throw a;return function Ab(e,t,n,r){const i=e[ua];throw t[dp]&&i.unshift(t[dp]),e.message=function Tb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=It(t);if(Array.isArray(t))i=t.map(It).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):It(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Db,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[ua]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{rn(s),Nr(o)}}resolveInjectorInitializers(){const t=Nr(this),n=rn(void 0);try{const i=this.get(os.multi,Qe,We.Self);for(const o of i)o()}finally{Nr(t),rn(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(It(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ge(205,!1)}processProvider(t){let n=ni(t=Fe(t))?t:Fe(t&&t.provide);const r=function AS(e){return Wc(e)?Hi(void 0,e.useValue):Hi(function Rm(e,t,n){let r;if(ni(e)){const i=Fe(e);return Yr(i)||Yc(i)}if(Wc(e))r=()=>Fe(e.useValue);else if(function Nm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...zl(e.deps||[]));else if(function Mm(e){return!(!e||!e.useExisting)}(e))r=()=>Ae(Fe(e.useExisting));else{const i=Fe(e&&(e.useClass||e.provide));if(!function TS(e){return!!e.deps}(e))return Yr(i)||Yc(i);r=()=>new i(...zl(e.deps))}return r}(e),qa)}(t);if(ni(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Hi(void 0,qa,!0),i.factory=()=>zl(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===qa&&(n.value=IS,n.value=n.factory()),"object"==typeof n.value&&n.value&&function MS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Fe(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 Yc(e){const t=oa(e),n=null!==t?t.factory:Yr(e);if(null!==n)return n;if(e instanceof De)throw new ge(204,!1);if(e instanceof Function)return function xS(e){const t=e.length;if(t>0)throw function Xo(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new ge(204,!1)}function Hi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Xc(e,t){for(const n of e)Array.isArray(n)?Xc(n,t):n&&Pl(n)?Xc(n.\u0275providers,t):t(n)}const Xa=new De("AppId",{providedIn:"root",factory:()=>RS}),RS="ng",Om=new De("Platform Initializer"),ri=new De("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),km=new De("CSP nonce",{providedIn:"root",factory:()=>function $i(){if(void 0!==Lc)return Lc;if(typeof document<"u")return document;throw new ge(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Pm=(e,t,n)=>null;function id(e,t,n=!1){return Pm(e,t,n)}class US{}class jm{}class zS{resolveComponentFactory(t){throw function HS(e){const t=Error(`No component factory found for ${It(e)}.`);return t.ngComponent=e,t}(t)}}let nu=(()=>{class e{static#e=this.NULL=new zS}return e})();function GS(){return Wi(Lt(),ie())}function Wi(e,t){return new mr(an(e,t))}let mr=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=GS}return e})();function WS(e){return e instanceof mr?e.nativeElement:e}class Vm{}let ru=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function qS(){const e=ie(),n=gn(Lt().index,e);return(sn(n)?n:e)[Be]}()}return e})(),ZS=(()=>{class e{static#e=this.\u0275prov=Te({token:e,providedIn:"root",factory:()=>null})}return e})();class iu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const YS=new iu("16.2.7"),ad={};function zm(e,t=null,n=null,r){const i=Gm(e,t,n,r);return i.resolveInjectorInitializers(),i}function Gm(e,t=null,n=null,r,i=new Set){const o=[n||Qe,DS(e)];return r=r||("object"==typeof e?void 0:It(e)),new Ya(o,t||Za(),r||null,i)}let xn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Ro;static#t=this.NULL=new zc;static create(n,r){if(Array.isArray(n))return zm({name:""},r,n,"");{const i=n.name??"";return zm({name:i},n.parent,n.providers,i)}}static#n=this.\u0275prov=Te({token:e,providedIn:"any",factory:()=>Ae(Sm)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function ud(e){return e.ngOriginalError}class vr{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&&ud(t);for(;n&&ud(n);)n=ud(n);return n||null}}let qi=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=nI;static#t=this.__NG_ENV_ID__=n=>n}return e})();class tI extends qi{constructor(t){super(),this._lView=t}onDestroy(t){return eg(this._lView,t),()=>function mD(e,t){if(null===e[Or])return;const n=e[Or].indexOf(t);-1!==n&&e[Or].splice(n,1)}(this._lView,t)}}function nI(){return new tI(ie())}function ld(e){return t=>{setTimeout(e,void 0,t)}}const Ht=class rI extends fe{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}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 b&&t.add(a),a}};function qm(...e){}class lt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ht(!1),this.onMicrotaskEmpty=new Ht(!1),this.onStable=new Ht(!1),this.onError=new Ht(!1),typeof Zone>"u")throw new ge(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 iI(){const e="function"==typeof at.requestAnimationFrame;let t=at[e?"requestAnimationFrame":"setTimeout"],n=at[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 aI(e){const t=()=>{!function sI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(at,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,dd(e),e.isCheckStableRunning=!0,cd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),dd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(function lI(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 Zm(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ym(e)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return Zm(e),n.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ym(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,dd(e),cd(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(!lt.isInAngularZone())throw new ge(909,!1)}static assertNotInAngularZone(){if(lt.isInAngularZone())throw new ge(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,oI,qm,qm);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 oI={};function cd(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 dd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Zm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ym(e){e._nesting--,cd(e)}class uI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ht,this.onMicrotaskEmpty=new Ht,this.onStable=new Ht,this.onError=new Ht}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)}}const Xm=new De("",{providedIn:"root",factory:Km});function Km(){const e=me(lt);let t=!0;return function lb(...e){const t=No(e),n=function nb(e,t){return"number"==typeof Ml(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Cn(r[0]):vi(n)(Ot(r,t)):Gn}(new ye(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),new ye(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{lt.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{lt.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(ip()))}function su(e){return e.ownerDocument}function yr(e){return e instanceof Function?e():e}let fd=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Te({token:e,providedIn:"root",factory:()=>new e})}return e})();function us(e){for(;e;){e[Ue]|=64;const t=Jo(e);if(Xl(e)&&!t)return e;e=t}return null}const nv=new De("",{providedIn:"root",factory:()=>!1});let uu=null;function sv(e,t){return e[t]??lv()}function av(e,t){const n=lv();n.producerNode?.length&&(e[t]=uu,n.lView=e,uu=uv())}const yI={...Np,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{us(e.lView)},lView:null};function uv(){return Object.create(yI)}function lv(){return uu??=uv(),uu}const $e={};function Ve(e){cv(Ke(),ie(),Yt()+e,!1)}function cv(e,t,n,r){if(!r)if(3==(3&t[Ue])){const o=e.preOrderCheckHooks;null!==o&&wa(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Ca(t,o,0,n)}Jr(n)}function Ne(e,t=We.Default){const n=ie();return null===n?Ae(e,t):bg(Lt(),n,Fe(e),t)}function lu(e,t,n,r,i,o,s,a,u,l,c){const g=t.blueprint.slice();return g[vt]=i,g[Ue]=140|r,(null!==l||e&&2048&e[Ue])&&(g[Ue]|=2048),Kp(g),g[gt]=g[bi]=e,g[_t]=n,g[Ci]=s||e&&e[Ci],g[Be]=a||e&&e[Be],g[Rr]=u||e&&e[Rr]||null,g[$t]=o,g[Bo]=function SE(){return EE++}(),g[fr]=c,g[xp]=l,g[wt]=2==t.type?e[wt]:g,g}function Xi(e,t,n,r,i){let o=e.data[t];if(null===o)o=function hd(e,t,n,r,i){const o=rg(),s=ic(),u=e.data[t]=function II(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return function xi(){return null!==ke.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=u),null!==o&&(s?null==o.child&&null!==u.parent&&(o.child=u):null===o.next&&(o.next=u,u.prev=o)),u}(e,t,n,r,i),function ID(){return ke.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=function zo(){const e=ke.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Qn(o,!0),o}function ls(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;oqe&&cv(e,t,qe,!1),Kn(a?2:0,i);const l=a?o:null,c=Ql(l);try{null!==l&&(l.dirty=!1),n(r,i)}finally{Jl(l,c)}}finally{a&&null===t[Vo]&&av(t,Vo),Jr(s),Kn(a?3:1,i)}}function pd(e,t,n){if(Yl(t)){const r=En(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function gv(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const o=e[i];null===r?mv(n,t,i,o):r.hasOwnProperty(i)&&mv(n,t,r[i],o)}return n}function mv(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function yd(e,t,n,r){if(ng()){const i=null===r?null:{"":-1},o=function PI(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,ls(e,n,i.hostVars,$e),i)}function tr(e,t,n,r,i,o){const s=an(e,t);!function wd(e,t,n,r,i,o,s){if(null==o)e.removeAttribute(t,i,n);else{const a=null==s?je(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}(t[Be],s,o,e.value,n,r,i)}function $I(e,t,n,r,i,o){const s=o[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,i){const o=typeof Zone>"u"?null:Zone.current,s=function iD(e,t,n){const r=Object.create(oD);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const i=s=>{r.cleanupFn=s};return r.ref={notify:()=>Pp(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Fp(r))return;r.hasRun=!0;const s=Ql(r);try{r.cleanupFn(),r.cleanupFn=zp,r.fn(i)}finally{Jl(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(n,l=>{this.all.has(l)&&this.queue.set(l,o)},i);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Te({token:e,providedIn:"root",factory:()=>new e})}return e})();function du(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s0){Tv(e,1);const i=n.components;null!==i&&Nv(e,i,1)}}function Nv(e,t,n){for(let r=0;r-1&&(Ba(t,r),xa(n,r))}this._attachedToViewContainer=!1}Mc(this._lView[_e],this._lView)}onDestroy(t){eg(this._lView,t)}markForCheck(){us(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ue]&=-129}reattach(){this._lView[Ue]|=128}detectChanges(){fu(this._lView[_e],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ge(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function BE(e,t){ts(e,t,t[Be],2,null,null)}(this._lView[_e],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ge(902,!1);this._appRef=t}}class XI extends ds{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;fu(t[_e],t,t[_t],!1)}checkNoChanges(){}get context(){return null}}class Rv extends nu{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Xe(t);return new fs(n,this.ngModule)}}function Ov(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class QI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=la(r);const i=this.injector.get(t,ad,r);return i!==ad||n===ad?i:this.parentInjector.get(t,n,r)}}class fs extends jm{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Ov(t.inputs);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Ov(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Bb(e){return e.map(jb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof In?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new QI(t,o):t,a=s.get(Vm,null);if(null===a)throw new ge(407,!1);const g={rendererFactory:a,sanitizer:s.get(ZS,null),effectManager:s.get(Iv,null),afterRenderEventManager:s.get(fd,null)},x=a.createRenderer(null,this.componentDef),P=this.componentDef.selectors[0][0]||"div",G=r?function CI(e,t,n,r){const o=r.get(nv,!1)||n===kn.ShadowDom,s=e.selectRootElement(t,o);return function bI(e){pv(e)}(s),s}(x,r,this.componentDef.encapsulation,s):ja(x,P,function KI(e){const t=e.toLowerCase();return"svg"===t?Zp:"math"===t?"math":null}(P)),de=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let ee=null;null!==G&&(ee=id(G,s,!0));const Se=vd(0,null,null,1,0,null,null,null,null,null,null),Pe=lu(null,Se,null,de,null,null,g,x,s,null,ee);let Ye,dn;lc(Pe);try{const Mr=this.componentDef;let Mo,zh=null;Mr.findHostDirectiveDefs?(Mo=[],zh=new Map,Mr.findHostDirectiveDefs(Mr,Mo,zh),Mo.push(Mr)):Mo=[Mr];const hL=function e2(e,t){const n=e[_e],r=qe;return e[r]=t,Xi(n,r,2,"#host",null)}(Pe,G),pL=function t2(e,t,n,r,i,o,s){const a=i[_e];!function n2(e,t,n,r){for(const i of e)t.mergedAttrs=Po(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(du(t,t.mergedAttrs,!0),null!==n&&fm(r,n,t))}(r,e,t,s);let u=null;null!==t&&(u=id(t,i[Rr]));const l=o.rendererFactory.createRenderer(t,n);let c=16;n.signals?c=4096:n.onPush&&(c=64);const g=lu(i,hv(n),null,c,i[e.index],e,o,l,null,null,u);return a.firstCreatePass&&_d(a,e,r.length-1),cu(i,g),i[e.index]=g}(hL,G,Mr,Mo,Pe,g,x);dn=Xp(Se,qe),G&&function i2(e,t,n,r){if(r)ql(e,n,["ng-version",YS.full]);else{const{attrs:i,classes:o}=function Vb(e){const t=[],n=[];let r=1,i=2;for(;r0&&dm(e,n,o.join(" "))}}(x,Mr,G,r),void 0!==n&&function o2(e,t,n){const r=e.projection=[];for(let i=0;i(Fr(!0),ja(r,i,function hg(){return ke.lFrame.currentNamespace}()));function so(){return ie()}function _u(e){return!!e&&"function"==typeof e.then}function ry(e){return!!e&&"function"==typeof e.subscribe}function Tn(e,t,n,r){const i=ie(),o=Ke(),s=Lt();return function oy(e,t,n,r,i,o,s){const a=pa(r),l=e.firstCreatePass&&Dv(e),c=t[_t],g=bv(t);let x=!0;if(3&r.type||s){const Q=an(r,t),le=s?s(Q):Q,de=g.length,ee=s?Pe=>s(ut(Pe[r.index])):r.index;let Se=null;if(!s&&a&&(Se=function W2(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!==Se)(Se.__ngLastListenerFn__||Se).__ngNextListenerFn__=o,Se.__ngLastListenerFn__=o,x=!1;else{o=ay(r,t,c,o,!1);const Pe=n.listen(le,i,o);g.push(o,Pe),l&&l.push(i,ee,de,de+1)}}else o=ay(r,t,c,o,!1);const P=r.outputs;let G;if(x&&null!==P&&(G=P[i])){const Q=G.length;if(Q)for(let le=0;le-1?gn(e.index,t):t);let u=sy(t,n,r,s),l=o.__ngNextListenerFn__;for(;l;)u=sy(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return i&&!1===u&&s.preventDefault(),u}}function Dt(e=1){return function MD(e){return(ke.lFrame.contextLView=function ND(e,t){for(;e>0;)t=t[bi],e--;return t}(e,ke.lFrame.contextLView))[_t]}(e)}function be(e,t=""){const n=ie(),r=Ke(),i=e+qe,o=r.firstCreatePass?Xi(r,i,1,t,null):r.data[i],s=Ry(r,n,o,t,e);n[i]=s,ya()&&$a(r,n,s,o),Qn(o,!1)}let Ry=(e,t,n,r,i)=>(Fr(!0),function La(e,t){return e.createText(t)}(t[Be],r));function wr(e){return Cr("",e,""),wr}function Cr(e,t,n){const r=ie(),i=function Qi(e,t,n,r){return zt(e,Ai(),n)?t+je(n)+r:$e}(r,e,t,n);return i!==$e&&_r(r,Yt(),i),Cr}function Bd(e,t,n,r,i){const o=ie(),s=function Ji(e,t,n,r,i,o){const a=ii(e,hr(),n,i);return pr(2),a?t+je(n)+r+je(i)+o:$e}(o,e,t,n,r,i);return s!==$e&&_r(o,Yt(),s),Bd}function Vd(e,t,n,r,i,o,s){const a=ie(),u=eo(a,e,t,n,r,i,o,s);return u!==$e&&_r(a,Yt(),u),Vd}const lo="en-US";let Qy=lo;class ai{}class S0{}class qd extends ai{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Rv(this);const i=pn(t);this._bootstrapComponents=yr(i.bootstrap),this._r3Injector=Gm(t,n,[{provide:ai,useValue:this},{provide:nu,useValue:this.componentFactoryResolver},...r],It(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Zd extends S0{constructor(t){super(),this.moduleType=t}create(t){return new qd(this.moduleType,t,[])}}class I0 extends ai{constructor(t){super(),this.componentFactoryResolver=new Rv(this),this.instance=null;const n=new Ya([...t.providers,{provide:ai,useValue:this},{provide:nu,useValue:this.componentFactoryResolver}],t.parent||Za(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Yd(e,t,n=null){return new I0({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let UA=(()=>{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=Am(0,n.type),i=r.length>0?Yd([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=Te({token:e,providedIn:"environment",factory:()=>new e(Ae(In))})}return e})();function x0(e){e.getStandaloneInjector=t=>t.get(UA).getOrCreateStandaloneInjector(e)}function Iu(e,t,n){const r=Zt()+e,i=ie();return i[r]===$e?nr(i,r,n?t.call(n):t()):function hs(e,t){return e[t]}(i,r)}function xu(e,t,n,r){return function k0(e,t,n,r,i,o){const s=t+n;return zt(e,s,i)?nr(e,s+1,o?r.call(o,i):r(i)):function Ds(e,t){const n=e[t];return n===$e?void 0:n}(e,s+1)}(ie(),Zt(),e,t,n,r)}function fT(){return this._results[Symbol.iterator]()}class Kd{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Ht)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Kd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=fT)}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){const r=this;r.dirty=!1;const i=function Sn(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function QD(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(n[i-1][Fn]=t),r{class e{static#e=this.__NG_ELEMENT_ID__=vT}return e})();const gT=br,mT=class extends gT{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=function hT(e,t,n,r){const i=t.tView,a=lu(e,i,n,4096&e[Ue]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[jo]=e[t.index];const l=e[Yn];return null!==l&&(a[Yn]=l.createEmbeddedView(i)),Dd(i,a,n),a}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new ds(i)}};function vT(){return Au(Lt(),ie())}function Au(e,t){return 4&e.type?new mT(t,e,Wi(e,t)):null}let Vn=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=DT}return e})();function DT(){return G0(Lt(),ie())}const ET=Vn,H0=class extends ET{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Wi(this._hostTNode,this._hostLView)}get injector(){return new Xt(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ea(this._hostTNode,this._hostLView);if(hc(t)){const n=qo(t,this._hostLView),r=Wo(t);return new Xt(n[_e].data[r+8],n)}return new Xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=z0(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Pt}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=t.createEmbeddedViewImpl(n||{},o,null);return this.insertImpl(a,i,false),a}createComponent(t,n,r,i,o){const s=t&&!function Yo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const Q=n||{};a=Q.index,r=Q.injector,i=Q.projectableNodes,o=Q.environmentInjector||Q.ngModuleRef}const u=s?t:new fs(Xe(t)),l=r||this.parentInjector;if(!o&&null==u.ngModule){const le=(s?l:this.parentInjector).get(In,null);le&&(o=le)}Xe(u.componentType??{});const P=u.create(l,i,null,o);return this.insertImpl(P.hostView,a,false),P}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const i=t._lView;if(function pD(e){return qt(e[gt])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const l=i[gt],c=new H0(l,l[$t],l[gt]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;return pT(a,i,s,!r),t.attachToViewContainerRef(),Tg(Qd(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=z0(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ba(this._lContainer,n);r&&(xa(Qd(this._lContainer),n),Mc(r[_e],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ba(this._lContainer,n);return r&&null!=xa(Qd(this._lContainer),n)?new ds(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function z0(e){return e[8]}function Qd(e){return e[8]||(e[8]=[])}function G0(e,t){let n;const r=t[e.index];return qt(r)?n=r:(n=wv(r,t,null,e),t[e.index]=n,cu(t,n)),W0(n,t,e,r),new H0(n,e,t)}let W0=function q0(e,t,n,r){if(e[Xn])return;let i;i=8&n.type?ut(r):function ST(e,t){const n=e[Be],r=n.createComment(""),i=an(t,e);return ti(n,Va(n,i),r,function WE(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[Xn]=i};class Jd{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jd(this.queryList)}setDirty(){this.queryList.setDirty()}}class ef{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;o0)r.push(s[a/2]);else{const l=o[a+1],c=t[-u];for(let g=Pt;g{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=me(Nu,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const i of this.appInits){const o=i();if(_u(o))n.push(o);else if(ry(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=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),v1=(()=>{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=Te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Dr=new De("LocaleId",{providedIn:"root",factory:()=>me(Dr,We.Optional|We.SkipSelf)||function tM(){return typeof $localize<"u"&&$localize.locale||lo}()});let y1=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new bn(!1)}add(){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.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class iM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let _1=(()=>{class e{compileModuleSync(n){return new Zd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=yr(pn(n).declarations).reduce((s,a)=>{const u=Xe(a);return u&&s.push(new fs(u)),s},[]);return new iM(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=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const D1=new De(""),Ou=new De("");let yf,mf=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,yf||(function EM(e){yf=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._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{lt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}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(this._didWork,this.getPendingTasks())},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(lt),Ae(vf),Ae(Ou))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})(),vf=(()=>{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 yf?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Vr=null;const E1=new De("AllowMultipleToken"),_f=new De("PlatformDestroyListeners"),ku=new De("appBootstrapListener");class I1{constructor(t,n){this.name=t,this.token=n}}function A1(e,t,n=[]){const r=`Platform: ${t}`,i=new De(r);return(o=[])=>{let s=wf();if(!s||s.injector.get(E1,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function xM(e){if(Vr&&!Vr.get(E1,!1))throw new ge(400,!1);(function S1(){!function Jb(e){Vp=e}(()=>{throw new ge(600,!1)})})(),Vr=e;const t=e.get(M1);(function x1(e){e.get(Om,null)?.forEach(n=>n())})(e)}(function T1(e=[],t){return xn.create({name:t,providers:[{provide:qc,useValue:"platform"},{provide:_f,useValue:new Set([()=>Vr=null])},...e]})}(a,r))}return function TM(e){const t=wf();if(!t)throw new ge(401,!1);return t}()}}function wf(){return Vr?.get(M1)??null}let M1=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function MM(e="zone.js",t){return"noop"===e?new uI:"zone.js"===e?new lt(t):e}(r?.ngZone,function N1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function $A(e,t,n){return new qd(e,t,n)}(n.moduleType,this.injector,function F1(e){return[{provide:lt,useFactory:e},{provide:os,multi:!0,useFactory:()=>{const t=me(RM,{optional:!0});return()=>t.initialize()}},{provide:P1,useFactory:NM},{provide:Xm,useFactory:Km}]}(()=>i)),s=o.injector.get(vr,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:u=>{s.handleError(u)}});o.onDestroy(()=>{Pu(this._modules,o),a.unsubscribe()})}),function R1(e,t,n){try{const r=n();return _u(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(hf);return a.runInitializers(),a.donePromise.then(()=>(function Jy(e){Dn(e,"Expected localeId to be defined"),"string"==typeof e&&(Qy=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Dr,lo)||lo),this._moduleDoBootstrap(o),o))})})}bootstrapModule(n,r=[]){const i=O1({},r);return function SM(e,t,n){const r=new Zd(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(ho);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new ge(-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 ge(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(_f,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(xn))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function O1(e,t){return Array.isArray(t)?t.reduce(O1,e):{...e,...t}}let ho=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=me(P1),this.zoneIsStable=me(Xm),this.componentTypes=[],this.components=[],this.isStable=me(y1).hasPendingTasks.pipe(Wn(n=>n?Le(!1):this.zoneIsStable),function cb(e,t=z){return e=e??db,Ie((n,r)=>{let i,o=!0;n.subscribe(Me(r,s=>{const a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}(),ip()),this._injector=me(In)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof jm;if(!this._injector.get(hf).done)throw!i&&function _i(e){const t=Xe(e)||kt(e)||Wt(e);return null!==t&&t.standalone}(n),new ge(405,!1);let s;s=i?n:this._injector.get(nu).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function IM(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ai),l=s.create(xn.NULL,[],r||s.selector,a),c=l.location.nativeElement,g=l.injector.get(D1,null);return g?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Pu(this.components,l),g?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new ge(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Pu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(ku,[]);r.push(...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),()=>Pu(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ge(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=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Pu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const P1=new De("",{providedIn:"root",factory:()=>me(vr).handleError.bind(void 0)});function NM(){const e=me(lt),t=me(vr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let RM=(()=>{class e{constructor(){this.zone=me(lt),this.applicationRef=me(ho)}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=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Cf=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=kM}return e})();function kM(e){return function PM(e,t,n){if(Zr(e)&&!n){const r=gn(e.index,t);return new ds(r,r)}return 47&e.type?new ds(t[wt],t):null}(Lt(),ie(),16==(16&e))}class V1{constructor(){}supports(t){return pu(t)}create(t){return new $M(t)}}const VM=(e,t)=>t;class $M{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||VM}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new UM(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new $1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new $1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class UM{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class HM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class $1{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new HM,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function U1(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new GM(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class GM{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function z1(){return new ju([new V1])}let ju=(()=>{class e{static#e=this.\u0275prov=Te({token:e,providedIn:"root",factory:z1});constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||z1()),deps:[[e,new Ma,new Ta]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new ge(901,!1)}}return e})();function G1(){return new As([new H1])}let As=(()=>{class e{static#e=this.\u0275prov=Te({token:e,providedIn:"root",factory:G1});constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||G1()),deps:[[e,new Ma,new Ta]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new ge(901,!1)}}return e})();const ZM=A1(null,"core",[]);let YM=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(ho))};static#t=this.\u0275mod=dr({type:e});static#n=this.\u0275inj=qn({})}return e})();function xf(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Af=null;function po(){return Af}class lN{}const Mt=new De("DocumentToken");let Tf=(()=>{class e{historyGo(n){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:function(){return me(dN)},providedIn:"platform"})}return e})();const cN=new De("Location Initialized");let dN=(()=>{class e extends Tf{constructor(){super(),this._doc=me(Mt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return po().getBaseHref(this._doc)}onPopState(n){const r=po().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=po().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=Te({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function Mf(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 Er(e){return e&&"?"!==e[0]?"?"+e:e}let li=(()=>{class e{historyGo(n){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:function(){return me(n_)},providedIn:"root"})}return e})();const t_=new De("appBaseHref");let n_=(()=>{class e extends li{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??me(Mt).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 Mf(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Er(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+Er(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+Er(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(Tf),Ae(t_,8))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fN=(()=>{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){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Mf(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Er(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Er(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(Tf),Ae(t_,8))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})(),Nf=(()=>{class e{constructor(n){this._subject=new Ht,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function gN(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+Er(r))}normalize(n){return e.stripTrailingSlash(function pN(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+Er(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Er(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._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=Er;static#t=this.joinWithSlash=Mf;static#n=this.stripTrailingSlash=e_;static#r=this.\u0275fac=function(r){return new(r||e)(Ae(li))};static#i=this.\u0275prov=Te({token:e,factory:function(){return function hN(){return new Nf(Ae(li))}()},providedIn:"root"})}return e})();function r_(e){return e.replace(/\/index.html$/,"")}const $f=/\s+/,f_=[];let h_=(()=>{class e{constructor(n,r,i,o){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this.initialClasses=f_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split($f):f_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split($f):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($f).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)(Ne(ju),Ne(As),Ne(mr),Ne(ru))};static#t=this.\u0275dir=Vt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class tR{constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xu=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new tR(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),g_(a,i)}});for(let i=0,o=r.length;i{g_(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(Ne(Vn),Ne(br),Ne(ju))};static#t=this.\u0275dir=Vt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function g_(e,t){e.context.$implicit=t.item}let Ku=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new nR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){m_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){m_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(Ne(Vn),Ne(br))};static#t=this.\u0275dir=Vt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class nR{constructor(){this.$implicit=null,this.ngIf=null}}function m_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${It(t)}'.`)}let __=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=dr({type:e});static#n=this.\u0275inj=qn({})}return e})();function Wf(e){return"server"===e}let MR=(()=>{class e{static#e=this.\u0275prov=Te({token:e,providedIn:"root",factory:()=>new NR(Ae(Mt),window)})}return e})();class NR{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.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function RR(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.supportsScrolling()&&(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])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class nO extends lN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Yf extends nO{static makeCurrent(){!function uN(e){Af||(Af=e)}(new Yf)}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 rO(){return Rs=Rs||document.querySelector("base"),Rs?Rs.getAttribute("href"):null}();return null==n?null:function iO(e){el=el||document.createElement("a"),el.setAttribute("href",e);const t=el.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Rs=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function JN(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 el,Rs=null,sO=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})();const Xf=new De("EventManagerPlugins");let S_=(()=>{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 ge(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(Xf),Ae(lt))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})();class I_{constructor(t){this._doc=t}}const Kf="ng-app-id";let x_=(()=>{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=Wf(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[${Kf}="${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(Kf),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Kf,this.appId),s}}addStyleToHost(n,r){const i=this.getStyleElement(n,r);n.appendChild(i);const 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(Mt),Ae(Xa),Ae(km,8),Ae(ri))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})();const Qf={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/"},Jf=/%COMP%/g,cO=new De("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function T_(e,t){return t.map(n=>n.replace(Jf,e))}let M_=(()=>{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=Wf(a),this.defaultRenderer=new eh(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===kn.ShadowDom&&(r={...r,encapsulation:kn.Emulated});const i=this.getOrCreateRenderer(n,r);return i instanceof R_?i.applyToHost(n):i instanceof th&&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,g=this.platformIsServer;switch(r.encapsulation){case kn.Emulated:o=new R_(u,l,r,this.appId,c,s,a,g);break;case kn.ShadowDom:return new pO(u,l,n,r,s,a,this.nonce,g);default:o=new th(u,l,r,c,s,a,g)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(S_),Ae(x_),Ae(Xa),Ae(cO),Ae(Mt),Ae(ri),Ae(lt),Ae(km))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})();class eh{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Qf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(N_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(N_(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 ge(-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=Qf[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Qf[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&(Lr.DashCase|Lr.Important)?t.style.setProperty(n,r,i&Lr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Lr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=po().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 N_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class pO extends eh{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=T_(i.id,i.styles);for(const c of l){const g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=c,this.shadowRoot.appendChild(g)}}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 th extends eh{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?T_(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class R_ extends th{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 dO(e){return"_ngcontent-%COMP%".replace(Jf,e)}(l),this.hostAttr=function fO(e){return"_nghost-%COMP%".replace(Jf,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 gO=(()=>{class e extends I_{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(Mt))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})();const O_=["alt","control","meta","shift"],mO={"\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"},vO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let yO=(()=>{class e extends I_{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(()=>po().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."),O_.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=mO[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"),O_.forEach(s=>{s!==i&&(0,vO[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(Mt))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})();const bO=A1(ZM,"browser",[{provide:ri,useValue:"browser"},{provide:Om,useValue:function _O(){Yf.makeCurrent()},multi:!0},{provide:Mt,useFactory:function CO(){return function eS(e){Lc=e}(document),document},deps:[]}]),DO=new De(""),F_=[{provide:Ou,useClass:class oO{addToWindow(t){at.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new ge(5103,!1);return o},at.getAllAngularTestabilities=()=>t.getAllTestabilities(),at.getAllAngularRootElements=()=>t.getAllRootElements(),at.frameworkStabilizers||(at.frameworkStabilizers=[]),at.frameworkStabilizers.push(r=>{const i=at.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(u){s=s||u,o--,0==o&&r(s)};i.forEach(u=>{u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?po().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:D1,useClass:mf,deps:[lt,vf,Ou]},{provide:mf,useClass:mf,deps:[lt,vf,Ou]}],L_=[{provide:qc,useValue:"root"},{provide:vr,useFactory:function wO(){return new vr},deps:[]},{provide:Xf,useClass:gO,multi:!0,deps:[Mt,lt,ri]},{provide:Xf,useClass:yO,multi:!0,deps:[Mt]},M_,x_,S_,{provide:Vm,useExisting:M_},{provide:class OR{},useClass:sO,deps:[]},[]];let EO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Xa,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(DO,12))};static#t=this.\u0275mod=dr({type:e});static#n=this.\u0275inj=qn({providers:[...L_,...F_],imports:[__,YM]})}return e})(),j_=(()=>{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(Mt))};static#t=this.\u0275prov=Te({token:e,factory:function(r){let i=null;return i=r?new r:function IO(){return new j_(Ae(Mt))}(),i},providedIn:"root"})}return e})();function U_(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 H_(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(u){U_(o,r,i,s,a,"next",u)}function a(u){U_(o,r,i,s,a,"throw",u)}s(void 0)})}}typeof window<"u"&&window;const{isArray:RO}=Array,{getPrototypeOf:OO,prototype:kO,keys:PO}=Object;const{isArray:jO}=Array;function rh(...e){const t=No(e),n=function tb(e){return O(Ml(e))?e.pop():void 0}(e),{args:r,keys:i}=function FO(e){if(1===e.length){const t=e[0];if(RO(t))return{args:t,keys:null};if(function LO(e){return e&&"object"==typeof e&&OO(e)===kO}(t)){const n=PO(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return Ot([],t);const o=new ye(function UO(e,t,n=z){return r=>{z_(t,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let u=0;u{const l=Ot(e[u],t);let c=!1;l.subscribe(Me(r,g=>{o[u]=g,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>function $O(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}(i,s):z));return n?o.pipe(function VO(e){return Re(t=>function BO(e,t){return jO(t)?e(...t):e(t)}(e,t))}(n)):o}function z_(e,t,n){e?ar(n,e,t):t()}const tl=A(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ih(...e){return function HO(){return vi(1)}()(Ot(e,No(e)))}function G_(e){return new ye(t=>{Cn(e()).subscribe(t)})}function Os(e,t){const n=O(e)?e:()=>e,r=i=>i.error(n());return new ye(t?i=>t.schedule(r,0,i):r)}function oh(){return Ie((e,t)=>{let n=null;e._refCount++;const r=Me(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 W_ extends ye{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,St(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 b;const n=this.getSubject();t.add(this.source.subscribe(Me(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=b.EMPTY)}return t}refCount(){return oh()(this)}}function mo(e){return e<=0?()=>Gn:Ie((t,n)=>{let r=0;t.subscribe(Me(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Rn(e,t){return Ie((n,r)=>{let i=0;n.subscribe(Me(r,o=>e.call(t,o,i++)&&r.next(o)))})}function nl(e){return Ie((t,n)=>{let r=!1;t.subscribe(Me(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function q_(e=GO){return Ie((t,n)=>{let r=!1;t.subscribe(Me(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function GO(){return new tl}function ci(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Rn((i,o)=>e(i,o,r)):z,mo(1),n?nl(t):q_(()=>new tl))}function ks(e,t){return O(t)?Rt(e,t,1):Rt(e,1)}function Gt(e,t,n){const r=O(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ie((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Me(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)}))}):z}function di(e){return Ie((t,n)=>{let o,r=null,i=!1;r=t.subscribe(Me(n,void 0,void 0,s=>{o=Cn(e(s,di(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function sh(e){return e<=0?()=>Gn:Ie((t,n)=>{let r=[];t.subscribe(Me(n,i=>{r.push(i),e{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function ah(e){return Ie((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Z_(e){return Ie((t,n)=>{Cn(e).subscribe(Me(n,()=>n.complete(),p)),!n.closed&&t.subscribe(n)})}const He="primary",Ps=Symbol("RouteTitle");class XO{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 vo(e){return new XO(e)}function KO(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 X_(e){return e.length>0?e[e.length-1]:null}function Ur(e){return function NO(e){return!!e&&(e instanceof ye||O(e.lift)&&O(e.subscribe))}(e)?e:_u(e)?Ot(Promise.resolve(e)):Le(e)}const JO={exact:function J_(e,t,n){if(!fi(e.segments,t.segments)||!rl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!J_(e.children[r],t.children[r],n))return!1;return!0},subset:ew},K_={exact:function ek(e,t){return or(e,t)},subset:function tk(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Y_(e[n],t[n]))},ignored:()=>!0};function Q_(e,t,n){return JO[n.paths](e.root,t.root,n.matrixParams)&&K_[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function ew(e,t,n){return tw(e,t,t.segments,n)}function tw(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!fi(i,n)||t.hasChildren()||!rl(i,n,r))}if(e.segments.length===n.length){if(!fi(e.segments,n)||!rl(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!ew(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!!(fi(e.segments,i)&&rl(e.segments,i,r)&&e.children[He])&&tw(e.children[He],t,o,r)}}function rl(e,t,n){return t.every((r,i)=>K_[n](e[i].parameters,r.parameters))}class yo{constructor(t=new ot([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vo(this.queryParams)),this._queryParamMap}toString(){return ik.serialize(this)}}class ot{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 il(this)}}class Fs{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=vo(this.parameters)),this._parameterMap}toString(){return iw(this)}}function fi(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Ls=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:function(){return new uh},providedIn:"root"})}return e})();class uh{parse(t){const n=new gk(t);return new yo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${js(t.root,!0)}`,r=function ak(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${ol(n)}=${ol(i)}`).join("&"):`${ol(n)}=${ol(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function ok(e){return encodeURI(e)}(t.fragment)}`:""}`}}const ik=new uh;function il(e){return e.segments.map(t=>iw(t)).join("/")}function js(e,t){if(!e.hasChildren())return il(e);if(t){const n=e.children[He]?js(e.children[He],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==He&&r.push(`${i}:${js(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function rk(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===He&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==He&&(n=n.concat(t(i,r)))}),n}(e,(r,i)=>i===He?[js(e.children[He],!1)]:[`${i}:${js(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[He]?`${il(e)}/${n[0]}`:`${il(e)}/(${n.join("//")})`}}function nw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ol(e){return nw(e).replace(/%3B/gi,";")}function lh(e){return nw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function sl(e){return decodeURIComponent(e)}function rw(e){return sl(e.replace(/\+/g,"%20"))}function iw(e){return`${lh(e.path)}${function sk(e){return Object.keys(e).map(t=>`;${lh(t)}=${lh(e[t])}`).join("")}(e.parameters)}`}const uk=/^[^\/()?;#]+/;function ch(e){const t=e.match(uk);return t?t[0]:""}const lk=/^[^\/()?;=#]+/,dk=/^[^=?&#]+/,hk=/^[^&#]+/;class gk{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ot([],{}):new ot([],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[He]=new ot(t,n)),r}parseSegment(){const t=ch(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new ge(4009,!1);return this.capture(t),new Fs(sl(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function ck(e){const t=e.match(lk);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=ch(this.remaining);i&&(r=i,this.capture(r))}t[sl(n)]=sl(r)}parseQueryParam(t){const n=function fk(e){const t=e.match(dk);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function pk(e){const t=e.match(hk);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=rw(n),o=rw(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=ch(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new ge(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=He);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[He]:new ot([],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 ge(4011,!1)}}function ow(e){return e.segments.length>0?new ot([],{[He]:e}):e}function sw(e){const t={};for(const r of Object.keys(e.children)){const o=sw(e.children[r]);if(r===He&&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 mk(e){if(1===e.numberOfChildren&&e.children[He]){const t=e.children[He];return new ot(e.segments.concat(t.segments),t.children)}return e}(new ot(e.segments,t))}function hi(e){return e instanceof yo}function aw(e){let t;const i=ow(function n(o){const s={};for(const u of o.children){const l=n(u);s[u.outlet]=l}const a=new ot(o.url,s);return o===e&&(t=a),a}(e.root));return t??i}function uw(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return dh(i,i,i,n,r);const o=function yk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new cw(!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 cw(n,t,r)}(t);if(o.toRoot())return dh(i,i,new ot([],{}),n,r);const s=function _k(e,t,n){if(e.isAbsolute)return new ul(t,!0,0);if(!n)return new ul(t,!1,NaN);if(null===n.parent)return new ul(n,!0,0);const r=al(e.commands[0])?0:1;return function wk(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new ge(4005,!1);i=r.segments.length}return new ul(r,!1,i-o)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Vs(s.segmentGroup,s.index,o.commands):dw(s.segmentGroup,s.index,o.commands);return dh(i,s.segmentGroup,a,n,r)}function al(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Bs(e){return"object"==typeof e&&null!=e&&e.outlets}function dh(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:lw(e,t,n);const a=ow(sw(s));return new yo(a,o,i)}function lw(e,t,n){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===t?n:lw(o,t,n)}),new ot(e.segments,r)}class cw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&al(r[0]))throw new ge(4003,!1);const i=r.find(Bs);if(i&&i!==X_(r))throw new ge(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ul{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function dw(e,t,n){if(e||(e=new ot([],{})),0===e.segments.length&&e.hasChildren())return Vs(e,t,n);const r=function bk(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(Bs(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!hw(u,l,s))return o;r+=2}else{if(!hw(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!==He)&&e.children[He]&&1===e.numberOfChildren&&0===e.children[He].segments.length){const o=Vs(e.children[He],t,n);return new ot(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=dw(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new ot(e.segments,i)}}function fh(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=fh(new ot([],{}),0,r))}),t}function fw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function hw(e,t,n){return e==n.path&&or(t,n.parameters)}const $s="imperative";class sr{constructor(t,n){this.id=t,this.url=n}}class ll extends sr{constructor(t,n,r="imperative",i=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class xr extends sr{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Us extends sr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _o extends sr{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=16}}class cl extends sr{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class pw extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ek extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sk extends sr{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ik extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xk extends sr{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ak{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Tk{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Mk{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Nk{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rk{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ok{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class hh{}class ph{constructor(t){this.url=t}}class kk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Hs,this.attachRef=null}}let Hs=(()=>{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 kk,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=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class mw{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=gh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=gh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=mh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return mh(t,this._root).map(n=>n.value)}}function gh(e,t){if(e===t.value)return t;for(const n of t.children){const r=gh(e,n);if(r)return r}return null}function mh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=mh(e,n);if(r.length)return r.unshift(t),r}return[]}class Ar{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function wo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class vw extends mw{constructor(t,n){super(t),this.snapshot=n,vh(this,t)}toString(){return this.snapshot.toString()}}function yw(e,t){const n=function Pk(e,t){const s=new dl([],{},{},"",{},He,t,null,{});return new ww("",new Ar(s,[]))}(0,t),r=new bn([new Fs("",{})]),i=new bn({}),o=new bn({}),s=new bn({}),a=new bn(""),u=new Co(r,i,s,a,o,He,t,n.root);return u.snapshot=n.root,new vw(new Ar(u,[]),n)}class Co{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(Re(l=>l[Ps]))??Le(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._paramMap=this.params.pipe(Re(t=>vo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Re(t=>vo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _w(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function Fk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class dl{get title(){return this.data?.[Ps]}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||(this._paramMap=vo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ww extends mw{constructor(t,n){super(n),this.url=t,vh(this,n)}toString(){return Cw(this._root)}}function vh(e,t){t.value._routerState=e,t.children.forEach(n=>vh(e,n))}function Cw(e){const t=e.children.length>0?` { ${e.children.map(Cw).join(", ")} } `:"";return`${e.value}${t}`}function yh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,or(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),or(t.params,n.params)||e.paramsSubject.next(n.params),function QO(e,t){if(e.length!==t.length)return!1;for(let n=0;nor(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||_h(e.parent,t.parent))}let wh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=He,this.activateEvents=new Ht,this.deactivateEvents=new Ht,this.attachEvents=new Ht,this.detachEvents=new Ht,this.parentContexts=me(Hs),this.location=me(Vn),this.changeDetector=me(Cf),this.environmentInjector=me(In),this.inputBinder=me(fl,{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 ge(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ge(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ge(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 ge(4013,!1);this._activatedRoute=n;const i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Lk(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=Vt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Xr]})}return e})();class Lk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Co?this.route:t===Hs?this.childContexts:this.parent.get(t,n)}}const fl=new De("");let bw=(()=>{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=rh([r.queryParams,r.params,r.data]).pipe(Wn(([o,s,a],u)=>(a={...o,...s,...a},0===u?Le(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 aN(e){const t=Xe(e);if(!t)return null;const n=new fs(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=Te({token:e,factory:e.\u0275fac})}return e})();function zs(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function Bk(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return zs(e,r,i);return zs(e,r)})}(e,t,n);return new Ar(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=>zs(e,a)),s}}const r=function Vk(e){return new Co(new bn(e.url),new bn(e.params),new bn(e.queryParams),new bn(e.fragment),new bn(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>zs(e,o));return new Ar(r,i)}}const Ch="ngNavigationCancelingError";function Dw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=hi(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Ew(!1,0,t);return i.url=n,i.navigationBehaviorOptions=r,i}function Ew(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Ch]=!0,r.cancellationCode=t,n&&(r.url=n),r}function Sw(e){return e&&e[Ch]}let Iw=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=cr({type:e,selectors:[["ng-component"]],standalone:!0,features:[x0],decls:1,vars:0,template:function(r,i){1&r&&ze(0,"router-outlet")},dependencies:[wh],encapsulation:2})}return e})();function bh(e){const t=e.children&&e.children.map(bh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==He&&(n.component=Iw),n}function Hn(e){return e.outlet||He}function Gs(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 Zk{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),yh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=wo(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=wo(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[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=wo(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const i=wo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Ok(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Nk(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(yh(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),yh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Gs(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 xw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class hl{constructor(t,n){this.component=t,this.route=n}}function Yk(e,t,n){const r=e._root;return Ws(r,t?t._root:null,n,[r.value])}function bo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function yb(e){return null!==oa(e)}(e)?t.get(e):e:r}function Ws(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=wo(t);return e.children.forEach(s=>{(function Kk(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 Qk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!fi(e.url,t.url);case"pathParamsOrQueryParamsChange":return!fi(e.url,t.url)||!or(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_h(e,t)||!or(e.queryParams,t.queryParams);default:return!_h(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new xw(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Ws(e,t,o.component?a?a.children:null:n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new hl(a.outlet.component,s))}else s&&qs(t,a,i),i.canActivateChecks.push(new xw(r)),Ws(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])=>qs(a,n.getContext(s),i)),i}function qs(e,t,n){const r=wo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{qs(s,i.component?t?t.children.getContext(o):null:t,n)}),n.canDeactivateChecks.push(new hl(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Zs(e){return"function"==typeof e}function Aw(e){return e instanceof tl||"EmptyError"===e?.name}const pl=Symbol("INITIAL_VALUE");function Do(){return Wn(e=>rh(e.map(t=>t.pipe(mo(1),function zO(...e){const t=No(e);return Ie((n,r)=>{(t?ih(e,n,t):ih(e,n)).subscribe(r)})}(pl)))).pipe(Re(t=>{for(const n of t)if(!0!==n){if(n===pl)return pl;if(!1===n||n instanceof yo)return n}return!0}),Rn(t=>t!==pl),mo(1)))}function Tw(e){return function ve(...e){return re(e)}(Gt(t=>{if(hi(t))throw Dw(0,t)}),Re(t=>!0===t))}class gl{constructor(t){this.segmentGroup=t||null}}class Mw{constructor(t){this.urlTree=t}}function Eo(e){return Os(new gl(e))}function Nw(e){return Os(new Mw(e))}class yP{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new ge(4002,!1)}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return Le(r);if(i.numberOfChildren>1||!i.children[He])return Os(new ge(4e3,!1));i=i.children[He]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new yo(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 ot(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 ge(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 Dh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _P(e,t,n,r,i){const o=Eh(e,t,n);return o.matched?(r=function Uk(e,t){return e.providers&&!e._injector&&(e._injector=Yd(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function gP(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?Le(i.map(s=>{const a=bo(s,e);return Ur(function iP(e){return e&&Zs(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Do(),Tw()):Le(!0)}(r,t,n).pipe(Re(s=>!0===s?o:{...Dh}))):Le(o)}function Eh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Dh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const i=(t.matcher||KO)(n,e,t);if(!i)return{...Dh};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 Rw(e,t,n,r){return n.length>0&&function bP(e,t,n){return n.some(r=>ml(e,t,r)&&Hn(r)!==He)}(e,n,r)?{segmentGroup:new ot(t,CP(r,new ot(n,e.children))),slicedSegments:[]}:0===n.length&&function DP(e,t,n){return n.some(r=>ml(e,t,r))}(e,n,r)?{segmentGroup:new ot(e.segments,wP(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ot(e.segments,e.children),slicedSegments:n}}function wP(e,t,n,r,i){const o={};for(const s of r)if(ml(e,n,s)&&!i[Hn(s)]){const a=new ot([],{});o[Hn(s)]=a}return{...i,...o}}function CP(e,t){const n={};n[He]=t;for(const r of e)if(""===r.path&&Hn(r)!==He){const i=new ot([],{});n[Hn(r)]=i}return n}function ml(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class xP{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.allowRedirects=!0,this.applyRedirects=new yP(this.urlSerializer,this.urlTree)}noMatchError(t){return new ge(4002,!1)}recognize(){const t=Rw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,He).pipe(di(n=>{if(n instanceof Mw)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof gl?this.noMatchError(n):n}),Re(n=>{const r=new dl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},He,this.rootComponentType,null,{}),i=new Ar(r,n),o=new ww("",i),s=function vk(e,t,n=null,r=null){return uw(aw(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),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,He).pipe(di(r=>{throw r instanceof gl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=_w(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}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)}processChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Ot(i).pipe(ks(o=>{const s=r.children[o],a=function Wk(e,t){const n=e.filter(r=>Hn(r)===t);return n.push(...e.filter(r=>Hn(r)!==t)),n}(n,o);return this.processSegmentGroup(t,a,s,o)}),function qO(e,t){return Ie(function WO(e,t,n,r,i){return(o,s)=>{let a=n,u=t,l=0;o.subscribe(Me(s,c=>{const g=l++;u=a?e(u,c,g):(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)),nl(null),function ZO(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Rn((i,o)=>e(i,o,r)):z,sh(1),n?nl(t):q_(()=>new tl))}(),Rt(o=>{if(null===o)return Eo(r);const s=Ow(o);return function AP(e){e.sort((t,n)=>t.value.outlet===He?-1:n.value.outlet===He?1:t.value.outlet.localeCompare(n.value.outlet))}(s),Le(s)}))}processSegment(t,n,r,i,o,s){return Ot(n).pipe(ks(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,i,o,s).pipe(di(u=>{if(u instanceof gl)return Le(null);throw u}))),ci(a=>!!a),di(a=>{if(Aw(a))return function SP(e,t,n){return 0===t.length&&!e.children[n]}(r,i,o)?Le([]):Eo(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return function EP(e,t,n,r){return!!(Hn(e)===r||r!==He&&ml(t,n,e))&&("**"===e.path||Eh(t,e,n).matched)}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,i,r,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):Eo(i):Eo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i){const o=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Nw(o):this.applyRedirects.lineralizeSegments(r,o).pipe(Rt(s=>{const a=new ot(s,{});return this.processSegment(t,n,a,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=Eh(n,i,o);if(!a)return Eo(n);const g=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?Nw(g):this.applyRedirects.lineralizeSegments(i,g).pipe(Rt(x=>this.processSegment(t,r,n,x.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a;if("**"===r.path){const u=i.length>0?X_(i).parameters:{};a=Le({snapshot:new dl(i,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,kw(r),Hn(r),r.component??r._loadedComponent??null,r,Pw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=_P(n,r,i,t).pipe(Re(({matched:u,consumedSegments:l,remainingSegments:c,parameters:g})=>u?{snapshot:new dl(l,g,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,kw(r),Hn(r),r.component??r._loadedComponent??null,r,Pw(r)),consumedSegments:l,remainingSegments:c}:null));return a.pipe(Wn(u=>null===u?Eo(n):this.getChildConfig(t=r._injector??t,r,i).pipe(Wn(({routes:l})=>{const c=r._loadedInjector??t,{snapshot:g,consumedSegments:x,remainingSegments:P}=u,{segmentGroup:G,slicedSegments:Q}=Rw(n,x,P,l);if(0===Q.length&&G.hasChildren())return this.processChildren(c,l,G).pipe(Re(de=>null===de?null:[new Ar(g,de)]));if(0===l.length&&0===Q.length)return Le([new Ar(g,[])]);const le=Hn(r)===o;return this.processSegment(c,l,G,Q,le?He:o,!0).pipe(Re(de=>[new Ar(g,de)]))}))))}getChildConfig(t,n,r){return n.children?Le({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?Le({routes:n._loadedRoutes,injector:n._loadedInjector}):function pP(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?Le(!0):Le(i.map(s=>{const a=bo(s,e);return Ur(function eP(e){return e&&Zs(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Do(),Tw())}(t,n,r).pipe(Rt(i=>i?this.configLoader.loadChildren(t,n).pipe(Gt(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):function vP(e){return Os(Ew(!1,3))}())):Le({routes:[],injector:t})}}function TP(e){const t=e.value.routeConfig;return t&&""===t.path}function Ow(e){const t=[],n=new Set;for(const r of e){if(!TP(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=Ow(r.children);t.push(new Ar(r.value,i))}return t.filter(r=>!n.has(r))}function kw(e){return e.data||{}}function Pw(e){return e.resolve||{}}function Fw(e){return"string"==typeof e.title||null===e.title}function Sh(e){return Wn(t=>{const n=e(t);return n?Ot(n).pipe(Re(()=>t)):Le(t)})}const So=new De("ROUTES");let Ih=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=me(_1)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Le(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Ur(n.loadComponent()).pipe(Re(Lw),Gt(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),ah(()=>{this.componentLoaders.delete(n)})),i=new W_(r,()=>new fe).pipe(oh());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Le({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=function FP(e,t,n,r){return Ur(e.loadChildren()).pipe(Re(Lw),Rt(i=>i instanceof S0||Array.isArray(i)?Le(i):Ot(t.compileModuleAsync(i))),Re(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,!0):(o=i.create(n).injector,s=o.get(So,[],{optional:!0,self:!0}).flat()),{routes:s.map(bh),injector:o}}))}(r,this.compiler,n,this.onLoadEndListener).pipe(ah(()=>{this.childrenLoaders.delete(r)})),s=new W_(o,()=>new fe).pipe(oh());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Lw(e){return function LP(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let vl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new fe,this.transitionAbortSubject=new fe,this.configLoader=me(Ih),this.environmentInjector=me(In),this.urlSerializer=me(Ls),this.rootContexts=me(Hs),this.inputBindingEnabled=null!==me(fl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Le(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new Tk(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new Ak(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 bn({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:n.urlHandlingStrategy.extract(r),urlAfterRedirects:n.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:$s,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Rn(o=>0!==o.id),Re(o=>({...o,extractedUrl:n.urlHandlingStrategy.extract(o.rawUrl)})),Wn(o=>{this.currentTransition=o;let s=!1,a=!1;return Le(o).pipe(Gt(u=>{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}}),Wn(u=>{const l=u.currentBrowserUrl.toString(),c=!n.navigated||u.extractedUrl.toString()!==l||l!==u.currentUrlTree.toString();if(!c&&"reload"!==(u.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const x="";return this.events.next(new _o(u.id,this.urlSerializer.serialize(u.rawUrl),x,0)),u.resolve(null),Gn}if(n.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Le(u).pipe(Wn(x=>{const P=this.transitions?.getValue();return this.events.next(new ll(x.id,this.urlSerializer.serialize(x.extractedUrl),x.source,x.restoredState)),P!==this.transitions?.getValue()?Gn:Promise.resolve(x)}),function MP(e,t,n,r,i,o){return Rt(s=>function IP(e,t,n,r,i,o,s="emptyOnly"){return new xP(e,t,n,r,i,s,o).recognize()}(e,t,n,r,s.extractedUrl,i,o).pipe(Re(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Gt(x=>{o.targetSnapshot=x.targetSnapshot,o.urlAfterRedirects=x.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:x.urlAfterRedirects};const P=new pw(x.id,this.urlSerializer.serialize(x.extractedUrl),this.urlSerializer.serialize(x.urlAfterRedirects),x.targetSnapshot);this.events.next(P)}));if(c&&n.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){const{id:x,extractedUrl:P,source:G,restoredState:Q,extras:le}=u,de=new ll(x,this.urlSerializer.serialize(P),G,Q);this.events.next(de);const ee=yw(0,this.rootComponentType).snapshot;return this.currentTransition=o={...u,targetSnapshot:ee,urlAfterRedirects:P,extras:{...le,skipLocationChange:!1,replaceUrl:!1}},Le(o)}{const x="";return this.events.next(new _o(u.id,this.urlSerializer.serialize(u.extractedUrl),x,1)),u.resolve(null),Gn}}),Gt(u=>{const l=new Ek(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),Re(u=>(this.currentTransition=o={...u,guards:Yk(u.targetSnapshot,u.currentSnapshot,this.rootContexts)},o)),function sP(e,t){return Rt(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Le({...n,guardsResult:!0}):function aP(e,t,n,r){return Ot(e).pipe(Rt(i=>function hP(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Le(o.map(a=>{const u=Gs(t)??i,l=bo(a,u);return Ur(function rP(e){return e&&Zs(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(ci())})).pipe(Do()):Le(!0)}(i.component,i.route,n,t,r)),ci(i=>!0!==i,!0))}(s,r,i,e).pipe(Rt(a=>a&&function Jk(e){return"boolean"==typeof e}(a)?function uP(e,t,n,r){return Ot(t).pipe(ks(i=>ih(function cP(e,t){return null!==e&&t&&t(new Mk(e)),Le(!0)}(i.route.parent,r),function lP(e,t){return null!==e&&t&&t(new Rk(e)),Le(!0)}(i.route,r),function fP(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function Xk(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=>G_(()=>Le(s.guards.map(u=>{const l=Gs(s.node)??n,c=bo(u,l);return Ur(function nP(e){return e&&Zs(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(ci())})).pipe(Do())));return Le(o).pipe(Do())}(e,i.path,n),function dP(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Le(!0);const i=r.map(o=>G_(()=>{const s=Gs(t)??n,a=bo(o,s);return Ur(function tP(e){return e&&Zs(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(ci())}));return Le(i).pipe(Do())}(e,i.route,n))),ci(i=>!0!==i,!0))}(r,o,e,t):Le(a)),Re(a=>({...n,guardsResult:a})))})}(this.environmentInjector,u=>this.events.next(u)),Gt(u=>{if(o.guardsResult=u.guardsResult,hi(u.guardsResult))throw Dw(0,u.guardsResult);const l=new Sk(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Rn(u=>!!u.guardsResult||(this.cancelNavigationTransition(u,"",3),!1)),Sh(u=>{if(u.guards.canActivateChecks.length)return Le(u).pipe(Gt(l=>{const c=new Ik(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Wn(l=>{let c=!1;return Le(l).pipe(function NP(e,t){return Rt(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return Le(n);let o=0;return Ot(i).pipe(ks(s=>function RP(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!Fw(i)&&(o[Ps]=i.title),function OP(e,t,n,r){const i=function kP(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return Le({});const o={};return Ot(i).pipe(Rt(s=>function PP(e,t,n,r){const i=Gs(t)??r,o=bo(e,i);return Ur(o.resolve?o.resolve(t,n):i.runInContext(()=>o(t,n)))}(e[s],t,n,r).pipe(ci(),Gt(a=>{o[s]=a}))),sh(1),function YO(e){return Re(()=>e)}(o),di(s=>Aw(s)?Gn:Os(s)))}(o,e,t,r).pipe(Re(s=>(e._resolvedData=s,e.data=_w(e,n).resolve,i&&Fw(i)&&(e.data[Ps]=i.title),null)))}(s.route,r,e,t)),Gt(()=>o++),sh(1),Rt(s=>o===i.length?Le(n):Gn))})}(n.paramsInheritanceStrategy,this.environmentInjector),Gt({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(l,"",2)}}))}),Gt(l=>{const c=new xk(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}))}),Sh(u=>{const l=c=>{const g=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(c.routeConfig).pipe(Gt(x=>{c.component=x}),Re(()=>{})));for(const x of c.children)g.push(...l(x));return g};return rh(l(u.targetSnapshot.root)).pipe(nl(),mo(1))}),Sh(()=>this.afterPreactivation()),Re(u=>{const l=function jk(e,t,n){const r=zs(e,t._root,n?n._root:void 0);return new vw(r,t)}(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o={...u,targetRouterState:l},o}),Gt(()=>{this.events.next(new hh)}),((e,t,n,r)=>Re(i=>(new Zk(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)))(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),mo(1),Gt({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new xr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),n.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Z_(this.transitionAbortSubject.pipe(Gt(u=>{throw u}))),ah(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),di(u=>{if(a=!0,Sw(u))this.events.next(new Us(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),function $k(e){return Sw(e)&&hi(e.url)}(u)?this.events.next(new ph(u.url)):o.resolve(!1);else{this.events.next(new cl(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(u))}catch(l){o.reject(l)}}return Gn}))}))}cancelNavigationTransition(n,r,i){const o=new Us(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function jw(e){return e!==$s}let Bw=(()=>{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===He);return r}getResolvedTitleForRoute(n){return n.data[Ps]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:function(){return me(jP)},providedIn:"root"})}return e})(),jP=(()=>{class e extends Bw{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(j_))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),BP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:function(){return me($P)},providedIn:"root"})}return e})();class VP{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let $P=(()=>{class e extends VP{static#e=this.\u0275fac=function(){let n;return function(i){return(n||(n=function Ig(e){return ur(()=>{const t=e.prototype.constructor,n=t[lr]||vc(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[lr]||vc(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(i||e)}}();static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const yl=new De("",{providedIn:"root",factory:()=>({})});let UP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:function(){return me(HP)},providedIn:"root"})}return e})(),HP=(()=>{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=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ys=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ys||{});function Vw(e,t){e.events.pipe(Rn(n=>n instanceof xr||n instanceof Us||n instanceof cl||n instanceof _o),Re(n=>n instanceof xr||n instanceof _o?Ys.COMPLETE:n instanceof Us&&(0===n.code||1===n.code)?Ys.REDIRECTING:Ys.FAILED),Rn(n=>n!==Ys.REDIRECTING),mo(1)).subscribe(()=>{t()})}function zP(e){throw e}function GP(e,t,n){return t.parse("/")}const WP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},qP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _n=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=me(v1),this.isNgZoneEnabled=!1,this._events=new fe,this.options=me(yl,{optional:!0})||{},this.pendingTasks=me(y1),this.errorHandler=this.options.errorHandler||zP,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||GP,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=me(UP),this.routeReuseStrategy=me(BP),this.titleStrategy=me(Bw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=me(So,{optional:!0})?.flat()??[],this.navigationTransitions=me(vl),this.urlSerializer=me(Ls),this.location=me(Nf),this.componentInputBindingEnabled=!!me(fl,{optional:!0}),this.eventsSubscription=new b,this.isNgZoneEnabled=me(lt)instanceof lt&<.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new yo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=yw(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:i}=this.navigationTransitions;if(null===i)return void($w(r)&&this._events.next(r));if(r instanceof ll)jw(i.source)&&(this.browserUrlTree=i.extractedUrl);else if(r instanceof _o)this.rawUrlTree=i.rawUrl;else if(r instanceof pw){if("eager"===this.urlUpdateStrategy){if(!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl);this.setBrowserUrl(o,i)}this.browserUrlTree=i.urlAfterRedirects}}else if(r instanceof hh)this.currentUrlTree=i.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i),this.browserUrlTree=i.urlAfterRedirects);else if(r instanceof Us)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(i);else if(r instanceof ph){const o=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jw(i.source)};this.scheduleNavigation(o,$s,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise})}r instanceof cl&&this.restoreHistory(i,!0),r instanceof xr&&(this.navigated=!0),$w(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(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),$s,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},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(bh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=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 g,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{g=aw(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),g=this.currentUrlTree.root}return uw(g,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=hi(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,$s,null,r)}navigate(n,r={skipLocationChange:!1}){return function ZP(e){for(let t=0;t{const o=n[i];return 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((g,x)=>{a=g,u=x});const c=this.pendingTasks.add();return Vw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}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===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}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=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $w(e){return!(e instanceof hh||e instanceof ph)}let _l=(()=>{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 fe,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 xr&&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){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Em(e,t,n){return function bS(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Dm:Hc}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}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)(Ne(_n),Ne(Co),function Ia(e){return function UD(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 Ht,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof xr&&this.update()})}ngAfterContentInit(){Le(this.links.changes,Le(null)).pipe(vi()).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=Ot(n).pipe(vi()).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 YP(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>!!i.urlTree&&n.isActive(i.urlTree,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)(Ne(_n),Ne(mr),Ne(ru),Ne(Cf),Ne(_l,8))};static#t=this.\u0275dir=Vt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(1&r&&function K0(e,t,n,r){const i=Ke();if(i.firstCreatePass){const o=Lt();J0(i,new Z0(t,n,r),o.index),function OT(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)}Q0(i,ie(),n)}(o,_l,5),2&r){let s;sf(s=af())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Xr]})}return e})();class Hw{}let XP=(()=>{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(Rn(n=>n instanceof xr),ks(()=>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=Yd(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 Ot(i).pipe(vi())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):Le(null);const o=i.pipe(Rt(s=>null===s?Le(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Ot([o,this.loader.loadComponent(r)]).pipe(vi()):o})}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(_n),Ae(_1),Ae(In),Ae(Hw),Ae(Ih))};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const xh=new De("");let zw=(()=>{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=s.scrollPositionRestoration||"disabled",s.anchorScrolling=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 ll?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof xr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof _o&&0===n.code&&(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 gw&&(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 gw(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 dv(){throw new Error("invalid")}()};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac})}return e})();function Tr(e,t){return{\u0275kind:e,\u0275providers:t}}function Ww(){const e=me(xn);return t=>{const n=e.get(ho);if(t!==n.components[0])return;const r=e.get(_n),i=e.get(qw);1===e.get(Ah)&&r.initialNavigation(),e.get(Zw,null,We.Optional)?.setUpPreloading(),e.get(xh,null,We.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const qw=new De("",{factory:()=>new fe}),Ah=new De("",{providedIn:"root",factory:()=>1}),Zw=new De("");function e3(e){return Tr(0,[{provide:Zw,useExisting:XP},{provide:Hw,useExisting:e}])}const Yw=new De("ROUTER_FORROOT_GUARD"),n3=[Nf,{provide:Ls,useClass:uh},_n,Hs,{provide:Co,useFactory:function Gw(e){return e.routerState.root},deps:[_n]},Ih,[]];function r3(){return new I1("Router",_n)}let Xw=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[n3,[],{provide:So,multi:!0,useValue:n},{provide:Yw,useFactory:a3,deps:[[_n,new Ta,new Ma]]},{provide:yl,useValue:r||{}},r?.useHash?{provide:li,useClass:fN}:{provide:li,useClass:n_},{provide:xh,useFactory:()=>{const e=me(MR),t=me(lt),n=me(yl),r=me(vl),i=me(Ls);return n.scrollOffset&&e.setOffset(n.scrollOffset),new zw(i,r,e,t,n)}},r?.preloadingStrategy?e3(r.preloadingStrategy).\u0275providers:[],{provide:I1,multi:!0,useFactory:r3},r?.initialNavigation?u3(r):[],r?.bindToComponentInputs?Tr(8,[bw,{provide:fl,useExisting:bw}]).\u0275providers:[],[{provide:Kw,useFactory:Ww},{provide:ku,multi:!0,useExisting:Kw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:So,multi:!0,useValue:n}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ae(Yw,8))};static#t=this.\u0275mod=dr({type:e});static#n=this.\u0275inj=qn({})}return e})();function a3(e){return"guarded"}function u3(e){return["disabled"===e.initialNavigation?Tr(3,[{provide:Nu,multi:!0,useFactory:()=>{const t=me(_n);return()=>{t.setUpLocationChangeListener()}}},{provide:Ah,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Tr(2,[{provide:Ah,useValue:0},{provide:Nu,multi:!0,deps:[xn],useFactory:t=>{const n=t.get(cN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const i=t.get(_n),o=t.get(qw);Vw(i,()=>{r(!0)}),t.get(vl).afterPreactivation=()=>(r(!0),o.closed?Le(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const Kw=new De(""),Th=new De("ngx-google-analytics-settings",{factory:()=>({trackingCode:"",enableTracing:!1})}),Qw=new De("ngx-window",{providedIn:"root",factory:()=>{const{defaultView:e}=me(Mt);if(!e)throw new Error("Window is not available");return e}}),f3=new De("ngx-data-layer",{providedIn:"root",factory:()=>function d3(e){return e?e.dataLayer=e.dataLayer||[]:null}(me(Qw))}),Jw=new De("ngx-gtag-fn",{providedIn:"root",factory:()=>function h3(e,t){return e?e.gtag=e.gtag||function(){t.push(arguments)}:null}(me(Qw),me(f3))});let wl=(()=>{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,g])=>u.set(c,g));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(Th),Ae(Mt),Ae(Jw))},e.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const g3={provide:Nu,multi:!0,useFactory:function m3(e,t,n){return H_(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:[Th,Jw,Mt]},eC=new De("ngx-google-analytics-routing-settings",{factory:()=>({})}),v3={provide:ku,multi:!0,useFactory:function y3(e,t){return function(){var n=H_(function*(r){const i=r.injector.get(_n),{include:o=[],exclude:s=[]}=e??{},a=tC(o),u=tC(s),l=i.events.pipe(Rn(c=>c instanceof xr),function c3(e){return Rn((t,n)=>e<=n)}(1),Rn(c=>!(a.length>0)||a.some(g=>g.test(c.urlAfterRedirects))),Rn(c=>!(u.length>0&&u.some(g=>g.test(c.urlAfterRedirects))))).subscribe(c=>t.pageView(c.urlAfterRedirects,void 0));r.onDestroy(()=>l.unsubscribe())});return function(r){return n.apply(this,arguments)}}()},deps:[eC,wl]};function tC(e){return e.map(t=>t instanceof RegExp?t:new RegExp(`^${t.replace("*",".*")}$`,"i"))}let nC=(()=>{class e{static forRoot(n,r=[],i,o,s){return{ngModule:e,providers:[{provide:Th,useValue:{trackingCode:n,initCommands:r,uri:i,enableTracing:o,nonce:s}},g3]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=dr({type:e}),e.\u0275inj=qn({}),e})(),_3=(()=>{class e{static forRoot(n){return{ngModule:e,providers:[{provide:eC,useValue:n??{}}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=dr({type:e}),e.\u0275inj=qn({providers:[v3],imports:[__,nC]}),e})();const Mh="3.1.6",Nh=function(){return{exact:!0}};let w3=(()=>{class e{constructor(){this.document=me(Mt),this.platformId=me(ri),this.backgroundImagesCount=8}ngOnInit(){if(this.document.head.querySelector('meta[name="version"]')?.setAttribute("content",Mh),!Wf(this.platformId)){const n=Math.floor(Math.random()*this.backgroundImagesCount+1);this.document.body.style.backgroundImage=`url('/assets/bg${n}.jpg')`}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=cr({type:e,selectors:[["app-root"]],decls:54,vars:6,consts:[[1,"container","mx-auto","p-4"],[1,"card","p-4","mb-4","flex","lg:inline-flex","flex-col","sm:flex-row","items-center","sm:items-end","pb-0","overflow-hidden"],[1,"pb-4","pr-4"],["role","img","aria-label","Lyric Converter",1,"fill-white","h-[88px]"],[0,"xlink","href","#lyric-converter-logo"],[1,"flex","sm:ml-auto"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/",1,"text-white","text-xl","p-4","rounded-t-md","hover:no-underline","hover:bg-lc-highlight/20",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/about",1,"text-white","text-xl","p-4","rounded-t-md","hover:no-underline","hover:bg-lc-highlight/20",3,"routerLinkActiveOptions"],["routerLinkActive","border-b-2 border-lc-highlight bg-lc-highlight/10","routerLink","/help",1,"text-white","text-xl","p-4","rounded-t-md","hover:no-underline","hover:bg-lc-highlight/20",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),xt(),ue(3,"svg",3),ze(4,"use",4),se()(),Jn(),ue(5,"nav",5)(6,"a",6),be(7,"Convert"),se(),ue(8,"a",7),be(9,"About"),se(),ue(10,"a",8),be(11,"Help"),se()()(),ze(12,"router-outlet"),se(),xt(),ue(13,"svg",9)(14,"symbol",10)(15,"g",11),ze(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),se(),ue(25,"g",21),ze(26,"path",22)(27,"path",23)(28,"path",24)(29,"path",25)(30,"path",26)(31,"path",27),se()(),ue(32,"symbol",28),ze(33,"path",29),se(),ue(34,"symbol",30),ze(35,"path",31),se(),ue(36,"symbol",32),ze(37,"path",33),se(),ue(38,"symbol",34),ze(39,"path",35),se(),ue(40,"symbol",36),ze(41,"path",37)(42,"path",38),se(),ue(43,"symbol",39),ze(44,"path",40),se(),ue(45,"symbol",41),ze(46,"path",42),se(),ue(47,"symbol",43),ze(48,"path",44),se(),ue(49,"symbol",45),ze(50,"path",46),se(),ue(51,"symbol",47),ze(52,"path",48)(53,"path",49),se()()),2&r&&(Ve(6),Ze("routerLinkActiveOptions",Iu(3,Nh)),Ve(2),Ze("routerLinkActiveOptions",Iu(4,Nh)),Ve(2),Ze("routerLinkActiveOptions",Iu(5,Nh)))},dependencies:[wh,_l,Uw]})}return e})(),rC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=cr({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-lg","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),ze(1,"input",1)(2,"input",2)(3,"input",3)(4,"input",4),ue(5,"button",5),xt(),ue(6,"svg",6),ze(7,"use",7),se(),be(8," Donate! "),se(),Jn(),ze(9,"img",8),se())},encapsulation:2})}return e})(),C3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=cr({type:e,selectors:[["app-about"]],decls:44,vars:0,consts:[[1,"grid","md:grid-cols-3","gap-4"],[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","btn-lg"],["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),be(3,"Why Was This Made?"),se(),ue(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 "),ue(7,"em"),be(8,"really"),se(),be(9," wanted to switch over to a Mac. After looking into it, ProPresenter seemed like a great choice. "),se(),ue(10,"p",4),be(11," After making the leap, we quickly realized that SongShow Plus had absolutely "),ue(12,"strong"),be(13,"no way to export"),se(),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. "),se(),ue(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! "),se(),ue(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. "),ue(19,"strong"),be(20,"BUT"),se(),be(21,", here it is. I hope you find it useful. "),se()()(),ue(22,"div")(23,"div",5)(24,"h3",2),be(25,"Donations are welcome!"),se(),ue(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. "),se(),ze(29,"app-donate-button"),se()(),ue(30,"div",6)(31,"h3",2),be(32,"Want To Make This Better?"),se(),ue(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. "),se(),ue(36,"a",7),xt(),ue(37,"svg",8),ze(38,"use",9),se(),be(39," Fork On GitHub! "),se()()()(),Jn(),ue(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 "),se()()()())},dependencies:[rC]})}return e})();function Rh(e){e||(function ou(e){if(!up()&&!function Sb(){return yi}())throw new ge(-203,!1)}(),e=me(qi));const t=new ye(n=>e.onDestroy(n.next.bind(n)));return n=>n.pipe(Z_(t))}const Ks=" | ",pC="[[LyricConverter Custom Error]]";let gC=(()=>{class e{constructor(){this.$gaService=me(wl),this.errorsList=[],this.errorsChanged$=new fe}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===pC}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Qs{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 j3{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=Qs.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 g=n.substring(c.begin.position,c.end.position+c.end.name.length+2);if(s.includes(c.type)){let x=c.begin.position+c.begin.name.length+3;null!=c.begin.sectionLabel&&(x+=c.begin.sectionLabel.length+1);const P=n.substring(x,c.end.position);o.push({full:g,content:P,type:c.type,sectionLabel:c.begin.sectionLabel})}else i.push(g)}const a=i.reduce((c,g)=>c.replace(g,""),n);return o.reduce((c,g)=>{let x="";return null!=g.sectionLabel?x=g.sectionLabel:/^c(horus)?$/.test(g.type)&&!/^chorus/i.test(g.content)?x="Chorus:\n":/^v(erse)?$/.test(g.type)&&!/^verse/i.test(g.content)?x="Verse:\n":/^b(ridge)?$/.test(g.type)&&!/^bridge/i.test(g.content)&&(x="Bridge:\n"),c.replace(g.full,x+g.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 mC extends Error{constructor(t){return super(),new Error(t,{cause:pC})}}class B3{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 mC(`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 zr=Y(660);class V3{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 $3{lyricLineParser=new zr.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 z3{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 zr.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!0,attributeNamePrefix:"",parseTagValue:!0,parseAttributeValue:!0,stopNodes:["song.lyrics.verse.lines","song.lyrics.instrument.lines"],isArray:(c,g)=>t.includes(g),tagValueProcessor:(c,g,x)=>"song.lyrics.verse.lines"===x?g.replace(/<\/?br ?\/?>([\r\n])?/gi,"\n").replace(//g,""):null}).parse(e),i=new $3;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(Ks)})}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(Ks);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 G3{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=Qs.normalizeLineEndings(t.dataAsString).split("\n\n\n");if(2!==o.length||null==o[0]||null==o[1])throw new mC(`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 q3="function"==typeof atob,Z3="function"==typeof btoa,xo="function"==typeof Buffer,_C="function"==typeof TextDecoder?new TextDecoder:void 0,wC="function"==typeof TextEncoder?new TextEncoder:void 0,Js=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Sl=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Js),X3=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Bt=String.fromCharCode.bind(String),CC="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),DC=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Fh=Z3?e=>btoa(e):xo?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+=Js[t>>18&63]+Js[t>>12&63]+Js[t>>6&63]+Js[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},Lh=xo?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?Bt(192|t>>>6)+Bt(128|63&t):Bt(224|t>>>12&15)+Bt(128|t>>>6&63)+Bt(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Bt(240|t>>>18&7)+Bt(128|t>>>12&63)+Bt(128|t>>>6&63)+Bt(128|63&t)},Q3=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,IC=xo?e=>Buffer.from(e,"utf8").toString("base64"):wC?e=>Lh(wC.encode(e)):e=>Fh((e=>e.replace(Q3,K3))(e)),J3=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,eF=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 Bt(55296+(n>>>10))+Bt(56320+(1023&n));case 3:return Bt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Bt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},jh=q3?e=>atob(DC(e)):xo?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!X3.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?Bt(t>>16&255,t>>8&255):Bt(t>>16&255,t>>8&255,255&t);return n},MC=xo?e=>CC(Buffer.from(e,"base64")):e=>CC(jh(e).split("").map(t=>t.charCodeAt(0))),tF=xo?e=>Buffer.from(e,"base64").toString("utf8"):_C?e=>_C.decode(MC(e)):e=>(e=>e.replace(J3,eF))(jh(e)),zn_encode=(e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"))(IC(e)):IC(e),zn_decode=e=>tF((e=>DC(e.replace(/[-_]/g,t=>"-"==t?"+":"/")))(e)),Vh=/^#?[a-f\d]{6}$/i,FC="[10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)? [10](?:\\.\\d+)?",$h=new RegExp("^"+FC+"$"),LC=e=>e.replace(/\n\\f[0-9]\s/g,"").replace(/\{\*?\\[^{}]+;}|[{}]|\\[A-Za-z]+\n?(?:-?\d+)?[ ]?/g,"").replace(/\\\n/g,"\n").trim(),jC=(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")}}`,Uh=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}},BC=()=>(new Date).toISOString().replace(/\.\d{3}Z$/,""),ea=()=>{function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1).toUpperCase()}return`${e()+e()}-${e()}-${e()}-${e()}-${e()+e()+e()}`},VC=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?`)},To=e=>{if("string"!=typeof e)return`${e.r/255} ${e.g/255} ${e.b/255} 1`;if($h.test(e))return e;if(Vh.test(e))return To(VC(e));throw new Error(`Input color '${e}' could not be parsed to an RGBA color string!`)},Nt=e=>{if("string"!=typeof e)return e;if($h.test(e)){const t=e.split(" ");return{r:255*parseFloat(t[0]),g:255*parseFloat(t[1]),b:255*parseFloat(t[2])}}if(Vh.test(e))return VC(e);throw new Error(`Input color '${e}' could not be parsed to an RGB color object!`)};class iF{parse(t){const n=["RVPresentationDocument.timeline.timeCues","RVPresentationDocument.timeline.mediaTracks","RVPresentationDocument.slides.RVDisplaySlide","RVPresentationDocument.slides.RVDisplaySlide.displayElements.RVTextElement"],i=new zr.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:Nt(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=zn_decode(o["@RTFData"]),a=Uh(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:LC(s),color:a.color,font:a.font,size:a.size}})),n.push({label:r["@label"],id:r["@UUID"],backgroundColor:Nt(r["@backgroundColor"]),highlightColor:Nt(r["@highlightColor"]),textElements:i})}return n}}var Hh=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}(Hh||{});class oF{xmlBuilder;options;defaultTransitionObj={"@transitionType":Hh.None,"@transitionDuration":1,"@motionEnabled":0,"@motionDuration":20,"@motionSpeed":100};constructor(t){this.xmlBuilder=new zr.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":BC(),"@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:Nt(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:Nt(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=zn_decode(s["@RTFData"]),u=Uh(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:LC(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:Nt(n["@highlightColor"]);return{backgroundColor:Nt(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:Nt(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 aF{xmlBuilder;options;winFontData='0025500010000Normal';defaultTransitionObj={"@rvXMLIvarName":"transitionObject","@transitionType":Hh.None,"@transitionDirection":0,"@transitionDuration":1,"@motionEnabled":!1,"@motionDuration":0,"@motionSpeed":0,"@groupIndex":0,"@orderIndex":0,"@slideBuildAction":0,"@slideBuildDelay":0};constructor(t){this.xmlBuilder=new zr.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":BC(),"@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":ea(),"@color":To(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=To(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":ea(),"@chordChartPath":"",array:[{"@rvXMLIvarName":"cues"},{"@rvXMLIvarName":"displayElements",RVTextElement:[this.buildTextElement(s)]}]})}return n}buildTextElement(t){const n=jC(t,this.options.slideTextFormatting.fontName,this.options.slideTextFormatting.textSize,Nt(this.options.slideTextFormatting.textColor));return{"@displayName":"Default","@UUID":ea(),"@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":zn_encode(t)},{"@rvXMLIvarName":"RTFData","#text":zn_encode(n)},{"@rvXMLIvarName":"WinFlowData","#text":zn_encode(this.getWinFlowDocument(t))},{"@rvXMLIvarName":"WinFontData","#text":zn_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=To(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($h.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(Vh.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 uF{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 zr.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@",parseAttributeValue:!0,isArray:(c,g)=>n.includes(g)}).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:Nt(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:Nt(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:Nt(r["@highlightColor"]);n.push({backgroundColor:Nt(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=zn_decode(l["#text"]):"RTFData"===l["@rvXMLIvarName"]?o=zn_decode(l["#text"]):"WinFlowData"===l["@rvXMLIvarName"]?s=zn_decode(l["#text"]):"WinFontData"===l["@rvXMLIvarName"]&&(a=zn_decode(l["#text"]))});const u=Uh(o);n.push({adjustsHeightToFit:r["@adjustsHeightToFit"],bezelRadius:r["@bezelRadius"],displayDelay:r["@displayDelay"],displayName:r["@displayName"],drawingFill:r["@drawingFill"],fillColor:Nt(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:Nt(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+)\\|("+FC+")\\|\\{(-?\\d(?:\\.\\d+)?), (-?\\d(?:\\.\\d+)?)\\}$").exec(t),o=parseInt(i[1],10),s=Nt(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:Nt(i["@color"]),groupOrder:o})}return r}}class pF{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 iF).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 gF{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 sF).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 mF{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 uF).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 vF=Y(8);class yF{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=vF.y.parse(Qs.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 _F{id="";title="";author="";copyright="";ccli="";key="";comments="";verseOrder="";songBook="";songNumber="";topics=[];lyricSections=[]}class wF{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(Ks)}),{fileName:t.name,title:i,info:o,slides:r.lyricSections}}}class bF{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 DF{constructor(){this.name="Display Slides"}convertToType(t){return{songData:t,fileName:"",outputContent:""}}}class EF{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 SF{constructor(){this.name="OpenLyrics",this.fileExt="xml",this.url="http://openlyrics.org/"}convertToType(t){const r=(e=>{const t=new V3,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 zr.XMLBuilder({attributeNamePrefix:"@",format:!0,ignoreAttributes:!1,processEntities:!1,suppressBooleanAttributes:!1,suppressUnpairedNode:!1,unpairedTags:["songbook"]}).build(n).trim()})({meta:{createdIn:`LyricConverter ${Mh}`,modifiedIn:`LyricConverter ${Mh}`},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(Ks).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(Ks).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 IF{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 xF{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 oF(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 AF{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 aF(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 TF{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 $C=(()=>{class e{constructor(){this.errorsSvc=me(gC),this.decoder=new TextDecoder,this.inputConverters=[new pF,new gF,new mF,new j3,new yF,new CF,new z3,new G3,new B3],this.outputConverters=[new AF,new xF,new bF,new SF,new TF,new IF,new EF,new DF],this.parsedFilesChanged$=new fe}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=Qs.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=Te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),MF=(()=>{class e{constructor(n){this.document=n,this.dragOverClass="drag-over",this.fileDrop=new Ht}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)(Ne(Mt))};static#t=this.\u0275dir=Vt({type:e,selectors:[["","appDragAndDropFiles",""]],hostBindings:function(r,i){1&r&&Tn("dragover",function(s){return i.onDragOver(s)},0,su)("dragleave",function(s){return i.onDragLeave(s)},!1,su)("drop",function(s){return i.onDrop(s)},!1,su)},outputs:{fileDrop:"fileDrop"}})}return e})();function NF(e,t){if(1&e&&(ue(0,"li",8)(1,"strong",9),be(2),se(),ue(3,"span",10),be(4),se()()),2&e){const n=t.$implicit;Ve(2),wr(n.name),Ve(2),Cr(" ",n.value,"")}}function RF(e,t){if(1&e&&(ue(0,"div",11)(1,"p",12),be(2),se(),ue(3,"footer",13),be(4),se()()),2&e){const n=t.$implicit;Ve(2),wr(n.lyrics),Ve(2),wr(n.title)}}function OF(e,t){if(1&e&&(ue(0,"div",1)(1,"h3",2),be(2),se(),ue(3,"div",3)(4,"ul",4),ct(5,NF,5,2,"li",5),se()(),ue(6,"div",6),ct(7,RF,5,2,"div",7),se()()),2&e){const n=t.$implicit;Ve(2),wr(n.songData.title),Ve(3),Ze("ngForOf",n.songData.info),Ve(2),Ze("ngForOf",n.songData.slides)}}let kF=(()=>{class e{constructor(){this.$gaService=me(wl),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=cr({type:e,selectors:[["app-slide-display"]],inputs:{outputFileList:"outputFileList"},decls:1,vars:1,consts:[["class","card mb-4 last-of-type:mb-0",4,"ngFor","ngForOf"],[1,"card","mb-4","last-of-type:mb-0"],[1,"card-title"],[1,"card-content","!pb-2"],[1,"text-sm","flex","flex-wrap","gap-1"],["class","inline-flex rounded overflow-hidden text-slate-800 cursor-default border border-slate-500 hover:border-slate-600 bg-slate-300 hover:bg-slate-400",4,"ngFor","ngForOf"],[1,"test-song-slides-container","card-content","grid","gap-1","grid-cols-2","sm:grid-cols-3","lg:grid-cols-4","xl:grid-cols-5","2xl:grid-cols-6"],["class","flex flex-col rounded-md overflow-hidden text-slate-800 cursor-default border border-slate-500 hover:border-slate-600 bg-slate-300 hover:bg-slate-400",4,"ngFor","ngForOf"],[1,"inline-flex","rounded","overflow-hidden","text-slate-800","cursor-default","border","border-slate-500","hover:border-slate-600","bg-slate-300","hover:bg-slate-400"],[1,"px-1"],[1,"bg-slate-50","px-1"],[1,"flex","flex-col","rounded-md","overflow-hidden","text-slate-800","cursor-default","border","border-slate-500","hover:border-slate-600","bg-slate-300","hover:bg-slate-400"],[1,"grow","p-1","leading-4","text-sm","bg-slate-50"],[1,"px-1","font-bold"]],template:function(r,i){1&r&&ct(0,OF,8,3,"div",0),2&r&&Ze("ngForOf",i.outputFileList)},dependencies:[Xu]})}return e})();var PF=Y(965),UC=Y(217);function FF(e,t){if(1&e){const n=so();ue(0,"button",5),Tn("click",function(){return Kr(n),Qr(Dt().onClickDownloadFiles())}),xt(),ue(1,"svg",6),ze(2,"use",7),se(),be(3," Download File "),se()}}function LF(e,t){if(1&e){const n=so();ue(0,"div")(1,"button",5),Tn("click",function(){return Kr(n),Qr(Dt().onClickDownloadZipFile())}),xt(),ue(2,"svg",6),ze(3,"use",8),se(),be(4," Download as .zip "),se(),be(5," or "),Jn(),ue(6,"button",9),Tn("click",function(){return Kr(n),Qr(Dt().onClickDownloadFiles())}),xt(),ue(7,"svg",6),ze(8,"use",10),se(),be(9),se()()}if(2&e){const n=Dt();Ve(9),Cr(" Download ",n.outputFileList.length," individual files ")}}let jF=(()=>{class e{constructor(){this.$gaService=me(wl),this.outputFileList=[]}onClickDownloadFiles(){for(const n of this.outputFileList)UC.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 PF;for(const r of this.outputFileList)n.file(r.fileName,new File([r.outputContent],r.fileName));n.generateAsync({type:"blob"}).then(r=>{UC.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=cr({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",3,"click",4,"ngIf"],[4,"ngIf"],["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),be(2),se(),ue(3,"div",2),ct(4,FF,4,0,"button",3),ct(5,LF,10,1,"div",4),se()()),2&r&&(Ve(2),Bd(" Converted ",i.outputFileList.length," ",1===i.outputFileList.length?"Song":"Songs"," "),Ve(2),Ze("ngIf",1===i.outputFileList.length),Ve(1),Ze("ngIf",i.outputFileList.length>1))},dependencies:[Ku]})}return e})();const BF=["fileInput"];function VF(e,t){if(1&e&&(ue(0,"span",17),be(1),se()),2&e){const n=Dt().$implicit;Ve(1),Cr(".",n.fileExt,"")}}const $F=function(e){return{"font-bold bg-lc-highlight/10 border-l-2 border-l-lc-highlight":e}};function UF(e,t){if(1&e){const n=so();ue(0,"a",15),Tn("click",function(i){const s=Kr(n).$implicit;return Qr(Dt().onSwitchConversionType(s,i))}),be(1),ct(2,VF,2,1,"span",16),se()}if(2&e){const n=t.$implicit,r=Dt();Ze("ngClass",xu(3,$F,r.selectedOutputType===n)),Ve(1),Cr(" ",n.name," "),Ve(1),Ze("ngIf",n.fileExt)}}function HF(e,t){if(1&e){const n=so();ue(0,"div",18)(1,"div",19),be(2," You can drag more songs into this window to convert them, or "),ue(3,"a",20),Tn("click",function(i){return Kr(n),Qr(Dt().onSelectFilesClick(i))}),be(4,"select some more files"),se()()()}}function zF(e,t){if(1&e&&(ue(0,"span"),be(1),se()),2&e){const n=t.$implicit,r=t.index,i=Dt(2);Ve(1),Vd("",r===i.inputTypesList.length-1?"or ":"","",n.name,"",r=n.convertedCountMessageThreshold),Ve(1),Ze("ngIf",n.errorsList.length>0),Ve(1),Ze("ngIf","Display Slides"===n.selectedOutputType.name),Ve(1),Ze("ngIf","Display Slides"!==n.selectedOutputType.name)}}const JF=function(e){return{"sm:col-span-2 md:col-span-1":e}},eL=function(e){return{"sm:grid sm:grid-cols-2 sm:gap-4 md:block md:grid-cols-none":e}};function nL(e,t){if(1&e&&(ue(0,"a",29),be(1),se()),2&e){const n=Dt().$implicit;Ze("href",n.url,Hc),Ve(1),wr(n.name)}}function rL(e,t){if(1&e&&(ue(0,"span"),be(1),se()),2&e){const n=Dt().$implicit;Ve(1),wr(n.name)}}function iL(e,t){1&e&&(xt(),ue(0,"svg",30),ze(1,"use",11),se())}function oL(e,t){1&e&&(xt(),ue(0,"svg",31),ze(1,"use",32),se())}function sL(e,t){1&e&&(xt(),ue(0,"svg",33),ze(1,"use",34),se())}function aL(e,t){1&e&&(xt(),ue(0,"svg",35),ze(1,"use",32),se())}function uL(e,t){1&e&&(xt(),ue(0,"svg",33),ze(1,"use",34),se())}function lL(e,t){if(1&e&&(ue(0,"tr")(1,"th",21),ct(2,nL,2,2,"a",22),ct(3,rL,2,1,"span",23),ct(4,iL,2,0,"svg",24),se(),ue(5,"td",25),ct(6,oL,2,0,"svg",26),ct(7,sL,2,0,"svg",27),se(),ue(8,"td",25),ct(9,aL,2,0,"svg",28),ct(10,uL,2,0,"svg",27),se()()),2&e){const n=t.$implicit;Ve(2),Ze("ngIf",n.url),Ve(1),Ze("ngIf",!n.url),Ve(1),Ze("ngIf",n.hasNote),Ve(2),Ze("ngIf",n.canImport),Ve(1),Ze("ngIf",!n.canImport),Ve(2),Ze("ngIf",n.canExport),Ve(1),Ze("ngIf",!n.canExport)}}const cL=[{path:"",component:(()=>{class e{constructor(){this.destroyRef=me(qi),this.document=me(Mt),this.elementRef=me(mr),this.parserSvc=me($C),this.errorsSvc=me(gC),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(Rh(this.destroyRef)).subscribe(n=>{this.getConvertersAndExtractData(n)}),this.errorsSvc.errorsChanged$.pipe(Rh(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=cr({type:e,selectors:[["app-convert"]],viewQuery:function(r,i){if(1&r&&function X0(e,t,n){const r=Ke();r.firstCreatePass&&(J0(r,new Z0(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Q0(r,ie(),t)}(BF,5),2&r){let o;sf(o=af())&&(i.fileInput=o.first)}},decls:18,vars:10,consts:[["id","drop-area","appDragAndDropFiles","",1,"pointer-events-none","fixed","top-0","left-0","right-0","bottom-0","z-50","flex","items-center","justify-center","backdrop-blur-sm","bg-slate-600/50",3,"fileDrop"],[1,"bg-slate-50/90","text-slate-800","rounded-xl","shadow-lg","text-3xl","font-bold","p-8","border-2","border-slate-600","flex","items-center"],["role","img",1,"icon","mr-2"],[0,"xlink","href","#files"],["type","file","multiple","",1,"hidden",3,"change"],["fileInput",""],[1,"grid","gap-4","grid-cols-1","sm:grid-cols-2","md:grid-cols-4"],[3,"ngClass"],[1,"sticky","md:top-4",3,"ngClass"],["id","test-convert-types-nav",1,"card","p-0","grid","grid-cols-1","overflow-hidden"],[1,"card-title","text-center","py-2"],["class","flex items-center p-2 text-white border-b border-b-lc-highlight/10 hover:no-underline hover:bg-lc-highlight/20","href","#",3,"ngClass","click",4,"ngFor","ngForOf"],["id","test-drop-instructions-more","class","card mt-4 sm:mt-0 md:mt-4",4,"ngIf"],["id","begin-area","class","card md:col-span-3",4,"ngIf"],["id","display-area","class","sm:col-span-2 md:col-span-3",4,"ngIf"],["href","#",1,"flex","items-center","p-2","text-white","border-b","border-b-lc-highlight/10","hover:no-underline","hover:bg-lc-highlight/20",3,"ngClass","click"],["class","bg-slate-300 text-slate-800 border border-white/30 p-0.5 pl-0 leading-none rounded text-xs font-mono ml-1",4,"ngIf"],[1,"bg-slate-300","text-slate-800","border","border-white/30","p-0.5","pl-0","leading-none","rounded","text-xs","font-mono","ml-1"],["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","text-center","flex","flex-col","items-center","justify-center"],[1,"mb-4","mt-auto"],[1,"text-3xl"],["id","test-accepted-input-formats",1,"mt-auto"],[4,"ngFor","ngForOf"],["id","display-area",1,"sm:col-span-2","md:col-span-3"],[1,"mb-4","md:hidden"],["id","test-donate","class","card bg-blue-100/70 text-blue-900 border-blue-800/80 mb-4","role","alert",4,"ngIf"],["id","test-error-message-display","class","card bg-red-200/80 text-red-700 border-red-700/80 mb-4","role","alert",4,"ngIf"],[3,"outputFileList",4,"ngIf"],[3,"selectedOutputType","outputFileList",4,"ngIf"],["id","test-donate","role","alert",1,"card","bg-blue-100/70","text-blue-900","border-blue-800/80","mb-4"],[1,"flex","items-center","mb-2"],["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","bg-red-200/80","text-red-700","border-red-700/80","mb-4"],[1,"flex","items-center","text-xl","font-bold","mb-2"],["role","img","aria-label","Alert:",1,"icon","icon-lg","mr-2"],[0,"xlink","href","#exclamation-triangle-fill"],[4,"ngIf"],[3,"outputFileList"],[3,"selectedOutputType","outputFileList"]],template:function(r,i){1&r&&(ue(0,"div",0),Tn("fileDrop",function(s){return i.onReceiveFiles(s)}),ue(1,"div",1),xt(),ue(2,"svg",2),ze(3,"use",3),se(),Jn(),ue(4,"span"),be(5,"Drop Your Song Files Here"),se()()(),ue(6,"input",4,5),Tn("change",function(s){return i.onFileSelect(s)}),se(),ue(8,"div",6)(9,"div",7)(10,"aside",8)(11,"nav",9)(12,"strong",10),be(13," Convert To "),se(),ct(14,UF,3,5,"a",11),se(),ct(15,HF,5,0,"div",12),se()(),ct(16,GF,17,1,"div",13),ct(17,QF,6,4,"div",14),se()),2&r&&(Ve(9),Ze("ngClass",xu(6,JF,!i.displayInitialUi)),Ve(1),Ze("ngClass",xu(8,eL,!i.displayInitialUi)),Ve(4),Ze("ngForOf",i.outputTypesForMenu),Ve(1),Ze("ngIf",!i.displayInitialUi),Ve(1),Ze("ngIf",i.displayInitialUi),Ve(1),Ze("ngIf",!i.displayInitialUi))},dependencies:[h_,Xu,Ku,rC,MF,kF,jF],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:C3,pathMatch:"full",title:"Lyric Converter: About"},{path:"help",component:(()=>{class e{constructor(){this.parserSvc=me($C),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=Qs.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=cr({type:e,selectors:[["app-help"]],decls:37,vars:1,consts:[[1,"grid","sm:grid-cols-2","gap-4"],[1,"card"],[1,"card-title"],[1,"card-content"],[1,"text-sm","mb-2"],[1,"w-full"],["scope","col",1,"w-1/2"],["scope","col",1,"w-1/4","text-center"],[4,"ngFor","ngForOf"],[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","btn-lg"],["role","img","aria-label","Github:",1,"icon","flex-shrink-0","me-2"],[0,"xlink","href","#github"],[1,"my-2"],["target","_blank","href","https://hachyderm.io/@FiniteLooper",1,"btn","btn-secondary","btn-lg"],["role","img","aria-label","Mastodon:",1,"icon","flex-shrink-0","me-2"],[0,"xlink","href","#mastodon"],["scope","row",1,"text-left"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["class","icon ml-1 text-sm text-blue-400","role","img","aria-label","Info: about this format",4,"ngIf"],[1,"text-center"],["class","icon text-green-400 drop-shadow-md","role","img","aria-label","Import is supported",4,"ngIf"],["class","icon text-red-400 drop-shadow-md","role","img","aria-label","Export is not supported",4,"ngIf"],["class","icon text-green-400 drop-shadow-md","role","img","aria-label","Export is supported",4,"ngIf"],["target","_blank",3,"href"],["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),be(3,"Supported Formats"),se(),ue(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. "),se(),ue(7,"table",5)(8,"thead")(9,"tr"),ze(10,"th",6),ue(11,"th",7),be(12,"Import"),se(),ue(13,"th",7),be(14,"Export"),se()()(),ue(15,"tbody"),ct(16,lL,11,7,"tr",8),se()(),ue(17,"p",9),xt(),ue(18,"svg",10),ze(19,"use",11),se(),be(20," You can import the ProPresenter 6 files made by LyricConverter into ProPresenter 7! "),se()()(),Jn(),ue(21,"div")(22,"div",12)(23,"h3",2),be(24,"Have a question or some other problem?"),se(),ue(25,"div",3)(26,"div",13)(27,"a",14),xt(),ue(28,"svg",15),ze(29,"use",16),se(),be(30," Open an issue on GitHub "),se(),Jn(),ue(31,"div",17),be(32," or "),se(),ue(33,"a",18),xt(),ue(34,"svg",19),ze(35,"use",20),se(),be(36," Contact me on Mastodon "),se()()()()()()),2&r&&(Ve(16),Ze("ngForOf",i.combinedFormatsList))},dependencies:[Xu,Ku],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 dL=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=dr({type:e});static#n=this.\u0275inj=qn({imports:[Xw.forRoot(cL,{initialNavigation:"enabledBlocking"}),Xw]})}return e})(),fL=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=dr({type:e,bootstrap:[w3]});static#n=this.\u0275inj=qn({imports:[EO,dL,nC.forRoot("G-1W69G30JB8"),_3]})}return e})();bO().bootstrapModule(fL).catch(e=>{console.error(e)})},660:(rt,F,Y)=>{"use strict";const O=Y(313),A=Y(786),I=Y(612);rt.exports={XMLParser:A,XMLValidator:O,XMLBuilder:I}},206:(rt,F)=>{"use strict";const Y=":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",A="["+Y+"]["+Y+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",I=new RegExp("^"+A+"$");F.isExist=function(E){return typeof E<"u"},F.isEmptyObject=function(E){return 0===Object.keys(E).length},F.merge=function(E,D,y){if(D){const _=Object.keys(D),d=_.length;for(let m=0;m"u")},F.getAllMatches=function(E,D){const y=[];let _=D.exec(E);for(;_;){const d=[];d.startIndex=D.lastIndex-_[0].length;const m=_.length;for(let p=0;p{"use strict";const O=Y(206),A={allowBooleanAttributes:!1,unpairedTags:[]};function I(S){return" "===S||"\t"===S||"\n"===S||"\r"===S}function v(S,j){const $=j;for(;j5&&"xml"===ne)return w("InvalidXml","XML declaration allowed only at the start of the document.",L(S,j));if("?"==S[j]&&">"==S[j+1]){j++;break}continue}return j}function b(S,j){if(S.length>j+5&&"-"===S[j+1]&&"-"===S[j+2]){for(j+=3;j"===S[j+2]){j+=2;break}}else if(S.length>j+8&&"D"===S[j+1]&&"O"===S[j+2]&&"C"===S[j+3]&&"T"===S[j+4]&&"Y"===S[j+5]&&"P"===S[j+6]&&"E"===S[j+7]){let $=1;for(j+=8;j"===S[j]&&($--,0===$))break}else if(S.length>j+9&&"["===S[j+1]&&"C"===S[j+2]&&"D"===S[j+3]&&"A"===S[j+4]&&"T"===S[j+5]&&"A"===S[j+6]&&"["===S[j+7])for(j+=8;j"===S[j+2]){j+=2;break}return j}F.validate=function(S,j){j=Object.assign({},A,j);const $=[];let ne=!1,N=!1;"\ufeff"===S[0]&&(S=S.substr(1));for(let B=0;B"!==S[B]&&" "!==S[B]&&"\t"!==S[B]&&"\n"!==S[B]&&"\r"!==S[B];B++)V+=S[B];if(V=V.trim(),"/"===V[V.length-1]&&(V=V.substring(0,V.length-1),B--),!R(V)){let oe;return oe=0===V.trim().length?"Invalid space after '<'.":"Tag '"+V+"' is an invalid name.",w("InvalidTag",oe,L(S,B))}const f=y(S,B);if(!1===f)return w("InvalidAttr","Attributes for '"+V+"' have open quote.",L(S,B));let Z=f.value;if(B=f.index,"/"===Z[Z.length-1]){const oe=B-Z.length;Z=Z.substring(0,Z.length-1);const z=d(Z,j);if(!0!==z)return w(z.err.code,z.err.msg,L(S,oe+z.err.line));ne=!0}else if(M){if(!f.tagClosed)return w("InvalidTag","Closing tag '"+V+"' doesn't have proper closing.",L(S,B));if(Z.trim().length>0)return w("InvalidTag","Closing tag '"+V+"' can't have attributes or invalid starting.",L(S,K));{const oe=$.pop();if(V!==oe.tagName){let z=L(S,oe.tagStartPos);return w("InvalidTag","Expected closing tag '"+oe.tagName+"' (opened in line "+z.line+", col "+z.col+") instead of closing tag '"+V+"'.",L(S,K))}0==$.length&&(N=!0)}}else{const oe=d(Z,j);if(!0!==oe)return w(oe.err.code,oe.err.msg,L(S,B-Z.length+oe.err.line));if(!0===N)return w("InvalidXml","Multiple possible root nodes found.",L(S,B));-1!==j.unpairedTags.indexOf(V)||$.push({tagName:V,tagStartPos:K}),ne=!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='"',D="'";function y(S,j){let $="",ne="",N=!1;for(;j"===S[j]&&""===ne){N=!0;break}$+=S[j]}return""===ne&&{value:$,index:j,tagClosed:N}}const _=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function d(S,j){const $=O.getAllMatches(S,_),ne={};for(let N=0;N<$.length;N++){if(0===$[N][1].length)return w("InvalidAttr","Attribute '"+$[N][2]+"' has no space in starting.",U($[N]));if(void 0!==$[N][3]&&void 0===$[N][4])return w("InvalidAttr","Attribute '"+$[N][2]+"' is without value.",U($[N]));if(void 0===$[N][3]&&!j.allowBooleanAttributes)return w("InvalidAttr","boolean attribute '"+$[N][2]+"' is not allowed.",U($[N]));const B=$[N][2];if(!C(B))return w("InvalidAttr","Attribute '"+B+"' is an invalid name.",U($[N]));if(ne.hasOwnProperty(B))return w("InvalidAttr","Attribute '"+B+"' is repeated.",U($[N]));ne[B]=1}return!0}function p(S,j){if(";"===S[++j])return-1;if("#"===S[j])return function m(S,j){let $=/\d/;for("x"===S[j]&&(j++,$=/[\da-fA-F]/);j{"use strict";const O=Y(289),A={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(y,_){return _},attributeValueProcessor:function(y,_){return _},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 I(y){this.options=Object.assign({},A,y),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=D),this.processTextOrObjNode=v,this.options.format?(this.indentate=E,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function v(y,_,d){const m=this.j2x(y,d+1);return void 0!==y[this.options.textNodeName]&&1===Object.keys(y).length?this.buildTextValNode(y[this.options.textNodeName],_,m.attrStr,d):this.buildObjectNode(m.val,_,m.attrStr,d)}function E(y){return this.options.indentBy.repeat(y)}function D(y){return!(!y.startsWith(this.options.attributeNamePrefix)||y===this.options.textNodeName)&&y.substr(this.attrPrefixLen)}I.prototype.build=function(y){return this.options.preserveOrder?O(y,this.options):(Array.isArray(y)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(y={[this.options.arrayNodeName]:y}),this.j2x(y,0).val)},I.prototype.j2x=function(y,_){let d="",m="";for(let p in y)if(typeof y[p]>"u")this.isAttribute(p)&&(m+="");else if(null===y[p])this.isAttribute(p)?m+="":m+="?"===p[0]?this.indentate(_)+"<"+p+"?"+this.tagEndChar:this.indentate(_)+"<"+p+"/"+this.tagEndChar;else if(y[p]instanceof Date)m+=this.buildTextValNode(y[p],p,"",_);else if("object"!=typeof y[p]){const w=this.isAttribute(p);if(w)d+=this.buildAttrPairStr(w,""+y[p]);else if(p===this.options.textNodeName){let C=this.options.tagValueProcessor(p,""+y[p]);m+=this.replaceEntitiesValue(C)}else m+=this.buildTextValNode(y[p],p,"",_)}else if(Array.isArray(y[p])){const w=y[p].length;let C="";for(let R=0;R"u"||(null===L?m+="?"===p[0]?this.indentate(_)+"<"+p+"?"+this.tagEndChar:this.indentate(_)+"<"+p+"/"+this.tagEndChar:C+="object"==typeof L?this.options.oneListGroup?this.j2x(L,_+1).val:this.processTextOrObjNode(L,p,_):this.buildTextValNode(L,p,"",_))}this.options.oneListGroup&&(C=this.buildObjectNode(C,p,"",_)),m+=C}else if(this.options.attributesGroupName&&p===this.options.attributesGroupName){const w=Object.keys(y[p]),C=w.length;for(let R=0;R"+y+p}},I.prototype.closeTag=function(y){let _="";return-1!==this.options.unpairedTags.indexOf(y)?this.options.suppressUnpairedNode||(_="/"):_=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&_===this.options.commentPropName)return this.indentate(m)+`\x3c!--${y}--\x3e`+this.newLine;if("?"===_[0])return this.indentate(m)+"<"+_+d+"?"+this.tagEndChar;{let p=this.options.tagValueProcessor(_,y);return p=this.replaceEntitiesValue(p),""===p?this.indentate(m)+"<"+_+d+this.closeTag(_)+this.tagEndChar:this.indentate(m)+"<"+_+d+">"+p+"0&&this.options.processEntities)for(let _=0;_{function O(E,D,y,_){let d="",m=!1;for(let p=0;p`,m=!1;continue}if(C===D.commentPropName){d+=_+`\x3c!--${w[C][0][D.textNodeName]}--\x3e`,m=!0;continue}if("?"===C[0]){const $=I(w[":@"],D);let N=w[C][0][D.textNodeName];N=0!==N.length?" "+N:"",d+=("?xml"===C?"":_)+`<${C}${N}${$}?>`,m=!0;continue}let L=_;""!==L&&(L+=D.indentBy);const S=_+`<${C}${I(w[":@"],D)}`,j=O(w[C],D,R,L);-1!==D.unpairedTags.indexOf(C)?d+=D.suppressUnpairedNode?S+">":S+"/>":j&&0!==j.length||!D.suppressEmptyNode?j&&j.endsWith(">")?d+=S+`>${j}${_}`:(d+=S+">",j&&""!==_&&(j.includes("/>")||j.includes("`):d+=S+"/>",m=!0}return d}function A(E){const D=Object.keys(E);for(let y=0;y0&&D.processEntities)for(let y=0;y0&&(y="\n"),O(E,D,"",y)}},271:(rt,F,Y)=>{const O=Y(206);function I(d,m){let p="";for(;m"===d[m]){if(R?"-"===d[m-1]&&"-"===d[m-2]&&(R=!1,w--):w--,0===w)break}else"["===d[m]?C=!0:L+=d[m];else{if(C&&b(d,m))m+=7,[entityName,val,m]=I(d,m+1),-1===val.indexOf("&")&&(p[_(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(C&&E(d,m))m+=8;else if(C&&D(d,m))m+=8;else if(C&&y(d,m))m+=9;else{if(!v)throw new Error("Invalid DOCTYPE");R=!0}w++,L=""}if(0!==w)throw new Error("Unclosed DOCTYPE")}return{entities:p,i:m}}},635:(rt,F)=>{const Y={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(A,I){return I},attributeValueProcessor:function(A,I){return I},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(A,I,v){return A}};F.buildOptions=function(A){return Object.assign({},Y,A)},F.defaultOptions=Y},208:(rt,F,Y)=>{"use strict";const O=Y(206),A=Y(338),I=Y(271),v=Y(626);function D(N){const B=Object.keys(N);for(let K=0;K0)){Z||(N=this.replaceEntitiesValue(N));const oe=this.options.tagValueProcessor(B,N,K,V,f);return null==oe?N:typeof oe!=typeof N||oe!==N?oe:this.options.trimValues||N.trim()===N?ne(N,this.options.parseTagValue,this.options.numberParseOptions):N}}function _(N){if(this.options.removeNSPrefix){const B=N.split(":"),K="/"===N.charAt(0)?"/":"";if("xmlns"===B[0])return"";2===B.length&&(N=K+B[1])}return N}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,O.nameRegexp);const d=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function m(N,B,K){if(!this.options.ignoreAttributes&&"string"==typeof N){const M=O.getAllMatches(N,d),V=M.length,f={};for(let Z=0;Z",f,"Closing Tag is not closed.");let z=N.substring(f+2,oe).trim();if(this.options.removeNSPrefix){const ye=z.indexOf(":");-1!==ye&&(z=z.substr(ye+1))}this.options.transformTagName&&(z=this.options.transformTagName(z)),K&&(M=this.saveTextToParentTag(M,K,V));const ve=V.substring(V.lastIndexOf(".")+1);if(z&&-1!==this.options.unpairedTags.indexOf(z))throw new Error(`Unpaired tag can not be used as closing tag: `);let re=0;ve&&-1!==this.options.unpairedTags.indexOf(ve)?(re=V.lastIndexOf(".",V.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=V.lastIndexOf("."),V=V.substring(0,re),K=this.tagsNodeStack.pop(),M="",f=oe}else if("?"===N[f+1]){let oe=j(N,f,!1,"?>");if(!oe)throw new Error("Pi Tag is not closed.");if(M=this.saveTextToParentTag(M,K,V),!(this.options.ignoreDeclaration&&"?xml"===oe.tagName||this.options.ignorePiTags)){const z=new A(oe.tagName);z.add(this.options.textNodeName,""),oe.tagName!==oe.tagExp&&oe.attrExpPresent&&(z[":@"]=this.buildAttributesMap(oe.tagExp,V,oe.tagName)),this.addChild(K,z,V)}f=oe.closeIndex+1}else if("!--"===N.substr(f+1,3)){const oe=S(N,"--\x3e",f+4,"Comment is not closed.");if(this.options.commentPropName){const z=N.substring(f+4,oe-2);M=this.saveTextToParentTag(M,K,V),K.add(this.options.commentPropName,[{[this.options.textNodeName]:z}])}f=oe}else if("!D"===N.substr(f+1,2)){const oe=I(N,f);this.docTypeEntities=oe.entities,f=oe.i}else if("!["===N.substr(f+1,2)){const oe=S(N,"]]>",f,"CDATA is not closed.")-2,z=N.substring(f+9,oe);if(M=this.saveTextToParentTag(M,K,V),this.options.cdataPropName)K.add(this.options.cdataPropName,[{[this.options.textNodeName]:z}]);else{let ve=this.parseTextData(z,K.tagname,V,!0,!1,!0);null==ve&&(ve=""),K.add(this.options.textNodeName,ve)}f=oe+2}else{let oe=j(N,f,this.options.removeNSPrefix),z=oe.tagName,ve=oe.tagExp,re=oe.attrExpPresent,ye=oe.closeIndex;if(this.options.transformTagName&&(z=this.options.transformTagName(z)),K&&M&&"!xml"!==K.tagname&&(M=this.saveTextToParentTag(M,K,V,!1)),K&&-1!==this.options.unpairedTags.indexOf(K.tagname)&&(K=this.tagsNodeStack.pop(),V=V.substring(0,V.lastIndexOf("."))),z!==B.tagname&&(V+=V?"."+z:z),this.isItStopNode(this.options.stopNodes,V,z)){let W="";if(ve.length>0&&ve.lastIndexOf("/")===ve.length-1)f=oe.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(z))f=oe.closeIndex;else{const we=this.readStopNodeData(N,z,ye+1);if(!we)throw new Error(`Unexpected end of ${z}`);f=we.i,W=we.tagContent}const Ee=new A(z);z!==ve&&re&&(Ee[":@"]=this.buildAttributesMap(ve,V,z)),W&&(W=this.parseTextData(W,z,V,!0,re,!0,!0)),V=V.substr(0,V.lastIndexOf(".")),Ee.add(this.options.textNodeName,W),this.addChild(K,Ee,V)}else{if(ve.length>0&&ve.lastIndexOf("/")===ve.length-1){"/"===z[z.length-1]?(z=z.substr(0,z.length-1),V=V.substr(0,V.length-1),ve=z):ve=ve.substr(0,ve.length-1),this.options.transformTagName&&(z=this.options.transformTagName(z));const W=new A(z);z!==ve&&re&&(W[":@"]=this.buildAttributesMap(ve,V,z)),this.addChild(K,W,V),V=V.substr(0,V.lastIndexOf("."))}else{const W=new A(z);this.tagsNodeStack.push(K),z!==ve&&re&&(W[":@"]=this.buildAttributesMap(ve,V,z)),this.addChild(K,W,V),K=W}M="",f=ye}}else M+=N[f];return B.child};function w(N,B,K){const M=this.options.updateTag(B.tagname,K,B[":@"]);!1===M||("string"==typeof M&&(B.tagname=M),N.addChild(B))}const C=function(N){if(this.options.processEntities){for(let B in this.docTypeEntities){const K=this.docTypeEntities[B];N=N.replace(K.regx,K.val)}for(let B in this.lastEntities){const K=this.lastEntities[B];N=N.replace(K.regex,K.val)}if(this.options.htmlEntities)for(let B in this.htmlEntities){const K=this.htmlEntities[B];N=N.replace(K.regex,K.val)}N=N.replace(this.ampEntity.regex,this.ampEntity.val)}return N};function R(N,B,K,M){return N&&(void 0===M&&(M=0===Object.keys(B.child).length),void 0!==(N=this.parseTextData(N,B.tagname,K,!1,!!B[":@"]&&0!==Object.keys(B[":@"]).length,M))&&""!==N&&B.add(this.options.textNodeName,N),N=""),N}function L(N,B,K){const M="*."+K;for(const V in N){const f=N[V];if(M===f||B===f)return!0}return!1}function S(N,B,K,M){const V=N.indexOf(B,K);if(-1===V)throw new Error(M);return V+B.length-1}function j(N,B,K,M=">"){const V=function U(N,B,K=">"){let M,V="";for(let f=B;f",K,`${B} is not closed`);if(N.substring(K+2,f).trim()===B&&(V--,0===V))return{tagContent:N.substring(M,K),i:f};K=f}else if("?"===N[K+1])K=S(N,"?>",K+1,"StopNode is not closed.");else if("!--"===N.substr(K+1,3))K=S(N,"--\x3e",K+3,"StopNode is not closed.");else if("!["===N.substr(K+1,2))K=S(N,"]]>",K,"StopNode is not closed.")-2;else{const f=j(N,K,">");f&&((f&&f.tagName)===B&&"/"!==f.tagExp[f.tagExp.length-1]&&V++,K=f.closeIndex)}}function ne(N,B,K){if(B&&"string"==typeof N){const M=N.trim();return"true"===M||"false"!==M&&v(N,K)}return O.isExist(N)?N:""}rt.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=D,this.parseXml=p,this.parseTextData=y,this.resolveNameSpace=_,this.buildAttributesMap=m,this.isItStopNode=L,this.replaceEntitiesValue=C,this.readStopNodeData=$,this.saveTextToParentTag=R,this.addChild=w}}},786:(rt,F,Y)=>{const{buildOptions:O}=Y(635),A=Y(208),{prettify:I}=Y(651),v=Y(313);rt.exports=class b{constructor(D){this.externalEntities={},this.options=O(D)}parse(D,y){if("string"!=typeof D){if(!D.toString)throw new Error("XML data is accepted in String or Bytes[] form.");D=D.toString()}if(y){!0===y&&(y={});const m=v.validate(D,y);if(!0!==m)throw Error(`${m.err.msg}:${m.err.line}:${m.err.col}`)}const _=new A(this.options);_.addExternalEntities(this.externalEntities);const d=_.parseXml(D);return this.options.preserveOrder||void 0===d?d:I(d,this.options)}addEntity(D,y){if(-1!==y.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==D.indexOf("&")||-1!==D.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===y)throw new Error("An entity with value '&' is not permitted");this.externalEntities[D]=y}}},651:(rt,F)=>{"use strict";function O(b,E,D){let y;const _={};for(let d=0;d0&&(_[E.textNodeName]=y):void 0!==y&&(_[E.textNodeName]=y),_}function A(b){const E=Object.keys(b);for(let D=0;D{"use strict";rt.exports=class F{constructor(O){this.tagname=O,this.child=[],this[":@"]={}}add(O,A){"__proto__"===O&&(O="#__proto__"),this.child.push({[O]:A})}addChild(O){"__proto__"===O.tagname&&(O.tagname="#__proto__"),O[":@"]&&Object.keys(O[":@"]).length>0?this.child.push({[O.tagname]:O.child,":@":O[":@"]}):this.child.push({[O.tagname]:O.child})}}},217:function(rt,F){var Y,A;void 0!==(A="function"==typeof(Y=function(){"use strict";function v(d,m,p){var w=new XMLHttpRequest;w.open("GET",d),w.responseType="blob",w.onload=function(){_(w.response,m,p)},w.onerror=function(){console.error("could not download file")},w.send()}function b(d){var m=new XMLHttpRequest;m.open("HEAD",d,!1);try{m.send()}catch{}return 200<=m.status&&299>=m.status}function E(d){try{d.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),d.dispatchEvent(m)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,y=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),_=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(d,m,p){var w=D.URL||D.webkitURL,C=document.createElement("a");C.download=m=m||d.name||"download",C.rel="noopener","string"==typeof d?(C.href=d,C.origin===location.origin?E(C):b(C.href)?v(d,m,p):E(C,C.target="_blank")):(C.href=w.createObjectURL(d),setTimeout(function(){w.revokeObjectURL(C.href)},4e4),setTimeout(function(){E(C)},0))}:"msSaveOrOpenBlob"in navigator?function(d,m,p){if(m=m||d.name||"download","string"!=typeof d)navigator.msSaveOrOpenBlob(function I(d,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(d.type)?new Blob(["\ufeff",d],{type:d.type}):d}(d,p),m);else if(b(d))v(d,m,p);else{var w=document.createElement("a");w.href=d,w.target="_blank",setTimeout(function(){E(w)})}}:function(d,m,p,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof d)return v(d,m,p);var C="application/octet-stream"===d.type,R=/constructor/i.test(D.HTMLElement)||D.safari,L=/CriOS\/[\d]+/.test(navigator.userAgent);if((L||C&&R||y)&&typeof FileReader<"u"){var U=new FileReader;U.onloadend=function(){var $=U.result;$=L?$:$.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=$:location=$,w=null},U.readAsDataURL(d)}else{var S=D.URL||D.webkitURL,j=S.createObjectURL(d);w?w.location=j:location.href=j,w=null,setTimeout(function(){S.revokeObjectURL(j)},4e4)}});D.saveAs=_.saveAs=_,rt.exports=_})?Y.apply(F,[]):Y)&&(rt.exports=A)},965:rt=>{rt.exports=function F(Y,O,A){function I(E,D){if(!O[E]){if(!Y[E]){if(v)return v(E,!0);var _=new Error("Cannot find module '"+E+"'");throw _.code="MODULE_NOT_FOUND",_}var d=O[E]={exports:{}};Y[E][0].call(d.exports,function(m){return I(Y[E][1][m]||m)},d,d.exports,F,Y,O,A)}return O[E].exports}for(var v=void 0,b=0;b>4,m=1>6:64,p=2>2)+v.charAt(d)+v.charAt(m)+v.charAt(p));return w.join("")},O.decode=function(b){var E,D,y,_,d,m,p=0,w=0,C="data:";if(b.substr(0,5)===C)throw new Error("Invalid base64 input, it looks like a data url.");var R,L=3*(b=b.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(b.charAt(b.length-1)===v.charAt(64)&&L--,b.charAt(b.length-2)===v.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(R=I.uint8array?new Uint8Array(0|L):new Array(0|L);p>4,D=(15&_)<<4|(d=v.indexOf(b.charAt(p++)))>>2,y=(3&d)<<6|(m=v.indexOf(b.charAt(p++))),R[w++]=E,64!==d&&(R[w++]=D),64!==m&&(R[w++]=y);return R}},{"./support":30,"./utils":32}],2:[function(F,Y,O){"use strict";var A=F("./external"),I=F("./stream/DataWorker"),v=F("./stream/Crc32Probe"),b=F("./stream/DataLengthProbe");function E(D,y,_,d,m){this.compressedSize=D,this.uncompressedSize=y,this.crc32=_,this.compression=d,this.compressedContent=m}E.prototype={getContentWorker:function(){var D=new I(A.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")),y=this;return D.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),D},getCompressedWorker:function(){return new I(A.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},E.createWorkerFrom=function(D,y,_){return D.pipe(new v).pipe(new b("uncompressedSize")).pipe(y.compressWorker(_)).pipe(new b("compressedSize")).withStreamInfo("compression",y)},Y.exports=E},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(F,Y,O){"use strict";var A=F("./stream/GenericWorker");O.STORE={magic:"\0\0",compressWorker:function(){return new A("STORE compression")},uncompressWorker:function(){return new A("STORE decompression")}},O.DEFLATE=F("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(F,Y,O){"use strict";var A=F("./utils"),I=function(){for(var v,b=[],E=0;E<256;E++){v=E;for(var D=0;D<8;D++)v=1&v?3988292384^v>>>1:v>>>1;b[E]=v}return b}();Y.exports=function(v,b){return void 0!==v&&v.length?"string"!==A.getTypeOf(v)?function(E,D,y,_){var d=I,m=0+y;E^=-1;for(var p=0;p>>8^d[255&(E^D[p])];return-1^E}(0|b,v,v.length):function(E,D,y,_){var d=I,m=0+y;E^=-1;for(var p=0;p>>8^d[255&(E^D.charCodeAt(p))];return-1^E}(0|b,v,v.length):0}},{"./utils":32}],5:[function(F,Y,O){"use strict";O.base64=!1,O.binary=!1,O.dir=!1,O.createFolders=!0,O.date=null,O.compression=null,O.compressionOptions=null,O.comment=null,O.unixPermissions=null,O.dosPermissions=null},{}],6:[function(F,Y,O){"use strict";var A;A=typeof Promise<"u"?Promise:F("lie"),Y.exports={Promise:A}},{lie:37}],7:[function(F,Y,O){"use strict";var A=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",I=F("pako"),v=F("./utils"),b=F("./stream/GenericWorker"),E=A?"uint8array":"array";function D(y,_){b.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=_,this.meta={}}O.magic="\b\0",v.inherits(D,b),D.prototype.processChunk=function(y){this.meta=y.meta,null===this._pako&&this._createPako(),this._pako.push(v.transformTo(E,y.data),!1)},D.prototype.flush=function(){b.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},D.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this._pako=null},D.prototype._createPako=function(){this._pako=new I[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(_){y.push({data:_,meta:y.meta})}},O.compressWorker=function(y){return new D("Deflate",y)},O.uncompressWorker=function(){return new D("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(F,Y,O){"use strict";function A(d,m){var p,w="";for(p=0;p>>=8;return w}function I(d,m,p,w,C,R){var L,U,S=d.file,j=d.compression,$=R!==E.utf8encode,ne=v.transformTo("string",R(S.name)),N=v.transformTo("string",E.utf8encode(S.name)),B=S.comment,K=v.transformTo("string",R(B)),M=v.transformTo("string",E.utf8encode(B)),V=N.length!==S.name.length,f=M.length!==B.length,Z="",oe="",z="",ve=S.dir,re=S.date,ye={crc32:0,compressedSize:0,uncompressedSize:0};m&&!p||(ye.crc32=d.crc32,ye.compressedSize=d.compressedSize,ye.uncompressedSize=d.uncompressedSize);var X=0;m&&(X|=8),$||!V&&!f||(X|=2048);var fe,St,W=0,Ee=0;ve&&(W|=16),"UNIX"===C?(Ee=798,W|=(St=fe=S.unixPermissions,fe||(St=ve?16893:33204),(65535&St)<<16)):(Ee=20,W|=function(fe){return 63&(fe||0)}(S.dosPermissions)),L=re.getUTCHours(),L<<=6,L|=re.getUTCMinutes(),L<<=5,L|=re.getUTCSeconds()/2,U=re.getUTCFullYear()-1980,U<<=4,U|=re.getUTCMonth()+1,U<<=5,U|=re.getUTCDate(),V&&(oe=A(1,1)+A(D(ne),4)+N,Z+="up"+A(oe.length,2)+oe),f&&(z=A(1,1)+A(D(K),4)+M,Z+="uc"+A(z.length,2)+z);var we="";return we+="\n\0",we+=A(X,2),we+=j.magic,we+=A(L,2),we+=A(U,2),we+=A(ye.crc32,4),we+=A(ye.compressedSize,4),we+=A(ye.uncompressedSize,4),we+=A(ne.length,2),we+=A(Z.length,2),{fileRecord:y.LOCAL_FILE_HEADER+we+ne+Z,dirRecord:y.CENTRAL_FILE_HEADER+A(Ee,2)+we+A(K.length,2)+"\0\0\0\0"+A(W,4)+A(w,4)+ne+Z+K}}var v=F("../utils"),b=F("../stream/GenericWorker"),E=F("../utf8"),D=F("../crc32"),y=F("../signature");function _(d,m,p,w){b.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=p,this.encodeFileName=w,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(_,b),_.prototype.push=function(d){var m=d.meta.percent||0,p=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,b.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:p?(m+100*(p-w-1))/p:100}}))},_.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var m=this.streamFiles&&!d.file.dir;if(m){var p=I(d,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(d){this.accumulate=!1;var w,m=this.streamFiles&&!d.file.dir,p=I(d,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),m)this.push({data:(w=d,y.DATA_DESCRIPTOR+A(w.crc32,4)+A(w.compressedSize,4)+A(w.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var d=this.bytesWritten,m=0;m=this.index;b--)E=(E<<8)+this.byteAt(b);return this.index+=v,E},readString:function(v){return A.transformTo("string",this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v>>25&127),(v>>21&15)-1,v>>16&31,v>>11&31,v>>5&63,(31&v)<<1))}},Y.exports=I},{"../utils":32}],19:[function(F,Y,O){"use strict";var A=F("./Uint8ArrayReader");function I(v){A.call(this,v)}F("../utils").inherits(I,A),I.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},Y.exports=I},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(F,Y,O){"use strict";var A=F("./DataReader");function I(v){A.call(this,v)}F("../utils").inherits(I,A),I.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},I.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},I.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},I.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},Y.exports=I},{"../utils":32,"./DataReader":18}],21:[function(F,Y,O){"use strict";var A=F("./ArrayReader");function I(v){A.call(this,v)}F("../utils").inherits(I,A),I.prototype.readData=function(v){if(this.checkOffset(v),0===v)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},Y.exports=I},{"../utils":32,"./ArrayReader":17}],22:[function(F,Y,O){"use strict";var A=F("../utils"),I=F("../support"),v=F("./ArrayReader"),b=F("./StringReader"),E=F("./NodeBufferReader"),D=F("./Uint8ArrayReader");Y.exports=function(y){var _=A.getTypeOf(y);return A.checkSupport(_),"string"!==_||I.uint8array?"nodebuffer"===_?new E(y):I.uint8array?new D(A.transformTo("uint8array",y)):new v(A.transformTo("array",y)):new b(y)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(F,Y,O){"use strict";O.LOCAL_FILE_HEADER="PK\x03\x04",O.CENTRAL_FILE_HEADER="PK\x01\x02",O.CENTRAL_DIRECTORY_END="PK\x05\x06",O.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",O.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",O.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(F,Y,O){"use strict";var A=F("./GenericWorker"),I=F("../utils");function v(b){A.call(this,"ConvertWorker to "+b),this.destType=b}I.inherits(v,A),v.prototype.processChunk=function(b){this.push({data:I.transformTo(this.destType,b.data),meta:b.meta})},Y.exports=v},{"../utils":32,"./GenericWorker":28}],25:[function(F,Y,O){"use strict";var A=F("./GenericWorker"),I=F("../crc32");function v(){A.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}F("../utils").inherits(v,A),v.prototype.processChunk=function(b){this.streamInfo.crc32=I(b.data,this.streamInfo.crc32||0),this.push(b)},Y.exports=v},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(F,Y,O){"use strict";var A=F("../utils"),I=F("./GenericWorker");function v(b){I.call(this,"DataLengthProbe for "+b),this.propName=b,this.withStreamInfo(b,0)}A.inherits(v,I),v.prototype.processChunk=function(b){b&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+b.data.length),I.prototype.processChunk.call(this,b)},Y.exports=v},{"../utils":32,"./GenericWorker":28}],27:[function(F,Y,O){"use strict";var A=F("../utils"),I=F("./GenericWorker");function v(b){I.call(this,"DataWorker");var E=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,b.then(function(D){E.dataIsReady=!0,E.data=D,E.max=D&&D.length||0,E.type=A.getTypeOf(D),E.isPaused||E._tickAndRepeat()},function(D){E.error(D)})}A.inherits(v,I),v.prototype.cleanUp=function(){I.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,A.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(A.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var b=null,E=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,E);break;case"uint8array":b=this.data.subarray(this.index,E);break;case"array":case"nodebuffer":b=this.data.slice(this.index,E)}return this.index=E,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},Y.exports=v},{"../utils":32,"./GenericWorker":28}],28:[function(F,Y,O){"use strict";function A(I){this.name=I||"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}A.prototype={push:function(I){this.emit("data",I)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(I){this.emit("error",I)}return!0},error:function(I){return!this.isFinished&&(this.isPaused?this.generatedError=I:(this.isFinished=!0,this.emit("error",I),this.previous&&this.previous.error(I),this.cleanUp()),!0)},on:function(I,v){return this._listeners[I].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(I,v){if(this._listeners[I])for(var b=0;b "+I:I}},Y.exports=A},{}],29:[function(F,Y,O){"use strict";var A=F("../utils"),I=F("./ConvertWorker"),v=F("./GenericWorker"),b=F("../base64"),E=F("../support"),D=F("../external"),y=null;if(E.nodestream)try{y=F("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(m,p,w){var C=p;switch(p){case"blob":case"arraybuffer":C="uint8array";break;case"base64":C="string"}try{this._internalType=C,this._outputType=p,this._mimeType=w,A.checkSupport(C),this._worker=m.pipe(new I(C)),m.lock()}catch(R){this._worker=new v("error"),this._worker.error(R)}}d.prototype={accumulate:function(m){return function _(m,p){return new D.Promise(function(w,C){var R=[],L=m._internalType,U=m._outputType,S=m._mimeType;m.on("data",function(j,$){R.push(j),p&&p($)}).on("error",function(j){R=[],C(j)}).on("end",function(){try{var j=function($,ne,N){switch($){case"blob":return A.newBlob(A.transformTo("arraybuffer",ne),N);case"base64":return b.encode(ne);default:return A.transformTo($,ne)}}(U,function($,ne){var N,B=0,K=null,M=0;for(N=0;N"u")O.blob=!1;else{var A=new ArrayBuffer(0);try{O.blob=0===new Blob([A],{type:"application/zip"}).size}catch{try{var I=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);I.append(A),O.blob=0===I.getBlob("application/zip").size}catch{O.blob=!1}}}try{O.nodestream=!!F("readable-stream").Readable}catch{O.nodestream=!1}},{"readable-stream":16}],31:[function(F,Y,O){"use strict";for(var A=F("./utils"),I=F("./support"),v=F("./nodejsUtils"),b=F("./stream/GenericWorker"),E=new Array(256),D=0;D<256;D++)E[D]=252<=D?6:248<=D?5:240<=D?4:224<=D?3:192<=D?2:1;function y(){b.call(this,"utf-8 decode"),this.leftOver=null}function _(){b.call(this,"utf-8 encode")}E[254]=E[254]=1,O.utf8encode=function(d){return I.nodebuffer?v.newBufferFrom(d,"utf-8"):function(m){var p,w,C,R,L,U=m.length,S=0;for(R=0;R>>6:(w<65536?p[L++]=224|w>>>12:(p[L++]=240|w>>>18,p[L++]=128|w>>>12&63),p[L++]=128|w>>>6&63),p[L++]=128|63&w);return p}(d)},O.utf8decode=function(d){return I.nodebuffer?A.transformTo("nodebuffer",d).toString("utf-8"):function(m){var p,w,C,R,L=m.length,U=new Array(2*L);for(p=w=0;p>10&1023,U[w++]=56320|1023&C)}return U.length!==w&&(U.subarray?U=U.subarray(0,w):U.length=w),A.applyFromCharCode(U)}(d=A.transformTo(I.uint8array?"uint8array":"array",d))},A.inherits(y,b),y.prototype.processChunk=function(d){var m=A.transformTo(I.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(I.uint8array){var p=m;(m=new Uint8Array(p.length+this.leftOver.length)).set(this.leftOver,0),m.set(p,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var w=function(R,L){var U;for((L=L||R.length)>R.length&&(L=R.length),U=L-1;0<=U&&128==(192&R[U]);)U--;return U<0||0===U?L:U+E[R[U]]>L?U:L}(m),C=m;w!==m.length&&(I.uint8array?(C=m.subarray(0,w),this.leftOver=m.subarray(w,m.length)):(C=m.slice(0,w),this.leftOver=m.slice(w,m.length))),this.push({data:O.utf8decode(C),meta:d.meta})},y.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:O.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},O.Utf8DecodeWorker=y,A.inherits(_,b),_.prototype.processChunk=function(d){this.push({data:O.utf8encode(d.data),meta:d.meta})},O.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(F,Y,O){"use strict";var A=F("./support"),I=F("./base64"),v=F("./nodejsUtils"),b=F("./external");function E(p){return p}function D(p,w){for(var C=0;C>8;this.dir=!!(16&this.externalFileAttributes),0==d&&(this.dosPermissions=63&this.externalFileAttributes),3==d&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=A(this.extraFields[1].value);this.uncompressedSize===I.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===I.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===I.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===I.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var m,p,w,C=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4>>6:(d<65536?_[w++]=224|d>>>12:(_[w++]=240|d>>>18,_[w++]=128|d>>>12&63),_[w++]=128|d>>>6&63),_[w++]=128|63&d);return _},O.buf2binstring=function(y){return D(y,y.length)},O.binstring2buf=function(y){for(var _=new A.Buf8(y.length),d=0,m=_.length;d>10&1023,R[m++]=56320|1023&p)}return D(R,m)},O.utf8border=function(y,_){var d;for((_=_||y.length)>y.length&&(_=y.length),d=_-1;0<=d&&128==(192&y[d]);)d--;return d<0||0===d?_:d+b[y[d]]>_?d:_}},{"./common":41}],43:[function(F,Y,O){"use strict";Y.exports=function(A,I,v,b){for(var E=65535&A|0,D=A>>>16&65535|0,y=0;0!==v;){for(v-=y=2e3>>1:I>>>1;v[b]=I}return v}();Y.exports=function(I,v,b,E){var D=A,y=E+b;I^=-1;for(var _=E;_>>8^D[255&(I^v[_])];return-1^I}},{}],46:[function(F,Y,O){"use strict";var A,I=F("../utils/common"),v=F("./trees"),b=F("./adler32"),E=F("./crc32"),D=F("./messages"),y=0,d=0,m=-2,C=2,R=8,U=286,S=30,j=19,$=2*U+1,ne=15,N=3,B=258,K=B+N+1,M=42,V=113;function ve(h,te){return h.msg=D[te],te}function re(h){return(h<<1)-(4h.avail_out&&(J=h.avail_out),0!==J&&(I.arraySet(h.output,te.pending_buf,te.pending_out,J,h.next_out),h.next_out+=J,te.pending_out+=J,h.total_out+=J,h.avail_out-=J,te.pending-=J,0===te.pending&&(te.pending_out=0))}function W(h,te){v._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,te),h.block_start=h.strstart,X(h.strm)}function Ee(h,te){h.pending_buf[h.pending++]=te}function we(h,te){h.pending_buf[h.pending++]=te>>>8&255,h.pending_buf[h.pending++]=255&te}function fe(h,te){var J,k,T=h.max_chain_length,H=h.strstart,ae=h.prev_length,ce=h.nice_match,q=h.strstart>h.w_size-K?h.strstart-(h.w_size-K):0,he=h.window,Ce=h.w_mask,pe=h.prev,xe=h.strstart+B,tt=he[H+ae-1],Ge=he[H+ae];h.prev_length>=h.good_match&&(T>>=2),ce>h.lookahead&&(ce=h.lookahead);do{if(he[(J=te)+ae]===Ge&&he[J+ae-1]===tt&&he[J]===he[H]&&he[++J]===he[H+1]){H+=2,J++;do{}while(he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&he[++H]===he[++J]&&Hq&&0!=--T);return ae<=h.lookahead?ae:h.lookahead}function ht(h){var te,J,k,T,H,ae,ce,q,he,Ce,pe=h.w_size;do{if(T=h.window_size-h.lookahead-h.strstart,h.strstart>=pe+(pe-K)){for(I.arraySet(h.window,h.window,pe,pe,0),h.match_start-=pe,h.strstart-=pe,h.block_start-=pe,te=J=h.hash_size;k=h.head[--te],h.head[te]=pe<=k?k-pe:0,--J;);for(te=J=pe;k=h.prev[--te],h.prev[te]=pe<=k?k-pe:0,--J;);T+=pe}if(0===h.strm.avail_in)break;if(ce=h.window,q=h.strstart+h.lookahead,Ce=void 0,(he=T)<(Ce=(ae=h.strm).avail_in)&&(Ce=he),J=0===Ce?0:(ae.avail_in-=Ce,I.arraySet(ce,ae.input,ae.next_in,Ce,q),1===ae.state.wrap?ae.adler=b(ae.adler,ce,Ce,q):2===ae.state.wrap&&(ae.adler=E(ae.adler,ce,Ce,q)),ae.next_in+=Ce,ae.total_in+=Ce,Ce),h.lookahead+=J,h.lookahead+h.insert>=N)for(h.ins_h=h.window[H=h.strstart-h.insert],h.ins_h=(h.ins_h<=N&&(h.ins_h=(h.ins_h<=N)if(k=v._tr_tally(h,h.strstart-h.match_start,h.match_length-N),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=N){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<=N&&(h.ins_h=(h.ins_h<=N&&h.match_length<=h.prev_length){for(T=h.strstart+h.lookahead-N,k=v._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-N),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=T&&(h.ins_h=(h.ins_h<h.pending_buf_size-5&&(J=h.pending_buf_size-5);;){if(h.lookahead<=1){if(ht(h),0===h.lookahead&&te===y)return 1;if(0===h.lookahead)break}h.strstart+=h.lookahead,h.lookahead=0;var k=h.block_start+J;if((0===h.strstart||h.strstart>=k)&&(h.lookahead=h.strstart-k,h.strstart=k,W(h,!1),0===h.strm.avail_out)||h.strstart-h.block_start>=h.w_size-K&&(W(h,!1),0===h.strm.avail_out))return 1}return h.insert=0,4===te?(W(h,!0),0===h.strm.avail_out?3:4):(h.strstart>h.block_start&&W(h,!1),1)}),new Me(4,4,8,4,St),new Me(4,5,16,8,St),new Me(4,6,32,32,St),new Me(4,4,16,16,Ie),new Me(8,16,32,32,Ie),new Me(8,16,128,128,Ie),new Me(8,32,128,256,Ie),new Me(32,128,258,1024,Ie),new Me(32,258,258,4096,Ie)],O.deflateInit=function(h,te){return fn(h,te,R,15,8,0)},O.deflateInit2=fn,O.deflateReset=en,O.deflateResetKeep=Re,O.deflateSetHeader=function(h,te){return h&&h.state?2!==h.state.wrap?m:(h.state.gzhead=te,d):m},O.deflate=function(h,te){var J,k,T,H;if(!h||!h.state||5>8&255),Ee(k,k.gzhead.time>>16&255),Ee(k,k.gzhead.time>>24&255),Ee(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Ee(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(Ee(k,255&k.gzhead.extra.length),Ee(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(h.adler=E(h.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(Ee(k,0),Ee(k,0),Ee(k,0),Ee(k,0),Ee(k,0),Ee(k,9===k.level?2:2<=k.strategy||k.level<2?4:0),Ee(k,3),k.status=V);else{var ae=R+(k.w_bits-8<<4)<<8;ae|=(2<=k.strategy||k.level<2?0:k.level<6?1:6===k.level?2:3)<<6,0!==k.strstart&&(ae|=32),ae+=31-ae%31,k.status=V,we(k,ae),0!==k.strstart&&(we(k,h.adler>>>16),we(k,65535&h.adler)),h.adler=1}if(69===k.status)if(k.gzhead.extra){for(T=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>T&&(h.adler=E(h.adler,k.pending_buf,k.pending-T,T)),X(h),T=k.pending,k.pending!==k.pending_buf_size));)Ee(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>T&&(h.adler=E(h.adler,k.pending_buf,k.pending-T,T)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(73===k.status)if(k.gzhead.name){T=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>T&&(h.adler=E(h.adler,k.pending_buf,k.pending-T,T)),X(h),T=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexT&&(h.adler=E(h.adler,k.pending_buf,k.pending-T,T)),0===H&&(k.gzindex=0,k.status=91)}else k.status=91;if(91===k.status)if(k.gzhead.comment){T=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>T&&(h.adler=E(h.adler,k.pending_buf,k.pending-T,T)),X(h),T=k.pending,k.pending===k.pending_buf_size)){H=1;break}H=k.gzindexT&&(h.adler=E(h.adler,k.pending_buf,k.pending-T,T)),0===H&&(k.status=103)}else k.status=103;if(103===k.status&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&X(h),k.pending+2<=k.pending_buf_size&&(Ee(k,255&h.adler),Ee(k,h.adler>>8&255),h.adler=0,k.status=V)):k.status=V),0!==k.pending){if(X(h),0===h.avail_out)return k.last_flush=-1,d}else if(0===h.avail_in&&re(te)<=re(J)&&4!==te)return ve(h,-5);if(666===k.status&&0!==h.avail_in)return ve(h,-5);if(0!==h.avail_in||0!==k.lookahead||te!==y&&666!==k.status){var ce=2===k.strategy?function(q,he){for(var Ce;;){if(0===q.lookahead&&(ht(q),0===q.lookahead)){if(he===y)return 1;break}if(q.match_length=0,Ce=v._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++,Ce&&(W(q,!1),0===q.strm.avail_out))return 1}return q.insert=0,4===he?(W(q,!0),0===q.strm.avail_out?3:4):q.last_lit&&(W(q,!1),0===q.strm.avail_out)?1:2}(k,te):3===k.strategy?function(q,he){for(var Ce,pe,xe,tt,Ge=q.window;;){if(q.lookahead<=B){if(ht(q),q.lookahead<=B&&he===y)return 1;if(0===q.lookahead)break}if(q.match_length=0,q.lookahead>=N&&0q.lookahead&&(q.match_length=q.lookahead)}if(q.match_length>=N?(Ce=v._tr_tally(q,1,q.match_length-N),q.lookahead-=q.match_length,q.strstart+=q.match_length,q.match_length=0):(Ce=v._tr_tally(q,0,q.window[q.strstart]),q.lookahead--,q.strstart++),Ce&&(W(q,!1),0===q.strm.avail_out))return 1}return q.insert=0,4===he?(W(q,!0),0===q.strm.avail_out?3:4):q.last_lit&&(W(q,!1),0===q.strm.avail_out)?1:2}(k,te):A[k.level].func(k,te);if(3!==ce&&4!==ce||(k.status=666),1===ce||3===ce)return 0===h.avail_out&&(k.last_flush=-1),d;if(2===ce&&(1===te?v._tr_align(k):5!==te&&(v._tr_stored_block(k,0,0,!1),3===te&&(ye(k.head),0===k.lookahead&&(k.strstart=0,k.block_start=0,k.insert=0))),X(h),0===h.avail_out))return k.last_flush=-1,d}return 4!==te?d:k.wrap<=0?1:(2===k.wrap?(Ee(k,255&h.adler),Ee(k,h.adler>>8&255),Ee(k,h.adler>>16&255),Ee(k,h.adler>>24&255),Ee(k,255&h.total_in),Ee(k,h.total_in>>8&255),Ee(k,h.total_in>>16&255),Ee(k,h.total_in>>24&255)):(we(k,h.adler>>>16),we(k,65535&h.adler)),X(h),0=J.w_size&&(0===H&&(ye(J.head),J.strstart=0,J.block_start=0,J.insert=0),he=new I.Buf8(J.w_size),I.arraySet(he,te,Ce-J.w_size,J.w_size,0),te=he,Ce=J.w_size),ae=h.avail_in,ce=h.next_in,q=h.input,h.avail_in=Ce,h.next_in=0,h.input=te,ht(J);J.lookahead>=N;){for(k=J.strstart,T=J.lookahead-(N-1);J.ins_h=(J.ins_h<>>=N=ne>>>24,L-=N,0==(N=ne>>>16&255))Z[D++]=65535≠else{if(!(16&N)){if(!(64&N)){ne=U[(65535&ne)+(R&(1<>>=N,L-=N),L<15&&(R+=f[b++]<>>=N=ne>>>24,L-=N,!(16&(N=ne>>>16&255))){if(!(64&N)){ne=S[(65535&ne)+(R&(1<>>=N,L-=N,(N=D-y)>3,R&=(1<<(L-=B<<3))-1,A.next_in=b,A.next_out=D,A.avail_in=b>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<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 A.Buf16(320),this.work=new A.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(M){var V;return M&&M.state?(M.total_in=M.total_out=(V=M.state).total=0,M.msg="",V.wrap&&(M.adler=1&V.wrap),V.mode=m,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new A.Buf32(p),V.distcode=V.distdyn=new A.Buf32(w),V.sane=1,V.back=-1,_):d}function U(M){var V;return M&&M.state?((V=M.state).wsize=0,V.whave=0,V.wnext=0,L(M)):d}function S(M,V){var f,Z;return M&&M.state?(Z=M.state,V<0?(f=0,V=-V):(f=1+(V>>4),V<48&&(V&=15)),V&&(V<8||15=z.wsize?(A.arraySet(z.window,V,f-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(Z<(oe=z.wsize-z.wnext)&&(oe=Z),A.arraySet(z.window,V,f-Z,oe,z.wnext),(Z-=oe)?(A.arraySet(z.window,V,f-Z,Z,0),z.wnext=Z,z.whave=z.wsize):(z.wnext+=oe,z.wnext===z.wsize&&(z.wnext=0),z.whave>>8&255,f.check=v(f.check,H,2,0),W=X=0,f.mode=2;break}if(f.flags=0,f.head&&(f.head.done=!1),!(1&f.wrap)||(((255&X)<<8)+(X>>8))%31){M.msg="incorrect header check",f.mode=30;break}if(8!=(15&X)){M.msg="unknown compression method",f.mode=30;break}if(W-=4,h=8+(15&(X>>>=4)),0===f.wbits)f.wbits=h;else if(h>f.wbits){M.msg="invalid window size",f.mode=30;break}f.dmax=1<>8&1),512&f.flags&&(H[0]=255&X,H[1]=X>>>8&255,f.check=v(f.check,H,2,0)),W=X=0,f.mode=3;case 3:for(;W<32;){if(0===re)break e;re--,X+=Z[z++]<>>8&255,H[2]=X>>>16&255,H[3]=X>>>24&255,f.check=v(f.check,H,4,0)),W=X=0,f.mode=4;case 4:for(;W<16;){if(0===re)break e;re--,X+=Z[z++]<>8),512&f.flags&&(H[0]=255&X,H[1]=X>>>8&255,f.check=v(f.check,H,2,0)),W=X=0,f.mode=5;case 5:if(1024&f.flags){for(;W<16;){if(0===re)break e;re--,X+=Z[z++]<>>8&255,f.check=v(f.check,H,2,0)),W=X=0}else f.head&&(f.head.extra=null);f.mode=6;case 6:if(1024&f.flags&&(re<(fe=f.length)&&(fe=re),fe&&(f.head&&(h=f.head.extra_len-f.length,f.head.extra||(f.head.extra=new Array(f.head.extra_len)),A.arraySet(f.head.extra,Z,z,fe,h)),512&f.flags&&(f.check=v(f.check,Z,fe,z)),re-=fe,z+=fe,f.length-=fe),f.length))break e;f.length=0,f.mode=7;case 7:if(2048&f.flags){if(0===re)break e;for(fe=0;h=Z[z+fe++],f.head&&h&&f.length<65536&&(f.head.name+=String.fromCharCode(h)),h&&fe>9&1,f.head.done=!0),M.adler=f.check=0,f.mode=12;break;case 10:for(;W<32;){if(0===re)break e;re--,X+=Z[z++]<>>=7&W,W-=7&W,f.mode=27;break}for(;W<3;){if(0===re)break e;re--,X+=Z[z++]<>>=1)){case 0:f.mode=14;break;case 1:if(B(f),f.mode=20,6!==V)break;X>>>=2,W-=2;break e;case 2:f.mode=17;break;case 3:M.msg="invalid block type",f.mode=30}X>>>=2,W-=2;break;case 14:for(X>>>=7&W,W-=7&W;W<32;){if(0===re)break e;re--,X+=Z[z++]<>>16^65535)){M.msg="invalid stored block lengths",f.mode=30;break}if(f.length=65535&X,W=X=0,f.mode=15,6===V)break e;case 15:f.mode=16;case 16:if(fe=f.length){if(re>>=5)),W-=5,f.ncode=4+(15&(X>>>=5)),X>>>=4,W-=4,286>>=3,W-=3}for(;f.have<19;)f.lens[ae[f.have++]]=0;if(f.lencode=f.lendyn,f.lenbits=7,te=E(0,f.lens,0,19,f.lencode,0,f.work,J={bits:f.lenbits}),f.lenbits=J.bits,te){M.msg="invalid code lengths set",f.mode=30;break}f.have=0,f.mode=19;case 19:for(;f.have>>16&255,bt=65535&T,!((Ie=T>>>24)<=W);){if(0===re)break e;re--,X+=Z[z++]<>>=Ie,W-=Ie,f.lens[f.have++]=bt;else{if(16===bt){for(k=Ie+2;W>>=Ie,W-=Ie,0===f.have){M.msg="invalid bit length repeat",f.mode=30;break}h=f.lens[f.have-1],fe=3+(3&X),X>>>=2,W-=2}else if(17===bt){for(k=Ie+3;W>>=Ie)),X>>>=3,W-=3}else{for(k=Ie+7;W>>=Ie)),X>>>=7,W-=7}if(f.have+fe>f.nlen+f.ndist){M.msg="invalid bit length repeat",f.mode=30;break}for(;fe--;)f.lens[f.have++]=h}}if(30===f.mode)break;if(0===f.lens[256]){M.msg="invalid code -- missing end-of-block",f.mode=30;break}if(f.lenbits=9,te=E(1,f.lens,0,f.nlen,f.lencode,0,f.work,J={bits:f.lenbits}),f.lenbits=J.bits,te){M.msg="invalid literal/lengths set",f.mode=30;break}if(f.distbits=6,f.distcode=f.distdyn,te=E(2,f.lens,f.nlen,f.ndist,f.distcode,0,f.work,J={bits:f.distbits}),f.distbits=J.bits,te){M.msg="invalid distances set",f.mode=30;break}if(f.mode=20,6===V)break e;case 20:f.mode=21;case 21:if(6<=re&&258<=ye){M.next_out=ve,M.avail_out=ye,M.next_in=z,M.avail_in=re,f.hold=X,f.bits=W,b(M,we),ve=M.next_out,oe=M.output,ye=M.avail_out,z=M.next_in,Z=M.input,re=M.avail_in,X=f.hold,W=f.bits,12===f.mode&&(f.back=-1);break}for(f.back=0;Me=(T=f.lencode[X&(1<>>16&255,bt=65535&T,!((Ie=T>>>24)<=W);){if(0===re)break e;re--,X+=Z[z++]<>Re)])>>>16&255,bt=65535&T,!(Re+(Ie=T>>>24)<=W);){if(0===re)break e;re--,X+=Z[z++]<>>=Re,W-=Re,f.back+=Re}if(X>>>=Ie,W-=Ie,f.back+=Ie,f.length=bt,0===Me){f.mode=26;break}if(32&Me){f.back=-1,f.mode=12;break}if(64&Me){M.msg="invalid literal/length code",f.mode=30;break}f.extra=15&Me,f.mode=22;case 22:if(f.extra){for(k=f.extra;W>>=f.extra,W-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=23;case 23:for(;Me=(T=f.distcode[X&(1<>>16&255,bt=65535&T,!((Ie=T>>>24)<=W);){if(0===re)break e;re--,X+=Z[z++]<>Re)])>>>16&255,bt=65535&T,!(Re+(Ie=T>>>24)<=W);){if(0===re)break e;re--,X+=Z[z++]<>>=Re,W-=Re,f.back+=Re}if(X>>>=Ie,W-=Ie,f.back+=Ie,64&Me){M.msg="invalid distance code",f.mode=30;break}f.offset=bt,f.extra=15&Me,f.mode=24;case 24:if(f.extra){for(k=f.extra;W>>=f.extra,W-=f.extra,f.back+=f.extra}if(f.offset>f.dmax){M.msg="invalid distance too far back",f.mode=30;break}f.mode=25;case 25:if(0===ye)break e;if(f.offset>(fe=we-ye)){if((fe=f.offset-fe)>f.whave&&f.sane){M.msg="invalid distance too far back",f.mode=30;break}ht=fe>f.wnext?f.wsize-(fe-=f.wnext):f.wnext-fe,fe>f.length&&(fe=f.length),St=f.window}else St=oe,ht=ve-f.offset,fe=f.length;for(ye$?(N=ht[St+w[V]],W[Ee+w[V]]):(N=96,0),R=1<>ve)+(L-=R)]=ne<<24|N<<16|B|0,0!==L;);for(R=1<>=1;if(0!==R?(X&=R-1,X+=R):X=0,V++,0==--we[M]){if(M===Z)break;M=y[_+w[V]]}if(oe>>7)]}function Ee(T,H){T.pending_buf[T.pending++]=255&H,T.pending_buf[T.pending++]=H>>>8&255}function we(T,H,ae){T.bi_valid>C-ae?(T.bi_buf|=H<>C-T.bi_valid,T.bi_valid+=ae-C):(T.bi_buf|=H<>>=1,ae<<=1,0<--H;);return ae>>>1}function St(T,H,ae){var ce,q,he=new Array(w+1),Ce=0;for(ce=1;ce<=w;ce++)he[ce]=Ce=Ce+ae[ce-1]<<1;for(q=0;q<=H;q++){var pe=T[2*q+1];0!==pe&&(T[2*q]=ht(he[pe]++,pe))}}function Ie(T){var H;for(H=0;H<_;H++)T.dyn_ltree[2*H]=0;for(H=0;H>1;1<=ae;ae--)Re(T,he,ae);for(q=xe;ae=T.heap[1],T.heap[1]=T.heap[T.heap_len--],Re(T,he,1),ce=T.heap[1],T.heap[--T.heap_max]=ae,T.heap[--T.heap_max]=ce,he[2*q]=he[2*ae]+he[2*ce],T.depth[q]=(T.depth[ae]>=T.depth[ce]?T.depth[ae]:T.depth[ce])+1,he[2*ae+1]=he[2*ce+1]=q,T.heap[1]=q++,Re(T,he,1),2<=T.heap_len;);T.heap[--T.heap_max]=T.heap[1],function(Ge,tn){var Gr,wn,nn,pt,pi,gi,On=tn.dyn_tree,ta=tn.max_code,xl=tn.stat_desc.static_tree,Al=tn.stat_desc.has_stree,Tl=tn.stat_desc.extra_bits,na=tn.stat_desc.extra_base,Wr=tn.stat_desc.max_length,mi=0;for(pt=0;pt<=w;pt++)Ge.bl_count[pt]=0;for(On[2*Ge.heap[Ge.heap_max]+1]=0,Gr=Ge.heap_max+1;Gr<573;Gr++)Wr<(pt=On[2*On[2*(wn=Ge.heap[Gr])+1]+1]+1)&&(pt=Wr,mi++),On[2*wn+1]=pt,ta>=7;q>>=1)if(1&tt&&0!==pe.dyn_ltree[2*xe])return 0;if(0!==pe.dyn_ltree[18]||0!==pe.dyn_ltree[20]||0!==pe.dyn_ltree[26])return 1;for(xe=32;xe>>3)<=(q=T.opt_len+3+7>>>3)&&(q=he)):q=he=ae+5,ae+4<=q&&-1!==H?k(T,H,ae,ce):4===T.strategy||he===q?(we(T,2+(ce?1:0),3),en(T,K,M)):(we(T,4+(ce?1:0),3),function(pe,xe,tt,Ge){var tn;for(we(pe,xe-257,5),we(pe,tt-1,5),we(pe,Ge-4,4),tn=0;tn>>8&255,T.pending_buf[T.d_buf+2*T.last_lit+1]=255&H,T.pending_buf[T.l_buf+T.last_lit]=255&ae,T.last_lit++,0===H?T.dyn_ltree[2*ae]++:(T.matches++,H--,T.dyn_ltree[2*(f[ae]+y+1)]++,T.dyn_dtree[2*W(H)]++),T.last_lit===T.lit_bufsize-1},O._tr_align=function(T){var H;we(T,2,3),fe(T,256,K),16===(H=T).bi_valid?(Ee(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(F,Y,O){"use strict";Y.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(F,Y,O){(function(A){!function(I,v){"use strict";if(!I.setImmediate){var b,E,D,y,_=1,d={},m=!1,p=I.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(I);w=w&&w.setTimeout?w:I,b="[object process]"==={}.toString.call(I.process)?function(U){process.nextTick(function(){R(U)})}:function(){if(I.postMessage&&!I.importScripts){var U=!0,S=I.onmessage;return I.onmessage=function(){U=!1},I.postMessage("","*"),I.onmessage=S,U}}()?(y="setImmediate$"+Math.random()+"$",I.addEventListener?I.addEventListener("message",L,!1):I.attachEvent("onmessage",L),function(U){I.postMessage(y+U,"*")}):I.MessageChannel?((D=new MessageChannel).port1.onmessage=function(U){R(U.data)},function(U){D.port2.postMessage(U)}):p&&"onreadystatechange"in p.createElement("script")?(E=p.documentElement,function(U){var S=p.createElement("script");S.onreadystatechange=function(){R(U),S.onreadystatechange=null,E.removeChild(S),S=null},E.appendChild(S)}):function(U){setTimeout(R,0,U)},w.setImmediate=function(U){"function"!=typeof U&&(U=new Function(""+U));for(var S=new Array(arguments.length-1),j=0;j"u"?void 0===A?this:A:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},8:(rt,F)=>{"use strict";F.y=void 0;class O{constructor(){this.parts=[]}hasTablature(){return void 0!==this.tablature}hasMeasures(){return void 0!==this.measures}hasComment(){return void 0!==this.comment}}F.y=(()=>{class I{static parse(b){const E={attrs:{},sections:[],custom:{}};let D;const y=b.split("\n");for(const _ of y)_.startsWith("@")?this.processAttribute(E,_):_.startsWith("!")?this.processCustomAttribute(E,_):_.startsWith("#")?D=this.processSection(E,_):this.processLyricsAndChords(E,D,_);return E}static processAttribute(b,E){const D=this.ATTRIBUTE_REGEX.exec(E);null!=D?.[1]&&(b.attrs[D[1]]=D[2])}static processCustomAttribute(b,E){const D=this.CUSTOM_ATTRIBUTE_REGEX.exec(E);null!=D?.[1]&&null!=D[2]&&(b.custom[D[1]]=D[2])}static processSection(b,E){const D=this.SECTION_REGEX.exec(E),y={name:"",lines:[]};return null!=D[1]&&(y.name=D[1],b.sections.push(y)),y}static processLyricsAndChords(b,E,D){if(""!==D){void 0===E&&b.sections.push(E={name:"",lines:[]});const y=this.buildLine(D);E.lines.push(y)}}static buildLine(b){const E=new O;if(b.startsWith("|-"))E.tablature=b;else if(b.startsWith("| "))E.measures=this.getMeasures(b);else if(b.startsWith(">"))E.comment=this.getComment(b);else{const D=this.scan(b,this.CHORDS_AND_LYRICS_REGEX),y=this.chunk(D,2);for(const _ of y){const d=this.getPart(_[0],_[1]);""===d.chord&&""===d.lyric||E.parts.push(d)}}return E}static getMeasures(b){const E=this.scan(b,this.MEASURES_REGEX),D=[];for(const y of E){let _=[];void 0!==y&&(_=this.scan(y,this.CHORDS_REGEX));const d={chords:[]};d.chords=_,D.push(d)}return D}static getComment(b){return this.COMMENT_REGEX.exec(b)[1].trim()}static getPart(b,E){let D,y="";return null!=E&&(y=E),void 0!==b&&(D=b.replace("[","").replace("]","")),void 0===D&&(D=""),{chord:D.trim(),lyric:y.trim()}}static chunk(b,E,D=[]){const y=[...b];for(;y.length;)D.push(y.splice(0,E));return D}static scan(b,E){return[...b.matchAll(E)].flatMap(D=>D.slice(1))}}return I.SECTION_REGEX=/#\s*([^$]*)/,I.ATTRIBUTE_REGEX=/@(\w*)=([^%]*)/,I.CUSTOM_ATTRIBUTE_REGEX=/!(\w*)=([^%]*)/,I.CHORDS_AND_LYRICS_REGEX=/(\[[\w#b/]+])?([\w\s',.!()_\-"]*)/gi,I.MEASURES_REGEX=/([[\w#b/\]+\]\s]+)[|]*/gi,I.CHORDS_REGEX=/\[([\w#b+/]+)]?/gi,I.COMMENT_REGEX=/>\s*([^$]*)/,I})()},626:rt=>{const F=/^[-+]?0x[a-fA-F0-9]+$/,Y=/^([\-\+])?(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 O={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};rt.exports=function A(v,b={}){if(b=Object.assign({},O,b),!v||"string"!=typeof v)return v;let E=v.trim();if(void 0!==b.skipLike&&b.skipLike.test(E))return v;if(b.hex&&F.test(E))return Number.parseInt(E,16);{const D=Y.exec(E);if(D){const y=D[1],_=D[2];let d=function I(v){return v&&-1!==v.indexOf(".")&&("."===(v=v.replace(/0+$/,""))?v="0":"."===v[0]?v="0"+v:"."===v[v.length-1]&&(v=v.substr(0,v.length-1))),v}(D[3]);const m=D[4]||D[6];if(!b.leadingZeros&&_.length>0&&y&&"."!==E[2])return v;if(!b.leadingZeros&&_.length>0&&!y&&"."!==E[1])return v;{const p=Number(E),w=""+p;return-1!==w.search(/[eE]/)||m?b.eNotation?p:v:-1!==E.indexOf(".")?"0"===w&&""===d||w===d||y&&w==="-"+d?p:v:_?d===w||y+d===w?p:v:E===w||E===y+w?p:v}}return v}}}},rt=>{rt(rt.s=544)}]); \ No newline at end of file diff --git a/polyfills.b5f8e6e83d543dbb.js b/polyfills.b5f8e6e83d543dbb.js deleted file mode 100644 index a64ff00..0000000 --- a/polyfills.b5f8e6e83d543dbb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[429],{332:()=>{!function(e){const n=e.performance;function s(j){n&&n.mark&&n.mark(j)}function r(j,h){n&&n.measure&&n.measure(j,h)}s("Zone");const i=e.__Zone_symbol_prefix||"__zone_symbol__";function l(j){return i+j}const p=!0===e[l("forceDuplicateZoneCheck")];if(e.Zone){if(p||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let E=(()=>{class h{static assertZonePatched(){if(e.Promise!==oe.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 t=h.current;for(;t.parent;)t=t.parent;return t}static get current(){return W.zone}static get currentTask(){return re}static __load_patch(t,_,w=!1){if(oe.hasOwnProperty(t)){if(!w&&p)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const M="Zone:"+t;s(M),oe[t]=_(e,h,Y),r(M,M)}}get parent(){return this._parent}get name(){return this._name}constructor(t,_){this._parent=t,this._name=_?_.name||"unnamed":"",this._properties=_&&_.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,_)}get(t){const _=this.getZoneWith(t);if(_)return _._properties[t]}getZoneWith(t){let _=this;for(;_;){if(_._properties.hasOwnProperty(t))return _;_=_._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,_){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const w=this._zoneDelegate.intercept(this,t,_),M=this;return function(){return M.runGuarded(w,this,arguments,_)}}run(t,_,w,M){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,t,_,w,M)}finally{W=W.parent}}runGuarded(t,_=null,w,M){W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,t,_,w,M)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{W=W.parent}}runTask(t,_,w){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===G&&(t.type===Q||t.type===P))return;const M=t.state!=y;M&&t._transitionTo(y,A),t.runCount++;const a=re;re=t,W={parent:W,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,_,w)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==G&&t.state!==d&&(t.type==Q||t.data&&t.data.isPeriodic?M&&t._transitionTo(A,y):(t.runCount=0,this._updateTaskCount(t,-1),M&&t._transitionTo(G,y,G))),W=W.parent,re=a}}scheduleTask(t){if(t.zone&&t.zone!==this){let w=this;for(;w;){if(w===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);w=w.parent}}t._transitionTo(z,G);const _=[];t._zoneDelegates=_,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(w){throw t._transitionTo(d,z,G),this._zoneDelegate.handleError(this,w),w}return t._zoneDelegates===_&&this._updateTaskCount(t,1),t.state==z&&t._transitionTo(A,z),t}scheduleMicroTask(t,_,w,M){return this.scheduleTask(new m(I,t,_,w,M,void 0))}scheduleMacroTask(t,_,w,M,a){return this.scheduleTask(new m(P,t,_,w,M,a))}scheduleEventTask(t,_,w,M,a){return this.scheduleTask(new m(Q,t,_,w,M,a))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===y){t._transitionTo(V,A,y);try{this._zoneDelegate.cancelTask(this,t)}catch(_){throw t._transitionTo(d,V),this._zoneDelegate.handleError(this,_),_}return this._updateTaskCount(t,-1),t._transitionTo(G,V),t.runCount=0,t}}_updateTaskCount(t,_){const w=t._zoneDelegates;-1==_&&(t._zoneDelegates=null);for(let M=0;Mj.hasTask(c,t),onScheduleTask:(j,h,c,t)=>j.scheduleTask(c,t),onInvokeTask:(j,h,c,t,_,w)=>j.invokeTask(c,t,_,w),onCancelTask:(j,h,c,t)=>j.cancelTask(c,t)};class v{constructor(h,c,t){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=h,this._parentDelegate=c,this._forkZS=t&&(t&&t.onFork?t:c._forkZS),this._forkDlgt=t&&(t.onFork?c:c._forkDlgt),this._forkCurrZone=t&&(t.onFork?this.zone:c._forkCurrZone),this._interceptZS=t&&(t.onIntercept?t:c._interceptZS),this._interceptDlgt=t&&(t.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=t&&(t.onIntercept?this.zone:c._interceptCurrZone),this._invokeZS=t&&(t.onInvoke?t:c._invokeZS),this._invokeDlgt=t&&(t.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=t&&(t.onInvoke?this.zone:c._invokeCurrZone),this._handleErrorZS=t&&(t.onHandleError?t:c._handleErrorZS),this._handleErrorDlgt=t&&(t.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=t&&(t.onHandleError?this.zone:c._handleErrorCurrZone),this._scheduleTaskZS=t&&(t.onScheduleTask?t:c._scheduleTaskZS),this._scheduleTaskDlgt=t&&(t.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=t&&(t.onScheduleTask?this.zone:c._scheduleTaskCurrZone),this._invokeTaskZS=t&&(t.onInvokeTask?t:c._invokeTaskZS),this._invokeTaskDlgt=t&&(t.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=t&&(t.onInvokeTask?this.zone:c._invokeTaskCurrZone),this._cancelTaskZS=t&&(t.onCancelTask?t:c._cancelTaskZS),this._cancelTaskDlgt=t&&(t.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=t&&(t.onCancelTask?this.zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const _=t&&t.onHasTask;(_||c&&c._hasTaskZS)&&(this._hasTaskZS=_?t:b,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=h,t.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this.zone),t.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this.zone),t.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this.zone))}fork(h,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,h,c):new E(h,c)}intercept(h,c,t){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,h,c,t):c}invoke(h,c,t,_,w){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,h,c,t,_,w):c.apply(t,_)}handleError(h,c){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,h,c)}scheduleTask(h,c){let t=c;if(this._scheduleTaskZS)this._hasTaskZS&&t._zoneDelegates.push(this._hasTaskDlgtOwner),t=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,h,c),t||(t=c);else if(c.scheduleFn)c.scheduleFn(c);else{if(c.type!=I)throw new Error("Task is missing scheduleFn.");C(c)}return t}invokeTask(h,c,t,_){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,h,c,t,_):c.callback.apply(t,_)}cancelTask(h,c){let t;if(this._cancelTaskZS)t=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,h,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");t=c.cancelFn(c)}return t}hasTask(h,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,h,c)}catch(t){this.handleError(h,t)}}_updateTaskCount(h,c){const t=this._taskCounts,_=t[h],w=t[h]=_+c;if(w<0)throw new Error("More tasks executed then were scheduled.");0!=_&&0!=w||this.hasTask(this.zone,{microTask:t.microTask>0,macroTask:t.macroTask>0,eventTask:t.eventTask>0,change:h})}}class m{constructor(h,c,t,_,w,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=h,this.source=c,this.data=_,this.scheduleFn=w,this.cancelFn=M,!t)throw new Error("callback is not defined");this.callback=t;const a=this;this.invoke=h===Q&&_&&_.useG?m.invokeTask:function(){return m.invokeTask.call(e,a,this,arguments)}}static invokeTask(h,c,t){h||(h=this),ee++;try{return h.runCount++,h.zone.runTask(h,c,t)}finally{1==ee&&T(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(G,z)}_transitionTo(h,c,t){if(this._state!==c&&this._state!==t)throw new Error(`${this.type} '${this.source}': can not transition to '${h}', expecting state '${c}'${t?" or '"+t+"'":""}, was '${this._state}'.`);this._state=h,h==G&&(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=l("setTimeout"),O=l("Promise"),N=l("then");let K,U=[],x=!1;function X(j){if(K||e[O]&&(K=e[O].resolve(0)),K){let h=K[N];h||(h=K.then),h.call(K,j)}else e[L](j,0)}function C(j){0===ee&&0===U.length&&X(T),j&&U.push(j)}function T(){if(!x){for(x=!0;U.length;){const j=U;U=[];for(let h=0;hW,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:C,showUncaughtError:()=>!E[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:X};let W={parent:null,zone:new E(null,null)},re=null,ee=0;function q(){}r("Zone","Zone"),e.Zone=E}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",me=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Le(e,n,s,r,i){return Zone.current.scheduleMacroTask(e,n,s,r,i)}const H=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,$=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Me(e,n){for(let s=e.length-1;s>=0;s--)"function"==typeof e[s]&&(e[s]=Ie(e[s],n+"_"+s));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in $)&&typeof $.process<"u"&&"[object process]"==={}.toString.call($.process),Ae=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof $.process<"u"&&"[object process]"==={}.toString.call($.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(e){if(!(e=e||$.event))return;let n=we[e.type];n||(n=we[e.type]=H("ON_PROPERTY"+e.type));const s=this||e.target||$,r=s[n];let i;return Ae&&s===_e&&"error"===e.type?(i=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=r&&r.apply(this,arguments),null!=i&&!i&&e.preventDefault()),i};function We(e,n,s){let r=ue(e,n);if(!r&&s&&ue(s,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const i=H("on"+n+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete r.writable,delete r.value;const l=r.get,p=r.set,E=n.slice(2);let b=we[E];b||(b=we[E]=H("ON_PROPERTY"+E)),r.set=function(v){let m=this;!m&&e===$&&(m=$),m&&("function"==typeof m[b]&&m.removeEventListener(E,Ue),p&&p.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(E,Ue,!1))},r.get=function(){let v=this;if(!v&&e===$&&(v=$),!v)return null;const m=v[b];if(m)return m;if(l){let L=l.call(this);if(L)return r.set.call(this,L),"function"==typeof v[ct]&&v.removeAttribute(n),L}return null},pe(e,n,r),e[i]=!0}function qe(e,n,s){if(n)for(let r=0;rfunction(p,E){const b=s(p,E);return b.cbIdx>=0&&"function"==typeof E[b.cbIdx]?Le(b.name,E[b.cbIdx],b,i):l.apply(p,E)})}function le(e,n){e[H("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,s)=>{const r=Object.getOwnPropertyDescriptor,i=Object.defineProperty,p=s.symbol,E=[],b=!0===e[p("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=p("Promise"),m=p("then"),L="__creationTrace__";s.onUnhandledError=a=>{if(s.showUncaughtError()){const u=a&&a.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",a.zone.name,"; Task:",a.task&&a.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(a)}},s.microtaskDrainDone=()=>{for(;E.length;){const a=E.shift();try{a.zone.runGuarded(()=>{throw a.throwOriginal?a.rejection:a})}catch(u){N(u)}}};const O=p("unhandledPromiseRejectionHandler");function N(a){s.onUnhandledError(a);try{const u=n[O];"function"==typeof u&&u.call(this,a)}catch{}}function U(a){return a&&a.then}function x(a){return a}function K(a){return c.reject(a)}const X=p("state"),C=p("value"),T=p("finally"),J=p("parentPromiseValue"),G=p("parentPromiseState"),z="Promise.then",A=null,y=!0,V=!1,d=0;function I(a,u){return o=>{try{Y(a,u,o)}catch(f){Y(a,!1,f)}}}const P=function(){let a=!1;return function(o){return function(){a||(a=!0,o.apply(null,arguments))}}},Q="Promise resolved with itself",oe=p("currentTaskTrace");function Y(a,u,o){const f=P();if(a===o)throw new TypeError(Q);if(a[X]===A){let k=null;try{("object"==typeof o||"function"==typeof o)&&(k=o&&o.then)}catch(R){return f(()=>{Y(a,!1,R)})(),a}if(u!==V&&o instanceof c&&o.hasOwnProperty(X)&&o.hasOwnProperty(C)&&o[X]!==A)re(o),Y(a,o[X],o[C]);else if(u!==V&&"function"==typeof k)try{k.call(o,f(I(a,u)),f(I(a,!1)))}catch(R){f(()=>{Y(a,!1,R)})()}else{a[X]=u;const R=a[C];if(a[C]=o,a[T]===T&&u===y&&(a[X]=a[G],a[C]=a[J]),u===V&&o instanceof Error){const g=n.currentTask&&n.currentTask.data&&n.currentTask.data[L];g&&i(o,oe,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g{try{const S=a[C],Z=!!o&&T===o[T];Z&&(o[J]=S,o[G]=R);const D=u.run(g,void 0,Z&&g!==K&&g!==x?[]:[S]);Y(o,!0,D)}catch(S){Y(o,!1,S)}},o)}const j=function(){},h=e.AggregateError;class c{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return Y(new this(null),y,u)}static reject(u){return Y(new this(null),V,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new h([],"All promises were rejected"));const o=[];let f=0;try{for(let g of u)f++,o.push(c.resolve(g))}catch{return Promise.reject(new h([],"All promises were rejected"))}if(0===f)return Promise.reject(new h([],"All promises were rejected"));let k=!1;const R=[];return new c((g,S)=>{for(let Z=0;Z{k||(k=!0,g(D))},D=>{R.push(D),f--,0===f&&(k=!0,S(new h(R,"All promises were rejected")))})})}static race(u){let o,f,k=new this((S,Z)=>{o=S,f=Z});function R(S){o(S)}function g(S){f(S)}for(let S of u)U(S)||(S=this.resolve(S)),S.then(R,g);return k}static all(u){return c.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof c?this:c).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,o){let f,k,R=new this((D,F)=>{f=D,k=F}),g=2,S=0;const Z=[];for(let D of u){U(D)||(D=this.resolve(D));const F=S;try{D.then(B=>{Z[F]=o?o.thenCallback(B):B,g--,0===g&&f(Z)},B=>{o?(Z[F]=o.errorCallback(B),g--,0===g&&f(Z)):k(B)})}catch(B){k(B)}g++,S++}return g-=2,0===g&&f(Z),R}constructor(u){const o=this;if(!(o instanceof c))throw new Error("Must be an instanceof Promise.");o[X]=A,o[C]=[];try{const f=P();u&&u(f(I(o,y)),f(I(o,V)))}catch(f){Y(o,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return c}then(u,o){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||c);const k=new f(j),R=n.current;return this[X]==A?this[C].push(R,k,u,o):ee(this,R,k,u,o),k}catch(u){return this.then(null,u)}finally(u){let o=this.constructor?.[Symbol.species];(!o||"function"!=typeof o)&&(o=c);const f=new o(j);f[T]=T;const k=n.current;return this[X]==A?this[C].push(k,f,u,u):ee(this,k,f,u,u),f}}c.resolve=c.resolve,c.reject=c.reject,c.race=c.race,c.all=c.all;const t=e[v]=e.Promise;e.Promise=c;const _=p("thenPatched");function w(a){const u=a.prototype,o=r(u,"then");if(o&&(!1===o.writable||!o.configurable))return;const f=u.then;u[m]=f,a.prototype.then=function(k,R){return new c((S,Z)=>{f.call(this,S,Z)}).then(k,R)},a[_]=!0}return s.patchThen=w,t&&(w(t),ae(e,"fetch",a=>function M(a){return function(u,o){let f=a.apply(u,o);if(f instanceof c)return f;let k=f.constructor;return k[_]||w(k),f}}(a))),Promise[n.__symbol__("uncaughtPromiseErrors")]=E,c}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,s=H("OriginalDelegate"),r=H("Promise"),i=H("Error"),l=function(){if("function"==typeof this){const v=this[s];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[r];if(m)return n.call(m)}if(this===Error){const m=e[i];if(m)return n.call(m)}}return n.call(this)};l[s]=n,Function.prototype.toString=l;const p=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":p.call(this)}});let Ee=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+me+"(\\w+)(true|false)$"),$e=H("propagationStopped");function Je(e,n){const s=(n?n(e):e)+ce,r=(n?n(e):e)+ie,i=me+s,l=me+r;te[e]={},te[e][ce]=i,te[e][ie]=l}function dt(e,n,s,r){const i=r&&r.add||Ze,l=r&&r.rm||De,p=r&&r.listeners||"eventListeners",E=r&&r.rmAll||"removeAllListeners",b=H(i),v="."+i+":",m="prependListener",L="."+m+":",O=function(C,T,J){if(C.isRemoved)return;const G=C.callback;let z;"object"==typeof G&&G.handleEvent&&(C.callback=y=>G.handleEvent(y),C.originalDelegate=G);try{C.invoke(C,T,[J])}catch(y){z=y}const A=C.options;return A&&"object"==typeof A&&A.once&&T[l].call(T,J.type,C.originalDelegate?C.originalDelegate:C.callback,A),z};function N(C,T,J){if(!(T=T||e.event))return;const G=C||T.target||e,z=G[te[T.type][J?ie:ce]];if(z){const A=[];if(1===z.length){const y=O(z[0],G,T);y&&A.push(y)}else{const y=z.slice();for(let V=0;V{throw V})}}}const U=function(C){return N(this,C,!1)},x=function(C){return N(this,C,!0)};function K(C,T){if(!C)return!1;let J=!0;T&&void 0!==T.useG&&(J=T.useG);const G=T&&T.vh;let z=!0;T&&void 0!==T.chkDup&&(z=T.chkDup);let A=!1;T&&void 0!==T.rt&&(A=T.rt);let y=C;for(;y&&!y.hasOwnProperty(i);)y=ve(y);if(!y&&C[i]&&(y=C),!y||y[b])return!1;const V=T&&T.eventNameToString,d={},I=y[b]=y[i],P=y[H(l)]=y[l],Q=y[H(p)]=y[p],oe=y[H(E)]=y[E];let Y;T&&T.prepend&&(Y=y[H(T.prepend)]=y[T.prepend]);const c=J?function(o){if(!d.isExisting)return I.call(d.target,d.eventName,d.capture?x:U,d.options)}:function(o){return I.call(d.target,d.eventName,o.invoke,d.options)},t=J?function(o){if(!o.isRemoved){const f=te[o.eventName];let k;f&&(k=f[o.capture?ie:ce]);const R=k&&o.target[k];if(R)for(let g=0;gfunction(i,l){i[$e]=!0,r&&r.apply(i,l)})}function Et(e,n,s,r,i){const l=Zone.__symbol__(r);if(n[l])return;const p=n[l]=n[r];n[r]=function(E,b,v){return b&&b.prototype&&i.forEach(function(m){const L=`${s}.${r}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(O,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(b.prototype,m,N)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],L))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],L))}catch{}}),p.call(n,E,b,v)},e.attachOriginToPatched(n[r],p)}function Qe(e,n,s){if(!s||0===s.length)return n;const r=s.filter(l=>l.target===e);if(!r||0===r.length)return n;const i=r[0].ignoreProperties;return n.filter(l=>-1===i.indexOf(l))}function et(e,n,s,r){e&&qe(e,Qe(e,n,s),r)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,s)=>{const r=He(e);s.patchOnProperties=qe,s.patchMethod=ae,s.bindArguments=Me,s.patchMacroTask=lt;const i=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[i]=e[l]),e[i]&&(n[i]=n[l]=e[i]),s.patchEventPrototype=_t,s.patchEventTarget=dt,s.isIEOrEdge=ft,s.ObjectDefineProperty=pe,s.ObjectGetOwnPropertyDescriptor=ue,s.ObjectCreate=Se,s.ArraySlice=it,s.patchClass=ge,s.wrapWithCurrentZone=Ie,s.filterProperties=Qe,s.attachOriginToPatched=le,s._redefineProperty=Object.defineProperty,s.patchCallbacks=Et,s.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ae,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=H("zoneTask");function Te(e,n,s,r){let i=null,l=null;s+=r;const p={};function E(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=i.apply(e,m.args),v}function b(v){return l.call(e,v.data.handleId)}i=ae(e,n+=r,v=>function(m,L){if("function"==typeof L[0]){const O={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?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 p[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const U=Le(n,L[0],O,E,b);if(!U)return U;const x=U.data.handleId;return"number"==typeof x?p[x]=U:x&&(x[Re]=U),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(U.ref=x.ref.bind(x),U.unref=x.unref.bind(x)),"number"==typeof x||x?x:U}return v.apply(e,L)}),l=ae(e,s,v=>function(m,L){const O=L[0];let N;"number"==typeof O?N=p[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete p[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",s="clear";Te(e,n,s,"Timeout"),Te(e,n,s,"Interval"),Te(e,n,s,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const s=["alert","prompt","confirm"];for(let r=0;rfunction(b,v){return n.current.run(l,e,v,E)})}),Zone.__load_patch("EventTarget",(e,n,s)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,s),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:s,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:l,ZONE_SYMBOL_PREFIX:p}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,s)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,s)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,s)=>{!function Tt(e,n){if(Pe&&!Be||Zone[e.symbol("patchEvents")])return;const s=n.__Zone_ignore_on_properties;let r=[];if(Ae){const i=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const l=function ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];et(i,He(i),s&&s.concat(l),ve(i))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{!function pt(e,n){const{isBrowser:s,isMix:r}=n.getGlobalObjects();(s||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,s)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Oe],U=L[Ne];if(!N){const d=v.XMLHttpRequestEventTarget;if(d){const I=d.prototype;N=I[Oe],U=I[Ne]}}const x="readystatechange",K="scheduled";function X(d){const I=d.data,P=I.target;P[l]=!1,P[E]=!1;const Q=P[i];N||(N=P[Oe],U=P[Ne]),Q&&U.call(P,x,Q);const oe=P[i]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[l]&&d.state===K){const W=P[n.__symbol__("loadfalse")];if(0!==P.status&&W&&W.length>0){const re=d.invoke;d.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let q=0;qfunction(d,I){return d[r]=0==I[2],d[p]=I[1],J.apply(d,I)}),z=H("fetchTaskAborting"),A=H("fetchTaskScheduling"),y=ae(L,"send",()=>function(d,I){if(!0===n.current[A]||d[r])return y.apply(d,I);{const P={target:d,url:d[p],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",C,P,X,T);d&&!0===d[E]&&!P.aborted&&Q.state===K&&Q.invoke()}}),V=ae(L,"abort",()=>function(d,I){const P=function O(d){return d[s]}(d);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[z])return V.apply(d,I)})}(e);const s=H("xhrTask"),r=H("xhrSync"),i=H("xhrListener"),l=H("xhrScheduled"),p=H("xhrURL"),E=H("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const s=e.constructor.name;for(let r=0;r{const b=function(){return E.apply(this,Me(arguments,s+"."+i))};return le(b,E),b})(l)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function s(r){return function(i){Ke(e,r).forEach(p=>{const E=e.PromiseRejectionEvent;if(E){const b=new E(r,{promise:i.promise,reason:i.rejection});p.invoke(b)}})}}e.PromiseRejectionEvent&&(n[H("unhandledPromiseRejectionHandler")]=s("unhandledrejection"),n[H("rejectionHandledHandler")]=s("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,s)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",s=>function(r,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(e,s)})}},ue=>{ue(ue.s=332)}]); \ No newline at end of file diff --git a/polyfills.bd5a210b5b96832c.js b/polyfills.bd5a210b5b96832c.js new file mode 100644 index 0000000..8672b71 --- /dev/null +++ b/polyfills.bd5a210b5b96832c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkLyricConverter=self.webpackChunkLyricConverter||[]).push([[429],{332:()=>{!function(e){const n=e.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=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{static#e=this.__symbol__=a;static assertZonePatched(){if(e.Promise!==oe.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 t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===P))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new p(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new p(P,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new p(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,T,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,T,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,T,t,r)=>M.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;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,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${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||e[O]&&(K=e[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,M)}else e[L](M,0)}function R(M){0===ee&&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)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",me=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Le(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Me(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(e){if(!(e=e||Y.event))return;let n=we[e.type];n||(n=we[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let o=ue(e,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=we[d];b||(b=we[d]=j("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&e===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,Ue),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&e===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[ct]&&v.removeAttribute(n),L}return null},pe(e,n,o),e[c]=!0}function qe(e,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]?Le(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(e,n){e[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),L="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const P=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=P();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[L];m&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const S=l[R],Z=!!s&&_===s[_];Z&&(s[J]=S,s[x]=w);const D=u.run(m,void 0,Z&&m!==K&&m!==H?[]:[S]);z(s,!0,D)}catch(S){z(s,!1,S)}},s)}const M=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of u)f++,s.push(t.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 t((m,S)=>{for(let Z=0;Z{g||(g=!0,m(D))},D=>{w.push(D),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,Z)=>{s=S,f=Z});function w(S){s(S)}function m(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(w,m);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((D,V)=>{f=D,g=V}),m=2,S=0;const Z=[];for(let D of u){B(D)||(D=this.resolve(D));const V=S;try{D.then(F=>{Z[V]=s?s.thenCallback(F):F,m--,0===m&&f(Z)},F=>{s?(Z[V]=s.errorCallback(F),m--,0===m&&f(Z)):g(F)})}catch(F){g(F)}m++,S++}return m-=2,0===m&&f(Z),w}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=P();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(M),w=n.current;return this[q]==A?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(M);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(g,w){return new t((S,Z)=>{f.call(this,S,Z)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("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=e[o];if(p)return n.call(p)}if(this===Error){const p=e[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 e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+me+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ce,o=(n?n(e):e)+ie,c=me+i,a=me+o;te[e]={},te[e][ce]=c,te[e][ie]=a}function dt(e,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||De,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(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 A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.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 A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=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=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const w=g&&s.target[g];if(w)for(let m=0;mfunction(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(e,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=e.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],L))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],L))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function Qe(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(e,n,i,o){e&&qe(e,Qe(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Me,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=pe,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=j("zoneTask");function Te(e,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(e,p.args),v}function b(v){return a.call(e,v.data.handleId)}c=ae(e,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[Re]=null))}};const B=Le(n,L[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=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(e,L)}),a=ae(e,i,v=>function(p,L){const O=L[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],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[Re]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Te(e,n,i,"Timeout"),Te(e,n,i,"Interval"),Te(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function mt(e,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",(e,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(Pe&&!Be||Zone[e.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 ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function pt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const L=p.prototype;let N=L[Oe],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}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[Oe],B=P[Ne]),Q&&B.call(P,H,Q);const oe=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 re=h.invoke;h.invoke=function(){const ee=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=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(L,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=ae(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)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Me(arguments,i+"."+c))};return le(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Ke(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ue=>{ue(ue.s=332)}]); \ No newline at end of file diff --git a/styles.4d473b8f9cfce6bd.css b/styles.4d473b8f9cfce6bd.css deleted file mode 100644 index e06b4f7..0000000 --- a/styles.4d473b8f9cfce6bd.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}a{--tw-text-opacity: 1;color:rgb(123 201 209 / var(--tw-text-opacity))}a:hover{text-decoration-line:underline}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.card{border-radius:.5rem;border-width:1px;border-color:#3ea8b21a;background-color:#0f172a66;--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.card .card-title{border-bottom-width:1px;border-bottom-color:#3ea8b21a}.card h3.card-title,.card h4.card-title,.card h5.card-title{padding:1rem 1rem .5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}.card .card-content{height:100%;padding:1rem}.card .card-content+.card-content{border-top-width:1px;border-top-color:#3ea8b21a}.card h3.card-title+.card-content,.card h4.card-title+.card-content,.card h5.card-title+.card-content,.card .card-content+.card-content{padding-top:.5rem}.btn{display:inline-flex;align-items:center;border-radius:.25rem;padding:.5rem 1rem;font-weight:700;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn:hover{text-decoration-line:none}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.btn-success{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-success:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity))}.btn-small{padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.icon{width:1em;height:1em;display:inline-block;fill:currentcolor}.icon-lg{width:32px;height:32px}.btn .icon{margin-right:.25rem}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.col-span-1{grid-column:span 1 / span 1}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.me-2{margin-inline-end:.5rem}.ml-1{margin-left:.25rem}.mr-2{margin-right:.5rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-\[88px\]{height:88px}.h-screen{height:100vh}.w-1\/2{width:50%}.w-1\/4{width:25%}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.grow{flex-grow:1}.cursor-default{cursor:default}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-none{grid-template-columns:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-blue-800\/80{border-color:#1e40afcc}.border-lc-highlight{--tw-border-opacity: 1;border-color:rgb(62 168 178 / var(--tw-border-opacity))}.border-red-700\/80{border-color:#b91c1ccc}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}.border-white\/30{border-color:#ffffff4d}.border-b-lc-highlight\/10{border-bottom-color:#3ea8b21a}.border-l-lc-highlight{--tw-border-opacity: 1;border-left-color:rgb(62 168 178 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100\/70{background-color:#dbeafeb3}.bg-lc-highlight\/10{background-color:#3ea8b21a}.bg-red-200\/80{background-color:#fecacacc}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-slate-50\/90{background-color:#f8fafce6}.bg-slate-600\/50{background-color:#47556980}.bg-cover{background-size:cover}.bg-fixed{background-attachment:fixed}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-white{fill:#fff}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.\!pb-2{padding-bottom:.5rem!important}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.leading-4{line-height:1rem}.leading-none{line-height:1}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.selection\:bg-lc-highlight *::selection{--tw-bg-opacity: 1;background-color:rgb(62 168 178 / var(--tw-bg-opacity))}.selection\:text-white *::selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.selection\:bg-lc-highlight::selection{--tw-bg-opacity: 1;background-color:rgb(62 168 178 / var(--tw-bg-opacity))}.selection\:text-white::selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.last-of-type\:mb-0:last-of-type{margin-bottom:0}.hover\:border-slate-600:hover{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}.hover\:bg-lc-highlight\/20:hover{background-color:#3ea8b233}.hover\:bg-slate-400:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.hover\:no-underline:hover{text-decoration-line:none}@media (min-width: 640px){.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:ml-auto{margin-left:auto}.sm\:mt-0{margin-top:0}.sm\:grid{display:grid}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-end{align-items:flex-end}.sm\:gap-4{gap:1rem}}@media (min-width: 768px){.md\:top-4{top:1rem}.md\:col-span-1{grid-column:span 1 / span 1}.md\:col-span-2{grid-column:span 2 / span 2}.md\:col-span-3{grid-column:span 3 / span 3}.md\:mt-4{margin-top:1rem}.md\:block{display:block}.md\:hidden{display:none}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-none{grid-template-columns:none}}@media (min-width: 1024px){.lg\:inline-flex{display:inline-flex}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1536px){.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}} diff --git a/styles.599f1e7986af132e.css b/styles.599f1e7986af132e.css new file mode 100644 index 0000000..9bbfd4d --- /dev/null +++ b/styles.599f1e7986af132e.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}a{--tw-text-opacity: 1;color:rgb(123 201 209 / var(--tw-text-opacity))}a:hover{text-decoration-line:underline}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.card{border-radius:.5rem;border-width:1px;border-color:#3ea8b21a;background-color:#0f172a66;--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.card .card-title{border-bottom-width:1px;border-bottom-color:#3ea8b21a}.card h3.card-title,.card h4.card-title,.card h5.card-title{padding:1rem 1rem .5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700}.card .card-content{height:100%;padding:1rem}.card .card-content+.card-content{border-top-width:1px;border-top-color:#3ea8b21a}.card h3.card-title+.card-content,.card h4.card-title+.card-content,.card h5.card-title+.card-content,.card .card-content+.card-content{padding-top:.5rem}.btn{display:inline-flex;align-items:center;border-radius:.25rem;padding:.5rem 1rem;font-weight:700;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn:hover{text-decoration-line:none}.btn-primary{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.btn-secondary{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.btn-success{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.btn-success:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity))}.btn-small{padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.icon{width:1em;height:1em;display:inline-block;fill:currentcolor}.icon-lg{width:32px;height:32px}.btn .icon{margin-right:.25rem}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.col-span-1{grid-column:span 1 / span 1}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.me-2{margin-inline-end:.5rem}.ml-1{margin-left:.25rem}.mr-2{margin-right:.5rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-\[88px\]{height:88px}.h-screen{height:100vh}.w-1\/2{width:50%}.w-1\/4{width:25%}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.grow{flex-grow:1}.cursor-default{cursor:default}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-none{grid-template-columns:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-blue-800\/80{border-color:#1e40afcc}.border-lc-highlight{--tw-border-opacity: 1;border-color:rgb(62 168 178 / var(--tw-border-opacity))}.border-red-700\/80{border-color:#b91c1ccc}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}.border-white\/30{border-color:#ffffff4d}.border-b-lc-highlight\/10{border-bottom-color:#3ea8b21a}.border-l-lc-highlight{--tw-border-opacity: 1;border-left-color:rgb(62 168 178 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100\/70{background-color:#dbeafeb3}.bg-lc-highlight\/10{background-color:#3ea8b21a}.bg-red-200\/80{background-color:#fecacacc}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-slate-50\/90{background-color:#f8fafce6}.bg-slate-600\/50{background-color:#47556980}.bg-cover{background-size:cover}.bg-fixed{background-attachment:fixed}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-white{fill:#fff}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.\!pb-2{padding-bottom:.5rem!important}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.leading-4{line-height:1rem}.leading-none{line-height:1}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.selection\:bg-lc-highlight *::selection{--tw-bg-opacity: 1;background-color:rgb(62 168 178 / var(--tw-bg-opacity))}.selection\:text-white *::selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.selection\:bg-lc-highlight::selection{--tw-bg-opacity: 1;background-color:rgb(62 168 178 / var(--tw-bg-opacity))}.selection\:text-white::selection{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.last-of-type\:mb-0:last-of-type{margin-bottom:0}.hover\:border-slate-600:hover{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}.hover\:bg-lc-highlight\/20:hover{background-color:#3ea8b233}.hover\:bg-slate-400:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.hover\:no-underline:hover{text-decoration-line:none}@media (min-width: 640px){.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:ml-auto{margin-left:auto}.sm\:mt-0{margin-top:0}.sm\:grid{display:grid}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-end{align-items:flex-end}.sm\:gap-4{gap:1rem}}@media (min-width: 768px){.md\:top-4{top:1rem}.md\:col-span-1{grid-column:span 1 / span 1}.md\:col-span-2{grid-column:span 2 / span 2}.md\:col-span-3{grid-column:span 3 / span 3}.md\:mt-4{margin-top:1rem}.md\:block{display:block}.md\:hidden{display:none}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-none{grid-template-columns:none}}@media (min-width: 1024px){.lg\:inline-flex{display:inline-flex}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1536px){.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}