diff --git a/pipboyUI/.gitignore b/pipboyUI/.gitignore index 0711527..bb1ed7b 100644 --- a/pipboyUI/.gitignore +++ b/pipboyUI/.gitignore @@ -1,7 +1,7 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. # Compiled output -/dist +#/dist /tmp /out-tsc /bazel-out diff --git a/pipboyUI/dist/pipboy-ui/3rdpartylicenses.txt b/pipboyUI/dist/pipboy-ui/3rdpartylicenses.txt new file mode 100644 index 0000000..430861e --- /dev/null +++ b/pipboyUI/dist/pipboy-ui/3rdpartylicenses.txt @@ -0,0 +1,297 @@ +@angular/animations +MIT + +@angular/cdk +MIT +The MIT License + +Copyright (c) 2022 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/material +MIT +The MIT License + +Copyright (c) 2022 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/platform-browser +MIT + +@angular/router +MIT + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2022 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/pipboyUI/dist/pipboy-ui/Roboto-Bold.3b887fc8dca30f62.ttf b/pipboyUI/dist/pipboy-ui/Roboto-Bold.3b887fc8dca30f62.ttf new file mode 100644 index 0000000..91ec212 Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/Roboto-Bold.3b887fc8dca30f62.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/Roboto-Regular.a8e6f6203d22df08.ttf b/pipboyUI/dist/pipboy-ui/Roboto-Regular.a8e6f6203d22df08.ttf new file mode 100644 index 0000000..7d9a6c4 Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/Roboto-Regular.a8e6f6203d22df08.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/TechMono.5c8f60d90e003254.ttf b/pipboyUI/dist/pipboy-ui/TechMono.5c8f60d90e003254.ttf new file mode 100644 index 0000000..f0be2db Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/TechMono.5c8f60d90e003254.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/assets/fonts/Roboto-Bold.ttf b/pipboyUI/dist/pipboy-ui/assets/fonts/Roboto-Bold.ttf new file mode 100644 index 0000000..91ec212 Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/assets/fonts/Roboto-Bold.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/assets/fonts/Roboto-Regular.ttf b/pipboyUI/dist/pipboy-ui/assets/fonts/Roboto-Regular.ttf new file mode 100644 index 0000000..7d9a6c4 Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/assets/fonts/Roboto-Regular.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/assets/fonts/RobotoCondensed-Bold.ttf b/pipboyUI/dist/pipboy-ui/assets/fonts/RobotoCondensed-Bold.ttf new file mode 100644 index 0000000..7fe3128 Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/assets/fonts/RobotoCondensed-Bold.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/assets/fonts/RobotoCondensed-Regular.ttf b/pipboyUI/dist/pipboy-ui/assets/fonts/RobotoCondensed-Regular.ttf new file mode 100644 index 0000000..62dd61e Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/assets/fonts/RobotoCondensed-Regular.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/assets/fonts/TechMono.ttf b/pipboyUI/dist/pipboy-ui/assets/fonts/TechMono.ttf new file mode 100644 index 0000000..f0be2db Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/assets/fonts/TechMono.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/assets/fonts/monofonto.ttf b/pipboyUI/dist/pipboy-ui/assets/fonts/monofonto.ttf new file mode 100644 index 0000000..9d65196 Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/assets/fonts/monofonto.ttf differ diff --git a/pipboyUI/dist/pipboy-ui/assets/music/pvz.mp3 b/pipboyUI/dist/pipboy-ui/assets/music/pvz.mp3 new file mode 100644 index 0000000..e4e8f0b Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/assets/music/pvz.mp3 differ diff --git a/pipboyUI/dist/pipboy-ui/favicon.ico b/pipboyUI/dist/pipboy-ui/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/pipboyUI/dist/pipboy-ui/favicon.ico differ diff --git a/pipboyUI/dist/pipboy-ui/index.html b/pipboyUI/dist/pipboy-ui/index.html new file mode 100644 index 0000000..9af72cf --- /dev/null +++ b/pipboyUI/dist/pipboy-ui/index.html @@ -0,0 +1,15 @@ + + + PipboyUI + + + + + + + + + + + + \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/main.e51c9ac82a2ab03c.js b/pipboyUI/dist/pipboy-ui/main.e51c9ac82a2ab03c.js new file mode 100644 index 0000000..e77a54b --- /dev/null +++ b/pipboyUI/dist/pipboy-ui/main.e51c9ac82a2ab03c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkpipboyUI=self.webpackChunkpipboyUI||[]).push([[179],{77:()=>{function ne(n){return"function"==typeof n}function So(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Qs=So(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function hi(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class nt{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(ne(r))try{r()}catch(o){e=o instanceof Qs?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Sm(o)}catch(s){e=e??[],s instanceof Qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qs(e)}}add(e){var t;if(e&&e!==this)if(this.closed)Sm(e);else{if(e instanceof nt){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&hi(t,e)}remove(e){const{_finalizers:t}=this;t&&hi(t,e),e instanceof nt&&e._removeParent(this)}}nt.EMPTY=(()=>{const n=new nt;return n.closed=!0,n})();const Dm=nt.EMPTY;function Em(n){return n instanceof nt||n&&"closed"in n&&ne(n.remove)&&ne(n.add)&&ne(n.unsubscribe)}function Sm(n){ne(n)?n():n.unsubscribe()}const kr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xs={setTimeout(n,e,...t){const{delegate:r}=Xs;return r?.setTimeout?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=Xs;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Mm(n){Xs.setTimeout(()=>{const{onUnhandledError:e}=kr;if(!e)throw n;e(n)})}function Qc(){}const nM=Xc("C",void 0,void 0);function Xc(n,e,t){return{kind:n,value:e,error:t}}let Or=null;function Js(n){if(kr.useDeprecatedSynchronousErrorHandling){const e=!Or;if(e&&(Or={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=Or;if(Or=null,t)throw r}}else n()}class Jc extends nt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Em(e)&&e.add(this)):this.destination=cM}static create(e,t,r){return new Mo(e,t,r)}next(e){this.isStopped?tu(function iM(n){return Xc("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?tu(function rM(n){return Xc("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?tu(nM,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const sM=Function.prototype.bind;function eu(n,e){return sM.call(n,e)}class aM{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(r){ea(r)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(r){ea(r)}else ea(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){ea(t)}}}class Mo extends Jc{constructor(e,t,r){let i;if(super(),ne(e)||!e)i={next:e??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&kr.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&eu(e.next,o),error:e.error&&eu(e.error,o),complete:e.complete&&eu(e.complete,o)}):i=e}this.destination=new aM(i)}}function ea(n){kr.useDeprecatedSynchronousErrorHandling?function oM(n){kr.useDeprecatedSynchronousErrorHandling&&Or&&(Or.errorThrown=!0,Or.error=n)}(n):Mm(n)}function tu(n,e){const{onStoppedNotification:t}=kr;t&&Xs.setTimeout(()=>t(n,e))}const cM={closed:!0,next:Qc,error:function lM(n){throw n},complete:Qc},nu="function"==typeof Symbol&&Symbol.observable||"@@observable";function cr(n){return n}function Am(n){return 0===n.length?cr:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}let De=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function hM(n){return n&&n instanceof Jc||function dM(n){return n&&ne(n.next)&&ne(n.error)&&ne(n.complete)}(n)&&Em(n)}(t)?t:new Mo(t,r,i);return Js(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Im(r))((i,o)=>{const s=new Mo({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[nu](){return this}pipe(...t){return Am(t)(this)}toPromise(t){return new(t=Im(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return n.create=e=>new n(e),n})();function Im(n){var e;return null!==(e=n??kr.Promise)&&void 0!==e?e:Promise}const fM=So(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let de=(()=>{class n extends De{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Tm(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new fM}next(t){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Js(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?Dm:(this.currentObservers=null,o.push(t),new nt(()=>{this.currentObservers=null,hi(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new De;return t.source=this,t}}return n.create=(e,t)=>new Tm(e,t),n})();class Tm extends de{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:Dm}}function xm(n){return ne(n?.lift)}function Re(n){return e=>{if(xm(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ee(n,e,t,r,i){return new pM(n,e,t,r,i)}class pM extends Jc{constructor(e,t,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function B(n,e){return Re((t,r)=>{let i=0;t.subscribe(Ee(r,o=>{r.next(n.call(e,o,i++))}))})}function ur(n){return this instanceof ur?(this.v=n,this):new ur(n)}function km(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(n,e||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(f,p){r[f]&&(i[f]=function(m){return new Promise(function(g,b){o.push([f,m,g,b])>1||l(f,m)})},p&&(i[f]=p(i[f])))}function l(f,p){try{!function c(f){f.value instanceof ur?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}(r[f](p))}catch(m){h(o[0][3],m)}}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Om(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function su(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=n[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const lu=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Pm(n){return ne(n?.then)}function Nm(n){return ne(n[nu])}function Lm(n){return Symbol.asyncIterator&&ne(n?.[Symbol.asyncIterator])}function Vm(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Bm=function jM(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Hm(n){return ne(n?.[Bm])}function jm(n){return km(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield ur(t.read());if(i)return yield ur(void 0);yield yield ur(r)}}finally{t.releaseLock()}})}function Um(n){return ne(n?.getReader)}function bt(n){if(n instanceof De)return n;if(null!=n){if(Nm(n))return function UM(n){return new De(e=>{const t=n[nu]();if(ne(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(lu(n))return function $M(n){return new De(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Mm)})}(n);if(Lm(n))return $m(n);if(Hm(n))return function GM(n){return new De(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(Um(n))return function WM(n){return $m(jm(n))}(n)}throw Vm(n)}function $m(n){return new De(e=>{(function qM(n,e){var t,r,i,o;return function Rm(n,e,t,r){return new(t||(t=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Om(n);!(r=yield t.next()).done;)if(e.next(r.value),e.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Bn(n,e,t,r=0,i=!1){const o=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function Xe(n,e,t=1/0){return ne(e)?Xe((r,i)=>B((o,s)=>e(r,o,i,s))(bt(n(r,i))),t):("number"==typeof e&&(t=e),Re((r,i)=>function KM(n,e,t,r,i,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&e.complete()},f=m=>c{o&&e.next(m),c++;let g=!1;bt(t(m,u++)).subscribe(Ee(e,b=>{i?.(b),o?f(b):e.next(b)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;l.length&&cp(b)):p(b)}h()}catch(b){e.error(b)}}))};return n.subscribe(Ee(e,f,()=>{d=!0,h()})),()=>{a?.()}}(r,i,n,t)))}function fi(n=1/0){return Xe(cr,n)}const Hn=new De(n=>n.complete());function zm(n){return n&&ne(n.schedule)}function cu(n){return n[n.length-1]}function Gm(n){return ne(cu(n))?n.pop():void 0}function Ao(n){return zm(cu(n))?n.pop():void 0}function Wm(n,e=0){return Re((t,r)=>{t.subscribe(Ee(r,i=>Bn(r,n,()=>r.next(i),e),()=>Bn(r,n,()=>r.complete(),e),i=>Bn(r,n,()=>r.error(i),e)))})}function qm(n,e=0){return Re((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function Km(n,e){if(!n)throw new Error("Iterable cannot be null");return new De(t=>{Bn(t,e,()=>{const r=n[Symbol.asyncIterator]();Bn(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function He(n,e){return e?function nA(n,e){if(null!=n){if(Nm(n))return function QM(n,e){return bt(n).pipe(qm(e),Wm(e))}(n,e);if(lu(n))return function JM(n,e){return new De(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(Pm(n))return function XM(n,e){return bt(n).pipe(qm(e),Wm(e))}(n,e);if(Lm(n))return Km(n,e);if(Hm(n))return function eA(n,e){return new De(t=>{let r;return Bn(t,e,()=>{r=n[Bm](),Bn(t,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>ne(r?.return)&&r.return()})}(n,e);if(Um(n))return function tA(n,e){return Km(jm(n),e)}(n,e)}throw Vm(n)}(n,e):bt(n)}function uu(...n){const e=Ao(n),t=function ZM(n,e){return"number"==typeof cu(n)?n.pop():e}(n,1/0),r=n;return r.length?1===r.length?bt(r[0]):fi(t)(He(r,e)):Hn}function Ym(n={}){const{connector:e=(()=>new de),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const m=s;f(),m?.unsubscribe()};return Re((m,g)=>{c++,!d&&!u&&h();const b=l=l??e();g.add(()=>{c--,0===c&&!d&&!u&&(a=du(p,i))}),b.subscribe(g),!s&&c>0&&(s=new Mo({next:D=>b.next(D),error:D=>{d=!0,h(),a=du(f,t,D),b.error(D)},complete:()=>{u=!0,h(),a=du(f,r),b.complete()}}),bt(m).subscribe(s))})(o)}}function du(n,e,...t){if(!0===e)return void n();if(!1===e)return;const r=new Mo({next:()=>{r.unsubscribe(),n()}});return e(...t).subscribe(r)}function fe(n){for(let e in n)if(n[e]===fe)return e;throw Error("Could not find renamed property on target object.")}function hu(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function pe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(pe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function fu(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const rA=fe({__forward_ref__:fe});function ge(n){return n.__forward_ref__=ge,n.toString=function(){return pe(this())},n}function V(n){return pu(n)?n():n}function pu(n){return"function"==typeof n&&n.hasOwnProperty(rA)&&n.__forward_ref__===ge}class C extends Error{constructor(e,t){super(function ta(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function j(n){return"string"==typeof n?n:null==n?"":String(n)}function na(n,e){throw new C(-201,!1)}function At(n,e){null==n&&function ce(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function S(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function he(n){return{providers:n.providers||[],imports:n.imports||[]}}function ra(n){return Zm(n,ia)||Zm(n,Xm)}function Zm(n,e){return n.hasOwnProperty(e)?n[e]:null}function Qm(n){return n&&(n.hasOwnProperty(mu)||n.hasOwnProperty(hA))?n[mu]:null}const ia=fe({\u0275prov:fe}),mu=fe({\u0275inj:fe}),Xm=fe({ngInjectableDef:fe}),hA=fe({ngInjectorDef:fe});var k=(()=>((k=k||{})[k.Default=0]="Default",k[k.Host=1]="Host",k[k.Self=2]="Self",k[k.SkipSelf=4]="SkipSelf",k[k.Optional=8]="Optional",k))();let gu;function zt(n){const e=gu;return gu=n,e}function Jm(n,e,t){const r=ra(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&k.Optional?null:void 0!==e?e:void na(pe(n))}function dr(n){return{toString:n}.toString()}var rn=(()=>((rn=rn||{})[rn.OnPush=0]="OnPush",rn[rn.Default=1]="Default",rn))(),on=(()=>{return(n=on||(on={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",on;var n})();const _e=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),pi={},se=[],oa=fe({\u0275cmp:fe}),_u=fe({\u0275dir:fe}),yu=fe({\u0275pipe:fe}),eg=fe({\u0275mod:fe}),Un=fe({\u0275fac:fe}),Io=fe({__NG_ELEMENT_ID__:fe});let pA=0;function Fe(n){return dr(()=>{const t=!0===n.standalone,r={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===rn.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||se,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||on.Emulated,id:"c"+pA++,styles:n.styles||se,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return i.inputs=rg(n.inputs,r),i.outputs=rg(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(tg).filter(ng):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ht).filter(ng):null,i})}function tg(n){return ue(n)||dt(n)}function ng(n){return null!==n}function me(n){return dr(()=>({type:n.type,bootstrap:n.bootstrap||se,declarations:n.declarations||se,imports:n.imports||se,exports:n.exports||se,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function rg(n,e){if(null==n)return pi;const t={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,e&&(e[i]=o)}return t}const P=Fe;function ue(n){return n[oa]||null}function dt(n){return n[_u]||null}function ht(n){return n[yu]||null}function It(n,e){const t=n[eg]||null;if(!t&&!0===e)throw new Error(`Type ${pe(n)} does not have '\u0275mod' property.`);return t}const z=11;function wt(n){return Array.isArray(n)&&"object"==typeof n[1]}function an(n){return Array.isArray(n)&&!0===n[1]}function Cu(n){return 0!=(8&n.flags)}function ca(n){return 2==(2&n.flags)}function ua(n){return 1==(1&n.flags)}function ln(n){return null!==n.template}function bA(n){return 0!=(256&n[2])}function Br(n,e){return n.hasOwnProperty(Un)?n[Un]:null}class DA{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function sg(n){return n.type.prototype.ngOnChanges&&(n.setInput=SA),EA}function EA(){const n=lg(this),e=n?.current;if(e){const t=n.previous;if(t===pi)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function SA(n,e,t,r){const i=lg(n)||function MA(n,e){return n[ag]=e}(n,{previous:pi,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[t],l=s[a];o[a]=new DA(l&&l.currentValue,e,s===pi),n[r]=e}const ag="__ngSimpleChanges__";function lg(n){return n[ag]||null}function je(n){for(;Array.isArray(n);)n=n[0];return n}function da(n,e){return je(e[n])}function xt(n,e){return je(e[n.index])}function Mu(n,e){return n.data[e]}function Rt(n,e){const t=e[n];return wt(t)?t:t[0]}function ha(n){return 64==(64&n[2])}function hr(n,e){return null==e?null:n[e]}function cg(n){n[18]=0}function Au(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const H={lFrame:vg(null),bindingsEnabled:!0};function dg(){return H.bindingsEnabled}function w(){return H.lFrame.lView}function ee(){return H.lFrame.tView}function fa(n){return H.lFrame.contextLView=n,n[8]}function pa(n){return H.lFrame.contextLView=null,n}function We(){let n=hg();for(;null!==n&&64===n.type;)n=n.parent;return n}function hg(){return H.lFrame.currentTNode}function Cn(n,e){const t=H.lFrame;t.currentTNode=n,t.isParent=e}function Iu(){return H.lFrame.isParent}function Tu(){H.lFrame.isParent=!1}function bi(){return H.lFrame.bindingIndex++}function zn(n){const e=H.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function jA(n,e){const t=H.lFrame;t.bindingIndex=t.bindingRootIndex=n,xu(e)}function xu(n){H.lFrame.currentDirectiveIndex=n}function Ru(n){const e=H.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}function gg(){return H.lFrame.currentQueryIndex}function Fu(n){H.lFrame.currentQueryIndex=n}function $A(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function _g(n,e,t){if(t&k.SkipSelf){let i=e,o=n;for(;!(i=i.parent,null!==i||t&k.Host||(i=$A(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;e=i,n=o}const r=H.lFrame=yg();return r.currentTNode=e,r.lView=n,!0}function ku(n){const e=yg(),t=n[1];H.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function yg(){const n=H.lFrame,e=null===n?null:n.child;return null===e?vg(n):e}function vg(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function bg(){const n=H.lFrame;return H.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Cg=bg;function Ou(){const n=bg();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function pt(){return H.lFrame.selectedIndex}function fr(n){H.lFrame.selectedIndex=n}function Ae(){const n=H.lFrame;return Mu(n.tView,n.selectedIndex)}function ma(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t=r)break}else e[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Oo{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function ya(n,e,t){let r=0;for(;re){s=o-1;break}}}for(;o>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let Lu=!0;function ba(n){const e=Lu;return Lu=n,e}let iI=0;const wn={};function No(n,e){const t=Bu(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,Vu(r.data,n),Vu(e,null),Vu(r.blueprint,null));const i=Ca(n,e),o=n.injectorIndex;if(Mg(i)){const s=Ci(i),a=wi(i,e),l=a[1].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=i,o}function Vu(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Bu(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Ca(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){if(r=Pg(i),null===r)return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function wa(n,e,t){!function oI(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Io)&&(r=t[Io]),null==r&&(r=t[Io]=iI++);const i=255&r;e.data[n+(i>>5)]|=1<=0?255&e:cI:e}(t);if("function"==typeof o){if(!_g(e,n,r))return r&k.Host?Tg(i,0,r):xg(e,t,r,i);try{const s=o(r);if(null!=s||r&k.Optional)return s;na()}finally{Cg()}}else if("number"==typeof o){let s=null,a=Bu(n,e),l=-1,c=r&k.Host?e[16][6]:null;for((-1===a||r&k.SkipSelf)&&(l=-1===a?Ca(n,e):e[a+8],-1!==l&&Og(r,!1)?(s=e[1],a=Ci(l),e=wi(l,e)):a=-1);-1!==a;){const u=e[1];if(kg(o,a,u.data)){const d=aI(a,e,t,s,r,c);if(d!==wn)return d}l=e[a+8],-1!==l&&Og(r,e[1].data[a+8]===c)&&kg(o,a,e)?(s=u,a=Ci(l),e=wi(l,e)):a=-1}}return i}function aI(n,e,t,r,i,o){const s=e[1],a=s.data[n+8],u=Da(a,s,t,null==r?ca(a)&&Lu:r!=s&&0!=(3&a.type),i&k.Host&&o===a);return null!==u?Lo(e,s,u,a):wn}function Da(n,e,t,r,i){const o=n.providerIndexes,s=e.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=i?a+u:n.directiveEnd;for(let f=r?a:a+u;f=l&&p.type===t)return f}if(i){const f=s[l];if(f&&ln(f)&&f.type===t)return l}return null}function Lo(n,e,t,r){let i=n[t];const o=e.data;if(function JA(n){return n instanceof Oo}(i)){const s=i;s.resolving&&function iA(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new C(-200,`Circular dependency in DI detected for ${n}${t}`)}(function oe(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():j(n)}(o[t]));const a=ba(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?zt(s.injectImpl):null;_g(n,r,k.Default);try{i=n[t]=s.factory(void 0,o,n,r),e.firstCreatePass&&t>=r.directiveStart&&function QA(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const s=sg(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,i),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o))}(t,o[t],e)}finally{null!==l&&zt(l),ba(a),s.resolving=!1,Cg()}}return i}function kg(n,e,t){return!!(t[e+(n>>5)]&1<{const e=n.prototype.constructor,t=e[Un]||Hu(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[Un]||Hu(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Hu(n){return pu(n)?()=>{const e=Hu(V(n));return e&&e()}:Br(n)}function Pg(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}function Ei(n){return function sI(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const r=t.length;let i=0;for(;i{const r=function ju(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}(e);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,c,u){const d=l.hasOwnProperty(Mi)?l[Mi]:Object.defineProperty(l,Mi,{value:[]})[Mi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class E{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ft(n,e){void 0===e&&(e=n);for(let t=0;tArray.isArray(t)?Gn(t,e):e(t))}function Lg(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Ea(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Ho(n,e){const t=[];for(let r=0;r=0?n[1|r]=t:(r=~r,function pI(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function $u(n,e){const t=Ti(n,e);if(t>=0)return n[1|t]}function Ti(n,e){return function Hg(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=n[o<e?i=o:r=o+1}return~(i<((Dt=Dt||{})[Dt.Important=1]="Important",Dt[Dt.DashCase=2]="DashCase",Dt))();const Qu=new Map;let $I=0;const Ju="__ngContext__";function at(n,e){wt(e)?(n[Ju]=e[20],function GI(n){Qu.set(n[20],n)}(e)):n[Ju]=e}function td(n,e){return undefined(n,e)}function qo(n){const e=n[3];return an(e)?e[3]:e}function nd(n){return l_(n[13])}function rd(n){return l_(n[4])}function l_(n){for(;null!==n&&!an(n);)n=n[4];return n}function ki(n,e,t,r,i){if(null!=r){let o,s=!1;an(r)?o=r:wt(r)&&(s=!0,r=r[0]);const a=je(r);0===n&&null!==t?null==i?p_(e,t,a):Hr(e,t,a,i||null,!0):1===n&&null!==t?Hr(e,t,a,i||null,!0):2===n?function ud(n,e,t){const r=Ta(n,e);r&&function fT(n,e,t,r){n.removeChild(e,t,r)}(n,r,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=o&&function gT(n,e,t,r,i){const o=t[7];o!==je(t)&&ki(e,n,r,o,i);for(let a=10;a0&&(n[t-1][4]=r[4]);const o=Ea(n,10+e);!function oT(n,e){Ko(n,e,e[z],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function d_(n,e){if(!(128&e[2])){const t=e[z];t.destroyNode&&Ko(n,e,t,3,null,null),function lT(n){let e=n[13];if(!e)return ad(n[1],n);for(;e;){let t=null;if(wt(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)wt(e)&&ad(e[1],e),e=e[3];null===e&&(e=n),wt(e)&&ad(e[1],e),t=e&&e[4]}e=t}}(e)}}function ad(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function hT(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{const s=r[i=t[o+1]];t[o].call(s)}if(null!==r){for(let o=i+1;on,createScript:n=>n,createScriptURL:n=>n})}catch{}return Fa}()?.createHTML(n)||n}function M_(n){return function md(){if(void 0===ka&&(ka=null,_e.trustedTypes))try{ka=_e.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return ka}()?.createScriptURL(n)||n}class Ur{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wT extends Ur{getTypeName(){return"HTML"}}class DT extends Ur{getTypeName(){return"Style"}}class ET extends Ur{getTypeName(){return"Script"}}class ST extends Ur{getTypeName(){return"URL"}}class MT extends Ur{getTypeName(){return"ResourceURL"}}function Ot(n){return n instanceof Ur?n.changingThisBreaksApplicationSecurity:n}function Dn(n,e){const t=function AT(n){return n instanceof Ur&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}class kT{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(jr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class OT{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const r=this.inertDocument.createElement("body");t.appendChild(r)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=jr(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=jr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0"),!0}endElement(e){const t=e.nodeName.toLowerCase();gd.hasOwnProperty(t)&&!I_.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(F_(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const BT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,HT=/([^\#-~ |!])/g;function F_(n){return n.replace(/&/g,"&").replace(BT,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(HT,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Pa;function k_(n,e){let t=null;try{Pa=Pa||function A_(n){const e=new OT(n);return function PT(){try{return!!(new window.DOMParser).parseFromString(jr(""),"text/html")}catch{return!1}}()?new kT(e):e}(n);let r=e?String(e):"";t=Pa.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=Pa.getInertBodyElement(r)}while(r!==o);return jr((new VT).sanitizeChildren(yd(t)||t))}finally{if(t){const r=yd(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function yd(n){return"content"in n&&function jT(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ae=(()=>((ae=ae||{})[ae.NONE=0]="NONE",ae[ae.HTML=1]="HTML",ae[ae.STYLE=2]="STYLE",ae[ae.SCRIPT=3]="SCRIPT",ae[ae.URL=4]="URL",ae[ae.RESOURCE_URL=5]="RESOURCE_URL",ae))();function bd(n){const e=function Zo(){const n=w();return n&&n[12]}();if(e)return M_(e.sanitize(ae.RESOURCE_URL,n)||"");if(Dn(n,"ResourceURL"))return M_(Ot(n));throw new C(904,!1)}const Cd=new E("ENVIRONMENT_INITIALIZER"),O_=new E("INJECTOR",-1),P_=new E("INJECTOR_DEF_TYPES");class N_{get(e,t=jo){if(t===jo){const r=new Error(`NullInjectorError: No provider for ${pe(e)}!`);throw r.name="NullInjectorError",r}return t}}function YT(...n){return{\u0275providers:L_(0,n)}}function L_(n,...e){const t=[],r=new Set;let i;return Gn(e,o=>{const s=o;wd(s,t,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&V_(i,t),t}function V_(n,e){for(let t=0;t{e.push(o)})}}function wd(n,e,t,r){if(!(n=V(n)))return!1;let i=null,o=Qm(n);const s=!o&&ue(n);if(o||s){if(s&&!s.standalone)return!1;i=n}else{const l=n.ngModule;if(o=Qm(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 c of l)wd(c,e,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;r.add(i);try{Gn(o.imports,u=>{wd(u,e,t,r)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&V_(c,e)}if(!a){const c=Br(i)||(()=>new i);e.push({provide:i,useFactory:c,deps:se},{provide:P_,useValue:i,multi:!0},{provide:Cd,useValue:()=>y(i),multi:!0})}const l=o.providers;null==l||a||Gn(l,u=>{e.push(u)})}}return i!==n&&void 0!==n.providers}const ZT=fe({provide:String,useValue:fe});function Dd(n){return null!==n&&"object"==typeof n&&ZT in n}function $r(n){return"function"==typeof n}const Ed=new E("Set Injector scope."),Na={},XT={};let Sd;function La(){return void 0===Sd&&(Sd=new N_),Sd}class gr{}class j_ extends gr{constructor(e,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ad(e,s=>this.processProvider(s)),this.records.set(O_,Oi(void 0,this)),i.has("environment")&&this.records.set(gr,Oi(void 0,this));const o=this.records.get(Ed);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(P_.multi,se,k.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=xi(this),r=zt(void 0);try{return e()}finally{xi(t),zt(r)}}get(e,t=jo,r=k.Default){this.assertNotDestroyed();const i=xi(this),o=zt(void 0);try{if(!(r&k.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function rx(n){return"function"==typeof n||"object"==typeof n&&n instanceof E}(e)&&ra(e);a=l&&this.injectableDefInScope(l)?Oi(Md(e),Na):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&k.Self?La():this.parent).get(e,t=r&k.Optional&&t===jo?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Ma]=s[Ma]||[]).unshift(pe(e)),i)throw s;return function MI(n,e,t,r){const i=n[Ma];throw e[jg]&&i.unshift(e[jg]),n.message=function AI(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let i=pe(e);if(Array.isArray(e))i=e.map(pe).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):pe(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(wI,"\n ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[Ma]=null,n}(s,e,"R3InjectorError",this.source)}throw s}finally{zt(o),xi(i)}}resolveInjectorInitializers(){const e=xi(this),t=zt(void 0);try{const r=this.get(Cd.multi,se,k.Self);for(const i of r)i()}finally{xi(e),zt(t)}}toString(){const e=[],t=this.records;for(const r of t.keys())e.push(pe(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){let t=$r(e=V(e))?e:V(e&&e.provide);const r=function ex(n){return Dd(n)?Oi(void 0,n.useValue):Oi(function U_(n,e,t){let r;if($r(n)){const i=V(n);return Br(i)||Md(i)}if(Dd(n))r=()=>V(n.useValue);else if(function H_(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...Wu(n.deps||[]));else if(function B_(n){return!(!n||!n.useExisting)}(n))r=()=>y(V(n.useExisting));else{const i=V(n&&(n.useClass||n.provide));if(!function tx(n){return!!n.deps}(n))return Br(i)||Md(i);r=()=>new i(...Wu(n.deps))}return r}(n),Na)}(e);if($r(e)||!0!==e.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=Oi(void 0,Na,!0),i.factory=()=>Wu(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,r)}hydrate(e,t){return t.value===Na&&(t.value=XT,t.value=t.factory()),"object"==typeof t.value&&t.value&&function nx(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=V(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function Md(n){const e=ra(n),t=null!==e?e.factory:Br(n);if(null!==t)return t;if(n instanceof E)throw new C(204,!1);if(n instanceof Function)return function JT(n){const e=n.length;if(e>0)throw Ho(e,"?"),new C(204,!1);const t=function uA(n){const e=n&&(n[ia]||n[Xm]);if(e){const t=function dA(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new C(204,!1)}function Oi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function ix(n){return!!n.\u0275providers}function Ad(n,e){for(const t of n)Array.isArray(t)?Ad(t,e):ix(t)?Ad(t.\u0275providers,e):e(t)}class $_{}class ax{resolveComponentFactory(e){throw function sx(n){const e=Error(`No component factory found for ${pe(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let zr=(()=>{class n{}return n.NULL=new ax,n})();function lx(){return Pi(We(),w())}function Pi(n,e){return new Ue(xt(n,e))}let Ue=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=lx,n})();function cx(n){return n instanceof Ue?n.nativeElement:n}class Qo{}let dx=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>null}),n})();class Gr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const hx=new Gr("14.3.0"),Id={};function xd(n){return n.ngOriginalError}class Kn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&xd(e);for(;t&&xd(t);)t=xd(t);return t||null}}function Ni(n){return n.ownerDocument}function Yn(n){return n instanceof Function?n():n}function W_(n,e,t){let r=n.length;for(;;){const i=n.indexOf(e,t);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||n.charCodeAt(i+o)<=32)return i}t=i+1}}const q_="ng-template";function wx(n,e,t){let r=0;for(;ro?"":i[d+1].toLowerCase();const f=8&r?h:null;if(f&&-1!==W_(f,c,0)||2&r&&c!==h){if(cn(r))return!1;s=!0}}}}else{if(!s&&!cn(r)&&!cn(l))return!1;if(s&&cn(l))continue;s=!1,r=l|1&r}}return cn(r)||s}function cn(n){return 0==(1&n)}function Sx(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!cn(s)&&(e+=Z_(o,i),i=""),r=s,o=o||!cn(r);t++}return""!==i&&(e+=Z_(o,i)),e}const U={};function Ce(n){Q_(ee(),w(),pt()+n,!1)}function Q_(n,e,t,r){if(!r)if(3==(3&e[2])){const o=n.preOrderCheckHooks;null!==o&&ga(e,o,t)}else{const o=n.preOrderHooks;null!==o&&_a(e,o,0,t)}fr(t)}function ty(n,e=null,t=null,r){const i=ny(n,e,t,r);return i.resolveInjectorInitializers(),i}function ny(n,e=null,t=null,r,i=new Set){const o=[t||se,YT(n)];return r=r||("object"==typeof n?void 0:pe(n)),new j_(o,e||La(),r||null,i)}let Ke=(()=>{class n{static create(t,r){if(Array.isArray(t))return ty({name:""},r,t,"");{const i=t.name??"";return ty({name:i},t.parent,t.providers,i)}}}return n.THROW_IF_NOT_FOUND=jo,n.NULL=new N_,n.\u0275prov=S({token:n,providedIn:"any",factory:()=>y(O_)}),n.__NG_ELEMENT_ID__=-1,n})();function _(n,e=k.Default){const t=w();return null===t?y(n,e):Rg(We(),t,V(n),e)}function Ba(){throw new Error("invalid")}function Ha(n,e){return n<<17|e<<2}function un(n){return n>>17&32767}function Pd(n){return 2|n}function Zn(n){return(131068&n)>>2}function Nd(n,e){return-131069&n|e<<2}function Ld(n){return 1|n}function vy(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r22&&Q_(n,e,22,!1),t(r,i)}finally{fr(o)}}function qd(n,e,t){!dg()||(function _R(n,e,t,r){const i=t.directiveStart,o=t.directiveEnd;n.firstCreatePass||No(t,e),at(r,e);const s=t.initialInputs;for(let a=i;a0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(r,i,s)}}function Iy(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Ty(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function CR(n,e,t){if(t){if(e.exportAs)for(let r=0;r0&&Xd(t)}}function Xd(n){for(let r=nd(n);null!==r;r=rd(r))for(let i=10;i0&&Xd(o)}const t=n[1].components;if(null!==t)for(let r=0;r0&&Xd(i)}}function IR(n,e){const t=Rt(e,n),r=t[1];(function TR(n,e){for(let t=e.length;t-1&&(sd(e,r),Ea(t,r))}this._attachedToViewContainer=!1}d_(this._lView[1],this._lView)}onDestroy(e){Dy(this._lView[1],this._lView,null,e)}markForCheck(){Jd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Wa(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function aT(n,e){Ko(n,e,e[z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e}}class xR extends Xo{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Wa(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class nh extends zr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ue(e);return new Jo(t,this.ngModule)}}function Ly(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class FR{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,r){const i=this.injector.get(e,Id,r);return i!==Id||t===Id?i:this.parentInjector.get(e,t,r)}}class Jo extends $_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function Rx(n){return n.map(xx).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Ly(this.componentDef.inputs)}get outputs(){return Ly(this.componentDef.outputs)}create(e,t,r,i){let o=(i=i||this.ngModule)instanceof gr?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new FR(e,o):e,a=s.get(Qo,null);if(null===a)throw new C(407,!1);const l=s.get(dx,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=r?function dR(n,e,t){return n.selectRootElement(e,t===on.ShadowDom)}(c,r,this.componentDef.encapsulation):od(c,u,function RR(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),h=this.componentDef.onPush?288:272,f=Yd(0,null,null,1,0,null,null,null,null,null),p=$a(null,f,null,h,null,null,a,c,l,s,null);let m,g;ku(p);try{const b=function PR(n,e,t,r,i,o){const s=t[1];t[22]=n;const l=Bi(s,22,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(qa(l,c,!0),null!==n&&(ya(i,n,c),null!==l.classes&&hd(i,n,l.classes),null!==l.styles&&w_(i,n,l.styles)));const u=r.createRenderer(n,e),d=$a(t,wy(e),null,e.onPush?32:16,t[22],l,r,u,o||null,null,null);return s.firstCreatePass&&(wa(No(l,t),s,e.type),Ty(s,l),xy(l,t.length,1)),Ga(t,d),t[22]=d}(d,this.componentDef,p,a,c);if(d)if(r)ya(c,d,["ng-version",hx.full]);else{const{attrs:D,classes:v}=function Fx(n){const e=[],t=[];let r=1,i=2;for(;r0&&hd(c,d,v.join(" "))}if(g=Mu(f,22),void 0!==t){const D=g.projection=[];for(let v=0;v=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=va(i.hostAttrs,t=va(t,i.hostAttrs))}}(r)}function rh(n){return n===pi?{}:n===se?[]:n}function BR(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function HR(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,o)=>{e(r,i,o),t(r,i,o)}:e}function jR(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}let Ya=null;function Wr(){if(!Ya){const n=_e.Symbol;if(n&&n.iterator)Ya=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(je(q[r.index])):r.index;let I=null;if(!a&&l&&(I=function eF(n,e,t,r){const i=n.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,i,r.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,f=!1;else{o=Xy(r,e,d,o,!1);const q=t.listen(b,i,o);h.push(o,q),u&&u.push(i,v,D,D+1)}}else o=Xy(r,e,d,o,!1);const p=r.outputs;let m;if(f&&null!==p&&(m=p[i])){const g=m.length;if(g)for(let b=0;b0;)e=e[15],n--;return e}(n,H.lFrame.contextLView))[8]}(n)}function tF(n,e){let t=null;const r=function Mx(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let i=0;i=0}function hn(n,e){return function fn(n,e,t,r){const i=w(),o=ee(),s=zn(2);o.firstUpdatePass&&function vv(n,e,t,r){const i=n.data;if(null===i[t+1]){const o=i[pt()],s=function yv(n,e){return e>=n.expandoStartIndex}(n,t);(function Dv(n,e){return 0!=(n.flags&(e?16:32))})(o,r)&&null===e&&!s&&(e=!1),e=function fF(n,e,t,r){const i=Ru(n);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=rs(t=dh(null,n,e,t,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==i)if(t=dh(i,n,e,t,r),null===o){let l=function pF(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==Zn(r))return n[un(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=dh(null,n,e,l[1],r),l=rs(l,e.attrs,r),function mF(n,e,t,r){n[un(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else o=function gF(n,e,t){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)}else u=t;if(i)if(0!==l){const h=un(n[a+1]);n[r+1]=Ha(h,a),0!==h&&(n[h+1]=Nd(n[h+1],r)),n[a+1]=function Qx(n,e){return 131071&n|e<<17}(n[a+1],r)}else n[r+1]=Ha(a,0),0!==a&&(n[a+1]=Nd(n[a+1],r)),a=r;else n[r+1]=Ha(l,0),0===a?a=r:n[l+1]=Nd(n[l+1],r),l=r;c&&(n[r+1]=Pd(n[r+1])),uv(n,u,r,!0),uv(n,u,r,!1),function rF(n,e,t,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&Ti(o,e)>=0&&(t[r+1]=Ld(t[r+1]))}(e,u,n,r,o),s=Ha(a,l),o?e.classBindings=s:e.styleBindings=s}(i,o,e,t,s,r)}}(o,n,s,r),e!==U&<(i,s,e)&&function Cv(n,e,t,r,i,o,s,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Xa(function dy(n){return 1==(1&n)}(c)?wv(l,e,t,i,Zn(c),s):void 0)||(Xa(o)||function uy(n){return 2==(2&n)}(c)&&(o=wv(l,null,t,i,a,s)),function _T(n,e,t,r,i){if(e)i?n.addClass(t,r):n.removeClass(t,r);else{let o=-1===r.indexOf("-")?void 0:Dt.DashCase;null==i?n.removeStyle(t,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Dt.Important),n.setStyle(t,r,i,o))}}(r,s,da(pt(),t),i,o))}(o,o.data[pt()],i,i[z],n,i[s+1]=function vF(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=pe(Ot(n)))),n}(e,t),r,s)}(n,e,null,!0),hn}function dh(n,e,t,r,i){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[i+1];h===U&&(h=d?se:void 0);let f=d?$u(h,r):u===r?h:void 0;if(c&&!Xa(f)&&(f=$u(l,r)),Xa(f)&&(a=f,s))return a;const p=n[i+1];i=s?un(p):Zn(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=$u(l,r))}return a}function Xa(n){return void 0!==n}function Ne(n,e=""){const t=w(),r=ee(),i=n+22,o=r.firstCreatePass?Bi(r,i,1,e,null):r.data[i],s=t[i]=function id(n,e){return n.createText(e)}(t[z],e);xa(r,t,s,o),Cn(o,!1)}function Et(n){return Qi("",n,""),Et}function Qi(n,e,t){const r=w(),i=function Ui(n,e,t,r){return lt(n,bi(),t)?e+j(t)+r:U}(r,n,e,t);return i!==U&&Qn(r,pt(),i),Qi}function hh(n,e,t,r,i,o,s){const a=w(),l=zi(a,n,e,t,r,i,o,s);return l!==U&&Qn(a,pt(),l),hh}function fh(n,e,t){const r=w();return lt(r,bi(),e)&&Pt(ee(),Ae(),r,n,e,r[z],t,!0),fh}function ph(n,e,t){const r=w();if(lt(r,bi(),e)){const o=ee(),s=Ae();Pt(o,s,r,n,e,Py(Ru(o.data),s,r),t,!0)}return ph}const Ji="en-US";let Uv=Ji;class Yr{}class pb{}class mb extends Yr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nh(this);const r=It(e);this._bootstrapComponents=Yn(r.bootstrap),this._r3Injector=ny(e,t,[{provide:Yr,useValue:this},{provide:zr,useValue:this.componentFactoryResolver}],pe(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ch extends pb{constructor(e){super(),this.moduleType=e}create(e){return new mb(this.moduleType,e)}}class Bk extends Yr{constructor(e,t,r){super(),this.componentFactoryResolver=new nh(this),this.instance=null;const i=new j_([...e,{provide:Yr,useValue:this},{provide:zr,useValue:this.componentFactoryResolver}],t||La(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function rl(n,e,t=null){return new Bk(n,e,t).injector}let Hk=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const r=L_(0,t.type),i=r.length>0?rl([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,i)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=S({token:n,providedIn:"environment",factory:()=>new n(y(gr))}),n})();function gb(n){n.getStandaloneInjector=e=>e.get(Hk).getOrCreateStandaloneInjector(n)}function Dh(n){return e=>{setTimeout(n,void 0,e)}}const we=class hO extends de{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let i=e,o=t||(()=>null),s=r;if(e&&"object"==typeof e){const l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Dh(o),i&&(i=Dh(i)),s&&(s=Dh(s)));const a=super.subscribe({next:i,error:o,complete:s});return e instanceof nt&&e.add(a),a}};function fO(){return this._results[Wr()]()}class Eh{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Wr(),r=Eh.prototype;r[t]||(r[t]=fO)}get changes(){return this._changes||(this._changes=new we)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const r=this;r.dirty=!1;const i=Ft(e);(this._changesDetected=!function hI(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r{class n{}return n.__NG_ELEMENT_ID__=gO,n})();const pO=xn,mO=class extends pO{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e,t){const r=this._declarationTContainer.tViews,i=$a(this._declarationLView,r,e,16,null,r.declTNode,null,null,null,null,t||null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(r)),Wd(r,i,e),new Xo(i)}};function gO(){return il(We(),w())}function il(n,e){return 4&n.type?new mO(e,n,Pi(n,e)):null}let Yt=(()=>{class n{}return n.__NG_ELEMENT_ID__=_O,n})();function _O(){return xb(We(),w())}const yO=Yt,Ib=class extends yO{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return Pi(this._hostTNode,this._hostLView)}get injector(){return new Di(this._hostTNode,this._hostLView)}get parentInjector(){const e=Ca(this._hostTNode,this._hostLView);if(Mg(e)){const t=wi(e,this._hostLView),r=Ci(e);return new Di(t[1].data[r+8],t)}return new Di(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Tb(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=e.createEmbeddedView(t||{},o);return this.insert(s,i),s}createComponent(e,t,r,i,o){const s=e&&!function Bo(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?e:new Jo(ue(e)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(gr,null);h&&(o=h)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,a),u}insert(e,t){const r=e._lView,i=r[1];if(function kA(n){return an(n[3])}(r)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=r[3],h=new Ib(d,d[6],d[3]);h.detach(h.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;!function cT(n,e,t,r){const i=10+r,o=t.length;r>0&&(t[i-1][4]=e),r0)r.push(s[a/2]);else{const c=o[a+1],u=e[-l];for(let d=10;d{class n{constructor(t){this.appInits=t,this.resolve=ll,this.reject=ll,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(y(cl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hs=new E("AppId",{providedIn:"root",factory:function tC(){return`${Nh()}${Nh()}${Nh()}`}});function Nh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nC=new E("Platform Initializer"),Lh=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),rC=new E("appBootstrapListener"),dl=new E("AnimationModuleType");let qO=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Rn=new E("LocaleId",{providedIn:"root",factory:()=>be(Rn,k.Optional|k.SkipSelf)||function KO(){return typeof $localize<"u"&&$localize.locale||Ji}()});class ZO{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let Vh=(()=>{class n{compileModuleSync(t){return new Ch(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=Yn(It(t).declarations).reduce((s,a)=>{const l=ue(a);return l&&s.push(new Jo(l)),s},[]);return new ZO(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const JO=(()=>Promise.resolve(0))();function Bh(n){typeof Zone>"u"?JO.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class te{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new we(!1),this.onMicrotaskEmpty=new we(!1),this.onStable=new we(!1),this.onError=new we(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const i=this;if(i._nesting=0,i._outer=i._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;i._inner=i._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function eP(){let n=_e.requestAnimationFrame,e=_e.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function rP(n){const e=()=>{!function nP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(_e,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,jh(n),n.isCheckStableRunning=!0,Hh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),jh(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{try{return sC(n),t.invokeTask(i,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),aC(n)}},onInvoke:(t,r,i,o,s,a,l)=>{try{return sC(n),t.invoke(i,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),aC(n)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,jh(n),Hh(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!te.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(te.isInAngularZone())throw new C(909,!1)}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,tP,ll,ll);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const tP={};function Hh(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function jh(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function sC(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function aC(n){n._nesting--,Hh(n)}class iP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new we,this.onMicrotaskEmpty=new we,this.onStable=new we,this.onError=new we}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}const lC=new E(""),hl=new E("");let zh,Uh=(()=>{class n{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,zh||(function oP(n){zh=n}(i),i.addToWindow(r)),this._watchAngularEvents(),t.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:()=>{te.assertNotInAngularZone(),Bh(()=>{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())Bh(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,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(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}}return n.\u0275fac=function(t){return new(t||n)(y(te),y($h),y(hl))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),$h=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return zh?.findTestabilityInTree(this,t,r)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),vr=null;const cC=new E("AllowMultipleToken"),Gh=new E("PlatformDestroyListeners");class uC{constructor(e,t){this.name=e,this.token=t}}function hC(n,e,t=[]){const r=`Platform: ${e}`,i=new E(r);return(o=[])=>{let s=Wh();if(!s||s.injector.get(cC,!1)){const a=[...t,...o,{provide:i,useValue:!0}];n?n(a):function lP(n){if(vr&&!vr.get(cC,!1))throw new C(400,!1);vr=n;const e=n.get(pC);(function dC(n){const e=n.get(nC,null);e&&e.forEach(t=>t())})(n)}(function fC(n=[],e){return Ke.create({name:e,providers:[{provide:Ed,useValue:"platform"},{provide:Gh,useValue:new Set([()=>vr=null])},...n]})}(a,r))}return function uP(n){const e=Wh();if(!e)throw new C(401,!1);return e}()}}function Wh(){return vr?.get(pC)??null}let pC=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function gC(n,e){let t;return t="noop"===n?new iP:("zone.js"===n?void 0:n)||new te(e),t}(r?.ngZone,function mC(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:te,useValue:i}];return i.run(()=>{const s=Ke.create({providers:o,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(Kn,null);if(!l)throw new C(402,!1);return i.runOutsideAngular(()=>{const c=i.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{fl(this._modules,a),c.unsubscribe()})}),function _C(n,e,t){try{const r=t();return ns(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(l,i,()=>{const c=a.injector.get(ul);return c.runInitializers(),c.donePromise.then(()=>(function $v(n){At(n,"Expected localeId to be defined"),"string"==typeof n&&(Uv=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Rn,Ji)||Ji),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,r=[]){const i=yC({},r);return function sP(n,e,t){const r=new Ch(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(no);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new C(403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Gh,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(y(Ke))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function yC(n,e){return Array.isArray(e)?e.reduce(yC,n):{...n,...e}}let no=(()=>{class n{constructor(t,r,i){this._zone=t,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new De(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new De(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),Bh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=uu(o,s.pipe(Ym()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof $_;if(!this._injector.get(ul).done)throw!i&&function mi(n){const e=ue(n)||dt(n)||ht(n);return null!==e&&e.standalone}(t),new C(405,false);let s;s=i?t:this._injector.get(zr).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function aP(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Yr),c=s.create(Ke.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(lC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),fl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;fl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(rC,[]).concat(this._bootstrapListeners).forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>fl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new C(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(y(te),y(gr),y(Kn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function fl(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let bC=!0,fs=(()=>{class n{}return n.__NG_ELEMENT_ID__=fP,n})();function fP(n){return function pP(n,e,t){if(ca(n)&&!t){const r=Rt(n.index,e);return new Xo(r,r)}return 47&n.type?new Xo(e[16],e):null}(We(),w(),16==(16&n))}class SC{constructor(){}supports(e){return es(e)}create(e){return new bP(e)}}const vP=(n,e)=>e;class bP{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||vP}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,i)):e=this._addAfter(new CP(t,r),o,i),e}_verifyReinsertion(e,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,o=e._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new MC),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new MC),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class CP{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wP{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class MC{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new wP,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function AC(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r{class n{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||TC()),deps:[[n,new Ri,new mr]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new C(901,!1)}}return n.\u0275prov=S({token:n,providedIn:"root",factory:TC}),n})();const AP=hC(null,"core",[]);let IP=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(y(no))},n.\u0275mod=me({type:n}),n.\u0275inj=he({}),n})(),_l=null;function Fn(){return _l}const K=new E("DocumentToken");let Qh=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return function FP(){return y(RC)}()},providedIn:"platform"}),n})();const kP=new E("Location Initialized");let RC=(()=>{class n extends Qh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fn().getBaseHref(this._doc)}onPopState(t){const r=Fn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Fn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,r,i){FC()?this._history.pushState(t,r,i):this.location.hash=i}replaceState(t,r,i){FC()?this._history.replaceState(t,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:function(){return function OP(){return new RC(y(K))}()},providedIn:"platform"}),n})();function FC(){return!!window.history.pushState}function Xh(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function kC(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function tr(n){return n&&"?"!==n[0]?"?"+n:n}let Qr=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return be(PC)},providedIn:"root"}),n})();const OC=new E("appBaseHref");let PC=(()=>{class n extends Qr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??be(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Xh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+tr(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+tr(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+tr(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Qh),y(OC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),PP=(()=>{class n extends Qr{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Xh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+tr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+tr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Qh),y(OC,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),ms=(()=>{class n{constructor(t){this._subject=new we,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._baseHref=kC(NC(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(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+tr(r))}normalize(t){return n.stripTrailingSlash(function LP(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,NC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+tr(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+tr(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}}return n.normalizeQueryParams=tr,n.joinWithSlash=Xh,n.stripTrailingSlash=kC,n.\u0275fac=function(t){return new(t||n)(y(Qr))},n.\u0275prov=S({token:n,factory:function(){return function NP(){return new ms(y(Qr))}()},providedIn:"root"}),n})();function NC(n){return n.replace(/\/index.html$/,"")}class DN{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,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 ro=(()=>{class n{constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new DN(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),qC(a,i)}});for(let i=0,o=r.length;i{qC(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(_(Yt),_(xn),_(gl))},n.\u0275dir=P({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function qC(n,e){n.context.$implicit=e.item}let KC=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new SN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){YC("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){YC("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(_(Yt),_(xn))},n.\u0275dir=P({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class SN{constructor(){this.$implicit=null,this.ngIf=null}}function YC(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${pe(e)}'.`)}let XC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({}),n})();const JC="browser";let n1=(()=>{class n{}return n.\u0275prov=S({token:n,providedIn:"root",factory:()=>new r1(y(K),window)}),n})();class r1{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function o1(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=ew(this.window.history)||ew(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ew(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class gf extends class k1 extends class RP{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function xP(n){_l||(_l=n)}(new gf)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function O1(){return vs=vs||document.querySelector("base"),vs?vs.getAttribute("href"):null}();return null==t?null:function P1(n){Tl=Tl||document.createElement("a"),Tl.setAttribute("href",n);const e=Tl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){vs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function bN(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Tl,vs=null;const ow=new E("TRANSITION_ID"),L1=[{provide:cl,useFactory:function N1(n,e,t){return()=>{t.get(ul).donePromise.then(()=>{const r=Fn(),i=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const xl=new E("EventManagerPlugins");let Rl=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>i.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),bs=(()=>{class n extends aw{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,i){t.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(lw),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(t,i,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(lw))}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function lw(n){Fn().remove(n)}const _f={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/"},yf=/%COMP%/g;function Fl(n,e,t){for(let r=0;r{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let kl=(()=>{class n{constructor(t,r,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new vf(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case on.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new G1(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(t),i}case 1:case on.ShadowDom:return new W1(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const i=Fl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(y(Rl),y(bs),y(hs))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class vf{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(_f[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(fw(e)?e.content:e).appendChild(t)}insertBefore(e,t,r){e&&(fw(e)?e.content:e).insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const o=_f[i];o?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=_f[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(Dt.DashCase|Dt.Important)?e.style.setProperty(t,r,i&Dt.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&Dt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,dw(r)):this.eventManager.addEventListener(e,t,dw(r))}}function fw(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class G1 extends vf{constructor(e,t,r,i){super(e),this.component=r;const o=Fl(i+"-"+r.id,r.styles,[]);t.addStyles(o),this.contentAttr=function U1(n){return"_ngcontent-%COMP%".replace(yf,n)}(i+"-"+r.id),this.hostAttr=function $1(n){return"_nghost-%COMP%".replace(yf,n)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class W1 extends vf{constructor(e,t,r,i){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Fl(i.id,i.styles,[]);for(let s=0;s{class n extends sw{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const pw=["alt","control","meta","shift"],K1={"\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"},Y1={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Z1=(()=>{class n extends sw{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const o=n.parseEventName(r),s=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fn().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),pw.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let i=K1[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),pw.forEach(s=>{s!==i&&(0,Y1[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{n.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const eL=hC(AP,"browser",[{provide:Lh,useValue:JC},{provide:nC,useValue:function Q1(){gf.makeCurrent()},multi:!0},{provide:K,useFactory:function J1(){return function CT(n){pd=n}(document),document},deps:[]}]),_w=new E(""),yw=[{provide:hl,useClass:class V1{addToWindow(e){_e.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},_e.getAllAngularTestabilities=()=>e.getAllTestabilities(),_e.getAllAngularRootElements=()=>e.getAllRootElements(),_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(r=>{const i=_e.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,r){return null==t?null:e.getTestability(t)??(r?Fn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:lC,useClass:Uh,deps:[te,$h,hl]},{provide:Uh,useClass:Uh,deps:[te,$h,hl]}],vw=[{provide:Ed,useValue:"root"},{provide:Kn,useFactory:function X1(){return new Kn},deps:[]},{provide:xl,useClass:q1,multi:!0,deps:[K,te,Lh]},{provide:xl,useClass:Z1,multi:!0,deps:[K]},{provide:kl,useClass:kl,deps:[Rl,bs,hs]},{provide:Qo,useExisting:kl},{provide:aw,useExisting:bs},{provide:bs,useClass:bs,deps:[K]},{provide:Rl,useClass:Rl,deps:[xl,te]},{provide:class s1{},useClass:B1,deps:[]},[]];let bw=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:hs,useValue:t.appId},{provide:ow,useExisting:hs},L1]}}}return n.\u0275fac=function(t){return new(t||n)(y(_w,12))},n.\u0275mod=me({type:n}),n.\u0275inj=he({providers:[...vw,...yw],imports:[XC,IP]}),n})(),Cw=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:function(t){let r=null;return r=t?new t:function nL(){return new Cw(y(K))}(),r},providedIn:"root"}),n})();typeof window<"u"&&window;let Ol=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(t){let r=null;return r=t?new(t||n):y(Ew),r},providedIn:"root"}),n})(),Ew=(()=>{class n extends Ol{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case ae.NONE:return r;case ae.HTML:return Dn(r,"HTML")?Ot(r):k_(this._doc,String(r)).toString();case ae.STYLE:return Dn(r,"Style")?Ot(r):r;case ae.SCRIPT:if(Dn(r,"Script"))return Ot(r);throw new Error("unsafe value used in a script context");case ae.URL:return Dn(r,"URL")?Ot(r):Oa(String(r));case ae.RESOURCE_URL:if(Dn(r,"ResourceURL"))return Ot(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function IT(n){return new wT(n)}(t)}bypassSecurityTrustStyle(t){return function TT(n){return new DT(n)}(t)}bypassSecurityTrustScript(t){return function xT(n){return new ET(n)}(t)}bypassSecurityTrustUrl(t){return function RT(n){return new ST(n)}(t)}bypassSecurityTrustResourceUrl(t){return function FT(n){return new MT(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:function(t){let r=null;return r=t?new t:function cL(n){return new Ew(n.get(K))}(y(Ke)),r},providedIn:"root"}),n})();function R(...n){return He(n,Ao(n))}class Lt extends de{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}const Pl=So(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:uL}=Array,{getPrototypeOf:dL,prototype:hL,keys:fL}=Object;function Sw(n){if(1===n.length){const e=n[0];if(uL(e))return{args:e,keys:null};if(function pL(n){return n&&"object"==typeof n&&dL(n)===hL}(e)){const t=fL(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}const{isArray:mL}=Array;function wf(n){return B(e=>function gL(n,e){return mL(e)?n(...e):n(e)}(n,e))}function Mw(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}function Df(...n){const e=Ao(n),t=Gm(n),{args:r,keys:i}=Sw(n);if(0===r.length)return He([],e);const o=new De(function _L(n,e,t=cr){return r=>{Aw(e,()=>{const{length:i}=n,o=new Array(i);let s=i,a=i;for(let l=0;l{const c=He(n[l],e);let u=!1;c.subscribe(Ee(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,e,i?s=>Mw(i,s):cr));return t?o.pipe(wf(t)):o}function Aw(n,e,t){n?Bn(t,n,e):e()}function Nl(...n){return function yL(){return fi(1)}()(He(n,Ao(n)))}function Ll(n){return new De(e=>{bt(n()).subscribe(e)})}function io(n,e){const t=ne(n)?n:()=>n,r=i=>i.error(t());return new De(e?i=>e.schedule(r,0,i):r)}function Ef(){return Re((n,e)=>{let t=null;n._refCount++;const r=Ee(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const i=n._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}class Iw extends De{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,xm(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new nt;const t=this.getSubject();e.add(this.source.subscribe(Ee(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=nt.EMPTY)}return e}refCount(){return Ef()(this)}}function kn(n,e){return Re((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(Ee(r,l=>{i?.unsubscribe();let c=0;const u=o++;bt(n(l,u)).subscribe(i=Ee(r,d=>r.next(e?e(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Xt(n){return n<=0?()=>Hn:Re((e,t)=>{let r=0;e.subscribe(Ee(t,i=>{++r<=n&&(t.next(i),n<=r&&t.complete())}))})}function Vl(...n){const e=Ao(n);return Re((t,r)=>{(e?Nl(n,t,e):Nl(n,t)).subscribe(r)})}function yt(n,e){return Re((t,r)=>{let i=0;t.subscribe(Ee(r,o=>n.call(e,o,i++)&&r.next(o)))})}function Bl(n){return Re((e,t)=>{let r=!1;e.subscribe(Ee(t,i=>{r=!0,t.next(i)},()=>{r||t.next(n),t.complete()}))})}function Tw(n=vL){return Re((e,t)=>{let r=!1;e.subscribe(Ee(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(n())))})}function vL(){return new Pl}function Cr(n,e){const t=arguments.length>=2;return r=>r.pipe(n?yt((i,o)=>n(i,o,r)):cr,Xt(1),t?Bl(e):Tw(()=>new Pl))}function wr(n,e){return ne(e)?Xe(n,e,1):Xe(n,1)}function Qe(n,e,t){const r=ne(n)||e||t?{next:n,error:e,complete:t}:n;return r?Re((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Ee(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):cr}function rr(n){return Re((e,t)=>{let o,r=null,i=!1;r=e.subscribe(Ee(t,void 0,void 0,s=>{o=bt(n(s,rr(n)(e))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function bL(n,e,t,r,i){return(o,s)=>{let a=t,l=e,c=0;o.subscribe(Ee(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function xw(n,e){return Re(bL(n,e,arguments.length>=2,!0))}function Sf(n){return n<=0?()=>Hn:Re((e,t)=>{let r=[];e.subscribe(Ee(t,i=>{r.push(i),n{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function Rw(n,e){const t=arguments.length>=2;return r=>r.pipe(n?yt((i,o)=>n(i,o,r)):cr,Sf(1),t?Bl(e):Tw(()=>new Pl))}function Hl(n){return Re((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}const Y="primary",Cs=Symbol("RouteTitle");class DL{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function oo(n){return new DL(n)}function EL(n,e,t){const r=t.path.split("/");if(r.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||r.lengthr[o]===i)}return n===e}function kw(n){return Array.prototype.concat.apply([],n)}function Ow(n){return n.length>0?n[n.length-1]:null}function rt(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function Dr(n){return lh(n)?n:ns(n)?He(Promise.resolve(n)):R(n)}const AL={exact:function Lw(n,e,t){if(!Jr(n.segments,e.segments)||!jl(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!n.children[r]||!Lw(n.children[r],e.children[r],t))return!1;return!0},subset:Vw},Pw={exact:function IL(n,e){return On(n,e)},subset:function TL(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>Fw(n[t],e[t]))},ignored:()=>!0};function Nw(n,e,t){return AL[t.paths](n.root,e.root,t.matrixParams)&&Pw[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function Vw(n,e,t){return Bw(n,e,e.segments,t)}function Bw(n,e,t,r){if(n.segments.length>t.length){const i=n.segments.slice(0,t.length);return!(!Jr(i,t)||e.hasChildren()||!jl(i,t,r))}if(n.segments.length===t.length){if(!Jr(n.segments,t)||!jl(n.segments,t,r))return!1;for(const i in e.children)if(!n.children[i]||!Vw(n.children[i],e.children[i],r))return!1;return!0}{const i=t.slice(0,n.segments.length),o=t.slice(n.segments.length);return!!(Jr(n.segments,i)&&jl(n.segments,i,r)&&n.children[Y])&&Bw(n.children[Y],e,o,r)}}function jl(n,e,t){return e.every((r,i)=>Pw[t](n[i].parameters,r.parameters))}class Xr{constructor(e,t,r){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return FL.serialize(this)}}class Q{constructor(e,t){this.segments=e,this.children=t,this.parent=null,rt(t,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ul(this)}}class ws{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=oo(this.parameters)),this._parameterMap}toString(){return $w(this)}}function Jr(n,e){return n.length===e.length&&n.every((t,r)=>t.path===e[r].path)}let Hw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return new Af},providedIn:"root"}),n})();class Af{parse(e){const t=new jL(e);return new Xr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Ds(e.root,!0)}`,r=function PL(n){const e=Object.keys(n).map(t=>{const r=n[t];return Array.isArray(r)?r.map(i=>`${$l(t)}=${$l(i)}`).join("&"):`${$l(t)}=${$l(r)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${r}${"string"==typeof e.fragment?`#${function kL(n){return encodeURI(n)}(e.fragment)}`:""}`}}const FL=new Af;function Ul(n){return n.segments.map(e=>$w(e)).join("/")}function Ds(n,e){if(!n.hasChildren())return Ul(n);if(e){const t=n.children[Y]?Ds(n.children[Y],!1):"",r=[];return rt(n.children,(i,o)=>{o!==Y&&r.push(`${o}:${Ds(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function RL(n,e){let t=[];return rt(n.children,(r,i)=>{i===Y&&(t=t.concat(e(r,i)))}),rt(n.children,(r,i)=>{i!==Y&&(t=t.concat(e(r,i)))}),t}(n,(r,i)=>i===Y?[Ds(n.children[Y],!1)]:[`${i}:${Ds(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Y]?`${Ul(n)}/${t[0]}`:`${Ul(n)}/(${t.join("//")})`}}function jw(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $l(n){return jw(n).replace(/%3B/gi,";")}function If(n){return jw(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zl(n){return decodeURIComponent(n)}function Uw(n){return zl(n.replace(/\+/g,"%20"))}function $w(n){return`${If(n.path)}${function OL(n){return Object.keys(n).map(e=>`;${If(e)}=${If(n[e])}`).join("")}(n.parameters)}`}const NL=/^[^\/()?;=#]+/;function Gl(n){const e=n.match(NL);return e?e[0]:""}const LL=/^[^=?&#]+/,BL=/^[^&#]+/;class jL{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Q([],{}):new Q([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[Y]=new Q(e,t)),r}parseSegment(){const e=Gl(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new ws(zl(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Gl(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=Gl(this.remaining);i&&(r=i,this.capture(r))}e[zl(t)]=zl(r)}parseQueryParam(e){const t=function VL(n){const e=n.match(LL);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function HL(n){const e=n.match(BL);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Uw(t),o=Uw(r);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Gl(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Y);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[Y]:new Q([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}}function Tf(n){return n.segments.length>0?new Q([],{[Y]:n}):n}function Wl(n){const e={};for(const r of Object.keys(n.children)){const o=Wl(n.children[r]);(o.segments.length>0||o.hasChildren())&&(e[r]=o)}return function UL(n){if(1===n.numberOfChildren&&n.children[Y]){const e=n.children[Y];return new Q(n.segments.concat(e.segments),e.children)}return n}(new Q(n.segments,e))}function ei(n){return n instanceof Xr}function GL(n,e,t,r,i){if(0===t.length)return so(e.root,e.root,e.root,r,i);const o=function Ww(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Gw(!0,0,n);let e=0,t=!1;const r=n.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return rt(o.outlets,(l,c)=>{a[c]="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,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new Gw(t,e,r)}(t);return o.toRoot()?so(e.root,e.root,new Q([],{}),r,i):function s(l){const c=function qL(n,e,t,r){if(n.isAbsolute)return new ao(e.root,!0,0);if(-1===r)return new ao(t,t===e.root,0);return function qw(n,e,t){let r=n,i=e,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new ao(r,!1,i-o)}(t,r+(Es(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,e,n.snapshot?._urlSegment,l),u=c.processChildren?Ms(c.segmentGroup,c.index,o.commands):Rf(c.segmentGroup,c.index,o.commands);return so(e.root,c.segmentGroup,u,r,i)}(n.snapshot?._lastPathIndex)}function Es(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ss(n){return"object"==typeof n&&null!=n&&n.outlets}function so(n,e,t,r,i){let s,o={};r&&rt(r,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===e?t:zw(n,e,t);const a=Tf(Wl(s));return new Xr(a,o,i)}function zw(n,e,t){const r={};return rt(n.children,(i,o)=>{r[o]=i===e?t:zw(i,e,t)}),new Q(n.segments,r)}class Gw{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&Es(r[0]))throw new C(4003,!1);const i=r.find(Ss);if(i&&i!==Ow(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ao{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function Rf(n,e,t){if(n||(n=new Q([],{})),0===n.segments.length&&n.hasChildren())return Ms(n,e,t);const r=function YL(n,e,t){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const s=n.segments[i],a=t[r];if(Ss(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Yw(l,c,s))return o;r+=2}else{if(!Yw(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,e,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=Rf(n.children[s],e,o))}),rt(n.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new Q(n.segments,i)}}function Ff(n,e,t){const r=n.segments.slice(0,e);let i=0;for(;i{"string"==typeof t&&(t=[t]),null!==t&&(e[r]=Ff(new Q([],{}),0,t))}),e}function Kw(n){const e={};return rt(n,(t,r)=>e[r]=`${t}`),e}function Yw(n,e,t){return n==t.path&&On(e,t.parameters)}class ir{constructor(e,t){this.id=e,this.url=t}}class kf extends ir{constructor(e,t,r="imperative",i=null){super(e,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ti extends ir{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ql extends ir{constructor(e,t,r,i){super(e,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Zw extends ir{constructor(e,t,r,i){super(e,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class QL extends ir{constructor(e,t,r,i){super(e,t),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 XL extends ir{constructor(e,t,r,i){super(e,t),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 JL extends ir{constructor(e,t,r,i,o){super(e,t),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 eV extends ir{constructor(e,t,r,i){super(e,t),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 tV extends ir{constructor(e,t,r,i){super(e,t),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 nV{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class rV{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iV{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oV{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sV{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aV{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qw{constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Xw{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Of(e,this._root);return t?t.children.map(r=>r.value):[]}firstChild(e){const t=Of(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Pf(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Pf(e,this._root).map(t=>t.value)}}function Of(n,e){if(n===e.value)return e;for(const t of e.children){const r=Of(n,t);if(r)return r}return null}function Pf(n,e){if(n===e.value)return[e];for(const t of e.children){const r=Pf(n,t);if(r.length)return r.unshift(e),r}return[]}class or{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function lo(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class Jw extends Xw{constructor(e,t){super(e),this.snapshot=t,Nf(this,e)}toString(){return this.snapshot.toString()}}function eD(n,e){const t=function cV(n,e){const s=new Kl([],{},{},"",{},Y,e,null,n.root,-1,{});return new nD("",new or(s,[]))}(n,e),r=new Lt([new ws("",{})]),i=new Lt({}),o=new Lt({}),s=new Lt({}),a=new Lt(""),l=new yn(r,i,s,a,o,Y,e,t.root);return l.snapshot=t.root,new Jw(new or(l,[]),t)}class yn{constructor(e,t,r,i,o,s,a,l){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(B(c=>c[Cs]))??R(void 0),this._futureSnapshot=l}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(B(e=>oo(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(e=>oo(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function tD(n,e="emptyOnly"){const t=n.pathFromRoot;let r=0;if("always"!==e)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function uV(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Kl{constructor(e,t,r,i,o,s,a,l,c,u,d,h){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Cs],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}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=oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nD extends Xw{constructor(e,t){super(t),this.url=e,Nf(this,t)}toString(){return rD(this._root)}}function Nf(n,e){e.value._routerState=n,e.children.forEach(t=>Nf(n,t))}function rD(n){const e=n.children.length>0?` { ${n.children.map(rD).join(", ")} } `:"";return`${n.value}${e}`}function Lf(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,On(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),On(e.params,t.params)||n.params.next(t.params),function SL(n,e){if(n.length!==e.length)return!1;for(let t=0;tOn(t.parameters,e[r].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||Vf(n.parent,e.parent))}function As(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=e.value;const i=function hV(n,e,t){return e.children.map(r=>{for(const i of t.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return As(n,r,i);return As(n,r)})}(n,e,t);return new or(r,i)}{if(n.shouldAttach(e.value)){const o=n.retrieve(e.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>As(n,a)),s}}const r=function fV(n){return new yn(new Lt(n.url),new Lt(n.params),new Lt(n.queryParams),new Lt(n.fragment),new Lt(n.data),n.outlet,n.component,n)}(e.value),i=e.children.map(o=>As(n,o));return new or(r,i)}}const Bf="ngNavigationCancelingError";function iD(n,e){const{redirectTo:t,navigationBehaviorOptions:r}=ei(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=oD(!1,0,e);return i.url=t,i.navigationBehaviorOptions=r,i}function oD(n,e,t){const r=new Error("NavigationCancelingError: "+(n||""));return r[Bf]=!0,r.cancellationCode=e,t&&(r.url=t),r}function sD(n){return aD(n)&&ei(n.url)}function aD(n){return n&&n[Bf]}class pV{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Is,this.attachRef=null}}let Is=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new pV,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Yl=!1;let co=(()=>{class n{constructor(t,r,i,o,s){this.parentContexts=t,this.location=r,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.name=i||Y,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,Yl);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,Yl);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,Yl);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new C(4013,Yl);this._activatedRoute=t;const i=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new mV(t,a,i.injector);if(r&&function gV(n){return!!n.resolveComponentFactory}(r)){const c=r.resolveComponentFactory(s);this.activated=i.createComponent(c,i.length,l)}else this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(_(Is),_(Yt),Ei("name"),_(fs),_(gr))},n.\u0275dir=P({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class mV{constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===yn?this.route:e===Is?this.childContexts:this.parent.get(e,t)}}let Hf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Fe({type:n,selectors:[["ng-component"]],standalone:!0,features:[gb],decls:1,vars:0,template:function(t,r){1&t&&Xn(0,"router-outlet")},dependencies:[co],encapsulation:2}),n})();function lD(n,e){return n.providers&&!n._injector&&(n._injector=rl(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Uf(n){const e=n.children&&n.children.map(Uf),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Y&&(t.component=Hf),t}function Jt(n){return n.outlet||Y}function cD(n,e){const t=n.filter(r=>Jt(r)===e);return t.push(...n.filter(r=>Jt(r)!==e)),t}function Ts(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class CV{constructor(e,t,r,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=i}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),Lf(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const i=lo(t);e.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),rt(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(e,t,r){const i=e.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,o=lo(e);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(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,o=lo(e);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.resolver=null,r.route=null)}activateChildRoutes(e,t,r){const i=lo(t);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new aV(o.value.snapshot))}),e.children.length&&this.forwardEvent(new oV(e.value.snapshot))}activateRoutes(e,t,r){const i=e.value,o=t?t.value:null;if(Lf(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,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),Lf(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=Ts(i.snapshot),l=a?.get(zr)??null;s.attachRef=null,s.route=i,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}class uD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Zl{constructor(e,t){this.component=e,this.route=t}}function wV(n,e,t){const r=n._root;return xs(r,e?e._root:null,t,[r.value])}function uo(n,e){const t=Symbol(),r=e.get(n,t);return r===t?"function"!=typeof n||function cA(n){return null!==ra(n)}(n)?e.get(n):n:r}function xs(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=lo(e);return n.children.forEach(s=>{(function EV(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function SV(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!Jr(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Jr(n.url,e.url)||!On(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Vf(n,e)||!On(n.queryParams,e.queryParams);default:return!Vf(n,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new uD(r)):(o.data=s.data,o._resolvedData=s._resolvedData),xs(n,e,o.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Zl(a.outlet.component,s))}else s&&Rs(e,a,i),i.canActivateChecks.push(new uD(r)),xs(n,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),rt(o,(s,a)=>Rs(s,t.getContext(a),i)),i}function Rs(n,e,t){const r=lo(n),i=n.value;rt(r,(o,s)=>{Rs(o,i.component?e?e.children.getContext(s):null:e,t)}),t.canDeactivateChecks.push(new Zl(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function Fs(n){return"function"==typeof n}function $f(n){return n instanceof Pl||"EmptyError"===n?.name}const Ql=Symbol("INITIAL_VALUE");function ho(){return kn(n=>Df(n.map(e=>e.pipe(Xt(1),Vl(Ql)))).pipe(B(e=>{for(const t of e)if(!0!==t){if(t===Ql)return Ql;if(!1===t||t instanceof Xr)return t}return!0}),yt(e=>e!==Ql),Xt(1)))}function dD(n){return function uM(...n){return Am(n)}(Qe(e=>{if(ei(e))throw iD(0,e)}),B(e=>!0===e))}const zf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function hD(n,e,t,r,i){const o=Gf(n,e,t);return o.matched?function UV(n,e,t,r){const i=e.canMatch;return i&&0!==i.length?R(i.map(s=>{const a=uo(s,n);return Dr(function RV(n){return n&&Fs(n.canMatch)}(a)?a.canMatch(e,t):n.runInContext(()=>a(e,t)))})).pipe(ho(),dD()):R(!0)}(r=lD(e,r),e,t).pipe(B(s=>!0===s?o:{...zf})):R(o)}function Gf(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...zf}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(e.matcher||EL)(t,n,e);if(!i)return{...zf};const o={};rt(i.posParams,(a,l)=>{o[l]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Xl(n,e,t,r,i="corrected"){if(t.length>0&&function GV(n,e,t){return t.some(r=>Jl(n,e,r)&&Jt(r)!==Y)}(n,t,r)){const s=new Q(e,function zV(n,e,t,r){const i={};i[Y]=r,r._sourceSegment=n,r._segmentIndexShift=e.length;for(const o of t)if(""===o.path&&Jt(o)!==Y){const s=new Q([],{});s._sourceSegment=n,s._segmentIndexShift=e.length,i[Jt(o)]=s}return i}(n,e,r,new Q(t,n.children)));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function WV(n,e,t){return t.some(r=>Jl(n,e,r))}(n,t,r)){const s=new Q(n.segments,function $V(n,e,t,r,i,o){const s={};for(const a of r)if(Jl(n,t,a)&&!i[Jt(a)]){const l=new Q([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:e.length,s[Jt(a)]=l}return{...i,...s}}(n,e,t,r,n.children,i));return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}const o=new Q(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}function Jl(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function fD(n,e,t,r){return!!(Jt(n)===r||r!==Y&&Jl(e,t,n))&&("**"===n.path||Gf(e,n,t).matched)}function pD(n,e,t){return 0===e.length&&!n.children[t]}const ec=!1;class tc{constructor(e){this.segmentGroup=e||null}}class mD{constructor(e){this.urlTree=e}}function ks(n){return io(new tc(n))}function gD(n){return io(new mD(n))}class ZV{constructor(e,t,r,i,o){this.injector=e,this.configLoader=t,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const e=Xl(this.urlTree.root,[],[],this.config).segmentGroup,t=new Q(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,Y).pipe(B(o=>this.createUrlTree(Wl(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(rr(o=>{if(o instanceof mD)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof tc?this.noMatchError(o):o}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,Y).pipe(B(i=>this.createUrlTree(Wl(i),e.queryParams,e.fragment))).pipe(rr(i=>{throw i instanceof tc?this.noMatchError(i):i}))}noMatchError(e){return new C(4002,ec)}createUrlTree(e,t,r){const i=Tf(e);return new Xr(i,t,r)}expandSegmentGroup(e,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,t,r).pipe(B(o=>new Q([],o))):this.expandSegment(e,r,t,r.segments,i,!0)}expandChildren(e,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return He(i).pipe(wr(o=>{const s=r.children[o],a=cD(t,o);return this.expandSegmentGroup(e,a,s,o).pipe(B(l=>({segment:l,outlet:o})))}),xw((o,s)=>(o[s.outlet]=s.segment,o),{}),Rw())}expandSegment(e,t,r,i,o,s){return He(r).pipe(wr(a=>this.expandSegmentAgainstRoute(e,t,r,a,i,o,s).pipe(rr(c=>{if(c instanceof tc)return R(null);throw c}))),Cr(a=>!!a),rr((a,l)=>{if($f(a))return pD(t,i,o)?R(new Q([],{})):ks(t);throw a}))}expandSegmentAgainstRoute(e,t,r,i,o,s,a){return fD(i,t,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,i,o,s):ks(t):ks(t)}expandSegmentAgainstRouteUsingRedirect(e,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?gD(o):this.lineralizeSegments(r,o).pipe(Xe(s=>{const a=new Q(s,{});return this.expandSegment(e,a,t,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Gf(t,i,o);if(!a)return ks(t);const d=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?gD(d):this.lineralizeSegments(i,d).pipe(Xe(h=>this.expandSegment(e,t,r,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,t,r,i,o){return"**"===r.path?(e=lD(r,e),r.loadChildren?(r._loadedRoutes?R({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(e,r)).pipe(B(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new Q(i,{})))):R(new Q(i,{}))):hD(t,r,i,e).pipe(kn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(e=r._injector??e,r,i).pipe(Xe(u=>{const d=u.injector??e,h=u.routes,{segmentGroup:f,slicedSegments:p}=Xl(t,a,l,h),m=new Q(f.segments,f.children);if(0===p.length&&m.hasChildren())return this.expandChildren(d,h,m).pipe(B(v=>new Q(a,v)));if(0===h.length&&0===p.length)return R(new Q(a,{}));const g=Jt(r)===o;return this.expandSegment(d,m,h,p,g?Y:o,!0).pipe(B(D=>new Q(a.concat(D.segments),D.children)))})):ks(t)))}getChildConfig(e,t,r){return t.children?R({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?R({routes:t._loadedRoutes,injector:t._loadedInjector}):function jV(n,e,t,r){const i=e.canLoad;return void 0===i||0===i.length?R(!0):R(i.map(s=>{const a=uo(s,n);return Dr(function AV(n){return n&&Fs(n.canLoad)}(a)?a.canLoad(e,t):n.runInContext(()=>a(e,t)))})).pipe(ho(),dD())}(e,t,r).pipe(Xe(i=>i?this.configLoader.loadChildren(e,t).pipe(Qe(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function KV(n){return io(oD(ec,3))}())):R({routes:[],injector:e})}lineralizeSegments(e,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return R(r);if(i.numberOfChildren>1||!i.children[Y])return io(new C(4e3,ec));i=i.children[Y]}}applyRedirectCommands(e,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,r)}applyRedirectCreateUrlTree(e,t,r,i){const o=this.createSegmentGroup(e,t.root,r,i);return new Xr(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return rt(e,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(e,t,r,i){const o=this.createSegments(e,t.segments,r,i);let s={};return rt(t.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,r,i)}),new Q(o,s)}createSegments(e,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,r))}findPosParam(e,t,r){const i=r[t.path.substring(1)];if(!i)throw new C(4001,ec);return i}findOrReturn(e,t){let r=0;for(const i of t){if(i.path===e.path)return t.splice(r),i;r++}return e}}class XV{}class tB{constructor(e,t,r,i,o,s,a,l){this.injector=e,this.rootComponentType=t,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const e=Xl(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,Y).pipe(B(t=>{if(null===t)return null;const r=new Kl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Y,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new or(r,t),o=new nD(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(e){const t=e.value,r=tD(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(e,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(e,t,r):this.processSegment(e,t,r,r.segments,i)}processChildren(e,t,r){return He(Object.keys(r.children)).pipe(wr(i=>{const o=r.children[i],s=cD(t,i);return this.processSegmentGroup(e,s,o,i)}),xw((i,o)=>i&&o?(i.push(...o),i):null),function CL(n,e=!1){return Re((t,r)=>{let i=0;t.subscribe(Ee(r,o=>{const s=n(o,i++);(s||e)&&r.next(o),!s&&r.complete()}))})}(i=>null!==i),Bl(null),Rw(),B(i=>{if(null===i)return null;const o=_D(i);return function nB(n){n.sort((e,t)=>e.value.outlet===Y?-1:t.value.outlet===Y?1:e.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(e,t,r,i,o){return He(t).pipe(wr(s=>this.processSegmentAgainstRoute(s._injector??e,s,r,i,o)),Cr(s=>!!s),rr(s=>{if($f(s))return pD(r,i,o)?R([]):R(null);throw s}))}processSegmentAgainstRoute(e,t,r,i,o){if(t.redirectTo||!fD(t,r,i,o))return R(null);let s;if("**"===t.path){const a=i.length>0?Ow(i).parameters:{},l=vD(r)+i.length;s=R({snapshot:new Kl(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,CD(t),Jt(t),t.component??t._loadedComponent??null,t,yD(r),l,wD(t),l),consumedSegments:[],remainingSegments:[]})}else s=hD(r,t,i,e).pipe(B(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=vD(r)+l.length;return{snapshot:new Kl(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,CD(t),Jt(t),t.component??t._loadedComponent??null,t,yD(r),d,wD(t),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(kn(a=>{if(null===a)return R(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;e=t._injector??e;const d=t._loadedInjector??e,h=function rB(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:f,slicedSegments:p}=Xl(r,c,u,h.filter(g=>void 0===g.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(B(g=>null===g?null:[new or(l,g)]));if(0===h.length&&0===p.length)return R([new or(l,[])]);const m=Jt(t)===o;return this.processSegment(d,h,f,p,m?Y:o).pipe(B(g=>null===g?null:[new or(l,g)]))}))}}function iB(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function _D(n){const e=[],t=new Set;for(const r of n){if(!iB(r)){e.push(r);continue}const i=e.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):e.push(r)}for(const r of t){const i=_D(r.children);e.push(new or(r.value,i))}return e.filter(r=>!t.has(r))}function yD(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function vD(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function CD(n){return n.data||{}}function wD(n){return n.resolve||{}}function DD(n){return"string"==typeof n.title||null===n.title}function Wf(n){return kn(e=>{const t=n(e);return t?He(t).pipe(B(()=>e)):R(e)})}let ED=(()=>{class n{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Y);return r}getResolvedTitleForRoute(t){return t.data[Cs]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:function(){return be(SD)},providedIn:"root"}),n})(),SD=(()=>{class n extends ED{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return n.\u0275fac=function(t){return new(t||n)(y(Cw))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class hB{}class pB extends class fB{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const rc=new E("",{providedIn:"root",factory:()=>({})}),qf=new E("ROUTES");let Kf=(()=>{class n{constructor(t,r){this.injector=t,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return R(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Dr(t.loadComponent()).pipe(Qe(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Hl(()=>{this.componentLoaders.delete(t)})),i=new Iw(r,()=>new de).pipe(Ef());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return R({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(B(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=kw(l.get(qf,[],k.Self|k.Optional)));return{routes:c.map(Uf),injector:l}}),Hl(()=>{this.childrenLoaders.delete(r)})),s=new Iw(o,()=>new de).pipe(Ef());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(t){return Dr(t()).pipe(Xe(r=>r instanceof pb||Array.isArray(r)?R(r):He(this.compiler.compileModuleAsync(r))))}}return n.\u0275fac=function(t){return new(t||n)(y(Ke),y(Vh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class gB{}class _B{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function yB(n){throw n}function vB(n,e,t){return e.parse("/")}const bB={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},CB={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function AD(){const n=be(Hw),e=be(Is),t=be(ms),r=be(Ke),i=be(Vh),o=be(qf,{optional:!0})??[],s=be(rc,{optional:!0})??{},a=be(SD),l=be(ED,{optional:!0}),c=be(gB,{optional:!0}),u=be(hB,{optional:!0}),d=new Be(null,n,e,t,r,i,kw(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function wB(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(e.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let Be=(()=>{class n{constructor(t,r,i,o,s,a,l){this.rootComponentType=t,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new de,this.errorHandler=yB,this.malformedUriErrorHandler=vB,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>R(void 0),this.urlHandlingStrategy=new _B,this.routeReuseStrategy=new pB,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Kf),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new rV(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new nV(h)),this.ngModule=s.get(Yr),this.console=s.get(qO);const d=s.get(te);this.isNgZoneEnabled=d instanceof te&&te.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function ML(){return new Xr(new Q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=eD(this.currentUrlTree,this.rootComponentType),this.transitions=new Lt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const r=this.events;return t.pipe(yt(i=>0!==i.id),B(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),kn(i=>{let o=!1,s=!1;return R(i).pipe(Qe(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),kn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return ID(a.source)&&(this.browserUrlTree=a.extractedUrl),R(a).pipe(kn(d=>{const h=this.transitions.getValue();return r.next(new kf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Hn:Promise.resolve(d)}),function QV(n,e,t,r){return kn(i=>function YV(n,e,t,r,i){return new ZV(n,e,t,r,i).apply()}(n,e,t,i.extractedUrl,r).pipe(B(o=>({...i,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Qe(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},i.urlAfterRedirects=d.urlAfterRedirects}),function sB(n,e,t,r,i,o){return Xe(s=>function eB(n,e,t,r,i,o,s="emptyOnly",a="legacy"){return new tB(n,e,t,r,i,s,a,o).recognize().pipe(kn(l=>null===l?function JV(n){return new De(e=>e.error(n))}(new XV):R(l)))}(n,e,t,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,i,o).pipe(B(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Qe(d=>{if(i.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new QL(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:m,extras:g}=a,b=new kf(h,this.serializeUrl(f),p,m);r.next(b);const D=eD(f,this.rootComponentType).snapshot;return R(i={...a,targetSnapshot:D,urlAfterRedirects:f,extras:{...g,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Hn}),Qe(a=>{const l=new XL(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),B(a=>i={...a,guards:wV(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function kV(n,e){return Xe(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?R({...t,guardsResult:!0}):function OV(n,e,t,r){return He(n).pipe(Xe(i=>function HV(n,e,t,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?R(o.map(a=>{const l=Ts(e)??i,c=uo(a,l);return Dr(function xV(n){return n&&Fs(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,r):l.runInContext(()=>c(n,e,t,r))).pipe(Cr())})).pipe(ho()):R(!0)}(i.component,i.route,t,e,r)),Cr(i=>!0!==i,!0))}(s,r,i,n).pipe(Xe(a=>a&&function MV(n){return"boolean"==typeof n}(a)?function PV(n,e,t,r){return He(e).pipe(wr(i=>Nl(function LV(n,e){return null!==n&&e&&e(new iV(n)),R(!0)}(i.route.parent,r),function NV(n,e){return null!==n&&e&&e(new sV(n)),R(!0)}(i.route,r),function BV(n,e,t){const r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>function DV(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(s)).filter(s=>null!==s).map(s=>Ll(()=>R(s.guards.map(l=>{const c=Ts(s.node)??t,u=uo(l,c);return Dr(function TV(n){return n&&Fs(n.canActivateChild)}(u)?u.canActivateChild(r,n):c.runInContext(()=>u(r,n))).pipe(Cr())})).pipe(ho())));return R(o).pipe(ho())}(n,i.path,t),function VV(n,e,t){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return R(!0);const i=r.map(o=>Ll(()=>{const s=Ts(e)??t,a=uo(o,s);return Dr(function IV(n){return n&&Fs(n.canActivate)}(a)?a.canActivate(e,n):s.runInContext(()=>a(e,n))).pipe(Cr())}));return R(i).pipe(ho())}(n,i.route,t))),Cr(i=>!0!==i,!0))}(r,o,n,e):R(a)),B(a=>({...t,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Qe(a=>{if(i.guardsResult=a.guardsResult,ei(a.guardsResult))throw iD(0,a.guardsResult);const l=new JL(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),yt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Wf(a=>{if(a.guards.canActivateChecks.length)return R(a).pipe(Qe(l=>{const c=new eV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),kn(l=>{let c=!1;return R(l).pipe(function aB(n,e){return Xe(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return R(t);let o=0;return He(i).pipe(wr(s=>function lB(n,e,t,r){const i=n.routeConfig,o=n._resolve;return void 0!==i?.title&&!DD(i)&&(o[Cs]=i.title),function cB(n,e,t,r){const i=function uB(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===i.length)return R({});const o={};return He(i).pipe(Xe(s=>function dB(n,e,t,r){const i=Ts(e)??r,o=uo(n,i);return Dr(o.resolve?o.resolve(e,t):i.runInContext(()=>o(e,t)))}(n[s],e,t,r).pipe(Cr(),Qe(a=>{o[s]=a}))),Sf(1),function wL(n){return B(()=>n)}(o),rr(s=>$f(s)?Hn:io(s)))}(o,n,e,r).pipe(B(s=>(n._resolvedData=s,n.data=tD(n,t).resolve,i&&DD(i)&&(n.data[Cs]=i.title),null)))}(s.route,r,n,e)),Qe(()=>o++),Sf(1),Xe(s=>o===i.length?R(t):Hn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Qe({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Qe(l=>{const c=new tV(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Wf(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Qe(d=>{c.component=d}),B(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Df(l(a.targetSnapshot.root)).pipe(Bl(),Xt(1))}),Wf(()=>this.afterPreactivation()),B(a=>{const l=function dV(n,e,t){const r=As(n,e._root,t?t._root:void 0);return new Jw(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return i={...a,targetRouterState:l}}),Qe(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>B(r=>(new CV(e,r.targetRouterState,r.currentRouterState,t).activate(n),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Qe({next(){o=!0},complete(){o=!0}}),Hl(()=>{o||s||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),rr(a=>{if(s=!0,aD(a)){sD(a)||(this.navigated=!0,this.restoreHistory(i,!0));const l=new ql(i.id,this.serializeUrl(i.extractedUrl),a.message,a.cancellationCode);if(r.next(l),sD(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ID(i.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new Zw(i.id,this.serializeUrl(i.extractedUrl),a,i.targetSnapshot??void 0);r.next(l);try{i.resolve(this.errorHandler(a))}catch(c){i.reject(c)}}return Hn}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const i={replaceUrl:!0},o=t.state?.navigationId?t.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(i.state=a)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,r,o,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(Uf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=i||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),GL(c,this.currentUrlTree,t,d,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=ei(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(t,r={skipLocationChange:!1}){return function DB(n){for(let e=0;e{const o=t[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ti(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),d=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===i?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,r,i){const o=new ql(t.id,this.serializeUrl(t.extractedUrl),r,i);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return n.\u0275fac=function(t){Ba()},n.\u0275prov=S({token:n,factory:function(){return AD()},providedIn:"root"}),n})();function ID(n){return"imperative"!==n}class TD{}let MB=(()=>{class n{constructor(t,r,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(yt(t=>t instanceof ti),wr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=rl(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,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 He(i).pipe(fi())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):R(null);const o=i.pipe(Xe(s=>null===s?R(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?He([o,this.loader.loadComponent(r)]).pipe(fi()):o})}}return n.\u0275fac=function(t){return new(t||n)(y(Be),y(Vh),y(gr),y(TD),y(Kf))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qf=new E("");let xD=(()=>{class n{constructor(t,r,i={}){this.router=t,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof kf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ti&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Qw&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.router.triggerEvent(new Qw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){Ba()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function fo(n,e){return{\u0275kind:n,\u0275providers:e}}function Xf(n){return[{provide:qf,multi:!0,useValue:n}]}function FD(){const n=be(Ke);return e=>{const t=n.get(no);if(e!==t.components[0])return;const r=n.get(Be),i=n.get(kD);1===n.get(Jf)&&r.initialNavigation(),n.get(OD,null,k.Optional)?.setUpPreloading(),n.get(Qf,null,k.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const kD=new E("",{factory:()=>new de}),Jf=new E("",{providedIn:"root",factory:()=>1});const OD=new E("");function xB(n){return fo(0,[{provide:OD,useExisting:MB},{provide:TD,useExisting:n}])}const PD=new E("ROUTER_FORROOT_GUARD"),RB=[ms,{provide:Hw,useClass:Af},{provide:Be,useFactory:AD},Is,{provide:yn,useFactory:function RD(n){return n.routerState.root},deps:[Be]},Kf];function FB(){return new uC("Router",Be)}let ND=(()=>{class n{constructor(t){}static forRoot(t,r){return{ngModule:n,providers:[RB,[],Xf(t),{provide:PD,useFactory:NB,deps:[[Be,new mr,new Ri]]},{provide:rc,useValue:r||{}},r?.useHash?{provide:Qr,useClass:PP}:{provide:Qr,useClass:PC},{provide:Qf,useFactory:()=>{const n=be(Be),e=be(n1),t=be(rc);return t.scrollOffset&&e.setOffset(t.scrollOffset),new xD(n,e,t)}},r?.preloadingStrategy?xB(r.preloadingStrategy).\u0275providers:[],{provide:uC,multi:!0,useFactory:FB},r?.initialNavigation?LB(r):[],[{provide:LD,useFactory:FD},{provide:rC,multi:!0,useExisting:LD}]]}}static forChild(t){return{ngModule:n,providers:[Xf(t)]}}}return n.\u0275fac=function(t){return new(t||n)(y(PD,8))},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[Hf]}),n})();function NB(n){return"guarded"}function LB(n){return["disabled"===n.initialNavigation?fo(3,[{provide:cl,multi:!0,useFactory:()=>{const e=be(Be);return()=>{e.setUpLocationChangeListener()}}},{provide:Jf,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?fo(2,[{provide:Jf,useValue:0},{provide:cl,multi:!0,deps:[Ke],useFactory:e=>{const t=e.get(kP,Promise.resolve());let r=!1;return()=>t.then(()=>new Promise(o=>{const s=e.get(Be),a=e.get(kD);(function i(o){e.get(Be).events.pipe(yt(a=>a instanceof ti||a instanceof ql||a instanceof Zw),B(a=>a instanceof ti||a instanceof ql&&(0===a.code||1===a.code)&&null),yt(a=>null!==a),Xt(1)).subscribe(()=>{o()})})(()=>{o(!0),r=!0}),s.afterPreactivation=()=>(o(!0),r||a.closed?R(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const LD=new E("");let ep=(()=>{class n{constructor(t,r){this.route=t,this.router=r,this.navs=[]}isActiveHeader(t){const r=this.route.firstChild?.component?.name==t.component;return r&&(this.currentNav=t),r}selectHeader(t,r=[]){r.push(t.path),this.router.navigate(r)}choiceHeader(t){if(null!=this.currentNav){const r=this.navs.indexOf(this.currentNav);switch(console.log(r,t),t.code){case"KeyA":this.selectHeader(r-1<0?this.navs[this.navs.length-1]:this.navs[r-1]);break;case"KeyD":this.selectHeader(r+1>=this.navs.length?this.navs[0]:this.navs[r+1])}}}}return n.\u0275fac=function(t){return new(t||n)(_(yn),_(Be))},n.\u0275cmp=Fe({type:n,selectors:[["abs-navs-header"]],decls:0,vars:0,template:function(t,r){},encapsulation:2}),n})(),VD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-status-lower-header"]],decls:2,vars:0,template:function(t,r){1&t&&(le(0,"p"),Ne(1,"status"),ie())},encapsulation:2}),n})(),po=(()=>{class n{}return n.UNKNOWN=0,n.RESERVED=1,n.SYSSTATS=2,n.SPACESTATS=3,n.WIFI=4,n})(),tp=(()=>{class n{}return n.UNKNOWN=0,n.SELF=1,n.EXTERNAL=2,n})();class ac{static getRandom(e,t){return Math.random()*(t-e)+e}static getRandomRound(e,t){return Math.round(this.getRandom(e,t))}}let np=(()=>{class n{constructor(){this.events=new Lt("{}"),console.log("random data to ws create"),setInterval(()=>{this.events.next(JSON.stringify({event:po.SYSSTATS,device:tp.SELF,data:{cpu:ac.getRandom(0,99.9),mem:ac.getRandom(0,400)}})),this.events.next(JSON.stringify({event:po.SPACESTATS,device:tp.SELF,data:{free:ac.getRandom(0,40),total:50,format:"GB"}})),this.events.next(JSON.stringify({event:po.WIFI,device:tp.SELF,data:1==ac.getRandomRound(1,2)?{state:"Connected",ap:"nyk",ip:"192.168.1.2"}:{state:"Disconnected",ap:"",ip:""}}))},1e3)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function BB(n,e){if(1&n){const t=Qa();le(0,"p",6),Pe("click",function(){const o=fa(t).$implicit;return pa(dn().selectHeader(o))}),Ne(1),ie()}if(2&n){const t=e.$implicit;hn("inactiveHeader",!dn().isActiveHeader(t)),Ce(1),Et(t.name)}}let rp,BD=(()=>{class n extends ep{constructor(t,r,i){super(t,r),this.ws=i,this.cpu=0,this.mem=0,this.wifi="",super.navs=[{name:"status",path:"status",action:()=>{},component:VD.name},{name:"2",path:"2",action:()=>{},component:""},{name:"3",path:"3",action:()=>{},component:""}]}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==po.SYSSTATS&&(this.cpu=Math.round(t.data.cpu),this.mem=Math.round(t.data.mem)),t.event==po.WIFI&&(this.wifi=t.data.ip?`${t.data.state} to ${t.data.ap} (${t.data.ip})`:t.data.state)})}}return n.\u0275fac=function(t){return new(t||n)(_(yn),_(Be),_(np))},n.\u0275cmp=Fe({type:n,selectors:[["app-stats-header"]],features:[G],decls:14,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,r){1&t&&(le(0,"div",0),Mn(1,BB,2,3,"p",1),ie(),Xn(2,"router-outlet"),le(3,"div",2)(4,"div",3)(5,"div",4)(6,"span"),Ne(7),ie()(),le(8,"div",5)(9,"span"),Ne(10),ie()(),le(11,"div",4)(12,"span"),Ne(13),ie()()()()),2&t&&(Ce(1),An("ngForOf",r.navs),Ce(6),Qi("CPU ",r.cpu,"%"),Ce(3),Et(r.wifi),Ce(3),Qi("MEM ",r.mem,"MB"))},dependencies:[ro,co],encapsulation:2}),n})();try{rp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{rp=!1}let Os,ni,ip,Pn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function t1(n){return n===JC}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!rp)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(y(Lh))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lc(n){return function HB(){if(null==Os&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Os=!0}))}finally{Os=Os||!1}return Os}()?n:!!n.capture}function jB(){if(null==ni){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ni=!1,ni;if("scrollBehavior"in document.documentElement.style)ni=!0;else{const n=Element.prototype.scrollTo;ni=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ni}function op(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function ri(n){return n.composedPath?n.composedPath()[0]:n.target}function sp(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function UD(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function $D(n){return yt((e,t)=>n<=t)}function ZB(n,e){return n===e}function ap(n){return Re((e,t)=>{bt(n).subscribe(Ee(t,()=>t.complete(),Qc)),!t.closed&&e.subscribe(t)})}function uc(n){return Array.isArray(n)?n:[n]}function Ge(n){return null==n?"":"string"==typeof n?n:`${n}px`}function dc(n){return n instanceof Ue?n.nativeElement:n}let JB=(()=>{class n{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({providers:[JB]}),n})();class eH extends nt{constructor(e,t){super()}schedule(e,t=0){return this}}const hc={setInterval(n,e,...t){const{delegate:r}=hc;return r?.setInterval?r.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=hc;return(e?.clearInterval||clearInterval)(n)},delegate:void 0};class lp extends eH{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var r;if(this.closed)return this;this.state=e;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,r=0){return hc.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&hc.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,hi(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}const GD={now:()=>(GD.delegate||Date).now(),delegate:void 0};class Ps{constructor(e,t=Ps.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,r){return new this.schedulerActionCtor(this,e).schedule(r,t)}}Ps.now=GD.now;class cp extends Ps{constructor(e,t=Ps.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}const up=new cp(lp),tH=up,WD=new Set;let go,rH=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):oH}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function iH(n){if(!WD.has(n))try{go||(go=document.createElement("style"),go.setAttribute("type","text/css"),document.head.appendChild(go)),go.sheet&&(go.sheet.insertRule(`@media ${n} {body{ }}`,0),WD.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(y(Pn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let sH=(()=>{class n{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return qD(uc(t)).some(i=>this._registerQuery(i).mql.matches)}observe(t){let o=Df(qD(uc(t)).map(s=>this._registerQuery(s).observable));return o=Nl(o.pipe(Xt(1)),o.pipe($D(1),function nH(n,e=up){return Re((t,r)=>{let i=null,o=null,s=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=o;o=null,r.next(c)}};function l(){const c=s+n,u=e.now();if(u{o=c,s=e.now(),i||(i=e.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}(0))),o.pipe(B(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const r=this._mediaMatcher.matchMedia(t),o={observable:new De(s=>{const a=l=>this._zone.run(()=>s.next(l));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(Vl(r),B(({matches:s})=>({query:t,matches:s})),ap(this._destroySubject)),mql:r};return this._queries.set(t,o),o}}return n.\u0275fac=function(t){return new(t||n)(y(rH),y(te))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qD(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}let fc=(()=>{class n{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function uH(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const r=function cH(n){try{return n.frameElement}catch{return null}}(function yH(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(t));if(r&&(-1===QD(r)||!this.isVisible(r)))return!1;let i=t.nodeName.toLowerCase(),o=QD(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===i||"object"===i||this._platform.WEBKIT&&this._platform.IOS&&!function gH(n){let e=n.nodeName.toLowerCase(),t="input"===e&&n.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==o:"video"===i?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,r){return function _H(n){return!function hH(n){return function pH(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function dH(n){let e=n.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(n)||function fH(n){return function mH(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||ZD(n))}(t)&&!this.isDisabled(t)&&(r?.ignoreVisibility||this.isVisible(t))}}return n.\u0275fac=function(t){return new(t||n)(y(Pn))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ZD(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let e=n.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function QD(n){if(!ZD(n))return null;const e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class vH{constructor(e,t,r,i,o=!1){this._element=e,this._checker=t,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const r=this._getFirstTabbableElement(t);return r?.focus(e),!!r}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let r=0;r=0;r--){const i=t[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[r]):null;if(i)return i}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Xt(1)).subscribe(e)}}let dp=(()=>{class n{constructor(t,r,i){this._checker=t,this._ngZone=r,this._document=i}create(t,r=!1){return new vH(t,this._checker,this._ngZone,this._document,r)}}return n.\u0275fac=function(t){return new(t||n)(y(fc),y(te),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wH=new E("cdk-input-modality-detector-options"),DH={ignoreKeys:[18,17,224,91,16]},_o=lc({passive:!0,capture:!0});let EH=(()=>{class n{constructor(t,r,i,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Lt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ri(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function bH(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(s)?"keyboard":"mouse"),this._mostRecentTarget=ri(s))},this._onTouchstart=s=>{!function CH(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(s)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ri(s)):this._modality.next("keyboard")},this._options={...DH,...o},this.modalityDetected=this._modality.pipe($D(1)),this.modalityChanged=this.modalityDetected.pipe(function YB(n,e=cr){return n=n??ZB,Re((t,r)=>{let i,o=!0;t.subscribe(Ee(r,s=>{const a=e(s);(o||!n(i,a))&&(o=!1,i=a,r.next(s))}))})}()),t.isBrowser&&r.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,_o),i.addEventListener("mousedown",this._onMousedown,_o),i.addEventListener("touchstart",this._onTouchstart,_o)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,_o),document.removeEventListener("mousedown",this._onMousedown,_o),document.removeEventListener("touchstart",this._onTouchstart,_o))}}return n.\u0275fac=function(t){return new(t||n)(y(Pn),y(te),y(K),y(wH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const MH=new E("cdk-focus-monitor-default-options"),pc=lc({passive:!0,capture:!0});let hp=(()=>{class n{constructor(t,r,i,o,s){this._ngZone=t,this._platform=r,this._inputModalityDetector=i,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new de,this._rootNodeFocusAndBlurListener=a=>{for(let c=ri(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(t,r=!1){const i=dc(t);if(!this._platform.isBrowser||1!==i.nodeType)return R(null);const o=function $B(n){if(function UB(){if(null==ip){const n=typeof document<"u"?document.head:null;ip=!(!n||!n.createShadowRoot&&!n.attachShadow)}return ip}()){const e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;const a={checkChildren:r,subject:new de,rootNode:o};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const r=dc(t),i=this._elementInfo.get(r);i&&(i.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(i))}focusVia(t,r,i){const o=dc(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,r,l)):(this._setOrigin(r),"function"==typeof o.focus&&o.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,r){t.classList.toggle("cdk-focused",!!r),t.classList.toggle("cdk-touch-focused","touch"===r),t.classList.toggle("cdk-keyboard-focused","keyboard"===r),t.classList.toggle("cdk-mouse-focused","mouse"===r),t.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,r){const i=this._elementInfo.get(r),o=ri(t);!i||!i.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),i)}_onBlur(t,r){const i=this._elementInfo.get(r);!i||i.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(i,null))}_emitOrigin(t,r){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const r=t.rootNode,i=this._rootNodeFocusListenerCount.get(r)||0;i||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,pc),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,pc)}),this._rootNodeFocusListenerCount.set(r,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ap(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const i=this._rootNodeFocusListenerCount.get(r);i>1?this._rootNodeFocusListenerCount.set(r,i-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,pc),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,pc),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,i){this._setClasses(t,r),this._emitOrigin(i,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){const r=[];return this._elementInfo.forEach((i,o)=>{(o===t||i.checkChildren&&o.contains(t))&&r.push([o,i])}),r}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:r,mostRecentModality:i}=this._inputModalityDetector;if("mouse"!==i||!r||r===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class n{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=be(sH).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,i=r&&r.getComputedStyle?r.getComputedStyle(t):null,o=(i&&i.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(fp,JD,eE),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?t.add(fp,JD):2===r&&t.add(fp,eE)}}}return n.\u0275fac=function(t){return new(t||n)(y(Pn),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AH=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(y(tE))},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[zD]}),n})();const IH=["addListener","removeListener"],TH=["addEventListener","removeEventListener"],xH=["on","off"];function pp(n,e,t,r){if(ne(t)&&(r=t,t=void 0),r)return pp(n,e,t).pipe(wf(r));const[i,o]=function kH(n){return ne(n.addEventListener)&&ne(n.removeEventListener)}(n)?TH.map(s=>a=>n[s](e,a,t)):function RH(n){return ne(n.addListener)&&ne(n.removeListener)}(n)?IH.map(nE(n,e)):function FH(n){return ne(n.on)&&ne(n.off)}(n)?xH.map(nE(n,e)):[];if(!i&&lu(n))return Xe(s=>pp(s,e,t))(bt(n));if(!i)throw new TypeError("Invalid event target");return new De(s=>{const a=(...l)=>s.next(1o(a)})}function nE(n,e){return t=>r=>n[t](e,r)}const Ns={schedule(n){let e=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:r}=Ns;r&&(e=r.requestAnimationFrame,t=r.cancelAnimationFrame);const i=e(o=>{t=void 0,n(o)});return new nt(()=>t?.(i))},requestAnimationFrame(...n){const{delegate:e}=Ns;return(e?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:e}=Ns;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class PH extends cp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:r}=this;let i;e=e||r.shift();do{if(i=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw i}}}(class OH extends lp{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=Ns.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,r=0){var i;if(null!=r?r>0:this.delay>0)return super.recycleAsyncId(e,t,r);const{actions:o}=e;null!=t&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==t&&(Ns.cancelAnimationFrame(t),e._scheduled=void 0)}});let mp,LH=1;const mc={};function rE(n){return n in mc&&(delete mc[n],!0)}const VH={setImmediate(n){const e=LH++;return mc[e]=!0,mp||(mp=Promise.resolve()),mp.then(()=>rE(e)&&n()),e},clearImmediate(n){rE(n)}},{setImmediate:BH,clearImmediate:HH}=VH,gc={setImmediate(...n){const{delegate:e}=gc;return(e?.setImmediate||BH)(...n)},clearImmediate(n){const{delegate:e}=gc;return(e?.clearImmediate||HH)(n)},delegate:void 0};new class UH extends cp{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:r}=this;let i;e=e||r.shift();do{if(i=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw i}}}(class jH extends lp{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=gc.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,r=0){var i;if(null!=r?r>0:this.delay>0)return super.recycleAsyncId(e,t,r);const{actions:o}=e;null!=t&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==t&&(gc.clearImmediate(t),e._scheduled=void 0)}});function iE(n,e=up){return function zH(n){return Re((e,t)=>{let r=!1,i=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,r){r=!1;const c=i;i=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};e.subscribe(Ee(t,c=>{r=!0,i=c,o||bt(n(c)).subscribe(o=Ee(t,a,l))},()=>{s=!0,(!r||!o||o.closed)&&t.complete()}))})}(()=>function WH(n=0,e,t=tH){let r=-1;return null!=e&&(zm(e)?t=e:r=e),new De(i=>{let o=function GH(n){return n instanceof Date&&!isNaN(n)}(n)?+n-t.now():n;o<0&&(o=0);let s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}(n,e))}const qH=new E("cdk-dir-doc",{providedIn:"root",factory:function KH(){return be(K)}}),YH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let gp=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new we,t){const i=t.documentElement?t.documentElement.dir:null;this.value=function ZH(n){const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?YH.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||i||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(y(qH,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ls=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({}),n})(),XH=(()=>{class n{constructor(t,r,i){this._ngZone=t,this._platform=r,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new De(r=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(iE(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):R()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){const i=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe(yt(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(t){const r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,t)&&r.push(o)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,r){let i=dc(r),o=t.getElementRef().nativeElement;do{if(i==o)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>pp(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(y(te),y(Pn),y(K,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oE=(()=>{class n{constructor(t,r,i){this._platform=t,this._change=new de,this._changeListener=o=>{this._change.next(o)},this._document=i,r.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,r=this._getWindow(),i=t.documentElement,o=i.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||r.scrollY||i.scrollTop||0,left:-o.left||t.body.scrollLeft||r.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(iE(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(y(Pn),y(te),y(K,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({}),n})(),aE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[Ls,sE,Ls,sE]}),n})();class _p{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class yp extends _p{constructor(e,t,r,i){super(),this.component=e,this.viewContainerRef=t,this.injector=r,this.componentFactoryResolver=i}}class lE extends _p{constructor(e,t,r,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=r,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class ej extends _p{constructor(e){super(),this.element=e instanceof Ue?e.nativeElement:e}}class vp{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof yp?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof lE?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof ej?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tj extends vp{constructor(e,t,r,i,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=r,this._defaultInjector=i,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=r.create(e.injector||this._defaultInjector||Ke.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let t=e.viewContainerRef,r=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return r.rootNodes.forEach(i=>this.outletElement.appendChild(i)),r.detectChanges(),this.setDisposeFn(()=>{let i=t.indexOf(r);-1!==i&&t.remove(i)}),this._attachedPortal=e,r}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let bp=(()=>{class n extends vp{constructor(t,r,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new we,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const r=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=r.createComponent(o,r.length,t.injector||r.injector);return r!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return n.\u0275fac=function(t){return new(t||n)(_(zr),_(Yt),_(K))},n.\u0275dir=P({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[G]}),n})(),_c=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({}),n})();const cE=jB();class nj{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ge(-this._previousScrollPosition.left),e.style.top=Ge(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,r=e.style,i=this._document.body.style,o=r.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),cE&&(r.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),cE&&(r.scrollBehavior=o,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,r=this._viewportRuler.getViewportSize();return t.scrollHeight>r.height||t.scrollWidth>r.width}}class rj{constructor(e,t,r,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class uE{enable(){}disable(){}attach(){}}function Cp(n,e){return e.some(t=>n.bottomt.bottom||n.rightt.right)}function dE(n,e){return e.some(t=>n.topt.bottom||n.leftt.right)}class ij{constructor(e,t,r,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:r,height:i}=this._viewportRuler.getViewportSize();Cp(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let oj=(()=>{class n{constructor(t,r,i,o){this._scrollDispatcher=t,this._viewportRuler=r,this._ngZone=i,this.noop=()=>new uE,this.close=s=>new rj(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new nj(this._viewportRuler,this._document),this.reposition=s=>new ij(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(t){return new(t||n)(y(XH),y(oE),y(te),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class hE{constructor(e){if(this.scrollStrategy=new uE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const r of t)void 0!==e[r]&&(this[r]=e[r])}}}class sj{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let fE=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const r=this._attachedOverlays.indexOf(t);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aj=(()=>{class n extends fE{constructor(t,r){super(t),this._ngZone=r,this._keydownListener=i=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(i)):a.next(i);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(te,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lj=(()=>{class n extends fE{constructor(t,r,i){super(t),this._platform=r,this._ngZone=i,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ri(o)},this._clickListener=o=>{const s=ri(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}add(t){if(super.add(t),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(Pn),y(te,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yc=(()=>{class n{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||sp()){const i=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new de,this._outsidePointerEvents=new de,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Xt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Ge(this._config.width),e.height=Ge(this._config.height),e.minWidth=Ge(this._config.minWidth),e.minHeight=Ge(this._config.minHeight),e.maxWidth=Ge(this._config.maxWidth),e.maxHeight=Ge(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,r){const i=uc(t||[]).filter(o=>!!o);i.length&&(r?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(ap(uu(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const pE="cdk-overlay-connected-position-bounding-box",cj=/([A-Za-z%]+)$/;class uj{constructor(e,t,r,i,o){this._viewportRuler=t,this._document=r,this._platform=i,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new de,this._resizeSubscription=nt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(pE),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,r=this._viewportRect,i=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,i,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,r,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,r)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ii(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(pE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,r){let i,o;if("center"==r.originX)i=e.left+e.width/2;else{const s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;i="start"==r.originX?s:a}return t.left<0&&(i-=t.left),o="center"==r.originY?e.top+e.height/2:"top"==r.originY?e.top:e.bottom,t.top<0&&(o-=t.top),{x:i,y:o}}_getOverlayPoint(e,t,r){let i,o;return i="center"==r.overlayX?-t.width/2:"start"===r.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==r.overlayY?-t.height/2:"top"==r.overlayY?0:-t.height,{x:e.x+i,y:e.y+o}}_getOverlayFit(e,t,r,i){const o=gE(t);let{x:s,y:a}=e,l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-r.height,p=this._subtractOverflows(o.width,0-s,s+o.width-r.width),m=this._subtractOverflows(o.height,h,f),g=p*m;return{visibleArea:g,isCompletelyWithinViewport:o.width*o.height===g,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,t,r){if(this._hasFlexibleDimensions){const i=r.bottom-t.y,o=r.right-t.x,s=mE(this._overlayRef.getConfig().minHeight),a=mE(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=o;return(e.fitsInViewportVertically||null!=s&&s<=i)&&c}return!1}_pushOverlayOnScreen(e,t,r){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=gE(t),o=this._viewportRect,s=Math.max(e.x+i.width-o.width,0),a=Math.max(e.y+i.height-o.height,0),l=Math.max(o.top-r.top-e.y,0),c=Math.max(o.left-r.left-e.x,0);let u=0,d=0;return u=i.width<=o.width?c||-s:e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)h=r.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)d=e.x,u=r.right-e.x;else{const f=Math.min(r.right-e.x+r.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,t){const r=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Ge(r.height),i.top=Ge(r.top),i.bottom=Ge(r.bottom),i.width=Ge(r.width),i.left=Ge(r.left),i.right=Ge(r.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(i.maxHeight=Ge(o)),s&&(i.maxWidth=Ge(s))}this._lastBoundingBoxSize=r,ii(this._boundingBox.style,i)}_resetBoundingBoxStyles(){ii(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ii(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const r={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const u=this._viewportRuler.getViewportScrollPosition();ii(r,this._getExactOverlayY(t,e,u)),ii(r,this._getExactOverlayX(t,e,u))}else r.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),r.transform=a.trim(),s.maxHeight&&(i?r.maxHeight=Ge(s.maxHeight):o&&(r.maxHeight="")),s.maxWidth&&(i?r.maxWidth=Ge(s.maxWidth):o&&(r.maxWidth="")),ii(this._pane.style,r)}_getExactOverlayY(e,t,r){let i={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,r)),"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":i.top=Ge(o.y),i}_getExactOverlayX(e,t,r){let s,i={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,r)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=Ge(o.x),i}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),r=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:dE(e,r),isOriginOutsideView:Cp(e,r),isOverlayClipped:dE(t,r),isOverlayOutsideView:Cp(t,r)}}_subtractOverflows(e,...t){return t.reduce((r,i)=>r-Math.max(i,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._viewportMargin,left:r.left+this._viewportMargin,right:r.left+e-this._viewportMargin,bottom:r.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&uc(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Ue)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,r=e.height||0;return{top:e.y,bottom:e.y+r,left:e.x,right:e.x+t,height:r,width:t}}}function ii(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function mE(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(cj);return t&&"px"!==t?null:parseFloat(e)}return n||null}function gE(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const _E="cdk-global-overlay-wrapper";class dj{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(_E),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:s,maxHeight:a}=r,l=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===u?(m="center",h?p=d:f=d):h?"left"===u||"end"===u?(m="flex-end",f=d):("right"===u||"start"===u)&&(m="flex-start",p=d):"left"===u||"start"===u?(m="flex-start",f=d):("right"===u||"end"===u)&&(m="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,t.justifyContent=m,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,r=t.style;t.classList.remove(_E),r.justifyContent=r.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let hj=(()=>{class n{constructor(t,r,i,o){this._viewportRuler=t,this._document=r,this._platform=i,this._overlayContainer=o}global(){return new dj}flexibleConnectedTo(t){return new uj(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(y(oE),y(K),y(Pn),y(yc))},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fj=0,yo=(()=>{class n{constructor(t,r,i,o,s,a,l,c,u,d,h,f){this.scrollStrategies=t,this._overlayContainer=r,this._componentFactoryResolver=i,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const r=this._createHostElement(),i=this._createPaneElement(r),o=this._createPortalOutlet(i),s=new hE(t);return s.direction=s.direction||this._directionality.value,new Vs(o,r,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const r=this._document.createElement("div");return r.id="cdk-overlay-"+fj++,r.classList.add("cdk-overlay-pane"),t.appendChild(r),r}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(no)),new tj(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(y(oj),y(yc),y(zr),y(hj),y(aj),y(Ke),y(te),y(K),y(gp),y(ms),y(lj),y(dl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const gj={provide:new E("cdk-connected-overlay-scroll-strategy"),deps:[yo],useFactory:function mj(n){return()=>n.scrollStrategies.reposition()}};let yE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({providers:[yo,gj],imports:[Ls,_c,aE,aE]}),n})();function _j(n,e){}class vc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let vE=(()=>{class n extends vp{constructor(t,r,i,o,s,a,l,c){super(),this._elementRef=t,this._focusTrapFactory=r,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=i}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();const r=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),r}attachTemplatePortal(t){this._portalOutlet.hasAttached();const r=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const i=()=>{t.removeEventListener("blur",i),t.removeEventListener("mousedown",i),t.removeAttribute("tabindex")};t.addEventListener("blur",i),t.addEventListener("mousedown",i)})),t.focus(r)}_focusByCssSelector(t,r){let i=this._elementRef.nativeElement.querySelector(t);i&&this._forceFocus(i,r)}_trapFocus(){const t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(r=>{r||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const t=this._config.restoreFocus;let r=null;if("string"==typeof t?r=this._document.querySelector(t):"boolean"==typeof t?r=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(r=t),this._config.restoreFocus&&r&&"function"==typeof r.focus){const i=op(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,r=op();return t===r||t.contains(r)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=op())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(t){return new(t||n)(_(Ue),_(dp),_(K,8),_(vc),_(fc),_(te),_(Vs),_(hp))},n.\u0275cmp=Fe({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,r){if(1&t&&kb(bp,7),2&t){let i;ol(i=function sl(){return function SO(n,e){return n[19].queries[e].queryList}(w(),gg())}())&&(r._portalOutlet=i.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,r){2&t&&Nt("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledBy)("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[G],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Mn(0,_j,0,0,"ng-template",0)},dependencies:[bp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class wp{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new de,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(r=>{27===r.keyCode&&!this.disableClose&&!UD(r)&&(r.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(e,t){if(this.containerInstance){const r=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this.overlayRef.dispose(),r.next(e),r.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}}const bE=new E("DialogScrollStrategy"),yj=new E("DialogData"),vj=new E("DefaultDialogConfig"),Cj={provide:bE,deps:[yo],useFactory:function bj(n){return()=>n.scrollStrategies.block()}};let wj=0,CE=(()=>{class n{constructor(t,r,i,o,s,a){this._overlay=t,this._injector=r,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new de,this._afterOpenedAtThisLevel=new de,this._ariaHiddenElements=new Map,this.afterAllClosed=Ll(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vl(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(t,r){(r={...this._defaultOptions||new vc,...r}).id=r.id||"cdk-dialog-"+wj++,r.id&&this.getDialogById(r.id);const o=this._getOverlayConfig(r),s=this._overlay.create(o),a=new wp(s,r),l=this._attachContainer(s,a,r);return a.containerInstance=l,this._attachDialogContent(t,a,l,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Dp(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){Dp(this._openDialogsAtThisLevel,t=>{!1===t.config.closeOnDestroy&&this._removeOpenDialog(t,!1)}),Dp(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){const r=new hE({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(r.backdropClass=t.backdropClass),r}_attachContainer(t,r,i){const o=i.injector||i.viewContainerRef?.injector,s=[{provide:vc,useValue:i},{provide:wp,useValue:r},{provide:Vs,useValue:t}];let a;i.container?"function"==typeof i.container?a=i.container:(a=i.container.type,s.push(...i.container.providers(i))):a=vE;const l=new yp(a,i.viewContainerRef,Ke.create({parent:o||this._injector,providers:s}),i.componentFactoryResolver);return t.attach(l).instance}_attachDialogContent(t,r,i,o){if(t instanceof xn){const s=this._createInjector(o,r,i,void 0);let a={$implicit:o.data,dialogRef:r};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),i.attachTemplatePortal(new lE(t,null,a,s))}else{const s=this._createInjector(o,r,i,this._injector),a=i.attachComponentPortal(new yp(t,o.viewContainerRef,s,o.componentFactoryResolver));r.componentInstance=a.instance}}_createInjector(t,r,i,o){const s=t.injector||t.viewContainerRef?.injector,a=[{provide:yj,useValue:t.data},{provide:wp,useValue:r}];return t.providers&&("function"==typeof t.providers?a.push(...t.providers(r,t,i)):a.push(...t.providers)),t.direction&&(!s||!s.get(gp,null,k.Optional))&&a.push({provide:gp,useValue:{value:t.direction,change:R()}}),Ke.create({parent:s||o,providers:a})}_removeOpenDialog(t,r){const i=this.openDialogs.indexOf(t);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const r=t.parentElement.children;for(let i=r.length-1;i>-1;i--){const o=r[i];o!==t&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(t){return new(t||n)(y(yo),y(Ke),y(vj,8),y(n,12),y(yc),y(bE))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();function Dp(n,e){let t=n.length;for(;t--;)e(n[t])}let Dj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({providers:[CE,Cj],imports:[yE,_c,AH,_c]}),n})();const Sj=new E("mat-sanity-checks",{providedIn:"root",factory:function Ej(){return!0}});let vn=(()=>{class n{constructor(t,r,i){this._sanityChecks=r,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!sp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(y(tE),y(Sj,8),y(K))},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[Ls,Ls]}),n})();function Mj(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const r=t||this.defaultColor;r!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),r&&this._elementRef.nativeElement.classList.add(`mat-${r}`),this._color=r)}}}let Ij=(()=>{class n{isErrorState(t,r){return!!(t&&t.invalid&&(t.touched||r&&r.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[vn,vn]}),n})();class AE{}const sr="*";function IE(n,e){return{type:7,name:n,definitions:e,options:{}}}function Sp(n,e=null){return{type:4,styles:e,timings:n}}function TE(n,e=null){return{type:3,steps:n,options:e}}function xE(n,e=null){return{type:2,steps:n,options:e}}function Er(n){return{type:6,styles:n,offset:null}}function Mp(n,e,t){return{type:0,name:n,styles:e,options:t}}function Ap(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function RE(n=null){return{type:9,options:n}}function FE(n,e,t=null){return{type:11,selector:n,animation:e,options:t}}function kE(n){Promise.resolve().then(n)}class Hs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){kE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class OE{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,i=0;const o=this.players.length;0==o?kE(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}function Oj(n,e){}const vo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Pj={dialogContainer:IE("dialogContainer",[Mp("void, exit",Er({opacity:0,transform:"scale(0.7)"})),Mp("enter",Er({transform:"none"})),Ap("* => enter",TE([Sp("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Er({transform:"none",opacity:1})),FE("@*",RE(),{optional:!0})]),vo),Ap("* => void, * => exit",TE([Sp("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Er({opacity:0})),FE("@*",RE(),{optional:!0})]),vo)])};class bc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=vo.params.enterAnimationDuration,this.exitAnimationDuration=vo.params.exitAnimationDuration}}let Nj=(()=>{class n extends vE{constructor(t,r,i,o,s,a,l,c){super(t,r,i,o,s,a,l,c),this._animationStateChanged=new we}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}}return n.\u0275fac=function(t){return new(t||n)(_(Ue),_(dp),_(K,8),_(bc),_(fc),_(te),_(Vs),_(hp))},n.\u0275cmp=Fe({type:n,selectors:[["ng-component"]],features:[G],decls:0,vars:0,template:function(t,r){},encapsulation:2}),n})(),Lj=(()=>{class n extends Nj{constructor(t,r,i,o,s,a,l,c,u){super(t,r,i,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:t,totalTime:r}){"enter"===t?this._openAnimationDone(r):"exit"===t&&this._animationStateChanged.next({state:"closed",totalTime:r})}_onAnimationStart({toState:t,totalTime:r}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:r}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:r})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||vo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||vo.params.exitAnimationDuration}}}}return n.\u0275fac=function(t){return new(t||n)(_(Ue),_(dp),_(K,8),_(bc),_(fc),_(te),_(Vs),_(fs),_(hp))},n.\u0275cmp=Fe({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(t,r){1&t&&ch("@dialogContainer.start",function(o){return r._onAnimationStart(o)})("@dialogContainer.done",function(o){return r._onAnimationDone(o)}),2&t&&(fh("id",r._config.id),Nt("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledBy)("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ph("@dialogContainer",r._getAnimationState()))},features:[G],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&Mn(0,Oj,0,0,"ng-template",0)},dependencies:[bp],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Pj.dialogContainer]}}),n})();class PE{constructor(e,t,r){this._ref=e,this._containerInstance=r,this._afterOpened=new de,this._beforeClosed=new de,this._state=0,this.disableClose=t.disableClose,this.id=e.id,r._animationStateChanged.pipe(yt(i=>"opened"===i.state),Xt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),r._animationStateChanged.pipe(yt(i=>"closed"===i.state),Xt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),uu(this.backdropClick(),this.keydownEvents().pipe(yt(i=>27===i.keyCode&&!this.disableClose&&!UD(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),function Vj(n,e,t){n._closeInteractionType=e,n.close(t)}(this,"keydown"===i.type?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(yt(t=>"closing"===t.state),Xt(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const NE=new E("MatDialogData"),Bj=new E("mat-dialog-default-options"),LE=new E("mat-dialog-scroll-strategy"),jj={provide:LE,deps:[yo],useFactory:function Hj(n){return()=>n.scrollStrategies.block()}};let Uj=0,$j=(()=>{class n{constructor(t,r,i,o,s,a,l,c,u,d){this._overlay=t,this._defaultOptions=i,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new de,this._afterOpenedAtThisLevel=new de,this._idPrefix="mat-dialog-",this.afterAllClosed=Ll(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vl(void 0))),this._scrollStrategy=a,this._dialog=r.get(CE)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,r){let i;(r={...this._defaultOptions||new bc,...r}).id=r.id||`${this._idPrefix}${Uj++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(t,{...r,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:bc,useValue:r},{provide:vc,useValue:r}]},templateContext:()=>({dialogRef:i}),providers:(s,a,l)=>(i=new this._dialogRefConstructor(s,r,l),i.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:i}])});return i.componentInstance=o.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(i);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),i}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let r=t.length;for(;r--;)t[r].close()}}return n.\u0275fac=function(t){Ba()},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),VE=(()=>{class n extends $j{constructor(t,r,i,o,s,a,l,c){super(t,r,o,a,l,s,PE,Lj,NE,c)}}return n.\u0275fac=function(t){return new(t||n)(y(yo),y(Ke),y(ms,8),y(Bj,8),y(LE),y(n,12),y(yc),y(dl,8))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),BE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=P({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),zj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({providers:[VE,jj],imports:[Dj,yE,_c,vn,vn]}),n})(),HE=(()=>{class n{constructor(t,r,i){this.data=t,this.ref=r,this.sanitazer=i}onEscapeKeydown(t){this.ref.close()}}return n.\u0275fac=function(t){return new(t||n)(_(NE),_(PE),_(Ol))},n.\u0275cmp=Fe({type:n,selectors:[["app-abs-app"]],hostBindings:function(t,r){1&t&&Pe("keydown.escape",function(o){return r.onEscapeKeydown(o)},0,Ni)},decls:0,vars:0,template:function(t,r){},encapsulation:2}),n})(),Gj=(()=>{class n extends HE{constructor(){super(...arguments),this.clockTxt="",this.inverval=null}ngOnInit(){this.genClock(),null==this.inverval&&(this.inverval=setInterval(()=>{this.genClock()},1e3))}genClock(){this.clockTxt=(new Date).toLocaleTimeString()}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=et(n)))(r||n)}}(),n.\u0275cmp=Fe({type:n,selectors:[["app-clock-app"]],features:[G],decls:4,vars:1,consts:[["mat-dialog-content",""],[2,"display","flex","justify-content","center"],[2,"font-family","TechMono, sans-serif","font-size","60px"]],template:function(t,r){1&t&&(le(0,"div",0)(1,"div",1)(2,"p",2),Ne(3),ie()()()),2&t&&(Ce(3),Et(r.clockTxt))},dependencies:[BE],encapsulation:2}),n})(),Wj=(()=>{class n extends HE{constructor(){super(...arguments),this.content={}}ngOnInit(){this.content.url=this.sanitazer.bypassSecurityTrustResourceUrl(this.data.url)}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=et(n)))(r||n)}}(),n.\u0275cmp=Fe({type:n,selectors:[["iframe-opener"]],features:[G],decls:2,vars:1,consts:[["mat-dialog-content",""],["width","100%","height","100%",3,"src"]],template:function(t,r){1&t&&(le(0,"div",0),Xn(1,"iframe",1),ie()),2&t&&(Ce(1),An("src",r.content.url,bd))},dependencies:[BE]}),n})();class jE{constructor(){this.elements=[],this.elementsRight=[],this.currentSide="LEFT"}choiceItem(e){switch(this.currentSide){case"LEFT":return this.choiceLeft(e);case"RIGHT":return this.choiceRight(e)}}choiceLeft(e){if("LEFT"!=this.currentSide)return;let t=this.elements.indexOf(this.selected);switch(e.code){case"KeyS":t+1>=this.elements.length&&(t=-1),this.selected=this.elements[t+1];break;case"KeyW":t-1<0&&(t=this.elements.length),this.selected=this.elements[t-1];break;case"Enter":this.selected.action()}}choiceRight(e){if("RIGHT"!=this.currentSide)return;let t=this.elementsRight.indexOf(this.selectedRight);switch(e.code){case"KeyS":t+1>=this.elementsRight.length&&(t=-1),this.selectedRight=this.elementsRight[t+1];break;case"KeyW":t-1<0&&(t=this.elementsRight.length),this.selectedRight=this.elementsRight[t-1];break;case"Enter":this.selectedRight.action()}}}class qj{}class Sr{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let r=e[t];const i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Sr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Sr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Sr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Kj{encodeKey(e){return $E(e)}encodeValue(e){return $E(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const Zj=/%(\d[a-f0-9])/gi,Qj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function $E(n){return encodeURIComponent(n).replace(Zj,(e,t)=>Qj[t]??e)}function Cc(n){return`${n}`}class Mr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Kj,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Yj(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t],i=Array.isArray(r)?r.map(Cc):[Cc(r)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Mr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Cc(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(Cc(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class Xj{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function zE(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function GE(n){return typeof Blob<"u"&&n instanceof Blob}function WE(n){return typeof FormData<"u"&&n instanceof FormData}class js{constructor(e,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function Jj(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Sr),this.context||(this.context=new Xj),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,h)=>d.set(h,e.setParams[h]),c)),new js(t,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var it=(()=>((it=it||{})[it.Sent=0]="Sent",it[it.UploadProgress=1]="UploadProgress",it[it.ResponseHeader=2]="ResponseHeader",it[it.DownloadProgress=3]="DownloadProgress",it[it.Response=4]="Response",it[it.User=5]="User",it))();class Tp extends class t2{constructor(e,t=200,r="OK"){this.headers=e.headers||new Sr,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=it.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Tp({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function xp(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let KE=(()=>{class n{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof js)o=t;else{let l,c;l=i.headers instanceof Sr?i.headers:new Sr(i.headers),i.params&&(c=i.params instanceof Mr?i.params:new Mr({fromObject:i.params})),o=new js(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=R(o).pipe(wr(l=>this.handler.handle(l)));if(t instanceof js||"events"===i.observe)return s;const a=s.pipe(yt(l=>l instanceof Tp));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(B(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(B(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(B(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Mr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,xp(i,r))}post(t,r,i={}){return this.request("POST",t,xp(i,r))}put(t,r,i={}){return this.request("PUT",t,xp(i,r))}}return n.\u0275fac=function(t){return new(t||n)(y(qj))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();const r2=["*"];let wc;function Us(n){return function o2(){if(void 0===wc&&(wc=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(wc=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return wc}()?.createHTML(n)||n}function YE(n){return Error(`Unable to find icon with the name "${n}"`)}function ZE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function QE(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class oi{constructor(e,t,r){this.url=e,this.svgText=t,this.options=r}}let Dc=(()=>{class n{constructor(t,r,i,o){this._httpClient=t,this._sanitizer=r,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=i}addSvgIcon(t,r,i){return this.addSvgIconInNamespace("",t,r,i)}addSvgIconLiteral(t,r,i){return this.addSvgIconLiteralInNamespace("",t,r,i)}addSvgIconInNamespace(t,r,i,o){return this._addSvgIconConfig(t,r,new oi(i,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,i,o){const s=this._sanitizer.sanitize(ae.HTML,i);if(!s)throw QE(i);const a=Us(s);return this._addSvgIconConfig(t,r,new oi("",a,o))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,i){return this._addSvgIconSetConfig(t,new oi(r,null,i))}addSvgIconSetLiteralInNamespace(t,r,i){const o=this._sanitizer.sanitize(ae.HTML,r);if(!o)throw QE(r);const s=Us(o);return this._addSvgIconSetConfig(t,new oi("",s,i))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const r=this._sanitizer.sanitize(ae.RESOURCE_URL,t);if(!r)throw ZE(t);const i=this._cachedIconsByUrl.get(r);return i?R(Ec(i)):this._loadSvgIconFromConfig(new oi(t,null)).pipe(Qe(o=>this._cachedIconsByUrl.set(r,o)),B(o=>Ec(o)))}getNamedSvgIcon(t,r=""){const i=XE(r,t);let o=this._svgIconConfigs.get(i);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(r,t),o)return this._svgIconConfigs.set(i,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(r);return s?this._getSvgFromIconSetConfigs(t,s):io(YE(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?R(Ec(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(B(r=>Ec(r)))}_getSvgFromIconSetConfigs(t,r){const i=this._extractIconWithNameFromAnySet(t,r);return i?R(i):function UE(...n){const e=Gm(n),{args:t,keys:r}=Sw(n),i=new De(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?Mw(r,a):a),o.complete())}))}});return e?i.pipe(wf(e)):i}(r.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(rr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ae.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),R(null)})))).pipe(B(()=>{const s=this._extractIconWithNameFromAnySet(t,r);if(!s)throw YE(t);return s}))}_extractIconWithNameFromAnySet(t,r){for(let i=r.length-1;i>=0;i--){const o=r[i];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Qe(r=>t.svgText=r),B(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?R(null):this._fetchIcon(t).pipe(Qe(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,i){const o=t.querySelector(`[id="${r}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const a=this._svgElementFromString(Us(""));return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(t){const r=this._document.createElement("DIV");r.innerHTML=t;const i=r.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const r=this._svgElementFromString(Us("")),i=t.attributes;for(let o=0;oUs(c)),Hl(()=>this._inProgressUrlFetches.delete(s)),Ym());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,r,i){return this._svgIconConfigs.set(XE(t,r),i),this}_addSvgIconSetConfig(t,r){const i=this._iconSetConfigs.get(t);return i?i.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){const r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let i=0;ie?e.pathname+e.search:""}}}),JE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],f2=JE.map(n=>`[${n}]`).join(", "),p2=/^url\(['"]?#(.*?)['"]?\)$/;let e0=(()=>{class n extends c2{constructor(t,r,i,o,s,a){super(t),this._iconRegistry=r,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=nt.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=function QB(n){return null!=n&&"false"!=`${n}`}(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let r=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const i=t.childNodes[r];(1!==i.nodeType||"svg"===i.nodeName.toLowerCase())&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>t.classList.remove(i)),r.forEach(i=>t.classList.add(i)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const r=this._elementsWithExternalReferences;r&&r.forEach((i,o)=>{i.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const r=t.querySelectorAll(f2),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=r[o],l=a.getAttribute(s),c=l?l.match(p2):null;if(c){let u=i.get(a);u||(u=[],i.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[r,i]=this._splitIconName(t);r&&(this._svgNamespace=r),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,r).pipe(Xt(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${i}! ${o.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(_(Ue),_(Dc),Ei("aria-hidden"),_(d2),_(Kn),_(u2,8))},n.\u0275cmp=Fe({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(t,r){2&t&&(Nt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),hn("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[G],ngContentSelectors:r2,decls:1,vars:0,template:function(t,r){1&t&&(function Jy(n){const e=w()[16][6];if(!e.projection){const r=e.projection=Ho(n?n.length:1,null),i=r.slice();let o=e.child;for(;null!==o;){const s=n?tF(o,n):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(),function ev(n,e=0,t){const r=w(),i=ee(),o=Bi(i,22+n,16,null,t||null);null===o.projection&&(o.projection=e),Tu(),64!=(64&o.flags)&&function mT(n,e,t){C_(e[z],0,e,t,h_(n,t,e),g_(t.parent||e[6],t,e))}(i,r,o)}(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),m2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[vn,vn]}),n})();function g2(n,e){if(1&n&&(le(0,"div")(1,"p",6),Ne(2),ie()()),2&n){const t=e.$implicit;hn("menu-selected",t==dn().selected),Ce(2),Et(t.name)}}function _2(n,e){if(1&n&&(le(0,"mat-icon",7),Ne(1),ie()),2&n){const t=dn();Ce(1),Et(t.selected.icon)}}let t0=(()=>{class n extends jE{constructor(t){super(),this.dialog=t,this.elements=[{name:"Clock",action:()=>{null==this.openedApp&&(this.openedApp=this.dialog.open(Gj,{width:"100%",height:"100%",disableClose:!0}),this.openedApp.afterClosed().subscribe(()=>this.openedApp=void 0))},matIcon:!0,icon:"access_time",about:"\u0417\u0430\u0431\u044b\u0442\u044b\u0435 \u0447\u0430\u0441\u044b \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u043e\u0434\u0434\u0430 \u0433\u043e\u0432\u0430\u0440\u0434\u0430. \u041e\u043d \u0437\u0430\u0431\u044b\u043b \u0438\u0445 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u043a\u0430\u043b\u043b\u0430\u0443\u044276."},{name:"1",action:()=>{},matIcon:!0,icon:"help",about:"\u041a\u0443\u0441\u043e\u043a \u043a\u0430\u043b\u0430"},{name:"Rick Roll",action:()=>{this.openedApp=this.dialog.open(Wj,{width:"100%",height:"100%",disableClose:!0,data:{url:"https://youtu.be/dQw4w9WgXcQ?output=embed"}}),this.openedApp.afterClosed().subscribe(()=>this.openedApp=void 0)},matIcon:!0,icon:"record_voice_over",about:"\u041d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0438\u043a\u0440\u043e\u043b\u043b\u0430"}],this.selected=this.elements[0]}choiceItem(t){null==this.openedApp&&super.choiceItem(t)}}return n.\u0275fac=function(t){return new(t||n)(_(VE))},n.\u0275cmp=Fe({type:n,selectors:[["app-inventory-apps-component"]],hostBindings:function(t,r){1&t&&Pe("keypress",function(o){return r.choiceItem(o)},0,Ni)},features:[G],decls:9,vars:3,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","84%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],["class","rotating-image","style","font-size: 100px; height: 100px; width: 100px",4,"ngIf"],[2,"margin","0 0"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"]],template:function(t,r){1&t&&(le(0,"div",0)(1,"div",1),Mn(2,g2,3,3,"div",2),ie(),le(3,"div",3)(4,"div",4),Mn(5,_2,2,1,"mat-icon",5),ie(),le(6,"div")(7,"p"),Ne(8),ie()()()()),2&t&&(Ce(2),An("ngForOf",r.elements),Ce(3),An("ngIf",r.selected.matIcon),Ce(3),Et(r.selected.about))},dependencies:[ro,KC,e0],encapsulation:2}),n})(),n0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-inventory-custom"]],decls:0,vars:0,template:function(t,r){},encapsulation:2}),n})();function y2(n,e){if(1&n){const t=Qa();le(0,"p",7),Pe("click",function(){const o=fa(t).$implicit;return pa(dn().selectHeader(o))}),Ne(1),ie()}if(2&n){const t=e.$implicit;hn("inactiveHeader",!dn().isActiveHeader(t)),Ce(1),Et(t.name)}}let r0=(()=>{class n extends ep{constructor(t,r,i){super(t,r),this.ws=i,this.free=0,this.total=0,this.format="",this.path="inventory",super.navs=[{name:"apps",path:"apps",action:()=>{},component:t0.name},{name:"custom",path:"custom",action:()=>{},component:n0.name}]}selectHeader(t){super.selectHeader(t,[this.path])}choiceHeader(t){super.choiceHeader(t)}ngOnInit(){this.ws.events.pipe(B(t=>JSON.parse(t))).subscribe(t=>{t.event==po.SPACESTATS&&(this.free=Math.round(t.data.free),this.total=Math.round(t.data.total),this.format=t.data.format)})}}return n.\u0275fac=function(t){return new(t||n)(_(yn),_(Be),_(np))},n.\u0275cmp=Fe({type:n,selectors:[["app-inv-header"]],hostBindings:function(t,r){1&t&&Pe("keypress",function(o){return r.choiceHeader(o)},0,Ni)},features:[G],decls:15,vars:4,consts:[[2,"display","flex","align-items","center","justify-content","flex-start","padding-left","45px"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px; padding-left: 5px",3,"inactiveHeader","click",4,"ngFor","ngForOf"],[2,"padding-top","2.5%"],[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","19.5%"],[1,"footer-text",2,"width","60%"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px","padding-left","5px",3,"click"]],template:function(t,r){1&t&&(le(0,"div",0),Mn(1,y2,2,3,"p",1),ie(),le(2,"div",2),Xn(3,"router-outlet"),ie(),le(4,"div",3)(5,"div",4)(6,"div",5)(7,"span"),Ne(8),ie()(),le(9,"div",5)(10,"span"),Ne(11,"\u0445\u0437 \u0447\u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u0434\u043e"),ie()(),le(12,"div",6)(13,"span"),Ne(14,"nigger"),ie()()()()),2&t&&(Ce(1),An("ngForOf",r.navs),Ce(7),hh("",r.free,"/",r.total,"",r.format,""))},dependencies:[ro,co],encapsulation:2}),n})(),o0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-data-header"]],decls:0,vars:0,template:function(t,r){},encapsulation:2}),n})(),s0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-map-header"]],decls:0,vars:0,template:function(t,r){},encapsulation:2}),n})(),a0=(()=>{class n{constructor(){this.name="",this.volume=.5,this.tracks=[],this.player=new Audio,this.player.addEventListener("ended",()=>{let t=this.tracks.pop();t&&this.playThis(t.src,t.name)})}playThis(t,r){this.player.src=t,this.player.volume=this.volume,this.name=r,this.player.play()}stop(){this.player.pause()}volumeUp(){this.volume>.9||(this.volume=this.volume+.1,this.player.volume=this.volume)}volumeDown(){this.volume<.1||(this.volume=this.volume-.1,this.player.volume=this.volume)}getVolume(){return Math.round(100*this.volume)}getTime(){return this.player.duration?this.player.duration<60?"0:"+Math.floor(this.player.currentTime)+" / 0:"+Math.floor(this.player.duration):Math.floor(this.player.currentTime)+" / "+Math.floor(this.player.duration):"0:00 / 0:00"}getName(){return this.name?"\u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0433\u0440\u0430\u0435\u0442: "+this.name:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0433\u0440\u0430\u0435\u0442"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function v2(n,e){if(1&n&&(le(0,"div")(1,"p",6),Ne(2),ie()()),2&n){const t=e.$implicit,r=dn();hn("menu-selected",t==r.selected&&"LEFT"==r.currentSide),Ce(2),Et(t.name)}}function b2(n,e){if(1&n&&(le(0,"div")(1,"p",6),Ne(2),ie()()),2&n){const t=e.$implicit,r=dn();hn("menu-selected",t==r.selectedRight&&"RIGHT"==r.currentSide),Ce(2),Et(t.name)}}let C2=(()=>{class n extends jE{constructor(t){super(),this.player=t,this.elements=[{name:"niggers",src:"../../../../assets/music/pvz.mp3",action:()=>{this.play()}}],this.selected=this.elements[0],this.elementsRight=[{name:"STOP",action:()=>this.player.stop()},{name:"Volume UP",action:()=>this.player.volumeUp()},{name:"Volume DOWN",action:()=>this.player.volumeDown()}],this.selectedRight=this.elementsRight[0]}play(){this.player.playThis(this.selected.src,this.selected.name)}choiceItem(t){switch(t.code){case"KeyA":this.currentSide="LEFT";break;case"KeyD":this.currentSide="RIGHT";break;default:super.choiceItem(t)}}}return n.\u0275fac=function(t){return new(t||n)(_(a0))},n.\u0275cmp=Fe({type:n,selectors:[["app-radio"]],hostBindings:function(t,r){1&t&&Pe("keypress",function(o){return r.choiceItem(o)},0,Ni)},features:[G],decls:8,vars:2,consts:[[2,"display","flex","flex-direction","row","justify-content","center","height","81%","padding-top","7%"],[2,"width","45%"],[3,"menu-selected",4,"ngFor","ngForOf"],[2,"width","45%","display","flex","flex-direction","column"],[2,"text-align","center"],[1,"rotating-image",2,"font-size","100px","height","100px","width","100px"],[2,"margin","0 0"]],template:function(t,r){1&t&&(le(0,"div",0)(1,"div",1),Mn(2,v2,3,3,"div",2),ie(),le(3,"div",3)(4,"div",4)(5,"mat-icon",5),Ne(6,"audiotrack"),ie()(),Mn(7,b2,3,3,"div",2),ie()()),2&t&&(Ce(2),An("ngForOf",r.elements),Ce(5),An("ngForOf",r.elementsRight))},dependencies:[ro,e0],encapsulation:2}),n})(),l0=(()=>{class n{constructor(t){this.player=t}}return n.\u0275fac=function(t){return new(t||n)(_(a0))},n.\u0275cmp=Fe({type:n,selectors:[["app-radio-header"]],decls:12,vars:3,consts:[[1,"footer"],[2,"display","flex","justify-content","space-between","height","100%"],[1,"footer-text",2,"width","65%"],[1,"footer-text",2,"width","9.5%","text-align","center"],[1,"footer-text",2,"width","24.5%","text-align","right"]],template:function(t,r){1&t&&(Xn(0,"app-radio"),le(1,"div",0)(2,"div",1)(3,"div",2)(4,"span"),Ne(5),ie()(),le(6,"div",3)(7,"span"),Ne(8),ie()(),le(9,"div",4)(10,"span"),Ne(11),ie()()()()),2&t&&(Ce(5),Et(r.player.getName()),Ce(3),Qi("",r.player.getVolume()," %"),Ce(3),Et(r.player.getTime()))},dependencies:[C2],encapsulation:2}),n})();function w2(n,e){if(1&n){const t=Qa();le(0,"p",2),Pe("click",function(){const o=fa(t).$implicit;return pa(dn().selectHeader(o))}),Ne(1),ie()}if(2&n){const t=e.$implicit;hn("activeHeader",dn().isActiveHeader(t)),Ce(1),Et(t.name)}}const D2=[{path:"",component:(()=>{class n extends ep{constructor(t,r){super(t,r),super.navs=[{name:"stat",path:"stats",action:()=>{},component:BD.name},{name:"inv",path:"inventory",action:()=>{},component:r0.name},{name:"data",path:"data",action:()=>{},component:o0.name},{name:"map",path:"map",action:()=>{},component:s0.name},{name:"radio",path:"radio",action:()=>{},component:l0.name}]}choiceUpperHeader(t){if(null!=this.currentNav&&t.code.startsWith("Digit")&&6==t.code.length){let r=Number.parseInt(t.code.replace("Digit",""))-1;this.navs[r]&&this.selectHeader(this.navs[r])}}}return n.\u0275fac=function(t){return new(t||n)(_(yn),_(Be))},n.\u0275cmp=Fe({type:n,selectors:[["ui"]],hostBindings:function(t,r){1&t&&Pe("keypress",function(o){return r.choiceUpperHeader(o)},0,Ni)},features:[G],decls:3,vars:1,consts:[[2,"display","flex","align-items","center","justify-content","space-evenly","border-bottom","1px solid rgb(0, 242, 0)"],["style","text-transform: uppercase;font-weight: bold; margin-bottom: 0; margin-top: 5px",3,"activeHeader","click",4,"ngFor","ngForOf"],[2,"text-transform","uppercase","font-weight","bold","margin-bottom","0","margin-top","5px",3,"click"]],template:function(t,r){1&t&&(le(0,"div",0),Mn(1,w2,2,3,"p",1),ie(),Xn(2,"router-outlet")),2&t&&(Ce(1),An("ngForOf",r.navs))},dependencies:[ro,co],encapsulation:2}),n})(),children:[{path:"",redirectTo:"stats",pathMatch:"full"},{path:"stats",component:BD,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",component:VD}]},{path:"inventory",component:r0,children:[{path:"",redirectTo:"apps",pathMatch:"full"},{path:"apps",component:t0},{path:"custom",component:n0}]},{path:"data",component:o0},{path:"map",component:s0},{path:"radio",component:l0}]}];let E2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[ND.forRoot(D2),ND]}),n})(),S2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){1&t&&Xn(0,"router-outlet")},dependencies:[co]}),n})();function c0(n){return new C(3e3,!1)}function sU(){return typeof window<"u"&&typeof window.document<"u"}function Rp(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ar(n){switch(n.length){case 0:return new Hs;case 1:return n[0];default:return new OE(n)}}function u0(n,e,t,r,i=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(r.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,m)=>{let g=m,b=p;if("offset"!==m)switch(g=e.normalizePropertyName(g,s),b){case"!":b=i.get(m);break;case sr:b=o.get(m);break;default:b=e.normalizeStyleValue(m,g,b,s)}f.set(g,b)}),h||a.push(f),c=f,l=d}),s.length)throw function K2(n){return new C(3502,!1)}();return a}function Fp(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&kp(t,"start",n)));break;case"done":n.onDone(()=>r(t&&kp(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&kp(t,"destroy",n)))}}function kp(n,e,t){const o=Op(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),s=n._data;return null!=s&&(o._data=s),o}function Op(n,e,t,r,i="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Vt(n,e,t){let r=n.get(e);return r||n.set(e,r=t),r}function d0(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let Pp=(n,e)=>!1,h0=(n,e,t)=>[],f0=null;function Np(n){const e=n.parentNode||n.host;return e===f0?null:e}(Rp()||typeof Element<"u")&&(sU()?(f0=(()=>document.documentElement)(),Pp=(n,e)=>{for(;e;){if(e===n)return!0;e=Np(e)}return!1}):Pp=(n,e)=>n.contains(e),h0=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const r=n.querySelector(e);return r?[r]:[]});let si=null,p0=!1;const m0=Pp,g0=h0;let _0=(()=>{class n{validateStyleProperty(t){return function lU(n){si||(si=function cU(){return typeof document<"u"?document.body:null}()||{},p0=!!si.style&&"WebkitAppearance"in si.style);let e=!0;return si.style&&!function aU(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in si.style,!e&&p0&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in si.style)),e}(t)}matchesElement(t,r){return!1}containsElement(t,r){return m0(t,r)}getParentElement(t){return Np(t)}query(t,r,i){return g0(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,o,s,a=[],l){return new Hs(i,o)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})(),Lp=(()=>{class n{}return n.NOOP=new _0,n})();const Vp="ng-enter",Sc="ng-leave",Mc="ng-trigger",Ac=".ng-trigger",v0="ng-animating",Bp=".ng-animating";function ar(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Hp(parseFloat(e[1]),e[2])}function Hp(n,e){return"s"===e?1e3*n:n}function Ic(n,e,t){return n.hasOwnProperty("duration")?n:function hU(n,e,t){let i,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(c0()),{duration:0,delay:0,easing:""};i=Hp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Hp(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(function M2(){return new C(3100,!1)}()),a=!0),o<0&&(e.push(function A2(){return new C(3101,!1)}()),a=!0),a&&e.splice(l,0,c0())}return{duration:i,delay:o,easing:s}}(n,e,t)}function $s(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function b0(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function Ir(n,e=new Map,t){if(t)for(let[r,i]of t)e.set(r,i);for(let[r,i]of n)e.set(r,i);return e}function w0(n,e,t){return t?e+":"+t+";":""}function D0(n){let e="";for(let t=0;t{const o=Up(i);t&&!t.has(i)&&t.set(i,n.style[o]),n.style[o]=r}),Rp()&&D0(n))}function ai(n,e){n.style&&(e.forEach((t,r)=>{const i=Up(r);n.style[i]=""}),Rp()&&D0(n))}function zs(n){return Array.isArray(n)?1==n.length?n[0]:xE(n):n}const jp=new RegExp("{{\\s*(.+?)\\s*}}","g");function E0(n){let e=[];if("string"==typeof n){let t;for(;t=jp.exec(n);)e.push(t[1]);jp.lastIndex=0}return e}function Gs(n,e,t){const r=n.toString(),i=r.replace(jp,(o,s)=>{let a=e[s];return null==a&&(t.push(function T2(n){return new C(3003,!1)}()),a=""),a.toString()});return i==r?n:i}function Tc(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const mU=/-+([a-z0-9])/g;function Up(n){return n.replace(mU,(...e)=>e[1].toUpperCase())}function gU(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Bt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function x2(n){return new C(3004,!1)}()}}function S0(n,e){return window.getComputedStyle(n)[e]}function wU(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function DU(n,e,t){if(":"==n[0]){const l=function EU(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function $2(n){return new C(3015,!1)}()),e;const i=r[1],o=r[2],s=r[3];e.push(M0(i,s));"<"==o[0]&&!("*"==i&&"*"==s)&&e.push(M0(s,i))}(r,t,e)):t.push(n),t}const kc=new Set(["true","1"]),Oc=new Set(["false","0"]);function M0(n,e){const t=kc.has(n)||Oc.has(n),r=kc.has(e)||Oc.has(e);return(i,o)=>{let s="*"==n||n==i,a="*"==e||e==o;return!s&&t&&"boolean"==typeof i&&(s=i?kc.has(n):Oc.has(n)),!a&&r&&"boolean"==typeof o&&(a=o?kc.has(e):Oc.has(e)),s&&a}}const SU=new RegExp("s*:selfs*,?","g");function $p(n,e,t,r){return new MU(n).build(e,t,r)}class MU{constructor(e){this._driver=e}build(e,t,r){const i=new TU(t);return this._resetContextStyleTimingState(i),Bt(this,zs(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,i=t.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push(function F2(){return new C(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,s.push(l)}else t.errors.push(function k2(){return new C(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{E0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Tc(o.values()),t.errors.push(function O2(n,e){return new C(3008,!1)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Bt(this,zs(e.animation),t);return{type:1,matchers:wU(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:li(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>Bt(this,r,t)),options:li(e.options)}}visitGroup(e,t){const r=t.currentTime;let i=0;const o=e.steps.map(s=>{t.currentTime=r;const a=Bt(this,s,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:o,options:li(e.options)}}visitAnimate(e,t){const r=function RU(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return zp(Ic(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=zp(0,0,"");return o.dynamic=!0,o.strValue=t,o}const i=Ic(t,e);return zp(i.duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let i,o=e.styles?e.styles:Er({});if(5==o.type)i=this.visitKeyframes(o,t);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};r.easing&&(c.easing=r.easing),s=Er(c)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)"string"==typeof a?a===sr?r.push(a):t.errors.push(new C(3002,!1)):r.push(b0(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(t.errors.push(function N2(n,e,t,r,i){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),t.options&&function pU(n,e,t){const r=e.params||{},i=E0(n);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||t.push(function I2(n){return new C(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function L2(){return new C(3011,!1)}()),r;let o=0;const s=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const D=this._makeStyleAst(b,t);let v=null!=D.offset?D.offset:function xU(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(D.styles),I=0;return null!=v&&(o++,I=D.offset=v),l=l||I<0||I>1,a=a||I0&&o{const v=h>0?D==f?1:h*D:s[D],I=v*g;t.currentTime=p+m.delay+I,m.duration=I,this._validateStyleAst(b,t),b.offset=v,r.styles.push(b)}),r}visitReference(e,t){return{type:8,animation:Bt(this,zs(e.animation),t),options:li(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:li(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:li(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[o,s]=function AU(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(SU,"")),n=n.replace(/@\*/g,Ac).replace(/@\w+/g,t=>Ac+"-"+t.slice(1)).replace(/:animating/g,Bp),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+o:o,Vt(t.collectedStyles,t.currentQuerySelector,new Map);const a=Bt(this,zs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:li(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function j2(){return new C(3013,!1)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ic(e.timings,t.errors,!0);return{type:12,animation:Bt(this,zs(e.animation),t),timings:r,options:null}}}class TU{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function li(n){return n?(n=$s(n)).params&&(n.params=function IU(n){return n?$s(n):null}(n.params)):n={},n}function zp(n,e,t){return{duration:n,delay:e,easing:t}}function Gp(n,e,t,r,i,o,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Pc{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const OU=new RegExp(":enter","g"),NU=new RegExp(":leave","g");function Wp(n,e,t,r,i,o=new Map,s=new Map,a,l,c=[]){return(new LU).buildKeyframes(n,e,t,r,i,o,s,a,l,c)}class LU{buildKeyframes(e,t,r,i,o,s,a,l,c,u=[]){c=c||new Pc;const d=new qp(e,t,c,i,o,u,[]);d.options=l;const h=l.delay?ar(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),Bt(this,r,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===t){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Gp(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,r),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,r){for(const i of e){const o=i?.delay;if(o){const s="number"==typeof o?o:ar(Gs(o,i?.params??{},t.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,t,r){let o=t.currentTimeline.currentTime;const s=null!=r.duration?ar(r.duration):null,a=null!=r.delay?ar(r.delay):null;return 0!==s&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),Bt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let i=t;const o=e.options;if(o&&(o.params||o.delay)&&(i=t.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Nc);const s=ar(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Bt(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let i=t.currentTimeline.currentTime;const o=e.options&&e.options.delay?ar(e.options.delay):0;e.steps.forEach(s=>{const a=t.createSubContext(e.options);o&&a.delayNextStep(o),Bt(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return Ic(t.params?Gs(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(r.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,o=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+o),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?ar(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Nc);let s=r;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);o&&d.delayNextStep(o),c===t.element&&(l=d.currentTimeline),Bt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,i=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Bt(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Nc={};class qp{constructor(e,t,r,i,o,s,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Lc(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=ar(r.duration)),null!=r.delay&&(i.delay=ar(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=Gs(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return e}createSubContext(e=null,t,r){const i=t||this.element,o=new qp(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Nc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},o=new VU(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(OU,"."+this._enterClassName)).replace(NU,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&0==a.length&&s.push(function U2(n){return new C(3014,!1)}()),a}}class Lc{constructor(e,t,r,i){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Lc(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||sr),this._currentKeyframe.set(t,sr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,i){t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},s=function BU(n,e){const t=new Map;let r;return n.forEach(i=>{if("*"===i){r=r||e.keys();for(let o of r)t.set(o,sr)}else Ir(i,t)}),t}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=Gs(l,o,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??sr),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=Ir(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===sr&&t.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const o=e.size?Tc(e.values()):[],s=t.size?Tc(t.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return Gp(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class VU extends Lc{constructor(e,t,r,i,o,s,a=!1){super(e,t,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=r+t,a=t/s,l=Ir(e[0]);l.set("offset",0),o.push(l);const c=Ir(e[0]);c.set("offset",T0(a)),o.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=Ir(e[d]);const f=h.get("offset");h.set("offset",T0((t+f*r)/s)),o.push(h)}r=s,t=0,i="",e=o}return Gp(this.element,e,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function T0(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Kp{}const HU=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class jU extends Kp{normalizePropertyName(e,t){return Up(e)}normalizeStyleValue(e,t,r,i){let o="";const s=r.toString().trim();if(HU.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function R2(n,e){return new C(3005,!1)}())}return s+o}}function x0(n,e,t,r,i,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Yp={};class R0{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,i){return function UU(n,e,t,r,i){return n.some(o=>o(e,t,r,i))}(this.ast.matchers,e,t,r,i)}buildStyles(e,t,r){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,r):new Map}build(e,t,r,i,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Yp,p=this.buildStyles(r,a&&a.params||Yp,d),m=l&&l.params||Yp,g=this.buildStyles(i,m,d),b=new Set,D=new Map,v=new Map,I="void"===i,q={params:$U(m,h),delay:this.ast.options?.delay},J=u?[]:Wp(e,t,this.ast.animation,o,s,p,g,q,c,d);let Te=0;if(J.forEach(jt=>{Te=Math.max(jt.duration+jt.delay,Te)}),d.length)return x0(t,this._triggerName,r,i,I,p,g,[],[],D,v,Te,d);J.forEach(jt=>{const Ut=jt.element,wo=Vt(D,Ut,new Set);jt.preStyleProps.forEach(bn=>wo.add(bn));const lr=Vt(v,Ut,new Set);jt.postStyleProps.forEach(bn=>lr.add(bn)),Ut!==t&&b.add(Ut)});const Ht=Tc(b.values());return x0(t,this._triggerName,r,i,I,p,g,J,Ht,D,v,Te)}}function $U(n,e){const t=$s(e);for(const r in n)n.hasOwnProperty(r)&&null!=n[r]&&(t[r]=n[r]);return t}class zU{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r=new Map,i=$s(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Gs(s,i,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),r.set(l,s)})}),r}}class WU{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new zU(i.style,i.options&&i.options.params||{},r))}),F0(this.states,"true","1"),F0(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new R0(e,i,this.states))}),this.fallbackTransition=function qU(n,e,t){return new R0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,i){return this.transitionFactories.find(s=>s.match(e,t,r,i))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function F0(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const KU=new Pc;class YU{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const r=[],o=$p(this._driver,t,r,[]);if(r.length)throw function Y2(n){return new C(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,t,r){const i=e.element,o=u0(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const i=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=Wp(this._driver,t,o,Vp,Sc,new Map,new Map,r,KU,i),s.forEach(u=>{const d=Vt(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(function Z2(){return new C(3300,!1)}()),s=[]),i.length)throw function Q2(n){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,sr))})});const c=Ar(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function X2(n){return new C(3301,!1)}();return t}listen(e,t,r,i){const o=Op(t,"","","");return Fp(this._getPlayer(e),r,o,i),()=>{}}command(e,t,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,t,i[0]||{});const o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const k0="ng-animate-queued",Zp="ng-animate-disabled",e$=[],O0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},t$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},en="__ng_removed";class Qp{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function o$(n){return n??null}(r?e.value:e),r){const o=$s(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const Ws="void",Xp=new Qp(Ws);class n${constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,tn(t,this._hostClassName)}listen(e,t,r,i){if(!this._triggers.has(t))throw function J2(n,e){return new C(3302,!1)}();if(null==r||0==r.length)throw function eU(n){return new C(3303,!1)}();if(!function s$(n){return"start"==n||"done"==n}(r))throw function tU(n,e){return new C(3400,!1)}();const o=Vt(this._elementListeners,e,[]),s={name:t,phase:r,callback:i};o.push(s);const a=Vt(this._engine.statesByElement,e,new Map);return a.has(t)||(tn(e,Mc),tn(e,Mc+"-"+t),a.set(t,Xp)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function nU(n){return new C(3401,!1)}();return t}trigger(e,t,r,i=!0){const o=this._getTrigger(t),s=new Jp(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(tn(e,Mc),tn(e,Mc+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new Qp(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Xp),c.value!==Ws&&l.value===c.value){if(!function c$(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let i=0;i{ai(e,g),Nn(e,b)})}return}const h=Vt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!i)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(tn(e,k0),s.onStart(()=>{bo(e,k0)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(e);if(g){let b=g.indexOf(s);b>=0&&g.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,Ac,!0);r.forEach(i=>{if(i[en])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,r,i){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,Ws,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),r&&Ar(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const i=new Set;t.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers.get(s).fallbackTransition,c=r.get(s)||Xp,u=new Qp(Ws),d=new Jp(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{const o=e[en];(!o||o===O0)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){tn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=Op(o,r.triggerName,r.fromState.value,r.toState.value);l._data=e,Fp(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class r${constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new n$(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return i.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let i=this._namespaceLookup[e];i&&i.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&t.add(o)}return t}trigger(e,t,r,i){if(Vc(t)){const o=this._fetchNamespace(e);if(o)return o.trigger(t,r,i),!0}return!1}insertNode(e,t,r,i){if(!Vc(t))return;const o=t[en];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),tn(e,Zp)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bo(e,Zp))}removeNode(e,t,r,i){if(Vc(t)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),r){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,r,i,o){this.collectedLeaveElements.push(t),t[en]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,r,i,o){return Vc(t)?this._fetchNamespace(e).listen(t,r,i,o):()=>{}}_buildInstruction(e,t,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,Ac,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Bp,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ar(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[en];if(t&&t.setForRemoval){if(e[en]=O0,t.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Zp)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Ar(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function rU(n){return new C(3402,!1)}()}_flushAnimations(e,t){const r=new Pc,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);const F=this.driver.query(x,".ng-animate-queued",!0);for(let L=0;L{const L=Vp+m++;p.set(F,L),x.forEach(re=>tn(re,L))});const g=[],b=new Set,D=new Set;for(let x=0;xb.add(re)):D.add(F))}const v=new Map,I=L0(h,Array.from(b));I.forEach((x,F)=>{const L=Sc+m++;v.set(F,L),x.forEach(re=>tn(re,L))}),e.push(()=>{f.forEach((x,F)=>{const L=p.get(F);x.forEach(re=>bo(re,L))}),I.forEach((x,F)=>{const L=v.get(F);x.forEach(re=>bo(re,L))}),g.forEach(x=>{this.processLeaveNode(x)})});const q=[],J=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(L=>{const re=L.player,tt=L.element;if(q.push(re),this.collectedEnterElements.length){const ut=tt[en];if(ut&&ut.setForMove){if(ut.previousTriggersValues&&ut.previousTriggersValues.has(L.triggerName)){const di=ut.previousTriggersValues.get(L.triggerName),nn=this.statesByElement.get(L.element);if(nn&&nn.has(L.triggerName)){const Zc=nn.get(L.triggerName);Zc.value=di,nn.set(L.triggerName,Zc)}}return void re.destroy()}}const Vn=!d||!this.driver.containsElement(d,tt),$t=v.get(tt),Fr=p.get(tt),xe=this._buildInstruction(L,r,Fr,$t,Vn);if(xe.errors&&xe.errors.length)return void J.push(xe);if(Vn)return re.onStart(()=>ai(tt,xe.fromStyles)),re.onDestroy(()=>Nn(tt,xe.toStyles)),void i.push(re);if(L.isFallbackTransition)return re.onStart(()=>ai(tt,xe.fromStyles)),re.onDestroy(()=>Nn(tt,xe.toStyles)),void i.push(re);const tM=[];xe.timelines.forEach(ut=>{ut.stretchStartingKeyframe=!0,this.disabledNodes.has(ut.element)||tM.push(ut)}),xe.timelines=tM,r.append(tt,xe.timelines),s.push({instruction:xe,player:re,element:tt}),xe.queriedElements.forEach(ut=>Vt(a,ut,[]).push(re)),xe.preStyleProps.forEach((ut,di)=>{if(ut.size){let nn=l.get(di);nn||l.set(di,nn=new Set),ut.forEach((Zc,wm)=>nn.add(wm))}}),xe.postStyleProps.forEach((ut,di)=>{let nn=c.get(di);nn||c.set(di,nn=new Set),ut.forEach((Zc,wm)=>nn.add(wm))})});if(J.length){const x=[];J.forEach(F=>{x.push(function iU(n,e){return new C(3505,!1)}())}),q.forEach(F=>F.destroy()),this.reportError(x)}const Te=new Map,Ht=new Map;s.forEach(x=>{const F=x.element;r.has(F)&&(Ht.set(F,F),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,Te))}),i.forEach(x=>{const F=x.element;this._getPreviousPlayers(F,!1,x.namespaceId,x.triggerName,null).forEach(re=>{Vt(Te,F,[]).push(re),re.destroy()})});const jt=g.filter(x=>B0(x,l,c)),Ut=new Map;N0(Ut,this.driver,D,c,sr).forEach(x=>{B0(x,l,c)&&jt.push(x)});const lr=new Map;f.forEach((x,F)=>{N0(lr,this.driver,new Set(x),l,"!")}),jt.forEach(x=>{const F=Ut.get(x),L=lr.get(x);Ut.set(x,new Map([...Array.from(F?.entries()??[]),...Array.from(L?.entries()??[])]))});const bn=[],Do=[],Eo={};s.forEach(x=>{const{element:F,player:L,instruction:re}=x;if(r.has(F)){if(u.has(F))return L.onDestroy(()=>Nn(F,re.toStyles)),L.disabled=!0,L.overrideTotalTime(re.totalTime),void i.push(L);let tt=Eo;if(Ht.size>1){let $t=F;const Fr=[];for(;$t=$t.parentNode;){const xe=Ht.get($t);if(xe){tt=xe;break}Fr.push($t)}Fr.forEach(xe=>Ht.set(xe,tt))}const Vn=this._buildAnimation(L.namespaceId,re,Te,o,lr,Ut);if(L.setRealPlayer(Vn),tt===Eo)bn.push(L);else{const $t=this.playersByElement.get(tt);$t&&$t.length&&(L.parentPlayer=Ar($t)),i.push(L)}}else ai(F,re.fromStyles),L.onDestroy(()=>Nn(F,re.toStyles)),Do.push(L),u.has(F)&&i.push(L)}),Do.forEach(x=>{const F=o.get(x.element);if(F&&F.length){const L=Ar(F);x.setRealPlayer(L)}}),i.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x!Vn.destroyed);tt.length?a$(this,F,tt):this.processLeaveNode(F)}return g.length=0,bn.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();const F=this.players.indexOf(x);this.players.splice(F,1)}),x.play()}),bn}elementContainsData(e,t){let r=!1;const i=t[en];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,i,o){let s=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==Ws;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,t,r){const o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==o,d=Vt(r,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}ai(o,t.fromStyles)}_buildAnimation(e,t,r,i,o,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const g=m[en];if(g&&g.removedBeforeQueried)return new Hs(p.duration,p.delay);const b=m!==l,D=function l$(n){const e=[];return V0(n,e),e}((r.get(m)||e$).map(Te=>Te.getRealPlayer())).filter(Te=>!!Te.element&&Te.element===m),v=o.get(m),I=s.get(m),q=u0(0,this._normalizer,0,p.keyframes,v,I),J=this._buildPlayer(p,q,D);if(p.subTimeline&&i&&d.add(m),b){const Te=new Jp(e,a,m);Te.setRealPlayer(J),c.push(Te)}return J});c.forEach(p=>{Vt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function i$(n,e,t){let r=n.get(e);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&n.delete(e)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>tn(p,v0));const f=Ar(h);return f.onDestroy(()=>{u.forEach(p=>bo(p,v0)),Nn(l,t.toStyles)}),d.forEach(p=>{Vt(i,p,[]).push(f)}),f}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new Hs(e.duration,e.delay)}}class Jp{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new Hs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>Fp(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Vt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Vc(n){return n&&1===n.nodeType}function P0(n,e){const t=n.style.display;return n.style.display=e??"none",t}function N0(n,e,t,r,i){const o=[];t.forEach(l=>o.push(P0(l)));const s=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,i);u.set(d,h),(!h||0==h.length)&&(c[en]=t$,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>P0(l,o[a++])),s}function L0(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const i=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:i.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function tn(n,e){n.classList?.add(e)}function bo(n,e){n.classList?.remove(e)}function a$(n,e,t){Ar(t).onDone(()=>n.processLeaveNode(e))}function V0(n,e){for(let t=0;ti.add(o)):e.set(n,r),t.delete(n),!0}class Bc{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new r$(e,t,r),this._timelineEngine=new YU(e,t,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,t,r,i,o){const s=e+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],u=$p(this._driver,o,l,[]);if(l.length)throw function q2(n,e){return new C(3404,!1)}();a=function GU(n,e,t){return new WU(n,e,t)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,i){this._transitionEngine.insertNode(e,t,r,i)}onRemove(e,t,r,i){this._transitionEngine.removeNode(e,t,i||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,i){if("@"==r.charAt(0)){const[o,s]=d0(r);this._timelineEngine.command(o,t,s,i)}else this._transitionEngine.trigger(e,t,r,i)}listen(e,t,r,i,o){if("@"==r.charAt(0)){const[s,a]=d0(r);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let d$=(()=>{class n{constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let o=n.initialStylesByElement.get(t);o||n.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ai(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ai(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function em(n){let e=null;return n.forEach((t,r)=>{(function h$(n){return"display"===n||"position"===n})(r)&&(e=e||new Map,e.set(r,t))}),e}class H0{constructor(e,t,r,i){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(e,t,r){return e.animate(this._convertKeyframesToObject(t),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&e.set(i,this._finished?r:S0(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class f${validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return m0(e,t)}getParentElement(e){return Np(e)}query(e,t,r){return g0(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}animate(e,t,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof H0);(function _U(n,e){return 0===n||0===e})(r,i)&&u.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function fU(n){return n.length?n[0]instanceof Map?n:n.map(e=>b0(e)):[]}(t).map(f=>Ir(f));d=function yU(n,e,t){if(t.size&&e.length){let r=e[0],i=[];if(t.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,S0(n,a)))}}return e}(e,d,c);const h=function u$(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=em(e[0]),e.length>1&&(r=em(e[e.length-1]))):e instanceof Map&&(t=em(e)),t||r?new d$(n,t,r):null}(e,d);return new H0(e,d,l,h)}}let p$=(()=>{class n extends AE{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:on.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?xE(t):t;return j0(this._renderer,null,r,"register",[i]),new m$(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(y(Qo),y(K))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class m$ extends class kj{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new g$(this._id,e,t||{},this._renderer)}}class g${constructor(e,t,r,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return j0(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function j0(n,e,t,r,i){return n.setProperty(e,`@@${t}:${r}`,i)}const U0="@.disabled";let _$=(()=>{class n{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,r){const o=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new $0("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return r.data.animation.forEach(l),new y$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&tr(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(y(Qo),y(Bc),y(te))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})();class $0{constructor(e,t,r,i){this.namespaceId=e,this.delegate=t,this.engine=r,this._onDestroy=i,this.destroyNode=this.delegate.destroyNode?o=>t.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,i=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,i){this.delegate.setAttribute(e,t,r,i)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,i){this.delegate.setStyle(e,t,r,i)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==U0?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class y$ extends $0{constructor(e,t,r,i,o){super(t,r,i,o),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==U0?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.slice(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const i=function v$(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function b$(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,t,r)}}const z0=[{provide:AE,useClass:p$},{provide:Kp,useFactory:function w$(){return new jU}},{provide:Bc,useClass:(()=>{class n extends Bc{constructor(t,r,i,o){super(t.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(y(K),y(Lp),y(Kp),y(no))},n.\u0275prov=S({token:n,factory:n.\u0275fac}),n})()},{provide:Qo,useFactory:function D$(n,e,t){return new _$(n,e,t)},deps:[kl,Bc,te]}],tm=[{provide:Lp,useFactory:()=>new f$},{provide:dl,useValue:"BrowserAnimations"},...z0],G0=[{provide:Lp,useClass:_0},{provide:dl,useValue:"NoopAnimations"},...z0];let E$=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?G0:tm}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({providers:tm,imports:[bw]}),n})(),W0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({}),n})(),q0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[XC,vn,zD,vn]}),n})(),T$=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({providers:[Ij],imports:[W0,q0,vn,W0,q0]}),n})(),LS=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[LS]}),n})(),Tz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[Iz]}),n})(),Rz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n}),n.\u0275inj=he({imports:[Fj,vn,vn]}),n})(),Fz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=me({type:n,bootstrap:[S2]}),n.\u0275inj=he({providers:[np],imports:[bw,E2,E$,zj,T$,Tz,Rz,m2]}),n})();(function hP(){bC=!1})(),eL().bootstrapModule(Fz).catch(n=>console.error(n))}},ne=>{ne(ne.s=77)}]); \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/polyfills.f09cd0637b821a03.js b/pipboyUI/dist/pipboy-ui/polyfills.f09cd0637b821a03.js new file mode 100644 index 0000000..a44d97e --- /dev/null +++ b/pipboyUI/dist/pipboy-ui/polyfills.f09cd0637b821a03.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkpipboyUI=self.webpackChunkpipboyUI||[]).push([[429],{435:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}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{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)}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 B.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}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){B={parent:B,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{B=B.parent}}runGuarded(t,r=null,k,C){B={parent:B,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{B=B.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||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,B={parent:B,zone:this};try{t.type==w&&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(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),B=B.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(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(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||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);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,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,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:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,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(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=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:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,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=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==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"),Z=a("Promise"),N=a("then");let J,U=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===U.length&&q(_),M&&U.push(M)}function _(){if(!H){for(H=!0;U.length;){const M=U;U=[];for(let E=0;EB,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 B={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 ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(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 Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Ue=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Ue&&!(!Pe||!Te.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Ue&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("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 P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");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 Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function U(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)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(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,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 E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)U(D)||(D=this.resolve(D)),D.then(b,T);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,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){U(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}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[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(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=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}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 ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G{throw G})}}}const U=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function B(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:U,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!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,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch{}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(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 tt(e,n,i,o){e&&Xe(e,et(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=Xe,i.patchMethod=le,i.bindArguments=Le,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=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Be,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={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{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const U=Me(n,L[0],Z,d,P);if(!U)return U;const H=U.data.handleId;return"number"==typeof H?y[H]=U:H&&(H[Ce]=U),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(U.ref=H.ref.bind(H),U.unref=H.unref.bind(H)),"number"==typeof H||H?H:U}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=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("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(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 P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Be||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(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 P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],U=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],U=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],U=w[Ne]),Q&&U.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const B=w[n.__symbol__("loadfalse")];if(0!==w.status&&B&&B.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("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 P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=435)}]); \ No newline at end of file diff --git a/pipboyUI/dist/pipboy-ui/runtime.5ce4d2517a1e7b85.js b/pipboyUI/dist/pipboy-ui/runtime.5ce4d2517a1e7b85.js new file mode 100644 index 0000000..99b7b7f --- /dev/null +++ b/pipboyUI/dist/pipboy-ui/runtime.5ce4d2517a1e7b85.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,p={},_={};function n(e){var a=_[e];if(void 0!==a)return a.exports;var r=_[e]={exports:{}};return p[e](r,r.exports,n),r.exports}n.m=p,e=[],n.O=(a,r,u,l)=>{if(!r){var c=1/0;for(f=0;f=l)&&Object.keys(n.O).every(d=>n.O[d](r[t]))?r.splice(t--,1):(s=!1,l0&&e[f-1][2]>l;f--)e[f]=e[f-1];e[f]=[r,u,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=u=>0===e[u];var a=(u,l)=>{var t,o,[f,c,s]=l,v=0;if(f.some(i=>0!==e[i])){for(t in c)n.o(c,t)&&(n.m[t]=c[t]);if(s)var b=s(n)}for(u&&u(l);v.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:#00000061}.mat-form-field-disabled .mat-date-range-input-separator{color:#00000061}.mat-calendar-body-in-preview{color:#0000003d}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:#00000061}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:#0000002e}.mat-calendar-body-in-range:before{background:rgba(63,81,181,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start:before,[dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-calendar-body-comparison-bridge-end:before,[dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#3f51b566}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#3f51b54d}@media (hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#3f51b54d}}.mat-datepicker-content{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fff;color:#000000de}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(255,64,129,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#ff408166}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#ff40814d}@media (hover: hover){.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#ff40814d}}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 50%)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:#f4433666}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#f443364d}@media (hover: hover){.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#f443364d}}.mat-datepicker-content-touch{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-datepicker-toggle-active{color:#3f51b5}.mat-datepicker-toggle-active.mat-accent{color:#ff4081}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:#00000061}.mat-dialog-container{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;background:#fff;color:#000000de}.mat-divider{border-top-color:#0000001f}.mat-divider-vertical{border-right-color:#0000001f}.mat-expansion-panel{background:#fff;color:#000000de}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-action-row{border-top-color:#0000001f}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover: none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:#000000de}.mat-expansion-panel-header-description,.mat-expansion-indicator:after{color:#0000008a}.mat-expansion-panel-header[aria-disabled=true]{color:#00000042}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-form-field-label,.mat-hint{color:#0009}.mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ff4081}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ff4081}.mat-form-field-ripple{background-color:#000000de}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ff4081}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#ff4081}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:#0000008a}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#0000006b}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0%,rgba(0,0,0,.42) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:#0000006b}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0%,rgba(0,0,0,.42) 33%,transparent 0%);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:#0000000a}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:#00000005}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:#0000006b}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:#00000061}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:#0000}.mat-form-field-appearance-outline .mat-form-field-outline{color:#0000001f}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#000000de}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ff4081}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:#00000061}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:#0000000f}.mat-icon.mat-primary{color:#3f51b5}.mat-icon.mat-accent{color:#ff4081}.mat-icon.mat-warn{color:#f44336}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:#0000008a}.mat-input-element:disabled,.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after{color:#00000061}.mat-input-element{caret-color:#3f51b5}.mat-input-element::placeholder{color:#0000006b}.mat-input-element::-moz-placeholder{color:#0000006b}.mat-input-element::-webkit-input-placeholder{color:#0000006b}.mat-input-element:-ms-input-placeholder{color:#0000006b}.mat-form-field.mat-accent .mat-input-element{caret-color:#ff4081}.mat-form-field.mat-warn .mat-input-element,.mat-form-field-invalid .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:#000000de}.mat-list-base .mat-subheader{color:#0000008a}.mat-list-base .mat-list-item-disabled{background-color:#eee;color:#00000061}.mat-list-option:hover,.mat-list-option:focus,.mat-nav-list .mat-list-item:hover,.mat-nav-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-action-list .mat-list-item:focus{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:hover,.mat-list-single-selected-option:focus{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-menu-item{background:rgba(0,0,0,0);color:#000000de}.mat-menu-item[disabled],.mat-menu-item[disabled] .mat-menu-submenu-icon,.mat-menu-item[disabled] .mat-icon-no-color{color:#00000061}.mat-menu-item .mat-icon-no-color,.mat-menu-submenu-icon{color:#0000008a}.mat-menu-item:hover:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item-highlighted:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:#0000008a}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-last{border-color:#00000061}.mat-paginator-container{min-height:56px}.mat-progress-bar-background{fill:#cbd0e9}.mat-progress-bar-buffer{background-color:#cbd0e9}.mat-progress-bar-fill:after{background-color:#3f51b5}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#ff4081}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#3f51b5}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ff4081}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:#0000008a}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff4081}.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ff4081}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061}.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element,.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle{background-color:#00000061}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:#00000061}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:#000000de}.mat-select-placeholder{color:#0000006b}.mat-select-disabled .mat-select-value{color:#00000061}.mat-select-arrow{color:#0000008a}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ff4081}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:#00000061}.mat-drawer-container{background-color:#fafafa;color:#000000de}.mat-drawer{background-color:#fff;color:#000000de}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-drawer-side{border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:solid 1px rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:solid 1px rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:#0009}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ff4081}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:#ff40818a}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ff4081}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:#3f51b58a}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:#f443368a}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#fafafa}.mat-slide-toggle-bar{background-color:#00000061}.mat-slider-track-background{background-color:#00000042}.mat-slider.mat-primary .mat-slider-track-fill,.mat-slider.mat-primary .mat-slider-thumb,.mat-slider.mat-primary .mat-slider-thumb-label{background-color:#3f51b5}.mat-slider.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-primary .mat-slider-focus-ring{background-color:#3f51b533}.mat-slider.mat-accent .mat-slider-track-fill,.mat-slider.mat-accent .mat-slider-thumb,.mat-slider.mat-accent .mat-slider-thumb-label{background-color:#ff4081}.mat-slider.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-accent .mat-slider-focus-ring{background-color:#ff408133}.mat-slider.mat-warn .mat-slider-track-fill,.mat-slider.mat-warn .mat-slider-thumb,.mat-slider.mat-warn .mat-slider-thumb-label{background-color:#f44336}.mat-slider.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider.mat-warn .mat-slider-focus-ring{background-color:#f4433633}.mat-slider:hover .mat-slider-track-background,.mat-slider.cdk-focused .mat-slider-track-background{background-color:#00000061}.mat-slider.mat-slider-disabled .mat-slider-track-background,.mat-slider.mat-slider-disabled .mat-slider-track-fill,.mat-slider.mat-slider-disabled .mat-slider-thumb,.mat-slider.mat-slider-disabled:hover .mat-slider-track-background{background-color:#00000042}.mat-slider.mat-slider-min-value .mat-slider-focus-ring{background-color:#0000001f}.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:#000000de}.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:#00000042}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:#00000042;background-color:#0000}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb,.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb{border-color:#00000061}.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb,.mat-slider.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb{border-color:#00000042}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:#000000b3}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(to right,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:#0000000a}.mat-step-header:hover[aria-disabled=true]{cursor:default}@media (hover: none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:#0000008a}.mat-step-header .mat-step-icon{background-color:#0000008a;color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#ff4081;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:#0000;color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:#000000de}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:#0000001f}.mat-horizontal-stepper-header:before,.mat-horizontal-stepper-header:after,.mat-stepper-horizontal-line{border-top-color:#0000001f}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px}.mat-stepper-vertical-line:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before{top:36px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-sort-header-arrow{color:#757575}.mat-tab-nav-bar,.mat-tab-header{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-nav-bar,.mat-tab-group-inverted-header .mat-tab-header{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:#000000de}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:#00000061}.mat-tab-header-pagination-chevron{border-color:#000000de}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#00000061}.mat-tab-group[class*=mat-background-]>.mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#c5cae94d}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ff80ab4d}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ff4081}.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ffcdd24d}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#c5cae94d}.mat-tab-group.mat-background-primary>.mat-tab-header,.mat-tab-group.mat-background-primary>.mat-tab-link-container,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination{background-color:#3f51b5}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ff80ab4d}.mat-tab-group.mat-background-accent>.mat-tab-header,.mat-tab-group.mat-background-accent>.mat-tab-link-container,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination{background-color:#ff4081}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:#ffcdd24d}.mat-tab-group.mat-background-warn>.mat-tab-header,.mat-tab-group.mat-background-warn>.mat-tab-link-container,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination{background-color:#f44336}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:#fff6}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#fff;opacity:.4}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element{background-color:#fff;opacity:.12}.mat-toolbar{background:#f5f5f5;color:#000000de}.mat-toolbar.mat-primary{background:#3f51b5;color:#fff}.mat-toolbar.mat-accent{background:#ff4081;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-tree-node,.mat-nested-tree-node{color:#000000de}.mat-tree-node{min-height:48px}.mat-snack-bar-container{color:#ffffffb3;background:#323232;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-simple-snackbar-action{color:#ff4081}@font-face{font-family:RobotoTodd;src:url(Roboto-Regular.a8e6f6203d22df08.ttf);font-weight:400;font-style:normal}@font-face{font-family:RobotoTodd;src:url(Roboto-Bold.3b887fc8dca30f62.ttf);font-weight:700;font-style:normal}@font-face{font-family:TechMono;src:url(TechMono.5c8f60d90e003254.ttf);font-weight:400;font-style:normal}html,body{height:100%;background-color:#000}body{margin:0;font-family:RobotoTodd,Helvetica Neue,sans-serif;color:#00f200}.activeHeader{border-left:2px solid rgb(0,242,0);border-right:2px solid rgb(0,242,0)}.inactiveHeader{color:#00f2004d}.footer{#background-color: rgba(0,242,0,.3);position:fixed;right:0;bottom:0;width:100%;height:6.5%}.footer-text{background-color:#00f2004d}.menu-selected{background-color:#00f200;color:#000}.mat-dialog-container{background:black;color:#00f200}.cdk-overlay-pane{max-width:100%!important}.rotating-image{animation:rotateY 3s linear infinite}@keyframes rotateY{0%{transform:rotateY(0)}to{transform:rotateY(360deg)}} diff --git a/pipboyUI/src/app/app.module.ts b/pipboyUI/src/app/app.module.ts index 599ecc6..04151f4 100644 --- a/pipboyUI/src/app/app.module.ts +++ b/pipboyUI/src/app/app.module.ts @@ -17,6 +17,10 @@ import {MatInputModule} from "@angular/material/input"; import {FormsModule} from "@angular/forms"; import {MatButtonModule} from "@angular/material/button"; import {InventoryAppsComponent} from "./components/LowerHeaders/Inventory/inventory-apps.component"; +import {MatIconModule} from "@angular/material/icon"; +import {WsService} from "./services/WsService"; +import {IframeAppComponent} from "./components/apps/iframe-app.component"; +import {RadioComponent} from "./components/LowerHeaders/Radio/radio.component"; @NgModule({ declarations: [ @@ -30,18 +34,21 @@ import {InventoryAppsComponent} from "./components/LowerHeaders/Inventory/invent // StatusLowerHeaderComponent, InventoryAppsComponent, - ClockDialogApp + ClockDialogApp, + IframeAppComponent, + RadioComponent ], - imports: [ - BrowserModule, - AppRoutingModule, - BrowserAnimationsModule, - MatDialogModule, - MatInputModule, - FormsModule, - MatButtonModule - ], - providers: [], + imports: [ + BrowserModule, + AppRoutingModule, + BrowserAnimationsModule, + MatDialogModule, + MatInputModule, + FormsModule, + MatButtonModule, + MatIconModule + ], + providers: [WsService], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/pipboyUI/src/app/components/LowerHeaders/AbsListSelect.ts b/pipboyUI/src/app/components/LowerHeaders/AbsListSelect.ts new file mode 100644 index 0000000..a8277ec --- /dev/null +++ b/pipboyUI/src/app/components/LowerHeaders/AbsListSelect.ts @@ -0,0 +1,56 @@ +export class AbsListSelect { + elements: any[] = [] + selected: any; + + elementsRight: any = [] + selectedRight:any; + + currentSide: "RIGHT" | "LEFT" = "LEFT" + + choiceItem(event: KeyboardEvent) { + switch (this.currentSide) { + case "LEFT": return this.choiceLeft(event) + case "RIGHT": return this.choiceRight(event) + } + } + + choiceLeft(event: KeyboardEvent) { + if (this.currentSide != "LEFT") return; + let currentIdx = this.elements.indexOf(this.selected); + switch (event.code) { + case 'KeyS': { + if (currentIdx + 1 >= this.elements.length) currentIdx = -1; + this.selected = this.elements[currentIdx + 1]; + break; + } + case 'KeyW': { + if (currentIdx - 1 < 0) currentIdx = this.elements.length; + this.selected = this.elements[currentIdx - 1]; + break; + } + case 'Enter': { + this.selected.action() + } + } + } + + choiceRight(event: KeyboardEvent) { + if (this.currentSide != "RIGHT") return; + let currentIdx = this.elementsRight.indexOf(this.selectedRight); + switch (event.code) { + case 'KeyS': { + if (currentIdx + 1 >= this.elementsRight.length) currentIdx = -1; + this.selectedRight = this.elementsRight[currentIdx + 1]; + break; + } + case 'KeyW': { + if (currentIdx - 1 < 0) currentIdx = this.elementsRight.length; + this.selectedRight = this.elementsRight[currentIdx - 1]; + break; + } + case 'Enter': { + this.selectedRight.action() + } + } + } +} diff --git a/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts b/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts index 058c202..294ae2c 100644 --- a/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts +++ b/pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts @@ -1,6 +1,16 @@ import {Component, HostListener} from "@angular/core"; import {MatDialog, MatDialogRef} from "@angular/material/dialog"; import {ClockDialogApp} from "../../apps/clock-dialog-app.component"; +import {IframeAppComponent} from "../../apps/iframe-app.component"; +import {AbsListSelect} from "../AbsListSelect"; + +export interface InvApp { + name: string; + action: Function; + icon:string, + matIcon: boolean, + about: string +} @Component({ selector: "app-inventory-apps-component", @@ -11,56 +21,42 @@ import {ClockDialogApp} from "../../apps/clock-dialog-app.component";

