diff --git a/.gitignore b/.gitignore index 3d58dba..0c96482 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,3 @@ testem.log Thumbs.db src/assets/config.json -docs diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt new file mode 100644 index 0000000..88931ca --- /dev/null +++ b/docs/3rdpartylicenses.txt @@ -0,0 +1,377 @@ + +-------------------------------------------------------------------------------- +Package: @angular/router +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/core +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/forms +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: rxjs +License: "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. + + +-------------------------------------------------------------------------------- +Package: tslib +License: "0BSD" + +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +-------------------------------------------------------------------------------- +Package: @angular/common +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/platform-browser +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: marked +License: "MIT" + +# License information + +## Contribution License Agreement + +If you contribute code to this project, you are implicitly allowing your code +to be distributed under the MIT license. You are also implicitly verifying that +all code is your original work. `` + +## Marked + +Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/) +Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/) + +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. + +## Markdown + +Copyright © 2004, John Gruber +http://daringfireball.net/ +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. + +-------------------------------------------------------------------------------- +Package: ngx-markdown +License: "MIT" + +MIT License + +Copyright (c) 2017-2023 Jean-Francois Cere + +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. + +-------------------------------------------------------------------------------- +Package: zone.js +License: "MIT" + +The MIT License + +Copyright (c) 2010-2023 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. + +-------------------------------------------------------------------------------- +Package: prismjs +License: "MIT" + +MIT LICENSE + +Copyright (c) 2012 Lea Verou + +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/docs/assets/config.json b/docs/assets/config.json new file mode 100644 index 0000000..cac7a42 --- /dev/null +++ b/docs/assets/config.json @@ -0,0 +1 @@ +{ "apiKey": "AIzaSyAT6OGQu9MMyIktmRpA8qHMUf4iemkwxeI" } diff --git a/docs/chunk-3QDFGBSR.js b/docs/chunk-3QDFGBSR.js new file mode 100644 index 0000000..0b34722 --- /dev/null +++ b/docs/chunk-3QDFGBSR.js @@ -0,0 +1,55 @@ +var Df=Object.defineProperty,wf=Object.defineProperties;var Ef=Object.getOwnPropertyDescriptors;var ja=Object.getOwnPropertySymbols;var bf=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable;var Va=(e,t,r)=>t in e?Df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||={})bf.call(t,r)&&Va(e,r,t[r]);if(ja)for(var r of ja(t))If.call(t,r)&&Va(e,r,t[r]);return e},Z=(e,t)=>wf(e,Ef(t));var Fn=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(l){o(l)}},s=c=>{try{a(r.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((r=r.apply(e,t)).next())});function I(e){return typeof e=="function"}function Vo(e){return I(e?.lift)}function T(e){return t=>{if(Vo(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function xt(e){let r=e(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ln=xt(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function tt(e,t){if(e){let r=e.indexOf(t);0<=r&&e.splice(r,1)}}var H=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(I(n))try{n()}catch(i){t=i instanceof Ln?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{$a(i)}catch(s){t=t??[],s instanceof Ln?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ln(t)}}add(t){var r;if(t&&t!==this)if(this.closed)$a(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}}_hasParent(t){let{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){let{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&tt(r,t)}remove(t){let{_finalizers:r}=this;r&&tt(r,t),t instanceof e&&t._removeParent(this)}};H.EMPTY=(()=>{let e=new H;return e.closed=!0,e})();var $o=H.EMPTY;function jn(e){return e instanceof H||e&&"closed"in e&&I(e.remove)&&I(e.add)&&I(e.unsubscribe)}function $a(e){I(e)?e():e.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Mt={setTimeout(e,t,...r){let{delegate:n}=Mt;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){let{delegate:t}=Mt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Vn(e){Mt.setTimeout(()=>{let{onUnhandledError:t}=ye;if(t)t(e);else throw e})}function en(){}var Ba=Bo("C",void 0,void 0);function Ua(e){return Bo("E",void 0,e)}function Ha(e){return Bo("N",e,void 0)}function Bo(e,t,r){return{kind:e,value:t,error:r}}var nt=null;function Tt(e){if(ye.useDeprecatedSynchronousErrorHandling){let t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:r,error:n}=nt;if(nt=null,r)throw n}}else e()}function za(e){ye.useDeprecatedSynchronousErrorHandling&&nt&&(nt.errorThrown=!0,nt.error=e)}var rt=class extends H{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,jn(t)&&t.add(this)):this.destination=Mf}static create(t,r,n){return new Oe(t,r,n)}next(t){this.isStopped?Ho(Ha(t),this):this._next(t)}error(t){this.isStopped?Ho(Ua(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ho(Ba,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Cf=Function.prototype.bind;function Uo(e,t){return Cf.call(e,t)}var zo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){$n(n)}}error(t){let{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){$n(n)}else $n(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){$n(r)}}},Oe=class extends rt{constructor(t,r,n){super();let o;if(I(t)||!t)o={next:t??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&ye.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Uo(t.next,i),error:t.error&&Uo(t.error,i),complete:t.complete&&Uo(t.complete,i)}):o=t}this.destination=new zo(o)}};function $n(e){ye.useDeprecatedSynchronousErrorHandling?za(e):Vn(e)}function xf(e){throw e}function Ho(e,t){let{onStoppedNotification:r}=ye;r&&Mt.setTimeout(()=>r(e,t))}var Mf={closed:!0,next:en,error:xf,complete:en};function _(e,t,r,n,o){return new Go(e,t,r,n,o)}var Go=class extends rt{constructor(t,r,n,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function He(e,t){return T((r,n)=>{let o=0;r.subscribe(_(n,i=>e.call(t,i,o++)&&n.next(i)))})}function Bn(e){return T((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}function Ga(e,t,r,n,o){return(i,s)=>{let a=r,c=t,l=0;i.subscribe(_(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Wa(e,t){return T(Ga(e,t,arguments.length>=2,!0))}function Za(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{l(n.next(u))}catch(d){s(d)}}function c(u){try{l(n.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((n=n.apply(e,t||[])).next())})}function qa(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ot(e){return this instanceof ot?(this.v=e,this):new ot(e)}function Ya(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(p){d(i[0][3],p)}}function c(f){f.value instanceof ot?Promise.resolve(f.value.v).then(l,u):d(i[0][2],f)}function l(f){a("next",f)}function u(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Qa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof qa=="function"?qa(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Un=e=>e&&typeof e.length=="number"&&typeof e!="function";function Hn(e){return I(e?.then)}var _t=typeof Symbol=="function"&&Symbol.observable||"@@observable";function K(e){return e}function Tf(...e){return Wo(e)}function Wo(e){return e.length===0?K:e.length===1?e[0]:function(r){return e.reduce((n,o)=>o(n),r)}}var A=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=Sf(r)?r:new Oe(r,n,o);return Tt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Ka(n),new n((o,i)=>{let s=new Oe({next:a=>{try{r(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[_t](){return this}pipe(...r){return Wo(r)(this)}toPromise(r){return r=Ka(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return e.create=t=>new e(t),e})();function Ka(e){var t;return(t=e??ye.Promise)!==null&&t!==void 0?t:Promise}function _f(e){return e&&I(e.next)&&I(e.error)&&I(e.complete)}function Sf(e){return e&&e instanceof rt||_f(e)&&jn(e)}function zn(e){return I(e[_t])}function Gn(e){return Symbol.asyncIterator&&I(e?.[Symbol.asyncIterator])}function Wn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Af(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qn=Af();function Zn(e){return I(e?.[qn])}function Yn(e){return Ya(this,arguments,function*(){let r=e.getReader();try{for(;;){let{value:n,done:o}=yield ot(r.read());if(o)return yield ot(void 0);yield yield ot(n)}}finally{r.releaseLock()}})}function Qn(e){return I(e?.getReader)}function $(e){if(e instanceof A)return e;if(e!=null){if(zn(e))return Nf(e);if(Un(e))return kf(e);if(Hn(e))return Of(e);if(Gn(e))return Xa(e);if(Zn(e))return Rf(e);if(Qn(e))return Pf(e)}throw Wn(e)}function Nf(e){return new A(t=>{let r=e[_t]();if(I(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kf(e){return new A(t=>{for(let r=0;r{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,Vn)})}function Rf(e){return new A(t=>{for(let r of e)if(t.next(r),t.closed)return;t.complete()})}function Xa(e){return new A(t=>{Ff(e,t).catch(r=>t.error(r))})}function Pf(e){return Xa(Yn(e))}function Ff(e,t){var r,n,o,i;return Za(this,void 0,void 0,function*(){try{for(r=Qa(e);n=yield r.next(),!n.done;){let s=n.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}t.complete()})}function St(e,t){return T((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(_(n,c=>{o?.unsubscribe();let l=0,u=i++;$(e(c,u)).subscribe(o=_(n,d=>n.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function qo(e,t,r){let n=I(e)||t||r?{next:e,error:t,complete:r}:e;return n?T((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(_(i,c=>{var l;(l=n.next)===null||l===void 0||l.call(n,c),i.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},c=>{var l;a=!1,(l=n.error)===null||l===void 0||l.call(n,c),i.error(c)},()=>{var c,l;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):K}function Zo(){return T((e,t)=>{let r=null;e._refCount++;let n=_(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){r=null;return}let o=e._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}var Yo=class extends A{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Vo(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new H;let r=this.getSubject();t.add(this.source.subscribe(_(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=H.EMPTY)}return t}refCount(){return Zo()(this)}};var Ja=xt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ne=(()=>{class e extends A{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Kn(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Ja}next(r){Tt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Tt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Tt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?$o:(this.currentObservers=null,i.push(r),new H(()=>{this.currentObservers=null,tt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new A;return r.source=this,r}}return e.create=(t,r)=>new Kn(t,r),e})(),Kn=class extends ne{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)}error(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)}complete(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)}_subscribe(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:$o}};var tn=class extends ne{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){let{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var nn={now(){return(nn.delegate||Date).now()},delegate:void 0};var rn=class extends ne{constructor(t=1/0,r=1/0,n=nn){super(),this._bufferSize=t,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,r)}next(t){let{isStopped:r,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;r||(n.push(t),!o&&n.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function tr(e){return e&&I(e.schedule)}function Qo(e){return e[e.length-1]}function nr(e){return I(Qo(e))?e.pop():void 0}function Ee(e){return tr(Qo(e))?e.pop():void 0}function tc(e,t){return typeof Qo(e)=="number"?e.pop():t}function re(e,t,r,n=0,o=!1){let i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function rr(e,t=0){return T((r,n)=>{r.subscribe(_(n,o=>re(n,e,()=>n.next(o),t),()=>re(n,e,()=>n.complete(),t),o=>re(n,e,()=>n.error(o),t)))})}function or(e,t=0){return T((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function nc(e,t){return $(e).pipe(or(t),rr(t))}function rc(e,t){return $(e).pipe(or(t),rr(t))}function oc(e,t){return new A(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function ic(e,t){return new A(r=>{let n;return re(r,t,()=>{n=e[qn](),re(r,t,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>I(n?.return)&&n.return()})}function ir(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(r=>{re(r,t,()=>{let n=e[Symbol.asyncIterator]();re(r,t,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function sc(e,t){return ir(Yn(e),t)}function ac(e,t){if(e!=null){if(zn(e))return nc(e,t);if(Un(e))return oc(e,t);if(Hn(e))return rc(e,t);if(Gn(e))return ir(e,t);if(Zn(e))return ic(e,t);if(Qn(e))return sc(e,t)}throw Wn(e)}function fe(e,t){return t?ac(e,t):$(e)}function Nt(...e){let t=Ee(e);return fe(e,t)}function jf(e,t){let r=I(e)?e:()=>e,n=o=>o.error(r());return new A(t?o=>t.schedule(n,0,o):n)}function Vf(e){return!!e&&(e instanceof A||I(e.lift)&&I(e.subscribe))}var st=xt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function cc(e){return e instanceof Date&&!isNaN(e)}function G(e,t){return T((r,n)=>{let o=0;r.subscribe(_(n,i=>{n.next(e.call(t,i,o++))}))})}var{isArray:$f}=Array;function Bf(e,t){return $f(t)?e(...t):e(t)}function sr(e){return G(t=>Bf(e,t))}var{isArray:Uf}=Array,{getPrototypeOf:Hf,prototype:zf,keys:Gf}=Object;function ar(e){if(e.length===1){let t=e[0];if(Uf(t))return{args:t,keys:null};if(Wf(t)){let r=Gf(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}function Wf(e){return e&&typeof e=="object"&&Hf(e)===zf}function cr(e,t){return e.reduce((r,n,o)=>(r[n]=t[o],r),{})}function qf(...e){let t=Ee(e),r=nr(e),{args:n,keys:o}=ar(e);if(n.length===0)return fe([],t);let i=new A(Zf(n,t,o?s=>cr(o,s):K));return r?i.pipe(sr(r)):i}function Zf(e,t,r=K){return n=>{lc(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let l=fe(e[c],t),u=!1;l.subscribe(_(n,d=>{i[c]=d,u||(u=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function lc(e,t,r){e?re(r,e,t):t()}function uc(e,t,r,n,o,i,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&t.complete()},h=m=>l{i&&t.next(m),l++;let y=!1;$(r(m,u++)).subscribe(_(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;c.length&&lp(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(_(t,h,()=>{d=!0,f()})),()=>{a?.()}}function at(e,t,r=1/0){return I(t)?at((n,o)=>G((i,s)=>t(n,i,o,s))($(e(n,o))),r):(typeof t=="number"&&(r=t),T((n,o)=>uc(n,o,e,r)))}function lr(e=1/0){return at(K,e)}function dc(){return lr(1)}function ur(...e){return dc()(fe(e,Ee(e)))}function Yf(e){return new A(t=>{$(e()).subscribe(t)})}function Qf(...e){let t=nr(e),{args:r,keys:n}=ar(e),o=new A(i=>{let{length:s}=r;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(n?cr(n,a):a),i.complete())}))}});return t?o.pipe(sr(t)):o}function Ko(e=0,t,r=ec){let n=-1;return t!=null&&(tr(t)?r=t:n=t),new A(o=>{let i=cc(e)?+e-r.now():e;i<0&&(i=0);let s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function Xo(...e){let t=Ee(e),r=tc(e,1/0),n=e;return n.length?n.length===1?$(n[0]):lr(r)(fe(n,t)):it}function Jo(e){return T((t,r)=>{let n=null,o=!1,i;n=t.subscribe(_(r,void 0,void 0,s=>{i=$(e(s,Jo(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function ei(e,t){return I(t)?at(e,t,1):at(e,1)}function sn(e){return T((t,r)=>{let n=!1;t.subscribe(_(r,o=>{n=!0,r.next(o)},()=>{n||r.next(e),r.complete()}))})}function ti(e){return e<=0?()=>it:T((t,r)=>{let n=0;t.subscribe(_(r,o=>{++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function ni(e){return G(()=>e)}function ri(e,t=K){return e=e??Kf,T((r,n)=>{let o,i=!0;r.subscribe(_(n,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,n.next(s))}))})}function Kf(e,t){return e===t}function dr(e=Xf){return T((t,r)=>{let n=!1;t.subscribe(_(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(e())))})}function Xf(){return new st}function oi(e,t){let r=arguments.length>=2;return n=>n.pipe(e?He((o,i)=>e(o,i,n)):K,ti(1),r?sn(t):dr(()=>new st))}function ii(e){return e<=0?()=>it:T((t,r)=>{let n=[];t.subscribe(_(r,o=>{n.push(o),e{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function Jf(e,t){let r=arguments.length>=2;return n=>n.pipe(e?He((o,i)=>e(o,i,n)):K,ii(1),r?sn(t):dr(()=>new st))}function fc(e={}){let{connector:t=()=>new ne,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},p=()=>{let m=s;h(),m?.unsubscribe()};return T((m,y)=>{l++,!d&&!u&&f();let v=c=c??t();y.add(()=>{l--,l===0&&!d&&!u&&(a=si(p,o))}),v.subscribe(y),!s&&l>0&&(s=new Oe({next:V=>v.next(V),error:V=>{d=!0,f(),a=si(h,r,V),v.error(V)},complete:()=>{u=!0,f(),a=si(h,n),v.complete()}}),$(m).subscribe(s))})(i)}}function si(e,t,...r){if(t===!0){e();return}if(t===!1)return;let n=new Oe({next:()=>{n.unsubscribe(),e()}});return $(t(...r)).subscribe(n)}function ai(e,t,r){let n,o=!1;return e&&typeof e=="object"?{bufferSize:n=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:r}=e:n=e??1/0,fc({connector:()=>new rn(n,t,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function ci(...e){let t=Ee(e);return T((r,n)=>{(t?ur(e,r,t):ur(e,r)).subscribe(n)})}function li(e){return T((t,r)=>{$(e).subscribe(_(r,()=>r.complete(),en)),!r.closed&&t.subscribe(r)})}function hc(e,t){return Object.is(e,t)}var W=null,an=!1,fr=1,ve=Symbol("SIGNAL");function z(e){let t=W;return W=e,t}function eh(){return an}var ln={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pr(e){if(an)throw new Error("");if(W===null)return;W.consumerOnSignalRead(e);let t=W.nextProducerIndex++;if(kt(W),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function yr(e){kt(e);for(let t=0;t0}function kt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Dc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function wc(e){let t=Object.create(nh);t.computation=e;let r=()=>{if(pc(t),pr(t),t.value===hr)throw t.error;return t.value};return r[ve]=t,r}var ui=Symbol("UNSET"),di=Symbol("COMPUTING"),hr=Symbol("ERRORED"),nh=Z(C({},ln),{value:ui,dirty:!0,error:null,equal:hc,producerMustRecompute(e){return e.value===ui||e.value===di},producerRecomputeValue(e){if(e.value===di)throw new Error("Detected cycle in computations.");let t=e.value;e.value=di;let r=gr(e),n;try{n=e.computation()}catch(o){n=hr,e.error=o}finally{mr(e,r)}if(t!==ui&&t!==hr&&n!==hr&&e.equal(t,n)){e.value=t;return}e.value=n,e.version++}});function rh(){throw new Error}var Ec=rh;function bc(){Ec()}function Ic(e){Ec=e}var oh=null;function Cc(e){let t=Object.create(pi);t.value=e;let r=()=>(pr(t),t.value);return r[ve]=t,r}function Dr(e,t){mc()||bc(),e.equal(e.value,t)||(e.value=t,ih(e))}function xc(e,t){mc()||bc(),Dr(e,t(e.value))}var pi=Z(C({},ln),{equal:hc,value:void 0});function ih(e){e.version++,th(),gc(e),oh?.()}function Mc(e,t,r){let n=Object.create(sh);r&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;let o=c=>{n.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(hi(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=fi)}let a=()=>{if(n.fn===null)return;if(eh())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!yr(n))return;n.hasRun=!0;let c=gr(n);try{n.cleanupFn(),n.cleanupFn=fi,n.fn(o)}finally{mr(n,c)}};return n.ref={notify:()=>yc(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[ve]:n},n.ref}var fi=()=>{},sh=Z(C({},ln),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:fi});var fl="https://g.co/ng/security#xss",M=class extends Error{constructor(t,r){super(Qr(t,r)),this.code=t}};function Qr(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var hl=Symbol("InputSignalNode#UNSET"),ah=Z(C({},pi),{transformFn:void 0,applyValueToInputSignal(e,t){Dr(e,t)}});function pl(e,t){let r=Object.create(ah);r.value=e,r.transformFn=t?.transform;function n(){if(pr(r),r.value===hl)throw new M(-950,!1);return r.value}return n[ve]=r,n}var Ni=class extends ne{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,r,n){let o=t,i=r||(()=>null),s=n;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=gi(i),o&&(o=gi(o)),s&&(s=gi(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof H&&t.add(a),a}};function gi(e){return t=>{setTimeout(e,void 0,t)}}var be=Ni;function Tc(e,t){return pl(e,t)}function ch(e){return pl(hl,e)}var Ux=(Tc.required=ch,Tc),N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{});function ie(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` +`);return r===-1?t:t.substring(0,r)}function _c(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var gl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(gl||{}),xe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(xe||{});function Kr(e){return{toString:e}.toString()}var Re=globalThis;var jt={},he=[];function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function lh(e,t){for(let r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}var uh=j({\u0275cmp:j}),dh=j({\u0275dir:j}),fh=j({\u0275pipe:j}),hh=j({\u0275mod:j}),Nr=j({\u0275fac:j}),un=j({__NG_ELEMENT_ID__:j}),Sc=j({__NG_ENV_ID__:j}),ut=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ut||{});function ml(e,t,r){let n=e.length;for(;;){let o=e.indexOf(t,r);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===n||e.charCodeAt(o+i)<=32)return o}r=o+1}}function ki(e,t,r){let n=0;for(;nt){s=i-1;break}}}for(;ii?f="":f=o[d+1].toLowerCase();let h=n&8?f:null;if(h&&ml(h,l,0)!==-1||n&2&&l!==f){if(De(n))return!1;s=!0}}}}return De(n)||s}function De(e){return(e&1)===0}function vh(e,t,r,n){if(t===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!De(s)&&(t+=Nc(i,o),o=""),n=s,i=i||!De(n);r++}return o!==""&&(t+=Nc(i,o)),t}function Ch(e){return e.map(Ih).join(",")}function xh(e){let t=[],r=[],n=1,o=2;for(;n{let t=Cl(e),r=Z(C({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||xe.Emulated,styles:e.styles||he,_:null,schemas:e.schemas||null,tView:null,id:""});xl(r);let n=e.dependencies;return r.directiveDefs=Oc(n,!1),r.pipeDefs=Oc(n,!0),r.id=Ah(r),r})}function Mh(e){return We(e)||El(e)}function Th(e){return e!==null}function Xr(e){return Kr(()=>({type:e.type,bootstrap:e.bootstrap||he,declarations:e.declarations||he,imports:e.imports||he,exports:e.exports||he,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function kc(e,t){if(e==null)return jt;let r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n],i,s,a=ut.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(r[i]=a!==ut.None?[n,a]:n,t[i]=s):r[i]=n}return r}function _h(e){return Kr(()=>{let t=Cl(e);return xl(t),t})}function As(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function We(e){return e[uh]||null}function El(e){return e[dh]||null}function bl(e){return e[fh]||null}function Sh(e){let t=We(e)||El(e)||bl(e);return t!==null?t.standalone:!1}function Il(e,t){let r=e[hh]||null;if(!r&&t===!0)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return r}function Cl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||jt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||he,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:kc(e.inputs,t),outputs:kc(e.outputs),debugInfo:null}}function xl(e){e.features?.forEach(t=>t(e))}function Oc(e,t){if(!e)return null;let r=t?bl:Mh;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(Th)}function Ah(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of r)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var je=0,x=1,E=2,Y=3,we=4,ce=5,Vt=6,fn=7,J=8,$t=9,Pe=10,B=11,hn=12,Rc=13,qt=14,pe=15,Jr=16,Ot=17,Bt=18,eo=19,Ml=20,Ge=21,xr=22,dt=23,se=25,Tl=1;var ft=7,kr=8,Or=9,ee=10,Ns=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ns||{});function ct(e){return Array.isArray(e)&&typeof e[Tl]=="object"}function Ve(e){return Array.isArray(e)&&e[Tl]===!0}function _l(e){return(e.flags&4)!==0}function to(e){return e.componentOffset>-1}function ks(e){return(e.flags&1)===1}function qe(e){return!!e.template}function Nh(e){return(e[E]&512)!==0}var kh="svg",Oh="math",Rh=!1;function Ph(){return Rh}function Me(e){for(;Array.isArray(e);)e=e[je];return e}function Sl(e,t){return Me(t[e])}function ge(e,t){return Me(t[e.index])}function Os(e,t){return e.data[t]}function Fh(e,t){return e[t]}function Ye(e,t){let r=t[e];return ct(r)?r:r[je]}function Rs(e){return(e[E]&128)===128}function Lh(e){return Ve(e[Y])}function Rr(e,t){return t==null?null:e[t]}function Al(e){e[Ot]=0}function jh(e){e[E]&1024||(e[E]|=1024,Rs(e)&&pn(e))}function Vh(e,t){for(;e>0;)t=t[qt],e--;return t}function Ps(e){return!!(e[E]&9216||e[dt]?.dirty)}function Oi(e){Ps(e)?pn(e):e[E]&64&&(Ph()?(e[E]|=1024,pn(e)):e[Pe].changeDetectionScheduler?.notify())}function pn(e){e[Pe].changeDetectionScheduler?.notify();let t=gn(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!Rs(t)));)t=gn(t)}function Nl(e,t){if((e[E]&256)===256)throw new M(911,!1);e[Ge]===null&&(e[Ge]=[]),e[Ge].push(t)}function $h(e,t){if(e[Ge]===null)return;let r=e[Ge].indexOf(t);r!==-1&&e[Ge].splice(r,1)}function gn(e){let t=e[Y];return Ve(t)?t[Y]:t}var k={lFrame:$l(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Bh(){return k.lFrame.elementDepthCount}function Uh(){k.lFrame.elementDepthCount++}function Hh(){k.lFrame.elementDepthCount--}function kl(){return k.bindingsEnabled}function Ol(){return k.skipHydrationRootTNode!==null}function zh(e){return k.skipHydrationRootTNode===e}function Gh(){k.skipHydrationRootTNode=null}function R(){return k.lFrame.lView}function te(){return k.lFrame.tView}function le(){let e=Rl();for(;e!==null&&e.type===64;)e=e.parent;return e}function Rl(){return k.lFrame.currentTNode}function Wh(){let e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Cn(e,t){let r=k.lFrame;r.currentTNode=e,r.isParent=t}function Pl(){return k.lFrame.isParent}function Fl(){k.lFrame.isParent=!1}function qh(){let e=k.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Zh(e){return k.lFrame.bindingIndex=e}function Zt(){return k.lFrame.bindingIndex++}function Yh(e){let t=k.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function Qh(){return k.lFrame.inI18n}function Kh(e,t){let r=k.lFrame;r.bindingIndex=r.bindingRootIndex=e,Ri(t)}function Xh(){return k.lFrame.currentDirectiveIndex}function Ri(e){k.lFrame.currentDirectiveIndex=e}function Jh(e){let t=k.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ll(e){k.lFrame.currentQueryIndex=e}function ep(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[ce]:null}function jl(e,t,r){if(r&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(r&N.Host);)if(o=ep(i),o===null||(i=i[qt],o.type&10))break;if(o===null)return!1;t=o,e=i}let n=k.lFrame=Vl();return n.currentTNode=t,n.lView=e,!0}function Fs(e){let t=Vl(),r=e[x];k.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Vl(){let e=k.lFrame,t=e===null?null:e.child;return t===null?$l(e):t}function $l(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Bl(){let e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ul=Bl;function Ls(){let e=Bl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function tp(e){return(k.lFrame.contextLView=Vh(e,k.lFrame.contextLView))[J]}function vt(){return k.lFrame.selectedIndex}function ht(e){k.lFrame.selectedIndex=e}function js(){let e=k.lFrame;return Os(e.tView,e.selectedIndex)}function np(){return k.lFrame.currentNamespace}var Hl=!0;function Vs(){return Hl}function $s(e){Hl=e}function rp(){return Bs(le(),R())}function Bs(e,t){return new xn(ge(e,t))}var xn=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=rp;let e=t;return e})();function Us(e,t){e.forEach(r=>Array.isArray(r)?Us(r,t):t(r))}function zl(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Pr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function op(e,t){let r=[];for(let n=0;nt;){let i=o-2;e[o]=e[i],o--}e[t]=r,e[t+1]=n}}function sp(e,t,r){let n=Mn(e,t);return n>=0?e[n|1]=r:(n=~n,ip(e,n,t,r)),n}function mi(e,t){let r=Mn(e,t);if(r>=0)return e[r|1]}function Mn(e,t){return ap(e,t,1)}function ap(e,t,r){let n=0,o=e.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=e[i<t?o=i:n=i+1}return~(o<dp}),dp="ng",zs=new b(""),Se=new b("",{providedIn:"platform",factory:()=>"unknown"});var Gs=new b("",{providedIn:"root",factory:()=>cp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fp=j({__forward_ref__:j});function Yl(e){return e.__forward_ref__=Yl,e.toString=function(){return ie(this())},e}function X(e){return Ql(e)?e():e}function Ql(e){return typeof e=="function"&&e.hasOwnProperty(fp)&&e.__forward_ref__===Yl}function Kl(e){return e&&!!e.\u0275providers}function oo(e){return typeof e=="string"?e:e==null?"":String(e)}function hp(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():oo(e)}function pp(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,e)}function Ws(e,t){throw new M(-201,!1)}var Fi;function Xl(){return Fi}function oe(e){let t=Fi;return Fi=e,t}function Jl(e,t,r){let n=ro(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&N.Optional)return null;if(t!==void 0)return t;Ws(e,"Injector")}var gp={},mn=gp,mp="__NG_DI_FLAG__",Fr="ngTempTokenPath",yp="ngTokenPath",vp=/\n/gm,Dp="\u0275",jc="__source",Ft;function wp(){return Ft}function ze(e){let t=Ft;return Ft=e,t}function Ep(e,t=N.Default){if(Ft===void 0)throw new M(-203,!1);return Ft===null?Jl(e,void 0,t):Ft.get(e,t&N.Optional?null:void 0,t)}function w(e,t=N.Default){return(Xl()||Ep)(X(e),t)}function L(e,t=N.Default){return w(e,io(t))}function io(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Li(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ie(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${e.replace(vp,` + `)}`}var xp="h",Mp="b";var Tp=()=>null;function qs(e,t,r=!1){return Tp(e,t,r)}function pt(e,t){let r=e.hasOwnProperty(Nr);return r?e[Nr]:null}var yn=new b(""),eu=new b("",-1),tu=new b(""),Lr=class{get(t,r=mn){if(r===mn){let n=new Error(`NullInjectorError: No provider for ${ie(t)}!`);throw n.name="NullInjectorError",n}return r}};function so(e){return{\u0275providers:e}}function _p(...e){return{\u0275providers:nu(!0,e),\u0275fromNgModule:!0}}function nu(e,...t){let r=[],n=new Set,o,i=s=>{r.push(s)};return Us(t,s=>{let a=s;ji(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&ru(o,i),r}function ru(e,t){for(let r=0;r{t(i,n)})}}function ji(e,t,r,n){if(e=X(e),!e)return!1;let o=null,i=Fc(e),s=!i&&We(e);if(!i&&!s){let c=e.ngModule;if(i=Fc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ji(l,t,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let l;try{Us(i.imports,u=>{ji(u,t,r,n)&&(l||=[],l.push(u))})}finally{}l!==void 0&&ru(l,t)}if(!a){let l=pt(o)||(()=>new o);t({provide:o,useFactory:l,deps:he},o),t({provide:tu,useValue:o,multi:!0},o),t({provide:yn,useValue:()=>w(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Zs(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Zs(e,t){for(let r of e)Kl(r)&&(r=r.\u0275providers),Array.isArray(r)?Zs(r,t):t(r)}var Sp=j({provide:String,useValue:j});function ou(e){return e!==null&&typeof e=="object"&&Sp in e}function Ap(e){return!!(e&&e.useExisting)}function Np(e){return!!(e&&e.useFactory)}function Ut(e){return typeof e=="function"}function kp(e){return!!e.useClass}var ao=new b(""),Mr={},Op={},yi;function Ys(){return yi===void 0&&(yi=new Lr),yi}var Te=class{},vn=class extends Te{get destroyed(){return this._destroyed}constructor(t,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,$i(t,s=>this.processProvider(s)),this.records.set(eu,Rt(void 0,this)),o.has("environment")&&this.records.set(Te,Rt(void 0,this));let i=this.records.get(ao);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(tu,he,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=ze(this),n=oe(void 0),o;try{return t()}finally{ze(r),oe(n)}}get(t,r=mn,n=N.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Sc))return t[Sc](this);n=io(n);let o,i=ze(this),s=oe(void 0);try{if(!(n&N.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=jp(t)&&ro(t);l&&this.injectableDefInScope(l)?c=Rt(Vi(t),Mr):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=n&N.Self?Ys():this.parent;return r=n&N.Optional&&r===mn?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Fr]=a[Fr]||[]).unshift(ie(t)),i)throw a;return Ip(a,t,"R3InjectorError",this.source)}else throw a}finally{oe(s),ze(i)}}resolveInjectorInitializers(){let t=ze(this),r=oe(void 0),n;try{let o=this.get(yn,he,N.Self);for(let i of o)i()}finally{ze(t),oe(r)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(ie(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){t=X(t);let r=Ut(t)?t:X(t&&t.provide),n=Pp(t);if(!Ut(t)&&t.multi===!0){let o=this.records.get(r);o||(o=Rt(void 0,Mr,!0),o.factory=()=>Li(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,n)}hydrate(t,r){return r.value===Mr&&(r.value=Op,r.value=r.factory()),typeof r.value=="object"&&r.value&&Lp(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(t){if(!t.providedIn)return!1;let r=X(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Vi(e){let t=ro(e),r=t!==null?t.factory:pt(e);if(r!==null)return r;if(e instanceof b)throw new M(204,!1);if(e instanceof Function)return Rp(e);throw new M(204,!1)}function Rp(e){if(e.length>0)throw new M(204,!1);let r=lp(e);return r!==null?()=>r.factory(e):()=>new e}function Pp(e){if(ou(e))return Rt(void 0,e.useValue);{let t=iu(e);return Rt(t,Mr)}}function iu(e,t,r){let n;if(Ut(e)){let o=X(e);return pt(o)||Vi(o)}else if(ou(e))n=()=>X(e.useValue);else if(Np(e))n=()=>e.useFactory(...Li(e.deps||[]));else if(Ap(e))n=()=>w(X(e.useExisting));else{let o=X(e&&(e.useClass||e.provide));if(Fp(e))n=()=>new o(...Li(e.deps));else return pt(o)||Vi(o)}return n}function Rt(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Fp(e){return!!e.deps}function Lp(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function jp(e){return typeof e=="function"||typeof e=="object"&&e instanceof b}function $i(e,t){for(let r of e)Array.isArray(r)?$i(r,t):r&&Kl(r)?$i(r.\u0275providers,t):t(r)}function su(e,t){e instanceof vn&&e.assertNotDestroyed();let r,n=ze(e),o=oe(void 0);try{return t()}finally{ze(n),oe(o)}}function Vp(e){if(!Xl()&&!wp())throw new M(-203,!1)}function $p(e){return typeof e=="function"}var Bi=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function au(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function co(){return cu}function cu(e){return e.type.prototype.ngOnChanges&&(e.setInput=Up),Bp}co.ngInherit=!0;function Bp(){let e=uu(this),t=e?.current;if(t){let r=e.previous;if(r===jt)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function Up(e,t,r,n,o){let i=this.declaredInputs[n],s=uu(e)||Hp(e,{previous:jt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Bi(l&&l.currentValue,r,c===jt),au(e,t,o,r)}var lu="__ngSimpleChanges__";function uu(e){return e[lu]||null}function Hp(e,t){return e[lu]=t}var Vc=null;var Ie=function(e,t,r){Vc?.(e,t,r)};function zp(e,t,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(n){let s=cu(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}o&&(r.preOrderHooks??=[]).push(0-e,o),i&&((r.preOrderHooks??=[]).push(e,i),(r.preOrderCheckHooks??=[]).push(e,i))}function Qs(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[c]<0&&(e[Ot]+=65536),(a>14>16&&(e[E]&3)===t&&(e[E]+=16384,$c(a,i)):$c(a,i)}var Lt=-1,gt=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Wp(e){return e instanceof gt}function qp(e){return(e.flags&8)!==0}function Zp(e){return(e.flags&16)!==0}function fu(e){return e!==Lt}function jr(e){return e&32767}function Yp(e){return e>>16}function Vr(e,t){let r=Yp(e),n=t;for(;r>0;)n=n[qt],r--;return n}var Ui=!0;function $r(e){let t=Ui;return Ui=e,t}var Qp=256,hu=Qp-1,pu=5,Kp=0,Ce={};function Xp(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(un)&&(n=r[un]),n==null&&(n=r[un]=Kp++);let o=n&hu,i=1<>pu)]|=i}function Br(e,t){let r=gu(e,t);if(r!==-1)return r;let n=t[x];n.firstCreatePass&&(e.injectorIndex=t.length,Di(n.data,e),Di(t,null),Di(n.blueprint,null));let o=Ks(e,t),i=e.injectorIndex;if(fu(o)){let s=jr(o),a=Vr(o,t),c=a[x].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Di(e,t){e.push(0,0,0,0,0,0,0,0,t)}function gu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ks(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,o=t;for(;o!==null;){if(n=wu(o),n===null)return Lt;if(r++,o=o[qt],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Lt}function Hi(e,t,r){Xp(e,t,r)}function Jp(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let r=e.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+u,f=o?a+u:l;for(let h=d;h=c&&p.type===r)return h}if(o){let h=s[c];if(h&&qe(h)&&h.type===r)return c}return null}function Ht(e,t,r,n){let o=e[r],i=t.data;if(Wp(o)){let s=o;s.resolving&&pp(hp(i[r]));let a=$r(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?oe(s.injectImpl):null,u=jl(e,n,N.Default);try{o=e[r]=s.factory(void 0,i,e,n),t.firstCreatePass&&r>=n.directiveStart&&zp(r,i[r],t)}finally{l!==null&&oe(l),$r(a),s.resolving=!1,Ul()}}return o}function ng(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(un)?e[un]:void 0;return typeof t=="number"?t>=0?t&hu:rg:t}function Bc(e,t,r){let n=1<>pu)]&n)}function Uc(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var lt=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return vu(this._tNode,this._lView,t,io(n),r)}};function rg(){return new lt(le(),R())}function zx(e){return Kr(()=>{let t=e.prototype.constructor,r=t[Nr]||zi(t),n=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==n;){let i=o[Nr]||zi(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function zi(e){return Ql(e)?()=>{let t=zi(X(e));return t&&t()}:pt(e)}function og(e,t,r,n,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=Du(i,s,r,n|N.Self,Ce);if(a!==Ce)return a;let c=i.parent;if(!c){let l=s[Ml];if(l){let u=l.get(r,Ce,n);if(u!==Ce)return u}c=wu(s),s=s[qt]}i=c}return o}function wu(e){let t=e[x],r=t.type;return r===2?t.declTNode:r===1?e[ce]:null}function ig(e){return Jp(le(),e)}function Hc(e,t=null,r=null,n){let o=Eu(e,t,r,n);return o.resolveInjectorInitializers(),o}function Eu(e,t=null,r=null,n,o=new Set){let i=[r||he,_p(e)];return n=n||(typeof e=="object"?void 0:ie(e)),new vn(i,t||Ys(),n||null,o)}var lo=(()=>{let t=class t{static create(n,o){if(Array.isArray(n))return Hc({name:""},o,n,"");{let i=n.name??"";return Hc({name:i},n.parent,n.providers,i)}}};t.THROW_IF_NOT_FOUND=mn,t.NULL=new Lr,t.\u0275prov=S({token:t,providedIn:"any",factory:()=>w(eu)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})(),sg="ngOriginalError";function wi(e){return e[sg]}var _e=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&wi(t);for(;r&&wi(r);)r=wi(r);return r||null}},bu=new b("",{providedIn:"root",factory:()=>L(_e).handleError.bind(void 0)});var Iu=!1,ag=new b("",{providedIn:"root",factory:()=>Iu}),wr;function cg(){if(wr===void 0&&(wr=null,Re.trustedTypes))try{wr=Re.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return wr}function uo(e){return cg()?.createHTML(e)||e}var Er;function lg(){if(Er===void 0&&(Er=null,Re.trustedTypes))try{Er=Re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Er}function zc(e){return lg()?.createScriptURL(e)||e}var Fe=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fl})`}},Gi=class extends Fe{getTypeName(){return"HTML"}},Wi=class extends Fe{getTypeName(){return"Style"}},qi=class extends Fe{getTypeName(){return"Script"}},Zi=class extends Fe{getTypeName(){return"URL"}},Yi=class extends Fe{getTypeName(){return"ResourceURL"}};function Ae(e){return e instanceof Fe?e.changingThisBreaksApplicationSecurity:e}function Qe(e,t){let r=ug(e);if(r!=null&&r!==t){if(r==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${fl})`)}return r===t}function ug(e){return e instanceof Fe&&e.getTypeName()||null}function Cu(e){return new Gi(e)}function xu(e){return new Wi(e)}function Mu(e){return new qi(e)}function Tu(e){return new Zi(e)}function _u(e){return new Yi(e)}function dg(e){let t=new Ki(e);return fg()?new Qi(t):t}var Qi=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let r=new window.DOMParser().parseFromString(uo(t),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}},Ki=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let r=this.inertDocument.createElement("template");return r.innerHTML=uo(t),r}};function fg(){try{return!!new window.DOMParser().parseFromString(uo(""),"text/html")}catch{return!1}}var hg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fo(e){return e=String(e),e.match(hg)?e:"unsafe:"+e}function $e(e){let t={};for(let r of e.split(","))t[r]=!0;return t}function Tn(...e){let t={};for(let r of e)for(let n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}var Su=$e("area,br,col,hr,img,wbr"),Au=$e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nu=$e("rp,rt"),pg=Tn(Nu,Au),gg=Tn(Au,$e("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),mg=Tn(Nu,$e("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Gc=Tn(Su,gg,mg,pg),ku=$e("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),yg=$e("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vg=$e("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Dg=Tn(ku,yg,vg),wg=$e("script,style,template"),Xi=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,n=!0;for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){r=r.firstChild;continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=this.checkClobberedElement(r,r.nextSibling);if(o){r=o;break}r=this.checkClobberedElement(r,r.parentNode)}}return this.buf.join("")}startElement(t){let r=t.nodeName.toLowerCase();if(!Gc.hasOwnProperty(r))return this.sanitizedSomething=!0,!wg.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=t.attributes;for(let o=0;o"),!0}endElement(t){let r=t.nodeName.toLowerCase();Gc.hasOwnProperty(r)&&!Su.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Wc(t))}checkClobberedElement(t,r){if(r&&(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return r}},Eg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bg=/([^\#-~ |!])/g;function Wc(e){return e.replace(/&/g,"&").replace(Eg,function(t){let r=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(bg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var br;function Ou(e,t){let r=null;try{br=br||dg(e);let n=t?String(t):"";r=br.getInertBodyElement(n);let o=5,i=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=i,i=r.innerHTML,r=br.getInertBodyElement(n)}while(n!==i);let a=new Xi().sanitizeChildren(qc(r)||r);return uo(a)}finally{if(r){let n=qc(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function qc(e){return"content"in e&&Ig(e)?e.content:null}function Ig(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var me=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(me||{});function Cg(e){let t=Ru();return t?t.sanitize(me.URL,e)||"":Qe(e,"URL")?Ae(e):fo(oo(e))}function xg(e){let t=Ru();if(t)return zc(t.sanitize(me.RESOURCE_URL,e)||"");if(Qe(e,"ResourceURL"))return zc(Ae(e));throw new M(904,!1)}function Mg(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?xg:Cg}function Gx(e,t,r){return Mg(t,r)(e)}function Ru(){let e=R();return e&&e[Pe].sanitizer}var Pu=new Map,Tg=0;function _g(){return Tg++}function Sg(e){Pu.set(e[eo],e)}function Ag(e){Pu.delete(e[eo])}var Zc="__ngContext__";function mt(e,t){ct(t)?(e[Zc]=t[eo],Sg(t)):e[Zc]=t}function Fu(e){return e instanceof Function?e():e}var Le=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Le||{}),Ng;function Xs(e,t){return Ng(e,t)}function Pt(e,t,r,n,o){if(n!=null){let i,s=!1;Ve(n)?i=n:ct(n)&&(s=!0,n=n[je]);let a=Me(n);e===0&&r!==null?o==null?Bu(t,r,a):Ur(t,r,a,o||null,!0):e===1&&r!==null?Ur(t,r,a,o||null,!0):e===2?Wg(t,a,s):e===3&&t.destroyNode(a),i!=null&&Zg(t,e,i,r,o)}}function kg(e,t){return e.createText(t)}function Og(e,t,r){e.setValue(t,r)}function Lu(e,t,r){return e.createElement(t,r)}function Rg(e,t){ju(e,t),t[je]=null,t[ce]=null}function Pg(e,t,r,n,o,i){n[je]=o,n[ce]=t,po(e,n,r,1,o,i)}function ju(e,t){po(e,t,t[B],2,null,null)}function Fg(e){let t=e[hn];if(!t)return Ei(e[x],e);for(;t;){let r=null;if(ct(t))r=t[hn];else{let n=t[ee];n&&(r=n)}if(!r){for(;t&&!t[we]&&t!==e;)ct(t)&&Ei(t[x],t),t=t[Y];t===null&&(t=e),ct(t)&&Ei(t[x],t),r=t&&t[we]}t=r}}function Lg(e,t,r,n){let o=ee+n,i=r.length;n>0&&(r[o-1][we]=t),n0&&(e[r-1][we]=n[we]);let i=Pr(e,ee+t);Rg(n[x],n);let s=i[Bt];s!==null&&s.detachView(i[x]),n[Y]=null,n[we]=null,n[E]&=-129}return n}function ho(e,t){if(!(t[E]&256)){let r=t[B];r.destroyNode&&po(e,t,r,3,null,null),Fg(t)}}function Ei(e,t){if(!(t[E]&256)){t[E]&=-129,t[E]|=256,t[dt]&&hi(t[dt]),$g(e,t),Vg(e,t),t[x].type===1&&t[B].destroy();let r=t[Jr];if(r!==null&&Ve(t[Y])){r!==t[Y]&&Vu(r,t);let n=t[Bt];n!==null&&n.detachView(e)}Ag(t)}}function Vg(e,t){let r=e.cleanup,n=t[fn];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(t[fn]=null);let o=t[Ge];if(o!==null){t[Ge]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[n.directiveStart+o];if(i===xe.None||i===xe.Emulated)return null}return ge(n,r)}}function Ur(e,t,r,n,o){e.insertBefore(t,r,n,o)}function Bu(e,t,r){e.appendChild(t,r)}function Yc(e,t,r,n,o){n!==null?Ur(e,t,r,n,o):Bu(e,t,r)}function Ug(e,t,r,n){e.removeChild(t,r,n)}function Js(e,t){return e.parentNode(t)}function Hg(e,t){return e.nextSibling(t)}function Uu(e,t,r){return Gg(e,t,r)}function zg(e,t,r){return e.type&40?ge(e,r):null}var Gg=zg,Qc;function ea(e,t,r,n){let o=$u(e,n,t),i=t[B],s=n.parent||t[ce],a=Uu(s,n,t);if(o!=null)if(Array.isArray(r))for(let c=0;cse&&Zu(e,t,se,!1),Ie(s?2:0,o),r(n,o)}finally{ht(i),Ie(s?3:1,o)}}function Xu(e,t,r){if(_l(t)){let n=z(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function rm(e,t,r,n,o,i){let s=t?t.injectorIndex:-1,a=0;return Ol()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Kc(e,t,r,n,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;n??={};let a,c=ut.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(o!==null){if(!o.hasOwnProperty(i))continue;l=o[i]}e===0?Xc(n,r,l,a,c):Xc(n,r,l,a)}return n}function Xc(e,t,r,n,o){let i;e.hasOwnProperty(r)?(i=e[r]).push(t,n):i=e[r]=[t,n],o!==void 0&&i.push(o)}function om(e,t,r){let n=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,l=null;for(let u=n;u0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function lm(e,t,r,n){let o=r.directiveStart,i=r.directiveEnd;to(r)&&mm(t,r,e.data[o+r.componentOffset]),e.firstCreatePass||Br(r,t),mt(n,t);let s=r.initialInputs;for(let a=o;a{pn(e.lView)},consumerOnSignalRead(){this.lView[dt]=this}});function fd(e){return pd(e[hn])}function hd(e){return pd(e[we])}function pd(e){for(;e!==null&&!Ve(e);)e=e[we];return e}var gd=100;function md(e,t=!0,r=0){let n=e[Pe],o=n.rendererFactory,i=!1;i||o.begin?.();try{km(e,r)}catch(s){throw t&&cd(e,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function km(e,t){ns(e,t);let r=0;for(;Ps(e);){if(r===gd)throw new M(103,!1);r++,ns(e,1)}}function Om(e,t,r,n){let o=t[E];if((o&256)===256)return;let i=!1;!i&&t[Pe].inlineEffectRunner?.flush(),Fs(t);let s=null,a=null;!i&&Rm(e)&&(a=_m(t),s=gr(a));try{Al(t),Zh(e.bindingStartIndex),r!==null&&Ku(e,t,r,2,n);let c=(o&3)===3;if(!i)if(c){let d=e.preOrderCheckHooks;d!==null&&Tr(t,d,null)}else{let d=e.preOrderHooks;d!==null&&_r(t,d,0,null),vi(t,0)}if(Pm(t),yd(t,0),e.contentQueries!==null&&ad(e,t),!i)if(c){let d=e.contentCheckHooks;d!==null&&Tr(t,d)}else{let d=e.contentHooks;d!==null&&_r(t,d,1),vi(t,1)}Kg(e,t);let l=e.components;l!==null&&Dd(t,l,0);let u=e.viewQuery;if(u!==null&&ts(2,u,n),!i)if(c){let d=e.viewCheckHooks;d!==null&&Tr(t,d)}else{let d=e.viewHooks;d!==null&&_r(t,d,2),vi(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xr]){for(let d of t[xr])d();t[xr]=null}i||(t[E]&=-73)}catch(c){throw pn(t),c}finally{a!==null&&(mr(a,s),Am(a)),Ls()}}function Rm(e){return e.type!==2}function yd(e,t){for(let r=fd(e);r!==null;r=hd(r))for(let n=ee;n-1&&(Dn(t,n),Pr(r,n))}this._attachedToViewContainer=!1}ho(this._lView[x],this._lView)}onDestroy(t){Nl(this._lView,t)}markForCheck(){sa(this._cdRefInjectingView||this._lView)}detach(){this._lView[E]&=-129}reattach(){Oi(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,md(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,ju(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t,Oi(this._lView)}};var Wx=new RegExp(`^(\\d+)*(${Mp}|${xp})*(.*)`);var Lm=()=>null;function En(e,t){return Lm(e,t)}var rs=class{},os=class{},zr=class{};function jm(e){let t=Error(`No component factory found for ${ie(e)}.`);return t[Vm]=e,t}var Vm="ngComponent";var is=class{resolveComponentFactory(t){throw jm(t)}},vo=(()=>{let t=class t{};t.NULL=new is;let e=t;return e})(),bn=class{},wd=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>$m();let e=t;return e})();function $m(){let e=R(),t=le(),r=Ye(t.index,e);return(ct(r)?r:e)[B]}var Bm=(()=>{let t=class t{};t.\u0275prov=S({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),bi={};function Um(e){return typeof e=="function"&&e[ve]!==void 0}var Jc=new Set;function Ke(e){Jc.has(e)||(Jc.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function qx(e,t){Ke("NgSignals");let r=wc(e);return t?.equal&&(r[ve].equal=t.equal),r}function Zx(e,t){Ke("NgSignals");let r=Cc(e),n=r[ve];return t?.equal&&(n.equal=t.equal),r.set=o=>Dr(n,o),r.update=o=>xc(n,o),r.asReadonly=Hm.bind(r),r}function Hm(){let e=this[ve];if(e.readonlyFn===void 0){let t=()=>this();t[ve]=e,e.readonlyFn=t}return e.readonlyFn}function Ed(e){return Um(e)&&typeof e.set=="function"}function aa(e){let t=z(null);try{return e()}finally{z(t)}}var Do=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=zm;let e=t;return e})();function zm(e){return Gm(le(),R(),(e&16)===16)}function Gm(e,t,r){if(to(e)&&!r){let n=Ye(e.index,t);return new zt(n,n)}else if(e.type&47){let n=t[pe];return new zt(n,t)}return null}var bd=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Wm,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),ss=class extends bd{constructor(t){super(),this._lView=t}onDestroy(t){return Nl(this._lView,t),()=>$h(this._lView,t)}};function Wm(){return new ss(R())}var qm=new b("",{providedIn:"root",factory:()=>L(Zm)}),Zm=(()=>{let t=class t{};t.\u0275prov=S({token:t,providedIn:"root",factory:()=>new as});let e=t;return e})(),as=class{constructor(){this.hasQueuedFlush=!1,this.queuedEffectCount=0,this.queues=new Map}scheduleEffect(t){this.enqueue(t),this.hasQueuedFlush||(queueMicrotask(()=>this.flush()),this.hasQueuedFlush=!1)}enqueue(t){let r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(t)||(this.queuedEffectCount++,n.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,r]of this.queues)t===null?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(let r of t)t.delete(r),this.queuedEffectCount--,r.run()}},cs=class{constructor(t,r,n,o,i,s){this.scheduler=t,this.effectFn=r,this.creationZone=n,this.injector=i,this.watcher=Mc(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){this.injector.get(_e,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Ym(e,t){Ke("NgSignals"),!t?.injector&&Vp(Ym);let r=t?.injector??L(lo),n=t?.manualCleanup!==!0?r.get(bd):null,o=new cs(r.get(qm),e,typeof Zone>"u"?null:Zone.current,n,r,t?.allowSignalWrites??!1),i=r.get(Do,null,{optional:!0});return!i||!(i._lView[E]&8)?o.watcher.notify():(i._lView[xr]??=[]).push(o.watcher.notify),o}function el(...e){}function Qm(){let e=typeof Re.requestAnimationFrame=="function",t=Re[e?"requestAnimationFrame":"setTimeout"],r=Re[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var q=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new be(!1),this.onMicrotaskEmpty=new be(!1),this.onStable=new be(!1),this.onError=new be(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Qm().nativeRequestAnimationFrame,Jm(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new M(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Km,el,el);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},Km={};function ca(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Xm(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Re,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ls(e),e.isCheckStableRunning=!0,ca(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ls(e))}function Jm(e){let t=()=>{Xm(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(ey(a))return r.invokeTask(o,i,s,a);try{return tl(e),r.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),nl(e)}},onInvoke:(r,n,o,i,s,a,c)=>{try{return tl(e),r.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),nl(e)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,ls(e),ca(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function ls(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function tl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function nl(e){e._nesting--,ca(e)}function ey(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var Id=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=S({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function us(e,t,r){let n=r?e.styles:null,o=r?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Gu(e,r,i.join(" "))}}function ay(e,t,r){let n=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=ly;let e=t;return e})();function ly(){let e=le();return dy(e,R())}var uy=wo,Cd=class extends uy{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return Bs(this._hostTNode,this._hostLView)}get injector(){return new lt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ks(this._hostTNode,this._hostLView);if(fu(t)){let r=Vr(t,this._hostLView),n=jr(t),o=r[x].data[n+8];return new lt(o,r)}else return new lt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=ol(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-ee}createEmbeddedView(t,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=En(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,wn(this._hostTNode,s)),a}createComponent(t,r,n,o,i){let s=t&&!$p(t),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?t:new Gt(We(t)),l=n||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?l:this.parentInjector).get(Te,null);m&&(i=m)}let u=We(c.componentType??{}),d=En(this._lContainer,u?.id??null),f=d?.firstChild??null,h=c.create(l,o,f,i);return this.insertImpl(h.hostView,a,wn(this._hostTNode,d)),h}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let o=t._lView;if(Lh(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Y],l=new Cd(c,c[ce],c[Y]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(r),s=this._lContainer;return yo(s,o,i,n),t.attachToViewContainerRef(),zl(Ii(s),i,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=ol(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=Dn(this._lContainer,r);n&&(Pr(Ii(this._lContainer),r),ho(n[x],n))}detach(t){let r=this._adjustIndex(t,-1),n=Dn(this._lContainer,r);return n&&Pr(Ii(this._lContainer),r)!=null?new zt(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function ol(e){return e[kr]}function Ii(e){return e[kr]||(e[kr]=[])}function dy(e,t){let r,n=t[e.index];return Ve(n)?r=n:(r=sd(n,t,null,e),t[e.index]=r,mo(t,r)),hy(r,t,e,n),new Cd(r,e,t)}function fy(e,t){let r=e[B],n=r.createComment(""),o=ge(t,e),i=Js(r,o);return Ur(r,i,n,Hg(r,o),!1),n}var hy=my,py=()=>!1;function gy(e,t,r){return py(e,t,r)}function my(e,t,r,n){if(e[ft])return;let o;r.type&8?o=Me(n):o=fy(t,r),e[ft]=o}function yy(e){return Object.getPrototypeOf(e.prototype).constructor}function vy(e){let t=yy(e.type),r=!0,n=[e];for(;t;){let o;if(qe(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);o=t.\u0275dir}if(o){if(r){n.push(o);let s=e;s.inputs=Ir(e.inputs),s.inputTransforms=Ir(e.inputTransforms),s.declaredInputs=Ir(e.declaredInputs),s.outputs=Ir(e.outputs);let a=o.hostBindings;a&&Iy(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&Ey(e,c),l&&by(e,l),Dy(e,o),lh(e.outputs,o.outputs),qe(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;n--){let o=e[n];o.hostVars=t+=o.hostVars,o.hostAttrs=dn(o.hostAttrs,r=dn(r,o.hostAttrs))}}function Ir(e){return e===jt?{}:e===he?[]:e}function Ey(e,t){let r=e.viewQuery;r?e.viewQuery=(n,o)=>{t(n,o),r(n,o)}:e.viewQuery=t}function by(e,t){let r=e.contentQueries;r?e.contentQueries=(n,o,i)=>{t(n,o,i),r(n,o,i)}:e.contentQueries=t}function Iy(e,t){let r=e.hostBindings;r?e.hostBindings=(n,o)=>{t(n,o),r(n,o)}:e.hostBindings=t}function Cy(e){let t=e.inputConfig,r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}e.inputTransforms=r}var Ze=class{},hs=class{};var ps=class extends Ze{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Gr(this);let o=Il(t);this._bootstrapComponents=Fu(o.bootstrap),this._r3Injector=Eu(t,r,[{provide:Ze,useValue:this},{provide:vo,useValue:this.componentFactoryResolver},...n],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},gs=class extends hs{constructor(t){super(),this.moduleType=t}create(t){return new ps(this.moduleType,t,[])}};var Wr=class extends Ze{constructor(t){super(),this.componentFactoryResolver=new Gr(this),this.instance=null;let r=new vn([...t.providers,{provide:Ze,useValue:this},{provide:vo,useValue:this.componentFactoryResolver}],t.parent||Ys(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function xy(e,t,r=null){return new Wr({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}var Eo=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new tn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function My(e,t,r){return e[t]=r}function Xe(e,t,r){let n=e[t];return Object.is(n,r)?!1:(e[t]=r,!0)}function Ty(e,t,r,n,o,i,s,a,c){let l=t.consts,u=_n(t,e,4,s||null,Rr(l,a));rd(t,r,u,Rr(l,c)),Qs(t,u);let d=u.tView=na(2,u,n,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function ms(e,t,r,n,o,i,s,a){let c=R(),l=te(),u=e+se,d=l.firstCreatePass?Ty(u,l,c,t,r,n,o,i,s):l.data[u];Cn(d,!1);let f=_y(l,c,d,e);Vs()&&ea(l,c,f,d),mt(f,c);let h=sd(f,c,f,d);return c[u]=h,mo(c,h),gy(h,d,c),ks(d)&&Ju(l,c,d),s!=null&&ed(c,d,a),ms}var _y=Sy;function Sy(e,t,r,n){return $s(!0),t[B].createComment("")}function Ay(e,t,r,n){let o=R(),i=Zt();if(Xe(o,i,t)){let s=te(),a=js();ym(a,o,e,t,r,n)}return Ay}function Ny(e,t,r,n){return Xe(e,Zt(),r)?t+oo(r)+n:Dt}function Cr(e,t){return e<<17|t<<2}function yt(e){return e>>17&32767}function ky(e){return(e&2)==2}function Oy(e,t){return e&131071|t<<17}function ys(e){return e|2}function Wt(e){return(e&131068)>>2}function Ci(e,t){return e&-131069|t<<2}function Ry(e){return(e&1)===1}function vs(e){return e|1}function Py(e,t,r,n,o,i){let s=i?t.classBindings:t.styleBindings,a=yt(s),c=Wt(s);e[n]=r;let l=!1,u;if(Array.isArray(r)){let d=r;u=d[1],(u===null||Mn(d,u)>0)&&(l=!0)}else u=r;if(o)if(c!==0){let f=yt(e[a+1]);e[n+1]=Cr(f,a),f!==0&&(e[f+1]=Ci(e[f+1],n)),e[a+1]=Oy(e[a+1],n)}else e[n+1]=Cr(a,0),a!==0&&(e[a+1]=Ci(e[a+1],n)),a=n;else e[n+1]=Cr(c,0),a===0?a=n:e[c+1]=Ci(e[c+1],n),c=n;l&&(e[n+1]=ys(e[n+1])),il(e,u,n,!0),il(e,u,n,!1),Fy(t,u,e,n,i),s=Cr(a,c),i?t.classBindings=s:t.styleBindings=s}function Fy(e,t,r,n,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Mn(i,t)>=0&&(r[n+1]=vs(r[n+1]))}function il(e,t,r,n){let o=e[r+1],i=t===null,s=n?yt(o):Wt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Ly(c,t)&&(a=!0,e[s+1]=n?vs(l):ys(l)),s=n?yt(l):Wt(l)}a&&(e[r+1]=n?ys(o):vs(o))}function Ly(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Mn(e,t)>=0:!1}function jy(e,t,r){let n=R(),o=Zt();if(Xe(n,o,t)){let i=te(),s=js();nd(i,s,n,e,t,n[B],r,!1)}return jy}function sl(e,t,r,n,o){let i=t.inputs,s=o?"class":"style";ra(e,r,i[s],s,n)}function la(e,t){return Vy(e,t,null,!0),la}function Vy(e,t,r,n){let o=R(),i=te(),s=Yh(2);if(i.firstUpdatePass&&By(i,e,s,n),t!==Dt&&Xe(o,s,t)){let a=i.data[vt()];Wy(i,a,o,o[B],e,o[s+1]=qy(t,r),n,s)}}function $y(e,t){return t>=e.expandoStartIndex}function By(e,t,r,n){let o=e.data;if(o[r+1]===null){let i=o[vt()],s=$y(e,r);Zy(i,n)&&t===null&&!s&&(t=!1),t=Uy(o,i,t,n),Py(o,i,t,r,s,n)}}function Uy(e,t,r,n){let o=Jh(e),i=n?t.residualClasses:t.residualStyles;if(o===null)(n?t.classBindings:t.styleBindings)===0&&(r=xi(null,e,t,r,n),r=In(r,t.attrs,n),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(r=xi(o,e,t,r,n),i===null){let c=Hy(e,t,n);c!==void 0&&Array.isArray(c)&&(c=xi(null,e,t,c[1],n),c=In(c,t.attrs,n),zy(e,t,n,c))}else i=Gy(e,t,n)}return i!==void 0&&(n?t.residualClasses=i:t.residualStyles=i),r}function Hy(e,t,r){let n=r?t.classBindings:t.styleBindings;if(Wt(n)!==0)return e[yt(n)]}function zy(e,t,r,n){let o=r?t.classBindings:t.styleBindings;e[yt(o)]=n}function Gy(e,t,r){let n,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=r[o+1];f===Dt&&(f=d?he:void 0);let h=d?mi(f,n):u===n?f:void 0;if(l&&!qr(h)&&(h=mi(c,n)),qr(h)&&(a=h,s))return a;let p=e[o+1];o=s?yt(p):Wt(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=mi(c,n))}return a}function qr(e){return e!==void 0}function qy(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ie(Ae(e)))),e}function Zy(e,t){return(e.flags&(t?8:16))!==0}var Ds=class{destroy(t){}updateValue(t,r){}swap(t,r){let n=Math.min(t,r),o=Math.max(t,r),i=this.detach(o);if(o-n>1){let s=this.detach(n);this.attach(n,i),this.attach(o,s)}else this.attach(n,i)}move(t,r){this.attach(r,this.detach(t))}};function Mi(e,t,r,n,o){return e===r&&Object.is(t,n)?1:Object.is(o(e,t),o(r,n))?-1:0}function Yy(e,t,r){let n,o,i=0,s=e.length-1;if(Array.isArray(t)){let a=t.length-1;for(;i<=s&&i<=a;){let c=e.at(i),l=t[i],u=Mi(i,c,i,l,r);if(u!==0){u<0&&e.updateValue(i,l),i++;continue}let d=e.at(s),f=t[a],h=Mi(s,d,a,f,r);if(h!==0){h<0&&e.updateValue(s,f),s--,a--;continue}let p=r(i,c),m=r(s,d),y=r(i,l);if(Object.is(y,m)){let v=r(a,f);Object.is(v,p)?(e.swap(i,s),e.updateValue(s,f),a--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(n??=new Zr,o??=ll(e,i,s,r),ws(e,n,i,y))e.updateValue(i,l),i++,s++;else if(o.has(y))n.set(p,e.detach(i)),s--;else{let v=e.create(i,t[i]);e.attach(i,v),i++,s++}}for(;i<=a;)cl(e,n,r,i,t[i]),i++}else if(t!=null){let a=t[Symbol.iterator](),c=a.next();for(;!c.done&&i<=s;){let l=e.at(i),u=c.value,d=Mi(i,l,i,u,r);if(d!==0)d<0&&e.updateValue(i,u),i++,c=a.next();else{n??=new Zr,o??=ll(e,i,s,r);let f=r(i,u);if(ws(e,n,i,f))e.updateValue(i,u),i++,s++,c=a.next();else if(!o.has(f))e.attach(i,e.create(i,u)),i++,s++,c=a.next();else{let h=r(i,l);n.set(h,e.detach(i)),s--}}}for(;!c.done;)cl(e,n,r,e.length,c.value),c=a.next()}for(;i<=s;)e.destroy(e.detach(s--));n?.forEach(a=>{e.destroy(a)})}function ws(e,t,r,n){return t!==void 0&&t.has(n)?(e.attach(r,t.get(n)),t.delete(n),!0):!1}function cl(e,t,r,n,o){if(ws(e,t,n,r(n,o)))e.updateValue(n,o);else{let i=e.create(n,o);e.attach(n,i)}}function ll(e,t,r,n){let o=new Set;for(let i=t;i<=r;i++)o.add(n(i,e.at(i)));return o}var Zr=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let r=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let n=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,n]of this.kvMap)if(t(n,r),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),t(n,r)}}};function Qx(e,t,r){Ke("NgControlFlow");let n=R(),o=Zt(),i=Cs(n,se+e),s=0;if(Xe(n,o,t)){let a=z(null);try{if(ud(i,s),t!==-1){let c=xs(n[x],se+t),l=En(i,c.tView.ssrId),u=ia(n,c,r,{dehydratedView:l});yo(i,u,s,wn(c,l))}}finally{z(a)}}else{let a=ld(i,s);a!==void 0&&(a[J]=r)}}var Es=class{constructor(t,r,n){this.lContainer=t,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-ee}};function Kx(e,t){return t}var bs=class{constructor(t,r,n){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=n}};function Xx(e,t,r,n,o,i,s,a,c,l,u,d,f){Ke("NgControlFlow");let h=c!==void 0,p=R(),m=a?s.bind(p[pe][J]):s,y=new bs(h,m);p[se+e]=y,ms(e+1,t,r,n,o,i),h&&ms(e+2,c,l,u,d,f)}var Is=class extends Ds{constructor(t,r,n){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ee}at(t){return this.getLView(t)[J].$implicit}attach(t,r){let n=r[Vt];this.needsIndexUpdate||=t!==this.length,yo(this.lContainer,r,t,wn(this.templateTNode,n))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Qy(this.lContainer,t)}create(t,r){let n=En(this.lContainer,this.templateTNode.tView.ssrId);return ia(this.hostLView,this.templateTNode,new Es(this.lContainer,r,t),{dehydratedView:n})}destroy(t){ho(t[x],t)}updateValue(t,r){this.getLView(t)[J].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t($s(!0),Lu(n,o,np()));var Yr="en-US";var tv=Yr;function nv(e){typeof e=="string"&&(tv=e.toLowerCase().replace(/_/g,"-"))}function ua(e,t,r,n){let o=R(),i=te(),s=le();return xd(i,o,o[B],s,e,t,n),ua}function rv(e,t,r,n){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function xd(e,t,r,n,o,i,s){let a=ks(n),l=e.firstCreatePass&&bm(e),u=t[J],d=Em(t),f=!0;if(n.type&3||s){let m=ge(n,t),y=s?s(m):m,v=d.length,V=s?F=>s(Me(F[n.index])):n.index,Q=null;if(!s&&a&&(Q=rv(e,t,o,n.index)),Q!==null){let F=Q.__ngLastListenerFn__||Q;F.__ngNextListenerFn__=i,Q.__ngLastListenerFn__=i,f=!1}else{i=dl(n,t,u,i,!1);let F=r.listen(y,o,i);d.push(i,F),l&&l.push(o,V,v,v+1)}}else i=dl(n,t,u,i,!1);let h=n.outputs,p;if(f&&h!==null&&(p=h[o])){let m=p.length;if(m)for(let y=0;y-1?Ye(e.index,t):t;sa(a);let c=ul(t,r,n,s),l=i.__ngNextListenerFn__;for(;l;)c=ul(t,r,l,s)&&c,l=l.__ngNextListenerFn__;return o&&c===!1&&s.preventDefault(),c}}function eM(e=1){return tp(e)}function ov(e,t){let r=null,n=Dh(e);for(let o=0;o=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}function _d(e,t=""){let r=R(),n=te(),o=e+se,i=n.firstCreatePass?_n(n,o,1,t,null):n.data[o],s=sv(n,r,i,t,e);r[o]=s,Vs()&&ea(n,r,s,i),Cn(i,!1)}var sv=(e,t,r,n,o)=>($s(!0),kg(t[B],n));function da(e){return Sd("",e,""),da}function Sd(e,t,r){let n=R(),o=Ny(n,e,t,r);return o!==Dt&&Im(n,vt(),o),Sd}function av(e,t,r){Ed(t)&&(t=t());let n=R(),o=Zt();if(Xe(n,o,t)){let i=te(),s=js();nd(i,s,n,e,t,n[B],r,!1)}return av}function tM(e,t){let r=Ed(e);return r&&e.set(t),r}function cv(e,t){let r=R(),n=te(),o=le();return xd(n,r,r[B],o,e,t),cv}function lv(e,t,r){let n=te();if(n.firstCreatePass){let o=qe(e);Ms(r,n.data,n.blueprint,o,!0),Ms(t,n.data,n.blueprint,o,!1)}}function Ms(e,t,r,n,o){if(e=X(e),Array.isArray(e))for(let i=0;i>20;if(Ut(e)||!e.multi){let h=new gt(l,o,Ne),p=_i(c,t,o?u:u+f,d);p===-1?(Hi(Br(a,s),i,c),Ti(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[p]=h,s[p]=h)}else{let h=_i(c,t,u+f,d),p=_i(c,t,u,u+f),m=h>=0&&r[h],y=p>=0&&r[p];if(o&&!y||!o&&!m){Hi(Br(a,s),i,c);let v=fv(o?dv:uv,r.length,o,n,l);!o&&y&&(r[p].providerFactory=v),Ti(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(v),s.push(v)}else{let v=Ad(r[o?p:h],l,!o&&n);Ti(i,e,h>-1?h:p,v)}!o&&n&&y&&r[p].componentProviders++}}}function Ti(e,t,r,n){let o=Ut(t),i=kp(t);if(o||i){let c=(i?X(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(r);u===-1?l.push(r,[n,c]):l[u+1].push(n,c)}else l.push(r,c)}}}function Ad(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function _i(e,t,r,n){for(let o=r;o{r.providersResolver=(n,o)=>lv(n,o?o(e):e,t)}}var hv=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=nu(!1,n.type),i=o.length>0?xy([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=S({token:t,providedIn:"environment",factory:()=>new t(w(Te))});let e=t;return e})();function fa(e){Ke("NgStandalone"),e.getStandaloneInjector=t=>t.get(hv).getOrCreateStandaloneInjector(e)}function pv(e,t){let r=e[t];return r===Dt?void 0:r}function gv(e,t,r,n,o,i){let s=t+r;return Xe(e,s,o)?My(e,s+1,i?n.call(i,o):n(o)):pv(e,s+1)}function ha(e,t){let r=te(),n,o=e+se;r.firstCreatePass?(n=mv(t,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=pt(n.type,!0)),s,a=oe(Ne);try{let c=$r(!1),l=i();return $r(c),iv(r,R(),o,l),l}finally{oe(a)}}function mv(e,t){if(t)for(let r=t.length-1;r>=0;r--){let n=t[r];if(e===n.name)return n}}function pa(e,t,r){let n=e+se,o=R(),i=Fh(o,n);return yv(o,n)?gv(o,qh(),t,i.transform,r,i):i.transform(r)}function yv(e,t){return e[x].data[t].pure}var Nd=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var kd=new b("");function Co(e){return!!e&&typeof e.then=="function"}function ga(e){return!!e&&typeof e.subscribe=="function"}var vv=new b(""),Od=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=L(vv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(Co(s))n.push(s);else if(ga(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Rd=new b("");function Dv(){Ic(()=>{throw new M(600,!1)})}function wv(e){return e.isBoundToModule}function Ev(e,t,r){try{let n=r();return Co(n)?n.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}var xo=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=L(bu),this.afterRenderEffectManager=L(Id),this.componentTypes=[],this.components=[],this.isStable=L(Eo).hasPendingTasks.pipe(G(n=>!n)),this._injector=L(Te)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof zr;if(!this._injector.get(Od).done){let h=!i&&Sh(n),p=!1;throw new M(405,p)}let a;i?a=n:a=this._injector.get(vo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=wv(a)?void 0:this._injector.get(Ze),l=o||a.selector,u=a.create(lo.NULL,[],l,c),d=u.location.nativeElement,f=u.injector.get(kd,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Si(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let n=0,o=this.afterRenderEffectManager;for(;;){if(n===gd)throw new M(103,!1);let i=n===0;for(let{_lView:s,notifyErrorHandler:a}of this._views)!i&&!Ai(s)||this.detectChangesInView(s,a,i);if(n++,o.executeInternalCallbacks(),!this._views.some(({_lView:s})=>Ai(s))&&(o.execute(),!this._views.some(({_lView:s})=>Ai(s))))break}}detectChangesInView(n,o,i){let s;i?(s=0,n[E]|=1024):n[E]&64?s=0:s=1,md(n,o,s)}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;Si(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(Rd,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Si(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Si(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function Ai(e){return Ps(e)}var _s=class{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}},rM=(()=>{let t=class t{compileModuleSync(n){return new gs(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=Il(n),s=Fu(i.declarations).reduce((a,c)=>{let l=We(c);return l&&a.push(new Gt(l)),a},[]);return new _s(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var bv=(()=>{let t=class t{constructor(){this.zone=L(q),this.applicationRef=L(xo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Iv(e){return[{provide:q,useFactory:e},{provide:yn,multi:!0,useFactory:()=>{let t=L(bv,{optional:!0});return()=>t.initialize()}},{provide:yn,multi:!0,useFactory:()=>{let t=L(Tv);return()=>{t.initialize()}}},{provide:bu,useFactory:Cv}]}function Cv(){let e=L(q),t=L(_e);return r=>e.runOutsideAngular(()=>t.handleError(r))}function xv(e){let t=Iv(()=>new q(Mv(e)));return so([[],t])}function Mv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Tv=(()=>{let t=class t{constructor(){this.subscription=new H,this.initialized=!1,this.zone=L(q),this.pendingTasks=L(Eo)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function _v(){return typeof $localize<"u"&&$localize.locale||Yr}var ma=new b("",{providedIn:"root",factory:()=>L(ma,N.Optional|N.SkipSelf)||_v()});var Pd=new b("");var Ar=null;function Sv(e=[],t){return lo.create({name:t,providers:[{provide:ao,useValue:"platform"},{provide:Pd,useValue:new Set([()=>Ar=null])},...e]})}function Av(e=[]){if(Ar)return Ar;let t=Sv(e);return Ar=t,Dv(),Nv(t),t}function Nv(e){e.get(zs,null)?.forEach(r=>r())}function Fd(e){try{let{rootComponent:t,appProviders:r,platformProviders:n}=e,o=Av(n),i=[xv(),...r||[]],a=new Wr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(q);return c.run(()=>{a.resolveInjectorInitializers();let l=a.get(_e,null),u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:h=>{l.handleError(h)}})});let d=()=>a.destroy(),f=o.get(Pd);return f.add(d),a.onDestroy(()=>{u.unsubscribe(),f.delete(d)}),Ev(l,c,()=>{let h=a.get(Od);return h.runInitializers(),h.donePromise.then(()=>{let p=a.get(ma,Yr);nv(p||Yr);let m=a.get(xo);return t!==void 0&&m.bootstrap(t),m})})})}catch(t){return Promise.reject(t)}}function kv(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function oM(e){let t=We(e);if(!t)return null;let r=new Gt(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Vd=null;function Yt(){return Vd}function $d(e){Vd??=e}var To=class{};var ae=new b(""),Bd=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:()=>L(Rv),providedIn:"platform"});let e=t;return e})();var Rv=(()=>{let t=class t extends Bd{constructor(){super(),this._doc=L(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yt().getBaseHref(this._doc)}onPopState(n){let o=Yt().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=Yt().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Ud(e,t){if(e.length==0)return t;if(t.length==0)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,r==2?e+t.substring(1):r==1?e+t:e+"/"+t}function Ld(e){let t=e.match(/#|\?|$/),r=t&&t.index||e.length,n=r-(e[r-1]==="/"?1:0);return e.slice(0,n)+e.slice(r)}function wt(e){return e&&e[0]!=="?"?"?"+e:e}var Da=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:()=>L(Fv),providedIn:"root"});let e=t;return e})(),Pv=new b(""),Fv=(()=>{let t=class t extends Da{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??L(ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ud(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+wt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+wt(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+wt(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(o){return new(o||t)(w(Bd),w(Pv,8))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Lv=(()=>{let t=class t{constructor(n){this._subject=new be,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=$v(Ld(jd(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+wt(o))}normalize(n){return t.stripTrailingSlash(Vv(this._basePath,jd(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+wt(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+wt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};t.normalizeQueryParams=wt,t.joinWithSlash=Ud,t.stripTrailingSlash=Ld,t.\u0275fac=function(o){return new(o||t)(w(Da))},t.\u0275prov=S({token:t,factory:()=>jv(),providedIn:"root"});let e=t;return e})();function jv(){return new Lv(w(Da))}function Vv(e,t){if(!e||!t.startsWith(e))return t;let r=t.substring(e.length);return r===""||["/",";","?","#"].includes(r[0])?r:t}function jd(e){return e.replace(/\/index.html$/,"")}function $v(e){if(new RegExp("^(https?:)?//").test(e)){let[,r]=e.split(/\/\/[^\/]+/);return r}return e}function _o(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}function Bv(e,t){return new M(2100,!1)}var ya=class{createSubscription(t,r){return aa(()=>t.subscribe({next:r,error:n=>{throw n}}))}dispose(t){aa(()=>t.unsubscribe())}},va=class{createSubscription(t,r){return t.then(r,n=>{throw n})}dispose(t){}},Uv=new va,Hv=new ya,Hd=(()=>{let t=class t{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,o=>this._updateLatestValue(n,o))}_selectStrategy(n){if(Co(n))return Uv;if(ga(n))return Hv;throw Bv(t,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,o){n===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};t.\u0275fac=function(o){return new(o||t)(Ne(Do,16))},t.\u0275pipe=As({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var wa="browser",zv="server";function Et(e){return e===wa}function Ea(e){return e===zv}var Qt=class{};var An=class{},Ao=class{},bt=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let o=r.slice(0,n),i=o.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let r=this.headers.get(t.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,r){return this.clone({name:t,value:r,op:"a"})}set(t,r){return this.clone({name:t,value:r,op:"s"})}delete(t,r){return this.clone({name:t,value:r,op:"d"})}maybeSetNormalizedName(t,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(r=>{this.headers.set(r,t.headers.get(r)),this.normalizedNames.set(r,t.normalizedNames.get(r))})}clone(t){let r=new e;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([t]),r}applyUpdate(t){let r=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,r);let o=(t.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=t.value;if(!i)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(t,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>t(this.normalizedNames.get(r),this.headers.get(r)))}};var Ia=class{encodeKey(t){return zd(t)}encodeValue(t){return zd(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Zv(e,t){let r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var Yv=/%(\d[a-f0-9])/gi,Qv={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function zd(e){return encodeURIComponent(e).replace(Yv,(t,r)=>Qv[r]??t)}function So(e){return`${e}`}var Je=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ia,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Zv(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(r=>{let n=t.fromObject[r],o=Array.isArray(n)?n.map(So):[So(n)];this.map.set(r,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let r=this.map.get(t);return r?r[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,r){return this.clone({param:t,value:r,op:"a"})}appendAll(t){let r=[];return Object.keys(t).forEach(n=>{let o=t[n];Array.isArray(o)?o.forEach(i=>{r.push({param:n,value:i,op:"a"})}):r.push({param:n,value:o,op:"a"})}),this.clone(r)}set(t,r){return this.clone({param:t,value:r,op:"s"})}delete(t,r){return this.clone({param:t,value:r,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let r=this.encoder.encodeKey(t);return this.map.get(t).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let r=new e({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(t),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let r=(t.op==="a"?this.map.get(t.param):void 0)||[];r.push(So(t.value)),this.map.set(t.param,r);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],o=n.indexOf(So(t.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Ca=class{constructor(){this.map=new Map}set(t,r){return this.map.set(t,r),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Kv(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Gd(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Wd(e){return typeof Blob<"u"&&e instanceof Blob}function qd(e){return typeof FormData<"u"&&e instanceof FormData}function Xv(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Sn=class e{constructor(t,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(Kv(this.method)||o?(this.body=n!==void 0?n:null,i=o):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new bt,this.context??=new Ca,!this.params)this.params=new Je,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":ad.set(f,t.setHeaders[f]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new e(r,n,i,{params:l,headers:c,context:u,reportProgress:a,responseType:o,withCredentials:s})}},Kt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Kt||{}),Nn=class{constructor(t,r=Oo.Ok,n="OK"){this.headers=t.headers||new bt,this.status=t.status!==void 0?t.status:r,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},xa=class e extends Nn{constructor(t={}){super(t),this.type=Kt.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},No=class e extends Nn{constructor(t={}){super(t),this.type=Kt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},ko=class extends Nn{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Oo=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(Oo||{});function ba(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Ma=(()=>{let t=class t{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Sn)s=n;else{let l;i.headers instanceof bt?l=i.headers:l=new bt(i.headers);let u;i.params&&(i.params instanceof Je?u=i.params:u=new Je({fromObject:i.params})),s=new Sn(n,o,i.body!==void 0?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=Nt(s).pipe(ei(l=>this.handler.handle(l)));if(n instanceof Sn||i.observe==="events")return a;let c=a.pipe(He(l=>l instanceof No));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(G(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(G(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(G(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(G(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Je().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,i={}){return this.request("PATCH",n,ba(i,o))}post(n,o,i={}){return this.request("POST",n,ba(i,o))}put(n,o,i={}){return this.request("PUT",n,ba(i,o))}};t.\u0275fac=function(o){return new(o||t)(w(An))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Jv(e,t){return t(e)}function eD(e,t,r){return(n,o)=>su(r,()=>t(n,i=>e(i,o)))}var Qd=new b(""),tD=new b(""),nD=new b("");var Zd=(()=>{let t=class t extends An{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=L(Eo);let i=L(nD,{optional:!0});this.backend=i??n}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Qd),...this.injector.get(tD,[])]));this.chain=i.reduceRight((s,a)=>eD(s,a,this.injector),Jv)}let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Bn(()=>this.pendingTasks.remove(o)))}};t.\u0275fac=function(o){return new(o||t)(w(Ao),w(Te))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();var rD=/^\)\]\}',?\n/;function oD(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Yd=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new M(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?fe(o.\u0275loadImpl()):Nt(null)).pipe(St(()=>new A(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((y,v)=>a.setRequestHeader(y,v.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let y=n.detectContentTypeHeader();y!==null&&a.setRequestHeader("Content-Type",y)}if(n.responseType){let y=n.responseType.toLowerCase();a.responseType=y!=="json"?y:"text"}let c=n.serializeBody(),l=null,u=()=>{if(l!==null)return l;let y=a.statusText||"OK",v=new bt(a.getAllResponseHeaders()),V=oD(a)||n.url;return l=new xa({headers:v,status:a.status,statusText:y,url:V}),l},d=()=>{let{headers:y,status:v,statusText:V,url:Q}=u(),F=null;v!==Oo.NoContent&&(F=typeof a.response>"u"?a.responseText:a.response),v===0&&(v=F?Oo.Ok:0);let U=v>=200&&v<300;if(n.responseType==="json"&&typeof F=="string"){let de=F;F=F.replace(rD,"");try{F=F!==""?JSON.parse(F):null}catch(et){F=de,U&&(U=!1,F={error:et,text:F})}}U?(s.next(new No({body:F,headers:y,status:v,statusText:V,url:Q||void 0})),s.complete()):s.error(new ko({error:F,headers:y,status:v,statusText:V,url:Q||void 0}))},f=y=>{let{url:v}=u(),V=new ko({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:v||void 0});s.error(V)},h=!1,p=y=>{h||(s.next(u()),h=!0);let v={type:Kt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),n.responseType==="text"&&a.responseText&&(v.partialText=a.responseText),s.next(v)},m=y=>{let v={type:Kt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),s.next(v)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",p),c!==null&&a.upload&&a.upload.addEventListener("progress",m)),a.send(c),s.next({type:Kt.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",p),c!==null&&a.upload&&a.upload.removeEventListener("progress",m)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(o){return new(o||t)(w(Qt))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Kd=new b(""),iD="XSRF-TOKEN",sD=new b("",{providedIn:"root",factory:()=>iD}),aD="X-XSRF-TOKEN",cD=new b("",{providedIn:"root",factory:()=>aD}),Ro=class{},lD=(()=>{let t=class t{constructor(n,o,i){this.doc=n,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=_o(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(o){return new(o||t)(w(ae),w(Se),w(sD))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function uD(e,t){let r=e.url.toLowerCase();if(!L(Kd)||e.method==="GET"||e.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return t(e);let n=L(Ro).getToken(),o=L(cD);return n!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,n)})),t(e)}function HM(...e){let t=[Ma,Yd,Zd,{provide:An,useExisting:Zd},{provide:Ao,useExisting:Yd},{provide:Qd,useValue:uD,multi:!0},{provide:Kd,useValue:!0},{provide:Ro,useClass:lD}];for(let r of e)t.push(...r.\u0275providers);return so(t)}var Sa=class extends To{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Aa=class e extends Sa{static makeCurrent(){$d(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=hD();return r==null?null:pD(r)}resetBaseElement(){kn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return _o(document.cookie,t)}},kn=null;function hD(){return kn=kn||document.querySelector("base"),kn?kn.getAttribute("href"):null}function pD(e){return new URL(e,document.baseURI).pathname}var gD=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Na=new b(""),tf=(()=>{let t=class t{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new M(5101,!1);return this._eventNameToPlugin.set(n,o),o}};t.\u0275fac=function(o){return new(o||t)(w(Na),w(q))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Po=class{constructor(t){this._doc=t}},Ta="ng-app-id",nf=(()=>{let t=class t{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ea(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Ta}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(Ta),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Ta,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(w(ae),w(Hs),w(Gs,8),w(Se))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),_a={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/"},Oa=/%COMP%/g,rf="%COMP%",mD=`_nghost-${rf}`,yD=`_ngcontent-${rf}`,vD=!0,DD=new b("",{providedIn:"root",factory:()=>vD});function wD(e){return yD.replace(Oa,e)}function ED(e){return mD.replace(Oa,e)}function of(e,t){return t.map(r=>r.replace(Oa,e))}var Xd=(()=>{let t=class t{constructor(n,o,i,s,a,c,l,u=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Ea(c),this.defaultRenderer=new On(n,a,l,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===xe.ShadowDom&&(o=Z(C({},o),{encapsulation:xe.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof Fo?i.applyToHost(n):i instanceof Rn&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(o.encapsulation){case xe.Emulated:s=new Fo(l,u,o,this.appId,d,a,c,f);break;case xe.ShadowDom:return new ka(l,u,n,o,a,c,this.nonce,f);default:s=new Rn(l,u,o,d,a,c,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(w(tf),w(nf),w(Hs),w(DD),w(ae),w(Se),w(q),w(Gs))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),On=class{constructor(t,r,n,o){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(_a[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(Jd(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(Jd(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new M(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,o){if(o){r=o+":"+r;let i=_a[o];i?t.setAttributeNS(i,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let o=_a[n];o?t.removeAttributeNS(o,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,o){o&(Le.DashCase|Le.Important)?t.style.setProperty(r,n,o&Le.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&Le.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=Yt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function Jd(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ka=class extends On{constructor(t,r,n,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=of(o.id,o.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Rn=class extends On{constructor(t,r,n,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?of(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Fo=class extends Rn{constructor(t,r,n,o,i,s,a,c){let l=o+"-"+n.id;super(t,r,n,i,s,a,c,l),this.contentAttr=wD(l),this.hostAttr=ED(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},bD=(()=>{let t=class t extends Po{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};t.\u0275fac=function(o){return new(o||t)(w(ae))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),ef=["alt","control","meta","shift"],ID={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CD={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},xD=(()=>{let t=class t extends Po{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),ef.forEach(u=>{let d=o.indexOf(u);d>-1&&(o.splice(d,1),a+=u+".")}),a+=s,o.length!=0||s.length===0)return null;let l={};return l.domEventName=i,l.fullKey=a,l}static matchEventFullKeyCode(n,o){let i=ID[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),ef.forEach(a=>{if(a!==i){let c=CD[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{t.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(o){return new(o||t)(w(ae))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function aT(e,t){return Fd(C({rootComponent:e},MD(t)))}function MD(e){return{appProviders:[...ND,...e?.providers??[]],platformProviders:AD}}function TD(){Aa.makeCurrent()}function _D(){return new _e}function SD(){return Wl(document),document}var AD=[{provide:Se,useValue:wa},{provide:zs,useValue:TD,multi:!0},{provide:ae,useFactory:SD,deps:[]}];var ND=[{provide:ao,useValue:"root"},{provide:_e,useFactory:_D,deps:[]},{provide:Na,useClass:bD,multi:!0,deps:[ae,q,Se]},{provide:Na,useClass:xD,multi:!0,deps:[ae]},Xd,nf,tf,{provide:bn,useExisting:Xd},{provide:Qt,useClass:gD,deps:[]},[]];var cT=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(o){return new(o||t)(w(ae))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ra=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:function(o){let i=null;return o?i=new(o||t):i=w(kD),i},providedIn:"root"});let e=t;return e})(),kD=(()=>{let t=class t extends Ra{constructor(n){super(),this._doc=n}sanitize(n,o){if(o==null)return null;switch(n){case me.NONE:return o;case me.HTML:return Qe(o,"HTML")?Ae(o):Ou(this._doc,String(o)).toString();case me.STYLE:return Qe(o,"Style")?Ae(o):o;case me.SCRIPT:if(Qe(o,"Script"))return Ae(o);throw new M(5200,!1);case me.URL:return Qe(o,"URL")?Ae(o):fo(String(o));case me.RESOURCE_URL:if(Qe(o,"ResourceURL"))return Ae(o);throw new M(5201,!1);default:throw new M(5202,!1)}}bypassSecurityTrustHtml(n){return Cu(n)}bypassSecurityTrustStyle(n){return xu(n)}bypassSecurityTrustScript(n){return Mu(n)}bypassSecurityTrustUrl(n){return Tu(n)}bypassSecurityTrustResourceUrl(n){return _u(n)}};t.\u0275fac=function(o){return new(o||t)(w(ae))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Fa(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ct=Fa();function uf(e){Ct=e}var df=/[&<>"']/,RD=new RegExp(df.source,"g"),ff=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,PD=new RegExp(ff.source,"g"),FD={"&":"&","<":"<",">":">",'"':""","'":"'"},sf=e=>FD[e];function ue(e,t){if(t){if(df.test(e))return e.replace(RD,sf)}else if(ff.test(e))return e.replace(PD,sf);return e}var LD=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function jD(e){return e.replace(LD,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}var VD=/(^|[^\[])\^/g;function P(e,t){e=typeof e=="string"?e:e.source,t=t||"";let r={replace:(n,o)=>(o=typeof o=="object"&&"source"in o?o.source:o,o=o.replace(VD,"$1"),e=e.replace(n,o),r),getRegex:()=>new RegExp(e,t)};return r}function af(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}var jo={exec:()=>null};function cf(e,t){let r=e.replace(/\|/g,(i,s,a)=>{let c=!1,l=s;for(;--l>=0&&a[l]==="\\";)c=!c;return c?"|":" |"}),n=r.split(/ \|/),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length{let i=o.match(/^\s+/);if(i===null)return o;let[s]=i;return s.length>=n.length?o.slice(n.length):o}).join(` +`)}var Jt=class{options;rules;lexer;constructor(t){this.options=t||Ct}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Lo(n,` +`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=BD(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let o=Lo(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Lo(r[0].replace(/^ *>[ \t]?/gm,""),` +`),o=this.lexer.state.top;this.lexer.state.top=!0;let i=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:i,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),o=n.length>1,i={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let s=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),a="",c="",l=!1;for(;t;){let u=!1;if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;a=r[0],t=t.substring(a.length);let d=r[2].split(` +`,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),f=t.split(` +`,1)[0],h=0;this.options.pedantic?(h=2,c=d.trimStart()):(h=r[2].search(/[^ ]/),h=h>4?1:h,c=d.slice(h),h+=r[1].length);let p=!1;if(!d&&/^ *$/.test(f)&&(a+=f+` +`,t=t.substring(f.length+1),u=!0),!u){let v=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),V=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Q=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),F=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;t;){let U=t.split(` +`,1)[0];if(f=U,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Q.test(f)||F.test(f)||v.test(f)||V.test(t))break;if(f.search(/[^ ]/)>=h||!f.trim())c+=` +`+f.slice(h);else{if(p||d.search(/[^ ]/)>=4||Q.test(d)||F.test(d)||V.test(d))break;c+=` +`+f}!p&&!f.trim()&&(p=!0),a+=U+` +`,t=t.substring(U.length+1),d=f.slice(h)}}i.loose||(l?i.loose=!0:/\n *\n *$/.test(a)&&(l=!0));let m=null,y;this.options.gfm&&(m=/^\[[ xX]\] /.exec(c),m&&(y=m[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:a,task:!!m,checked:y,loose:!1,text:c,tokens:[]}),i.raw+=a}i.items[i.items.length-1].raw=a.trimEnd(),i.items[i.items.length-1].text=c.trimEnd(),i.raw=i.raw.trimEnd();for(let u=0;uh.type==="space"),f=d.length>0&&d.some(h=>/\n.*\n/.test(h.raw));i.loose=f}if(i.loose)for(let u=0;u$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:i}}}table(t){let r=this.rules.block.table.exec(t);if(r){if(!/[:|]/.test(r[2]))return;let n={type:"table",raw:r[0],header:cf(r[1]).map(o=>({text:o,tokens:[]})),align:r[2].replace(/^\||\| *$/g,"").split("|"),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(n.header.length===n.align.length){let o=n.align.length,i,s,a,c;for(i=0;i({text:l,tokens:[]}));for(o=n.header.length,s=0;s/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;let s=Lo(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=$D(r[2],"()");if(s>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),lf(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return lf(n,o,n[0],this.lexer)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let s=[...o[0]].length-1,a,c,l=s,u=0,d=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+s);(o=d.exec(r))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(c=[...a].length,o[3]||o[4]){l+=c;continue}else if((o[5]||o[6])&&s%3&&!((s+c)%3)){u+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+u);let f=[...o[0]][0].length,h=t.slice(0,s+o.index+f+c);if(Math.min(s,c)%2){let m=h.slice(1,-1);return{type:"em",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}let p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),o=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return o&&i&&(n=n.substring(1,n.length-1)),n=ue(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,o;return r[2]==="@"?(n=ue(r[1]),o="mailto:"+n):(n=ue(r[1]),o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,o;if(r[2]==="@")n=ue(r[0]),o="mailto:"+n;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(i!==r[0]);n=ue(r[0]),r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=ue(r[0]),{type:"text",raw:r[0],text:n}}}},D={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:jo,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};D._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;D._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;D.def=P(D.def).replace("label",D._label).replace("title",D._title).getRegex();D.bullet=/(?:[*+-]|\d{1,9}[.)])/;D.listItemStart=P(/^( *)(bull) */).replace("bull",D.bullet).getRegex();D.list=P(D.list).replace(/bull/g,D.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+D.def.source+")").getRegex();D._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";D._comment=/|$)/;D.html=P(D.html,"i").replace("comment",D._comment).replace("tag",D._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();D.lheading=P(D.lheading).replace(/bull/g,D.bullet).getRegex();D.paragraph=P(D._paragraph).replace("hr",D.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",D._tag).getRegex();D.blockquote=P(D.blockquote).replace("paragraph",D.paragraph).getRegex();D.normal=C({},D);D.gfm=Z(C({},D.normal),{table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});D.gfm.table=P(D.gfm.table).replace("hr",D.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",D._tag).getRegex();D.gfm.paragraph=P(D._paragraph).replace("hr",D.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",D.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",D._tag).getRegex();D.pedantic=Z(C({},D.normal),{html:P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",D._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:jo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P(D.normal._paragraph).replace("hr",D.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",D.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var g={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:jo,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:jo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";g.punctuation=P(g.punctuation,"u").replace(/punctuation/g,g._punctuation).getRegex();g.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;g.anyPunctuation=/\\[punct]/g;g._escapes=/\\([punct])/g;g._comment=P(D._comment).replace("(?:-->|$)","-->").getRegex();g.emStrong.lDelim=P(g.emStrong.lDelim,"u").replace(/punct/g,g._punctuation).getRegex();g.emStrong.rDelimAst=P(g.emStrong.rDelimAst,"gu").replace(/punct/g,g._punctuation).getRegex();g.emStrong.rDelimUnd=P(g.emStrong.rDelimUnd,"gu").replace(/punct/g,g._punctuation).getRegex();g.anyPunctuation=P(g.anyPunctuation,"gu").replace(/punct/g,g._punctuation).getRegex();g._escapes=P(g._escapes,"gu").replace(/punct/g,g._punctuation).getRegex();g._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;g._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;g.autolink=P(g.autolink).replace("scheme",g._scheme).replace("email",g._email).getRegex();g._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;g.tag=P(g.tag).replace("comment",g._comment).replace("attribute",g._attribute).getRegex();g._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;g._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;g._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;g.link=P(g.link).replace("label",g._label).replace("href",g._href).replace("title",g._title).getRegex();g.reflink=P(g.reflink).replace("label",g._label).replace("ref",D._label).getRegex();g.nolink=P(g.nolink).replace("ref",D._label).getRegex();g.reflinkSearch=P(g.reflinkSearch,"g").replace("reflink",g.reflink).replace("nolink",g.nolink).getRegex();g.normal=C({},g);g.pedantic=Z(C({},g.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",g._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",g._label).getRegex()});g.gfm=Z(C({},g.normal),{escape:P(g.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\c+" ".repeat(l.length));let n,o,i,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=` +`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` +`+n.raw,o.text+=` +`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` +`+n.raw,o.text+=` +`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0,c=t.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},c),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(i=t.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){o=r[r.length-1],s&&o.type==="paragraph"?(o.raw+=` +`+n.raw,o.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),s=i.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=` +`+n.raw,o.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,o,i,s=t,a,c,l;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,s,l)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(h=>{f=h.call({lexer:this},d),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(i=t.substring(0,u+1))}if(n=this.tokenizer.inlineText(i)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(l=n.raw.slice(-1)),c=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return r}},ke=class{options;constructor(t){this.options=t||Ct}code(t,r,n){let o=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+` +`,o?'
'+(n?t:ue(t,!0))+`
+`:"
"+(n?t:ue(t,!0))+`
+`}blockquote(t){return`
+${t}
+`}html(t,r){return t}heading(t,r,n){return`${t} +`}hr(){return`
+`}list(t,r,n){let o=r?"ol":"ul",i=r&&n!==1?' start="'+n+'"':"";return"<"+o+i+`> +`+t+" +`}listitem(t,r,n){return`
  • ${t}
  • +`}checkbox(t){return"'}paragraph(t){return`

    ${t}

    +`}table(t,r){return r&&(r=`${r}`),` + +`+t+` +`+r+`
    +`}tablerow(t){return` +${t} +`}tablecell(t,r){let n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+` +`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return"
    "}del(t){return`${t}`}link(t,r,n){let o=af(t);if(o===null)return n;t=o;let i='",i}image(t,r,n){let o=af(t);if(o===null)return n;t=o;let i=`${n}0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=y+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=y+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:y+" "}):m+=y+" "}m+=this.parse(f.tokens,l),u+=this.renderer.listitem(m,p,!!h)}n+=this.renderer.list(u,a,c);continue}case"html":{let s=i;n+=this.renderer.html(s.text,s.block);continue}case"paragraph":{let s=i;n+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=i,a=s.tokens?this.parseInline(s.tokens):s.text;for(;o+1{n=n.concat(this.walkTokens(i[s],r))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let o=C({},n);if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=r.renderers[i.name];s?r.renderers[i.name]=function(...a){let c=i.renderer.apply(this,a);return c===!1&&(c=s.apply(this,a)),c}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[i.level];s?s.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),o.extensions=r),n.renderer){let i=this.defaults.renderer||new ke(this.defaults);for(let s in n.renderer){let a=n.renderer[s],c=s,l=i[c];i[c]=(...u)=>{let d=a.apply(i,u);return d===!1&&(d=l.apply(i,u)),d||""}}o.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Jt(this.defaults);for(let s in n.tokenizer){let a=n.tokenizer[s],c=s,l=i[c];i[c]=(...u)=>{let d=a.apply(i,u);return d===!1&&(d=l.apply(i,u)),d}}o.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Xt;for(let s in n.hooks){let a=n.hooks[s],c=s,l=i[c];Xt.passThroughHooks.has(s)?i[c]=u=>{if(this.defaults.async)return Promise.resolve(a.call(i,u)).then(f=>l.call(i,f));let d=a.call(i,u);return l.call(i,d)}:i[c]=(...u)=>{let d=a.apply(i,u);return d===!1&&(d=l.apply(i,u)),d}}o.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;o.walkTokens=function(a){let c=[];return c.push(s.call(this,a)),i&&(c=c.concat(i.call(this,a))),c}}this.defaults=C(C({},this.defaults),o)}),this}setOptions(t){return this.defaults=C(C({},this.defaults),t),this}lexer(t,r){return Be.lex(t,r??this.defaults)}parser(t,r){return Ue.parse(t,r??this.defaults)}#e(t,r){return(n,o)=>{let i=C({},o),s=C(C({},this.defaults),i);this.defaults.async===!0&&i.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);let a=this.#t(!!s.silent,!!s.async);if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(c=>t(c,s)).then(c=>s.walkTokens?Promise.all(this.walkTokens(c,s.walkTokens)).then(()=>c):c).then(c=>r(c,s)).then(c=>s.hooks?s.hooks.postprocess(c):c).catch(a);try{s.hooks&&(n=s.hooks.preprocess(n));let c=t(n,s);s.walkTokens&&this.walkTokens(c,s.walkTokens);let l=r(c,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(c){return a(c)}}}#t(t,r){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,t){let o="

    An error occurred:

    "+ue(n.message+"",!0)+"
    ";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},It=new Pa;function O(e,t){return It.parse(e,t)}O.options=O.setOptions=function(e){return It.setOptions(e),O.defaults=It.defaults,uf(O.defaults),O};O.getDefaults=Fa;O.defaults=Ct;O.use=function(...e){return It.use(...e),O.defaults=It.defaults,uf(O.defaults),O};O.walkTokens=function(e,t){return It.walkTokens(e,t)};O.parseInline=It.parseInline;O.Parser=Ue;O.parser=Ue.parse;O.Renderer=ke;O.TextRenderer=Pn;O.Lexer=Be;O.lexer=Be.lex;O.Tokenizer=Jt;O.Hooks=Xt;O.parse=O;var uT=O.options,dT=O.setOptions,fT=O.use,hT=O.walkTokens,pT=O.parseInline;var gT=Ue.parse,mT=Be.lex;var UD=["*"],HD="Copy",zD="Copied",GD=(()=>{let t=class t{constructor(){this._buttonClick$=new ne,this.copied$=this._buttonClick$.pipe(St(()=>Xo(Nt(!0),Ko(3e3).pipe(ni(!1)))),ri(),ai(1)),this.copiedText$=this.copied$.pipe(ci(!1),G(n=>n?zD:HD))}onCopyToClipboardClick(){this._buttonClick$.next()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=Ss({type:t,selectors:[["markdown-clipboard"]],standalone:!0,features:[fa],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(o,i){o&1&&(bo(0,"button",0),ua("click",function(){return i.onCopyToClipboardClick()}),ha(1,"async"),_d(2),ha(3,"async"),Io()),o&2&&(la("copied",pa(1,3,i.copied$)),qu(2),da(pa(3,5,i.copiedText$)))},dependencies:[Hd],encapsulation:2,changeDetection:0});let e=t;return e})(),WD=new b("CLIPBOARD_OPTIONS");var La=function(e){return e.CommandLine="command-line",e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}(La||{}),pf=new b("MARKED_EXTENSIONS"),qD=new b("MARKED_OPTIONS"),ZD="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information",YD="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",QD="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",KD="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",XD="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",JD="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information",gf=new b("SECURITY_CONTEXT");var mf=(()=>{let t=class t{get options(){return this._options}set options(n){this._options=C(C({},this.DEFAULT_MARKED_OPTIONS),n)}get renderer(){return this.options.renderer}set renderer(n){this.options.renderer=n}constructor(n,o,i,s,a,c,l){this.clipboardOptions=n,this.extensions=o,this.platform=s,this.securityContext=a,this.http=c,this.sanitizer=l,this.DEFAULT_MARKED_OPTIONS={renderer:new ke},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new ne,this.reload$=this._reload$.asObservable(),this.options=i}parse(n,o=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:i,inline:s,emoji:a,mermaid:c,disableSanitizer:l}=o,u=C(C({},this.options),o.markedOptions),d=u.renderer||this.renderer||new ke;this.extensions&&(this.renderer=this.extendsRendererForExtensions(d)),c&&(this.renderer=this.extendsRendererForMermaid(d));let f=this.trimIndentation(n),h=i?this.decodeHtml(f):f,p=a?this.parseEmoji(h):h,m=this.parseMarked(p,u,s);return(l?m:this.sanitizer.sanitize(this.securityContext,m))||""}render(n,o=this.DEFAULT_RENDER_OPTIONS,i){let{clipboard:s,clipboardOptions:a,katex:c,katexOptions:l,mermaid:u,mermaidOptions:d}=o;s&&this.renderClipboard(n,i,C(C(C({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),a)),c&&this.renderKatex(n,C(C({},this.DEFAULT_KATEX_OPTIONS),l)),u&&this.renderMermaid(n,C(C({},this.DEFAULT_MERMAID_OPTIONS),d)),this.highlight(n)}reload(){this._reload$.next()}getSource(n){if(!this.http)throw new Error(JD);return this.http.get(n,{responseType:"text"}).pipe(G(o=>this.handleExtension(n,o)))}highlight(n){if(!Et(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;n||(n=document);let o=n.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(o,i=>i.classList.add("language-none")),Prism.highlightAllUnder(n)}decodeHtml(n){if(!Et(this.platform))return n;let o=document.createElement("textarea");return o.innerHTML=n,o.value}extendsRendererForExtensions(n){let o=n;return o.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions?.length>0&&O.use(...this.extensions),o.\u0275NgxMarkdownRendererExtendedForExtensions=!0),n}extendsRendererForMermaid(n){let o=n;if(o.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return n;let i=n.code;return n.code=function(s,a,c){return a==="mermaid"?`
    ${s}
    `:i.call(this,s,a,c)},o.\u0275NgxMarkdownRendererExtendedForMermaid=!0,n}handleExtension(n,o){let i=n.lastIndexOf("://"),s=i>-1?n.substring(i+4):n,a=s.lastIndexOf("/"),c=a>-1?s.substring(a+1).split("?")[0]:"",l=c.lastIndexOf("."),u=l>-1?c.substring(l+1):"";return u&&u!=="md"?"```"+u+` +`+o+"\n```":o}parseMarked(n,o,i=!1){return o.renderer&&(O.use({renderer:o.renderer}),delete o.renderer),i?O.parseInline(n,o):O.parse(n,o)}parseEmoji(n){if(!Et(this.platform))return n;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(ZD);return joypixels.shortnameToUnicode(n)}renderKatex(n,o){if(Et(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(YD);renderMathInElement(n,o)}}renderClipboard(n,o,i){if(!Et(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(KD);if(!o)throw new Error(XD);let{buttonComponent:s,buttonTemplate:a}=i,c=n.querySelectorAll("pre");for(let l=0;lf.style.opacity="1",u.onmouseout=()=>f.style.opacity="0";let h;s?h=o.createComponent(s).hostView:a?h=o.createEmbeddedView(a):h=o.createComponent(GD).hostView;let p;h.rootNodes.forEach(m=>{m.onmouseover=()=>f.style.opacity="1",f.appendChild(m),p=new ClipboardJS(m,{text:()=>u.innerText})}),h.onDestroy(()=>p.destroy())}}renderMermaid(n,o=this.DEFAULT_MERMAID_OPTIONS){if(!Et(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(QD);let i=n.querySelectorAll(".mermaid");i.length!==0&&(mermaid.initialize(o),mermaid.run({nodes:i}))}trimIndentation(n){if(!n)return"";let o;return n.split(` +`).map(i=>{let s=o;return i.length>0&&(s=isNaN(s)?i.search(/\S|$/):Math.min(i.search(/\S|$/),s)),isNaN(o)&&(o=s),s?i.substring(s):i}).join(` +`)}};t.\u0275fac=function(o){return new(o||t)(w(WD,8),w(pf,8),w(qD,8),w(Se),w(gf),w(Ma,8),w(Ra))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),OT=(()=>{let t=class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(n){this._disableSanitizer=this.coerceBooleanProperty(n)}get inline(){return this._inline}set inline(n){this._inline=this.coerceBooleanProperty(n)}get clipboard(){return this._clipboard}set clipboard(n){this._clipboard=this.coerceBooleanProperty(n)}get emoji(){return this._emoji}set emoji(n){this._emoji=this.coerceBooleanProperty(n)}get katex(){return this._katex}set katex(n){this._katex=this.coerceBooleanProperty(n)}get mermaid(){return this._mermaid}set mermaid(n){this._mermaid=this.coerceBooleanProperty(n)}get lineHighlight(){return this._lineHighlight}set lineHighlight(n){this._lineHighlight=this.coerceBooleanProperty(n)}get lineNumbers(){return this._lineNumbers}set lineNumbers(n){this._lineNumbers=this.coerceBooleanProperty(n)}get commandLine(){return this._commandLine}set commandLine(n){this._commandLine=this.coerceBooleanProperty(n)}constructor(n,o,i){this.element=n,this.markdownService=o,this.viewContainerRef=i,this.error=new be,this.load=new be,this.ready=new be,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new ne}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(li(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(n,o=!1){return Fn(this,null,function*(){let i={decodeHtml:o,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},s={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=yield this.markdownService.parse(n,i);this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(n){return n!=null&&`${String(n)}`!="false"}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:n=>{this.render(n).then(()=>{this.load.emit(n)})},error:n=>this.error.emit(n)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,La.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,La.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(n,o){let i=n.querySelectorAll("pre");for(let s=0;s{let c=o[a];if(c){let l=this.toLispCase(a);i.item(s).setAttribute(l,c.toString())}})}toLispCase(n){let o=n.match(/([A-Z])/g);if(!o)return n;let i=n.toString();for(let s=0,a=o.length;s{let o;try{o=t()}catch(s){K(()=>i.error(s));return}K(()=>i.next(o))},{injector:n,manualCleanup:!0});return n.get(O).onDestroy(()=>{r.destroy(),i.complete()}),i.asObservable()}function ie(t,e){let n=!e?.manualCleanup;n&&!e?.injector&&Z(ie);let i=n?e?.injector?.get(O)??l(O):null,r;e?.requireSync?r=_({kind:0}):r=_({kind:1,value:e?.initialValue});let o=t.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{if(e?.rejectErrors)throw s;r.set({kind:2,error:s})}});return i?.onDestroy(o.unsubscribe.bind(o)),S(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new R(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}var ze=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(a(X),a(W))},e.\u0275dir=y({type:e});let t=e;return t})(),dt=(()=>{let e=class e extends ze{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Ve(e)))(o||e)}})(),e.\u0275dir=y({type:e,features:[V]});let t=e;return t})(),Ze=new v("");var ct={provide:Ze,useExisting:z(()=>H),multi:!0};function ht(){let t=ee()?ee().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ft=new v(""),H=(()=>{let e=class e extends ze{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ht())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(a(X),a(W),a(ft,8))},e.\u0275dir=y({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&x("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},features:[Q([ct]),V]});let t=e;return t})();var pt=new v(""),gt=new v("");function Ye(t){return t!=null}function Xe(t){return xe(t)?de(t):t}function Ke(t){let e={};return t.forEach(n=>{e=n!=null?f(f({},e),n):e}),Object.keys(e).length===0?null:e}function Je(t,e){return e.map(n=>n(t))}function mt(t){return!t.validate}function Qe(t){return t.map(e=>mt(e)?e:n=>e.validate(n))}function yt(t){if(!t)return null;let e=t.filter(Ye);return e.length==0?null:function(n){return Ke(Je(n,e))}}function et(t){return t!=null?yt(Qe(t)):null}function vt(t){if(!t)return null;let e=t.filter(Ye);return e.length==0?null:function(n){let i=Je(n,e).map(Xe);return he(i).pipe(E(Ke))}}function tt(t){return t!=null?vt(Qe(t)):null}function He(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function _t(t){return t._rawValidators}function Ct(t){return t._rawAsyncValidators}function ne(t){return t?Array.isArray(t)?t:[t]:[]}function j(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ue(t,e){let n=ne(e);return ne(t).forEach(r=>{j(n,r)||n.push(r)}),n}function Re(t,e){return ne(e).filter(n=>!j(t,n))}var G=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=et(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},re=class extends G{get formDirective(){return null}get path(){return null}},A=class extends G{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},oe=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Vt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},ci=g(f({},Vt),{"[class.ng-submitted]":"isSubmitted"}),it=(()=>{let e=class e extends oe{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(a(A,2))},e.\u0275dir=y({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ae("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[V]});let t=e;return t})();var b="VALID",T="INVALID",C="PENDING",M="DISABLED";function Dt(t){return(U(t)?t.validators:t)||null}function bt(t){return Array.isArray(t)?et(t):t||null}function Mt(t,e){return(U(e)?e.asyncValidators:t)||null}function At(t){return Array.isArray(t)?tt(t):t||null}function U(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var se=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===b}get invalid(){return this.status===T}get pending(){return this.status==C}get disabled(){return this.status===M}get enabled(){return this.status!==M}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ue(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ue(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Re(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Re(e,this._rawAsyncValidators))}hasValidator(e){return j(this._rawValidators,e)}hasAsyncValidator(e){return j(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=C,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=M,this.errors=null,this._forEachChild(i=>{i.disable(g(f({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(g(f({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=b,this._forEachChild(i=>{i.enable(g(f({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(g(f({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===b||this.status===C)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?M:b}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=C,this._hasOwnPendingAsyncValidator=!0;let n=Xe(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new w,this.statusChanges=new w}_calculateStatus(){return this._allControlsDisabled()?M:this.errors?T:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(C)?C:this._anyControlsHaveStatus(T)?T:b}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){U(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=bt(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=At(this._rawAsyncValidators)}};var nt=new v("CallSetDisabledState",{providedIn:"root",factory:()=>ae}),ae="always";function Et(t,e){return[...e.path,t]}function Ft(t,e,n=ae){It(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),St(t,e),Nt(t,e),Ot(t,e),wt(t,e)}function Le(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function wt(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function It(t,e){let n=_t(t);e.validator!==null?t.setValidators(He(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=Ct(t);e.asyncValidator!==null?t.setAsyncValidators(He(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();Le(e._rawValidators,r),Le(e._rawAsyncValidators,r)}function St(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&rt(t,e)})}function Ot(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&rt(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function rt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Nt(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function xt(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function Pt(t){return Object.getPrototypeOf(t.constructor)===dt}function kt(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(o=>{o.constructor===H?n=o:Pt(o)?i=o:r=o}),r||i||n||null}function We(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function $e(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Tt=class extends se{constructor(e=null,n,i){super(Dt(n),Mt(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U(n)&&(n.nonNullable||n.initialValueIsDefault)&&($e(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){We(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){We(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){$e(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var jt={provide:A,useExisting:z(()=>le)},qe=Promise.resolve(),le=(()=>{let e=class e extends A{constructor(i,r,o,s,c,ut){super(),this._changeDetectorRef=c,this.callSetDisabledState=ut,this.control=new Tt,this._registered=!1,this.name="",this.update=new w,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=kt(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let r=i.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),xt(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ft(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){qe.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let r=i.isDisabled.currentValue,o=r!==0&&Pe(r);qe.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?Et(i,this._parent):[i]}};e.\u0275fac=function(r){return new(r||e)(a(re,9),a(pt,10),a(gt,10),a(Ze,10),a(De,8),a(nt,8))},e.\u0275dir=y({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[m.None,"disabled","isDisabled"],model:[m.None,"ngModel","model"],options:[m.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Q([jt]),V,Ce]});let t=e;return t})();var Gt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=L({type:e}),e.\u0275inj=q({});let t=e;return t})();var ot=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:nt,useValue:i.callSetDisabledState??ae}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=L({type:e}),e.\u0275inj=q({imports:[Gt]});let t=e;return t})();var st=(()=>{let e=class e{transform(i){return i.replace(/(?:\r\n|\r|\n)/g,"
    ")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=_e({name:"lineBreak",type:e,pure:!0,standalone:!0});let t=e;return t})();function Ht(t,e){if(t&1&&(h(0,"li")(1,"p"),p(2),d(),N(3,"markdown",0),d()),t&2){let n=e.$implicit,i=J(2);u(2),P(n.prompt),u(),D("data",i.lineBreakPipe.transform(n.response))}}function Ut(t,e){if(t&1&&(h(0,"ol"),we(1,Ht,4,2,"li",null,Fe),d()),t&2){let n=J();u(),Ie(n.chatHistory())}}function Rt(t,e){t&1&&(h(0,"p"),p(1,"No history"),d())}var at=(()=>{let e=class e{constructor(){this.chatHistory=ve.required(),this.lineBreakPipe=new st}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["app-chat-history"]],inputs:{chatHistory:[m.SignalBased,"chatHistory"]},standalone:!0,features:[k],decls:4,vars:1,consts:[[3,"data"]],template:function(r,o){r&1&&(h(0,"h3"),p(1,"Chat History"),d(),Me(2,Ut,3,0,"ol")(3,Rt,2,0)),r&2&&(u(2),Ee(2,o.chatHistory().length>0?2:3))},dependencies:[Te],styles:["p[_ngcontent-%COMP%]{font-size:1.25rem}ol[_ngcontent-%COMP%]{margin:1rem}"],changeDetection:0});let t=e;return t})();var lt=(()=>{let e=class e{constructor(){this.geminiProUrl=l(je),this.generationConfig=l(Ge),this.safetySetting=l(Be),this.httpClient=l(ke)}generateText(i){return this.httpClient.post(this.geminiProUrl,{contents:[{role:"user",parts:[{text:i}]}],generation_config:this.generationConfig,safetySettings:this.safetySetting},{headers:{"Content-Type":"application/json"}}).pipe(F(r=>console.log(r)),E(r=>r.candidates?.[0].content?.parts?.[0].text||"No response"),pe(r=>(console.error(r),ce("Error occurs"))))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ki=(()=>{let e=class e{constructor(){this.geminiService=l(lt),this.prompt=_(""),this.loading=_(!1),this.text="",this.buttonText=S(()=>this.loading()?"Processing":"Ask me anything"),this.chatHistory=ie(te(this.prompt).pipe(fe(i=>i!==""),F(()=>this.loading.set(!0)),ye(i=>this.geminiService.generateText(i).pipe(ge(()=>this.loading.set(!1)))),me((i,r)=>i.concat({prompt:this.prompt(),response:r}),[])),{initialValue:[]})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["app-generate-text"]],standalone:!0,features:[k],decls:7,vars:4,consts:[["rows","8",3,"ngModel","ngModelChange"],[3,"disabled","click"],[3,"chatHistory"]],template:function(r,o){r&1&&(h(0,"h3"),p(1,"Input a prompt to receive an answer from Google Gemini AI"),d(),h(2,"div")(3,"textarea",0),Ne("ngModelChange",function(c){return Oe(o.text,c)||(o.text=c),c}),d(),h(4,"button",1),x("click",function(){return o.prompt.set(o.text)}),p(5),d()(),N(6,"app-chat-history",2)),r&2&&(u(3),Se("ngModel",o.text),u(),D("disabled",o.loading()),u(),P(o.buttonText()),u(),D("chatHistory",o.chatHistory()))},dependencies:[ot,H,it,le,at],styles:["textarea[_ngcontent-%COMP%]{margin-right:.5rem;width:49%;font-size:1rem;padding:.75rem;border-radius:4px}button[_ngcontent-%COMP%]{padding:.65rem;border-radius:8px}"],changeDetection:0});let t=e;return t})();export{ki as GenerateTextComponent}; diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/docs/favicon.ico differ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..4cc2fae --- /dev/null +++ b/docs/index.html @@ -0,0 +1,14 @@ + + + + + NgAiGoogleDemo + + + + + + + + diff --git a/docs/main-S3MVTAXR.js b/docs/main-S3MVTAXR.js new file mode 100644 index 0000000..54b3642 --- /dev/null +++ b/docs/main-S3MVTAXR.js @@ -0,0 +1 @@ +import{$ as kt,$a as Ht,A as pr,B as $t,C as _,D as pe,E as gr,F as vr,G as mr,Ga as J,H as U,Ha as tt,I as Cr,Ia as mt,J as y,Ja as Nr,K as w,L as vt,La as Ct,Ma as Pr,N as ge,O as jt,P as Z,R as ve,Ra as et,Sa as Lr,T as Rr,Ta as _r,U as A,Ua as $r,Va as jr,W as yr,Wa as ye,X as x,Xa as Gt,Ya as kr,Z as Sr,_ as d,_a as Se,a as h,aa as zt,b as I,ba as H,bb as zr,c as cr,cb as Fr,d as lr,da as me,db as Bt,e as le,ea as Ce,f as he,fa as wr,fb as Gr,g as L,ga as Ar,gb as Vt,h as E,ha as Ir,hb as Hr,ia as br,ib as Br,j as G,ja as X,jb as Vr,k as D,ka as Er,kb as qr,l as f,m as pt,n as hr,o as dr,oa as Re,p as C,q as _t,r as M,ra as Ft,s as fr,sa as Mr,t as de,ua as Tr,v as Y,va as Or,w as K,wa as Dr,x as gt,xa as Ur,y as fe,z as Q,za as xr}from"./chunk-3QDFGBSR.js";var p="primary",Nt=Symbol("RouteTitle"),Ee=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function ot(e){return new Ee(e)}function zn(e,t,i){let r=i.path.split("/");if(r.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||r.lengthr[s]===n)}else return e===t}function en(e){return e.length>0?e[e.length-1]:null}function z(e){return hr(e)?e:_r(e)?D(Promise.resolve(e)):f(e)}var Gn={exact:nn,subset:sn},rn={exact:Hn,subset:Bn,ignored:()=>!0};function Wr(e,t,i){return Gn[i.paths](e.root,t.root,i.matrixParams)&&rn[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function Hn(e,t){return N(e,t)}function nn(e,t,i){if(!V(e.segments,t.segments)||!Yt(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!nn(e.children[r],t.children[r],i))return!1;return!0}function Bn(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>tn(e[i],t[i]))}function sn(e,t,i){return on(e,t,t.segments,i)}function on(e,t,i,r){if(e.segments.length>i.length){let n=e.segments.slice(0,i.length);return!(!V(n,i)||t.hasChildren()||!Yt(n,i,r))}else if(e.segments.length===i.length){if(!V(e.segments,i)||!Yt(e.segments,i,r))return!1;for(let n in t.children)if(!e.children[n]||!sn(e.children[n],t.children[n],r))return!1;return!0}else{let n=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!V(e.segments,n)||!Yt(e.segments,n,r)||!e.children[p]?!1:on(e.children[p],t,s,r)}}function Yt(e,t,i){return t.every((r,n)=>rn[i](e[n].parameters,r.parameters))}var $=class{constructor(t=new m([],{}),i={},r=null){this.root=t,this.queryParams=i,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ot(this.queryParams),this._queryParamMap}toString(){return Wn.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Kt(this)}},B=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??=ot(this.parameters),this._parameterMap}toString(){return un(this)}};function Vn(e,t){return V(e,t)&&e.every((i,r)=>N(i.parameters,t[r].parameters))}function V(e,t){return e.length!==t.length?!1:e.every((i,r)=>i.path===t[r].path)}function qn(e,t){let i=[];return Object.entries(e.children).forEach(([r,n])=>{r===p&&(i=i.concat(t(n,r)))}),Object.entries(e.children).forEach(([r,n])=>{r!==p&&(i=i.concat(t(n,r)))}),i}var Je=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:()=>new Zt,providedIn:"root"});let e=t;return e})(),Zt=class{parse(t){let i=new Oe(t);return new $(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${Rt(t.root,!0)}`,r=Qn(t.queryParams),n=typeof t.fragment=="string"?`#${Yn(t.fragment)}`:"";return`${i}${r}${n}`}},Wn=new Zt;function Kt(e){return e.segments.map(t=>un(t)).join("/")}function Rt(e,t){if(!e.hasChildren())return Kt(e);if(t){let i=e.children[p]?Rt(e.children[p],!1):"",r=[];return Object.entries(e.children).forEach(([n,s])=>{n!==p&&r.push(`${n}:${Rt(s,!1)}`)}),r.length>0?`${i}(${r.join("//")})`:i}else{let i=qn(e,(r,n)=>n===p?[Rt(e.children[p],!1)]:[`${n}:${Rt(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${Kt(e)}/${i[0]}`:`${Kt(e)}/(${i.join("//")})`}}function an(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qt(e){return an(e).replace(/%3B/gi,";")}function Yn(e){return encodeURI(e)}function Te(e){return an(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qt(e){return decodeURIComponent(e)}function Yr(e){return Qt(e.replace(/\+/g,"%20"))}function un(e){return`${Te(e.path)}${Kn(e.parameters)}`}function Kn(e){return Object.entries(e).map(([t,i])=>`;${Te(t)}=${Te(i)}`).join("")}function Qn(e){let t=Object.entries(e).map(([i,r])=>Array.isArray(r)?r.map(n=>`${qt(i)}=${qt(n)}`).join("&"):`${qt(i)}=${qt(r)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var Zn=/^[^\/()?;#]+/;function we(e){let t=e.match(Zn);return t?t[0]:""}var Xn=/^[^\/()?;=#]+/;function Jn(e){let t=e.match(Xn);return t?t[0]:""}var ti=/^[^=?&#]+/;function ei(e){let t=e.match(ti);return t?t[0]:""}var ri=/^[^&#]+/;function ni(e){let t=e.match(ri);return t?t[0]:""}var Oe=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(r[p]=new m(t,i)),r}parseSegment(){let t=we(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new B(Qt(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=Jn(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let n=we(this.remaining);n&&(r=n,this.capture(r))}t[Qt(i)]=Qt(r)}parseQueryParam(t){let i=ei(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let o=ni(this.remaining);o&&(r=o,this.capture(r))}let n=Yr(i),s=Yr(r);if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=we(this.remaining),n=this.remaining[r.length];if(n!=="/"&&n!==")"&&n!==";")throw new w(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=p);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[p]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}};function cn(e){return e.segments.length>0?new m([],{[p]:e}):e}function ln(e){let t={};for(let[r,n]of Object.entries(e.children)){let s=ln(n);if(r===p&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[r]=s)}let i=new m(e.segments,t);return ii(i)}function ii(e){if(e.numberOfChildren===1&&e.children[p]){let t=e.children[p];return new m(e.segments.concat(t.segments),t.children)}return e}function at(e){return e instanceof $}function si(e,t,i=null,r=null){let n=hn(e);return dn(n,t,i,r)}function hn(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let r=i(e.root),n=cn(r);return t??n}function dn(e,t,i,r){let n=e;for(;n.parent;)n=n.parent;if(t.length===0)return Ae(n,n,n,i,r);let s=oi(t);if(s.toRoot())return Ae(n,n,new m([],{}),i,r);let o=ai(s,n,e),a=o.processChildren?wt(o.segmentGroup,o.index,s.commands):pn(o.segmentGroup,o.index,s.commands);return Ae(n,o.segmentGroup,a,i,r)}function Xt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function bt(e){return typeof e=="object"&&e!=null&&e.outlets}function Ae(e,t,i,r,n){let s={};r&&Object.entries(r).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;e===t?o=i:o=fn(e,t,i);let a=cn(ln(o));return new $(a,s,n)}function fn(e,t,i){let r={};return Object.entries(e.children).forEach(([n,s])=>{s===t?r[n]=i:r[n]=fn(s,t,i)}),new m(e.segments,r)}var Jt=class{constructor(t,i,r){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=r,t&&r.length>0&&Xt(r[0]))throw new w(4003,!1);let n=r.find(bt);if(n&&n!==en(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Jt(!0,0,e);let t=0,i=!1,r=e.reduce((n,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!="string"?[...n,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&n.push(a))}),n):[...n,s]},[]);return new Jt(i,t,r)}var it=class{constructor(t,i,r){this.segmentGroup=t,this.processChildren=i,this.index=r}};function ai(e,t,i){if(e.isAbsolute)return new it(t,!0,0);if(!i)return new it(t,!1,NaN);if(i.parent===null)return new it(i,!0,0);let r=Xt(e.commands[0])?0:1,n=i.segments.length-1+r;return ui(i,n,e.numberOfDoubleDots)}function ui(e,t,i){let r=e,n=t,s=i;for(;s>n;){if(s-=n,r=r.parent,!r)throw new w(4005,!1);n=r.segments.length}return new it(r,!1,n-s)}function ci(e){return bt(e[0])?e[0].outlets:{[p]:e}}function pn(e,t,i){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return wt(e,t,i);let r=li(e,t,i),n=i.slice(r.commandIndex);if(r.match&&r.pathIndexs!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let s=wt(e.children[p],t,i);return new m(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(n[s]=pn(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(n[s]=o)}),new m(e.segments,n)}}function li(e,t,i){let r=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n=i.length)return s;let o=e.segments[n],a=i[r];if(bt(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Qr(c,u,o))return s;r+=2}else{if(!Qr(c,{},o))return s;r++}n++}return{match:!0,pathIndex:n,commandIndex:r}}function De(e,t,i){let r=e.segments.slice(0,t),n=0;for(;n{typeof r=="string"&&(r=[r]),r!==null&&(t[i]=De(new m([],{}),0,r))}),t}function Kr(e){let t={};return Object.entries(e).forEach(([i,r])=>t[i]=`${r}`),t}function Qr(e,t,i){return e==i.path&&N(t,i.parameters)}var At="imperative",S=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(S||{}),O=class{constructor(t,i){this.id=t,this.url=i}},Et=class extends O{constructor(t,i,r="imperative",n=null){super(t,i),this.type=S.NavigationStart,this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},j=class extends O{constructor(t,i,r){super(t,i),this.urlAfterRedirects=r,this.type=S.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(T||{}),Ue=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Ue||{}),k=class extends O{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=S.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},q=class extends O{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=S.NavigationSkipped}},Mt=class extends O{constructor(t,i,r,n){super(t,i),this.error=r,this.target=n,this.type=S.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},te=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xe=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ne=class extends O{constructor(t,i,r,n,s){super(t,i),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=S.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pe=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Le=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_e=class{constructor(t){this.route=t,this.type=S.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},$e=class{constructor(t){this.route=t,this.type=S.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},je=class{constructor(t){this.snapshot=t,this.type=S.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ke=class{constructor(t){this.snapshot=t,this.type=S.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ze=class{constructor(t){this.snapshot=t,this.type=S.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fe=class{constructor(t){this.snapshot=t,this.type=S.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Tt=class{},Ot=class{constructor(t){this.url=t}};var Ge=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new oe,this.attachRef=null}},oe=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,n){let s=this.getOrCreateContext(r);s.outlet=n,this.contexts.set(r,s)}onChildOutletDestroyed(r){let n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new Ge,this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ee=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=He(t,this._root);return i?i.children.map(r=>r.value):[]}firstChild(t){let i=He(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=Be(t,this._root);return i.length<2?[]:i[i.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return Be(t,this._root).map(i=>i.value)}};function He(e,t){if(e===t.value)return t;for(let i of t.children){let r=He(e,i);if(r)return r}return null}function Be(e,t){if(e===t.value)return[t];for(let i of t.children){let r=Be(e,i);if(r.length)return r.unshift(t),r}return[]}var b=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function nt(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var re=class extends ee{constructor(t,i){super(t),this.snapshot=i,er(this,t)}toString(){return this.snapshot.toString()}};function gn(e){let t=di(e),i=new E([new B("",{})]),r=new E({}),n=new E({}),s=new E({}),o=new E(""),a=new W(i,r,s,o,n,p,e,t.root);return a.snapshot=t.root,new re(new b(a,[]),t)}function di(e){let t={},i={},r={},n="",s=new Dt([],t,r,n,i,p,e,null,{});return new ne("",new b(s,[]))}var W=class{constructor(t,i,r,n,s,o,a,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=r,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[Nt]))??f(void 0),this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(C(t=>ot(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(t=>ot(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function tr(e,t,i="emptyOnly"){let r,{routeConfig:n}=e;return t!==null&&(i==="always"||n?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),n?.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},n&&mn(n)&&(r.resolve[Nt]=n.title),r}var Dt=class{get title(){return this.data?.[Nt]}constructor(t,i,r,n,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ot(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ot(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},ne=class extends ee{constructor(t,i){super(i),this.url=t,er(this,i)}toString(){return vn(this._root)}};function er(e,t){t.value._routerState=e,t.children.forEach(i=>er(e,i))}function vn(e){let t=e.children.length>0?` { ${e.children.map(vn).join(", ")} } `:"";return`${e.value}${t}`}function Ie(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,N(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),N(t.params,i.params)||e.paramsSubject.next(i.params),Fn(t.url,i.url)||e.urlSubject.next(i.url),N(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ve(e,t){let i=N(e.params,t.params)&&Vn(e.url,t.url),r=!e.parent!=!t.parent;return i&&!r&&(!e.parent||Ve(e.parent,t.parent))}function mn(e){return typeof e.title=="string"||e.title===null}var rr=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=p,this.activateEvents=new vt,this.deactivateEvents=new vt,this.attachEvents=new vt,this.detachEvents=new vt,this.parentContexts=d(oe),this.location=d(Mr),this.changeDetector=d(Re),this.environmentInjector=d(zt),this.inputBinder=d(ae,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:n,previousValue:s}=r.name;if(n)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,n){this.activated=r,this._activatedRoute=n,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=r;let s=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new qe(r,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ve({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[me]});let e=t;return e})(),qe=class{constructor(t,i,r){this.route=t,this.childContexts=i,this.parent=r}get(t,i){return t===W?this.route:t===oe?this.childContexts:this.parent.get(t,i)}},ae=new x(""),Zr=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){this.outletDataSubscriptions.get(r)?.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){let{activatedRoute:n}=r,s=_t([n.queryParams,n.params,n.data]).pipe(U(([o,a,c],u)=>(c=h(h(h({},o),a),c),u===0?f(c):Promise.resolve(c)))).subscribe(o=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(r);return}let a=kr(n.component);if(!a){this.unsubscribeFromRouteData(r);return}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(r,s)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})();function fi(e,t,i){let r=Ut(e,t._root,i?i._root:void 0);return new re(r,t)}function Ut(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let r=i.value;r._futureSnapshot=t.value;let n=pi(e,t,i);return new b(r,n)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Ut(e,a)),o}}let r=gi(t.value),n=t.children.map(s=>Ut(e,s));return new b(r,n)}}function pi(e,t,i){return t.children.map(r=>{for(let n of i.children)if(e.shouldReuseRoute(r.value,n.value.snapshot))return Ut(e,r,n);return Ut(e,r)})}function gi(e){return new W(new E(e.url),new E(e.params),new E(e.queryParams),new E(e.fragment),new E(e.data),e.outlet,e.component,e)}var Cn="ngNavigationCancelingError";function Rn(e,t){let{redirectTo:i,navigationBehaviorOptions:r}=at(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=yn(!1,T.Redirect);return n.url=i,n.navigationBehaviorOptions=r,n}function yn(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[Cn]=!0,i.cancellationCode=t,i}function vi(e){return Sn(e)&&at(e.url)}function Sn(e){return!!e&&e[Cn]}var mi=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Z({type:t,selectors:[["ng-component"]],standalone:!0,features:[et],decls:1,vars:0,template:function(n,s){n&1&&mt(0,"router-outlet")},dependencies:[rr],encapsulation:2});let e=t;return e})();function Ci(e,t){return e.providers&&!e._injector&&(e._injector=Dr(e.providers,t,`Route: ${e.path}`)),e._injector??t}function nr(e){let t=e.children&&e.children.map(nr),i=t?I(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==p&&(i.component=mi),i}function P(e){return e.outlet||p}function Ri(e,t){let i=e.filter(r=>P(r)===t);return i.push(...e.filter(r=>P(r)!==t)),i}function Pt(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var yi=(e,t,i,r)=>C(n=>(new We(t,n.targetRouterState,n.currentRouterState,i,r).activate(e),n)),We=class{constructor(t,i,r,n,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=r,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,r,t),Ie(this.futureState.root),this.activateChildRoutes(i,r,t)}deactivateChildRoutes(t,i,r){let n=nt(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],r),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(n===s)if(n.component){let o=r.getContext(n.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,r);else s&&this.deactivateRouteAndItsChildren(i,r)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=nt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=nt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,i,r){let n=nt(i);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],r),this.forwardEvent(new Fe(s.value.snapshot))}),t.children.length&&this.forwardEvent(new ke(t.value.snapshot))}activateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(Ie(n),n===s)if(n.component){let o=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,r);else if(n.component){let o=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Ie(a.route.value),this.activateChildRoutes(t,null,o.children)}else{let a=Pt(n.snapshot);o.attachRef=null,o.route=n,o.injector=a,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,r)}},ie=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},st=class{constructor(t,i){this.component=t,this.route=i}};function Si(e,t,i){let r=e._root,n=t?t._root:null;return yt(r,n,i,[r.value])}function wi(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function ct(e,t){let i=Symbol(),r=t.get(e,i);return r===i?typeof e=="function"&&!yr(e)?e:t.get(e):r}function yt(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=nt(t);return e.children.forEach(o=>{Ai(o,s[o.value.outlet],i,r.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>It(a,i.getContext(o),n)),n}function Ai(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=Ii(o,s,s.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new ie(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?yt(e,t,a?a.children:null,r,n):yt(e,t,i,r,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new st(a.outlet.component,o))}else o&&It(t,a,n),n.canActivateChecks.push(new ie(r)),s.component?yt(e,null,a?a.children:null,r,n):yt(e,null,i,r,n);return n}function Ii(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!V(e.url,t.url);case"pathParamsOrQueryParamsChange":return!V(e.url,t.url)||!N(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ve(e,t)||!N(e.queryParams,t.queryParams);case"paramsChange":default:return!Ve(e,t)}}function It(e,t,i){let r=nt(e),n=e.value;Object.entries(r).forEach(([s,o])=>{n.component?t?It(o,t.children.getContext(s),i):It(o,null,i):It(o,t,i)}),n.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new st(t.outlet.component,n)):i.canDeactivateChecks.push(new st(null,n)):i.canDeactivateChecks.push(new st(null,n))}function Lt(e){return typeof e=="function"}function bi(e){return typeof e=="boolean"}function Ei(e){return e&&Lt(e.canLoad)}function Mi(e){return e&&Lt(e.canActivate)}function Ti(e){return e&&Lt(e.canActivateChild)}function Oi(e){return e&&Lt(e.canDeactivate)}function Di(e){return e&&Lt(e.canMatch)}function wn(e){return e instanceof dr||e?.name==="EmptyError"}var Wt=Symbol("INITIAL_VALUE");function ut(){return U(e=>_t(e.map(t=>t.pipe(Q(1),mr(Wt)))).pipe(C(t=>{for(let i of t)if(i!==!0){if(i===Wt)return Wt;if(i===!1||i instanceof $)return i}return!0}),Y(t=>t!==Wt),Q(1)))}function Ui(e,t){return M(i=>{let{targetSnapshot:r,currentSnapshot:n,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?f(I(h({},i),{guardsResult:!0})):xi(o,r,n,e).pipe(M(a=>a&&bi(a)?Ni(r,s,e,t):f(a)),C(a=>I(h({},i),{guardsResult:a})))})}function xi(e,t,i,r){return D(e).pipe(M(n=>ji(n.component,n.route,i,t,r)),_(n=>n!==!0,!0))}function Ni(e,t,i,r){return D(t).pipe(gt(n=>fr(Li(n.route.parent,r),Pi(n.route,r),$i(e,n.path,i),_i(e,n.route,i))),_(n=>n!==!0,!0))}function Pi(e,t){return e!==null&&t&&t(new ze(e)),f(!0)}function Li(e,t){return e!==null&&t&&t(new je(e)),f(!0)}function _i(e,t,i){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let n=r.map(s=>de(()=>{let o=Pt(t)??i,a=ct(s,o),c=Mi(a)?a.canActivate(t,e):H(o,()=>a(t,e));return z(c).pipe(_())}));return f(n).pipe(ut())}function $i(e,t,i){let r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>wi(o)).filter(o=>o!==null).map(o=>de(()=>{let a=o.guards.map(c=>{let u=Pt(o.node)??i,l=ct(c,u),v=Ti(l)?l.canActivateChild(r,e):H(u,()=>l(r,e));return z(v).pipe(_())});return f(a).pipe(ut())}));return f(s).pipe(ut())}function ji(e,t,i,r,n){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(a=>{let c=Pt(t)??n,u=ct(a,c),l=Oi(u)?u.canDeactivate(e,t,i,r):H(c,()=>u(e,t,i,r));return z(l).pipe(_())});return f(o).pipe(ut())}function ki(e,t,i,r){let n=t.canLoad;if(n===void 0||n.length===0)return f(!0);let s=n.map(o=>{let a=ct(o,e),c=Ei(a)?a.canLoad(t,i):H(e,()=>a(t,i));return z(c)});return f(s).pipe(ut(),An(r))}function An(e){return lr(y(t=>{if(at(t))throw Rn(e,t)}),C(t=>t===!0))}function zi(e,t,i,r){let n=t.canMatch;if(!n||n.length===0)return f(!0);let s=n.map(o=>{let a=ct(o,e),c=Di(a)?a.canMatch(t,i):H(e,()=>a(t,i));return z(c)});return f(s).pipe(ut(),An(r))}var xt=class{constructor(t){this.segmentGroup=t||null}},se=class extends Error{constructor(t){super(),this.urlTree=t}};function rt(e){return pt(new xt(e))}function Fi(e){return pt(new w(4e3,!1))}function Gi(e){return pt(yn(!1,T.GuardRejected))}var Ye=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let r=[],n=i.root;for(;;){if(r=r.concat(n.segments),n.numberOfChildren===0)return f(r);if(n.numberOfChildren>1||!n.children[p])return Fi(t.redirectTo);n=n.children[p]}}applyRedirectCommands(t,i,r){let n=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,r);if(i.startsWith("/"))throw new se(n);return n}applyRedirectCreateUrlTree(t,i,r,n){let s=this.createSegmentGroup(t,i.root,r,n);return new $(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let r={};return Object.entries(t).forEach(([n,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);r[n]=i[a]}else r[n]=s}),r}createSegmentGroup(t,i,r,n){let s=this.createSegments(t,i.segments,r,n),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,r,n)}),new m(s,o)}createSegments(t,i,r,n){return i.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,n):this.findOrReturn(s,r))}findPosParam(t,i,r){let n=r[i.path.substring(1)];if(!n)throw new w(4001,!1);return n}findOrReturn(t,i){let r=0;for(let n of i){if(n.path===t.path)return i.splice(r),n;r++}return t}},Ke={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hi(e,t,i,r,n){let s=ir(e,t,i);return s.matched?(r=Ci(t,r),zi(r,t,i,n).pipe(C(o=>o===!0?s:h({},Ke)))):f(s)}function ir(e,t,i){if(t.path==="**")return Bi(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},Ke):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let n=(t.matcher||zn)(i,e,t);if(!n)return h({},Ke);let s={};Object.entries(n.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=n.consumed.length>0?h(h({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:i.slice(n.consumed.length),parameters:o,positionalParamSegments:n.posParams??{}}}function Bi(e){return{matched:!0,parameters:e.length>0?en(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Xr(e,t,i,r){return i.length>0&&Wi(e,i,r)?{segmentGroup:new m(t,qi(r,new m(i,e.children))),slicedSegments:[]}:i.length===0&&Yi(e,i,r)?{segmentGroup:new m(e.segments,Vi(e,i,r,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function Vi(e,t,i,r){let n={};for(let s of i)if(ue(e,t,s)&&!r[P(s)]){let o=new m([],{});n[P(s)]=o}return h(h({},r),n)}function qi(e,t){let i={};i[p]=t;for(let r of e)if(r.path===""&&P(r)!==p){let n=new m([],{});i[P(r)]=n}return i}function Wi(e,t,i){return i.some(r=>ue(e,t,r)&&P(r)!==p)}function Yi(e,t,i){return i.some(r=>ue(e,t,r))}function ue(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function Ki(e,t,i,r){return P(e)!==r&&(r===p||!ue(t,i,e))?!1:ir(t,e,i).matched}function Qi(e,t,i){return t.length===0&&!e.children[i]}var Qe=class{};function Zi(e,t,i,r,n,s,o="emptyOnly"){return new Ze(e,t,i,r,n,o,s).recognize()}var Xi=31,Ze=class{constructor(t,i,r,n,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=r,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Ye(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=Xr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(C(i=>{let r=new Dt([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},p,this.rootComponentType,null,{}),n=new b(r,i),s=new ne("",n),o=si(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,p).pipe(K(r=>{if(r instanceof se)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof xt?this.noMatchError(r):r}))}inheritParamsAndData(t,i){let r=t.value,n=tr(r,i,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(s=>this.inheritParamsAndData(s,r))}processSegmentGroup(t,i,r,n){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,i,r):this.processSegment(t,i,r,r.segments,n,!0).pipe(C(s=>s instanceof b?[s]:[]))}processChildren(t,i,r){let n=[];for(let s of Object.keys(r.children))s==="primary"?n.unshift(s):n.push(s);return D(n).pipe(gt(s=>{let o=r.children[s],a=Ri(i,s);return this.processSegmentGroup(t,a,o,s)}),vr((s,o)=>(s.push(...o),s)),fe(null),gr(),M(s=>{if(s===null)return rt(r);let o=In(s);return Ji(o),f(o)}))}processSegment(t,i,r,n,s,o){return D(i).pipe(gt(a=>this.processSegmentAgainstRoute(a._injector??t,i,a,r,n,s,o).pipe(K(c=>{if(c instanceof xt)return f(null);throw c}))),_(a=>!!a),K(a=>{if(wn(a))return Qi(r,n,s)?f(new Qe):rt(r);throw a}))}processSegmentAgainstRoute(t,i,r,n,s,o,a){return Ki(r,n,s,o)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,n,r,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,r,s,o):rt(n):rt(n)}expandSegmentAgainstRouteUsingRedirect(t,i,r,n,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=ir(i,n,s);if(!a)return rt(i);n.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Xi&&(this.allowRedirects=!1));let v=this.applyRedirects.applyRedirectCommands(c,n.redirectTo,u);return this.applyRedirects.lineralizeSegments(n,v).pipe(M(g=>this.processSegment(t,r,i,g.concat(l),o,!1)))}matchSegmentAgainstRoute(t,i,r,n,s){let o=Hi(i,r,n,t,this.urlSerializer);return r.path==="**"&&(i.children={}),o.pipe(U(a=>a.matched?(t=r._injector??t,this.getChildConfig(t,r,n).pipe(U(({routes:c})=>{let u=r._loadedInjector??t,{consumedSegments:l,remainingSegments:v,parameters:g}=a,R=new Dt(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,es(r),P(r),r.component??r._loadedComponent??null,r,rs(r)),{segmentGroup:dt,slicedSegments:ft}=Xr(i,l,v,c);if(ft.length===0&&dt.hasChildren())return this.processChildren(u,c,dt).pipe(C(F=>F===null?null:new b(R,F)));if(c.length===0&&ft.length===0)return f(new b(R,[]));let ce=P(r)===s;return this.processSegment(u,c,dt,ft,ce?p:s,!0).pipe(C(F=>new b(R,F instanceof b?[F]:[])))}))):rt(i)))}getChildConfig(t,i,r){return i.children?f({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):ki(t,i,r,this.urlSerializer).pipe(M(n=>n?this.configLoader.loadChildren(t,i).pipe(y(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Gi(i))):f({routes:[],injector:t})}};function Ji(e){e.sort((t,i)=>t.value.outlet===p?-1:i.value.outlet===p?1:t.value.outlet.localeCompare(i.value.outlet))}function ts(e){let t=e.value.routeConfig;return t&&t.path===""}function In(e){let t=[],i=new Set;for(let r of e){if(!ts(r)){t.push(r);continue}let n=t.find(s=>r.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...r.children),i.add(n)):t.push(r)}for(let r of i){let n=In(r.children);t.push(new b(r.value,n))}return t.filter(r=>!i.has(r))}function es(e){return e.data||{}}function rs(e){return e.resolve||{}}function ns(e,t,i,r,n,s){return M(o=>Zi(e,t,i,r,o.extractedUrl,n,s).pipe(C(({state:a,tree:c})=>I(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function is(e,t){return M(i=>{let{targetSnapshot:r,guards:{canActivateChecks:n}}=i;if(!n.length)return f(i);let s=new Set(n.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of bn(c))o.add(u);let a=0;return D(o).pipe(gt(c=>s.has(c)?ss(c,r,e,t):(c.data=tr(c,c.parent,e).resolve,f(void 0))),y(()=>a++),pe(1),M(c=>a===o.size?f(i):G))})}function bn(e){let t=e.children.map(i=>bn(i)).flat();return[e,...t]}function ss(e,t,i,r){let n=e.routeConfig,s=e._resolve;return n?.title!==void 0&&!mn(n)&&(s[Nt]=n.title),os(s,e,t,r).pipe(C(o=>(e._resolvedData=o,e.data=tr(e,e.parent,i).resolve,null)))}function os(e,t,i,r){let n=Me(e);if(n.length===0)return f({});let s={};return D(n).pipe(M(o=>as(e[o],t,i,r).pipe(_(),y(a=>{s[o]=a}))),pe(1),pr(s),K(o=>wn(o)?G:pt(o)))}function as(e,t,i,r){let n=Pt(t)??r,s=ct(e,n),o=s.resolve?s.resolve(t,i):H(n,()=>s(t,i));return z(o)}function be(e){return U(t=>{let i=e(t);return i?D(i).pipe(C(()=>t)):f(t)})}var En=(()=>{let t=class t{buildTitle(r){let n,s=r.root;for(;s!==void 0;)n=this.getResolvedTitleForRoute(s)??n,s=s.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(r){return r.data[Nt]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:()=>d(us),providedIn:"root"});let e=t;return e})(),us=(()=>{let t=class t extends En{constructor(r){super(),this.title=r}updateTitle(r){let n=this.buildTitle(r);n!==void 0&&this.title.setTitle(n)}};t.\u0275fac=function(n){return new(n||t)(Sr(Bt))},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),sr=new x("",{providedIn:"root",factory:()=>({})}),or=new x(""),cs=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=d(ye)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return f(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let n=z(r.loadComponent()).pipe(C(Mn),y(o=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=o}),$t(()=>{this.componentLoaders.delete(r)})),s=new he(n,()=>new L).pipe(le());return this.componentLoaders.set(r,s),s}loadChildren(r,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=ls(n,this.compiler,r,this.onLoadEndListener).pipe($t(()=>{this.childrenLoaders.delete(n)})),a=new he(o,()=>new L).pipe(le());return this.childrenLoaders.set(n,a),a}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ls(e,t,i,r){return z(e.loadChildren()).pipe(C(Mn),M(n=>n instanceof Or||Array.isArray(n)?f(n):D(t.compileModuleAsync(n))),C(n=>{r&&r(e);let s,o,a=!1;return Array.isArray(n)?(o=n,a=!0):(s=n.create(i).injector,o=s.get(or,[],{optional:!0,self:!0}).flat()),{routes:o.map(nr),injector:s}}))}function hs(e){return e&&typeof e=="object"&&"default"in e}function Mn(e){return hs(e)?e.default:e}var ar=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:()=>d(ds),providedIn:"root"});let e=t;return e})(),ds=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),fs=new x("");var ps=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new L,this.transitionAbortSubject=new L,this.configLoader=d(cs),this.environmentInjector=d(zt),this.urlSerializer=d(Je),this.rootContexts=d(oe),this.location=d(Ht),this.inputBindingEnabled=d(ae,{optional:!0})!==null,this.titleStrategy=d(En),this.options=d(sr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=d(ar),this.createViewTransition=d(fs,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let r=s=>this.events.next(new _e(s)),n=s=>this.events.next(new $e(s));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let n=++this.navigationId;this.transitions?.next(I(h(h({},this.transitions.value),r),{id:n}))}setupNavigations(r,n,s){return this.transitions=new E({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:At,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Y(o=>o.id!==0),C(o=>I(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),U(o=>{this.currentTransition=o;let a=!1,c=!1;return f(o).pipe(y(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?I(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),U(u=>{let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&v!=="reload"){let g="";return this.events.next(new q(u.id,this.urlSerializer.serialize(u.rawUrl),g,Ue.IgnoredSameUrlNavigation)),u.resolve(null),G}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return f(u).pipe(U(g=>{let R=this.transitions?.getValue();return this.events.next(new Et(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),R!==this.transitions?.getValue()?G:Promise.resolve(g)}),ns(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),y(g=>{o.targetSnapshot=g.targetSnapshot,o.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=I(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let R=new te(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(R)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:g,extractedUrl:R,source:dt,restoredState:ft,extras:ce}=u,F=new Et(g,this.urlSerializer.serialize(R),dt,ft);this.events.next(F);let kn=gn(this.rootComponentType).snapshot;return this.currentTransition=o=I(h({},u),{targetSnapshot:kn,urlAfterRedirects:R,extras:I(h({},ce),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=R,f(o)}else{let g="";return this.events.next(new q(u.id,this.urlSerializer.serialize(u.extractedUrl),g,Ue.IgnoredByUrlHandlingStrategy)),u.resolve(null),G}}),y(u=>{let l=new xe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=o=I(h({},u),{guards:Si(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),Ui(this.environmentInjector,u=>this.events.next(u)),y(u=>{if(o.guardsResult=u.guardsResult,at(u.guardsResult))throw Rn(this.urlSerializer,u.guardsResult);let l=new Ne(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Y(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",T.GuardRejected),!1)),be(u=>{if(u.guards.canActivateChecks.length)return f(u).pipe(y(l=>{let v=new Pe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(v)}),U(l=>{let v=!1;return f(l).pipe(is(this.paramsInheritanceStrategy,this.environmentInjector),y({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(l,"",T.NoDataFromResolver)}}))}),y(l=>{let v=new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(v)}))}),be(u=>{let l=v=>{let g=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(v.routeConfig).pipe(y(R=>{v.component=R}),C(()=>{})));for(let R of v.children)g.push(...l(R));return g};return _t(l(u.targetSnapshot.root)).pipe(fe(null),Q(1))}),be(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,v=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return v?D(v).pipe(C(()=>o)):f(o)}),C(u=>{let l=fi(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=I(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),y(()=>{this.events.next(new Tt)}),yi(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Q(1),y({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new j(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Cr(this.transitionAbortSubject.pipe(y(u=>{throw u}))),$t(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",T.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),K(u=>{if(c=!0,Sn(u))this.events.next(new k(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),vi(u)?this.events.next(new Ot(u.url)):o.resolve(!1);else{this.events.next(new Mt(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(r.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return G}))}))}cancelNavigationTransition(r,n,s){let o=new k(r.id,this.urlSerializer.serialize(r.extractedUrl),n,s);this.events.next(o),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function gs(e){return e!==At}var vs=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:()=>d(ms),providedIn:"root"});let e=t;return e})(),Xe=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},ms=(()=>{let t=class t extends Xe{};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=Ce(t)))(s||t)}})(),t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Tn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:()=>d(Cs),providedIn:"root"});let e=t;return e})(),Cs=(()=>{let t=class t extends Tn{constructor(){super(...arguments),this.location=d(Ht),this.urlSerializer=d(Je),this.options=d(sr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=d(ar),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new $,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=gn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(n=>{n.type==="popstate"&&r(n.url,n.state)})}handleRouterEvent(r,n){if(r instanceof Et)this.stateMemento=this.createStateMemento();else if(r instanceof q)this.rawUrlTree=n.initialUrl;else if(r instanceof te){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(s,n)}}else r instanceof Tt?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n))):r instanceof k&&(r.code===T.GuardRejected||r.code===T.NoDataFromResolver)?this.restoreHistory(n):r instanceof Mt?this.restoreHistory(n,!0):r instanceof j&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,n){let s=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl){let o=this.browserPageId,a=h(h({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(r,n=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===r.finalUrl&&o===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,n){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:n}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=Ce(t)))(s||t)}})(),t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),St=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(St||{});function Rs(e,t){e.events.pipe(Y(i=>i instanceof j||i instanceof k||i instanceof Mt||i instanceof q),C(i=>i instanceof j||i instanceof q?St.COMPLETE:(i instanceof k?i.code===T.Redirect||i.code===T.SupersededByNewNavigation:!1)?St.REDIRECTING:St.FAILED),Y(i=>i!==St.REDIRECTING),Q(1)).subscribe(()=>{t()})}function ys(e){throw e}var Ss={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ws={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ur=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=d(Lr),this.stateManager=d(Tn),this.options=d(sr,{optional:!0})||{},this.pendingTasks=d(Ur),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=d(ps),this.urlSerializer=d(Je),this.location=d(Ht),this.urlHandlingStrategy=d(ar),this._events=new L,this.errorHandler=this.options.errorHandler||ys,this.navigated=!1,this.routeReuseStrategy=d(vs),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=d(or,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!d(ae,{optional:!0}),this.eventsSubscription=new cr,this.isNgZoneEnabled=d(Ft)instanceof Ft&&Ft.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(n=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof k&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof j)this.navigated=!0;else if(n instanceof Ot){let a=this.urlHandlingStrategy.merge(n.url,s.currentRawUrl),c={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||gs(s.source)};this.scheduleNavigation(a,At,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Is(n)&&this._events.next(n)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),At,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",n)},0)})}navigateToSyncWithBrowser(r,n,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(nr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,n={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=n,l=u?this.currentUrlTree.fragment:a,v=null;switch(c){case"merge":v=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}v!==null&&(v=this.removeEmptyProps(v));let g;try{let R=s?s.snapshot:this.routerState.snapshot.root;g=hn(R)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),g=this.currentUrlTree.root}return dn(g,r,v,l??null)}navigateByUrl(r,n={skipLocationChange:!1}){let s=at(r)?r:this.parseUrl(r),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,At,null,n)}navigate(r,n={skipLocationChange:!1}){return As(r),this.navigateByUrl(this.createUrlTree(r,n),n)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,n){let s;if(n===!0?s=h({},Ss):n===!1?s=h({},ws):s=n,at(r))return Wr(this.currentUrlTree,r,s);let o=this.parseUrl(r);return Wr(this.currentUrlTree,o,s)}removeEmptyProps(r){return Object.entries(r).reduce((n,[s,o])=>(o!=null&&(n[s]=o),n),{})}scheduleNavigation(r,n,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((g,R)=>{c=g,u=R});let v=this.pendingTasks.add();return Rs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function As(e){for(let t=0;t{let t=class t{constructor(r,n,s,o,a,c){this.router=r,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new L,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(l=>{l instanceof j&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r!=null?(this.commands=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(r,n,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||n||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let r=this.urlTree;this.href=r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r)):null;let n=this.href===null?null:Ir(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(r,n){let s=this.renderer,o=this.el.nativeElement;n!==null?s.setAttribute(o,r,n):s.removeAttribute(o,r)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(n){return new(n||t)(X(ur),X(W),wr("tabindex"),X(Er),X(Rr),X(Se))},t.\u0275dir=ve({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,s){n&1&&Nr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&xr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[jt.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Gt],skipLocationChange:[jt.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Gt],replaceUrl:[jt.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Gt],routerLink:"routerLink"},standalone:!0,features:[Tr,me]});let e=t;return e})();var bs=new x("");function Dn(e,...t){return kt([{provide:or,multi:!0,useValue:e},[],{provide:W,useFactory:Es,deps:[ur]},{provide:$r,multi:!0,useFactory:Ts},t.map(i=>i.\u0275providers)])}function Es(e){return e.routerState.root}function Ms(e,t){return{\u0275kind:e,\u0275providers:t}}function Ts(){let e=d(Ar);return t=>{let i=e.get(jr);if(t!==i.components[0])return;let r=e.get(ur),n=e.get(Os);e.get(Ds)===1&&r.initialNavigation(),e.get(Us,null,ge.Optional)?.setUpPreloading(),e.get(bs,null,ge.Optional)?.init(),r.resetRootComponentType(i.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Os=new x("",{factory:()=>new L}),Ds=new x("",{providedIn:"root",factory:()=>1});var Us=new x("");function Un(){return Ms(8,[Zr,{provide:ae,useExisting:Zr}])}var xn={apiKey:"AIzaSyAT6OGQu9MMyIktmRpA8qHMUf4iemkwxeI"};var Nn=new x("CORE_GUARD");var lt=function(e){return e.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",e.HARM_CATEGORY_DEROGATORY="HARM_CATEGORY_DEROGATORY",e.HARM_CATEGORY_TOXICITY="HARM_CATEGORY_TOXICITY",e.HARM_CATEGORY_VIOLENCE="HARM_CATEGORY_VIOLENCE",e.HARM_CATEGORY_SEXUAL="HARM_CATEGORY_SEXUAL",e.HARM_CATEGORY_MEDICAL="HARM_CATEGORY_MEDICAL",e.HARM_CATEGORY_DANGEROUS="HARM_CATEGORY_DANGEROUS",e.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",e.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",e.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",e.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",e}(lt||{});var ht=function(e){return e.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",e.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",e.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",e.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",e.BLOCK_NONE="BLOCK_NONE",e}(ht||{});function Pn(){let e="https://generativelanguage.googleapis.com/v1beta/models";return kt([{provide:Vt,useValue:xn.apiKey},{provide:Vr,useValue:{maxOutputTokens:1024,temperature:.5,topP:.5,topK:3}},{provide:qr,useValue:[{category:lt.HARM_CATEGORY_HATE_SPEECH,threshold:ht.BLOCK_MEDIUM_AND_ABOVE},{category:lt.HARM_CATEGORY_DANGEROUS_CONTENT,threshold:ht.BLOCK_MEDIUM_AND_ABOVE},{category:lt.HARM_CATEGORY_SEXUALLY_EXPLICIT,threshold:ht.BLOCK_MEDIUM_AND_ABOVE},{category:lt.HARM_CATEGORY_HARASSMENT,threshold:ht.BLOCK_MEDIUM_AND_ABOVE}]},{provide:Hr,useFactory:()=>{if(d(Nn,{self:!0,optional:!0}))throw new TypeError("provideGeminiApi cannot load more than once");let i=d(Vt);return`${e}/gemini-pro:generateContent?key=${i}`}},{provide:Br,useFactory:()=>{let t=d(Vt);return`${e}/gemini-pro:gemini-pro-vision?key=${t}`}}])}var Ns=[{path:"",pathMatch:"full",loadComponent:()=>import("./chunk-H6WDOLER.js").then(e=>e.GenerateTextComponent)},{path:"**",redirectTo:""}],Ln={providers:[zr(),Dn(Ns,Un()),Pn(),Gr()]};var _n=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Z({type:t,selectors:[["app-app-menu"]],standalone:!0,features:[et],decls:7,vars:0,consts:[[1,"menu-container"],[1,"menu"],["routerLink","/"]],template:function(n,s){n&1&&(J(0,"div",0)(1,"ul",1)(2,"li")(3,"a",2),Ct(4,"Generate Text from Text Input"),tt()(),J(5,"li"),Ct(6,"Generate Text from Text and Image Inputs (WIP)"),tt()()())},dependencies:[On],styles:["div.menu-container[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:1rem;margin-bottom:1rem;border:1px solid back;background:gold}.menu[_ngcontent-%COMP%]{display:flex}.menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin-right:.5rem;list-style-type:none}"],changeDetection:0});let e=t;return e})();function $n(){d(Bt).setTitle("Ng Gemini API Demo")}var jn=(()=>{let t=class t{constructor(){this.title="Gemini AI Generate Text Demo",$n()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Z({type:t,selectors:[["app-root"]],standalone:!0,features:[et],decls:5,vars:1,template:function(n,s){n&1&&(J(0,"div"),mt(1,"app-app-menu"),J(2,"h2"),Ct(3),tt(),mt(4,"router-outlet"),tt()),n&2&&(br(3),Pr(s.title))},dependencies:[rr,_n],styles:["div[_ngcontent-%COMP%]{padding:1rem}h2[_ngcontent-%COMP%]{margin-bottom:.5rem}"],changeDetection:0});let e=t;return e})();Fr(jn,Ln).catch(e=>console.error(e)); diff --git a/docs/polyfills-RT5I6R6G.js b/docs/polyfills-RT5I6R6G.js new file mode 100644 index 0000000..96a6393 --- /dev/null +++ b/docs/polyfills-RT5I6R6G.js @@ -0,0 +1,2 @@ +(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let se=class se{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=se.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ne}static __load_patch(t,s,o=!1){if(oe.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),oe[t]=s(e,se,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=ne;ne=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(f){if(this._zoneDelegate.handleError(this,f))throw f}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,ne=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new m(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new m(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new m(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let f={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,f)}}}class m{constructor(t,s,o,v,F,f){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=f,!o)throw new Error("callback is not defined");this.callback=o;let u=this;t===K&&v&&v.useG?this.invoke=m.invokeTask:this.invoke=function(){return m.invokeTask.call(e,u,this,arguments)}}static invokeTask(t,s,o){t||(t=this),ee++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{ee==1&&E(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}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}}}let I=l("setTimeout"),O=l("Promise"),Z=l("then"),B=[],j=!1,J;function q(L){if(J||e[O]&&(J=e[O].resolve(0)),J){let t=J[Z];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){ee===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!j){for(j=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("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},U={parent:null,zone:new _(null,null)},ne=null,ee=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var pe=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,Me=Object.getPrototypeOf,ct=Object.create,at=Array.prototype.slice,Le="addEventListener",je="removeEventListener",De=Zone.__symbol__(Le),Oe=Zone.__symbol__(je),ce="true",ae="false",ge=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function He(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var A=Zone.__symbol__,we=typeof window<"u",Te=we?window:void 0,Y=we&&Te||globalThis,lt="removeAttribute";function xe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function ut(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,xe(arguments,c+"."+a))};return le(b,_),b})(l)}}}function $e(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",Ge=!Re&&!Je&&!!(we&&Te.HTMLElement),Ke=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!Je&&!!(we&&Te.HTMLElement),Pe={},qe=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=A("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(Ge&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function Xe(e,n,c){let r=pe(e,n);if(!r&&c&&pe(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=A("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=Pe[_];b||(b=Pe[_]=A("ON_PROPERTY"+_)),r.set=function(k){let m=this;if(!m&&e===Y&&(m=Y),!m)return;typeof m[b]=="function"&&m.removeEventListener(_,qe),y&&y.call(m,null),m[b]=k,typeof k=="function"&&m.addEventListener(_,qe,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let m=k[b];if(m)return m;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[lt]=="function"&&k.removeAttribute(n),I}return null},Ie(e,n,r),e[a]=!0}function Qe(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?He(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function le(e,n){e[A("OriginalDelegate")]=n}var ze=!1,Ze=!1;function ht(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function dt(){if(ze)return Ze;ze=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(f){if(f&&f.toString===Object.prototype.toString){let u=f.constructor&&f.constructor.name;return(u||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),m=y("then"),I="__creationTrace__";c.onUnhandledError=f=>{if(c.showUncaughtError()){let u=f&&f.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(f)}},c.microtaskDrainDone=()=>{for(;_.length;){let f=_.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(u){Z(u)}}};let O=y("unhandledPromiseRejectionHandler");function Z(f){c.onUnhandledError(f);try{let u=n[O];typeof u=="function"&&u.call(this,f)}catch{}}function B(f){return f&&f.then}function j(f){return f}function J(f){return t.reject(f)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(f,u){return i=>{try{z(f,u,i)}catch(h){z(f,!1,h)}}}let P=function(){let f=!1;return function(i){return function(){f||(f=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",oe=y("currentTaskTrace");function z(f,u,i){let h=P();if(f===i)throw new TypeError(K);if(f[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(w){return h(()=>{z(f,!1,w)})(),f}if(u!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)ne(i),z(f,i[q],i[R]);else if(u!==x&&typeof g=="function")try{g.call(i,h(N(f,u)),h(N(f,!1)))}catch(w){h(()=>{z(f,!1,w)})()}else{f[q]=u;let w=f[R];if(f[R]=i,f[E]===E&&u===T&&(f[q]=f[H],f[R]=f[$]),u===x&&i instanceof Error){let p=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];p&&a(i,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=f[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=u.run(p,void 0,S&&p!==J&&p!==j?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",se=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(u){return u instanceof t?u:z(new this(null),T,u)}static reject(u){return z(new this(null),x,u)}static withResolvers(){let u={};return u.promise=new t((i,h)=>{u.resolve=i,u.reject=h}),u}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let p of u)h++,i.push(t.resolve(p))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,w=[];return new t((p,C)=>{for(let S=0;S{g||(g=!0,p(D))},D=>{w.push(D),h--,h===0&&(g=!0,C(new L(w,"All promises were rejected")))})})}static race(u){let i,h,g=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function p(C){h(C)}for(let C of u)B(C)||(C=this.resolve(C)),C.then(w,p);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(u,i){let h,g,w=new this((D,G)=>{h=D,g=G}),p=2,C=0,S=[];for(let D of u){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,p--,p===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),p--,p===0&&h(S)):g(V)})}catch(V){g(V)}p++,C++}return p-=2,p===0&&h(S),w}constructor(u){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();u&&u(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(se),w=n.current;return this[q]==M?this[R].push(w,g,u,i):ee(this,w,g,u,i),g}catch(u){return this.then(null,u)}finally(u){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(se);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,u,u):ee(this,g,h,u,u),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(f){let u=f.prototype,i=r(u,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=u.then;u[m]=h,f.prototype.then=function(g,w){return new t((C,S)=>{h.call(this,C,S)}).then(g,w)},f[o]=!0}c.patchThen=v;function F(f){return function(u,i){let h=f.apply(u,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),ue(e,"fetch",f=>F(f))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=A("OriginalDelegate"),r=A("Promise"),a=A("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let m=e[r];if(m)return n.call(m)}if(this===Error){let m=e[a];if(m)return n.call(m)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var _t={useG:!0},te={},et={},tt=new RegExp("^"+ge+"(\\w+)(true|false)$"),nt=A("propagationStopped");function rt(e,n){let c=(n?n(e):e)+ae,r=(n?n(e):e)+ce,a=ge+c,l=ge+r;te[e]={},te[e][ae]=a,te[e][ce]=l}function Et(e,n,c,r){let a=r&&r.add||Le,l=r&&r.rm||je,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=A(a),k="."+a+":",m="prependListener",I="."+m+":",O=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function Z(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[te[E.type][$?ce:ae]];if(X){let M=[];if(X.length===1){let T=O(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return Z(this,R,!1)},j=function(R){return Z(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Me(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[A(l)]=T[l],K=T[A(y)]=T[y],oe=T[A(_)]=T[_],z;E&&E.prepend&&(z=T[A(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let ne=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?j:B,d.options)},ee=function(i){if(!i.isRemoved){let h=te[i.eventName],g;h&&(g=h[i.capture?ce:ae]);let w=g&&i.target[g];if(w){for(let p=0;p{ie.zone.cancelTask(ie)},{once:!0})),d.target=null,me&&(me.taskData=null),Ve&&(Q.once=!0),!_e&&typeof ie.options=="boolean"||(ie.options=Q),ie.target=S,ie.capture=Ce,ie.eventName=D,V&&(ie.originalDelegate=G),C?de.unshift(ie):de.push(ie),p)return S}};return T[a]=u(N,k,t,s,M),z&&(T[m]=u(z,I,se,s,M,!0)),T[l]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let g=arguments[2],w=g?typeof g=="boolean"?!0:g.capture:!1,p=arguments[1];if(!p)return P.apply(this,arguments);if(H&&!H(P,p,i,arguments))return;let C=te[h],S;C&&(S=C[w?ce:ae]);let D=S&&i[S];if(D)for(let G=0;Gfunction(a,l){a[nt]=!0,r&&r.apply(a,l)})}function yt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(m){let I=`${c}.${r}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){let Z=e.ObjectGetOwnPropertyDescriptor(O,m);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(b.prototype,m,Z)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],I))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function st(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function Ye(e,n,c,r){if(!e)return;let a=st(e,n,c);Qe(e,a,r)}function Ne(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function mt(e,n){if(Re&&!Ke||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(Ge){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ht()?[{target:a,ignoreProperties:["error"]}]:[];Ye(a,Ne(a),c&&c.concat(l),Me(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Ne(e);c.patchOnProperties=Qe,c.patchMethod=ue,c.bindArguments=xe,c.patchMacroTask=ft;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Tt,c.patchEventTarget=Et,c.isIEOrEdge=dt,c.ObjectDefineProperty=Ie,c.ObjectGetOwnPropertyDescriptor=pe,c.ObjectCreate=ct,c.ArraySlice=at,c.patchClass=ke,c.wrapWithCurrentZone=Ae,c.filterProperties=st,c.attachOriginToPatched=le,c._redefineProperty=Object.defineProperty,c.patchCallbacks=yt,c.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ge,isMix:Ke,isNode:Re,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ge,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:je})});function pt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var be=A("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let m=k.data;return m.args[0]=function(){return k.invoke.apply(this,arguments)},m.handleId=a.apply(e,m.args),k}function b(k){return l.call(e,k.data.handleId)}a=ue(e,n,k=>function(m,I){if(typeof I[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete y[O.handleId]:O.handleId&&(O.handleId[be]=null))}};let B=He(n,I[0],O,_,b);if(!B)return B;let j=B.data.handleId;return typeof j=="number"?y[j]=B:j&&(j[be]=B),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(B.ref=j.ref.bind(j),B.unref=j.unref.bind(j)),typeof j=="number"||j?j:B}else return k.apply(e,I)}),l=ue(e,c,k=>function(m,I){let O=I[0],Z;typeof O=="number"?Z=y[O]:(Z=O&&O[be],Z||(Z=O)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof O=="number"?delete y[O]:O&&(O[be]=null),Z.zone.cancelTask(Z)):k.apply(e,I)})}function gt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{vt(e,c),kt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ke("MutationObserver"),ke("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ke("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ke("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{mt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{gt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=A("xhrTask"),r=A("xhrSync"),a=A("xhrListener"),l=A("xhrScheduled"),y=A("xhrURL"),_=A("xhrErrorBeforeScheduled");function b(k){let m=k.XMLHttpRequest;if(!m)return;let I=m.prototype;function O(d){return d[c]}let Z=I[De],B=I[Oe];if(!Z){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;Z=N[De],B=N[Oe]}}let j="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];Z||(Z=P[De],B=P[Oe]),K&&B.call(P,j,K);let oe=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=A("fetchTaskAborting"),M=A("fetchTaskScheduling"),T=ue(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=He(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=ue(I,"abort",()=>function(d,N){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&ut(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){ot(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[A("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{pt(e,c)}); diff --git a/docs/styles-KOA5NDB2.css b/docs/styles-KOA5NDB2.css new file mode 100644 index 0000000..91a16e0 --- /dev/null +++ b/docs/styles-KOA5NDB2.css @@ -0,0 +1 @@ +*,*:before,*:after{box-sizing:border-box;padding:0;margin:0}body{width:100vw;min-height:100%}code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:none;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8292a2}.token.punctuation{color:#f8f8f2}.token.namespace{opacity:.7}.token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#a6e22e}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.function,.token.class-name{color:#e6db74}.token.keyword{color:#66d9ef}.token.regex,.token.important{color:#fd971f}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:#997a6614;background:linear-gradient(to right,#997a661a 70%,#997a6600);pointer-events:none;line-height:inherit;white-space:pre}@media print{.line-highlight{-webkit-print-color-adjust:exact;color-adjust:exact}}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:#997a6666;color:#f5f2f0;font:700 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px #fff}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[id].linkable-line-numbers span.line-numbers-rows{pointer-events:all}pre[id].linkable-line-numbers span.line-numbers-rows>span:before{cursor:pointer}pre[id].linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:#80808033}