{{el.name}}

-
-

prview

+
+
+ {{selected.icon}} +
+
+

{{selected.about}}

+
` }) -export class InventoryAppsComponent { +export class InventoryAppsComponent extends AbsListSelect { constructor(protected dialog: MatDialog) { + super(); } - elements: {name: string, action: Function}[] = [ + + override elements: InvApp[] = [ {name: "Clock", action: () => { if (this.openedApp == undefined) { this.openedApp = this.dialog.open(ClockDialogApp, {width: '100%', height: '100%', disableClose: true}) this.openedApp.afterClosed().subscribe(() => this.openedApp = undefined) } - }}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}}, - {name: "1", action: () => {}} + }, matIcon: true, icon: "access_time", about: "Забытые часы самого тодда говарда. Он забыл их в своей прекрастной игре каллаут76."}, + {name: "1", action: () => {}, matIcon: true, icon:"help", about: "Кусок кала"}, + {name: "Rick Roll", action: () => { + this.openedApp = this.dialog.open(IframeAppComponent, {width: '100%', height: '100%', disableClose: true, data: {url:"https://youtu.be/dQw4w9WgXcQ?output=embed"}}) + this.openedApp.afterClosed().subscribe(() => this.openedApp = undefined) + }, matIcon: true, icon: "record_voice_over", about: "Нет ничего лучше старого рикролла"} ] - selected: {name: string, action: Function} = this.elements[0]; + override selected: InvApp = this.elements[0]; openedApp: MatDialogRef | undefined; @HostListener('document:keypress', ['$event']) - choiceItem(event: KeyboardEvent) { + override choiceItem(event: KeyboardEvent) { if (this.openedApp != undefined) return; - - let currentIdx = this.elements.indexOf(this.selected); - switch (event.code) { - case 'KeyS': { - if (currentIdx + 1 >= this.elements.length) currentIdx = -1; - this.selected = this.elements[currentIdx + 1]; - break; - } - case 'KeyW': { - if (currentIdx - 1 < 0) currentIdx = this.elements.length; - this.selected = this.elements[currentIdx - 1]; - break; - } - case 'Enter': { - this.selected.action() - } - } + super.choiceItem(event); } } diff --git a/pipboyUI/src/app/components/LowerHeaders/Radio/radio.component.ts b/pipboyUI/src/app/components/LowerHeaders/Radio/radio.component.ts new file mode 100644 index 0000000..f0c3658 --- /dev/null +++ b/pipboyUI/src/app/components/LowerHeaders/Radio/radio.component.ts @@ -0,0 +1,66 @@ +import {Component, HostListener} from "@angular/core"; +import {AbsListSelect} from "../AbsListSelect"; +import {PlayerService} from "../../../services/PlayerService"; + +export interface RadioElement {name: string, src:string, action:Function } +export interface RadioControl {action: Function, name: string} + +@Component({ + selector: "app-radio", + template: ` +
+
+
+

{{el.name}}

+
+
+
+
+ audiotrack +
+
+

{{el.name}}

+
+
+
+ ` +}) +export class RadioComponent extends AbsListSelect { + constructor(protected player: PlayerService) { + super(); + } + + override elements:RadioElement[] = [ + {name: "niggers", src: "../../../../assets/music/pvz.mp3", action: () => {this.play()}} + ]; //todo api + override selected = this.elements[0]; + + override elementsRight:RadioControl[] = [ + {name: "STOP", action: () => this.player.stop()}, + {name: "Volume UP", action: () => this.player.volumeUp()}, + {name: "Volume DOWN", action: () => this.player.volumeDown()} + ] + + override selectedRight = this.elementsRight[0] + + public play() { + this.player.playThis(this.selected.src, this.selected.name); + } + + @HostListener('document:keypress', ['$event']) + override choiceItem(event: KeyboardEvent) { + switch (event.code) { + case "KeyA": { + this.currentSide = "LEFT" + break + } + case "KeyD": { + this.currentSide = "RIGHT"; + break + } + default: { + super.choiceItem(event) + } + } + } +} diff --git a/pipboyUI/src/app/components/UpperHeaders/inv-header.component.ts b/pipboyUI/src/app/components/UpperHeaders/inv-header.component.ts index 2604333..bb644d0 100644 --- a/pipboyUI/src/app/components/UpperHeaders/inv-header.component.ts +++ b/pipboyUI/src/app/components/UpperHeaders/inv-header.component.ts @@ -1,8 +1,11 @@ -import {Component, HostListener} from "@angular/core"; +import {Component, HostListener, OnInit} from "@angular/core"; import {AbsNavsHeaderComponent, UpHeader} from "../abs-navs-header.component"; import {ActivatedRoute, Router} from "@angular/router"; import {InventoryAppsComponent} from "../LowerHeaders/Inventory/inventory-apps.component"; import {InventoryCustomComponent} from "../LowerHeaders/Inventory/inventory-custom.component"; +import {WsData, WsService} from "../../services/WsService"; +import {map} from "rxjs"; +import {WsEvents} from "../../services/WsEvents"; @Component({ selector: 'app-inv-header', @@ -18,7 +21,7 @@ import {InventoryCustomComponent} from "../LowerHeaders/Inventory/inventory-cust