diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt deleted file mode 100644 index deb8bd8a..00000000 --- a/docs/3rdpartylicenses.txt +++ /dev/null @@ -1,845 +0,0 @@ -@angular/animations -MIT - -@angular/cdk -MIT -The MIT License - -Copyright (c) 2023 Google LLC. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@angular/common -MIT - -@angular/core -MIT - -@angular/forms -MIT - -@angular/material -MIT -The MIT License - -Copyright (c) 2023 Google LLC. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@angular/platform-browser -MIT - -@angular/router -MIT - -@codemirror/autocomplete -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@codemirror/commands -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@codemirror/lang-json -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@codemirror/language -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@codemirror/lint -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@codemirror/search -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@codemirror/state -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@codemirror/view -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -@lezer/common -MIT -MIT License - -Copyright (C) 2018 by Marijn Haverbeke and others - -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. - - -@lezer/highlight -MIT -MIT License - -Copyright (C) 2018 by Marijn Haverbeke and others - -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. - - -@lezer/json -MIT -MIT License - -Copyright (C) 2020 by Marijn Haverbeke , Arun Srinivasan , and others - -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. - -@lezer/lr -MIT -MIT License - -Copyright (C) 2018 by Marijn Haverbeke and others - -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. - - -codemirror -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -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. - - -crelt -MIT -Copyright (C) 2020 by Marijn Haverbeke - -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. - - -jose -MIT -The MIT License (MIT) - -Copyright (c) 2018 Filip Skokan - -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. - - -json5 -MIT -MIT License - -Copyright (c) 2012-2018 Aseem Kishore, and [others]. - -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. - -[others]: https://github.com/json5/json5/contributors - - -lodash -MIT -Copyright OpenJS Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -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. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. - - -rxjs -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - -style-mod -MIT -Copyright (C) 2018 by Marijn Haverbeke and others - -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. - - -underscore -MIT -Copyright (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors - -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. - - -unique-names-generator -MIT -MIT License - -Copyright (c) 2018-2022 AndreaSonny (https://github.com/andreasonny83) - -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. - - -uuid -MIT -The MIT License (MIT) - -Copyright (c) 2010-2020 Robert Kieffer and other contributors - -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. - - -w3c-keyname -MIT -Copyright (C) 2016 by Marijn Haverbeke and others - -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. - - -zone.js -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. diff --git a/docs/assets/avatars/he.png b/docs/assets/avatars/he.png deleted file mode 100644 index 7532d0a9..00000000 Binary files a/docs/assets/avatars/he.png and /dev/null differ diff --git a/docs/assets/avatars/she.png b/docs/assets/avatars/she.png deleted file mode 100644 index 37b13cc4..00000000 Binary files a/docs/assets/avatars/she.png and /dev/null differ diff --git a/docs/assets/avatars/they.png b/docs/assets/avatars/they.png deleted file mode 100644 index 1f95ad48..00000000 Binary files a/docs/assets/avatars/they.png and /dev/null differ diff --git a/docs/assets/favicon-32x32.png b/docs/assets/favicon-32x32.png deleted file mode 100644 index 7c554573..00000000 Binary files a/docs/assets/favicon-32x32.png and /dev/null differ diff --git a/docs/assets/pair-logo.svg b/docs/assets/pair-logo.svg deleted file mode 100644 index 884bbead..00000000 --- a/docs/assets/pair-logo.svg +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index a08492e4..00000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 4b23a948..00000000 --- a/docs/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Rudders - - - - - - - - - - - - - diff --git a/docs/main.28a6c93a88248095.js b/docs/main.28a6c93a88248095.js deleted file mode 100644 index 1b4ba8b1..00000000 --- a/docs/main.28a6c93a88248095.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkllm_recs_webclient=self.webpackChunkllm_recs_webclient||[]).push([[179],{78:(Zo,Ao,mn)=>{"use strict";var Hn={};function T(i,t){return Object.is(i,t)}mn.r(Hn),mn.d(Hn,{VERSION:()=>zH,after:()=>ise,all:()=>V8,allKeys:()=>sv,any:()=>H8,assign:()=>AC,before:()=>T8,bind:()=>M8,bindAll:()=>Joe,chain:()=>Koe,chunk:()=>Ase,clone:()=>Ioe,collect:()=>Gh,compact:()=>wse,compose:()=>tse,constant:()=>o8,contains:()=>Lc,countBy:()=>pse,create:()=>Toe,debounce:()=>Qoe,default:()=>Tse,defaults:()=>v8,defer:()=>Xoe,delay:()=>A8,detect:()=>nI,difference:()=>G8,drop:()=>OC,each:()=>Nc,escape:()=>Loe,every:()=>V8,extend:()=>b8,extendOwn:()=>AC,filter:()=>Ap,find:()=>nI,findIndex:()=>iI,findKey:()=>I8,findLastIndex:()=>R8,findWhere:()=>ose,first:()=>sI,flatten:()=>xse,foldl:()=>rI,foldr:()=>B8,forEach:()=>Nc,functions:()=>GT,get:()=>x8,groupBy:()=>fse,has:()=>Roe,head:()=>sI,identity:()=>JT,include:()=>Lc,includes:()=>Lc,indexBy:()=>mse,indexOf:()=>N8,initial:()=>$8,inject:()=>rI,intersection:()=>kse,invert:()=>_8,invoke:()=>ase,isArguments:()=>zT,isArray:()=>Wh,isArrayBuffer:()=>e8,isBoolean:()=>XH,isDataView:()=>SC,isDate:()=>doe,isElement:()=>coe,isEmpty:()=>woe,isEqual:()=>tu,isError:()=>hoe,isFinite:()=>goe,isFunction:()=>ko,isMap:()=>Doe,isMatch:()=>d8,isNaN:()=>r8,isNull:()=>loe,isNumber:()=>ZH,isObject:()=>Uh,isRegExp:()=>uoe,isSet:()=>Eoe,isString:()=>BT,isSymbol:()=>QH,isTypedArray:()=>l8,isUndefined:()=>YH,isWeakMap:()=>koe,isWeakSet:()=>Soe,iteratee:()=>XT,keys:()=>ur,last:()=>yse,lastIndexOf:()=>rse,map:()=>Gh,mapObject:()=>Poe,matcher:()=>lv,matches:()=>lv,max:()=>z8,memoize:()=>Yoe,methods:()=>GT,min:()=>cse,mixin:()=>q8,negate:()=>tI,noop:()=>D8,now:()=>dv,object:()=>Sse,omit:()=>vse,once:()=>nse,pairs:()=>Moe,partial:()=>TC,partition:()=>gse,pick:()=>j8,pluck:()=>oI,property:()=>YT,propertyOf:()=>Foe,random:()=>ZT,range:()=>Mse,reduce:()=>rI,reduceRight:()=>B8,reject:()=>sse,rest:()=>OC,restArguments:()=>$o,result:()=>Goe,sample:()=>W8,select:()=>Ap,shuffle:()=>use,size:()=>_se,some:()=>H8,sortBy:()=>hse,sortedIndex:()=>P8,tail:()=>OC,take:()=>sI,tap:()=>Ooe,template:()=>$oe,templateSettings:()=>Hoe,throttle:()=>Zoe,times:()=>Noe,toArray:()=>U8,toPath:()=>w8,transpose:()=>lI,unescape:()=>Voe,union:()=>Dse,uniq:()=>aI,unique:()=>aI,uniqueId:()=>jh,unzip:()=>lI,values:()=>Mp,where:()=>lse,without:()=>Cse,wrap:()=>ese,zip:()=>Ese});let ui=null,Ps=!1,ql=1;const Oi=Symbol("SIGNAL");function mi(i){const t=ui;return ui=i,t}const ao={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 td(i){if(Ps)throw new Error("");if(null===ui)return;ui.consumerOnSignalRead(i);const t=ui.nextProducerIndex++;Ls(ui),ti.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function Ns(i){Ls(i);for(let t=0;t0}function Ls(i){i.producerNode??=[],i.producerIndexOfThis??=[],i.producerLastReadVersion??=[]}function kf(i){i.liveConsumerNode??=[],i.liveConsumerIndexOfThis??=[]}const Yl=Symbol("UNSET"),pn=Symbol("COMPUTING"),Qo=Symbol("ERRORED"),Eg=(()=>({...ao,value:Yl,dirty:!0,error:null,equal:T,producerMustRecompute:i=>i.value===Yl||i.value===pn,producerRecomputeValue(i){if(i.value===pn)throw new Error("Detected cycle in computations.");const t=i.value;i.value=pn;const e=Jl(i);let n;try{n=i.computation()}catch(r){n=Qo,i.error=r}finally{Hr(i,e)}t!==Yl&&t!==Qo&&n!==Qo&&i.equal(t,n)?i.value=t:(i.value=n,i.version++)}}))();let es=function Sg(){throw new Error};function To(){es()}let Ga=null;function Sf(i,t){sn()||To();const e=i.value;Object.is(e,t)||i.equal(e,t)||(i.value=t,function qa(i){i.version++,function $a(){ql++}(),Kl(i),Ga?.()}(i))}const Jy=(()=>({...ao,equal:T,value:void 0}))();const Ru=()=>{},Ka=(()=>({...ao,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:i=>{null!==i.schedule&&i.schedule(i.ref)},hasRun:!1,cleanupFn:Ru}))();function Mt(i){return"function"==typeof i}function Zt(i){const e=i(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const zn=Zt(i=>function(e){i(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function _a(i,t){if(i){const e=i.indexOf(t);0<=e&&i.splice(e,1)}}class Ue{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(Mt(n))try{n()}catch(o){t=o instanceof zn?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Bs(o)}catch(s){t=t??[],s instanceof zn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new zn(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Bs(t);else{if(t instanceof Ue){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&_a(e,t)}remove(t){const{_finalizers:e}=this;e&&_a(e,t),t instanceof Ue&&t._removeParent(this)}}Ue.EMPTY=(()=>{const i=new Ue;return i.closed=!0,i})();const mr=Ue.EMPTY;function Ji(i){return i instanceof Ue||i&&"closed"in i&&Mt(i.remove)&&Mt(i.add)&&Mt(i.unsubscribe)}function Bs(i){Mt(i)?i():i.unsubscribe()}const Ri={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Vs={setTimeout(i,t,...e){const{delegate:n}=Vs;return n?.setTimeout?n.setTimeout(i,t,...e):setTimeout(i,t,...e)},clearTimeout(i){const{delegate:t}=Vs;return(t?.clearTimeout||clearTimeout)(i)},delegate:void 0};function ba(i){Vs.setTimeout(()=>{const{onUnhandledError:t}=Ri;if(!t)throw i;t(i)})}function ot(){}const Je=st("C",void 0,void 0);function st(i,t,e){return{kind:i,value:t,error:e}}let is=null;function nr(i){if(Ri.useDeprecatedSynchronousErrorHandling){const t=!is;if(t&&(is={errorThrown:!1,error:null}),i(),t){const{errorThrown:e,error:n}=is;if(is=null,e)throw n}}else i()}class Ja extends Ue{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ji(t)&&t.add(this)):this.destination=nd}static create(t,e,n){return new va(t,e,n)}next(t){this.isStopped?Ql(function pr(i){return st("N",i,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ql(function Zl(i){return st("E",void 0,i)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ql(Je,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Qt=Function.prototype.bind;function uo(i,t){return Qt.call(i,t)}class Pu{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(n){Hs(n)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(n){Hs(n)}else Hs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Hs(e)}}}class va extends Ja{constructor(t,e,n){let r;if(super(),Mt(t)||!t)r={next:t??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&Ri.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&uo(t.next,o),error:t.error&&uo(t.error,o),complete:t.complete&&uo(t.complete,o)}):r=t}this.destination=new Pu(r)}}function Hs(i){Ri.useDeprecatedSynchronousErrorHandling?function Y(i){Ri.useDeprecatedSynchronousErrorHandling&&is&&(is.errorThrown=!0,is.error=i)}(i):ba(i)}function Ql(i,t){const{onStoppedNotification:e}=Ri;e&&Vs.setTimeout(()=>e(i,t))}const nd={closed:!0,next:ot,error:function Ag(i){throw i},complete:ot},Jt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Un(i){return i}function Af(i){return 0===i.length?Un:1===i.length?i[0]:function(e){return i.reduce((n,r)=>r(n),e)}}let Vt=(()=>{class i{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new i;return n.source=this,n.operator=e,n}subscribe(e,n,r){const o=function Tg(i){return i&&i instanceof Ja||function Tf(i){return i&&Mt(i.next)&&Mt(i.error)&&Mt(i.complete)}(i)&&Ji(i)}(e)?e:new va(e,n,r);return nr(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=ec(n))((r,o)=>{const s=new va({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[Jt](){return this}pipe(...e){return Af(e)(this)}toPromise(e){return new(e=ec(e))((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return i.create=t=>new i(t),i})();function ec(i){var t;return null!==(t=i??Ri.Promise)&&void 0!==t?t:Promise}const Ig=Zt(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let de=(()=>{class i extends Vt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new P(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ig}next(e){nr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){nr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){nr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:r,observers:o}=this;return n||r?mr:(this.currentObservers=null,o.push(e),new Ue(()=>{this.currentObservers=null,_a(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new Vt;return e.source=this,e}}return i.create=(t,e)=>new P(t,e),i})();class P extends de{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)}error(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:mr}}function $(i){return Mt(i?.lift)}function ce(i){return t=>{if($(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ae(i,t,e,n,r){return new Ge(i,t,e,n,r)}class Ge extends Ja{constructor(t,e,n,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}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()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ue(i,t){return ce((e,n)=>{let r=0;e.subscribe(ae(n,o=>{n.next(i.call(t,o,r++))}))})}function _n(i){return this instanceof _n?(this.v=i,this):new _n(i)}function ic(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=i[Symbol.asyncIterator];return t?t.call(i):(i=function rt(i){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=i[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=i[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Rf=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function Pf(i){return Mt(i?.then)}function t0(i){return Mt(i[Jt])}function Fg(i){return Symbol.asyncIterator&&Mt(i?.[Symbol.asyncIterator])}function Ff(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const nc=function Ng(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Lg(i){return Mt(i?.[nc])}function Bg(i){return function rs(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(i,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(p){n[p]&&(r[p]=function(g){return new Promise(function(b,v){o.push([p,g,b,v])>1||a(p,g)})})}function a(p,g){try{!function l(p){p.value instanceof _n?Promise.resolve(p.value.v).then(c,u):f(o[0][2],p)}(n[p](g))}catch(b){f(o[0][3],b)}}function c(p){a("next",p)}function u(p){a("throw",p)}function f(p,g){p(g),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const e=i.getReader();try{for(;;){const{value:n,done:r}=yield _n(e.read());if(r)return yield _n(void 0);yield yield _n(n)}}finally{e.releaseLock()}})}function n0(i){return Mt(i?.getReader)}function jn(i){if(i instanceof Vt)return i;if(null!=i){if(t0(i))return function r0(i){return new Vt(t=>{const e=i[Jt]();if(Mt(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(Rf(i))return function o0(i){return new Vt(t=>{for(let e=0;e{i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,ba)})}(i);if(Fg(i))return a0(i);if(Lg(i))return function Gk(i){return new Vt(t=>{for(const e of i)if(t.next(e),t.closed)return;t.complete()})}(i);if(n0(i))return function qk(i){return a0(Bg(i))}(i)}throw Ff(i)}function a0(i){return new Vt(t=>{(function l0(i,t){var e,n,r,o;return function If(i,t,e,n){return new(e||(e=Promise))(function(o,s){function a(u){try{c(n.next(u))}catch(f){s(f)}}function l(u){try{c(n.throw(u))}catch(f){s(f)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((n=n.apply(i,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=ic(i);!(n=yield e.next()).done;)if(t.next(n.value),t.closed)return}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(i,t).catch(e=>t.error(e))})}function xa(i,t,e,n=0,r=!1){const o=t.schedule(function(){e(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(o),!r)return o}function Sn(i,t,e=1/0){return Mt(t)?Sn((n,r)=>ue((o,s)=>t(n,o,r,s))(jn(i(n,r))),e):("number"==typeof t&&(e=t),ce((n,r)=>function Kk(i,t,e,n,r,o,s,a){const l=[];let c=0,u=0,f=!1;const p=()=>{f&&!l.length&&!c&&t.complete()},g=v=>c{o&&t.next(v),c++;let C=!1;jn(e(v,u++)).subscribe(ae(t,S=>{r?.(S),o?g(S):t.next(S)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&cb(S)):b(S)}p()}catch(S){t.error(S)}}))};return i.subscribe(ae(t,g,()=>{f=!0,p()})),()=>{a?.()}}(n,r,i,e)))}function od(i=1/0){return Sn(Un,i)}const Wr=new Vt(i=>i.complete());function c0(i){return i&&Mt(i.schedule)}function Vg(i){return i[i.length-1]}function d0(i){return Mt(Vg(i))?i.pop():void 0}function ei(i){return c0(Vg(i))?i.pop():void 0}function u0(i,t=0){return ce((e,n)=>{e.subscribe(ae(n,r=>xa(n,i,()=>n.next(r),t),()=>xa(n,i,()=>n.complete(),t),r=>xa(n,i,()=>n.error(r),t)))})}function h0(i,t=0){return ce((e,n)=>{n.add(i.schedule(()=>e.subscribe(n),t))})}function Hg(i,t){if(!i)throw new Error("Iterable cannot be null");return new Vt(e=>{xa(e,t,()=>{const n=i[Symbol.asyncIterator]();xa(e,t,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function ln(i,t){return t?function $n(i,t){if(null!=i){if(t0(i))return function Yk(i,t){return jn(i).pipe(h0(t),u0(t))}(i,t);if(Rf(i))return function Zk(i,t){return new Vt(e=>{let n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}(i,t);if(Pf(i))return function Xk(i,t){return jn(i).pipe(h0(t),u0(t))}(i,t);if(Fg(i))return Hg(i,t);if(Lg(i))return function Qk(i,t){return new Vt(e=>{let n;return xa(e,t,()=>{n=i[nc](),xa(e,t,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>Mt(n?.return)&&n.return()})}(i,t);if(n0(i))return function eE(i,t){return Hg(Bg(i),t)}(i,t)}throw Ff(i)}(i,t):jn(i)}function Hi(...i){const t=ei(i),e=function pi(i,t){return"number"==typeof Vg(i)?i.pop():t}(i,1/0),n=i;return n.length?1===n.length?jn(n[0]):od(e)(ln(n,t)):Wr}class gr extends de{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function Ie(...i){return ln(i,ei(i))}function _r(i={}){const{connector:t=(()=>new de),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=i;return o=>{let s,a,l,c=0,u=!1,f=!1;const p=()=>{a?.unsubscribe(),a=void 0},g=()=>{p(),s=l=void 0,u=f=!1},b=()=>{const v=s;g(),v?.unsubscribe()};return ce((v,C)=>{c++,!f&&!u&&p();const S=l=l??t();C.add(()=>{c--,0===c&&!f&&!u&&(a=Nf(b,r))}),S.subscribe(C),!s&&c>0&&(s=new va({next:M=>S.next(M),error:M=>{f=!0,p(),a=Nf(g,e,M),S.error(M)},complete:()=>{u=!0,p(),a=Nf(g,n),S.complete()}}),jn(v).subscribe(s))})(o)}}function Nf(i,t,...e){if(!0===t)return void i();if(!1===t)return;const n=new va({next:()=>{n.unsubscribe(),i()}});return jn(t(...e)).subscribe(n)}function Mn(i,t){return ce((e,n)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&n.complete();e.subscribe(ae(n,l=>{r?.unsubscribe();let c=0;const u=o++;jn(i(l,u)).subscribe(r=ae(n,f=>n.next(t?t(l,f,u,c++):f),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function sd(i,t=Un){return i=i??f0,ce((e,n)=>{let r,o=!0;e.subscribe(ae(n,s=>{const a=t(s);(o||!i(r,a))&&(o=!1,r=a,n.next(s))}))})}function f0(i,t){return i===t}function Yt(i){for(let t in i)if(i[t]===Yt)return t;throw Error("Could not find renamed property on target object.")}function Nu(i,t){for(const e in t)t.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(i[e]=t[e])}function Ht(i){if("string"==typeof i)return i;if(Array.isArray(i))return"["+i.map(Ht).join(", ")+"]";if(null==i)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;const t=i.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function zg(i,t){return null==i||""===i?null===t?"":t:null==t||""===t?i:i+" "+t}const tE=Yt({__forward_ref__:Yt});function At(i){return i.__forward_ref__=At,i.toString=function(){return Ht(this())},i}function Le(i){return rc(i)?i():i}function rc(i){return"function"==typeof i&&i.hasOwnProperty(tE)&&i.__forward_ref__===At}function Lu(i){return i&&!!i.\u0275providers}const Ca="https://g.co/ng/security#xss";class z extends Error{constructor(t,e){super(function ad(i,t){return`NG0${Math.abs(i)}${t?": "+t:""}`}(t,e)),this.code=t}}const oc=Yt({\u0275cmp:Yt}),Ug=Yt({\u0275dir:Yt}),Wg=Yt({\u0275pipe:Yt}),m0=Yt({\u0275mod:Yt}),Us=Yt({\u0275fac:Yt}),Xa=Yt({__NG_ELEMENT_ID__:Yt}),sc=Yt({__NG_ENV_ID__:Yt});function at(i){return"string"==typeof i?i:null==i?"":String(i)}function Bu(i,t){throw new z(-201,!1)}function bn(i,t){null==i&&function Ye(i,t,e,n){throw new Error(`ASSERTION ERROR: ${i}`+(null==n?"":` [Expected=> ${e} ${n} ${t} <=Actual]`))}(t,i,null,"!=")}function oe(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function nt(i){return{providers:i.providers||[],imports:i.imports||[]}}function Bf(i){return Oo(i,Hf)||Oo(i,b0)}function Oo(i,t){return i.hasOwnProperty(t)?i[t]:null}function Vf(i){return i&&(i.hasOwnProperty(Gg)||i.hasOwnProperty(dE))?i[Gg]:null}const Hf=Yt({\u0275prov:Yt}),Gg=Yt({\u0275inj:Yt}),b0=Yt({ngInjectableDef:Yt}),dE=Yt({ngInjectorDef:Yt});var wt=function(i){return i[i.Default=0]="Default",i[i.Host=1]="Host",i[i.Self=2]="Self",i[i.SkipSelf=4]="SkipSelf",i[i.Optional=8]="Optional",i}(wt||{});let F;function G(){return F}function B(i){const t=F;return F=i,t}function Ce(i,t,e){const n=Bf(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&wt.Optional?null:void 0!==t?t:void Bu(Ht(i))}const Be=globalThis;class V{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=oe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Hu={},Xg="__NG_DI_FLAG__",zf="ngTempTokenPath",Za=/\n/gm,Zg="__source";let Da;function ka(i){const t=Da;return Da=i,t}function jf(i,t=wt.Default){if(void 0===Da)throw new z(-203,!1);return null===Da?Ce(i,void 0,t):Da.get(i,t&wt.Optional?null:void 0,t)}function U(i,t=wt.Default){return(G()||jf)(Le(i),t)}function ee(i,t=wt.Default){return U(i,lc(t))}function lc(i){return typeof i>"u"||"number"==typeof i?i:0|(i.optional&&8)|(i.host&&1)|(i.self&&2)|(i.skipSelf&&4)}function Qg(i){const t=[];for(let e=0;et){s=o-1;break}}}for(;oo?"":r[f+1].toLowerCase();const g=8&n?p:null;if(g&&-1!==cn(g,c,0)||2&n&&c!==p){if(vr(n))return!1;s=!0}}}}else{if(!s&&!vr(n)&&!vr(l))return!1;if(s&&vr(l))continue;s=!1,n=l|1&n}}return vr(n)||s}function vr(i){return 0==(1&i)}function Yf(i,t,e,n){if(null===t)return-1;let r=0;if(n||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!vr(s)&&(t+=C0(o,r),r=""),n=s,o=o||!vr(n);e++}return""!==r&&(t+=C0(o,r)),t}function w(i){return ss(()=>{const t=k0(i),e={...t,decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===qf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||Ro.Emulated,styles:i.styles||Ut,_:null,schemas:i.schemas||null,tView:null,id:""};E0(e);const n=i.dependencies;return e.directiveDefs=Po(n,!1),e.pipeDefs=Po(n,!0),e.id=function bE(i){let t=0;const e=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(const r of e)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(e),e})}function md(i){return xt(i)||xi(i)}function Zf(i){return null!==i}function Fe(i){return ss(()=>({type:i.type,bootstrap:i.bootstrap||Ut,declarations:i.declarations||Ut,imports:i.imports||Ut,exports:i.exports||Ut,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function Tt(i,t){if(null==i)return js;const e={};for(const n in i)if(i.hasOwnProperty(n)){let r=i[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,t&&(t[r]=o)}return e}function ne(i){return ss(()=>{const t=k0(i);return E0(t),t})}function $r(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,standalone:!0===i.standalone,onDestroy:i.type.prototype.ngOnDestroy||null}}function xt(i){return i[oc]||null}function xi(i){return i[Ug]||null}function Gn(i){return i[Wg]||null}function or(i,t){const e=i[m0]||null;if(!e&&!0===t)throw new Error(`Type ${Ht(i)} does not have '\u0275mod' property.`);return e}function k0(i){const t={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:i.inputs||js,exportAs:i.exportAs||null,standalone:!0===i.standalone,signals:!0===i.signals,selectors:i.selectors||Ut,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Tt(i.inputs,t),outputs:Tt(i.outputs),debugInfo:null}}function E0(i){i.features?.forEach(t=>t(i))}function Po(i,t){if(!i)return null;const e=t?Gn:md;return()=>("function"==typeof i?i():i).map(n=>e(n)).filter(Zf)}const zi=0,le=1,We=2,Wt=3,as=4,sr=5,ls=6,pd=7,hi=8,Xi=9,gd=10,lt=11,yr=12,S0=13,_d=14,Ni=15,$u=16,bd=17,cs=18,vd=19,M0=20,el=21,yd=22,ds=23,et=25,e_=1,$s=7,tl=9,fi=10;var qn=function(i){return i[i.None=0]="None",i[i.HasTransplantedViews=2]="HasTransplantedViews",i[i.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",i}(qn||{});function Kn(i){return Array.isArray(i)&&"object"==typeof i[e_]}function vn(i){return Array.isArray(i)&&!0===i[e_]}function Qf(i){return 0!=(4&i.flags)}function us(i){return i.componentOffset>-1}function hs(i){return 1==(1&i.flags)}function No(i){return!!i.template}function t_(i){return 0!=(512&i[We])}function dc(i,t){return i.hasOwnProperty(Us)?i[Us]:null}class o_{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Zi(){return O0}function O0(i){return i.type.prototype.ngOnChanges&&(i.setInput=xE),wE}function wE(){const i=rm(this),t=i?.current;if(t){const e=i.previous;if(e===js)i.previous=t;else for(let n in t)e[n]=t[n];i.current=null,this.ngOnChanges(t)}}function xE(i,t,e,n){const r=this.declaredInputs[e],o=rm(i)||function CE(i,t){return i[s_]=t}(i,{previous:js,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new o_(l&&l.currentValue,t,a===js),i[n]=t}Zi.ngInherit=!0;const s_="__ngSimpleChanges__";function rm(i){return i[s_]||null}const fs=function(i,t,e){},a_="svg";function _i(i){for(;Array.isArray(i);)i=i[zi];return i}function Dd(i,t){return _i(t[i])}function wr(i,t){return _i(t[i.index])}function Ku(i,t){return i.data[t]}function il(i,t){return i[t]}function qr(i,t){const e=t[i];return Kn(e)?e:e[zi]}function c_(i){return 128==(128&i[We])}function tt(i,t){return null==t?null:i[t]}function F0(i){i[bd]=0}function DE(i){1024&i[We]||(i[We]|=1024,c_(i)&&sm(i))}function u_(i){return 9216&i[We]||i[ds]?.dirty}function N0(i){u_(i)&&sm(i)}function sm(i){let t=i[Wt];for(;null!==t&&!(vn(t)&&t[We]&qn.HasChildViewsToRefresh||Kn(t)&&8192&t[We]);){if(vn(t))t[We]|=qn.HasChildViewsToRefresh;else if(t[We]|=8192,!c_(t))break;t=t[Wt]}}function xr(i,t){if(256==(256&i[We]))throw new z(911,!1);null===i[el]&&(i[el]=[]),i[el].push(t)}const qe={lFrame:Xu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function lm(){return qe.bindingsEnabled}function uc(){return null!==qe.skipHydrationRootTNode}function j(){return qe.lFrame.lView}function _t(){return qe.lFrame.tView}function He(i){return qe.lFrame.contextLView=i,i[hi]}function Se(i){return qe.lFrame.contextLView=null,i}function ti(){let i=p_();for(;null!==i&&64===i.type;)i=i.parent;return i}function p_(){return qe.lFrame.currentTNode}function Gs(i,t){const e=qe.lFrame;e.currentTNode=i,e.isParent=t}function g_(){return qe.lFrame.isParent}function __(){qe.lFrame.isParent=!1}function ar(){const i=qe.lFrame;let t=i.bindingRootIndex;return-1===t&&(t=i.bindingRootIndex=i.tView.bindingStartIndex),t}function yn(){return qe.lFrame.bindingIndex++}function Sa(i){const t=qe.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+i,e}function Ed(i,t){const e=qe.lFrame;e.bindingIndex=e.bindingRootIndex=i,dm(t)}function dm(i){qe.lFrame.currentDirectiveIndex=i}function b_(i){const t=qe.lFrame.currentDirectiveIndex;return-1===t?null:i[t]}function v_(){return qe.lFrame.currentQueryIndex}function rl(i){qe.lFrame.currentQueryIndex=i}function Yu(i){const t=i[le];return 2===t.type?t.declTNode:1===t.type?i[sr]:null}function W0(i,t,e){if(e&wt.SkipSelf){let r=t,o=i;for(;!(r=r.parent,null!==r||e&wt.Host||(r=Yu(o),null===r||(o=o[_d],10&r.type))););if(null===r)return!1;t=r,i=o}const n=qe.lFrame=y_();return n.currentTNode=t,n.lView=i,!0}function um(i){const t=y_(),e=i[le];qe.lFrame=t,t.currentTNode=e.firstChild,t.lView=i,t.tView=e,t.contextLView=i,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function y_(){const i=qe.lFrame,t=null===i?null:i.child;return null===t?Xu(i):t}function Xu(i){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=t),t}function w_(){const i=qe.lFrame;return qe.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}const Zu=w_;function Qu(){const i=w_();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function lr(){return qe.lFrame.selectedIndex}function ol(i){qe.lFrame.selectedIndex=i}function si(){const i=qe.lFrame;return Ku(i.tView,i.selectedIndex)}function sl(){qe.lFrame.currentNamespace=a_}function fm(){!function j0(){qe.lFrame.currentNamespace=null}()}let C_=!0;function eh(){return C_}function al(i){C_=i}function mm(i,t){for(let e=t.directiveStart,n=t.directiveEnd;e=n)break}else t[l]<0&&(i[bd]+=65536),(a>14>16&&(3&i[We])===t&&(i[We]+=16384,_m(a,o)):_m(a,o)}const ms=-1;class Ve{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function k_(i){return i!==ms}function nh(i){return 32767&i}function rh(i,t){let e=function G0(i){return i>>16}(i),n=t;for(;e>0;)n=n[_d],e--;return n}let ym=!0;function wm(i){const t=ym;return ym=i,t}const q0=255,Js=5;let kr=0;const Bo={};function Sd(i,t){const e=K0(i,t);if(-1!==e)return e;const n=t[le];n.firstCreatePass&&(i.injectorIndex=t.length,E_(n.data,i),E_(t,null),E_(n.blueprint,null));const r=ll(i,t),o=i.injectorIndex;if(k_(r)){const s=nh(r),a=rh(r,t),l=a[le].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function E_(i,t){i.push(0,0,0,0,0,0,0,0,t)}function K0(i,t){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===t[i.injectorIndex+8]?-1:i.injectorIndex}function ll(i,t){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;let e=0,n=null,r=t;for(;null!==r;){if(n=tw(r),null===n)return ms;if(e++,r=r[_d],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return ms}function xm(i,t,e){!function TE(i,t,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Xa)&&(n=e[Xa]),null==n&&(n=e[Xa]=kr++);const r=n&q0;t.data[i+(r>>Js)]|=1<=0?t&q0:Cm:t}(e);if("function"==typeof o){if(!W0(t,i,n))return n&wt.Host?Y0(r,0,n):X0(t,e,n,r);try{let s;if(s=o(n),null!=s||n&wt.Optional)return s;Bu()}finally{Zu()}}else if("number"==typeof o){let s=null,a=K0(i,t),l=ms,c=n&wt.Host?t[Ni][sr]:null;for((-1===a||n&wt.SkipSelf)&&(l=-1===a?ll(i,t):t[a+8],l!==ms&&Md(n,!1)?(s=t[le],a=nh(l),t=rh(l,t)):a=-1);-1!==a;){const u=t[le];if(M_(o,a,u.data)){const f=ew(a,t,e,s,n,c);if(f!==Bo)return f}l=t[a+8],l!==ms&&Md(n,t[le].data[a+8]===c)&&M_(o,a,t)?(s=u,a=nh(l),t=rh(l,t)):a=-1}}return r}function ew(i,t,e,n,r,o){const s=t[le],a=s.data[i+8],u=oh(a,s,e,null==n?us(a)&&ym:n!=s&&0!=(3&a.type),r&wt.Host&&o===a);return null!==u?mc(t,s,u,a):Bo}function oh(i,t,e,n,r){const o=i.providerIndexes,s=t.data,a=1048575&o,l=i.directiveStart,u=o>>20,p=r?a+u:i.directiveEnd;for(let g=n?a:a+u;g=l&&b.type===e)return g}if(r){const g=s[l];if(g&&No(g)&&g.type===e)return l}return null}function mc(i,t,e,n){let r=i[e];const o=t.data;if(function vm(i){return i instanceof Ve}(r)){const s=r;s.resolving&&function $g(i,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${i}`:"";throw new z(-200,`Circular dependency in DI detected for ${i}${e}`)}(function zt(i){return"function"==typeof i?i.name||i.toString():"object"==typeof i&&null!=i&&"function"==typeof i.type?i.type.name||i.type.toString():at(i)}(o[e]));const a=wm(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?B(s.injectImpl):null;W0(i,n,wt.Default);try{r=i[e]=s.factory(void 0,o,i,n),t.firstCreatePass&&e>=n.directiveStart&&function $0(i,t,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(n){const s=O0(t);(e.preOrderHooks??=[]).push(i,s),(e.preOrderCheckHooks??=[]).push(i,s)}r&&(e.preOrderHooks??=[]).push(0-i,r),o&&((e.preOrderHooks??=[]).push(i,o),(e.preOrderCheckHooks??=[]).push(i,o))}(e,o[e],t)}finally{null!==c&&B(c),wm(a),s.resolving=!1,Zu()}}return r}function M_(i,t,e){return!!(e[t+(i>>Js)]&1<{const t=i.prototype.constructor,e=t[Us]||Vo(t),n=Object.prototype;let r=Object.getPrototypeOf(i.prototype).constructor;for(;r&&r!==n;){const o=r[Us]||Vo(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Vo(i){return rc(i)?()=>{const t=Vo(Le(i));return t&&t()}:dc(i)}function tw(i){const t=i[le],e=t.type;return 2===e?t.declTNode:1===e?i[sr]:null}function mo(i){return function J0(i,t){if("class"===t)return i.classes;if("style"===t)return i.styles;const e=i.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function A_(i){return function(...e){if(i){const n=i(...e);for(const r in n)this[r]=n[r]}}}(t);function r(...o){if(this instanceof r)return n.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const f=l.hasOwnProperty(Td)?l[Td]:Object.defineProperty(l,Td,{value:[]})[Td];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=i,r.annotationCls=r,r})}function Pd(i,t){i.forEach(e=>Array.isArray(e)?Pd(e,t):t(e))}function nw(i,t,e){t>=i.length?i.push(e):i.splice(t,0,e)}function Er(i,t){return t>=i.length-1?i.pop():i.splice(t,1)[0]}function ah(i,t){const e=[];for(let n=0;n=0?i[1|n]=e:(n=~n,function I_(i,t,e,n){let r=i.length;if(r==t)i.push(e,n);else if(1===r)i.push(n,i[0]),i[0]=e;else{for(r--,i.push(i[r-1],i[r]);r>t;)i[r]=i[r-2],r--;i[t]=e,i[t+1]=n}}(i,n,t,e)),n}function O_(i,t){const e=Fd(i,t);if(e>=0)return i[1|e]}function Fd(i,t){return function ow(i,t,e){let n=0,r=i.length>>e;for(;r!==n;){const o=n+(r-n>>1),s=i[o<t?r=o:n=o+1}return~(r<{e.push(s)};return Pd(t,s=>{const a=s;Sm(a,o,[],n)&&(r||=[],r.push(a))}),void 0!==r&&hw(r,o),e}function hw(i,t){for(let e=0;e{t(o,n)})}}function Sm(i,t,e,n){if(!(i=Le(i)))return!1;let r=null,o=Vf(i);const s=!o&&xt(i);if(o||s){if(s&&!s.standalone)return!1;r=i}else{const l=i.ngModule;if(o=Vf(l),!o)return!1;r=l}const a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Sm(c,t,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;n.add(r);try{Pd(o.imports,u=>{Sm(u,t,e,n)&&(c||=[],c.push(u))})}finally{}void 0!==c&&hw(c,t)}if(!a){const c=dc(r)||(()=>new r);t({provide:r,useFactory:c,deps:Ut},r),t({provide:Ld,useValue:r,multi:!0},r),t({provide:bc,useValue:()=>U(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=i;F_(l,u=>{t(u,c)})}}}return r!==i&&void 0!==i.providers}function F_(i,t){for(let e of i)Lu(e)&&(e=e.\u0275providers),Array.isArray(e)?F_(e,t):t(e)}const iS=Yt({provide:String,useValue:Yt});function N_(i){return null!==i&&"object"==typeof i&&iS in i}function vc(i){return"function"==typeof i}const L_=new V("Set Injector scope."),Mm={},pw={};let Am;function Tm(){return void 0===Am&&(Am=new Em),Am}class Ho{}class Bd extends Ho{get destroyed(){return this._destroyed}constructor(t,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,V_(t,s=>this.processProvider(s)),this.records.set(cw,Vd(void 0,this)),r.has("environment")&&this.records.set(Ho,Vd(void 0,this));const o=this.records.get(L_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ld,Ut,wt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of t)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const e=ka(this),n=B(void 0);try{return t()}finally{ka(e),B(n)}}get(t,e=Hu,n=wt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(sc))return t[sc](this);n=lc(n);const o=ka(this),s=B(void 0);try{if(!(n&wt.SkipSelf)){let l=this.records.get(t);if(void 0===l){const c=function aS(i){return"function"==typeof i||"object"==typeof i&&i instanceof V}(t)&&Bf(t);l=c&&this.injectableDefInScope(c)?Vd(B_(t),Mm):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(n&wt.Self?Tm():this.parent).get(t,e=n&wt.Optional&&e===Hu?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[zf]=a[zf]||[]).unshift(Ht(t)),o)throw a;return function $f(i,t,e,n){const r=i[zf];throw t[Zg]&&r.unshift(t[Zg]),i.message=function Gf(i,t,e,n=null){i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.slice(2):i;let r=Ht(t);if(Array.isArray(t))r=t.map(Ht).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ht(a)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${i.replace(Za,"\n ")}`}("\n"+i.message,r,e,n),i.ngTokenPath=r,i[zf]=null,i}(a,t,"R3InjectorError",this.source)}throw a}finally{B(s),ka(o)}}resolveInjectorInitializers(){const t=ka(this),e=B(void 0);try{const r=this.get(bc,Ut,wt.Self);for(const o of r)o()}finally{ka(t),B(e)}}toString(){const t=[],e=this.records;for(const n of e.keys())t.push(Ht(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new z(205,!1)}processProvider(t){let e=vc(t=Le(t))?t:Le(t&&t.provide);const n=function rS(i){return N_(i)?Vd(void 0,i.useValue):Vd(gw(i),Mm)}(t);if(vc(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Vd(void 0,Mm,!0),r.factory=()=>Qg(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,n)}hydrate(t,e){return e.value===Mm&&(e.value=pw,e.value=e.factory()),"object"==typeof e.value&&e.value&&function sS(i){return null!==i&&"object"==typeof i&&"function"==typeof i.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Le(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){const e=this._onDestroyHooks.indexOf(t);-1!==e&&this._onDestroyHooks.splice(e,1)}}function B_(i){const t=Bf(i),e=null!==t?t.factory:dc(i);if(null!==e)return e;if(i instanceof V)throw new z(204,!1);if(i instanceof Function)return function Im(i){const t=i.length;if(t>0)throw ah(t,"?"),new z(204,!1);const e=function _0(i){return i&&(i[Hf]||i[b0])||null}(i);return null!==e?()=>e.factory(i):()=>new i}(i);throw new z(204,!1)}function gw(i,t,e){let n;if(vc(i)){const r=Le(i);return dc(r)||B_(r)}if(N_(i))n=()=>Le(i.useValue);else if(function mw(i){return!(!i||!i.useFactory)}(i))n=()=>i.useFactory(...Qg(i.deps||[]));else if(function fw(i){return!(!i||!i.useExisting)}(i))n=()=>U(Le(i.useExisting));else{const r=Le(i&&(i.useClass||i.provide));if(!function oS(i){return!!i.deps}(i))return dc(r)||B_(r);n=()=>new r(...Qg(i.deps))}return n}function Vd(i,t,e=!1){return{factory:i,value:t,multi:e?[]:void 0}}function V_(i,t){for(const e of i)Array.isArray(e)?V_(e,t):e&&Lu(e)?V_(e.\u0275providers,t):t(e)}function yc(i,t){i instanceof Bd&&i.assertNotDestroyed();const n=ka(i),r=B(void 0);try{return t()}finally{ka(n),B(r)}}function H_(i){if(!G()&&!function v0(){return Da}())throw new z(-203,!1)}function W_(i,t=null,e=null,n){const r=j_(i,t,e,n);return r.resolveInjectorInitializers(),r}function j_(i,t=null,e=null,n,r=new Set){const o=[e||Ut,tS(i)];return n=n||("object"==typeof i?void 0:Ht(i)),new Bd(o,t||Tm(),n||null,r)}let Rm,Jn=(()=>{class i{static#e=this.THROW_IF_NOT_FOUND=Hu;static#t=this.NULL=new Em;static create(e,n){if(Array.isArray(e))return W_({name:""},n,e,"");{const r=e.name??"";return W_({name:r},e.parent,e.providers,r)}}static#i=this.\u0275prov=oe({token:i,providedIn:"any",factory:()=>U(cw)});static#n=this.__NG_ELEMENT_ID__=-1}return i})();const uh=new V("AppId",{providedIn:"root",factory:()=>hS}),hS="ng",ww=new V("Platform Initializer"),xc=new V("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ui=new V("AnimationModuleType"),q_=new V("CSP nonce",{providedIn:"root",factory:()=>function hl(){if(void 0!==Rm)return Rm;if(typeof document<"u")return document;throw new z(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function wn(i){return i instanceof Function?i():i}function Lm(i){return 128==(128&i.flags)}var pl=function(i){return i[i.Important=1]="Important",i[i.DashCase=2]="DashCase",i}(pl||{});const Vm=new Map;let zo=0;const X_="__ngContext__";function cr(i,t){Kn(t)?(i[X_]=t[vd],function vS(i){Vm.set(i[vd],i)}(t)):i[X_]=t}let gh;function Q_(i,t){return gh(i,t)}function _h(i){const t=i[Wt];return vn(t)?t[Wt]:t}function Lw(i){return Vw(i[yr])}function Bw(i){return Vw(i[as])}function Vw(i){for(;null!==i&&!vn(i);)i=i[as];return i}function kc(i,t,e,n,r){if(null!=n){let o,s=!1;vn(n)?o=n:Kn(n)&&(s=!0,n=n[zi]);const a=_i(n);0===i&&null!==e?null==r?ib(t,e,a):Ec(t,e,a,r||null,!0):1===i&&null!==e?Ec(t,e,a,r||null,!0):2===i?function jm(i,t,e){const n=Um(i,t);n&&function OS(i,t,e,n){i.removeChild(t,e,n)}(i,n,t,e)}(t,a,s):3===i&&t.destroyNode(a),null!=o&&function FS(i,t,e,n,r){const o=e[$s];o!==_i(e)&&kc(t,i,n,o,r);for(let a=fi;a0&&(i[e-1][as]=n[as]);const o=Er(i,fi+t);!function ES(i,t){wh(i,t,t[lt],2,null,null),t[zi]=null,t[sr]=null}(n[le],n);const s=o[cs];null!==s&&s.detachView(o[le]),n[Wt]=null,n[as]=null,n[We]&=-129}return n}function zm(i,t){if(!(256&t[We])){const e=t[lt];e.destroyNode&&wh(i,t,e,3,null,null),function zw(i){let t=i[yr];if(!t)return gl(i[le],i);for(;t;){let e=null;if(Kn(t))e=t[yr];else{const n=t[fi];n&&(e=n)}if(!e){for(;t&&!t[as]&&t!==i;)Kn(t)&&gl(t[le],t),t=t[Wt];null===t&&(t=i),Kn(t)&&gl(t[le],t),e=t&&t[as]}t=e}}(t)}}function gl(i,t){if(!(256&t[We])){t[We]&=-129,t[We]|=256,t[ds]&&lo(t[ds]),function IS(i,t){let e;if(null!=i&&null!=(e=i.destroyHooks))for(let n=0;n=0?n[s]():n[-s].unsubscribe(),o+=2}else e[o].call(n[e[o+1]]);null!==n&&(t[pd]=null);const r=t[el];if(null!==r){t[el]=null;for(let o=0;o-1){const{encapsulation:o}=i.data[n.directiveStart+r];if(o===Ro.None||o===Ro.Emulated)return null}return wr(n,e)}}(i,t.parent,e)}function Ec(i,t,e,n,r){i.insertBefore(t,e,n,r)}function ib(i,t,e){i.appendChild(t,e)}function nb(i,t,e,n,r){null!==n?Ec(i,t,e,n,r):ib(i,t,e)}function Um(i,t){return i.parentNode(t)}function $w(i,t,e){return qw(i,t,e)}let rb,$m,Ud,qw=function Gw(i,t,e){return 40&i.type?wr(i,e):null};function Wm(i,t,e,n){const r=tb(i,n,t),o=t[lt],a=$w(n.parent||t[sr],n,t);if(null!=r)if(Array.isArray(e))for(let l=0;li,createScript:i=>i,createScriptURL:i=>i})}catch{}return $m}()?.createHTML(i)||i}function Mr(i){return function ab(){if(void 0===Ud&&(Ud=null,Be.trustedTypes))try{Ud=Be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Ud}()?.createScriptURL(i)||i}class Ta{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ca})`}}class HS extends Ta{getTypeName(){return"HTML"}}class zS extends Ta{getTypeName(){return"Style"}}class US extends Ta{getTypeName(){return"Script"}}class WS extends Ta{getTypeName(){return"URL"}}class lb extends Ta{getTypeName(){return"ResourceURL"}}function _o(i){return i instanceof Ta?i.changingThisBreaksApplicationSecurity:i}function Uo(i,t){const e=function jS(i){return i instanceof Ta&&i.getTypeName()||null}(i);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Ca})`)}return e===t}class JS{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Sc(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class cb{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=Sc(t),e}}const YS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gm(i){return(i=String(i)).match(YS)?i:"unsafe:"+i}function Ia(i){const t={};for(const e of i.split(","))t[e]=!0;return t}function Ch(...i){const t={};for(const e of i)for(const n in e)e.hasOwnProperty(n)&&(t[n]=!0);return t}const ox=Ia("area,br,col,hr,img,wbr"),sx=Ia("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ax=Ia("rp,rt"),ub=Ch(ox,Ch(sx,Ia("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")),Ch(ax,Ia("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")),Ch(ax,sx)),hb=Ia("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lx=Ch(hb,Ia("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"),Ia("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")),XS=Ia("script,style,template");class ZS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ub.hasOwnProperty(e))return this.sanitizedSomething=!0,!XS.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();ub.hasOwnProperty(e)&&!ox.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(cx(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const QS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eM=/([^\#-~ |!])/g;function cx(i){return i.replace(/&/g,"&").replace(QS,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(eM,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let qm;function d(i,t){let e=null;try{qm=qm||function rx(i){const t=new cb(i);return function db(){try{return!!(new window.DOMParser).parseFromString(Sc(""),"text/html")}catch{return!1}}()?new JS(t):t}(i);let n=t?String(t):"";e=qm.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=qm.getInertBodyElement(n)}while(n!==o);return Sc((new ZS).sanitizeChildren(h(e)||e))}finally{if(e){const n=h(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function h(i){return"content"in i&&function m(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var _=function(i){return i[i.NONE=0]="NONE",i[i.HTML=1]="HTML",i[i.STYLE=2]="STYLE",i[i.SCRIPT=3]="SCRIPT",i[i.URL=4]="URL",i[i.RESOURCE_URL=5]="RESOURCE_URL",i}(_||{});function A(i){const t=dt();return t?t.sanitize(_.URL,i)||"":Uo(i,"URL")?_o(i):Gm(at(i))}function O(i){const t=dt();if(t)return Mr(t.sanitize(_.RESOURCE_URL,i)||"");if(Uo(i,"ResourceURL"))return Mr(_o(i));throw new z(904,!1)}function dt(){const i=j();return i&&i[gd].sanitizer}let iN=(i,t,e)=>null;function rM(i,t,e=!1){return iN(i,t,e)}class Yq{}class oN{}class Zq{resolveComponentFactory(t){throw function Xq(i){const t=Error(`No component factory found for ${Ht(i)}.`);return t.ngComponent=i,t}(t)}}let Jm=(()=>{class i{static#e=this.NULL=new Zq}return i})();function Qq(){return Ym(ti(),j())}function Ym(i,t){return new Ee(wr(i,t))}let Ee=(()=>{class i{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=Qq}return i})();function eK(i){return i instanceof Ee?i.nativeElement:i}class aM{}let Mc=(()=>{class i{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function tK(){const i=j(),e=qr(ti().index,i);return(Kn(e)?e:i)[lt]}()}return i})(),iK=(()=>{class i{static#e=this.\u0275prov=oe({token:i,providedIn:"root",factory:()=>null})}return i})();class Dh{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nK=new Dh("17.0.6"),lM={};function xn(i,t){const e=function Ef(i){const t=Object.create(Eg);t.computation=i;const e=()=>{if(ma(t),td(t),t.value===Qo)throw t.error;return t.value};return e[Oi]=t,e}(i);return t?.equal&&(e[Oi].equal=t.equal),e}function _s(i,t){const e=function ts(i){const t=Object.create(Jy);t.value=i;const e=()=>(td(t),t.value);return e[Oi]=t,e}(i),n=e[Oi];return t?.equal&&(n.equal=t.equal),e.set=r=>Sf(n,r),e.update=r=>function ga(i,t){sn()||To(),Sf(i,t(i.value))}(n,r),e.asReadonly=rK.bind(e),e}function rK(){const i=this[Oi];if(void 0===i.readonlyFn){const t=()=>this();t[Oi]=i,i.readonlyFn=t}return i.readonlyFn}function mx(i){const t=mi(null);try{return i()}finally{mi(t)}}function px(i){return!!cM(i)&&(Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i)}function cM(i){return null!==i&&("function"==typeof i||"object"==typeof i)}class aN{constructor(){}supports(t){return px(t)}create(t){return new lK(t)}}const aK=(i,t)=>t;class lK{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||aK}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const s=!n||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(n&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new cK(e,n),o,r),t}_verifyReinsertion(t,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new lN),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new lN),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class cK{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class dK{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class lN{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new dK,this.map.set(e,n)),n.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cN(i,t,e){const n=i.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const n=new hK(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class hK{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function uN(){return new gx([new aN])}let gx=(()=>{class i{static#e=this.\u0275prov=oe({token:i,providedIn:"root",factory:uN});constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||uN()),deps:[[i,new lh,new _c]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new z(901,!1)}}return i})();function hN(){return new mb([new dN])}let mb=(()=>{class i{static#e=this.\u0275prov=oe({token:i,providedIn:"root",factory:hN});constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||hN()),deps:[[i,new lh,new _c]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new z(901,!1)}}return i})();function pb(i,t,e,n,r=!1){for(;null!==e;){const o=t[e.index];null!==o&&n.push(_i(o)),vn(o)&&fN(o,n);const s=e.type;if(8&s)pb(i,t,e.child,n);else if(32&s){const a=Q_(e,t);let l;for(;l=a();)n.push(l)}else if(16&s){const a=Jw(t,e);if(Array.isArray(a))n.push(...a);else{const l=_h(t[Ni]);pb(l[le],l,a,n,!0)}}e=r?e.projectionNext:e.next}return n}function fN(i,t){for(let e=fi;e{sm(i.lView)},consumerOnSignalRead(){this.lView[ds]=this}};function dM(i){return i.ngOriginalError}class Ys{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&dM(t);for(;e&&dM(e);)e=dM(e);return e||null}}const _N=new V("",{providedIn:"root",factory:()=>!1}),vt={};function I(i){wN(_t(),j(),lr()+i,!1)}function wN(i,t,e,n){if(!n)if(3==(3&t[We])){const o=i.preOrderCheckHooks;null!==o&&pm(t,o,e)}else{const o=i.preOrderHooks;null!==o&&Lo(t,o,0,e)}ol(e)}function x(i,t=wt.Default){const e=j();return null===e?U(i,t):Z0(ti(),e,Le(i),t)}function uM(){throw new Error("invalid")}function bx(i,t,e,n,r,o,s,a,l,c,u){const f=t.blueprint.slice();return f[zi]=r,f[We]=140|n,(null!==c||i&&2048&i[We])&&(f[We]|=2048),F0(f),f[Wt]=f[_d]=i,f[hi]=e,f[gd]=s||i&&i[gd],f[lt]=a||i&&i[lt],f[Xi]=l||i&&i[Xi]||null,f[sr]=o,f[vd]=function Aw(){return zo++}(),f[ls]=u,f[M0]=c,f[Ni]=2==t.type?i[Ni]:f,f}function Xm(i,t,e,n,r){let o=i.data[t];if(null===o)o=function hM(i,t,e,n,r){const o=p_(),s=g_(),l=i.data[t]=function TK(i,t,e,n,r,o){let s=t?t.injectorIndex:-1,a=0;return uc()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,t,n,r);return null===i.firstChild&&(i.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(i,t,e,n,r),function SE(){return qe.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=n,o.attrs=r;const s=function hc(){const i=qe.lFrame,t=i.currentTNode;return i.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Gs(o,!0),o}function gb(i,t,e,n){if(0===e)return-1;const r=t.length;for(let o=0;oet&&wN(i,t,et,!1),fs(s?2:0,r),e(n,r)}finally{ol(o),fs(s?3:1,r)}}function fM(i,t,e){if(Qf(t)){const n=mi(null);try{const o=t.directiveEnd;for(let s=t.directiveStart;snull;function kN(i,t,e,n){for(let r in i)if(i.hasOwnProperty(r)){e=null===e?{}:e;const o=i[r];null===n?EN(e,t,r,o):n.hasOwnProperty(r)&&EN(e,t,n[r],o)}return e}function EN(i,t,e,n){i.hasOwnProperty(e)?i[e].push(t,n):i[e]=[t,n]}function bs(i,t,e,n,r,o,s,a){const l=wr(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[n])?(wM(i,e,u,n,r),us(t)&&function RK(i,t){const e=qr(t,i);16&e[We]||(e[We]|=64)}(e,t.index)):3&t.type&&(n=function OK(i){return"class"===i?"className":"for"===i?"htmlFor":"formaction"===i?"formAction":"innerHtml"===i?"innerHTML":"readonly"===i?"readOnly":"tabindex"===i?"tabIndex":i}(n),r=null!=s?s(r,t.value||"",n):r,o.setProperty(l,n,r))}function _M(i,t,e,n){if(lm()){const r=null===n?null:{"":-1},o=function VK(i,t){const e=i.directiveRegistry;let n=null,r=null;if(e)for(let o=0;o0;){const e=i[--t];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,n,o)}}(i,t,n,gb(i,e,r.hostVars,vt),r)}function _l(i,t,e,n,r,o){const s=wr(i,t);!function vM(i,t,e,n,r,o,s){if(null==o)i.removeAttribute(t,r,e);else{const a=null==s?at(o):s(o,n||"",r);i.setAttribute(t,r,a,e)}}(t[lt],s,o,i.value,e,n,r)}function $K(i,t,e,n,r,o){const s=o[t];if(null!==s)for(let a=0;a-1&&(vh(t,n),Er(e,n))}this._attachedToViewContainer=!1}zm(this._lView[le],this._lView)}onDestroy(t){xr(this._lView,t)}markForCheck(){_b(this._cdRefInjectingView||this._lView)}detach(){this._lView[We]&=-129}reattach(){N0(this._lView),this._lView[We]|=128}detectChanges(){!function xM(i,t=!0){const e=i[gd],n=e.rendererFactory,r=e.afterRenderEventManager;n.begin?.(),r?.begin();try{const s=i[le];FN(s,i,s.template,i[hi]),function KK(i){let t=0;for(;u_(i);){if(100===t)throw new z(103,!1);t++,BN(i,1)}}(i)}catch(s){throw t&&yx(i,s),s}finally{n.end?.(),e.inlineEffectRunner?.flush(),r?.end()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new z(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function MS(i,t){wh(i,t,t[lt],2,null,null)}(this._lView[le],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new z(902,!1);this._appRef=t}}let Nt=(()=>{class i{static#e=this.__NG_ELEMENT_ID__=ZK}return i})();function ZK(i){return function QK(i,t,e){if(us(i)&&!e){const n=qr(i.index,t);return new bb(n,n)}return 47&i.type?new bb(t[Ni],t):null}(ti(),j(),16==(16&i))}let wx=(()=>{class i{static#e=this.__NG_ELEMENT_ID__=nJ;static#t=this.__NG_ENV_ID__=e=>e}return i})();class iJ extends wx{constructor(t){super(),this._lView=t}onDestroy(t){return xr(this._lView,t),()=>function h_(i,t){if(null===i[el])return;const e=i[el].indexOf(t);-1!==e&&i[el].splice(e,1)}(this._lView,t)}}function nJ(){return new iJ(j())}const rJ=new V("",{providedIn:"root",factory:()=>ee(oJ)});let oJ=(()=>{class i{static#e=this.\u0275prov=oe({token:i,providedIn:"root",factory:()=>new aJ})}return i})(),sJ=(()=>{class i{constructor(){this.queuedEffectCount=0,this.queues=new Map}scheduleEffect(e){const n=e.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(e)||(this.queuedEffectCount++,r.add(e))}flush(){for(;this.queuedEffectCount>0;)for(const[e,n]of this.queues)null===e?this.flushQueue(n):e.run(()=>this.flushQueue(n))}flushQueue(e){for(const n of e)e.delete(n),this.queuedEffectCount--,n.run()}static#e=this.\u0275prov=oe({token:i,providedIn:"root",factory:()=>new i})}return i})();class aJ{constructor(){this.hasQueuedFlush=!1,this.delegate=new sJ,this.flushTask=()=>{this.delegate.flush(),this.hasQueuedFlush=!1}}scheduleEffect(t){this.delegate.scheduleEffect(t),this.hasQueuedFlush||(queueMicrotask(this.flushTask),this.hasQueuedFlush=!0)}}class lJ{constructor(t,e,n,r,o,s){this.scheduler=t,this.effectFn=e,this.creationZone=n,this.errorHandler=o,this.watcher=function Xl(i,t,e){const n=Object.create(Ka);e&&(n.consumerAllowSignalWrites=!0),n.fn=i,n.schedule=t;const r=l=>{n.cleanupFn=l};return n.ref={notify:()=>Fs(n),run:()=>{if(null===n.fn)return;if(function kg(){return Ps}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!Ns(n))return;n.hasRun=!0;const l=Jl(n);try{n.cleanupFn(),n.cleanupFn=Ru,n.fn(r)}finally{Hr(n,l)}},cleanup:()=>n.cleanupFn(),destroy:()=>function s(l){(function o(l){return null===l.fn&&null===l.schedule})(l)||(lo(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=Ru)}(n),[Oi]:n},n.ref}(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(e){this.errorHandler?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function Tc(i,t){!t?.injector&&H_();const e=t?.injector??ee(Jn),n=e.get(Ys,null,{optional:!0}),r=!0!==t?.manualCleanup?e.get(wx):null,o=new lJ(e.get(rJ),i,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),s=e.get(Nt,null,{optional:!0});return s&&8&s._lView[We]?(s._lView[yd]??=[]).push(o.watcher.notify):o.watcher.notify(),o}const HN=new Set;function kh(i){HN.has(i)||(HN.add(i),performance?.mark?.("mark_use_counter",{detail:{feature:i}}))}function CM(i){return t=>{setTimeout(i,void 0,t)}}const pe=class cJ extends de{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r=t,o=e||(()=>null),s=n;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=CM(o),r&&(r=CM(r)),s&&(s=CM(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof Ue&&t.add(a),a}};function zN(...i){}class ge{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1),typeof Zone>"u")throw new z(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function dJ(){const i="function"==typeof Be.requestAnimationFrame;let t=Be[i?"requestAnimationFrame":"setTimeout"],e=Be[i?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function fJ(i){const t=()=>{!function hJ(i){i.isCheckStableRunning||-1!==i.lastRequestAnimationFrameId||(i.lastRequestAnimationFrameId=i.nativeRequestAnimationFrame.call(Be,()=>{i.fakeTopEventTask||(i.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{i.lastRequestAnimationFrameId=-1,kM(i),i.isCheckStableRunning=!0,DM(i),i.isCheckStableRunning=!1},void 0,()=>{},()=>{})),i.fakeTopEventTask.invoke()}),kM(i))}(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,s,a)=>{if(function pJ(i){return!(!Array.isArray(i)||1!==i.length)&&!0===i[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(r,o,s,a);try{return UN(i),e.invokeTask(r,o,s,a)}finally{(i.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||i.shouldCoalesceRunChangeDetection)&&t(),WN(i)}},onInvoke:(e,n,r,o,s,a,l)=>{try{return UN(i),e.invoke(r,o,s,a,l)}finally{i.shouldCoalesceRunChangeDetection&&t(),WN(i)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(i._hasPendingMicrotasks=o.microTask,kM(i),DM(i)):"macroTask"==o.change&&(i.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),i.runOutsideAngular(()=>i.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ge.isInAngularZone())throw new z(909,!1)}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new z(909,!1)}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,uJ,zN,zN);try{return o.runTask(s,e,n)}finally{o.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const uJ={};function DM(i){if(0==i._nesting&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function kM(i){i.hasPendingMicrotasks=!!(i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&-1!==i.lastRequestAnimationFrameId)}function UN(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function WN(i){i._nesting--,DM(i)}class mJ{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}const jN=new V("",{providedIn:"root",factory:$N});function $N(){const i=ee(ge);let t=!0;return Hi(new Vt(r=>{t=i.isStable&&!i.hasPendingMacrotasks&&!i.hasPendingMicrotasks,i.runOutsideAngular(()=>{r.next(t),r.complete()})}),new Vt(r=>{let o;i.runOutsideAngular(()=>{o=i.onStable.subscribe(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!i.hasPendingMacrotasks&&!i.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const s=i.onUnstable.subscribe(()=>{ge.assertInAngularZone(),t&&(t=!1,i.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(_r()))}var Eh=function(i){return i[i.EarlyRead=0]="EarlyRead",i[i.Write=1]="Write",i[i.MixedReadWrite=2]="MixedReadWrite",i[i.Read=3]="Read",i}(Eh||{});const GN={destroy(){}};function KN(i,t){!t&&H_();const e=t?.injector??ee(Jn);if(!function Ke(i){return"browser"===(i??ee(Jn)).get(xc)}(e))return GN;kh("NgAfterNextRender");const n=e.get(xx),r=n.handler??=new YN,o=t?.phase??Eh.MixedReadWrite,s=()=>{r.unregister(l),a()},a=e.get(wx).onDestroy(s),l=new JN(e,o,()=>{s(),i()});return r.register(l),{destroy:s}}class JN{constructor(t,e,n){this.phase=e,this.callbackFn=n,this.zone=t.get(ge),this.errorHandler=t.get(Ys,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class YN{constructor(){this.executingCallbacks=!1,this.buckets={[Eh.EarlyRead]:new Set,[Eh.Write]:new Set,[Eh.MixedReadWrite]:new Set,[Eh.Read]:new Set},this.deferredCallbacks=new Set}validateBegin(){if(this.executingCallbacks)throw new z(102,!1)}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const e of t)e.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let xx=(()=>{class i{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth){for(const e of this.internalCallbacks)e();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=oe({token:i,providedIn:"root",factory:()=>new i})}return i})();function _J(i,t){const e=qr(t,i),n=e[le];!function bJ(i,t){for(let e=t.length;e0&&Zw(i,e,o.join(" "))}}(f,te,g,n),void 0!==e&&function MJ(i,t,e){const n=i.projection=[];for(let r=0;r=0;n--){const r=i[n];r.hostVars=t+=r.hostVars,r.hostAttrs=hd(r.hostAttrs,e=hd(e,r.hostAttrs))}}(n)}function Dx(i){return i===js?{}:i===Ut?[]:i}function IJ(i,t){const e=i.viewQuery;i.viewQuery=e?(n,r)=>{t(n,r),e(n,r)}:t}function OJ(i,t){const e=i.contentQueries;i.contentQueries=e?(n,r,o)=>{t(n,r,o),e(n,r,o)}:t}function RJ(i,t){const e=i.hostBindings;i.hostBindings=e?(n,r)=>{t(n,r),e(n,r)}:t}function dr(i){const t=i.inputConfig,e={};for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];Array.isArray(r)&&r[2]&&(e[n]=r[2])}i.inputTransforms=e}function bl(i,t,e){return i[t]=e}function Rn(i,t,e){return!Object.is(i[t],e)&&(i[t]=e,!0)}function Sh(i,t,e,n){const r=Rn(i,t,e);return Rn(i,t+1,n)||r}function je(i,t,e,n){const r=j();return Rn(r,yn(),t)&&(_t(),_l(si(),r,i,t,e,n)),je}function Qm(i,t,e,n){return Rn(i,yn(),e)?t+at(e)+n:vt}function ep(i,t,e,n,r,o){const a=Sh(i,function qs(){return qe.lFrame.bindingIndex}(),e,r);return Sa(2),a?t+at(e)+n+at(r)+o:vt}function Ex(i,t){return i<<17|t<<2}function jd(i){return i>>17&32767}function SM(i){return 2|i}function Mh(i){return(131068&i)>>2}function MM(i,t){return-131069&i|t<<2}function AM(i){return 1|i}function hL(i,t,e,n,r){const o=i[e+1],s=null===t;let a=n?jd(o):Mh(o),l=!1;for(;0!==a&&(!1===l||s);){const u=i[a+1];jJ(i[a],t)&&(l=!0,i[a+1]=n?AM(u):SM(u)),a=n?jd(u):Mh(u)}l&&(i[e+1]=n?SM(o):AM(o))}function jJ(i,t){return null===i||null==t||(Array.isArray(i)?i[1]:i)===t||!(!Array.isArray(i)||"string"!=typeof t)&&Fd(i,t)>=0}const Zn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fL(i){return i.substring(Zn.key,Zn.keyEnd)}function mL(i,t){const e=Zn.textEnd;return e===t?-1:(t=Zn.keyEnd=function KJ(i,t,e){for(;t32;)t++;return t}(i,Zn.key=t,e),ap(i,t,e))}function ap(i,t,e){for(;t=0;e=mL(t,e))po(i,fL(t),!0)}function Oa(i,t,e,n){const r=j(),o=_t(),s=Sa(2);o.firstUpdatePass&&yL(o,i,s,n),t!==vt&&Rn(r,s,t)&&xL(o,o.data[lr()],r,r[lt],i,r[s+1]=function oY(i,t){return null==i||""===i||("string"==typeof t?i+=t:"object"==typeof i&&(i=Ht(_o(i)))),i}(t,e),n,s)}function Ra(i,t,e,n){const r=_t(),o=Sa(2);r.firstUpdatePass&&yL(r,null,o,n);const s=j();if(e!==vt&&Rn(s,o,e)){const a=r.data[lr()];if(DL(a,n)&&!vL(r,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=zg(l,e||"")),TM(r,a,s,e,n)}else!function rY(i,t,e,n,r,o,s,a){r===vt&&(r=Ut);let l=0,c=0,u=0=i.expandoStartIndex}function yL(i,t,e,n){const r=i.data;if(null===r[e+1]){const o=r[lr()],s=vL(i,e);DL(o,n)&&null===t&&!s&&(t=!1),t=function ZJ(i,t,e,n){const r=b_(i);let o=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(e=xb(e=IM(null,i,t,e,n),t.attrs,n),o=null);else{const s=t.directiveStylingLast;if(-1===s||i[s]!==r)if(e=IM(r,i,t,e,n),null===o){let l=function QJ(i,t,e){const n=e?t.classBindings:t.styleBindings;if(0!==Mh(n))return i[jd(n)]}(i,t,n);void 0!==l&&Array.isArray(l)&&(l=IM(null,i,t,l[1],n),l=xb(l,t.attrs,n),function eY(i,t,e,n){i[jd(e?t.classBindings:t.styleBindings)]=n}(i,t,n,l))}else o=function tY(i,t,e){let n;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const p=jd(i[a+1]);i[n+1]=Ex(p,a),0!==p&&(i[p+1]=MM(i[p+1],n)),i[a+1]=function HJ(i,t){return 131071&i|t<<17}(i[a+1],n)}else i[n+1]=Ex(a,0),0!==a&&(i[a+1]=MM(i[a+1],n)),a=n;else i[n+1]=Ex(l,0),0===a?a=n:i[l+1]=MM(i[l+1],n),l=n;c&&(i[n+1]=SM(i[n+1])),hL(i,u,n,!0),hL(i,u,n,!1),function WJ(i,t,e,n,r){const o=r?i.residualClasses:i.residualStyles;null!=o&&"string"==typeof t&&Fd(o,t)>=0&&(e[n+1]=AM(e[n+1]))}(t,u,i,n,o),s=Ex(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,n)}}function IM(i,t,e,n,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=i[r],c=Array.isArray(l),u=c?l[1]:l,f=null===u;let p=e[r+1];p===vt&&(p=f?Ut:void 0);let g=f?O_(p,n):u===n?p:void 0;if(c&&!Sx(g)&&(g=O_(l,n)),Sx(g)&&(a=g,s))return a;const b=i[r+1];r=s?jd(b):Mh(b)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=O_(l,n))}return a}function Sx(i){return void 0!==i}function DL(i,t){return 0!=(i.flags&(t?8:16))}function lp(i,t,e){Ra(po,wl,Qm(j(),i,t,e),!0)}let TL=(i,t)=>null;function cp(i,t){return TL(i,t)}class NY{destroy(t){}updateValue(t,e){}swap(t,e){const n=Math.min(t,e),r=Math.max(t,e),o=this.detach(r);if(r-n>1){const s=this.detach(n);this.attach(n,o),this.attach(r,s)}else this.attach(n,o)}move(t,e){this.attach(e,this.detach(t))}}function LM(i,t,e,n,r){return i===e&&Object.is(t,n)?1:Object.is(r(i,t),r(e,n))?-1:0}function BM(i,t,e,n){return!(void 0===t||!t.has(n)||(i.attach(e,t.get(n)),t.delete(n),0))}function IL(i,t,e,n,r){if(BM(i,t,n,e(n,r)))i.updateValue(n,r);else{const o=i.create(n,r);i.attach(n,o)}}function OL(i,t,e,n){const r=new Set;for(let o=t;o<=e;o++)r.add(n(o,i.at(o)));return r}class RL{constructor(){this.map=new Map}has(t){const e=this.map.get(t);return void 0!==e&&e.length>0}delete(t){const e=this.map.get(t);return void 0!==e&&(e.shift(),!0)}get(t){const e=this.map.get(t);return void 0!==e&&e.length>0?e[0]:void 0}set(t,e){this.map.has(t)?this.map.get(t)?.push(e):this.map.set(t,[e])}forEach(t){for(const[e,n]of this.map)for(const r of n)t(r,e)}}function Sb(i,t,e,n){const r=t.tView,a=bx(i,r,e,4096&i[We]?4096:16,null,t,null,null,null,n?.injector??null,n?.dehydratedView??null);a[$u]=i[t.index];const c=i[cs];return null!==c&&(a[cs]=c.createEmbeddedView(r)),EM(r,a,e),a}function PL(i,t){const e=fi+t;if(e0&&(e[r-1][as]=t),n{class i{static#e=this.__NG_ELEMENT_ID__=BY}return i})();function BY(){return LL(ti(),j())}const VY=Tr,FL=class extends VY{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ym(this._hostTNode,this._hostLView)}get injector(){return new dn(this._hostTNode,this._hostLView)}get parentInjector(){const t=ll(this._hostTNode,this._hostLView);if(k_(t)){const e=rh(t,this._hostLView),n=nh(t);return new dn(e[le].data[n+8],e)}return new dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=NL(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-fi}createEmbeddedView(t,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const s=cp(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,dp(this._hostTNode,s)),a}createComponent(t,e,n,r,o){const s=t&&!function sh(i){return"function"==typeof i}(t);let a;if(s)a=e;else{const b=e||{};a=b.index,n=b.injector,r=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef}const l=s?t:new vb(xt(t)),c=n||this.parentInjector;if(!o&&null==l.ngModule){const v=(s?c:this.parentInjector).get(Ho,null);v&&(o=v)}const u=xt(l.componentType??{}),f=cp(this._lContainer,u?.id??null),g=l.create(c,r,f?.firstChild??null,o);return this.insertImpl(g.hostView,a,dp(this._hostTNode,f)),g}insert(t,e){return this.insertImpl(t,e,!0)}insertImpl(t,e,n){const r=t._lView;if(function d_(i){return vn(i[Wt])}(r)){const a=this.indexOf(t);if(-1!==a)this.detach(a);else{const l=r[Wt],c=new FL(l,l[sr],l[Wt]);c.detach(c.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;return Mb(s,r,o,n),t.attachToViewContainerRef(),nw(HM(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=NL(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=vh(this._lContainer,e);n&&(Er(HM(this._lContainer),e),zm(n[le],n))}detach(t){const e=this._adjustIndex(t,-1),n=vh(this._lContainer,e);return n&&null!=Er(HM(this._lContainer),e)?new bb(n):null}_adjustIndex(t,e=0){return t??this.length+e}};function NL(i){return i[8]}function HM(i){return i[8]||(i[8]=[])}function LL(i,t){let e;const n=t[i.index];return vn(n)?e=n:(e=TN(n,t,null,i),t[i.index]=e,vx(t,e)),BL(e,t,i,n),new FL(e,i,t)}let BL=function HL(i,t,e,n){if(i[$s])return;let r;r=8&e.type?_i(n):function HY(i,t){const e=i[lt],n=e.createComment(""),r=wr(t,i);return Ec(e,Um(e,r),n,function RS(i,t){return i.nextSibling(t)}(e,r),!1),n}(t,e),i[$s]=r},zM=(i,t,e)=>!1;function _e(i,t,e,n,r,o,s,a){const l=j(),c=_t(),u=i+et,f=c.firstCreatePass?function jY(i,t,e,n,r,o,s,a,l){const c=t.consts,u=Xm(t,i,4,s||null,tt(c,a));_M(t,e,u,tt(c,l)),mm(t,u);const f=u.tView=gM(2,u,n,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return null!==t.queries&&(t.queries.template(t,u),f.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,n,r,o,s):c.data[u];Gs(f,!1);const p=zL(c,l,f,i);eh()&&Wm(c,l,p,f),cr(p,l);const g=TN(p,l,p,f);return l[u]=g,vx(l,g),function VL(i,t,e){return zM(i,t,e)}(g,f,l),hs(f)&&mM(c,l,f),null!=s&&pM(l,f,a),_e}let zL=function UL(i,t,e,n){return al(!0),t[lt].createComment("")};function xe(i,t,e){kh("NgControlFlow");const n=j(),r=yn(),o=UM(n,et+i);if(Rn(n,r,t)){const a=mi(null);try{if(VM(o,0),-1!==t){const l=WM(n[le],et+t),c=cp(o,l.tView.ssrId);Mb(o,Sb(n,l,e,{dehydratedView:c}),0,dp(l,c))}}finally{mi(a)}}else{const a=PL(o,0);void 0!==a&&(a[hi]=e)}}class qY{constructor(t,e,n){this.lContainer=t,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-fi}}function up(i){return i}function Ah(i,t){return t}class KY{constructor(t,e,n){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=n}}function Yr(i,t,e,n,r,o,s,a,l,c,u){kh("NgControlFlow");const f=void 0!==l,p=j(),g=a?s.bind(p[Ni][hi]):s,b=new KY(f,g);p[et+i]=b,_e(i+1,t,e,n,r,o),f&&_e(i+2,l,c,u)}class JY extends NY{constructor(t,e,n){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-fi}at(t){return this.getLView(t)[hi].$implicit}attach(t,e){const n=e[ls];this.needsIndexUpdate||=t!==this.length,Mb(this.lContainer,e,t,dp(this.templateTNode,n))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function YY(i,t){return vh(i,t)}(this.lContainer,t)}create(t,e){const n=cp(this.lContainer,this.templateTNode.tView.ssrId);return Sb(this.hostLView,this.templateTNode,new qY(this.lContainer,e,t),{dehydratedView:n})}destroy(t){zm(t[le],t)}updateValue(t,e){this.getLView(t)[hi].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{i.destroy(a)})}(s,i,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){const a=yn(),l=0===s.length;if(Rn(n,a,l)){const c=e+2,u=UM(n,c);if(l){const f=WM(r,c),p=cp(u,f.tView.ssrId);Mb(u,Sb(n,f,void 0,{dehydratedView:p}),0,dp(f,p))}else VM(u,0)}}}finally{mi(t)}}function UM(i,t){return i[t]}function WM(i,t){return Ku(i,t)}function D(i,t,e,n){const r=j(),o=_t(),s=et+i,a=r[lt],l=o.firstCreatePass?function MX(i,t,e,n,r,o){const s=t.consts,l=Xm(t,i,2,n,tt(s,r));return _M(t,e,l,tt(s,o)),null!==l.attrs&&Cx(l,l.attrs,!1),null!==l.mergedAttrs&&Cx(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,r,t,e,n):o.data[s],c=uB(o,r,l,a,t,i);r[s]=c;const u=hs(l);return Gs(l,!0),Qw(a,c,l),32!=(32&l.flags)&&eh()&&Wm(o,r,c,l),0===function L0(){return qe.lFrame.elementDepthCount}()&&cr(c,r),function fo(){qe.lFrame.elementDepthCount++}(),u&&(mM(o,r,l),fM(o,l,r)),null!==n&&pM(r,l),D}function E(){let i=ti();g_()?__():(i=i.parent,Gs(i,!1));const t=i;(function cm(i){return qe.skipHydrationRootTNode===i})(t)&&function m_(){qe.skipHydrationRootTNode=null}(),function nl(){qe.lFrame.elementDepthCount--}();const e=_t();return e.firstCreatePass&&(mm(e,i),Qf(i)&&e.queries.elementEnd(i)),null!=t.classesWithoutHost&&function ME(i){return 0!=(8&i.flags)}(t)&&TM(e,t,j(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function D_(i){return 0!=(16&i.flags)}(t)&&TM(e,t,j(),t.stylesWithoutHost,!1),E}function q(i,t,e,n){return D(i,t,e,n),E(),q}let uB=(i,t,e,n,r,o)=>(al(!0),bh(n,r,function Ks(){return qe.lFrame.currentNamespace}()));function Ci(){return j()}function Qs(i,t,e){const n=j();return Rn(n,yn(),t)&&bs(_t(),si(),n,i,t,n[lt],e,!0),Qs}function eA(i,t,e){const n=j();if(Rn(n,yn(),t)){const o=_t(),s=si();bs(o,s,n,i,t,PN(b_(o.data),s,n),e,!0)}return eA}const vp="en-US";let gB=vp;function Lb(i){return!!i&&"function"==typeof i.then}function zB(i){return!!i&&"function"==typeof i.subscribe}function Q(i,t,e,n){const r=j(),o=_t(),s=ti();return UB(o,r,r[lt],s,i,t,n),Q}function nA(i,t){const e=ti(),n=j(),r=_t();return UB(r,n,PN(b_(r.data),e,n),e,i,t),nA}function UB(i,t,e,n,r,o,s){const a=hs(n),c=i.firstCreatePass&&RN(i),u=t[hi],f=ON(t);let p=!0;if(3&n.type||s){const v=wr(n,t),C=s?s(v):v,S=f.length,M=s?H=>s(_i(H[n.index])):n.index;let L=null;if(!s&&a&&(L=function TZ(i,t,e,n){const r=i.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(i,t,r,n.index)),null!==L)(L.__ngLastListenerFn__||L).__ngNextListenerFn__=o,L.__ngLastListenerFn__=o,p=!1;else{o=jB(n,t,u,o,!1);const H=e.listen(C,r,o);f.push(o,H),c&&c.push(r,M,S,S+1)}}else o=jB(n,t,u,o,!1);const g=n.outputs;let b;if(p&&null!==g&&(b=g[r])){const v=b.length;if(v)for(let C=0;C-1?qr(i.index,t):t);let l=WB(t,e,n,s),c=o.__ngNextListenerFn__;for(;c;)l=WB(t,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&s.preventDefault(),l}}function ie(i=1){return function hm(i){return(qe.lFrame.contextLView=function kd(i,t){for(;i>0;)t=t[_d],i--;return t}(i,qe.lFrame.contextLView))[hi]}(i)}function IZ(i,t){let e=null;const n=function fE(i){const t=i.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(i);for(let r=0;r(al(!0),function Hm(i,t){return i.createText(t)}(t[lt],n));function qt(i){return Li("",i,""),qt}function Li(i,t,e){const n=j(),r=Qm(n,i,t,e);return r!==vt&&Ac(n,lr(),r),Li}function Oh(i,t,e,n,r){const o=j(),s=ep(o,i,t,e,n,r);return s!==vt&&Ac(o,lr(),s),Oh}function oA(i,t,e,n,r){if(i=Le(i),Array.isArray(i))for(let o=0;o>20;if(vc(i)||!i.multi){const g=new Ve(c,r,x),b=aA(l,t,r?u:u+p,f);-1===b?(xm(Sd(a,s),o,l),sA(o,i,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(g),s.push(g)):(e[b]=g,s[b]=g)}else{const g=aA(l,t,u+p,f),b=aA(l,t,u,u+p),C=b>=0&&e[b];if(r&&!C||!r&&!(g>=0&&e[g])){xm(Sd(a,s),o,l);const S=function qZ(i,t,e,n,r){const o=new Ve(i,e,x);return o.multi=[],o.index=t,o.componentProviders=0,g3(o,r,n&&!e),o}(r?GZ:$Z,e.length,r,n,c);!r&&C&&(e[b].providerFactory=S),sA(o,i,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(S),s.push(S)}else sA(o,i,g>-1?g:b,g3(e[r?b:g],c,!r&&n));!r&&n&&C&&e[b].componentProviders++}}}function sA(i,t,e,n){const r=vc(t),o=function nS(i){return!!i.useClass}(t);if(r||o){const l=(o?Le(t.useClass):t).prototype.ngOnDestroy;if(l){const c=i.destroyHooks||(i.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[n,l]):c[u+1].push(n,l)}else c.push(e,l)}}}function g3(i,t,e){return e&&i.componentProviders++,i.multi.push(t)-1}function aA(i,t,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function jZ(i,t,e){const n=_t();if(n.firstCreatePass){const r=No(i);oA(e,n.data,n.blueprint,r,!0),oA(t,n.data,n.blueprint,r,!1)}}(n,r?r(i):i,t)}}class Rh{}class _3{}class cA extends Rh{constructor(t,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new XN(this);const r=or(t);this._bootstrapComponents=wn(r.bootstrap),this._r3Injector=j_(t,e,[{provide:Rh,useValue:this},{provide:Jm,useValue:this.componentFactoryResolver},...n],Ht(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dA extends _3{constructor(t){super(),this.moduleType=t}create(t){return new cA(this.moduleType,t,[])}}class b3 extends Rh{constructor(t){super(),this.componentFactoryResolver=new XN(this),this.instance=null;const e=new Bd([...t.providers,{provide:Rh,useValue:this},{provide:Jm,useValue:this.componentFactoryResolver}],t.parent||Tm(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function uA(i,t,e=null){return new b3({providers:i,parent:t,debugName:e,runEnvironmentInitializers:!0}).injector}let YZ=(()=>{class i{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=uw(0,e.type),r=n.length>0?uA([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=oe({token:i,providedIn:"environment",factory:()=>new i(U(Ho))})}return i})();function vi(i){kh("NgStandalone"),i.getStandaloneInjector=t=>t.get(YZ).getOrCreateStandaloneInjector(i)}function yp(i,t,e){const n=ar()+i,r=j();return r[n]===vt?bl(r,n,e?t.call(e):t()):function yb(i,t){return i[t]}(r,n)}function Bb(i,t,e,n){return S3(j(),ar(),i,t,e,n)}function E3(i,t,e,n,r){return function M3(i,t,e,n,r,o,s){const a=t+e;return Sh(i,a,r,o)?bl(i,a+2,s?n.call(s,r,o):n(r,o)):Vb(i,a+2)}(j(),ar(),i,t,e,n,r)}function Vb(i,t){const e=i[t];return e===vt?void 0:e}function S3(i,t,e,n,r,o){const s=t+e;return Rn(i,s,r)?bl(i,s+1,o?n.call(o,r):n(r)):Vb(i,s+1)}function Ph(i,t){const e=_t();let n;const r=i+et;e.firstCreatePass?(n=function mQ(i,t){if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];if(i===n.name)return n}}(t,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];const o=n.factory||(n.factory=dc(n.type)),a=B(x);try{const l=wm(!1),c=o();return wm(l),function OZ(i,t,e,n){e>=i.data.length&&(i.data[e]=null,i.blueprint[e]=null),t[e]=n}(e,j(),r,c),c}finally{B(a)}}function Fh(i,t,e){const n=i+et,r=j(),o=il(r,n);return function Hb(i,t){return i[le].data[t].pure}(r,n)?S3(r,ar(),t,o.transform,e,o):o.transform(e)}function vQ(){return this._results[Symbol.iterator]()}class Ic{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new pe)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ic.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=vQ)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const n=function Kr(i){return i.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function BE(i,t,e){if(i.length!==t.length)return!1;for(let n=0;n{class i{static#e=this.__NG_ELEMENT_ID__=xQ}return i})();const yQ=jo,wQ=class extends yQ{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,e){return this.createEmbeddedViewImpl(t,e)}createEmbeddedViewImpl(t,e,n){const r=Sb(this._declarationLView,this._declarationTContainer,t,{injector:e,dehydratedView:n});return new bb(r)}};function xQ(){return Wx(ti(),j())}function Wx(i,t){return 4&i.type?new wQ(t,i,Ym(i,t)):null}class fA{constructor(t){this.queryList=t,this.matches=null}clone(){return new fA(this.queryList)}setDirty(){this.queryList.setDirty()}}class mA{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let o=0;o0)n.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let f=fi;f{class i{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=ee(xA,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(Lb(o))e.push(o);else if(zB(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Z3=(()=>{class i{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"platform"})}return i})();const xl=new V("LocaleId",{providedIn:"root",factory:()=>ee(xl,wt.Optional|wt.SkipSelf)||function YQ(){return typeof $localize<"u"&&$localize.locale||vp}()});let eV=(()=>{class i{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new gr(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class iee{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let tV=(()=>{class i{compileModuleSync(e){return new dA(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=wn(or(e).declarations).reduce((s,a)=>{const l=xt(a);return l&&s.push(new vb(l)),s},[]);return new iee(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const sV=new V(""),Gx=new V("");let SA,kA=(()=>{class i{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,SA||(function See(i){SA=i}(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}static#e=this.\u0275fac=function(n){return new(n||i)(U(ge),U(EA),U(Gx))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})(),EA=(()=>{class i{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return SA?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"platform"})}return i})(),Gd=null;const aV=new V("AllowMultipleToken"),MA=new V("PlatformDestroyListeners"),AA=new V("appBootstrapListener");function dV(i,t,e=[]){const n=`Platform: ${t}`,r=new V(n);return(o=[])=>{let s=TA();if(!s||s.injector.get(aV,!1)){const a=[...e,...o,{provide:r,useValue:!0}];i?i(a):function Tee(i){if(Gd&&!Gd.get(aV,!1))throw new z(400,!1);(function lV(){!function Mg(i){es=i}(()=>{throw new z(600,!1)})})(),Gd=i;const t=i.get(hV);(function cV(i){i.get(ww,null)?.forEach(e=>e())})(i)}(function uV(i=[],t){return Jn.create({name:t,providers:[{provide:L_,useValue:"platform"},{provide:MA,useValue:new Set([()=>Gd=null])},...i]})}(a,n))}return function Oee(i){const t=TA();if(!t)throw new z(401,!1);return t}()}}function TA(){return Gd?.get(hV)??null}let hV=(()=>{class i{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function Ree(i="zone.js",t){return"noop"===i?new mJ:"zone.js"===i?new ge(t):i}(n?.ngZone,function fV(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return r.run(()=>{const o=function JZ(i,t,e){return new cA(i,t,e)}(e.moduleType,this.injector,function bV(i){return[{provide:ge,useFactory:i},{provide:bc,multi:!0,useFactory:()=>{const t=ee(Fee,{optional:!0});return()=>t.initialize()}},{provide:_V,useFactory:Pee},{provide:jN,useFactory:$N}]}(()=>r)),s=o.injector.get(Ys,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{qx(this._modules,o),a.unsubscribe()})}),function mV(i,t,e){try{const n=e();return Lb(n)?n.catch(r=>{throw t.runOutsideAngular(()=>i.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>i.handleError(n)),n}}(s,r,()=>{const a=o.injector.get(CA);return a.runInitializers(),a.donePromise.then(()=>(function _B(i){bn(i,"Expected localeId to be defined"),"string"==typeof i&&(gB=i.toLowerCase().replace(/_/g,"-"))}(o.injector.get(xl,vp)||vp),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,n=[]){const r=pV({},n);return function Mee(i,t,e){const n=new dA(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(qd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new z(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new z(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(MA,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||i)(U(Jn))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"platform"})}return i})();function pV(i,t){return Array.isArray(t)?t.reduce(pV,i):{...i,...t}}let qd=(()=>{class i{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ee(_V),this.zoneIsStable=ee(jN),this.componentTypes=[],this.components=[],this.isStable=ee(eV).hasPendingTasks.pipe(Mn(e=>e?Ie(!1):this.zoneIsStable),sd(),_r()),this._injector=ee(Ho)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const r=e instanceof oN;if(!this._injector.get(CA).done)throw!r&&function Qa(i){const t=xt(i)||xi(i)||Gn(i);return null!==t&&t.standalone}(e),new z(405,!1);let s;s=r?e:this._injector.get(Jm).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Aee(i){return i.isBoundToModule}(s)?void 0:this._injector.get(Rh),c=s.create(Jn.NULL,[],n||s.selector,a),u=c.location.nativeElement,f=c.injector.get(sV,null);return f?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),qx(this.components,c),f?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new z(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;qx(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(AA,[]);[...this._bootstrapListeners,...n].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>qx(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new z(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function qx(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}const _V=new V("",{providedIn:"root",factory:()=>ee(Ys).handleError.bind(void 0)});function Pee(){const i=ee(ge),t=ee(Ys);return e=>i.runOutsideAngular(()=>t.handleError(e))}let Fee=(()=>{class i{constructor(){this.zone=ee(ge),this.applicationRef=ee(qd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const Uee=dV(null,"core",[]);let Wee=(()=>{class i{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||i)(U(qd))};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();function Ct(i){return"boolean"==typeof i?i:null!=i&&"false"!==i}let VA=null;function Kd(){return VA}class pte{}const it=new V("DocumentToken");let HA=(()=>{class i{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>ee(_te),providedIn:"platform"})}return i})();const gte=new V("Location Initialized");let _te=(()=>{class i extends HA{constructor(){super(),this._doc=ee(it),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Kd().getBaseHref(this._doc)}onPopState(e){const n=Kd().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Kd().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>new i,providedIn:"platform"})}return i})();function zA(i,t){if(0==i.length)return t;if(0==t.length)return i;let e=0;return i.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?i+t.substring(1):1==e?i+t:i+"/"+t}function HV(i){const t=i.match(/#|\?|$/),e=t&&t.index||i.length;return i.slice(0,e-("/"===i[e-1]?1:0))+i.slice(e)}function Oc(i){return i&&"?"!==i[0]?"?"+i:i}let Lh=(()=>{class i{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>ee(UV),providedIn:"root"})}return i})();const zV=new V("appBaseHref");let UV=(()=>{class i extends Lh{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ee(it).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return zA(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Oc(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const s=this.prepareExternalUrl(r+Oc(o));this._platformLocation.pushState(e,n,s)}replaceState(e,n,r,o){const s=this.prepareExternalUrl(r+Oc(o));this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||i)(U(HA),U(zV,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),bte=(()=>{class i extends Lh{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=zA(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let s=this.prepareExternalUrl(r+Oc(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,n,s)}replaceState(e,n,r,o){let s=this.prepareExternalUrl(r+Oc(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||i)(U(HA),U(zV,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})(),Dp=(()=>{class i{constructor(e){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function wte(i){if(new RegExp("^(https?:)?//").test(i)){const[,e]=i.split(/\/\/[^\/]+/);return e}return i}(HV(WV(n))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Oc(n))}normalize(e){return i.stripTrailingSlash(function yte(i,t){if(!i||!t.startsWith(i))return t;const e=t.substring(i.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,WV(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Oc(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Oc(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}static#e=this.normalizeQueryParams=Oc;static#t=this.joinWithSlash=zA;static#i=this.stripTrailingSlash=HV;static#n=this.\u0275fac=function(n){return new(n||i)(U(Lh))};static#r=this.\u0275prov=oe({token:i,factory:()=>function vte(){return new Dp(U(Lh))}(),providedIn:"root"})}return i})();function WV(i){return i.replace(/\/index.html$/,"")}const XA=/\s+/,ZV=[];let hC=(()=>{class i{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=ZV,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(XA):ZV}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(XA):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(XA).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(n){return new(n||i)(x(gx),x(mb),x(Ee),x(Mc))};static#t=this.\u0275dir=ne({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return i})(),t4=(()=>{class i{constructor(e,n){this._viewContainer=e,this._context=new cie,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){i4("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){i4("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||i)(x(Tr),x(jo))};static#t=this.\u0275dir=ne({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return i})();class cie{constructor(){this.$implicit=null,this.ngIf=null}}function i4(i,t){if(t&&!t.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${Ht(t)}'.`)}let eT=(()=>{class i{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,n,r),get:(e,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static#e=this.\u0275fac=function(n){return new(n||i)(x(Tr))};static#t=this.\u0275dir=ne({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zi]})}return i})();class pie{createSubscription(t,e){return mx(()=>t.subscribe({next:e,error:n=>{throw n}}))}dispose(t){mx(()=>t.unsubscribe())}}class gie{createSubscription(t,e){return t.then(e,n=>{throw n})}dispose(t){}}const _ie=new gie,bie=new pie;let r4=(()=>{class i{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Lb(e))return _ie;if(zB(e))return bie;throw function Na(i,t){return new z(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}static#e=this.\u0275fac=function(n){return new(n||i)(x(Nt,16))};static#t=this.\u0275pipe=$r({name:"async",type:i,pure:!1,standalone:!0})}return i})(),Fc=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();const s4="browser";function a4(i){return"server"===i}let Hie=(()=>{class i{static#e=this.\u0275prov=oe({token:i,providedIn:"root",factory:()=>new zie(U(it),window)})}return i})();class zie{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function Uie(i,t){const e=i.getElementById(t)||i.getElementsByName(t)[0];if(e)return e;if("function"==typeof i.createTreeWalker&&i.body&&"function"==typeof i.body.attachShadow){const n=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class hne extends pte{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oT extends hne{static makeCurrent(){!function mte(i){VA||(VA=i)}(new oT)}onAndCancel(t,e,n){return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function fne(){return Jb=Jb||document.querySelector("base"),Jb?Jb.getAttribute("href"):null}();return null==e?null:function mne(i){return new URL(i,"http://a").pathname}(e)}resetBaseElement(){Jb=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function oie(i,t){t=encodeURIComponent(t);for(const e of i.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let Jb=null,gne=(()=>{class i{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();const sT=new V("EventManagerPlugins");let u4=(()=>{class i{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new z(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||i)(U(sT),U(ge))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();class h4{constructor(t){this._doc=t}}const aT="ng-app-id";let f4=(()=>{class i{constructor(e,n,r,o={}){this.doc=e,this.appId=n,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=a4(o),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(r=>r.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${aT}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(r=>{null!=r.textContent&&n.set(r.textContent,r)}),n}return null}changeUsageCount(e,n){const r=this.styleRef;if(r.has(e)){const o=r.get(e);return o.usage+=n,o.usage}return r.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const r=this.styleNodesInDOM,o=r?.get(n);if(o?.parentNode===e)return r.delete(n),o.removeAttribute(aT),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute(aT,this.appId),e.appendChild(s),s}}addStyleToHost(e,n){const r=this.getStyleElement(e,n),o=this.styleRef,s=o.get(n)?.elements;s?s.push(r):o.set(n,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||i)(U(it),U(uh),U(q_,8),U(xc))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();const lT={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/"},cT=/%COMP%/g,yne=new V("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function p4(i,t){return t.map(e=>e.replace(cT,i))}let dT=(()=>{class i{constructor(e,n,r,o,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=a4(a),this.defaultRenderer=new uT(e,s,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Ro.ShadowDom&&(n={...n,encapsulation:Ro.Emulated});const r=this.getOrCreateRenderer(e,n);return r instanceof _4?r.applyToHost(e):r instanceof hT&&r.applyStyles(),r}getOrCreateRenderer(e,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(n.encapsulation){case Ro.Emulated:o=new _4(l,c,n,this.appId,u,s,a,f);break;case Ro.ShadowDom:return new Dne(l,c,e,n,s,a,this.nonce,f);default:o=new hT(l,c,n,u,s,a,f)}r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||i)(U(u4),U(f4),U(uh),U(yne),U(it),U(xc),U(ge),U(q_))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();class uT{constructor(t,e,n,r){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(lT[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(g4(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(g4(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new z(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const o=lT[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=lT[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(pl.DashCase|pl.Important)?t.style.setProperty(e,n,r&pl.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&pl.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){null!=t&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n){if("string"==typeof t&&!(t=Kd().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(n))}decoratePreventDefault(t){return e=>{if("__ngUnwrap__"===e)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))&&e.preventDefault()}}}function g4(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class Dne extends uT{constructor(t,e,n,r,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=p4(r.id,r.styles);for(const u of c){const f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=u,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class hT extends uT{constructor(t,e,n,r,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?p4(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class _4 extends hT{constructor(t,e,n,r,o,s,a,l){const c=r+"-"+n.id;super(t,e,n,o,s,a,l,c),this.contentAttr=function wne(i){return"_ngcontent-%COMP%".replace(cT,i)}(c),this.hostAttr=function xne(i){return"_nghost-%COMP%".replace(cT,i)}(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}let kne=(()=>{class i extends h4{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}static#e=this.\u0275fac=function(n){return new(n||i)(U(it))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();const b4=["alt","control","meta","shift"],Ene={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Sne={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let Mne=(()=>{class i extends h4{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,n,r){const o=i.parseEventName(n),s=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Kd().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=i._normalizeKey(n.pop());let s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),b4.forEach(c=>{const u=n.indexOf(c);u>-1&&(n.splice(u,1),s+=c+".")}),s+=o,0!=n.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,n){let r=Ene[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),b4.forEach(s=>{s!==r&&(0,Sne[s])(e)&&(o+=s+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{i.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||i)(U(it))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();const One=dV(Uee,"browser",[{provide:xc,useValue:s4},{provide:ww,useValue:function Ane(){oT.makeCurrent()},multi:!0},{provide:it,useFactory:function Ine(){return function uS(i){Rm=i}(document),document},deps:[]}]),Rne=new V(""),w4=[{provide:Gx,useClass:class pne{addToWindow(t){Be.getAngularTestability=(n,r=!0)=>{const o=t.findTestabilityInTree(n,r);if(null==o)throw new z(5103,!1);return o},Be.getAllAngularTestabilities=()=>t.getAllTestabilities(),Be.getAllAngularRootElements=()=>t.getAllRootElements(),Be.frameworkStabilizers||(Be.frameworkStabilizers=[]),Be.frameworkStabilizers.push(n=>{const r=Be.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&n(s)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(t,e,n){return null==e?null:t.getTestability(e)??(n?Kd().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:sV,useClass:kA,deps:[ge,EA,Gx]},{provide:kA,useClass:kA,deps:[ge,EA,Gx]}],x4=[{provide:L_,useValue:"root"},{provide:Ys,useFactory:function Tne(){return new Ys},deps:[]},{provide:sT,useClass:kne,multi:!0,deps:[it,ge,xc]},{provide:sT,useClass:Mne,multi:!0,deps:[it]},dT,f4,u4,{provide:aM,useExisting:dT},{provide:class Wie{},useClass:gne,deps:[]},[]];let C4=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:uh,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||i)(U(Rne,12))};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:[...x4,...w4],imports:[Fc,Wee]})}return i})(),D4=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||i)(U(it))};static#t=this.\u0275prov=oe({token:i,factory:function(n){let r=null;return r=n?new n:function Fne(){return new D4(U(it))}(),r},providedIn:"root"})}return i})();typeof window<"u"&&window;let mT=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:function(n){let r=null;return r=n?new(n||i):U(S4),r},providedIn:"root"})}return i})(),S4=(()=>{class i extends mT{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case _.NONE:return n;case _.HTML:return Uo(n,"HTML")?_o(n):d(this._doc,String(n)).toString();case _.STYLE:return Uo(n,"Style")?_o(n):n;case _.SCRIPT:if(Uo(n,"Script"))return _o(n);throw new z(5200,!1);case _.URL:return Uo(n,"URL")?_o(n):Gm(String(n));case _.RESOURCE_URL:if(Uo(n,"ResourceURL"))return _o(n);throw new z(5201,!1);default:throw new z(5202,!1)}}bypassSecurityTrustHtml(e){return function $S(i){return new HS(i)}(e)}bypassSecurityTrustStyle(e){return function GS(i){return new zS(i)}(e)}bypassSecurityTrustScript(e){return function qS(i){return new US(i)}(e)}bypassSecurityTrustUrl(e){return function nx(i){return new WS(i)}(e)}bypassSecurityTrustResourceUrl(e){return function KS(i){return new lb(i)}(e)}static#e=this.\u0275fac=function(n){return new(n||i)(U(it))};static#t=this.\u0275prov=oe({token:i,factory:function(n){let r=null;return r=n?new n:function Vne(i){return new S4(i.get(it))}(U(Jn)),r},providedIn:"root"})}return i})();const{isArray:Hne}=Array,{getPrototypeOf:zne,prototype:Une,keys:Wne}=Object;function A4(i){if(1===i.length){const t=i[0];if(Hne(t))return{args:t,keys:null};if(function jne(i){return i&&"object"==typeof i&&zne(i)===Une}(t)){const e=Wne(t);return{args:e.map(n=>t[n]),keys:e}}}return{args:i,keys:null}}const{isArray:$ne}=Array;function pT(i){return ue(t=>function Gne(i,t){return $ne(t)?i(...t):i(t)}(i,t))}function T4(i,t){return i.reduce((e,n,r)=>(e[n]=t[r],e),{})}function I4(...i){const t=d0(i),{args:e,keys:n}=A4(i),r=new Vt(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{f||(f=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!f)&&(c||o.next(n?T4(n,a):a),o.complete())}))}});return t?r.pipe(pT(t)):r}let O4=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Mc),x(Ee))};static#t=this.\u0275dir=ne({type:i})}return i})(),Bh=(()=>{class i extends O4{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275dir=ne({type:i,features:[Ae]})}return i})();const Ir=new V("NgValueAccessor"),Kne={provide:Ir,useExisting:At(()=>Cl),multi:!0},Yne=new V("CompositionEventMode");let Cl=(()=>{class i extends O4{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Jne(){const i=Kd()?Kd().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Mc),x(Ee),x(Yne,8))};static#t=this.\u0275dir=ne({type:i,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(n,r){1&n&&Q("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Re([Kne]),Ae]})}return i})();function Yd(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function P4(i){return null!=i&&"number"==typeof i.length}const Or=new V("NgValidators"),Xd=new V("NgAsyncValidators"),Xne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class gT{static min(t){return function F4(i){return t=>{if(Yd(t.value)||Yd(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Yd(t.value)||Yd(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}(t)}static required(t){return L4(t)}static requiredTrue(t){return function B4(i){return!0===i.value?null:{required:!0}}(t)}static email(t){return function V4(i){return Yd(i.value)||Xne.test(i.value)?null:{email:!0}}(t)}static minLength(t){return function H4(i){return t=>Yd(t.value)||!P4(t.value)?null:t.value.lengthP4(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}(t)}static pattern(t){return function U4(i){if(!i)return pC;let t,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(Yd(n.value))return null;const r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return K4(t)}static composeAsync(t){return J4(t)}}function L4(i){return Yd(i.value)?{required:!0}:null}function pC(i){return null}function W4(i){return null!=i}function j4(i){return Lb(i)?ln(i):i}function $4(i){let t={};return i.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function G4(i,t){return t.map(e=>e(i))}function q4(i){return i.map(t=>function Zne(i){return!i.validate}(t)?t:e=>t.validate(e))}function K4(i){if(!i)return null;const t=i.filter(W4);return 0==t.length?null:function(e){return $4(G4(e,t))}}function _T(i){return null!=i?K4(q4(i)):null}function J4(i){if(!i)return null;const t=i.filter(W4);return 0==t.length?null:function(e){return I4(G4(e,t).map(j4)).pipe(ue($4))}}function bT(i){return null!=i?J4(q4(i)):null}function Y4(i,t){return null===i?[t]:Array.isArray(i)?[...i,t]:[i,t]}function X4(i){return i._rawValidators}function Z4(i){return i._rawAsyncValidators}function vT(i){return i?Array.isArray(i)?i:[i]:[]}function gC(i,t){return Array.isArray(i)?i.includes(t):i===t}function Q4(i,t){const e=vT(t);return vT(i).forEach(r=>{gC(e,r)||e.push(r)}),e}function eH(i,t){return vT(t).filter(e=>!gC(i,e))}class tH{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=_T(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=bT(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Do extends tH{get formDirective(){return null}get path(){return null}}class La extends tH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class iH{constructor(t){this._cd=t}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}}let Zd=(()=>{class i extends iH{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||i)(x(La,2))};static#t=this.\u0275dir=ne({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Pe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ae]})}return i})(),nH=(()=>{class i extends iH{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Do,10))};static#t=this.\u0275dir=ne({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Pe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Ae]})}return i})();const Yb="VALID",bC="INVALID",Ep="PENDING",Xb="DISABLED";function xT(i){return(vC(i)?i.validators:i)||null}function CT(i,t){return(vC(t)?t.asyncValidators:i)||null}function vC(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}class aH{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Yb}get invalid(){return this.status===bC}get pending(){return this.status==Ep}get disabled(){return this.status===Xb}get enabled(){return this.status!==Xb}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Q4(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Q4(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(eH(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(eH(t,this._rawAsyncValidators))}hasValidator(t){return gC(this._rawValidators,t)}hasAsyncValidator(t){return gC(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ep,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Xb,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Yb,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yb||this.status===Ep)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xb:Yb}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ep,this._hasOwnPendingAsyncValidator=!0;const e=j4(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?Xb:this.errors?bC:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ep)?Ep:this._anyControlsHaveStatus(bC)?bC:Yb}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){vC(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function ire(i){return Array.isArray(i)?_T(i):i||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function nre(i){return Array.isArray(i)?bT(i):i||null}(this._rawAsyncValidators)}}class DT extends aH{constructor(t,e,n){super(xT(e),CT(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function sH(i,t,e){i._forEachChild((n,r)=>{if(void 0===e[r])throw new z(1002,"")})})(this,0,t),Object.keys(t).forEach(n=>{(function oH(i,t,e){const n=i.controls;if(!(t?Object.keys(n):n).length)throw new z(1e3,"");if(!n[e])throw new z(1001,"")})(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{const r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Vh=new V("CallSetDisabledState",{providedIn:"root",factory:()=>Zb}),Zb="always";function Qb(i,t,e=Zb){kT(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(i.disabled),function sre(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&lH(i,t)})}(i,t),function lre(i,t){const e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,t),function are(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&lH(i,t),"submit"!==i.updateOn&&i.markAsTouched()})}(i,t),function ore(i,t){if(t.valueAccessor.setDisabledState){const e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,t)}function wC(i,t,e=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),CC(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function xC(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function kT(i,t){const e=X4(i);null!==t.validator?i.setValidators(Y4(e,t.validator)):"function"==typeof e&&i.setValidators([e]);const n=Z4(i);null!==t.asyncValidator?i.setAsyncValidators(Y4(n,t.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);const r=()=>i.updateValueAndValidity();xC(t._rawValidators,r),xC(t._rawAsyncValidators,r)}function CC(i,t){let e=!1;if(null!==i){if(null!==t.validator){const r=X4(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,i.setValidators(o))}}if(null!==t.asyncValidator){const r=Z4(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,i.setAsyncValidators(o))}}}const n=()=>{};return xC(t._rawValidators,n),xC(t._rawAsyncValidators,n),e}function lH(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function cH(i,t){kT(i,t)}function ST(i,t){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function dH(i,t){i._syncPendingControls(),t.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function MT(i,t){if(!t)return null;let e,n,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Cl?e=o:function ure(i){return Object.getPrototypeOf(i.constructor)===Bh}(o)?n=o:r=o}),r||n||e||null}const fre={provide:Do,useExisting:At(()=>Hh)},ev=(()=>Promise.resolve())();let Hh=(()=>{class i extends Do{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new pe,this.form=new DT({},_T(e),bT(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ev.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Qb(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ev.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ev.then(()=>{const n=this._findContainer(e.path),r=new DT({});cH(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ev.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){ev.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,dH(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(n){return new(n||i)(x(Or,10),x(Xd,10),x(Vh,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Q("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Re([fre]),Ae]})}return i})();function uH(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}function hH(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const AT=class extends aH{constructor(t=null,e,n){super(xT(e),CT(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vC(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=hH(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){uH(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){uH(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){hH(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},gre={provide:La,useExisting:At(()=>Qd)},pH=(()=>Promise.resolve())();let Qd=(()=>{class i extends La{constructor(e,n,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new AT,this._registered=!1,this.name="",this.update=new pe,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=MT(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ST(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Qb(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()}_updateValue(e){pH.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&Ct(n);pH.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function yC(i,t){return[...t.path,i]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||i)(x(Do,9),x(Or,10),x(Xd,10),x(Ir,10),x(Nt,8),x(Vh,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Re([gre]),Ae,Zi]})}return i})(),gH=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return i})(),bH=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();const TT=new V("NgModelWithFormControlWarning"),wre={provide:La,useExisting:At(()=>IT)};let IT=(()=>{class i extends La{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,n,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new pe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=MT(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&wC(n,this,!1),Qb(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ST(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&wC(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static#t=this.\u0275fac=function(n){return new(n||i)(x(Or,10),x(Xd,10),x(Ir,10),x(TT,8),x(Vh,8))};static#i=this.\u0275dir=ne({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Re([wre]),Ae,Zi]})}return i})();const xre={provide:Do,useExisting:At(()=>Sp)};let Sp=(()=>{class i extends Do{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new pe,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(CC(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const n=this.form.get(e.path);return Qb(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){wC(e.control||null,e,!1),function hre(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,dH(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(wC(n||null,e),(i=>i instanceof AT)(r)&&(Qb(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);cH(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function cre(i,t){return CC(i,t)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){kT(this.form,this),this._oldForm&&CC(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(n){return new(n||i)(x(Or,10),x(Xd,10),x(Vh,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&Q("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Re([xre]),Ae,Zi]})}return i})(),zh=(()=>{class i{constructor(){this._validator=pC}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):pC,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,features:[Zi]})}return i})();const Pre={provide:Or,useExisting:At(()=>DC),multi:!0};let DC=(()=>{class i extends zh{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ct,this.createValidator=e=>L4}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275dir=ne({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){2&n&&je("required",r._enabled?"":null)},inputs:{required:"required"},features:[Re([Pre]),Ae]})}return i})(),RH=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[bH]})}return i})(),Ba=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Vh,useValue:e.callSetDisabledState??Zb}]}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[RH]})}return i})(),tv=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:TT,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Vh,useValue:e.callSetDisabledState??Zb}]}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[RH]})}return i})();const PH={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let kC;const zre=new Uint8Array(16);function Ure(){if(!kC&&(kC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!kC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kC(zre)}const Rr=[];for(let i=0;i<256;++i)Rr.push((i+256).toString(16).slice(1));const NH=function Wre(i,t,e){if(PH.randomUUID&&!t&&!i)return PH.randomUUID();const n=(i=i||{}).random||(i.rng||Ure)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){e=e||0;for(let r=0;r<16;++r)t[e+r]=n[r];return t}return function FH(i,t=0){return Rr[i[t+0]]+Rr[i[t+1]]+Rr[i[t+2]]+Rr[i[t+3]]+"-"+Rr[i[t+4]]+Rr[i[t+5]]+"-"+Rr[i[t+6]]+Rr[i[t+7]]+"-"+Rr[i[t+8]]+Rr[i[t+9]]+"-"+Rr[i[t+10]]+Rr[i[t+11]]+Rr[i[t+12]]+Rr[i[t+13]]+Rr[i[t+14]]+Rr[i[t+15]]}(n)},LH=i=>{i=1831565813+(i|=0)|0;let t=Math.imul(i^i>>>15,1|i);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296};class jre{constructor(t){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:e,separator:n,dictionaries:r,style:o,seed:s}=t;this.dictionaries=r,this.separator=n,this.length=e,this.style=o,this.seed=s}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.\nLength provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let t=this.seed;return this.dictionaries.slice(0,this.length).reduce((e,n)=>{let r;t?(r=(s=>{if("string"==typeof s){const a=s.split("").map(c=>c.charCodeAt(0)).reduce((c,u)=>c+u,1),l=Math.floor(Number(a));return LH(l)}return LH(s)})(t),t=4294967296*r):r=Math.random();let o=n[Math.floor(r*n.length)]||"";if("lowerCase"===this.style)o=o.toLowerCase();else if("capital"===this.style){const[s,...a]=o.split("");o=s.toUpperCase()+a.join("")}else"upperCase"===this.style&&(o=o.toUpperCase());return e?`${e}${this.separator}${o}`:`${o}`},"")}}const BH={separator:"_",dictionaries:[]},$re=i=>{const t=[...i&&i.dictionaries||BH.dictionaries],e={...BH,...i,length:i&&i.length||t.length,dictionaries:t};if(!i||!i.dictionaries||!i.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new jre(e).generate()};var iv=mn(990),Kt=function(i){return i.acceptTos="acceptTos",i.setProfile="setProfile",i.acceptTosAndSetProfile="acceptTodAndSetProfile",i.groupChat="groupChat",i.voteForLeader="voteForLeader",i.revealVoted="leaderReveal",i.takeSurvey="takeSurvey",i}(Kt||{}),nv=function(i){return i.POSITIVE="positive",i.NEUTRAL="neutral",i.NEGATIVE="negative",i.NOT_RATED="not-rated",i}(nv||{}),ys=function(i){return i.TEXT="TextQuestion",i.CHECK="CheckQuestion",i.RATING="RatingQuestion",i.SCALE="ScaleQuestion",i}(ys||{});const VH={name:"compas",imageUrl:"https://m.media-amazon.com/images/I/81NUeKWdiQL._AC_UF1000,1000_QL80_.jpg"},HH={name:"blanket",imageUrl:"https://m.media-amazon.com/images/W/MEDIAX_792452-T1/images/I/81-x+F2EsHL._AC_UF894,1000_QL80_.jpg"};var zH="1.13.6",UH="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},EC=Array.prototype,LT=Object.prototype,WH=typeof Symbol<"u"?Symbol.prototype:null,toe=EC.push,rv=EC.slice,ov=LT.toString,ioe=LT.hasOwnProperty,jH=typeof ArrayBuffer<"u",noe=typeof DataView<"u",roe=Array.isArray,$H=Object.keys,GH=Object.create,qH=jH&&ArrayBuffer.isView,ooe=isNaN,soe=isFinite,KH=!{toString:null}.propertyIsEnumerable("toString"),JH=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],aoe=Math.pow(2,53)-1;function $o(i,t){return t=null==t?i.length-1:+t,function(){for(var e=Math.max(arguments.length-t,0),n=Array(e),r=0;r=0&&e<=aoe}}function a8(i){return function(t){return t?.[i]}}const MC=a8("byteLength"),_oe=s8(MC);var boe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const l8=jH?function voe(i){return qH?qH(i)&&!SC(i):_oe(i)&&boe.test(ov.call(i))}:o8(!1),Go=a8("length");function c8(i,t){t=function yoe(i){for(var t={},e=i.length,n=0;n":">",'"':""","'":"'","`":"`"},Loe=k8(E8),Voe=k8(_8(E8)),Hoe=li.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var QT=/(.)^/,zoe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Uoe=/\\|'|\r|\n|\u2028|\u2029/g;function Woe(i){return"\\"+zoe[i]}var joe=/^\s*(\w|\$)+\s*$/;function $oe(i,t,e){!t&&e&&(t=e),t=v8({},t,li.templateSettings);var n=RegExp([(t.escape||QT).source,(t.interpolate||QT).source,(t.evaluate||QT).source].join("|")+"|$","g"),r=0,o="__p+='";i.replace(n,function(c,u,f,p,g){return o+=i.slice(r,g).replace(Uoe,Woe),r=g+c.length,u?o+="'+\n((__t=("+u+"))==null?'':_.escape(__t))+\n'":f?o+="'+\n((__t=("+f+"))==null?'':__t)+\n'":p&&(o+="';\n"+p+"\n__p+='"),c}),o+="';\n";var a,s=t.variable;if(s){if(!joe.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(c){throw c.source=o,c}var l=function(c){return a.call(this,c,li)};return l.source="function("+s+"){\n"+o+"}",l}function Goe(i,t,e){var n=(t=av(t)).length;if(!n)return ko(e)?e.call(i):e;for(var r=0;r1)$h(a,t-1,e,n),r=n.length;else for(var l=0,c=a.length;lt?(n&&(clearTimeout(n),n=null),a=u,s=i.apply(r,o),n||(r=o=null)):!n&&!1!==e.trailing&&(n=setTimeout(l,f)),s};return c.cancel=function(){clearTimeout(n),a=0,n=r=o=null},c}function Qoe(i,t,e){var n,r,o,s,a,l=function(){var u=dv()-r;t>u?n=setTimeout(l,t-u):(n=null,e||(s=i.apply(a,o)),n||(o=a=null))},c=$o(function(u){return a=this,o=u,r=dv(),n||(n=setTimeout(l,t),e&&(s=i.apply(a,o))),s});return c.cancel=function(){clearTimeout(n),n=o=a=null},c}function ese(i,t){return TC(t,i)}function tI(i){return function(){return!i.apply(this,arguments)}}function tse(){var i=arguments,t=i.length-1;return function(){for(var e=t,n=i[t].apply(this,arguments);e--;)n=i[e].call(this,n);return n}}function ise(i,t){return function(){if(--i<1)return t.apply(this,arguments)}}function T8(i,t){var e;return function(){return--i>0&&(e=t.apply(this,arguments)),i<=1&&(t=null),e}}const nse=TC(T8,2);function I8(i,t,e){t=qo(t,e);for(var r,n=ur(i),o=0,s=n.length;o0?0:r-1;o>=0&&o0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(e&&o&&a)return n[o=e(n,r)]===r?o:-1;if(r!=r)return(o=t(rv.call(n,s,a),r8))>=0?o+s:-1;for(o=i>0?s:a-1;o>=0&&o=3;return function(e,n,r,o){var s=!ws(e)&&ur(e),a=(s||e).length,l=i>0?0:a-1;for(o||(r=e[s?s[l]:l],l+=i);l>=0&&l=0}const ase=$o(function(i,t,e){var n,r;return ko(t)?r=t:(t=av(t),n=t.slice(0,-1),t=t[t.length-1]),Gh(i,function(o){var s=r;if(!s){if(n&&n.length&&(o=KT(o,n)),null==o)return;s=o[t]}return null==s?s:s.apply(o,e)})});function oI(i,t){return Gh(i,YT(t))}function lse(i,t){return Ap(i,lv(t))}function z8(i,t,e){var o,s,n=-1/0,r=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof i[0]&&null!=i)for(var a=0,l=(i=ws(i)?i:Mp(i)).length;an&&(n=o);else t=qo(t,e),Nc(i,function(c,u,f){((s=t(c,u,f))>r||s===-1/0&&n===-1/0)&&(n=c,r=s)});return n}function cse(i,t,e){var o,s,n=1/0,r=1/0;if(null==t||"number"==typeof t&&"object"!=typeof i[0]&&null!=i)for(var a=0,l=(i=ws(i)?i:Mp(i)).length;aa||void 0===s)return 1;if(s1&&(n=cv(n,t[1])),t=sv(i)):(n=bse,t=$h(t,!1,!1),i=Object(i));for(var r=0,o=t.length;r1&&(n=t[1])):(t=Gh($h(t,!1,!1),String),e=function(r,o){return!Lc(t,o)}),j8(i,e,n)});function $8(i,t,e){return rv.call(i,0,Math.max(0,i.length-(null==t||e?1:t)))}function sI(i,t,e){return null==i||i.length<1?null==t||e?void 0:[]:null==t||e?i[0]:$8(i,i.length-t)}function OC(i,t,e){return rv.call(i,null==t||e?1:t)}function yse(i,t,e){return null==i||i.length<1?null==t||e?void 0:[]:null==t||e?i[i.length-1]:OC(i,Math.max(0,i.length-t))}function wse(i){return Ap(i,Boolean)}function xse(i,t){return $h(i,t,!1)}const G8=$o(function(i,t){return t=$h(t,!0,!0),Ap(i,function(e){return!Lc(t,e)})}),Cse=$o(function(i,t){return G8(i,t)});function aI(i,t,e,n){XH(t)||(n=e,e=t,t=!1),null!=e&&(e=qo(e,n));for(var r=[],o=[],s=0,a=Go(i);s{t[s.name]=s});const e=i.map(s=>s.name),n=e.shift();if(!n)throw new Error("Cannot create a user with no experimental stages to do");const r=n,o=`uid:${NH()}`;return{accessCode:`access-code:${NH()}`,userId:o,profile:{name:$re(Ise),pronouns:"",avatarUrl:""},stageMap:t,workingOnStageName:r,completedStageNames:[],futureStageNames:e}}function dI(){return[{kind:Kt.acceptTosAndSetProfile,name:Bc["1. Agree to the experiment and set your profile"],config:{pronouns:"",avatarUrl:"",name:"",tosLines:[],acceptedTosTimestamp:null}},{kind:Kt.takeSurvey,name:Bc["2. Initial leadership survey"],config:{questions:[Rse,Pse]}},{kind:Kt.groupChat,name:Bc["3. Group discussion"],config:{ratingsToDiscuss:[],messages:[]}},{kind:Kt.takeSurvey,name:Bc["4. Post-chat survey"],config:{questions:[Lse]}},{kind:Kt.takeSurvey,name:Bc["5. Post-discussion leadership survey"],config:{questions:[Vse]}},{kind:Kt.voteForLeader,name:Bc["6. Vote for the leader"],config:{}},{kind:Kt.takeSurvey,name:"7. Post-discussion work",config:{questions:[Use]}},{kind:Kt.revealVoted,name:Bc["8. Leader reveal"],config:{pendingVoteStageName:Bc["6. Vote for the leader"],revealTimestamp:null}},{kind:Kt.takeSurvey,name:"9. final satisfaction survey",config:{questions:[$se]}}]}function J8(i,t,e){const n=function Kse(i,t){const e={};for(let n=0;n{const r=this.session.state().experiment,o=this.appData().experiments[r];if(!o)throw new Error(`No such experiment name: ${r}`);return o}),this.userData=xn(()=>{const r=this.session.state().user,o=this.experiment().participants[r];if(!o)throw new Error(`No such user id: ${r}`);return o}),this.viewingStage=xn(()=>this.session.state().stage in this.userData().stageMap?this.userData().stageMap[this.session.state().stage]:this.userData().stageMap[this.userData().workingOnStageName]),this.workingOnStage=xn(()=>this.userData().stageMap[this.userData().workingOnStageName])}edit(t){X8(this.appData,{experiment:this.session.state().experiment,id:this.session.state().user},t)}setViewingStage(t){this.session.edit(e=>{e.stage=t})}setWorkingOnStage(t){this.edit(e=>{e.workingOnStageName=t})}editStageData(t){this.edit(e=>{const n=t(e.stageMap[e.workingOnStageName].config);n&&(e.stageMap[e.workingOnStageName].config=n)})}setProfile(t){this.edit(e=>{e.profile=t})}sendMessage(t){!function tae(i,t,e,n){const r=i().experiments[t.experiment],o=i().experiments[t.experiment].participants[t.id].profile;for(const s of Object.values(r.participants))Z8(i,{experiment:r.name,id:s.userId},e.stageName,a=>{a.messages.push({fromUserId:t.id,messageType:"userMessage",text:e.message,fromProfile:o,timestamp:(new Date).valueOf()})},{skipSetting:!0});n&&n.withoutSetting||i.set({...i()})}(this.appData,{experiment:this.experiment().name,id:this.userData().userId},{stageName:this.workingOnStage().name,message:t})}nextStep(){let t=this.viewingStage().name;this.edit(e=>{if(e.workingOnStageName===t){const n=e.futureStageNames.shift();if(!n)return;e.completedStageNames.push(e.workingOnStageName),e.workingOnStageName=n,t=n}else{const n=e.completedStageNames.indexOf(t);t=n===e.completedStageNames.length-1?e.workingOnStageName:e.completedStageNames[n+1]}this.session.edit(n=>{n.stage=t})})}}class Yse{constructor(t,e){this.fromUrlParams=t,this.defaultSessionData=e,this.defaultSession=_s(this.defaultSessionData);const n={...this.defaultSessionData};Object.assign(n,t()),this.state=_s(n,{equal:tu});const r=_s(n);this.toUrlParams=_s(t()),Tc(()=>{const o=this.fromUrlParams(),s=mx(this.state),a=Object.assign({...this.defaultSession()},o);r.set(a),tu(s,a)||this.state.set(a)},{allowSignalWrites:!0}),Tc(()=>{const o={...this.state()};for(const s of Object.keys(o)){const a=s;tu(o[a],this.defaultSession()[a])&&delete o[a]}tu(mx(r),this.state())||this.toUrlParams.set(o)},{allowSignalWrites:!0})}edit(t){let n={...this.state()};const r=t(n);r&&(n={...r}),this.state.set(n)}}class Xse{constructor(t,e,n,r){this.router=t,this.route=e,this.routeParamNames=n,this.defaultSessionData=r;const o=_s(e.snapshot.params,{equal:tu});this.paramsSubscription=this.route.params.subscribe(l=>{o.set(l)});const s=_s(e.snapshot.queryParams,{equal:tu});this.queryParamsSubscription=this.route.queryParams.subscribe(l=>s.set(l));const a=xn(()=>({...o(),...s()}));this.session=new Yse(a,this.defaultSessionData),this.sessionToRouterEffectRef=Tc(()=>{const l={},c={},u=this.session.toUrlParams();Object.keys(u).forEach(f=>{this.routeParamNames.has(f)?l[f]=u[f]:c[f]=u[f]}),this.router.navigate([],{relativeTo:this.route,queryParams:c})})}destroy(){this.paramsSubscription.unsubscribe(),this.queryParamsSubscription.unsubscribe(),this.sessionToRouterEffectRef.destroy()}}const Zse={user:"",experiment:"",stage:""};var uv=function(i){return i.LandingPage="LandingPage",i.Participant="Participant",i.Experimenter="Experimenter",i}(uv||{});const eae={kind:uv.LandingPage};function RC(){const i={settings:{name:"LLM-Experimenter",sheetsId:"",sheetsRange:""},experiments:{}};return Y8("initial experiment",dI(),i),i}function Y8(i,t,e){const n=J8(i,3,t);e.experiments[n.name]=n}function X8(i,t,e,n){const r=i(),o=r.experiments[t.experiment];let a={...o.participants[t.id]};const l=e(a);if(l&&(a={...l}),a.userId!==t.id)throw new Error(`Editing a user should not their id: new: ${a.userId}, old: ${t.id}`);o.participants[a.userId]=a,(!n||!n.skipSetting)&&i.set({...r})}function Z8(i,t,e,n,r){X8(i,t,o=>{const s=n(o.stageMap[e].config);s&&(o.stageMap[e].config=s)},r)}var hv=function(i){return i.bar="bar",i.ugg="ugg",i}(hv||{});function aae(i,t){return t.kind===i?t:null}function uI(i,t){if(i.kind===t)return i;throw new Error(`Given object with kind=${i.kind} needs to have kind=${t}`)}function Q8(i,t){return i.kind===t}const PC={kind:hv.bar,data:{barNumber:5}};function e5(i,t,e,n,r,o,s){try{var a=i[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(n,r)}function en(i){return function(){var t=this,e=arguments;return new Promise(function(n,r){var o=i.apply(t,e);function s(l){e5(o,n,r,s,a,"next",l)}function a(l){e5(o,n,r,s,a,"throw",l)}s(void 0)})}}function hI(){return(hI=en(function*(i){const t=yield fetch("/api/embed",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(i)});return 200!==t.status?(console.error(t.statusText),{error:`fetch request failed (${t.status}): ${t.statusText}`}):yield t.json()})).apply(this,arguments)}Q8(PC,hv.bar)&&(PC.data.barNumber+=1);class cae{constructor(){this.name="SimpleEmbedder"}embed(t,e){return en(function*(){return yield function lae(i){return hI.apply(this,arguments)}({text:t})})()}}function fI(){return(fI=en(function*(i){const t=yield fetch("/api/llm",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(i)});return console.log(t),yield t.json()})).apply(this,arguments)}class uae{constructor(t){this.defaultOptions={},this.name="SimpleLlm",t&&(this.defaultOptions=t)}predict(t,e){var n=this;return en(function*(){const r={...n.defaultOptions};return e&&Object.assign(r,e),yield function dae(i){return fI.apply(this,arguments)}({text:t,params:r})})()}}let t5=(()=>{class i{constructor(){this.embedder=new cae,this.llm=new uae({candidateCount:1})}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function FC(...i){const t=ei(i),e=d0(i),{args:n,keys:r}=A4(i);if(0===n.length)return ln([],t);const o=new Vt(function fae(i,t,e=Un){return n=>{i5(t,()=>{const{length:r}=i,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=ln(i[l],t);let u=!1;c.subscribe(ae(n,f=>{o[l]=f,u||(u=!0,a--),a||n.next(e(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,r?s=>T4(r,s):Un));return e?o.pipe(pT(e)):o}function i5(i,t,e){i?xa(e,i,t):t()}const NC=Zt(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function fv(...i){return function mae(){return od(1)}()(ln(i,ei(i)))}function mI(i){return new Vt(t=>{jn(i()).subscribe(t)})}function mv(i,t){const e=Mt(i)?i:()=>i,n=r=>r.error(e());return new Vt(t?r=>t.schedule(n,0,r):n)}function pI(){return ce((i,t)=>{let e=null;i._refCount++;const n=ae(t,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});i.subscribe(n),n.closed||(e=i.connect())})}class n5 extends Vt{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ue;const e=this.getSubject();t.add(this.source.subscribe(ae(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ue.EMPTY)}return t}refCount(){return pI()(this)}}function ji(i){return i<=0?()=>Wr:ce((t,e)=>{let n=0;t.subscribe(ae(e,r=>{++n<=i&&(e.next(r),i<=n&&e.complete())}))})}function hr(...i){const t=ei(i);return ce((e,n)=>{(t?fv(i,e,t):fv(i,e)).subscribe(n)})}function ci(i,t){return ce((e,n)=>{let r=0;e.subscribe(ae(n,o=>i.call(t,o,r++)&&n.next(o)))})}function LC(i){return ce((t,e)=>{let n=!1;t.subscribe(ae(e,r=>{n=!0,e.next(r)},()=>{n||e.next(i),e.complete()}))})}function r5(i=pae){return ce((t,e)=>{let n=!1;t.subscribe(ae(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(i())))})}function pae(){return new NC}function qh(i,t){const e=arguments.length>=2;return n=>n.pipe(i?ci((r,o)=>i(r,o,n)):Un,ji(1),e?LC(t):r5(()=>new NC))}function Tp(i,t){return Mt(t)?Sn(i,t,1):Sn(i,1)}function kn(i,t,e){const n=Mt(i)||t||e?{next:i,error:t,complete:e}:i;return n?ce((r,o)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let a=!0;r.subscribe(ae(o,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),o.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),o.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),o.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):Un}function Kh(i){return ce((t,e)=>{let o,n=null,r=!1;n=t.subscribe(ae(e,void 0,void 0,s=>{o=jn(i(s,Kh(i)(t))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function gI(i){return i<=0?()=>Wr:ce((t,e)=>{let n=[];t.subscribe(ae(e,r=>{n.push(r),i{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function BC(i){return ue(()=>i)}function VC(i){return ce((t,e)=>{try{t.subscribe(e)}finally{e.add(i)}})}function Qe(i){return ce((t,e)=>{jn(i).subscribe(ae(e,()=>e.complete(),ot)),!e.closed&&t.subscribe(e)})}const Dt="primary",pv=Symbol("RouteTitle");class vae{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ip(i){return new vae(i)}function yae(i,t,e){const n=e.path.split("/");if(n.length>i.length||"full"===e.pathMatch&&(t.hasChildren()||n.lengthn[o]===r)}return i===t}function s5(i){return i.length>0?i[i.length-1]:null}function iu(i){return function hae(i){return!!i&&(i instanceof Vt||Mt(i.lift)&&Mt(i.subscribe))}(i)?i:Lb(i)?ln(Promise.resolve(i)):Ie(i)}const xae={exact:function c5(i,t,e){if(!Jh(i.segments,t.segments)||!HC(i.segments,t.segments,e)||i.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!i.children[n]||!c5(i.children[n],t.children[n],e))return!1;return!0},subset:d5},a5={exact:function Cae(i,t){return Dl(i,t)},subset:function Dae(i,t){return Object.keys(t).length<=Object.keys(i).length&&Object.keys(t).every(e=>o5(i[e],t[e]))},ignored:()=>!0};function l5(i,t,e){return xae[e.paths](i.root,t.root,e.matrixParams)&&a5[e.queryParams](i.queryParams,t.queryParams)&&!("exact"===e.fragment&&i.fragment!==t.fragment)}function d5(i,t,e){return u5(i,t,t.segments,e)}function u5(i,t,e,n){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!Jh(r,e)||t.hasChildren()||!HC(r,e,n))}if(i.segments.length===e.length){if(!Jh(i.segments,e)||!HC(i.segments,e,n))return!1;for(const r in t.children)if(!i.children[r]||!d5(i.children[r],t.children[r],n))return!1;return!0}{const r=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!!(Jh(i.segments,r)&&HC(i.segments,r,n)&&i.children[Dt])&&u5(i.children[Dt],t,o,n)}}function HC(i,t,e){return t.every((n,r)=>a5[e](i[r].parameters,n.parameters))}class Op{constructor(t=new yi([],{}),e={},n=null){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ip(this.queryParams)),this._queryParamMap}toString(){return Sae.serialize(this)}}class yi{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zC(this)}}class gv{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ip(this.parameters)),this._parameterMap}toString(){return m5(this)}}function Jh(i,t){return i.length===t.length&&i.every((e,n)=>e.path===t[n].path)}let Rp=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>new bI,providedIn:"root"})}return i})();class bI{parse(t){const e=new Bae(t);return new Op(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${_v(t.root,!0)}`,n=function Tae(i){const t=Object.keys(i).map(e=>{const n=i[e];return Array.isArray(n)?n.map(r=>`${UC(e)}=${UC(r)}`).join("&"):`${UC(e)}=${UC(n)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${n}${"string"==typeof t.fragment?`#${function Mae(i){return encodeURI(i)}(t.fragment)}`:""}`}}const Sae=new bI;function zC(i){return i.segments.map(t=>m5(t)).join("/")}function _v(i,t){if(!i.hasChildren())return zC(i);if(t){const e=i.children[Dt]?_v(i.children[Dt],!1):"",n=[];return Object.entries(i.children).forEach(([r,o])=>{r!==Dt&&n.push(`${r}:${_v(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function Eae(i,t){let e=[];return Object.entries(i.children).forEach(([n,r])=>{n===Dt&&(e=e.concat(t(r,n)))}),Object.entries(i.children).forEach(([n,r])=>{n!==Dt&&(e=e.concat(t(r,n)))}),e}(i,(n,r)=>r===Dt?[_v(i.children[Dt],!1)]:[`${r}:${_v(n,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[Dt]?`${zC(i)}/${e[0]}`:`${zC(i)}/(${e.join("//")})`}}function h5(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function UC(i){return h5(i).replace(/%3B/gi,";")}function vI(i){return h5(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function WC(i){return decodeURIComponent(i)}function f5(i){return WC(i.replace(/\+/g,"%20"))}function m5(i){return`${vI(i.path)}${function Aae(i){return Object.keys(i).map(t=>`;${vI(t)}=${vI(i[t])}`).join("")}(i.parameters)}`}const Iae=/^[^\/()?;#]+/;function yI(i){const t=i.match(Iae);return t?t[0]:""}const Oae=/^[^\/()?;=#]+/,Pae=/^[^=?&#]+/,Nae=/^[^&#]+/;class Bae{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yi([],{}):new yi([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Dt]=new yi(t,e)),n}parseSegment(){const t=yI(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new z(4009,!1);return this.capture(t),new gv(WC(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=function Rae(i){const t=i.match(Oae);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=yI(this.remaining);r&&(n=r,this.capture(n))}t[WC(e)]=WC(n)}parseQueryParam(t){const e=function Fae(i){const t=i.match(Pae);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const s=function Lae(i){const t=i.match(Nae);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=f5(e),o=f5(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=yI(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new z(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Dt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Dt]:new yi([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new z(4011,!1)}}function p5(i){return i.segments.length>0?new yi([],{[Dt]:i}):i}function g5(i){const t={};for(const n of Object.keys(i.children)){const o=g5(i.children[n]);if(n===Dt&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}return function Vae(i){if(1===i.numberOfChildren&&i.children[Dt]){const t=i.children[Dt];return new yi(i.segments.concat(t.segments),t.children)}return i}(new yi(i.segments,t))}function Yh(i){return i instanceof Op}function _5(i){let t;const r=p5(function e(o){const s={};for(const l of o.children){const c=e(l);s[l.outlet]=c}const a=new yi(o.url,s);return o===i&&(t=a),a}(i.root));return t??r}function b5(i,t,e,n){let r=i;for(;r.parent;)r=r.parent;if(0===t.length)return wI(r,r,r,e,n);const o=function zae(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new y5(!0,0,i);let t=0,e=!1;const n=i.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new y5(e,t,n)}(t);if(o.toRoot())return wI(r,r,new yi([],{}),e,n);const s=function Uae(i,t,e){if(i.isAbsolute)return new $C(t,!0,0);if(!e)return new $C(t,!1,NaN);if(null===e.parent)return new $C(e,!0,0);const n=jC(i.commands[0])?0:1;return function Wae(i,t,e){let n=i,r=t,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new z(4005,!1);r=n.segments.length}return new $C(n,!1,r-o)}(e,e.segments.length-1+n,i.numberOfDoubleDots)}(o,r,i),a=s.processChildren?vv(s.segmentGroup,s.index,o.commands):w5(s.segmentGroup,s.index,o.commands);return wI(r,s.segmentGroup,a,e,n)}function jC(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function bv(i){return"object"==typeof i&&null!=i&&i.outlets}function wI(i,t,e,n,r){let s,o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=i===t?e:v5(i,t,e);const a=p5(g5(s));return new Op(a,o,r)}function v5(i,t,e){const n={};return Object.entries(i.children).forEach(([r,o])=>{n[r]=o===t?e:v5(o,t,e)}),new yi(i.segments,n)}class y5{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&jC(n[0]))throw new z(4003,!1);const r=n.find(bv);if(r&&r!==s5(n))throw new z(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $C{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function w5(i,t,e){if(i||(i=new yi([],{})),0===i.segments.length&&i.hasChildren())return vv(i,t,e);const n=function $ae(i,t,e){let n=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=i.segments[r],a=e[n];if(bv(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!C5(l,c,s))return o;n+=2}else{if(!C5(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(i,t,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndexo!==Dt)&&i.children[Dt]&&1===i.numberOfChildren&&0===i.children[Dt].segments.length){const o=vv(i.children[Dt],t,e);return new yi(i.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=w5(i.children[o],t,s))}),Object.entries(i.children).forEach(([o,s])=>{void 0===n[o]&&(r[o]=s)}),new yi(i.segments,r)}}function xI(i,t,e){const n=i.segments.slice(0,t);let r=0;for(;r{"string"==typeof n&&(n=[n]),null!==n&&(t[e]=xI(new yi([],{}),0,n))}),t}function x5(i){const t={};return Object.entries(i).forEach(([e,n])=>t[e]=`${n}`),t}function C5(i,t,e){return i==e.path&&Dl(t,e.parameters)}const yv="imperative";class kl{constructor(t,e){this.id=t,this.url=e}}class GC extends kl{constructor(t,e,n="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vc extends kl{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pp extends kl{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fp extends kl{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=16}}class qC extends kl{constructor(t,e,n,r){super(t,e),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class D5 extends kl{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qae extends kl{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kae extends kl{constructor(t,e,n,r,o){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jae extends kl{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yae extends kl{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xae{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zae{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Qae{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ele{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tle{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ile{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class k5{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class CI{}class DI{constructor(t){this.url=t}}class nle{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new wv,this.attachRef=null}}let wv=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new nle,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class E5{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=kI(t,this._root);return e?e.children.map(n=>n.value):[]}firstChild(t){const e=kI(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=EI(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return EI(t,this._root).map(e=>e.value)}}function kI(i,t){if(i===t.value)return t;for(const e of t.children){const n=kI(i,e);if(n)return n}return null}function EI(i,t){if(i===t.value)return[t];for(const e of t.children){const n=EI(i,e);if(n.length)return n.unshift(t),n}return[]}class Va{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Np(i){const t={};return i&&i.children.forEach(e=>t[e.value.outlet]=e),t}class S5 extends E5{constructor(t,e){super(t),this.snapshot=e,AI(this,t)}toString(){return this.snapshot.toString()}}function M5(i,t){const e=function rle(i,t){const s=new MI([],{},{},"",{},Dt,t,null,{});return new A5("",new Va(s,[]))}(0,t),n=new gr([new gv("",{})]),r=new gr({}),o=new gr({}),s=new gr({}),a=new gr(""),l=new Hc(n,r,s,a,o,Dt,t,e.root);return l.snapshot=e.root,new S5(new Va(l,[]),e)}class Hc{constructor(t,e,n,r,o,s,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ue(c=>c[pv]))??Ie(void 0),this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(ue(t=>Ip(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ue(t=>Ip(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function SI(i,t,e="emptyOnly"){let n;const{routeConfig:r}=i;return n=null===t||"always"!==e&&""!==r?.path&&(t.component||t.routeConfig?.loadComponent)?{params:i.params,data:i.data,resolve:{...i.data,...i._resolvedData??{}}}:{params:{...t.params,...i.params},data:{...t.data,...i.data},resolve:{...i.data,...t.data,...r?.data,...i._resolvedData}},r&&I5(r)&&(n.resolve[pv]=r.title),n}class MI{get title(){return this.data?.[pv]}constructor(t,e,n,r,o,s,a,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ip(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ip(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class A5 extends E5{constructor(t,e){super(e),this.url=t,AI(this,e)}toString(){return T5(this._root)}}function AI(i,t){t.value._routerState=i,t.children.forEach(e=>AI(i,e))}function T5(i){const t=i.children.length>0?` { ${i.children.map(T5).join(", ")} } `:"";return`${i.value}${t}`}function TI(i){if(i.snapshot){const t=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Dl(t.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),Dl(t.params,e.params)||i.paramsSubject.next(e.params),function wae(i,t){if(i.length!==t.length)return!1;for(let e=0;eDl(e.parameters,t[n].parameters))}(i.url,t.url);return e&&!(!i.parent!=!t.parent)&&(!i.parent||II(i.parent,t.parent))}function I5(i){return"string"==typeof i.title||null===i.title}let KC=(()=>{class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=Dt,this.activateEvents=new pe,this.deactivateEvents=new pe,this.attachEvents=new pe,this.detachEvents=new pe,this.parentContexts=ee(wv),this.location=ee(Tr),this.changeDetector=ee(Nt),this.environmentInjector=ee(Ho),this.inputBinder=ee(JC,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new z(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new z(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new z(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new z(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ole(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zi]})}return i})();class ole{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Hc?this.route:t===wv?this.childContexts:this.parent.get(t,e)}}const JC=new V("");let O5=(()=>{class i{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,r=FC([n.queryParams,n.params,n.data]).pipe(Mn(([o,s,a],l)=>(a={...o,...s,...a},0===l?Ie(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const s=function fte(i){const t=xt(i);if(!t)return null;const e=new vb(t);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(n.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();function xv(i,t,e){if(e&&i.shouldReuseRoute(t.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=t.value;const r=function ale(i,t,e){return t.children.map(n=>{for(const r of e.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return xv(i,n,r);return xv(i,n)})}(i,t,e);return new Va(n,r)}{if(i.shouldAttach(t.value)){const o=i.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>xv(i,a)),s}}const n=function lle(i){return new Hc(new gr(i.url),new gr(i.params),new gr(i.queryParams),new gr(i.fragment),new gr(i.data),i.outlet,i.component,i)}(t.value),r=t.children.map(o=>xv(i,o));return new Va(n,r)}}const OI="ngNavigationCancelingError";function R5(i,t){const{redirectTo:e,navigationBehaviorOptions:n}=Yh(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=P5(!1,0,t);return r.url=e,r.navigationBehaviorOptions=n,r}function P5(i,t,e){const n=new Error("NavigationCancelingError: "+(i||""));return n[OI]=!0,n.cancellationCode=t,e&&(n.url=e),n}function F5(i){return i&&i[OI]}let N5=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["ng-component"]],standalone:!0,features:[vi],decls:1,vars:0,template:function(n,r){1&n&&q(0,"router-outlet")},dependencies:[KC],encapsulation:2})}return i})();function RI(i){const t=i.children&&i.children.map(RI),e=t?{...i,children:t}:{...i};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Dt&&(e.component=N5),e}function El(i){return i.outlet||Dt}function Cv(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let t=i.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class gle{constructor(t,e,n,r,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),TI(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Np(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,e,n){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Np(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(n&&n.outlet){const s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Np(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,e,n){const r=Np(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new ile(o.value.snapshot))}),t.children.length&&this.forwardEvent(new ele(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,o=e?e.value:null;if(TI(r),r===o)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),TI(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Cv(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class L5{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class YC{constructor(t,e){this.component=t,this.route=e}}function _le(i,t,e){const n=i._root;return Dv(n,t?t._root:null,e,[n.value])}function Lp(i,t){const e=Symbol(),n=t.get(i,e);return n===e?"function"!=typeof i||function ld(i){return null!==Bf(i)}(i)?t.get(i):i:n}function Dv(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Np(t);return i.children.forEach(s=>{(function vle(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=i.value,s=t?t.value:null,a=e?e.getContext(i.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function yle(i,t,e){if("function"==typeof e)return e(i,t);switch(e){case"pathParamsChange":return!Jh(i.url,t.url);case"pathParamsOrQueryParamsChange":return!Jh(i.url,t.url)||!Dl(i.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!II(i,t)||!Dl(i.queryParams,t.queryParams);default:return!II(i,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new L5(n)):(o.data=s.data,o._resolvedData=s._resolvedData),Dv(i,t,o.component?a?a.children:null:e,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new YC(a.outlet.component,s))}else s&&kv(t,a,r),r.canActivateChecks.push(new L5(n)),Dv(i,null,o.component?a?a.children:null:e,n,r)})(s,o[s.value.outlet],e,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>kv(a,e.getContext(s),r)),r}function kv(i,t,e){const n=Np(i),r=i.value;Object.entries(n).forEach(([o,s])=>{kv(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new YC(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Ev(i){return"function"==typeof i}function B5(i){return i instanceof NC||"EmptyError"===i?.name}const XC=Symbol("INITIAL_VALUE");function Bp(){return Mn(i=>FC(i.map(t=>t.pipe(ji(1),hr(XC)))).pipe(ue(t=>{for(const e of t)if(!0!==e){if(e===XC)return XC;if(!1===e||e instanceof Op)return e}return!0}),ci(t=>t!==XC),ji(1)))}function V5(i){return function Mf(...i){return Af(i)}(kn(t=>{if(Yh(t))throw R5(0,t)}),ue(t=>!0===t))}class PI{constructor(t){this.segmentGroup=t||null}}class FI extends Error{constructor(t){super(),this.urlTree=t}}function Vp(i){return mv(new PI(i))}class Hle{constructor(t,e){this.urlSerializer=t,this.urlTree=e}noMatchError(t){return new z(4002,!1)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ie(n);if(r.numberOfChildren>1||!r.children[Dt])return mv(new z(4e3,!1));r=r.children[Dt]}}applyRedirectCommands(t,e,n){const r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,n);if(e.startsWith("/"))throw new FI(r);return r}applyRedirectCreateUrlTree(t,e,n,r){const o=this.createSegmentGroup(t,e.root,n,r);return new Op(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Object.entries(t).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);n[r]=e[a]}else n[r]=o}),n}createSegmentGroup(t,e,n,r){const o=this.createSegments(t,e.segments,n,r);let s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,n,r)}),new yi(o,s)}createSegments(t,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new z(4001,!1);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}const NI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zle(i,t,e,n,r){const o=LI(i,t,e);return o.matched?(n=function dle(i,t){return i.providers&&!i._injector&&(i._injector=uA(i.providers,t,`Route: ${i.path}`)),i._injector??t}(t,n),function Lle(i,t,e,n){const r=t.canMatch;return r&&0!==r.length?Ie(r.map(s=>{const a=Lp(s,i);return iu(function Ele(i){return i&&Ev(i.canMatch)}(a)?a.canMatch(t,e):yc(i,()=>a(t,e)))})).pipe(Bp(),V5()):Ie(!0)}(n,t,e).pipe(ue(s=>!0===s?o:{...NI}))):Ie(o)}function LI(i,t,e){if("**"===t.path)return function Ule(i){return{matched:!0,parameters:i.length>0?s5(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===t.path)return"full"===t.pathMatch&&(i.hasChildren()||e.length>0)?{...NI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||yae)(e,i,t);if(!r)return{...NI};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function H5(i,t,e,n){return e.length>0&&function $le(i,t,e){return e.some(n=>ZC(i,t,n)&&El(n)!==Dt)}(i,e,n)?{segmentGroup:new yi(t,jle(n,new yi(e,i.children))),slicedSegments:[]}:0===e.length&&function Gle(i,t,e){return e.some(n=>ZC(i,t,n))}(i,e,n)?{segmentGroup:new yi(i.segments,Wle(i,0,e,n,i.children)),slicedSegments:e}:{segmentGroup:new yi(i.segments,i.children),slicedSegments:e}}function Wle(i,t,e,n,r){const o={};for(const s of n)if(ZC(i,e,s)&&!r[El(s)]){const a=new yi([],{});o[El(s)]=a}return{...r,...o}}function jle(i,t){const e={};e[Dt]=t;for(const n of i)if(""===n.path&&El(n)!==Dt){const r=new yi([],{});e[El(n)]=r}return e}function ZC(i,t,e){return(!(i.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}class Jle{}class Zle{constructor(t,e,n,r,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Hle(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new z(4002,!1)}recognize(){const t=H5(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(ue(e=>{const n=new MI([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Dt,this.rootComponentType,null,{}),r=new Va(n,e),o=new A5("",r),s=function Hae(i,t,e=null,n=null){return b5(_5(i),t,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,Dt).pipe(Kh(n=>{if(n instanceof FI)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof PI?this.noMatchError(n):n}))}inheritParamsAndData(t,e){const n=t.value,r=SI(n,e,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,e,n):this.processSegment(t,e,n,n.segments,r,!0).pipe(ue(o=>o instanceof Va?[o]:[]))}processChildren(t,e,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return ln(r).pipe(Tp(o=>{const s=n.children[o],a=function mle(i,t){const e=i.filter(n=>El(n)===t);return e.push(...i.filter(n=>El(n)!==t)),e}(e,o);return this.processSegmentGroup(t,a,s,o)}),function _ae(i,t){return ce(function gae(i,t,e,n,r){return(o,s)=>{let a=e,l=t,c=0;o.subscribe(ae(s,u=>{const f=c++;l=a?i(l,u,f):(a=!0,u),n&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(i,t,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),LC(null),function bae(i,t){const e=arguments.length>=2;return n=>n.pipe(i?ci((r,o)=>i(r,o,n)):Un,gI(1),e?LC(t):r5(()=>new NC))}(),Sn(o=>{if(null===o)return Vp(n);const s=z5(o);return function Qle(i){i.sort((t,e)=>t.value.outlet===Dt?-1:e.value.outlet===Dt?1:t.value.outlet.localeCompare(e.value.outlet))}(s),Ie(s)}))}processSegment(t,e,n,r,o,s){return ln(e).pipe(Tp(a=>this.processSegmentAgainstRoute(a._injector??t,e,a,n,r,o,s).pipe(Kh(l=>{if(l instanceof PI)return Ie(null);throw l}))),qh(a=>!!a),Kh(a=>{if(B5(a))return function Kle(i,t,e){return 0===t.length&&!i.children[e]}(n,r,o)?Ie(new Jle):Vp(n);throw a}))}processSegmentAgainstRoute(t,e,n,r,o,s,a){return function qle(i,t,e,n){return!!(El(i)===n||n!==Dt&&ZC(t,e,i))&&LI(t,i,e).matched}(n,r,o,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,n,o,s):Vp(r):Vp(r)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,s){const{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=LI(e,r,o);if(!a)return Vp(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const f=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,c);return this.applyRedirects.lineralizeSegments(r,f).pipe(Sn(p=>this.processSegment(t,n,e,p.concat(u),s,!1)))}matchSegmentAgainstRoute(t,e,n,r,o){const s=zle(e,n,r,t);return"**"===n.path&&(e.children={}),s.pipe(Mn(a=>a.matched?this.getChildConfig(t=n._injector??t,n,r).pipe(Mn(({routes:l})=>{const c=n._loadedInjector??t,{consumedSegments:u,remainingSegments:f,parameters:p}=a,g=new MI(u,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function tce(i){return i.data||{}}(n),El(n),n.component??n._loadedComponent??null,n,function ice(i){return i.resolve||{}}(n)),{segmentGroup:b,slicedSegments:v}=H5(e,u,f,l);if(0===v.length&&b.hasChildren())return this.processChildren(c,l,b).pipe(ue(S=>null===S?null:new Va(g,S)));if(0===l.length&&0===v.length)return Ie(new Va(g,[]));const C=El(n)===o;return this.processSegment(c,l,b,v,C?Dt:o,!0).pipe(ue(S=>new Va(g,S instanceof Va?[S]:[])))})):Vp(e)))}getChildConfig(t,e,n){return e.children?Ie({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?Ie({routes:e._loadedRoutes,injector:e._loadedInjector}):function Nle(i,t,e,n){const r=t.canLoad;return void 0===r||0===r.length?Ie(!0):Ie(r.map(s=>{const a=Lp(s,i);return iu(function xle(i){return i&&Ev(i.canLoad)}(a)?a.canLoad(t,e):yc(i,()=>a(t,e)))})).pipe(Bp(),V5())}(t,e,n).pipe(Sn(r=>r?this.configLoader.loadChildren(t,e).pipe(kn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Vle(i){return mv(P5(!1,3))}())):Ie({routes:[],injector:t})}}function ece(i){const t=i.value.routeConfig;return t&&""===t.path}function z5(i){const t=[],e=new Set;for(const n of i){if(!ece(n)){t.push(n);continue}const r=t.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):t.push(n)}for(const n of e){const r=z5(n.children);t.push(new Va(n.value,r))}return t.filter(n=>!e.has(n))}function U5(i){const t=i.children.map(e=>U5(e)).flat();return[i,...t]}function BI(i){return Mn(t=>{const e=i(t);return e?ln(e).pipe(ue(()=>t)):Ie(t)})}let W5=(()=>{class i{buildTitle(e){let n,r=e.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===Dt);return n}getResolvedTitleForRoute(e){return e.data[pv]}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>ee(lce),providedIn:"root"})}return i})(),lce=(()=>{class i extends W5{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||i)(U(D4))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const Hp=new V("",{providedIn:"root",factory:()=>({})}),zp=new V("ROUTES");let VI=(()=>{class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ee(tV)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Ie(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=iu(e.loadComponent()).pipe(ue(j5),kn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),VC(()=>{this.componentLoaders.delete(e)})),r=new n5(n,()=>new de).pipe(pI());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Ie({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=function cce(i,t,e,n){return iu(i.loadChildren()).pipe(ue(j5),Sn(r=>r instanceof _3||Array.isArray(r)?Ie(r):ln(t.compileModuleAsync(r))),ue(r=>{n&&n(i);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(e).injector,s=o.get(zp,[],{optional:!0,self:!0}).flat()),{routes:s.map(RI),injector:o}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(VC(()=>{this.childrenLoaders.delete(n)})),s=new n5(o,()=>new de).pipe(pI());return this.childrenLoaders.set(n,s),s}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function j5(i){return function dce(i){return i&&"object"==typeof i&&"default"in i}(i)?i.default:i}let HI=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>ee(uce),providedIn:"root"})}return i})(),uce=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const $5=new V(""),G5=new V("");function hce(i,t,e){const n=i.get(G5),r=i.get(it);return i.get(ge).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o;const s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),function fce(i){return new Promise(t=>{KN(t,{injector:i})})}(i))),{onViewTransitionCreated:l}=n;return l&&yc(i,()=>l({transition:a,from:t,to:e})),s})}let QC=(()=>{class i{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new de,this.transitionAbortSubject=new de,this.configLoader=ee(VI),this.environmentInjector=ee(Ho),this.urlSerializer=ee(Rp),this.rootContexts=ee(wv),this.location=ee(Dp),this.inputBindingEnabled=null!==ee(JC,{optional:!0}),this.titleStrategy=ee(W5),this.options=ee(Hp,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=ee(HI),this.createViewTransition=ee($5,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Ie(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Zae(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Xae(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,r){return this.transitions=new gr({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:yv,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ci(o=>0!==o.id),ue(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Mn(o=>{this.currentTransition=o;let s=!1,a=!1;return Ie(o).pipe(kn(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Mn(l=>{const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const f="";return this.events.next(new Fp(l.id,this.urlSerializer.serialize(l.rawUrl),f,0)),l.resolve(null),Wr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Ie(l).pipe(Mn(f=>{const p=this.transitions?.getValue();return this.events.next(new GC(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?Wr:Promise.resolve(f)}),function nce(i,t,e,n,r,o){return Sn(s=>function Yle(i,t,e,n,r,o,s="emptyOnly"){return new Zle(i,t,e,n,r,s,o).recognize()}(i,t,e,n,s.extractedUrl,r,o).pipe(ue(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),kn(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const p=new D5(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:f,extractedUrl:p,source:g,restoredState:b,extras:v}=l,C=new GC(f,this.urlSerializer.serialize(p),g,b);this.events.next(C);const S=M5(0,this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:S,urlAfterRedirects:p,extras:{...v,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=p,Ie(o)}{const f="";return this.events.next(new Fp(l.id,this.urlSerializer.serialize(l.extractedUrl),f,1)),l.resolve(null),Wr}}),kn(l=>{const c=new qae(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),ue(l=>(this.currentTransition=o={...l,guards:_le(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function Mle(i,t){return Sn(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Ie({...e,guardsResult:!0}):function Ale(i,t,e,n){return ln(i).pipe(Sn(r=>function Fle(i,t,e,n,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Ie(o.map(a=>{const l=Cv(t)??r,c=Lp(a,l);return iu(function kle(i){return i&&Ev(i.canDeactivate)}(c)?c.canDeactivate(i,t,e,n):yc(l,()=>c(i,t,e,n))).pipe(qh())})).pipe(Bp()):Ie(!0)}(r.component,r.route,e,t,n)),qh(r=>!0!==r,!0))}(s,n,r,i).pipe(Sn(a=>a&&function wle(i){return"boolean"==typeof i}(a)?function Tle(i,t,e,n){return ln(t).pipe(Tp(r=>fv(function Ole(i,t){return null!==i&&t&&t(new Qae(i)),Ie(!0)}(r.route.parent,n),function Ile(i,t){return null!==i&&t&&t(new tle(i)),Ie(!0)}(r.route,n),function Ple(i,t,e){const n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function ble(i){const t=i.routeConfig?i.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:i,guards:t}:null}(s)).filter(s=>null!==s).map(s=>mI(()=>Ie(s.guards.map(l=>{const c=Cv(s.node)??e,u=Lp(l,c);return iu(function Dle(i){return i&&Ev(i.canActivateChild)}(u)?u.canActivateChild(n,i):yc(c,()=>u(n,i))).pipe(qh())})).pipe(Bp())));return Ie(o).pipe(Bp())}(i,r.path,e),function Rle(i,t,e){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return Ie(!0);const r=n.map(o=>mI(()=>{const s=Cv(t)??e,a=Lp(o,s);return iu(function Cle(i){return i&&Ev(i.canActivate)}(a)?a.canActivate(t,i):yc(s,()=>a(t,i))).pipe(qh())}));return Ie(r).pipe(Bp())}(i,r.route,e))),qh(r=>!0!==r,!0))}(n,o,i,t):Ie(a)),ue(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),kn(l=>{if(o.guardsResult=l.guardsResult,Yh(l.guardsResult))throw R5(0,l.guardsResult);const c=new Kae(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ci(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),BI(l=>{if(l.guards.canActivateChecks.length)return Ie(l).pipe(kn(c=>{const u=new Jae(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Mn(c=>{let u=!1;return Ie(c).pipe(function rce(i,t){return Sn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return Ie(e);const o=new Set(r.map(l=>l.route)),s=new Set;for(const l of o)if(!s.has(l))for(const c of U5(l))s.add(c);let a=0;return ln(s).pipe(Tp(l=>o.has(l)?function oce(i,t,e,n){const r=i.routeConfig,o=i._resolve;return void 0!==r?.title&&!I5(r)&&(o[pv]=r.title),function sce(i,t,e,n){const r=_I(i);if(0===r.length)return Ie({});const o={};return ln(r).pipe(Sn(s=>function ace(i,t,e,n){const r=Cv(t)??n,o=Lp(i,r);return iu(o.resolve?o.resolve(t,e):yc(r,()=>o(t,e)))}(i[s],t,e,n).pipe(qh(),kn(a=>{o[s]=a}))),gI(1),BC(o),Kh(s=>B5(s)?Wr:mv(s)))}(o,i,t,n).pipe(ue(s=>(i._resolvedData=s,i.data=SI(i,i.parent,e).resolve,null)))}(l,n,i,t):(l.data=SI(l,l.parent,i).resolve,Ie(void 0))),kn(()=>a++),gI(1),Sn(l=>a===s.size?Ie(e):Wr))})}(this.paramsInheritanceStrategy,this.environmentInjector),kn({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),kn(c=>{const u=new Yae(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),BI(l=>{const c=u=>{const f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(kn(p=>{u.component=p}),ue(()=>{})));for(const p of u.children)f.push(...c(p));return f};return FC(c(l.targetSnapshot.root)).pipe(LC(),ji(1))}),BI(()=>this.afterPreactivation()),Mn(()=>{const{currentSnapshot:l,targetSnapshot:c}=o,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?ln(u).pipe(ue(()=>o)):Ie(o)}),ue(l=>{const c=function sle(i,t,e){const n=xv(i,t._root,e?e._root:void 0);return new S5(n,t)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,o}),kn(()=>{this.events.next(new CI)}),((i,t,e,n)=>ue(r=>(new gle(t,r.targetRouterState,r.currentRouterState,e,n).activate(i),r)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ji(1),kn({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),Qe(this.transitionAbortSubject.pipe(kn(l=>{throw l}))),VC(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Kh(l=>{if(a=!0,F5(l))this.events.next(new Pp(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function cle(i){return F5(i)&&Yh(i.url)}(l)?this.events.next(new DI(l.url)):o.resolve(!1);else{this.events.next(new qC(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(l))}catch(c){o.reject(c)}}return Wr}))}))}cancelNavigationTransition(e,n,r){const o=new Pp(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function mce(i){return i!==yv}let pce=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>ee(_ce),providedIn:"root"})}return i})();class gce{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let _ce=(()=>{class i extends gce{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),q5=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:()=>ee(bce),providedIn:"root"})}return i})(),bce=(()=>{class i extends q5{constructor(){super(...arguments),this.location=ee(Dp),this.urlSerializer=ee(Rp),this.options=ee(Hp,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=ee(HI),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Op,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=M5(0,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{"popstate"===n.type&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof GC)this.stateMemento=this.createStateMemento();else if(e instanceof Fp)this.rawUrlTree=n.initialUrl;else if(e instanceof D5){if("eager"===this.urlUpdateStrategy&&!n.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(r,n)}}else e instanceof CI?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n))):e instanceof Pp&&(3===e.code||2===e.code)?this.restoreHistory(n):e instanceof qC?this.restoreHistory(n,!0):e instanceof Vc&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&0===o&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Sv=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Sv||{});function K5(i,t){i.events.pipe(ci(e=>e instanceof Vc||e instanceof Pp||e instanceof qC||e instanceof Fp),ue(e=>e instanceof Vc||e instanceof Fp?Sv.COMPLETE:e instanceof Pp&&(0===e.code||1===e.code)?Sv.REDIRECTING:Sv.FAILED),ci(e=>e!==Sv.REDIRECTING),ji(1)).subscribe(()=>{t()})}function vce(i){throw i}const yce={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wce={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ko=(()=>{class i{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=ee(Z3),this.stateManager=ee(q5),this.options=ee(Hp,{optional:!0})||{},this.pendingTasks=ee(eV),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=ee(QC),this.urlSerializer=ee(Rp),this.location=ee(Dp),this.urlHandlingStrategy=ee(HI),this._events=new de,this.errorHandler=this.options.errorHandler||vce,this.navigated=!1,this.routeReuseStrategy=ee(pce),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=ee(zp,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!ee(JC,{optional:!0}),this.eventsSubscription=new Ue,this.isNgZoneEnabled=ee(ge)instanceof ge&&ge.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(n,o),n instanceof Pp&&0!==n.code&&1!==n.code)this.navigated=!0;else if(n instanceof Vc)this.navigated=!0;else if(n instanceof DI){const s=this.urlHandlingStrategy.merge(n.url,r.currentRawUrl),a={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mce(r.source)};this.scheduleNavigation(s,yv,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function Cce(i){return!(i instanceof CI||i instanceof DI)})(n)&&this._events.next(n)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yv,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)}))}navigateToSyncWithBrowser(e,n,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(RI),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(e,n={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:s;let f,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{f=_5(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),f=this.currentUrlTree.root}return b5(f,e,u,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=Yh(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,yv,null,n)}navigate(e,n={skipLocationChange:!1}){return function xce(i){for(let t=0;t{const o=e[r];return null!=o&&(n[r]=o),n},{})}scheduleNavigation(e,n,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((f,p)=>{a=f,l=p});const u=this.pendingTasks.add();return K5(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Xh=(()=>{class i{constructor(e,n,r,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new de,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Vc&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,n,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function be(i,t,e){return function re(i,t){return"src"===t&&("embed"===i||"frame"===i||"iframe"===i||"media"===i||"script"===i)||"href"===t&&("base"===i||"link"===i)?O:A}(t,e)(i)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const r=this.renderer,o=this.el.nativeElement;null!==n?r.setAttribute(o,e,n):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ko),x(Hc),mo("tabindex"),x(Mc),x(Ee),x(Lh))};static#t=this.\u0275dir=ne({type:i,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&Q("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&je("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Ct],skipLocationChange:["skipLocationChange","skipLocationChange",Ct],replaceUrl:["replaceUrl","replaceUrl",Ct],routerLink:"routerLink"},standalone:!0,features:[dr,Zi]})}return i})(),zI=(()=>{class i{get isActive(){return this._isActive}constructor(e,n,r,o,s){this.router=e,this.element=n,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new pe,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Vc&&this.update()})}ngAfterContentInit(){Ie(this.links.changes,Ie(null)).pipe(od()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=ln(e).pipe(od()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function Dce(i){return!!i.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ko),x(Ee),x(Mc),x(Nt),x(Xh,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&ut(o,Xh,5),2&n){let s;he(s=fe())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Zi]})}return i})();class J5{}let kce=(()=>{class i{constructor(e,n,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ci(e=>e instanceof Vc),Tp(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=uA(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ln(r).pipe(od())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):Ie(null);const o=r.pipe(Sn(s=>null===s?Ie(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return n.loadComponent&&!n._loadedComponent?ln([o,this.loader.loadComponent(n)]).pipe(od()):o})}static#e=this.\u0275fac=function(n){return new(n||i)(U(Ko),U(tV),U(Ho),U(J5),U(VI))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const UI=new V("");let Y5=(()=>{class i{constructor(e,n,r,o,s={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof GC?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Vc?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Fp&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof k5&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new k5(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){uM()};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();function Sl(i,t){return{\u0275kind:i,\u0275providers:t}}function Z5(){const i=ee(Jn);return t=>{const e=i.get(qd);if(t!==e.components[0])return;const n=i.get(Ko),r=i.get(Q5);1===i.get(WI)&&n.initialNavigation(),i.get(ez,null,wt.Optional)?.setUpPreloading(),i.get(UI,null,wt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Q5=new V("",{factory:()=>new de}),WI=new V("",{providedIn:"root",factory:()=>1}),ez=new V("");function Ace(i){return Sl(0,[{provide:ez,useExisting:kce},{provide:J5,useExisting:i}])}function Ice(i){return Sl(9,[{provide:$5,useValue:hce},{provide:G5,useValue:{skipNextTransition:!!i?.skipInitialTransition,...i}}])}const tz=new V("ROUTER_FORROOT_GUARD"),Oce=[Dp,{provide:Rp,useClass:bI},Ko,wv,{provide:Hc,useFactory:function X5(i){return i.routerState.root},deps:[Ko]},VI,[]];let Zh=(()=>{class i{constructor(e){}static forRoot(e,n){return{ngModule:i,providers:[Oce,[],{provide:zp,multi:!0,useValue:e},{provide:tz,useFactory:Nce,deps:[[Ko,new _c,new lh]]},{provide:Hp,useValue:n||{}},n?.useHash?{provide:Lh,useClass:bte}:{provide:Lh,useClass:UV},{provide:UI,useFactory:()=>{const i=ee(Hie),t=ee(ge),e=ee(Hp),n=ee(QC),r=ee(Rp);return e.scrollOffset&&i.setOffset(e.scrollOffset),new Y5(r,n,i,t,e)}},n?.preloadingStrategy?Ace(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?Lce(n):[],n?.bindToComponentInputs?Sl(8,[O5,{provide:JC,useExisting:O5}]).\u0275providers:[],n?.enableViewTransitions?Ice().\u0275providers:[],[{provide:iz,useFactory:Z5},{provide:AA,multi:!0,useExisting:iz}]]}}static forChild(e){return{ngModule:i,providers:[{provide:zp,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||i)(U(tz,8))};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();function Nce(i){return"guarded"}function Lce(i){return["disabled"===i.initialNavigation?Sl(3,[{provide:xA,multi:!0,useFactory:()=>{const t=ee(Ko);return()=>{t.setUpLocationChangeListener()}}},{provide:WI,useValue:2}]).\u0275providers:[],"enabledBlocking"===i.initialNavigation?Sl(2,[{provide:WI,useValue:0},{provide:xA,multi:!0,deps:[Jn],useFactory:t=>{const e=t.get(gte,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=t.get(Ko),o=t.get(Q5);K5(r,()=>{n(!0)}),t.get(QC).afterPreactivation=()=>(n(!0),o.closed?Ie(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const iz=new V("");let jI,fr=(()=>{class i{constructor(e,n,r){this.lmApiService=e,this.router=n,this.route=r,this.state=_s(eae),this.data=_s(JSON.parse(localStorage.getItem("data")||JSON.stringify(RC()))),this.editData=function nae(i){return function t(e){let n=i();const r=e(n);r&&(n=r);const o={...n};return i.set(o),o}}(this.data),this.updaterLoop(),this.appName=xn(()=>this.data().settings.name),this.dataJson=xn(()=>JSON.stringify(this.data())),this.dataSize=xn(()=>this.dataJson().length),this.errors=_s([]),Tc(()=>{localStorage.setItem("data",this.dataJson())})}updaterLoop(){const e=JSON.parse(localStorage.getItem("data")||JSON.stringify(RC()));tu(e,this.data())||this.data.set(e),setTimeout(()=>this.updaterLoop(),3e3)}getParticipantAndStage(e){const r=uI(this.state(),uv.Participant).particpant;return{stageData:xn(()=>uI(r.viewingStage(),e).config),participant:r}}validParticipant(e,n){return e in this.data().experiments&&n in this.data().experiments[e].participants}setSetting(e,n){const r=this.data();r.settings[e]!==n&&(r.settings[e]=n,this.data.set({...r}))}reset(){this.data.set(RC())}addExperiment(e,n){if(e in this.data().experiments)throw new Error(`experiment with that name already exists: ${e}`);this.editData(r=>{const o=J8(e,3,n);r.experiments[o.name]=o})}deleteExperiment(e){this.editData(n=>{delete n.experiments[e]})}static#e=this.\u0275fac=function(n){return new(n||i)(U(t5),U(Ko),U(Hc))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Vce=(()=>{class i{constructor(e){this.stateService=e,Tc(()=>{document.title=`Experiment: ${this.stateService.appName()}`})}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){1&n&&q(0,"router-outlet")},dependencies:[KC]})}return i})();try{jI=typeof Intl<"u"&&Intl.v8BreakIterator}catch{jI=!1}let Up,Bi=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function Vie(i){return i===s4}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!jI)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(n){return new(n||i)(U(xc))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const nz=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rz(){if(Up)return Up;if("object"!=typeof document||!document)return Up=new Set(nz),Up;let i=document.createElement("input");return Up=new Set(nz.filter(t=>(i.setAttribute("type",t),i.type===t))),Up}let Mv,eD,Qh,$I;function Ml(i){return function Hce(){if(null==Mv&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Mv=!0}))}finally{Mv=Mv||!1}return Mv}()?i:!!i.capture}function oz(){if(null==Qh){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qh=!1,Qh;if("scrollBehavior"in document.documentElement.style)Qh=!0;else{const i=Element.prototype.scrollTo;Qh=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Qh}function Av(){if("object"!=typeof document||!document)return 0;if(null==eD){const i=document.createElement("div"),t=i.style;i.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",i.appendChild(e),document.body.appendChild(i),eD=0,0===i.scrollLeft&&(i.scrollLeft=1,eD=0===i.scrollLeft?1:2),i.remove()}return eD}function GI(i){if(function zce(){if(null==$I){const i=typeof document<"u"?document.head:null;$I=!(!i||!i.createShadowRoot&&!i.attachShadow)}return $I}()){const t=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function ia(i){return i.composedPath?i.composedPath()[0]:i.target}function qI(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function na(i,...t){return t.length?t.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}class ide extends Ue{constructor(t,e){super()}schedule(t,e=0){return this}}const sD={setInterval(i,t,...e){const{delegate:n}=sD;return n?.setInterval?n.setInterval(i,t,...e):setInterval(i,t,...e)},clearInterval(i){const{delegate:t}=sD;return(t?.clearInterval||clearInterval)(i)},delegate:void 0};class XI extends ide{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var n;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,n=0){return sD.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&sD.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,n=!1;try{this.work(t)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,_a(n,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const ZI={now:()=>(ZI.delegate||Date).now(),delegate:void 0};class Tv{constructor(t,e=Tv.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,n){return new this.schedulerActionCtor(this,t).schedule(n,e)}}Tv.now=ZI.now;class QI extends Tv{constructor(t,e=Tv.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Iv=new QI(XI),nde=Iv;function aD(i,t=Iv){return ce((e,n)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,n.next(c)}};function l(){const c=s+i,u=t.now();if(u{o=c,s=t.now(),r||(r=t.schedule(l,i),n.add(r))},()=>{a(),n.complete()},void 0,()=>{o=r=null}))})}function sz(i){return ci((t,e)=>i<=e)}function $e(i){return null!=i&&"false"!=`${i}`}function $i(i,t=0){return function rde(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):t}function Ov(i){return Array.isArray(i)?i:[i]}function Nn(i){return null==i?"":"string"==typeof i?i:`${i}px`}function fn(i){return i instanceof Ee?i.nativeElement:i}let az=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ode=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=fn(e);return new Vt(r=>{const s=this._observeElement(n).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new de,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(n){return new(n||i)(U(az))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),lz=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=$i(e),this._subscribe()}constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new pe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(aD(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)(x(ode),x(Ee),x(ge))};static#t=this.\u0275dir=ne({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled",Ct],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[dr]})}return i})(),eO=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:[az]})}return i})();const cz=new Set;let ef,sde=(()=>{class i{constructor(e,n){this._platform=e,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lde}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function ade(i,t){if(!cz.has(i))try{ef||(ef=document.createElement("style"),t&&(ef.nonce=t),ef.setAttribute("type","text/css"),document.head.appendChild(ef)),ef.sheet&&(ef.sheet.insertRule(`@media ${i} {body{ }}`,0),cz.add(i))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(n){return new(n||i)(U(Bi),U(q_,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function lde(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let cde=(()=>{class i{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return dz(Ov(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=FC(dz(Ov(e)).map(s=>this._registerQuery(s).observable));return o=fv(o.pipe(ji(1)),o.pipe(sz(1),aD(0))),o.pipe(ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),o={observable:new Vt(s=>{const a=l=>this._zone.run(()=>s.next(l));return n.addListener(a),()=>{n.removeListener(a)}}).pipe(hr(n),ue(({matches:s})=>({query:e,matches:s})),Qe(this._destroySubject)),mql:n};return this._queries.set(e,o),o}static#e=this.\u0275fac=function(n){return new(n||i)(U(sde),U(ge))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function dz(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function hz(i,t,e){const n=lD(i,t);n.some(r=>r.trim()==e.trim())||(n.push(e.trim()),i.setAttribute(t,n.join(" ")))}function tO(i,t,e){const r=lD(i,t).filter(o=>o!=e.trim());r.length?i.setAttribute(t,r.join(" ")):i.removeAttribute(t)}function lD(i,t){return(i.getAttribute(t)||"").match(/\S+/g)||[]}const fz="cdk-describedby-message",cD="cdk-describedby-host";let iO=0,dde=(()=>{class i{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+iO++,this._document=e,this._id=ee(uh)+"-"+iO++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const o=nO(n,r);"string"!=typeof n?(mz(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;const o=nO(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof n){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${cD}="${this._id}"]`);for(let n=0;n0!=r.indexOf(fz));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=this._messageRegistry.get(n);hz(e,"aria-describedby",r.messageElement.id),e.setAttribute(cD,this._id),r.referenceCount++}_removeMessageReference(e,n){const r=this._messageRegistry.get(n);r.referenceCount--,tO(e,"aria-describedby",r.messageElement.id),e.removeAttribute(cD)}_isElementDescribedByMessage(e,n){const r=lD(e,"aria-describedby"),o=this._messageRegistry.get(n),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(n){return new(n||i)(U(it),U(Bi))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function nO(i,t){return"string"==typeof i?`${t||""}/${i}`:i}function mz(i,t){i.id||(i.id=`${fz}-${t}-${iO++}`)}class pz{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new de,this._typeaheadSubscription=Ue.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new de,this.change=new de,t instanceof Ic&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(kn(e=>this._pressedLetters.push(e)),aD(t),ci(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t);this._activeItem=e[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Ic?this._items.toArray():this._items}}class ude extends pz{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class dD extends pz{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let gz=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function fde(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function hde(i){try{return i.frameElement}catch{return null}}(function wde(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(n&&(-1===bz(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=bz(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function vde(i){let t=i.nodeName.toLowerCase(),e="input"===t&&i.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function yde(i){return!function pde(i){return function _de(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function mde(i){let t=i.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(i)||function gde(i){return function bde(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||_z(i))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(n){return new(n||i)(U(Bi))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function _z(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let t=i.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function bz(i){if(!_z(i))return null;const t=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class xde{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,e,n,r,o=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(ji(1)).subscribe(t)}}let Cde=(()=>{class i{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new xde(e,this._checker,this._ngZone,this._document,n)}static#e=this.\u0275fac=function(n){return new(n||i)(U(gz),U(ge),U(it))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function uD(i){return 0===i.buttons||0===i.detail}function hD(i){const t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const Dde=new V("cdk-input-modality-detector-options"),kde={ignoreKeys:[18,17,224,91,16]},Wp=Ml({passive:!0,capture:!0});let Ede=(()=>{class i{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new gr(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ia(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(uD(s)?"keyboard":"mouse"),this._mostRecentTarget=ia(s))},this._onTouchstart=s=>{hD(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ia(s))},this._options={...kde,...o},this.modalityDetected=this._modality.pipe(sz(1)),this.modalityChanged=this.modalityDetected.pipe(sd()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wp),r.addEventListener("mousedown",this._onMousedown,Wp),r.addEventListener("touchstart",this._onTouchstart,Wp)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wp),document.removeEventListener("mousedown",this._onMousedown,Wp),document.removeEventListener("touchstart",this._onTouchstart,Wp))}static#e=this.\u0275fac=function(n){return new(n||i)(U(Bi),U(ge),U(it),U(Dde,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const Sde=new V("liveAnnouncerElement",{providedIn:"root",factory:function Mde(){return null}}),Ade=new V("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Tde=0,Ide=(()=>{class i{constructor(e,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){const r=this._defaultOptions;let o,s;return 1===n.length&&"number"==typeof n[0]?s=n[0]:[o,s]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class i{constructor(e,n,r,o,s){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new de,this._rootNodeFocusAndBlurListener=a=>{for(let c=ia(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,n=!1){const r=fn(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ie();const o=GI(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return n&&(s.checkChildren=!0),s.subject;const a={checkChildren:n,subject:new de,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const n=fn(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const o=fn(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,n,l)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),o=ia(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,fD),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,fD)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Qe(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fD),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fD),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class i{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=ee(cde).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(rO,yz,wz),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(rO,yz):2===n&&e.add(rO,wz)}}static#e=this.\u0275fac=function(n){return new(n||i)(U(Bi),U(it))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Cz=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(n){return new(n||i)(U(xz))};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[eO]})}return i})();const Rde=new V("cdk-dir-doc",{providedIn:"root",factory:function Pde(){return ee(it)}}),Fde=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let xs=(()=>{class i{constructor(e){this.value="ltr",this.change=new pe,e&&(this.value=function Nde(i){const t=i?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?Fde.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(n){return new(n||i)(U(Rde,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Rv=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();const Lde=["text"];function Bde(i,t){if(1&i&&q(0,"mat-pseudo-checkbox",6),2&i){const e=ie();K("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function Vde(i,t){1&i&&q(0,"mat-pseudo-checkbox",7),2&i&&K("disabled",ie().disabled)}function Hde(i,t){if(1&i&&(D(0,"span",8),R(1),E()),2&i){const e=ie();I(1),Li("(",e.group.label,")")}}const zde=[[["mat-icon"]],"*"],Ude=["mat-icon","*"],jde=new V("mat-sanity-checks",{providedIn:"root",factory:function Wde(){return!0}});let Ot=(()=>{class i{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!qI()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(n){return new(n||i)(U(xz),U(jde,8),U(it))};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Rv,Rv]})}return i})();function Ez(i){return class extends i{get disabled(){return this._disabled}set disabled(t){this._disabled=$e(t)}constructor(...t){super(...t),this._disabled=!1}}}function mD(i,t){return class extends i{get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...e){super(...e),this.defaultColor=t,this.color=t}}}function pD(i){return class extends i{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=$e(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function jp(i,t=0){return class extends i{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?$i(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function oO(i){return class extends i{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let gD=(()=>{class i{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class Gde{constructor(t,e,n,r=!1){this._renderer=t,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Sz=Ml({passive:!0,capture:!0});class qde{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=ia(t);e&&this._events.get(t.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,n,r){const o=this._events.get(e);if(o){const s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Sz)})}removeHandler(t,e,n){const r=this._events.get(t);if(!r)return;const o=r.get(e);o&&(o.delete(n),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,Sz)))}}const Mz={enterDuration:225,exitDuration:150},Az=Ml({passive:!0,capture:!0}),Tz=["mousedown","touchstart"],Iz=["mouseup","mouseleave","touchend","touchcancel"];class Fv{static#e=this._eventManager=new qde;constructor(t,e,n,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=fn(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...Mz,...n.animation};n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=n.radius||function Jde(i,t,e){const n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const f=window.getComputedStyle(u),g=f.transitionDuration,b="none"===f.transitionProperty||"0s"===g||"0s, 0s"===g||0===r.width&&0===r.height,v=new Gde(this,u,n,b);u.style.transform="scale3d(1, 1, 1)",v.state=0,n.persistent||(this._mostRecentTransientRipple=v);let C=null;return!b&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const S=()=>this._finishRippleTransition(v),M=()=>this._destroyRipple(v);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",M),C={onTransitionEnd:S,onTransitionCancel:M}}),this._activeRipples.set(v,C),(b||!c)&&this._finishRippleTransition(v),v}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,n={...Mz,...t.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=fn(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Tz.forEach(n=>{Fv._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Iz.forEach(e=>{this._triggerElement.addEventListener(e,this,Az)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=1,!n&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=uD(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(Tz.forEach(e=>Fv._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&Iz.forEach(e=>t.removeEventListener(e,this,Az)))}}const ru=new V("mat-ripple-global-options");let zc=(()=>{class i{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,n,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Fv(this,n,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(ge),x(Bi),x(ru,8),x(Ui,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){2&n&&Pe("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return i})(),Uc=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Ot]})}return i})(),Yde=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ui,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,r){2&n&&Pe("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal","minimal"===r.appearance)("mat-pseudo-checkbox-full","full"===r.appearance)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return i})(),Oz=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot]})}return i})();const Rz=new V("MAT_OPTION_PARENT_COMPONENT"),Pz=new V("MatOptgroup");let Xde=0;class Zde{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Fz=(()=>{class i{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,n,r,o){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Xde++,this.onSelectionChange=new pe,this._stateChanges=new de}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!na(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Zde(this,e))}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Nt),x(Rz,8),x(Pz,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-option"]],viewQuery:function(n,r){if(1&n&&Pt(Lde,7),2&n){let o;he(o=fe())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,r){1&n&&Q("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(Qs("id",r.id),je("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Pe("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:["disabled","disabled",Ct]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[dr],ngContentSelectors:Ude,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(n,r){1&n&&(Lt(zde),_e(0,Bde,1,2,"mat-pseudo-checkbox",0),we(1),D(2,"span",1,2),we(4,1),E(),_e(5,Vde,1,1,"mat-pseudo-checkbox",3)(6,Hde,2,1,"span",4),q(7,"div",5)),2&n&&(xe(0,r.multiple?0:-1),I(5),xe(5,r.multiple||!r.selected||r.hideSingleSelectionIndicator?-1:5),I(1),xe(6,r.group&&r.group._inert?6:-1),I(1),K("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[zc,Yde],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return i})(),Nz=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Uc,Ot,Oz]})}return i})();const Lz={capture:!0},Bz=["focus","click","mouseenter","touchstart"],sO="mat-ripple-loader-uninitialized",aO="mat-ripple-loader-class-name",Vz="mat-ripple-loader-centered",_D="mat-ripple-loader-disabled";let Hz=(()=>{class i{constructor(){this._document=ee(it,{optional:!0}),this._animationMode=ee(Ui,{optional:!0}),this._globalRippleOptions=ee(ru,{optional:!0}),this._platform=ee(Bi),this._ngZone=ee(ge),this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const r=e.target.closest(`[${sO}]`);r&&this.createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const e of Bz)this._document?.addEventListener(e,this._onInteraction,Lz)})}ngOnDestroy(){for(const e of Bz)this._document?.removeEventListener(e,this._onInteraction,Lz)}configureRipple(e,n){e.setAttribute(sO,""),(n.className||!e.hasAttribute(aO))&&e.setAttribute(aO,n.className||""),n.centered&&e.setAttribute(Vz,""),n.disabled&&e.setAttribute(_D,"")}getRipple(e){return e.matRipple?e.matRipple:this.createRipple(e)}setDisabled(e,n){const r=e.matRipple;r?r.disabled=n:n?e.setAttribute(_D,""):e.removeAttribute(_D)}createRipple(e){if(!this._document)return;e.querySelector(".mat-ripple")?.remove();const n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(aO)),e.append(n);const r=new zc(new Ee(n),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(Vz),r.disabled=e.hasAttribute(_D),this.attachRipple(e,r),r}attachRipple(e,n){e.removeAttribute(sO),e.matRipple=n}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const tue=["mat-button",""],iue=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],nue=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],oue=["mat-icon-button",""],sue=["*"],aue=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let zz=(()=>{class i{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,n,r,o){this._elementRef=e,this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=ee(Tl),this._rippleLoader=ee(Hz),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const s=this._elementRef.nativeElement,a=s.classList;for(const{attribute:l,mdcClasses:c}of aue)s.hasAttribute(l)&&a.add(...c)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(n){uM()};static#t=this.\u0275dir=ne({type:i,inputs:{color:"color",disableRipple:["disableRipple","disableRipple",Ct],disabled:["disabled","disabled",Ct]},features:[dr]})}return i})(),ou=(()=>{class i extends zz{constructor(e,n,r,o){super(e,n,r,o)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Bi),x(ge),x(Ui,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:9,hostBindings:function(n,r){2&n&&(je("disabled",r.disabled||null),wb(r.color?"mat-"+r.color:""),Pe("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ae],attrs:tue,ngContentSelectors:nue,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){1&n&&(Lt(iue),q(0,"span",0),we(1),D(2,"span",1),we(3,1),E(),we(4,2),q(5,"span",2)(6,"span",3)),2&n&&Pe("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return i})(),bD=(()=>{class i extends zz{constructor(e,n,r,o){super(e,n,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Bi),x(ge),x(Ui,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["button","mat-icon-button",""]],hostVars:9,hostBindings:function(n,r){2&n&&(je("disabled",r.disabled||null),wb(r.color?"mat-"+r.color:""),Pe("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ae],attrs:oue,ngContentSelectors:sue,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){1&n&&(Lt(),q(0,"span",0),we(1),q(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return i})(),Cs=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Uc,Ot]})}return i})();class cue extends de{constructor(t=1/0,e=1/0,n=ZI){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(n.push(t),!r&&n.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let s=0;sthis._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new Vt(e=>{const n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),n.unsubscribe(),this._elementObservables.delete(t)}}).pipe(ci(e=>e.some(n=>n.target===t)),function due(i,t,e){let n,r=!1;return i&&"object"==typeof i?({bufferSize:n=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=i):n=i??1/0,_r({connector:()=>new cue(n,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),Qe(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let hue=(()=>{class i{constructor(){this._observers=new Map,this._ngZone=ee(ge)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,n){const r=n?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new uue(r)),this._observers.get(r).observe(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const Wc="*";function jc(i,t){return{type:7,name:i,definitions:t,options:{}}}function ra(i,t=null){return{type:4,styles:t,timings:i}}function Ln(i){return{type:6,styles:i,offset:null}}function oa(i,t,e){return{type:0,name:i,styles:t,options:e}}function Ds(i,t,e=null){return{type:1,expr:i,animation:t,options:e}}function mue(i=null){return{type:9,options:i}}function pue(i,t,e=null){return{type:11,selector:i,animation:t,options:e}}class Nv{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Uz{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const t=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const vue=["notch"],yue=["matFormFieldNotchedOutline",""],wue=["*"],xue=["textField"],Cue=["iconPrefixContainer"],Due=["textPrefixContainer"];function kue(i,t){1&i&&q(0,"span",16)}function Eue(i,t){if(1&i&&(D(0,"label",14),we(1,1),_e(2,kue,1,0,"span",15),E()),2&i){const e=ie(2);K("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),je("for",e._control.id),I(2),xe(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function Sue(i,t){1&i&&_e(0,Eue,3,5,"label",14),2&i&&xe(0,ie()._hasFloatingLabel()?0:-1)}function Mue(i,t){1&i&&q(0,"div",17)}function Aue(i,t){}function Tue(i,t){1&i&&_e(0,Aue,0,0,"ng-template",9),2&i&&(ie(2),K("ngTemplateOutlet",Qn(1)))}function Iue(i,t){if(1&i&&(D(0,"div",5),_e(1,Tue,1,1,null,9),E()),2&i){const e=ie();K("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),I(1),xe(1,e._forceDisplayInfixLabel()?-1:1)}}function Oue(i,t){1&i&&(D(0,"div",18,19),we(2,2),E())}function Rue(i,t){1&i&&(D(0,"div",20,21),we(2,3),E())}function Pue(i,t){}function Fue(i,t){1&i&&_e(0,Pue,0,0,"ng-template",9),2&i&&(ie(),K("ngTemplateOutlet",Qn(1)))}function Nue(i,t){1&i&&(D(0,"div",22),we(1,4),E())}function Lue(i,t){1&i&&(D(0,"div",23),we(1,5),E())}function Bue(i,t){1&i&&q(0,"div",12)}function Vue(i,t){1&i&&(D(0,"div",24),we(1,6),E()),2&i&&K("@transitionMessages",ie()._subscriptAnimationState)}function Hue(i,t){if(1&i&&(D(0,"mat-hint",26),R(1),E()),2&i){const e=ie(2);K("id",e._hintLabelId),I(1),qt(e.hintLabel)}}function zue(i,t){if(1&i&&(D(0,"div",25),_e(1,Hue,2,2,"mat-hint",26),we(2,7),q(3,"div",27),we(4,8),E()),2&i){const e=ie();K("@transitionMessages",e._subscriptAnimationState),I(1),xe(1,e.hintLabel?1:-1)}}const Uue=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Wue=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Il=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["mat-label"]]})}return i})();const jue=new V("MatError");let $ue=0,Wz=(()=>{class i{constructor(){this.align="start",this.id="mat-mdc-hint-"+$ue++}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,r){2&n&&(Qs("id",r.id),je("align",null),Pe("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"}})}return i})();const Gue=new V("MatPrefix"),que=new V("MatSuffix"),jz=new V("FloatingLabelParent");let $z=(()=>{class i{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=ee(hue),this._ngZone=ee(ge),this._parent=ee(jz),this._resizeSubscription=new Ue}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Kue(i){if(null!==i.offsetParent)return i.scrollWidth;const e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const n=e.scrollWidth;return e.remove(),n}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee))};static#t=this.\u0275dir=ne({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,r){2&n&&Pe("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();const Gz="mdc-line-ripple--active",vD="mdc-line-ripple--deactivating";let qz=(()=>{class i{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,s=o.contains(vD);"opacity"===r.propertyName&&s&&o.remove(Gz,vD)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(vD),e.add(Gz)}deactivate(){this._elementRef.nativeElement.classList.add(vD)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(ge))};static#t=this.\u0275dir=ne({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),Kz=(()=>{class i{constructor(e,n){this._elementRef=e,this._ngZone=n,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(ge))};static#t=this.\u0275cmp=w({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,r){if(1&n&&Pt(vue,5),2&n){let o;he(o=fe())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,r){2&n&&Pe("mdc-notched-outline--notched",r.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:yue,ngContentSelectors:wue,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(n,r){1&n&&(Lt(),q(0,"div",0),D(1,"div",1,2),we(3),E(),q(4,"div",3))},encapsulation:2,changeDetection:0})}return i})();const Jue={transitionMessages:jc("transitionMessages",[oa("enter",Ln({opacity:1,transform:"translateY(0%)"})),Ds("void => enter",[Ln({opacity:0,transform:"translateY(-5px)"}),ra("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yD=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i})}return i})();const wD=new V("MatFormField"),Yue=new V("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Jz=0,su=(()=>{class i{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$e(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const n=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,n,r,o,s,a,l,c){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Jz++,this._hintLabelId="mat-mdc-hint-"+Jz++,this._subscriptAnimationState="",this._destroyed=new de,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Qe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Hi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Qe(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Qe(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=n?.getBoundingClientRect().width??0,s=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+s}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Nt),x(ge),x(xs),x(Bi),x(Yue,8),x(Ui,8),x(it))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-form-field"]],contentQueries:function(n,r,o){if(1&n&&(ut(o,Il,5),ut(o,Il,7),ut(o,yD,5),ut(o,Gue,5),ut(o,que,5),ut(o,jue,5),ut(o,Wz,5)),2&n){let s;he(s=fe())&&(r._labelChildNonStatic=s.first),he(s=fe())&&(r._labelChildStatic=s.first),he(s=fe())&&(r._formFieldControl=s.first),he(s=fe())&&(r._prefixChildren=s),he(s=fe())&&(r._suffixChildren=s),he(s=fe())&&(r._errorChildren=s),he(s=fe())&&(r._hintChildren=s)}},viewQuery:function(n,r){if(1&n&&(Pt(xue,5),Pt(Cue,5),Pt(Due,5),Pt($z,5),Pt(Kz,5),Pt(qz,5)),2&n){let o;he(o=fe())&&(r._textField=o.first),he(o=fe())&&(r._iconPrefixContainer=o.first),he(o=fe())&&(r._textPrefixContainer=o.first),he(o=fe())&&(r._floatingLabel=o.first),he(o=fe())&&(r._notchedOutline=o.first),he(o=fe())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,r){2&n&&Pe("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===r._animationMode)("mat-form-field-appearance-fill","fill"==r.appearance)("mat-form-field-appearance-outline","outline"==r.appearance)("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary","accent"!==r.color&&"warn"!==r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Re([{provide:wD,useExisting:i},{provide:jz,useExisting:i}])],ngContentSelectors:Wue,decls:18,vars:21,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],["class","mat-mdc-form-field-icon-prefix"],["class","mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],["class","mat-mdc-form-field-text-suffix"],["class","mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,r){if(1&n&&(Lt(Uue),_e(0,Sue,1,1,"ng-template",null,0,zb),D(2,"div",1,2),Q("click",function(s){return r._control.onContainerClick(s)}),_e(4,Mue,1,0,"div",3),D(5,"div",4),_e(6,Iue,2,2,"div",5)(7,Oue,3,0,"div",6)(8,Rue,3,0,"div",7),D(9,"div",8),_e(10,Fue,1,1,null,9),we(11),E(),_e(12,Nue,2,0,"div",10)(13,Lue,2,0,"div",11),E(),_e(14,Bue,1,0,"div",12),E(),D(15,"div",13),_e(16,Vue,2,1)(17,zue,5,2),E()),2&n){let o;I(2),Pe("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),I(2),xe(4,r._hasOutline()||r._control.disabled?-1:4),I(2),xe(6,r._hasOutline()?6:-1),I(1),xe(7,r._hasIconPrefix?7:-1),I(1),xe(8,r._hasTextPrefix?8:-1),I(2),xe(10,!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),I(2),xe(12,r._hasTextSuffix?12:-1),I(1),xe(13,r._hasIconSuffix?13:-1),I(1),xe(14,r._hasOutline()?-1:14),I(1),Pe("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),I(1),xe(16,"error"===(o=r._getDisplayedMessages())?16:"hint"===o?17:-1)}},dependencies:[eT,Wz,$z,Kz,qz],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Jue.transitionMessages]},changeDetection:0})}return i})(),Jo=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Fc,eO,Ot]})}return i})();const Zz=Ml({passive:!0});let Que=(()=>{class i{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Wr;const n=fn(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new de,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||n.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(n.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",a,Zz),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",a,Zz)}}),o}stopMonitoring(e){const n=fn(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}static#e=this.\u0275fac=function(n){return new(n||i)(U(Bi),U(ge))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ehe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();const the=new V("MAT_INPUT_VALUE_ACCESSOR"),ihe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let nhe=0;const rhe=oO(class{constructor(i,t,e,n){this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new de}});let au=(()=>{class i extends rhe{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(gT.required)??!1}set required(e){this._required=$e(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&rz().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=$e(e)}constructor(e,n,r,o,s,a,l,c,u,f){super(a,o,s,r),this._elementRef=e,this._platform=n,this._autofillMonitor=c,this._formField=f,this._uid="mat-input-"+nhe++,this.focused=!1,this.stateChanges=new de,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(b=>rz().has(b)),this._iOSKeyupListener=b=>{const v=b.target;!v.value&&0===v.selectionStart&&0===v.selectionEnd&&(v.setSelectionRange(1,1),v.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,g=p.nodeName.toLowerCase();this._inputValueAccessor=l||p,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===g,this._isTextarea="textarea"===g,this._isInFormField=!!f,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){ihe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Bi),x(La,10),x(Hh,8),x(Sp,8),x(gD),x(the,10),x(Que),x(ge),x(wD,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,r){1&n&&Q("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&n&&(Qs("id",r.id)("disabled",r.disabled)("required",r.required),je("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),Pe("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Re([{provide:yD,useExisting:i}]),Ae,Zi]})}return i})(),Ha=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Jo,Jo,ehe,Ot]})}return i})();new TextEncoder;const e6=new TextDecoder;class che extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(t){super(t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class tf extends che{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}const n6=crypto;function Dhe(i,t){this.v=i,this.k=t}function CD(i){var t,e;function n(o,s){try{var a=i[o](s),l=a.value,c=l instanceof Dhe;Promise.resolve(c?l.v:l).then(function(u){if(c){var f="return"===o?"return":"next";if(!l.k||u.done)return n(f,u);u=i[f](u).value}r(a.done?"return":"normal",u)},function(u){n("throw",u)})}catch(u){r("throw",u)}}function r(o,s){switch(o){case"return":t.resolve({value:s,done:!0});break;case"throw":t.reject(s);break;default:t.resolve({value:s,done:!1})}(t=t.next)?n(t.key,t.arg):e=null}this._invoke=function(o,s){return new Promise(function(a,l){var c={key:o,arg:s,resolve:a,reject:l,next:null};e?e=e.next=c:(t=e=c,n(o,s))})},"function"!=typeof i.return&&(this.return=void 0)}let UO;n6.getRandomValues.bind(n6),Symbol(),CD.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},CD.prototype.next=function(i){return this._invoke("next",i)},CD.prototype.throw=function(i){return this._invoke("throw",i)},CD.prototype.return=function(i){return this._invoke("return",i)},(typeof navigator>"u"||!navigator.userAgent?.startsWith?.("Mozilla/5.0 "))&&(UO="jose/v5.1.0");function Fhe(i){if("string"!=typeof i)throw new tf("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:e}=i.split(".");if(5===e)throw new tf("Only JWTs using Compact JWS serialization can be decoded");if(3!==e)throw new tf("Invalid JWT");if(!t)throw new tf("JWTs must contain a payload");let n,r;try{n=(i=>{let t=i;t instanceof Uint8Array&&(t=e6.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(i=>{const t=atob(i),e=new Uint8Array(t.length);for(let n=0;n{class i{constructor(e){this.ngZone=e,this.jwtCredential=_s(null),this.tokenResponse=_s(null),this.promptOnLoad=!1,this.credential=xn(()=>{const r=this.jwtCredential();return r?Fhe(r):null});const n=document.createElement("script");n.type="text/javascript",n.src="https://accounts.google.com/gsi/client",n.async=!0,document.head.appendChild(n),this.googleGciClientLoaded=new Promise((r,o)=>n.onload=()=>{r()}).then(()=>google.accounts.id.initialize({client_id:"enter you oauth client id here",callback:r=>{this.ngZone.run(()=>{this.jwtCredential.set(r.credential)})},auto_select:!0}))}getToken(e){var n=this;return en(function*(){let r=n.tokenResponse();return(!r||!google.accounts.oauth2.hasGrantedAllScopes(r,e))&&(r=yield n.authorize(e),n.tokenResponse.set(r)),console.log(r.expires_in),r})()}authorize(e){return en(function*(){return new Promise((n,r)=>{google.accounts.oauth2.initTokenClient({client_id:"enter you oauth client id here",scope:e,callback:n}).requestAccessToken()})})()}logout(){const e=this.tokenResponse();e&&google.accounts.oauth2.revoke(e.access_token,()=>{this.jwtCredential.set(null),this.tokenResponse.set(null)})}prompt(){var e=this;return en(function*(){yield e.googleGciClientLoaded,google.accounts.id.prompt()})()}renderLoginButton(e){var n=this;return en(function*(){yield n.googleGciClientLoaded,google.accounts.id.renderButton(e,{type:"standard",theme:"outline",size:"medium",width:215})})()}signout(){var e=this;return en(function*(){yield e.googleGciClientLoaded,google.accounts.id.disableAutoSelect()})()}static#e=this.\u0275fac=function(n){return new(n||i)(U(ge))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const Vhe=["googleButton"];function Hhe(i,t){1&i&&(D(0,"div"),q(1,"img",11),E()),2&i&&(I(1),K("src",t.picture,A))}function zhe(i,t){1&i&&q(0,"div",null,12)}function Uhe(i,t){if(1&i&&(D(0,"div",13),R(1),E()),2&i){const e=ie();I(1),qt(e.error)}}function Whe(i,t){1&i&&(D(0,"div")(1,"p"),R(2," You are logged in as an experiment, you can "),D(3,"a",14),R(4,"view experiments"),E(),R(5," or "),D(6,"a",15),R(7,"create a new one"),E()()())}let h6=(()=>{class i{constructor(e,n,r,o){this.route=e,this.router=n,this.stateService=r,this.authService=o,this.error="",this.experiments=xn(()=>(console.log(this.stateService.data()),Object.values(this.stateService.data().experiments).sort((s,a)=>(console.log(s),console.log(a),s.name.localeCompare(a.name))))),Tc(()=>{document.title=`Experiment: ${this.stateService.appName()}`})}joinExperiment(e){var n=this;return en(function*(){n.error="";const r=e.split("/");console.log(r);const o=r.pop();console.log(o),console.log(r);const s=r.join("");console.log(s),o&&s?(console.log("navigate"),yield n.router.navigate(["/participant",s,o]),console.log("navigated")):n.error="Bad access code"})()}ngAfterViewInit(){console.log(this.googleButton),this.googleButton&&this.authService.renderLoginButton(this.googleButton.nativeElement)}clearError(){this.error=""}static#e=this.\u0275fac=function(n){return new(n||i)(x(Hc),x(Ko),x(fr),x(KO))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-home"]],viewQuery:function(n,r){if(1&n&&Pt(Vhe,5),2&n){let o;he(o=fe())&&(r.googleButton=o.first)}},standalone:!0,features:[vi],decls:24,vars:4,consts:[["role","banner",1,"toolbar"],[1,"title"],[1,"spacer"],["aria-label","PAIR","href","https://pair.withgoogle.com/","title","Home",1,"small-logo"],["src","webapp/assets/pair-logo.svg","alt","PAIR logo"],["role","main",1,"content"],["class","error"],[1,"full-width"],["matInput","","placeholder","Write your response"],["accessCodeInput",""],["color","primary","mat-button","",3,"click"],["alt","profile picture",1,"profileImg",3,"src"],["googleButton",""],[1,"error"],["routerLink","experimenter"],["routerLink","experimenter/create-experiment"]],template:function(n,r){if(1&n){const o=Ci();D(0,"div",0)(1,"span",1),R(2),E(),q(3,"div",2),_e(4,Hhe,2,1,"div")(5,zhe,2,0),D(6,"a",3),q(7,"img",4),E()(),D(8,"div",5),_e(9,Uhe,2,1,"div",6)(10,Whe,8,0,"div"),D(11,"div")(12,"p"),R(13,"To join an experiment, enter your access code:"),E(),D(14,"p")(15,"mat-form-field",7)(16,"mat-label"),R(17,"Access code"),E(),q(18,"input",8,9),E(),q(20,"br"),D(21,"button",10),Q("click",function(){He(o);const a=Qn(19);return Se(r.joinExperiment(a.value))}),D(22,"span"),R(23,"Join the experiment"),E()()()()()}if(2&n){let o;I(2),Li("Experiment: ",r.stateService.appName(),""),I(2),xe(4,(o=r.authService.credential())?4:5,o),I(5),xe(9,r.error?9:-1),I(1),xe(10,(o=r.authService.credential())?10:-1,o)}},dependencies:[Jo,su,Il,Cs,ou,Ba,Ha,au,Zh,Xh],styles:[".toolbar[_ngcontent-%COMP%]{top:0;left:0;right:0;height:60px;display:flex;align-items:center;background-color:#000000de;color:#fff;font-weight:600;flex:0 0 60px}.toolbar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 16px}.small-logo[_ngcontent-%COMP%]{width:100px}.spacer[_ngcontent-%COMP%]{flex:1}.page[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.title[_ngcontent-%COMP%]{font-weight:400}.current-user[_ngcontent-%COMP%]{margin:0 15px;font-weight:300;color:#ccc}.content[_ngcontent-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{min-height:calc(100vh - 60px);min-width:100%}.menu-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column}.icon-menu-item[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-content:center}.icon-menu-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:5px}.profileImg[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%}.error[_ngcontent-%COMP%]{color:red;background-color:#fee;padding:.5em;border-radius:5px;border:1px solid #AAA;margin-bottom:1em}.content[_ngcontent-%COMP%]{padding:1em}"]})}return i})();const kD=new V("mat-chips-default-options");let eR,y6=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:[gD,{provide:kD,useValue:{separatorKeyCodes:[13]}}],imports:[Ot,Uc,Ot]})}return i})(),vfe=1;const MD={};function w6(i){return i in MD&&(delete MD[i],!0)}const yfe={setImmediate(i){const t=vfe++;return MD[t]=!0,eR||(eR=Promise.resolve()),eR.then(()=>w6(t)&&i()),t},clearImmediate(i){w6(i)}},{setImmediate:wfe,clearImmediate:xfe}=yfe,AD={setImmediate(...i){const{delegate:t}=AD;return(t?.setImmediate||wfe)(...i)},clearImmediate(i){const{delegate:t}=AD;return(t?.clearImmediate||xfe)(i)},delegate:void 0},tR=new class Dfe extends QI{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===e&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===e&&n.shift();)t.unsubscribe();throw r}}}(class Cfe extends XI{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=AD.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,e,n);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(AD.clearImmediate(e),t._scheduled===e&&(t._scheduled=void 0))}});function x6(i,t){return t?e=>fv(t.pipe(ji(1),function kfe(){return ce((i,t)=>{i.subscribe(ae(t,ot))})}()),e.pipe(x6(i))):Sn((e,n)=>jn(i(e,n)).pipe(ji(1),BC(e)))}function iR(i=0,t,e=nde){let n=-1;return null!=t&&(c0(t)?e=t:n=t),new Vt(r=>{let o=function Efe(i){return i instanceof Date&&!isNaN(i)}(i)?+i-e.now():i;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function C6(i,t=Iv){const e=iR(i,t);return x6(()=>e)}class nR{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class D6 extends nR{constructor(t,e,n,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class TD extends nR{constructor(t,e,n,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Sfe extends nR{constructor(t){super(),this.element=t instanceof Ee?t.nativeElement:t}}class k6{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof D6?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof TD?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Sfe?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Mfe extends k6{constructor(t,e,n,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(t.injector||this._defaultInjector||Jn.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Afe=(()=>{class i extends k6{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new pe,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(n){return new(n||i)(x(Jm),x(Tr),x(it))};static#t=this.\u0275dir=ne({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ae]})}return i})(),E6=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();const Tfe=["addListener","removeListener"],Ife=["addEventListener","removeEventListener"],Ofe=["on","off"];function Lv(i,t,e,n){if(Mt(e)&&(n=e,e=void 0),n)return Lv(i,t,e).pipe(pT(n));const[r,o]=function Ffe(i){return Mt(i.addEventListener)&&Mt(i.removeEventListener)}(i)?Ife.map(s=>a=>i[s](t,a,e)):function Rfe(i){return Mt(i.addListener)&&Mt(i.removeListener)}(i)?Tfe.map(S6(i,t)):function Pfe(i){return Mt(i.on)&&Mt(i.off)}(i)?Ofe.map(S6(i,t)):[];if(!r&&Rf(i))return Sn(s=>Lv(s,t,e))(jn(i));if(!r)throw new TypeError("Invalid event target");return new Vt(s=>{const a=(...l)=>s.next(1o(a)})}function S6(i,t){return e=>n=>i[e](t,n)}const Bv={schedule(i){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Bv;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=t(o=>{e=void 0,i(o)});return new Ue(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:t}=Bv;return(t?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:t}=Bv;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0},M6=new class Lfe extends QI{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===e&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===e&&n.shift();)t.unsubscribe();throw r}}}(class Nfe extends XI{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=Bv.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,e,n);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Bv.cancelAnimationFrame(e),t._scheduled=void 0)}});function A6(i,t=Iv){return function Bfe(i){return ce((t,e)=>{let n=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(ae(e,c=>{n=!0,r=c,o||jn(i(c)).subscribe(o=ae(e,a,l))},()=>{s=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>iR(i,t))}let Kp=(()=>{class i{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Vt(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(A6(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ie()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(ci(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=fn(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Lv(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(n){return new(n||i)(U(ge),U(Bi),U(it,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Vv=(()=>{class i{constructor(e,n,r,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new de,this._elementScrolled=new Vt(s=>this.ngZone.runOutsideAngular(()=>Lv(this.elementRef.nativeElement,"scroll").pipe(Qe(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const n=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),r&&0!=Av()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==Av()?e.left=e.right:1==Av()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const n=this.elementRef.nativeElement;oz()?n.scrollTo(e):(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left))}measureScrollOffset(e){const n="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?r:n:"end"==e&&(e=s?n:r),s&&2==Av()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==Av()?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Kp),x(ge),x(xs,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return i})(),Hv=(()=>{class i{constructor(e,n,r){this._platform=e,this._change=new de,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(A6(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(n){return new(n||i)(U(Bi),U(ge),U(it,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),nf=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})(),T6=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Rv,nf,Rv,nf]})}return i})();const I6=oz();class Ufe{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Nn(-this._previousScrollPosition.left),t.style.top=Nn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,n=t.style,r=this._document.body.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),I6&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),I6&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class Wfe{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0).pipe(ci(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class O6{enable(){}disable(){}attach(){}}function rR(i,t){return t.some(e=>i.bottome.bottom||i.righte.right)}function R6(i,t){return t.some(e=>i.tope.bottom||i.lefte.right)}class jfe{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();rR(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let $fe=(()=>{class i{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new O6,this.close=s=>new Wfe(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Ufe(this._viewportRuler,this._document),this.reposition=s=>new jfe(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(n){return new(n||i)(U(Kp),U(Hv),U(ge),U(it))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class oR{constructor(t){if(this.scrollStrategy=new O6,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class Gfe{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let P6=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(n){return new(n||i)(U(it))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),qfe=(()=>{class i extends P6{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(n){return new(n||i)(U(it),U(ge,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Kfe=(()=>{class i extends P6{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=ia(o)},this._clickListener=o=>{const s=ia(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const f=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(o)):f.next(o)}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(n){return new(n||i)(U(it),U(Bi),U(ge,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),F6=(()=>{class i{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||qI()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new de,this._outsidePointerEvents=new de,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ji(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Nn(this._config.width),t.height=Nn(this._config.height),t.minWidth=Nn(this._config.minWidth),t.minHeight=Nn(this._config.minHeight),t.maxWidth=Nn(this._config.maxWidth),t.maxHeight=Nn(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,n){const r=Ov(e||[]).filter(o=>!!o);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Qe(Hi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const N6="cdk-overlay-connected-position-bounding-box",Yfe=/([A-Za-z%]+)$/;class Xfe{get positions(){return this._preferredPositions}constructor(t,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new de,this._resizeSubscription=Ue.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(N6),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,n,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,n)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&rf(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N6),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,n){let r,o;if("center"==n.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==n.originX?s:a}return e.left<0&&(r-=e.left),o="center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,n){let r,o;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,n,r){const o=B6(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let p=0-a,g=a+o.height-n.height,b=this._subtractOverflows(o.width,0-s,s+o.width-n.width),v=this._subtractOverflows(o.height,p,g),C=b*v;return{visibleArea:C,isCompletelyWithinViewport:o.width*o.height===C,fitsInViewportVertically:v===o.height,fitsInViewportHorizontally:b==o.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,o=n.right-e.x,s=L6(this._overlayRef.getConfig().minHeight),a=L6(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=B6(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-n.top-t.y,0),c=Math.max(o.left-n.left-t.x,0);let u=0,f=0;return u=r.width<=o.width?c||-s:t.xb&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-b/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=n.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)f=t.x,u=n.right-t.x;else{const g=Math.min(n.right-t.x+n.left,t.x),b=this._lastBoundingBoxSize.width;u=2*g,f=t.x-g,u>b&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-b/2)}return{top:s,left:f,bottom:a,right:p,width:u,height:o}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Nn(n.height),r.top=Nn(n.top),r.bottom=Nn(n.bottom),r.width=Nn(n.width),r.left=Nn(n.left),r.right=Nn(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Nn(o)),s&&(r.maxWidth=Nn(s))}this._lastBoundingBoxSize=n,rf(this._boundingBox.style,r)}_resetBoundingBoxStyles(){rf(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){rf(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();rf(n,this._getExactOverlayY(e,t,u)),rf(n,this._getExactOverlayX(e,t,u))}else n.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=Nn(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=Nn(s.maxWidth):o&&(n.maxWidth="")),rf(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Nn(o.y),r}_getExactOverlayX(t,e,n){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Nn(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:R6(t,n),isOriginOutsideView:rR(t,n),isOverlayClipped:R6(e,n),isOverlayOutsideView:rR(e,n)}}_subtractOverflows(t,...e){return e.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Ov(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Ee)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function rf(i,t){for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function L6(i){if("number"!=typeof i&&null!=i){const[t,e]=i.split(Yfe);return e&&"px"!==e?null:parseFloat(t)}return i||null}function B6(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const V6="cdk-global-overlay-wrapper";class Zfe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(V6),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,f=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let g="",b="",v="";l?v="flex-start":"center"===u?(v="center",p?b=f:g=f):p?"left"===u||"end"===u?(v="flex-end",g=f):("right"===u||"start"===u)&&(v="flex-start",b=f):"left"===u||"start"===u?(v="flex-start",g=f):("right"===u||"end"===u)&&(v="flex-end",b=f),t.position=this._cssPosition,t.marginLeft=l?"0":g,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":b,e.justifyContent=v,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(V6),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Qfe=(()=>{class i{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new Zfe}flexibleConnectedTo(e){return new Xfe(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(n){return new(n||i)(U(Hv),U(it),U(Bi),U(F6))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),eme=0,du=(()=>{class i{constructor(e,n,r,o,s,a,l,c,u,f,p,g){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=f,this._outsideClickDispatcher=p,this._animationsModuleType=g}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),s=new oR(e);return s.direction=s.direction||this._directionality.value,new Jfe(o,n,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+eme++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(qd)),new Mfe(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(n){return new(n||i)(U($fe),U(F6),U(Jm),U(Qfe),U(qfe),U(Jn),U(ge),U(it),U(xs),U(Dp),U(Kfe),U(Ui,8))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const tme=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],H6=new V("cdk-connected-overlay-scroll-strategy");let sR=(()=>{class i{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee))};static#t=this.\u0275dir=ne({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return i})(),z6=(()=>{class i{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,n,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=Ue.EMPTY,this._attachSubscription=Ue.EMPTY,this._detachSubscription=Ue.EMPTY,this._positionSubscription=Ue.EMPTY,this._disposeOnNavigation=!1,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new pe,this.positionChange=new pe,this.attach=new pe,this.detach=new pe,this.overlayKeydown=new pe,this.overlayOutsideClick=new pe,this._templatePortal=new TD(n,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tme);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!na(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new oR({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof sR?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function zfe(i,t=!1){return ce((e,n)=>{let r=0;e.subscribe(ae(n,o=>{const s=i(o,r++);(s||t)&&n.next(o),!s&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)(x(du),x(jo),x(Tr),x(H6),x(xs,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop",Ct],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition",Ct],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ct],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ct],push:["cdkConnectedOverlayPush","push",Ct],disposeOnNavigation:["cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ct]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[dr,Zi]})}return i})();const nme={provide:H6,deps:[du],useFactory:function ime(i){return()=>i.scrollStrategies.reposition()}};let aR=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:[du,nme],imports:[Rv,E6,T6,T6]})}return i})();const rme=["mat-menu-item",""];function ome(i,t){1&i&&(sl(),D(0,"svg",3),q(1,"polygon",4),E())}const sme=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ame=["mat-icon, [matMenuItemIcon]","*"];function lme(i,t){if(1&i){const e=Ci();D(0,"div",0),Q("keydown",function(r){return He(e),Se(ie()._handleKeydown(r))})("click",function(){return He(e),Se(ie().closed.emit("click"))})("@transformMenu.start",function(r){return He(e),Se(ie()._onAnimationStart(r))})("@transformMenu.done",function(r){return He(e),Se(ie()._onAnimationDone(r))}),D(1,"div",1),we(2),E()()}if(2&i){const e=ie();K("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),je("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const cme=["*"],lR=new V("MAT_MENU_PANEL");let ID=(()=>{class i{constructor(e,n,r,o,s){this._elementRef=e,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new de,this._focused=new de,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",ra("120ms cubic-bezier(0, 0, 0.2, 1)",Ln({opacity:1,transform:"scale(1)"}))),Ds("* => void",ra("100ms 25ms linear",Ln({opacity:0})))]),fadeInItems:jc("fadeInItems",[oa("showing",Ln({opacity:1})),Ds("void => *",[Ln({opacity:0}),ra("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ume=0;const hme=new V("mat-menu-default-options",{providedIn:"root",factory:function fme(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let zv=(()=>{class i{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,n,r,o){this._elementRef=e,this._ngZone=n,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new Ic,this._classList={},this._panelAnimationState="void",this._animationDone=new de,this.closed=new pe,this.close=this.closed,this.panelId="mat-menu-panel-"+ume++,this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new dD(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(hr(this._directDescendantItems),Mn(e=>Hi(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(hr(this._directDescendantItems),Mn(n=>Hi(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:na(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===n||40===n)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(ji(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,n=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===n,r["mat-menu-below"]="below"===n,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(hr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(ge),x(hme),x(Nt))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-menu"]],contentQueries:function(n,r,o){if(1&n&&(ut(o,dme,5),ut(o,ID,5),ut(o,ID,4)),2&n){let s;he(s=fe())&&(r.lazyContent=s.first),he(s=fe())&&(r._allItems=s),he(s=fe())&&(r.items=s)}},viewQuery:function(n,r){if(1&n&&Pt(jo,5),2&n){let o;he(o=fe())&&(r.templateRef=o.first)}},hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(n,r){2&n&&je("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:["overlapTrigger","overlapTrigger",Ct],hasBackdrop:["hasBackdrop","hasBackdrop",e=>null==e?null:Ct(e)],panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Re([{provide:lR,useExisting:i}]),dr],ngContentSelectors:cme,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(n,r){1&n&&(Lt(),_e(0,lme,3,6,"ng-template"))},dependencies:[hC],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[OD.transformMenu,OD.fadeInItems]},changeDetection:0})}return i})();const U6=new V("mat-menu-scroll-strategy"),pme={provide:U6,deps:[du],useFactory:function mme(i){return()=>i.scrollStrategies.reposition()}},W6=Ml({passive:!0});let gme=(()=>{class i{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,n,r,o,s,a,l,c,u){this._overlay=e,this._element=n,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ue.EMPTY,this._hoverSubscription=Ue.EMPTY,this._menuCloseSubscription=Ue.EMPTY,this._changeDetectorRef=ee(Nt),this._handleTouchStart=f=>{hD(f)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new pe,this.onMenuOpen=this.menuOpened,this.menuClosed=new pe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof zv?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,W6)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,W6),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const n=this._createOverlay(e),r=n.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,n.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof zv&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Qe(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof zv?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(ci(r=>"void"===r.toState),ji(1),Qe(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let n=0,r=e.parentMenu;for(;r;)n++,r=r.parentMenu;e.setElevation(n)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new oR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,n){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,f]=[r,o],p=0;if(this.triggersSubmenu()){if(f=r="before"===e.xPosition?"start":"end",o=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const g=this._parentMaterialMenu.items.first;this._parentInnerPadding=g?g._getHostElement().offsetTop:0}p="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");n.withPositions([{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:p},{originX:o,originY:l,overlayX:f,overlayY:s,offsetY:p},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-p},{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Hi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ie(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ci(s=>s!==this._menuItemInstance),ci(()=>this._menuOpen)):Ie(),n)}_handleMousedown(e){uD(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const n=e.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ci(e=>e===this._menuItemInstance&&!e.disabled),C6(0,tR)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof zv&&this.menu._isAnimating?this.menu._animationDone.pipe(ji(1),C6(0,tR),Qe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new TD(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(n){return new(n||i)(x(du),x(Ee),x(Tr),x(U6),x(lR,8),x(ID,10),x(xs,8),x(Tl),x(ge))};static#t=this.\u0275dir=ne({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,r){1&n&&Q("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&je("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return i})(),Uv=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:[pme],imports:[Fc,Uc,Ot,aR,nf,Ot]})}return i})();const _me=new V("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),vme=mD(class{constructor(i){this._elementRef=i}},"primary");let yme=(()=>{class i extends vme{constructor(e,n,r,o,s){super(e),this._ngZone=n,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new pe,this._mode="determinate",this._transitionendHandler=a=>{0===this.animationEnd.observers.length||!a.target||!a.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===o,s&&(s.color&&(this.color=this.defaultColor=s.color),this.mode=s.mode||this.mode)}get value(){return this._value}set value(e){this._value=j6($i(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=j6($i(e)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(ge),x(Nt),x(Ui,8),x(_me,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(n,r){2&n&&(je("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),Pe("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Ae],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(n,r){1&n&&(D(0,"div",0),q(1,"div",1)(2,"div",2),E(),D(3,"div",3),q(4,"span",4),E(),D(5,"div",5),q(6,"span",4),E()),2&n&&(I(1),vl("flex-basis",r._getBufferBarFlexBasis()),I(2),vl("transform",r._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return i})();function j6(i,t=0,e=100){return Math.max(t,Math.min(e,i))}let $6=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot]})}return i})();class cR{}class $c{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),o=r.toLowerCase(),s=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof $c?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new $c;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof $c?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(t,e){const n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class wme{encodeKey(t){return G6(t)}encodeValue(t){return G6(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Cme=/%(\d[a-f0-9])/gi,Dme={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function G6(i){return encodeURIComponent(i).replace(Cme,(t,e)=>Dme[e]??t)}function RD(i){return`${i}`}class uu{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new wme,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function xme(i,t){const e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e],r=Array.isArray(n)?n.map(RD):[RD(n)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new uu({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(RD(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let n=this.map.get(t.param)||[];const r=n.indexOf(RD(t.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class kme{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function q6(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function K6(i){return typeof Blob<"u"&&i instanceof Blob}function J6(i){return typeof FormData<"u"&&i instanceof FormData}class Wv{constructor(t,e,n,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function Eme(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers||(this.headers=new $c),this.context||(this.context=new kme),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":af.set(p,t.setHeaders[p]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((f,p)=>f.set(p,t.setParams[p]),c)),new Wv(e,n,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var uR=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(uR||{});class Mme{constructor(t,e=200,n="OK"){this.headers=t.headers||new $c,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class jv extends Mme{constructor(t={}){super(t),this.type=uR.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new jv({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function hR(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}let fR=(()=>{class i{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Wv)o=e;else{let l,c;l=r.headers instanceof $c?r.headers:new $c(r.headers),r.params&&(c=r.params instanceof uu?r.params:new uu({fromObject:r.params})),o=new Wv(e,n,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=Ie(o).pipe(Tp(l=>this.handler.handle(l)));if(e instanceof Wv||"events"===r.observe)return s;const a=s.pipe(ci(l=>l instanceof jv));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ue(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new uu).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,hR(r,n))}post(e,n,r={}){return this.request("POST",e,hR(r,n))}put(e,n,r={}){return this.request("PUT",e,hR(r,n))}static#e=this.\u0275fac=function(n){return new(n||i)(U(cR))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})();const Yme=["*"];let ND;function $v(i){return function Xme(){if(void 0===ND&&(ND=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(ND=i.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ND}()?.createHTML(i)||i}function dU(i){return Error(`Unable to find icon with the name "${i}"`)}function uU(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function hU(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class af{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let LD=(()=>{class i{constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new af(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const s=this._sanitizer.sanitize(_.HTML,r);if(!s)throw hU(r);const a=$v(s);return this._addSvgIconConfig(e,n,new af("",a,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new af(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(_.HTML,n);if(!o)throw hU(n);const s=$v(o);return this._addSvgIconSetConfig(e,new af("",s,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(_.RESOURCE_URL,e);if(!n)throw uU(e);const r=this._cachedIconsByUrl.get(n);return r?Ie(BD(r)):this._loadSvgIconFromConfig(new af(e,null)).pipe(kn(o=>this._cachedIconsByUrl.set(n,o)),ue(o=>BD(o)))}getNamedSvgIcon(e,n=""){const r=fU(n,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(e,s):mv(dU(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ie(BD(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ue(n=>BD(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?Ie(r):I4(n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Kh(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(_.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Ie(null)})))).pipe(ue(()=>{const s=this._extractIconWithNameFromAnySet(e,n);if(!s)throw dU(e);return s}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(kn(n=>e.svgText=n),ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ie(null):this._fetchIcon(e).pipe(kn(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const o=e.querySelector(`[id="${n}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString($v(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString($v("")),r=e.attributes;for(let o=0;o$v(c)),VC(()=>this._inProgressUrlFetches.delete(s)),_r());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(fU(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;rt?t.pathname+t.search:""}}}),mU=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ope=mU.map(i=>`[${i}]`).join(", "),spe=/^url\(['"]?#(.*?)['"]?\)$/;let Gv=(()=>{class i extends tpe{get inline(){return this._inline}set inline(e){this._inline=$e(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(e,n,r,o,s,a){super(e),this._iconRegistry=n,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ue.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=e.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(ope),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=n[o],l=a.getAttribute(s),c=l?l.match(spe):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(ji(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${o.message}`))})}}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(LD),mo("aria-hidden"),x(npe),x(Ys),x(ipe,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(n,r){2&n&&(je("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Pe("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Ae],ngContentSelectors:Yme,decls:1,vars:0,template:function(n,r){1&n&&(Lt(),we(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return i})(),Jp=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Ot]})}return i})(),pU=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Cs,Fc,Jp,Uv]})}return i})(),lpe=(()=>{class i{constructor(){this.onceReady=new Promise((e,n)=>{gapi.load("client",en(function*(){yield gapi.client.init({apiKey:"enter api key for drive api here",discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"]}),e()}))})}saveData(e,n,r,o){var s=this;return en(function*(){yield s.onceReady;const a="7b0b5c0a693503324e88a977b6121ee0",l=`--${a}`,u="application/json; charset=UTF-8",p=`\n${l}\nContent-Type: application/json; charset=UTF-8\n\n`+JSON.stringify({name:n,mimeType:u})+`\n${l}\nContent-Type: ${u}\nContent-Transfer-Encoding: BINARY\n\n`+e+`\n${l}--`,g=gapi.client.request({path:"/upload/drive/v3/files",method:"POST",params:{uploadType:"multipart"},headers:{"Content-Type":`multipart/related; boundary="${a}"`,"Content-Length":`${p.length}`},body:p}),b=yield new Promise((v,C)=>g.execute(v));console.log("status:",b.status),console.log("statusText:",b.statusText),console.log("result:",b.result)})()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var cpe=mn(161);class ri{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){[t,e]=Yp(this,t,e);let r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),Ol.from(r,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=Yp(this,t,e);let n=[];return this.decompose(t,e,n,0),Ol.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),r=new qv(this),o=new qv(t);for(let s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(t=1){return new qv(this,t)}iterRange(t,e=this.length){return new _U(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let r=this.line(t).from;n=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new bU(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new En(t):Ol.from(En.split(t,[])):ri.empty}}class En extends ri{constructor(t,e=function dpe(i){let t=-1;for(let e of i)t+=e.length+1;return t}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((e?n:a)>=t)return new upe(r,a,n,s);r=a+1,n++}}decompose(t,e,n,r){let o=t<=0&&e>=this.length?this:new En(gU(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&r){let s=n.pop(),a=VD(o.text,s.text.slice(),0,o.length);if(a.length<=32)n.push(new En(a,s.length+o.length));else{let l=a.length>>1;n.push(new En(a.slice(0,l)),new En(a.slice(l)))}}else n.push(o)}replace(t,e,n){if(!(n instanceof En))return super.replace(t,e,n);[t,e]=Yp(this,t,e);let r=VD(this.text,VD(n.text,gU(this.text,0,t)),e),o=this.length+n.length-(e-t);return r.length<=32?new En(r,o):Ol.from(En.split(r,[]),o)}sliceString(t,e=this.length,n="\n"){[t,e]=Yp(this,t,e);let r="";for(let o=0,s=0;o<=e&&st&&s&&(r+=n),to&&(r+=a.slice(Math.max(0,t-o),e-o)),o=l+1}return r}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],r=-1;for(let o of t)n.push(o),r+=o.length+1,32==n.length&&(e.push(new En(n,r)),n=[],r=-1);return r>-1&&e.push(new En(n,r)),e}}class Ol extends ri{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let n of t)this.lines+=n.lines}lineInner(t,e,n,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,l=n+s.lines-1;if((e?l:a)>=t)return s.lineInner(t,e,n,r);r=a+1,n=l+1}}decompose(t,e,n,r){for(let o=0,s=0;s<=e&&o=s){let c=r&((s<=t?1:0)|(l>=e?2:0));s>=t&&l<=e&&!c?n.push(a):a.decompose(t-s,e-s,n,c)}s=l+1}}replace(t,e,n){if([t,e]=Yp(this,t,e),n.lines=o&&e<=a){let l=s.replace(t-o,e-o,n),c=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let u=this.children.slice();return u[r]=l,new Ol(u,this.length-(e-t)+n.length)}return super.replace(o,a,l)}o=a+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){[t,e]=Yp(this,t,e);let r="";for(let o=0,s=0;ot&&o&&(r+=n),ts&&(r+=a.sliceString(t-s,e-s,n)),s=l+1}return r}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof Ol))return 0;let n=0,[r,o,s,a]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;r+=e,o+=e){if(r==s||o==a)return n;let l=this.children[r],c=t.children[o];if(l!=c)return n+l.scanIdentical(c,e);n+=l.length+1}}static from(t,e=t.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let g of t)n+=g.lines;if(n<32){let g=[];for(let b of t)b.flatten(g);return new En(g,e)}let r=Math.max(32,n>>5),o=r<<1,s=r>>1,a=[],l=0,c=-1,u=[];function f(g){let b;if(g.lines>o&&g instanceof Ol)for(let v of g.children)f(v);else g.lines>s&&(l>s||!l)?(p(),a.push(g)):g instanceof En&&l&&(b=u[u.length-1])instanceof En&&g.lines+b.lines<=32?(l+=g.lines,c+=g.length+1,u[u.length-1]=new En(b.text.concat(g.text),b.length+1+g.length)):(l+g.lines>r&&p(),l+=g.lines,c+=g.length+1,u.push(g))}function p(){0!=l&&(a.push(1==u.length?u[0]:Ol.from(u,c)),c=-1,l=u.length=0)}for(let g of t)f(g);return p(),1==a.length?a[0]:new Ol(a,e)}}function VD(i,t,e=0,n=1e9){for(let r=0,o=0,s=!0;o=e&&(l>n&&(a=a.slice(0,n-r)),r0?1:(t instanceof En?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1;if(s==(e>0?r instanceof En?r.text.length:r.children.length:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(r instanceof En){let l=r.text[s+(e<0?-1:0)];if(this.offsets[n]+=e,l.length>Math.max(0,t))return this.value=0==t?l:e>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=r.children[s+(e<0?-1:0)];t>l.length?(t-=l.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(e>0?1:(l instanceof En?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class _U{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new qv(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:r}=this.cursor.next(t);return this.pos+=(r.length+t)*e,this.value=r.length<=n?r:e<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class bU{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:r}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ri.prototype[Symbol.iterator]=function(){return this.iter()},qv.prototype[Symbol.iterator]=_U.prototype[Symbol.iterator]=bU.prototype[Symbol.iterator]=function(){return this});class upe{constructor(t,e,n,r){this.from=t,this.to=e,this.number=n,this.text=r}get length(){return this.to-this.from}}function Yp(i,t,e){return[t=Math.max(0,Math.min(i.length,t)),Math.max(t,Math.min(i.length,e))]}let Xp="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(i=>i?parseInt(i,36):1);for(let i=1;ii)return Xp[t-1]<=i;return!1}function vU(i){return i>=127462&&i<=127487}const yU=8205;function Pr(i,t,e=!0,n=!0){return(e?wU:fpe)(i,t,n)}function wU(i,t,e){if(t==i.length)return t;t&&xU(i.charCodeAt(t))&&CU(i.charCodeAt(t-1))&&t--;let n=Fr(i,t);for(t+=sa(n);t=0&&vU(Fr(i,s));)o++,s-=2;if(o%2==0)break;t+=2}}}return t}function fpe(i,t,e){for(;t>0;){let n=wU(i,t-2,e);if(n=56320&&i<57344}function CU(i){return i>=55296&&i<56320}function Fr(i,t){let e=i.charCodeAt(t);if(!CU(e)||t+1==i.length)return e;let n=i.charCodeAt(t+1);return xU(n)?n-56320+(e-55296<<10)+65536:e}function gR(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function sa(i){return i<65536?1:2}const _R=/\r\n?|\n/;var Eo=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(Eo||(Eo={}));class Rl{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return o+(t-r);o+=a}else{if(n!=Eo.Simple&&c>=t&&(n==Eo.TrackDel&&rt||n==Eo.TrackBefore&&rt))return null;if(c>t||c==t&&e<0&&!a)return t==r||e<0?o:o+l;o+=l}r=c}if(t>r)throw new RangeError(`Position ${t} is out of range for changeset of length ${r}`);return o}touchesRange(t,e=t){for(let n=0,r=0;n=0&&r<=e&&a>=t)return!(re)||"cover";r=a}return!1}toString(){let t="";for(let e=0;e=0?":"+r:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Rl(t)}static create(t){return new Rl(t)}}class tr extends Rl{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return bR(this,(e,n,r,o,s)=>t=t.replace(r,r+(n-e),s),!1),t}mapDesc(t,e=!1){return vR(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let r=0,o=0;r=0){e[r]=a,e[r+1]=s;let l=r>>1;for(;n.length0&&fu(n,e,o.text),o.forward(u),a+=u}let c=t[s++];for(;a>1].toJSON()))}return t}static of(t,e,n){let r=[],o=[],s=0,a=null;function l(u=!1){if(!u&&!r.length)return;sp||f<0||p>e)throw new RangeError(`Invalid change range ${f} to ${p} (in doc of length ${e})`);let b=g?"string"==typeof g?ri.of(g.split(n||_R)):g:ri.empty,v=b.length;if(f==p&&0==v)return;fs&&Qr(r,f-s,-1),Qr(r,p-f,v),fu(o,r,b),s=p}}(t),l(!a),a}static empty(t){return new tr(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let r=0;ra&&"string"!=typeof s))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)e.push(o[0],0);else{for(;n.length=0&&e<=0&&e==i[r+1]?i[r]+=t:0==t&&0==i[r]?i[r+1]+=e:n?(i[r]+=t,i[r+1]+=e):i.push(t,e)}function fu(i,t,e){if(0==e.length)return;let n=t.length-2>>1;if(n>1])),!(e||s==i.sections.length||i.sections[s+1]<0);)a=i.sections[s++],l=i.sections[s++];t(r,c,o,u,f),r=c,o=u}}}function vR(i,t,e,n=!1){let r=[],o=n?[]:null,s=new Kv(i),a=new Kv(t);for(let l=-1;;)if(-1==s.ins&&-1==a.ins){let c=Math.min(s.len,a.len);Qr(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return o?tr.createSet(r,o):Rl.create(r);throw new Error("Mismatched change set lengths")}{let c=0,u=s.len;for(;u;)if(-1==a.ins){let f=Math.min(u,a.len);c+=f,u-=f,a.forward(f)}else{if(!(0==a.ins&&a.lenl||s.ins>=0&&s.len>l)&&(a||n.length>c),o.forward2(l),s.forward(l)}}else Qr(n,0,s.ins,a),r&&fu(r,n,s.text),s.next()}}class Kv{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?ri.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?ri.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class lf{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 16777215==t?void 0:t}map(t,e=-1){let n,r;return this.empty?n=r=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new lf(n,r,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return Z.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return Z.range(this.anchor,n)}eq(t,e=!1){return!(this.anchor!=t.anchor||this.head!=t.head||e&&this.empty&&this.assoc!=t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Z.range(t.anchor,t.head)}static create(t,e,n){return new lf(t,e,n)}}class Z{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:Z.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;nt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Z(t.ranges.map(e=>lf.fromJSON(e)),t.main)}static single(t,e=t){return new Z([Z.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;rt?8:0)|o)}static normalized(t,e=0){let n=t[e];t.sort((r,o)=>r.from-o.from),e=t.indexOf(n);for(let r=1;ro.head?Z.range(l,a):Z.range(a,l))}}return new Z(t,e)}}function kU(i,t){for(let e of i.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let yR=0;class ke{constructor(t,e,n,r,o){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=r,this.id=yR++,this.default=t([]),this.extensions="function"==typeof o?o(this):o}get reader(){return this}static define(t={}){return new ke(t.combine||(e=>e),t.compareInput||((e,n)=>e===n),t.compare||(t.combine?(e,n)=>e===n:wR),!!t.static,t.enables)}of(t){return new HD([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new HD(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new HD(t,this,2,e)}from(t,e){return e||(e=n=>n),this.compute([t],n=>e(n.field(t)))}}function wR(i,t){return i==t||i.length==t.length&&i.every((e,n)=>e===t[n])}class HD{constructor(t,e,n,r){this.dependencies=t,this.facet=e,this.type=n,this.value=r,this.id=yR++}dynamicSlot(t){var e;let n=this.value,r=this.facet.compareInput,o=this.id,s=t[o]>>1,a=2==this.type,l=!1,c=!1,u=[];for(let f of this.dependencies)"doc"==f?l=!0:"selection"==f?c=!0:1&(null!==(e=t[f.id])&&void 0!==e?e:1)||u.push(t[f.id]);return{create:f=>(f.values[s]=n(f),1),update(f,p){if(l&&p.docChanged||c&&(p.docChanged||p.selection)||xR(f,u)){let g=n(f);if(a?!EU(g,f.values[s],r):!r(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,p)=>{let g,b=p.config.address[o];if(null!=b){let v=UD(p,b);if(this.dependencies.every(C=>C instanceof ke?p.facet(C)===f.facet(C):!(C instanceof Bn)||p.field(C,!1)==f.field(C,!1))||(a?EU(g=n(f),v,r):r(g=n(f),v)))return f.values[s]=v,0}else g=n(f);return f.values[s]=g,1}}}}function EU(i,t,e){if(i.length!=t.length)return!1;for(let n=0;ni[l.id]),r=e.map(l=>l.type),o=n.filter(l=>!(1&l)),s=i[t.id]>>1;function a(l){let c=[];for(let u=0;un===r),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(SU).find(n=>n.field==this);return(e?.create||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:n=>(n.values[e]=this.create(n),1),update:(n,r)=>{let o=n.values[e],s=this.updateF(o,r);return this.compareF(o,s)?0:(n.values[e]=s,1)},reconfigure:(n,r)=>null!=r.config.address[this.id]?(n.values[e]=r.field(this),0):(n.values[e]=this.create(n),1)}}init(t){return[this,SU.of({field:this,create:t})]}get extension(){return this}}function Jv(i){return t=>new MU(t,i)}const mu={highest:Jv(0),high:Jv(1),default:Jv(2),low:Jv(3),lowest:Jv(4)};class MU{constructor(t,e){this.inner=t,this.prec=e}}class Yv{of(t){return new CR(this,t)}reconfigure(t){return Yv.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class CR{constructor(t,e){this.compartment=t,this.inner=e}}class zD{constructor(t,e,n,r,o,s){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,n){let r=[],o=Object.create(null),s=new Map;for(let p of function ppe(i,t,e){let n=[[],[],[],[],[]],r=new Map;return function o(s,a){let l=r.get(s);if(null!=l){if(l<=a)return;let c=n[l].indexOf(s);c>-1&&n[l].splice(c,1),s instanceof CR&&e.delete(s.compartment)}if(r.set(s,a),Array.isArray(s))for(let c of s)o(c,a);else if(s instanceof CR){if(e.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(s.compartment)||s.inner;e.set(s.compartment,c),o(c,a)}else if(s instanceof MU)o(s.inner,s.prec);else if(s instanceof Bn)n[a].push(s),s.provides&&o(s.provides,a);else if(s instanceof HD)n[a].push(s),s.facet.extensions&&o(s.facet.extensions,2);else{let c=s.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(c,a)}}(i,2),n.reduce((s,a)=>s.concat(a))}(t,e,s))p instanceof Bn?r.push(p):(o[p.facet.id]||(o[p.facet.id]=[])).push(p);let a=Object.create(null),l=[],c=[];for(let p of r)a[p.id]=c.length<<1,c.push(g=>p.slot(g));let u=n?.config.facets;for(let p in o){let g=o[p],b=g[0].facet,v=u&&u[p]||[];if(g.every(C=>0==C.type))if(a[b.id]=l.length<<1|1,wR(v,g))l.push(n.facet(b));else{let C=b.combine(g.map(S=>S.value));l.push(n&&b.compare(C,n.facet(b))?n.facet(b):C)}else{for(let C of g)0==C.type?(a[C.id]=l.length<<1|1,l.push(C.value)):(a[C.id]=c.length<<1,c.push(S=>C.dynamicSlot(S)));a[b.id]=c.length<<1,c.push(C=>mpe(C,b,g))}}let f=c.map(p=>p(a));return new zD(t,s,f,a,l,o)}}function Xv(i,t){if(1&t)return 2;let e=t>>1,n=i.status[e];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;i.status[e]=4;let r=i.computeSlot(i,i.config.dynamicSlots[e]);return i.status[e]=2|r}function UD(i,t){return 1&t?i.config.staticValues[t>>1]:i.values[t>>1]}const AU=ke.define(),DR=ke.define({combine:i=>i.some(t=>t),static:!0}),TU=ke.define({combine:i=>i.length?i[0]:void 0,static:!0}),IU=ke.define(),OU=ke.define(),RU=ke.define(),PU=ke.define({combine:i=>!!i.length&&i[0]});class Gc{constructor(t,e){this.type=t,this.value=e}static define(){return new gpe}}class gpe{of(t){return new Gc(this,t)}}class _pe{constructor(t){this.map=t}of(t){return new Ft(this,t)}}let Ft=(()=>{class i{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return void 0===n?void 0:n==this.value?this:new i(this.type,n)}is(e){return this.type==e}static define(e={}){return new _pe(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let o of e){let s=o.map(n);s&&r.push(s)}return r}}return i.reconfigure=i.define(),i.appendConfig=i.define(),i})(),Pl=(()=>{class i{constructor(e,n,r,o,s,a){this.startState=e,this.changes=n,this.selection=r,this.effects=o,this.annotations=s,this.scrollIntoView=a,this._doc=null,this._state=null,r&&kU(r,n.newLength),s.some(l=>l.type==i.time)||(this.annotations=s.concat(i.time.of(Date.now())))}static create(e,n,r,o,s,a){return new i(e,n,r,o,s,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(i.userEvent);return!(!n||!(n==e||n.length>e.length&&n.slice(0,e.length)==e&&"."==n[e.length]))}}return i.time=Gc.define(),i.userEvent=Gc.define(),i.addToHistory=Gc.define(),i.remote=Gc.define(),i})();function bpe(i,t){let e=[];for(let n=0,r=0;;){let o,s;if(n=i[n]))o=i[n++],s=i[n++];else{if(!(r=0;r--){let o=e[r](i);o&&Object.keys(o).length&&(n=FU(n,kR(t,o,i.changes.newLength),!0))}return n==i?i:Pl.create(t,i.changes,i.selection,n.effects,n.annotations,n.scrollIntoView)}(e?function vpe(i){let t=i.startState,e=!0;for(let r of t.facet(IU)){let o=r(i);if(!1===o){e=!1;break}Array.isArray(o)&&(e=!0===e?o:bpe(e,o))}if(!0!==e){let r,o;if(!1===e)o=i.changes.invertedDesc,r=tr.empty(t.doc.length);else{let s=i.changes.filter(e);r=s.changes,o=s.filtered.mapDesc(s.changes).invertedDesc}i=Pl.create(t,r,i.selection&&i.selection.map(o),Ft.mapEffects(i.effects,o),i.annotations,i.scrollIntoView)}let n=t.facet(OU);for(let r=n.length-1;r>=0;r--){let o=n[r](i);i=o instanceof Pl?o:Array.isArray(o)&&1==o.length&&o[0]instanceof Pl?o[0]:NU(t,Zp(o),!1)}return i}(r):r)}const wpe=[];function Zp(i){return null==i?wpe:Array.isArray(i)?i:[i]}var Gi=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(Gi||(Gi={}));const xpe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ER;try{ER=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}let ks=(()=>{class i{constructor(e,n,r,o,s,a){this.config=e,this.doc=n,this.selection=r,this.values=o,this.status=e.statusTemplate.slice(),this.computeSlot=s,a&&(a._state=this);for(let l=0;lo.set(u,c)),n=null),o.set(l.value.compartment,l.value.extension)):l.is(Ft.reconfigure)?(n=null,r=l.value):l.is(Ft.appendConfig)&&(n=null,r=Zp(r).concat(l.value));n?s=e.startState.values.slice():(n=zD.resolve(r,o,this),s=new i(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(c,u)=>u.reconfigure(c,this),null).values);let a=e.startState.facet(DR)?e.newSelection:e.newSelection.asSingle();new i(n,e.newDoc,a,s,(l,c)=>c.update(l,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Z.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),o=this.changes(r.changes),s=[r.range],a=Zp(r.effects);for(let l=1;la.spec.fromJSON(l,c)))}return i.create({doc:e.doc,selection:Z.fromJSON(e.selection),extensions:n.extensions?o.concat([n.extensions]):o})}static create(e={}){let n=zD.resolve(e.extensions||[],new Map),r=e.doc instanceof ri?e.doc:ri.of((e.doc||"").split(n.staticFacet(i.lineSeparator)||_R)),o=e.selection?e.selection instanceof Z?e.selection:Z.single(e.selection.anchor,e.selection.head):Z.single(0);return kU(o,r.length),n.staticFacet(DR)||(o=o.asSingle()),new i(n,r,o,n.dynamicSlots.map(()=>null),(s,a)=>a.create(s),null)}get tabSize(){return this.facet(i.tabSize)}get lineBreak(){return this.facet(i.lineSeparator)||"\n"}get readOnly(){return this.facet(PU)}phrase(e,...n){for(let r of this.facet(i.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,o)=>{if("$"==o)return"$";let s=+(o||1);return!s||s>n.length?r:n[s-1]})),e}languageDataAt(e,n,r=-1){let o=[];for(let s of this.facet(AU))for(let a of s(this,n,r))Object.prototype.hasOwnProperty.call(a,e)&&o.push(a[e]);return o}charCategorizer(e){return function Dpe(i){return t=>{if(!/\S/.test(t))return Gi.Space;if(function Cpe(i){if(ER)return ER.test(i);for(let t=0;t"\x80"&&(e.toUpperCase()!=e.toLowerCase()||xpe.test(e)))return!0}return!1}(t))return Gi.Word;for(let e=0;e-1)return Gi.Word;return Gi.Other}}(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:o}=this.doc.lineAt(e),s=this.charCategorizer(e),a=e-r,l=e-r;for(;a>0;){let c=Pr(n,a,!1);if(s(n.slice(c,a))!=Gi.Word)break;a=c}for(;lt.length?t[0]:4}),i.lineSeparator=TU,i.readOnly=PU,i.phrases=ke.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(o=>t[o]==e[o])}}),i.languageData=AU,i.changeFilter=IU,i.transactionFilter=OU,i.transactionExtender=RU,i})();function za(i,t,e={}){let n={};for(let r of i)for(let o of Object.keys(r)){let s=r[o],a=n[o];if(void 0===a)n[o]=s;else if(a!==s&&void 0!==s){if(!Object.hasOwnProperty.call(e,o))throw new Error("Config merge conflict for field "+o);n[o]=e[o](a,s)}}for(let r in t)void 0===n[r]&&(n[r]=t[r]);return n}Yv.reconfigure=Ft.define();class df{eq(t){return this==t}range(t,e=t){return Zv.create(t,e,this)}}df.prototype.startSide=df.prototype.endSide=0,df.prototype.point=!1,df.prototype.mapMode=Eo.TrackDel;class Zv{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new Zv(t,e,n)}}function SR(i,t){return i.from-t.from||i.value.startSide-t.value.startSide}class MR{constructor(t,e,n,r){this.from=t,this.to=e,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,r=0){let o=n?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let l=s+a>>1,c=o[l]-t||(n?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}between(t,e,n,r){for(let o=this.findIndex(e,-1e9,!0),s=this.findIndex(n,1e9,!1,o);og||p==g&&c.startSide>0&&c.endSide<=0)continue;(g-p||c.endSide-c.startSide)<0||(s<0&&(s=p),c.point&&(a=Math.max(a,g-p)),n.push(c),r.push(p-s),o.push(g-s))}return{mapped:n.length?new MR(r,o,n,a):null,pos:s}}}let qi=(()=>{class i{constructor(e,n,r,o){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=o}static create(e,n,r,o){return new i(e,n,r,o)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:o=0,filterTo:s=this.length}=e,a=e.filter;if(0==n.length&&!a)return this;if(r&&(n=n.slice().sort(SR)),this.isEmpty)return n.length?i.of(n):this;let l=new BU(this,null,-1).goto(0),c=0,u=[],f=new qc;for(;l.value||c=0){let p=n[c++];f.addInner(p.from,p.to,p.value)||u.push(p)}else 1==l.rangeIndex&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&e<=s+a.length&&!1===a.between(s,e-s,n-s,r))return}this.nextLayer.between(e,n,r)}}iter(e=0){return Qv.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Qv.from(e).goto(n)}static compare(e,n,r,o,s=-1){let a=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=s),l=n.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=s),c=LU(a,l,r),u=new ey(a,c,s),f=new ey(l,c,s);r.iterGaps((p,g,b)=>VU(u,p,f,g,b,o)),r.empty&&0==r.length&&VU(u,0,f,0,0,o)}static eq(e,n,r=0,o){null==o&&(o=999999999);let s=e.filter(f=>!f.isEmpty&&n.indexOf(f)<0),a=n.filter(f=>!f.isEmpty&&e.indexOf(f)<0);if(s.length!=a.length)return!1;if(!s.length)return!0;let l=LU(s,a),c=new ey(s,l,0).goto(r),u=new ey(a,l,0).goto(r);for(;;){if(c.to!=u.to||!TR(c.active,u.active)||c.point&&(!u.point||!c.point.eq(u.point)))return!1;if(c.to>o)return!0;c.next(),u.next()}}static spans(e,n,r,o,s=-1){let a=new ey(e,null,s).goto(n),l=n,c=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let f=a.activeForPoint(a.to),p=a.pointFroml&&(o.span(l,u,a.active,c),c=a.openEnd(u));if(a.to>r)return c+(a.point&&a.to>r?1:0);l=a.to,a.next()}}static of(e,n=!1){let r=new qc;for(let o of e instanceof Zv?[e]:n?function kpe(i){if(i.length>1)for(let t=i[0],e=1;e0)return i.slice().sort(SR);t=n}return i}(e):e)r.add(o.from,o.to,o.value);return r.finish()}static join(e){if(!e.length)return i.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let o=e[r];o!=i.empty;o=o.nextLayer)n=new i(o.chunkPos,o.chunk,n,Math.max(o.maxPoint,n.maxPoint));return n}}return i.empty=new i([],[],null,-1),i})();qi.empty.nextLayer=qi.empty;class qc{finishChunk(t){this.chunks.push(new MR(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new qc)).add(t,e,n)}addInner(t,e,n){let r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),0))}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(qi.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=qi.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function LU(i,t,e){let n=new Map;for(let o of i)for(let s=0;s=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new BU(s,e,n,o));return 1==r.length?r[0]:new Qv(r)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let n=this.heap.length>>1;n>=0;n--)AR(this.heap,n);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let n=this.heap.length>>1;n>=0;n--)AR(this.heap,n);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),AR(this.heap,0)}}}function AR(i,t){for(let e=i[t];;){let n=1+(t<<1);if(n>=i.length)break;let r=i[n];if(n+1=0&&(r=i[n+1],n++),e.compare(r)<0)break;i[n]=e,i[t]=r,t=n}}class ey{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Qv.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){WD(this.active,t),WD(this.activeTo,t),WD(this.activeRank,t),this.minActive=HU(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:r,rank:o}=this.cursor;for(;e0;)e++;jD(this.active,e,n),jD(this.activeTo,e,r),jD(this.activeRank,e,o),t&&jD(t,e,this.cursor.from),this.minActive=HU(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>t){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&WD(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&n[r]=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function VU(i,t,e,n,r,o){i.goto(t),e.goto(n);let s=n+r,a=n,l=n-t;for(;;){let c=i.to+l-e.to||i.endSide-e.endSide,u=c<0?i.to+l:e.to,f=Math.min(u,s);if(i.point||e.point?i.point&&e.point&&(i.point==e.point||i.point.eq(e.point))&&TR(i.activeForPoint(i.to),e.activeForPoint(e.to))||o.comparePoint(a,f,i.point,e.point):f>a&&!TR(i.active,e.active)&&o.compareRange(a,f,i.active,e.active),u>s)break;a=u,c<=0&&i.next(),c>=0&&e.next()}}function TR(i,t){if(i.length!=t.length)return!1;for(let e=0;e=t;n--)i[n+1]=i[n];i[t]=e}function HU(i,t){let e=-1,n=1e9;for(let r=0;r=t)return r;if(r==i.length)break;o+=9==i.charCodeAt(r)?e-o%e:1,r=Pr(i,r)}return!0===n?-1:i.length}const zU=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),RR=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),UU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class pu{constructor(t,e){this.rules=[];let{finish:n}=e||{};function r(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function o(s,a,l,c){let u=[],f=/^@(\w+)\b/.exec(s[0]),p=f&&"keyframes"==f[1];if(f&&null==a)return l.push(s[0]+";");for(let g in a){let b=a[g];if(/&/.test(g))o(g.split(/,\s*/).map(v=>s.map(C=>v.replace(/&/,C))).reduce((v,C)=>v.concat(C)),b,l);else if(b&&"object"==typeof b){if(!f)throw new RangeError("The value of a property ("+g+") should be a primitive value.");o(r(g),b,u,p)}else null!=b&&u.push(g.replace(/_.*/,"").replace(/[A-Z]/g,v=>"-"+v.toLowerCase())+": "+b+";")}(u.length||p)&&l.push((!n||f||c?s:s.map(n)).join(", ")+" {"+u.join(" ")+"}")}for(let s in t)o(r(s),t[s],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=UU[zU]||1;return UU[zU]=t+1,"\u037c"+t.toString(36)}static mount(t,e,n){let r=t[RR],o=n&&n.nonce;r?o&&r.setNonce(o):r=new Epe(t,o),r.mount(Array.isArray(e)?e:[e])}}let WU=new Map;class Epe{constructor(t,e){let n=t.ownerDocument||t,r=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&r.CSSStyleSheet){let o=WU.get(n);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[RR]=o;this.sheet=new r.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],WU.set(n,this)}else{this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);let o=t.head||t;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],t[RR]=this}mount(t){let e=this.sheet,n=0,r=0;for(let o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,s),e)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Spe=typeof navigator<"u"&&/Mac/.test(navigator.platform),Mpe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Nr=0;Nr<10;Nr++)gu[48+Nr]=gu[96+Nr]=String(Nr);for(Nr=1;Nr<=24;Nr++)gu[Nr+111]="F"+Nr;for(Nr=65;Nr<=90;Nr++)gu[Nr]=String.fromCharCode(Nr+32),ty[Nr]=String.fromCharCode(Nr);for(var PR in gu)ty.hasOwnProperty(PR)||(ty[PR]=gu[PR]);function $D(i){let t;return t=11==i.nodeType?i.getSelection?i:i.ownerDocument:i,t.getSelection()}function FR(i,t){return!!t&&(i==t||i.contains(1!=t.nodeType?t.parentNode:t))}function GD(i,t){if(!t.anchorNode)return!1;try{return FR(i,t.anchorNode)}catch{return!1}}function eg(i){return 3==i.nodeType?uf(i,0,i.nodeValue.length).getClientRects():1==i.nodeType?i.getClientRects():[]}function iy(i,t,e,n){return!!e&&(jU(i,t,e,n,-1)||jU(i,t,e,n,1))}function ny(i){for(var t=0;;t++)if(!(i=i.previousSibling))return t}function jU(i,t,e,n,r){for(;;){if(i==e&&t==n)return!0;if(t==(r<0?0:Kc(i))){if("DIV"==i.nodeName)return!1;let o=i.parentNode;if(!o||1!=o.nodeType)return!1;t=ny(i)+(r<0?0:1),i=o}else{if(1!=i.nodeType)return!1;if(1==(i=i.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==i.contentEditable)return!1;t=r<0?Kc(i):0}}}function Kc(i){return 3==i.nodeType?i.nodeValue.length:i.childNodes.length}function qD(i,t){let e=t?i.left:i.right;return{left:e,right:e,top:i.top,bottom:i.bottom}}function Ipe(i){return{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function $U(i,t){let e=t.width/i.offsetWidth,n=t.height/i.offsetHeight;return(e>.995&&e<1.005||!isFinite(e)||Math.abs(t.width-i.offsetWidth)<1)&&(e=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.height-i.offsetHeight)<1)&&(n=1),{scaleX:e,scaleY:n}}class Ppe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:n}=t;this.set(e,Math.min(t.anchorOffset,e?Kc(e):0),n,Math.min(t.focusOffset,n?Kc(n):0))}set(t,e,n,r){this.anchorNode=t,this.anchorOffset=e,this.focusNode=n,this.focusOffset=r}}let qU,tg=null;function GU(i){if(i.setActive)return i.setActive();if(tg)return i.focus(tg);let t=[];for(let e=i;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(i.focus(null==tg?{get preventScroll(){return tg={preventScroll:!0},!0}}:void 0),!tg){tg=!1;for(let e=0;eMath.max(1,i.scrollHeight-i.clientHeight-4)}class eo{constructor(t,e,n=!0){this.node=t,this.offset=e,this.precise=n}static before(t,e){return new eo(t.parentNode,ny(t),e)}static after(t,e){return new eo(t.parentNode,ny(t)+1,e)}}const NR=[];class Vi{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let n of this.children){if(n==t)return e;e+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let o,n=this.dom,r=null;for(let s of this.children){if(7&s.flags){if(!s.dom&&(o=r?r.nextSibling:n.firstChild)){let a=Vi.get(o);(!a||!a.parent&&a.canReuseDOM(s))&&s.reuseDOM(o)}s.sync(t,e),s.flags&=-8}if(o=r?r.nextSibling:n.firstChild,e&&!e.written&&e.node==n&&o!=s.dom&&(e.written=!0),s.dom.parentNode==n)for(;o&&o!=s.dom;)o=YU(o);else n.insertBefore(s.dom,o);r=s.dom}for(o=r?r.nextSibling:n.firstChild,o&&e&&e.node==n&&(e.written=!0);o;)o=YU(o)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(t,e),n.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,e){let n;if(t==this.dom)n=this.dom.childNodes[e];else{let r=0==Kc(t)?0:0==e?-1:1;for(;;){let o=t.parentNode;if(o==this.dom)break;0==r&&o.firstChild!=o.lastChild&&(r=t==o.firstChild?-1:1),t=o}n=r<0?t:t.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Vi.get(n);)n=n.nextSibling;if(!n)return this.length;for(let r=0,o=0;;r++){let s=this.children[r];if(s.dom==n)return o;o+=s.length+s.breakAfter}}domBoundsAround(t,e,n=0){let r=-1,o=-1,s=-1,a=-1;for(let l=0,c=n,u=n;le)return f.domBoundsAround(t,e,c);if(p>=t&&-1==r&&(r=l,o=c),c>e&&f.dom.parentNode==this.dom){s=l,a=u;break}u=p,c=p+f.breakAfter}return{from:o,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,n=NR){this.markDirty();for(let r=t;rthis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function ZU(i,t,e,n,r,o,s,a,l){let{children:c}=i,u=c.length?c[t]:null,f=o.length?o[o.length-1]:null,p=f?f.breakAfter:s;if(!(t==n&&u&&!s&&!p&&o.length<2&&u.merge(e,r,o.length?f:null,0==e,a,l))){if(n0&&(!s&&o.length&&u.merge(e,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(e2);var Te={mac:rW||/Mac/.test(Es.platform),windows:/Win/.test(Es.platform),linux:/Linux|X11/.test(Es.platform),ie:KD,ie_version:eW?LR.documentMode||6:VR?+VR[1]:BR?+BR[1]:0,gecko:tW,gecko_version:tW?+(/Firefox\/(\d+)/.exec(Es.userAgent)||[0,0])[1]:0,chrome:!!HR,chrome_version:HR?+HR[1]:0,ios:rW,android:/Android\b/.test(Es.userAgent),webkit:iW,safari:nW,webkit_version:iW?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=LR.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Jc extends Vi{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,n){return!(8&this.flags||n&&(!(n instanceof Jc)||this.length-(e-t)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,t)+(n?n.text:"")+this.text.slice(e),this.markDirty(),0))}split(t){let e=new Jc(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new eo(this.dom,t)}domBoundsAround(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function Bpe(i,t,e){let n=i.nodeValue.length;t>n&&(t=n);let r=t,o=t,s=0;0==t&&e<0||t==n&&e>=0?Te.chrome||Te.gecko||(t?(r--,s=1):o=0)?0:a.length-1];return Te.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,c=>c.width)||l),s?qD(l,s<0):l||null}(this.dom,t,e)}}class Yc extends Vi{constructor(t,e=[],n=0){super(),this.mark=t,this.children=e,this.length=n;for(let r of e)r.setParent(this)}setAttrs(t){if(KU(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!(8&(this.flags|t.flags))}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,n,r,o,s){return!(n&&(!(n instanceof Yc&&n.mark.eq(this.mark))||t&&o<=0||et&&e.push(n=t&&(r=o),n=l,o++}let s=this.length-t;return this.length=t,r>-1&&(this.children.length=r,this.markDirty()),new Yc(this.mark,e,s)}domAtPos(t){return oW(this,t)}coordsAt(t,e){return aW(this,t,e)}}class _u extends Vi{static create(t,e,n){return new _u(t,e,n)}constructor(t,e,n){super(),this.widget=t,this.length=e,this.side=n,this.prevWidget=null}split(t){let e=_u.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,e,n,r,o,s){return!(n&&(!(n instanceof _u&&this.widget.compare(n.widget))||t>0&&o<=0||e0)?eo.before(this.dom):eo.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let n=this.widget.coordsAt(this.dom,t,e);if(n)return n;let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let s=this.side?this.side<0:t>0;for(let a=s?r.length-1:0;o=r[a],!(t>0?0==a:a==r.length-1||o.top0?eo.before(this.dom):eo.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ri.empty}get isHidden(){return!0}}function oW(i,t){let e=i.dom,{children:n}=i,r=0;for(let o=0;ro&&t0;o--){let s=n[o-1];if(s.dom.parentNode==e)return s.domAtPos(s.length)}for(let o=r;o0&&t instanceof Yc&&r.length&&(n=r[r.length-1])instanceof Yc&&n.mark.eq(t.mark)?sW(n,t.children[0],e-1):(r.push(t),t.setParent(i)),i.length+=t.length}function aW(i,t,e){let n=null,r=-1,o=null,s=-1;!function a(c,u){for(let f=0,p=0;f=u&&(g.children.length?a(g,u-p):(!o||o.isHidden&&e>0)&&(b>u||p==b&&g.getSide()>0)?(o=g,s=u-p):(p-1?1:0)!=r.length-(e&&r.indexOf(e)>-1?1:0))return!1;for(let o of n)if(o!=e&&(-1==r.indexOf(o)||i[o]!==t[o]))return!1;return!0}function WR(i,t,e){let n=!1;if(t)for(let r in t)e&&r in e||(n=!0,"style"==r?i.style.cssText="":i.removeAttribute(r));if(e)for(let r in e)t&&t[r]==e[r]||(n=!0,"style"==r?i.style.cssText=e[r]:i.setAttribute(r,e[r]));return n}function Hpe(i){let t=Object.create(null);for(let e=0;e0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){UR(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){sW(this,t,e)}addLineDeco(t){let e=t.spec.attributes,n=t.spec.class;e&&(this.attrs=zR(e,this.attrs||{})),n&&(this.attrs=zR({class:n},this.attrs||{}))}domAtPos(t){return oW(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var n;this.dom?4&this.flags&&(KU(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(WR(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let r=this.dom.lastChild;for(;r&&Vi.get(r)instanceof Yc;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=Vi.get(r))||void 0===n?void 0:n.isEditable)||Te.ios&&this.children.some(o=>o instanceof Jc)))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof Jc)||/[^ -~]/.test(n.text))return null;let r=eg(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let n=aW(this,t,e);if(!this.children.length&&n&&this.parent){let{heightOracle:r}=this.parent.view.viewState,o=n.bottom-n.top;if(Math.abs(o-r.lineHeight)<2&&r.textHeight=e){if(o instanceof ir)return o;if(s>e)break}r=s+o.breakAfter}return null}}class bu extends Vi{constructor(t,e,n){super(),this.widget=t,this.length=e,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(t,e,n,r,o,s){return!(n&&(!(n instanceof bu&&this.widget.compare(n.widget))||t>0&&o<=0||e0)}}class Xc{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var So=function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i}(So||(So={}));class Ne extends df{constructor(t,e,n,r){super(),this.startSide=t,this.endSide=e,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(t){return new ry(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),n=!!t.block;return e+=n&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new vu(t,e,e,n,t.widget||null,!1)}static replace(t){let n,r,e=!!t.block;if(t.isBlockGap)n=-5e8,r=4e8;else{let{start:o,end:s}=cW(t,e);n=(o?e?-3e8:-1:5e8)-1,r=1+(s?e?2e8:1:-6e8)}return new vu(t,n,r,e,t.widget||null,!0)}static line(t){return new oy(t)}static set(t,e=!1){return qi.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Ne.none=qi.empty;class ry extends Ne{constructor(t){let{start:e,end:n}=cW(t);super(e?-1:5e8,n?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,n;return this==t||t instanceof ry&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(n=t.attrs)||void 0===n?void 0:n.class))&&UR(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}ry.prototype.point=!1;class oy extends Ne{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof oy&&this.spec.class==t.spec.class&&UR(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}oy.prototype.mapMode=Eo.TrackBefore,oy.prototype.point=!0;class vu extends Ne{constructor(t,e,n,r,o,s){super(e,n,o,t),this.block=r,this.isReplace=s,this.mapMode=r?e<=0?Eo.TrackBefore:Eo.TrackAfter:Eo.TrackDel}get type(){return this.startSide!=this.endSide?So.WidgetRange:this.startSide<=0?So.WidgetBefore:So.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof vu&&function zpe(i,t){return i==t||!!(i&&t&&i.compare(t))}(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function cW(i,t=!1){let{inclusiveStart:e,inclusiveEnd:n}=i;return null==e&&(e=i.inclusive),null==n&&(n=i.inclusive),{start:e??t,end:n??t}}function jR(i,t,e,n=0){let r=e.length-1;r>=0&&e[r]+n>=i?e[r]=Math.max(e[r],t):e.push(i,t)}vu.prototype.point=!0;class sy{constructor(t,e,n,r){this.doc=t,this.pos=e,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof bu&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ir),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(JD(new ng(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof bu)&&this.getLine()}buildText(t,e,n){for(;t>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:s,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=o,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-n)),this.getLine().append(JD(new Jc(this.text.slice(this.textOff,this.textOff+r)),e),n),this.atCursorPos=!0,this.textOff+=r,t-=r,n=0}}span(t,e,n,r){this.buildText(e-t,n,r),this.pos=e,this.openStart<0&&(this.openStart=r)}point(t,e,n,r,o,s){if(this.disallowBlockEffectsFor[s]&&n instanceof vu){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=e-t;if(n instanceof vu)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new bu(n.widget||new dW("div"),a,n));else{let l=_u.create(n.widget||new dW("span"),a,a?0:n.startSide),c=this.atCursorPos&&!l.isEditable&&o<=r.length&&(t0),u=!l.isEditable&&(tr.length||n.startSide<=0),f=this.getLine();2==this.pendingBuffer&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(f.append(JD(new ng(1),r),o),o=r.length+Math.max(0,o-r.length)),f.append(JD(l,r),o),this.atCursorPos=u,this.pendingBuffer=u?tr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}static build(t,e,n,r,o){let s=new sy(t,e,n,o);return s.openEnd=qi.spans(r,e,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function JD(i,t){for(let e of t)i=new Yc(e,[i],i.length);return i}class dW extends Xc{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var ki=function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i}(ki||(ki={}));const hf=ki.LTR,$R=ki.RTL;function uW(i){let t=[];for(let e=0;e=e){if(a.level==n)return s;(o<0||(0!=r?r<0?a.frome:t[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}function fW(i,t){if(i.length!=t.length)return!1;for(let e=0;el&&s.push(new yu(l,v.from,g)),KR(i,v.direction==hf!=!(g%2)?n+1:n,r,v.inner,v.from,v.to,s),l=v.to),b=v.to}else{if(b==e||(u?Ei[b]!=a:Ei[b]==a))break;b++}p?qR(i,l,b,n+1,r,p,s):lt;){let u=!0,f=!1;if(!c||l>o[c-1].to){let v=Ei[l-1];v!=a&&(u=!1,f=16==v)}let p=u||1!=a?null:[],g=u?n:n+1,b=l;e:for(;;)if(c&&b==o[c-1].to){if(f)break e;let v=o[--c];if(!u)for(let C=v.from,S=c;;){if(C==t)break e;if(!S||o[S-1].to!=C){if(Ei[C-1]==a)break e;break}C=o[--S].from}p?p.push(v):(v.to=0;v-=3)if(Fl[v+1]==-g){let C=Fl[v+2],S=2&C?r:4&C?1&C?o:r:0;S&&(Ei[f]=Ei[Fl[v]]=S),a=v;break}}else{if(189==Fl.length)break;Fl[a++]=f,Fl[a++]=p,Fl[a++]=l}else if(2==(b=Ei[f])||1==b){let v=b==r;l=v?0:1;for(let C=a-3;C>=0;C-=3){let S=Fl[C+2];if(2&S)break;if(v)Fl[C+2]|=2;else{if(4&S)break;Fl[C+2]|=4}}}}}(i,r,o,n,a),function qpe(i,t,e,n){for(let r=0,o=n;r<=e.length;r++){let a=rl;)b==C&&(b=e[--v].from,C=v?e[v-1].to:i),Ei[--b]=g;l=u}else o=c,l++}}}(r,o,n,a),qR(i,r,o,t,e,n,s)}function pW(i){return[new yu(0,i,0)]}let gW="";function _W(i,t,e,n,r){var o;let s=n.head-i.from,a=yu.find(t,s,null!==(o=n.bidiLevel)&&void 0!==o?o:-1,n.assoc),l=t[a],c=l.side(r,e);if(s==c){let p=a+=r?1:-1;if(p<0||p>=t.length)return null;l=t[a=p],s=l.side(!r,e),c=l.side(r,e)}let u=Pr(i.text,s,l.forward(r,e));(ul.to)&&(u=c),gW=i.text.slice(Math.min(s,u),Math.max(s,u));let f=a==(r?t.length-1:0)?null:t[a+(r?1:-1)];return f&&u==c&&f.level+(r?0:1)i.some(t=>t)}),kW=ke.define({combine:i=>i.some(t=>t)});class rg{constructor(t,e="nearest",n="nearest",r=5,o=5,s=!1){this.range=t,this.y=e,this.x=n,this.yMargin=r,this.xMargin=o,this.isSnapshot=s}map(t){return t.empty?this:new rg(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new rg(Z.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const YD=Ft.define({map:(i,t)=>i.map(t)});function aa(i,t,e){let n=i.facet(wW);n.length?n[0](t):window.onerror?window.onerror(String(t),e,void 0,void 0,t):e?console.error(e+":",t):console.error(t)}const XD=ke.define({combine:i=>!i.length||i[0]});let Jpe=0;const ay=ke.define();class tn{constructor(t,e,n,r,o){this.id=t,this.create=e,this.domEventHandlers=n,this.domEventObservers=r,this.extension=o(this)}static define(t,e){const{eventHandlers:n,eventObservers:r,provide:o,decorations:s}=e||{};return new tn(Jpe++,t,n,r,a=>{let l=[ay.of(a)];return s&&l.push(ly.of(c=>{let u=c.plugin(a);return u?s(u):Ne.none})),o&&l.push(o(a)),l})}static fromClass(t,e){return tn.define(n=>new t(n),e)}}class YR{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(n){if(aa(e.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){aa(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(n){aa(t.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const EW=ke.define(),ZD=ke.define(),ly=ke.define(),SW=ke.define(),XR=ke.define(),MW=ke.define();function AW(i,t){let e=i.state.facet(MW);if(!e.length)return e;let n=e.map(o=>o instanceof Function?o(i):o),r=[];return qi.spans(n,t.from,t.to,{point(){},span(o,s,a,l){let c=o-t.from,u=s-t.from,f=r;for(let p=a.length-1;p>=0;p--,l--){let b,g=a[p].spec.bidiIsolate;if(null==g&&(g=Kpe(t.text,c,u)),l>0&&f.length&&(b=f[f.length-1]).to==c&&b.direction==g)b.to=u,f=b.inner;else{let v={from:c,to:u,direction:g,inner:[]};f.push(v),f=v.inner}}}}),r}const TW=ke.define();function IW(i){let t=0,e=0,n=0,r=0;for(let o of i.state.facet(TW)){let s=o(i);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(e=Math.max(e,s.right)),null!=s.top&&(n=Math.max(n,s.top)),null!=s.bottom&&(r=Math.max(r,s.bottom)))}return{left:t,right:e,top:n,bottom:r}}const cy=ke.define();class Ss{constructor(t,e,n,r){this.fromA=t,this.toA=e,this.fromB=n,this.toB=r}join(t){return new Ss(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,n=this;for(;e>0;e--){let r=t[e-1];if(!(r.fromA>n.toA)){if(r.toAu)break;o+=2}if(!l)return n;new Ss(l.fromA,l.toA,l.fromB,l.toB).addToSet(n),s=l.toA,a=l.toB}}}class QD{constructor(t,e,n){this.view=t,this.state=e,this.transactions=n,this.flags=0,this.startState=t.state,this.changes=tr.empty(this.startState.doc.length);for(let o of n)this.changes=this.changes.compose(o.changes);let r=[];this.changes.iterChangedRanges((o,s,a,l)=>r.push(new Ss(o,s,a,l))),this.changedRanges=r}static create(t,e,n){return new QD(t,e,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class OW extends Vi{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new ir],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ss(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let n=t.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:c,toA:u})=>uthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(null!==(e=this.domChanged)&&void 0!==e&&e.newSel?r=this.domChanged.newSel.head:!function ige(i,t){let e=!1;return t&&i.iterChangedRanges((n,r)=>{nt.from&&(e=!0)}),e}(t.changes,this.hasComposition)&&!t.selectionSet&&(r=t.state.selection.main.head));let o=r>-1?function Xpe(i,t,e){let n=PW(i,e);if(!n)return null;let{node:r,from:o,to:s}=n,a=r.nodeValue;if(/[\n\r]/.test(a)||i.state.doc.sliceString(n.from,n.to)!=a)return null;let l=t.invertedDesc,c=new Ss(l.mapPos(o),l.mapPos(s),o,s),u=[];for(let f=r.parentNode;;f=f.parentNode){let p=Vi.get(f);if(p instanceof Yc)u.push({node:f,deco:p.mark});else{if(p instanceof ir||"DIV"==f.nodeName&&f.parentNode==i.contentDOM)return{range:c,text:r,marks:u,line:f};if(f==i.contentDOM)return null;u.push({node:f,deco:new ry({inclusive:!0,attributes:Hpe(f),tagName:f.tagName.toLowerCase()})})}}}(this.view,t.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;n=new Ss(c,u,t.changes.mapPos(c,-1),t.changes.mapPos(u,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Te.ie||Te.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let l=function ege(i,t,e){let n=new Qpe;return qi.compare(i,t,e,n),n.changes}(this.decorations,this.updateDeco(),t.changes);return n=Ss.extendWithRanges(n,l),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,t.startState.doc.length,o),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,n);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=Te.chrome||Te.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||r.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?r[s]:null;if(!a)break;let p,g,b,v,{fromA:l,toA:c,fromB:u,toB:f}=a;if(n&&n.range.fromBu){let H=sy.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),W=sy.build(this.view.state.doc,n.range.toB,f,this.decorations,this.dynamicDecorationMap);g=H.breakAtStart,b=H.openStart,v=W.openEnd;let te=this.compositionView(n);W.breakAtStart?te.breakAfter=1:W.content.length&&te.merge(te.length,te.length,W.content[0],!1,W.openStart,0)&&(te.breakAfter=W.content[0].breakAfter,W.content.shift()),H.content.length&&te.merge(0,0,H.content[H.content.length-1],!0,0,H.openEnd)&&H.content.pop(),p=H.content.concat(te).concat(W.content)}else({content:p,breakAtStart:g,openStart:b,openEnd:v}=sy.build(this.view.state.doc,u,f,this.decorations,this.dynamicDecorationMap));let{i:C,off:S}=o.findPos(c,1),{i:M,off:L}=o.findPos(l,-1);ZU(this,M,L,C,S,p,g,b,v)}n&&this.fixCompositionDOM(n)}compositionView(t){let e=new Jc(t.text.nodeValue);e.flags|=8;for(let{deco:r}of t.marks)e=new Yc(r,[e],e.length);let n=new ir;return n.append(e,0),n}fixCompositionDOM(t){let e=(o,s)=>{s.flags|=8|(s.children.some(l=>7&l.flags)?1:0),this.markedForComposition.add(s);let a=Vi.get(o);a&&a!=s&&(a.dom=null),s.setDOM(o)},n=this.childPos(t.range.fromB,1),r=this.children[n.i];e(t.line,r);for(let o=t.marks.length-1;o>=-1;o--)n=r.childPos(n.off,1),r=r.children[n.i],e(o>=0?t.marks[o].node:t.text,r)}updateSelection(t=!1,e=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,o=!r&&GD(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||e||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(Te.gecko&&a.empty&&!this.hasComposition&&function Ype(i){return 1==i.node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)}(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=c=new eo(f,0),s=!0}let u=this.view.observer.selectionRange;(s||!u.focusNode||(!iy(l.node,l.offset,u.anchorNode,u.anchorOffset)||!iy(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{Te.android&&Te.chrome&&this.dom.contains(u.focusNode)&&function tge(i,t){for(let e=i;e&&e!=t;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=$D(this.view.root);if(f)if(a.empty){if(Te.gecko){let p=function Zpe(i,t){return 1!=i.nodeType?0:(t&&"false"==i.childNodes[t-1].contentEditable?1:0)|(ta.head&&([l,c]=[c,l]),p.setEnd(c.node,c.offset),p.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(p)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new eo(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new eo(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&iy(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,n=$D(t.root),{anchorNode:r,anchorOffset:o}=t.observer.selectionRange;if(!(n&&e.empty&&e.assoc&&n.modify))return;let s=ir.find(this,e.head);if(!s)return;let a=s.posAtStart;if(e.head==a||e.head==a+s.length)return;let l=this.coordsAt(e.head,-1),c=this.coordsAt(e.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(e.head+e.assoc);n.collapse(u.node,u.offset),n.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=e.from&&n.collapse(r,o)}moveToLine(t){let n,e=this.dom;if(t.node!=e)return t;for(let r=t.offset;!n&&r=0;r--){let o=Vi.get(e.childNodes[r]);o instanceof ir&&(n=o.domAtPos(o.length))}return n?new eo(n.node,n.offset,!0):t}nearest(t){for(let e=t;e;){let n=Vi.get(e);if(n&&n.rootView==this)return n;e=e.parentNode}return null}posFromDOM(t,e){let n=this.nearest(t);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(t,e)+n.posAtStart}domAtPos(t){let{i:e,off:n}=this.childCursor().findPos(t,-1);for(;e=0;s--){let a=this.children[s],l=o-a.breakAfter,c=l-a.length;if(lt||a.covers(1))&&(!n||a instanceof ir&&!(n instanceof ir&&e>=0))&&(n=a,r=c),o=c}return n?n.coordsAt(t-r,e):null}coordsForChar(t){let{i:e,off:n}=this.childPos(t,1),r=this.children[e];if(!(r instanceof ir))return null;for(;r.children.length;){let{i:a,off:l}=r.childPos(n,1);for(;;a++){if(a==r.children.length)return null;if((r=r.children[a]).length)break}n=l}if(!(r instanceof Jc))return null;let o=Pr(r.text,n);if(o==n)return null;let s=uf(r.dom,n,o).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==ki.LTR;for(let c=0,u=0;ur)break;if(c>=n){let g=f.dom.getBoundingClientRect();if(e.push(g.height),s){let b=f.dom.lastChild,v=b?eg(b):[];if(v.length){let C=v[v.length-1],S=l?C.right-g.left:g.right-C.left;S>a&&(a=S,this.minWidth=o,this.minWidthFrom=c,this.minWidthTo=p)}}}c=p+f.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?ki.RTL:ki.LTR}measureTextSize(){for(let o of this.children)if(o instanceof ir){let s=o.measureTextSize();if(s)return s}let e,n,r,t=document.createElement("div");return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=eg(t.firstChild)[0];e=t.getBoundingClientRect().height,n=o?o.width/27:7,r=o?o.height:e,t.remove()}),{lineHeight:e,charWidth:n,textHeight:r}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new XU(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let n=0,r=0;;r++){let o=r==e.viewports.length?null:e.viewports[r],s=o?o.from-1:this.length;if(s>n){let a=(e.lineBlockAt(s).bottom-e.lineBlockAt(n).top)/this.view.scaleY;t.push(Ne.replace({widget:new RW(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,s))}if(!o)break;n=o.to+1}return Ne.set(t)}updateDeco(){let t=this.view.state.facet(ly).map((r,o)=>(this.dynamicDecorationMap[o]="function"==typeof r)?r(this.view):r),e=!1,n=this.view.state.facet(SW).map((r,o)=>{let s="function"==typeof r;return s&&(e=!0),s?r(this.view):r});n.length&&(this.dynamicDecorationMap[t.length]=e,t.push(qi.join(n)));for(let r=t.length;re.anchor?-1:1);if(!n)return;!e.empty&&(r=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(n={left:Math.min(n.left,r.left),top:Math.min(n.top,r.top),right:Math.max(n.right,r.right),bottom:Math.max(n.bottom,r.bottom)});let o=IW(this.view),s={left:n.left-o.left,top:n.top-o.top,right:n.right+o.right,bottom:n.bottom+o.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;!function Ope(i,t,e,n,r,o,s,a){let l=i.ownerDocument,c=l.defaultView||window;for(let u=i,f=!1;u&&!f;)if(1==u.nodeType){let p,g=u==l.body,b=1,v=1;if(g)p=Ipe(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(f=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let M=u.getBoundingClientRect();({scaleX:b,scaleY:v}=$U(u,M)),p={left:M.left,right:M.left+u.clientWidth*b,top:M.top,bottom:M.top+u.clientHeight*v}}let C=0,S=0;if("nearest"==r)t.top0&&t.bottom>p.bottom+S&&(S=t.bottom-p.bottom+S+s)):t.bottom>p.bottom&&(S=t.bottom-p.bottom+s,e<0&&t.top-S0&&t.right>p.right+C&&(C=t.right-p.right+C+o)):t.right>p.right&&(C=t.right-p.right+o,e<0&&t.left0))break;n=n.childNodes[r-1],r=Kc(n)}if(e>=0)for(let n=i,r=t;;){if(3==n.nodeType)return{node:n,offset:r};if(!(1==n.nodeType&&r=0))break;n=n.childNodes[r],r=0}return null}let Qpe=class{constructor(){this.changes=[]}compareRange(t,e){jR(t,e,this.changes)}comparePoint(t,e){jR(t,e,this.changes)}};function rge(i,t){return t.left>i?t.left-i:Math.max(0,i-t.right)}function oge(i,t){return t.top>i?t.top-i:Math.max(0,i-t.bottom)}function ZR(i,t){return i.topt.top+1}function NW(i,t){return ti.bottom?{top:i.top,left:i.left,right:i.right,bottom:t}:i}function QR(i,t,e){let n,r,o,s,l,c,u,f,a=!1;for(let b=i.firstChild;b;b=b.nextSibling){let v=eg(b);for(let C=0;CL||s==L&&o>M){n=b,r=S,o=M,s=L;let H=L?e0?C0)}0==M?e>S.bottom&&(!u||u.bottomS.top)&&(c=b,f=S):u&&ZR(u,S)?u=LW(u,S.bottom):f&&ZR(f,S)&&(f=NW(f,S.top))}}if(u&&u.bottom>=e?(n=l,r=u):f&&f.top<=e&&(n=c,r=f),!n)return{node:i,offset:0};let p=Math.max(r.left,Math.min(r.right,t));return 3==n.nodeType?BW(n,p,e):a&&"false"!=n.contentEditable?QR(n,p,e):{node:i,offset:Array.prototype.indexOf.call(i.childNodes,n)+(t>=(r.left+r.right)/2?1:0)}}function BW(i,t,e){let n=i.nodeValue.length,r=-1,o=1e9,s=0;for(let a=0;ae?u.top-e:e-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&f=(u.left+u.right)/2,g=p;if((Te.chrome||Te.gecko)&&uf(i,a).getBoundingClientRect().left==u.right&&(g=!p),f<=0)return{node:i,offset:a+(g?1:0)};r=a+(g?1:0),o=f}}}return{node:i,offset:r>-1?r:s>0?i.nodeValue.length:0}}function VW(i,t,e,n=-1){var r,o;let l,s=i.contentDOM.getBoundingClientRect(),a=s.top+i.viewState.paddingTop,{docHeight:c}=i.viewState,{x:u,y:f}=t,p=f-a;if(p<0)return 0;if(p>c)return i.state.doc.length;for(let H=i.viewState.heightOracle.textHeight/2,W=!1;l=i.elementAtHeight(p),l.type!=So.Text;)for(;p=n>0?l.bottom+H:l.top-H,!(p>=0&&p<=c);){if(W)return e?null:0;W=!0,n=-n}f=a+p;let g=l.from;if(gi.viewport.to)return i.viewport.to==i.state.doc.length?i.state.doc.length:e?null:HW(i,s,l,u,f);let b=i.dom.ownerDocument,v=i.root.elementFromPoint?i.root:b,C=v.elementFromPoint(u,f);C&&!i.contentDOM.contains(C)&&(C=null),C||(u=Math.max(s.left+1,Math.min(s.right-1,u)),C=v.elementFromPoint(u,f),C&&!i.contentDOM.contains(C)&&(C=null));let S,M=-1;if(C&&0!=(null===(r=i.docView.nearest(C))||void 0===r?void 0:r.isEditable))if(b.caretPositionFromPoint){let H=b.caretPositionFromPoint(u,f);H&&({offsetNode:S,offset:M}=H)}else if(b.caretRangeFromPoint){let H=b.caretRangeFromPoint(u,f);H&&(({startContainer:S,startOffset:M}=H),(!i.contentDOM.contains(S)||Te.safari&&function sge(i,t,e){let n;if(3!=i.nodeType||t!=(n=i.nodeValue.length))return!1;for(let r=i.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return uf(i,n-1,n).getBoundingClientRect().left>e}(S,M,u)||Te.chrome&&function age(i,t,e){if(0!=t)return!1;for(let r=i;;){let o=r.parentNode;if(!o||1!=o.nodeType||o.firstChild!=r)return!1;if(o.classList.contains("cm-line"))break;r=o}return e-(1==i.nodeType?i.getBoundingClientRect():uf(i,0,Math.max(i.nodeValue.length,1)).getBoundingClientRect()).left>5}(S,M,u))&&(S=void 0))}if(!S||!i.docView.dom.contains(S)){let H=ir.find(i.docView,g);if(!H)return p>l.top+l.height/2?l.to:l.from;({node:S,offset:M}=QR(H.dom,u,f))}let L=i.docView.nearest(S);if(!L)return null;if(L.isWidget&&1==(null===(o=L.dom)||void 0===o?void 0:o.nodeType)){let H=L.dom.getBoundingClientRect();return t.y1.5*i.defaultLineHeight){let a=i.viewState.heightOracle.textHeight;o+=Math.floor((r-e.top-.5*(i.defaultLineHeight-a))/a)*i.viewState.heightOracle.lineLength}let s=i.state.sliceDoc(e.from,e.to);return e.from+IR(s,o,i.state.tabSize)}function eP(i,t){let e=i.lineBlockAt(t);if(Array.isArray(e.type))for(let n of e.type)if(n.to>t||n.to==t&&(n.to==e.to||n.type==So.Text))return n;return e}function zW(i,t,e,n){let r=i.state.doc.lineAt(t.head),o=i.bidiSpans(r),s=i.textDirectionAt(r.from);for(let a=t,l=null;;){let c=_W(r,o,s,a,e),u=gW;if(!c){if(r.number==(e?i.state.doc.lines:1))return a;u="\n",r=i.state.doc.line(r.number+(e?1:-1)),o=i.bidiSpans(r),c=i.visualLineSide(r,!e)}if(l){if(!l(u))return a}else{if(!n)return c;l=n(u)}a=c}}function e1(i,t,e){for(;;){let n=0;for(let r of i)r.between(t-1,t+1,(o,s,a)=>{if(t>o&&tr(i)),e.from,t.head>e.from?-1:1);return n==e.from?e:Z.cursor(n,nnull),Te.gecko&&function Sge(i){oj.has(i)||(oj.add(i),i.addEventListener("copy",()=>{}),i.addEventListener("cut",()=>{}))}(t.contentDOM.ownerDocument)}handleEvent(t){!function vge(i,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,e=t.target;e!=i.contentDOM;e=e.parentNode)if(!e||11==e.nodeType||(n=Vi.get(e))&&n.ignoreEvent(t))return!1;return!0}(this.view,t)||this.ignoreDuringComposition(t)||"keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,e){let n=this.handlers[t];if(n){for(let r of n.observers)r(this.view,e);for(let r of n.handlers){if(e.defaultPrevented)break;if(r(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=function hge(i){let t=Object.create(null);function e(n){return t[n]||(t[n]={observers:[],handlers:[]})}for(let n of i){let r=n.spec;if(r&&r.domEventHandlers)for(let o in r.domEventHandlers){let s=r.domEventHandlers[o];s&&e(o).handlers.push(UW(n.value,s))}if(r&&r.domEventObservers)for(let o in r.domEventObservers){let s=r.domEventObservers[o];s&&e(o).observers.push(UW(n.value,s))}}for(let n in Ua)e(n).handlers.push(Ua[n]);for(let n in Wa)e(n).observers.push(Wa[n]);return t}(t),n=this.handlers,r=this.view.contentDOM;for(let o in e)if("scroll"!=o){let s=!e[o].handlers.length,a=n[o];a&&s!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||r.addEventListener(o,this.handleEvent,{passive:s})}for(let o in n)"scroll"!=o&&!e[o]&&r.removeEventListener(o,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()n.keyCode==t.keyCode))&&!t.ctrlKey||fge.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(229!=t.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,ig(this.view.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(Te.safari&&!Te.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function UW(i,t){return(e,n)=>{try{return t.call(i,n,e)}catch(r){aa(e.state,r)}}}const WW=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],fge="dthko",jW=[16,17,18,20,91,92,224,225];function n1(i){return.7*Math.max(0,i)+8}class pge{constructor(t,e,n,r){this.view=t,this.startEvent=e,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function Rpe(i){let t=i.ownerDocument;for(let e=i.parentNode;e&&e!=t.body;)if(1==e.nodeType){if(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)return e;e=e.assignedSlot||e.parentNode}else{if(11!=e.nodeType)break;e=e.host}return null}(t.contentDOM),this.atoms=t.state.facet(XR).map(s=>s(t));let o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(ks.allowMultipleSelections)&&function gge(i,t){let e=i.state.facet(bW);return e.length?e[0](t):Te.mac?t.metaKey:t.ctrlKey}(t,e),this.dragging=!(!function bge(i,t){let{main:e}=i.state.selection;if(e.empty)return!1;let n=$D(i.root);if(!n||0==n.rangeCount)return!0;let r=n.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}(t,e)||1!=ej(e))&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function mge(i,t){return Math.max(Math.abs(i.clientX-t.clientX),Math.abs(i.clientY-t.clientY))}(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,r=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=IW(this.view);t.clientX-s.left<=o.left+6?n=-n1(o.left-t.clientX):t.clientX+s.right>=o.right-6&&(n=n1(t.clientX-o.right)),t.clientY-s.top<=o.top+6?r=-n1(o.top-t.clientY):t.clientY+s.bottom>=o.bottom-6&&(r=n1(t.clientY-o.bottom)),this.setScrollSpeed(n,r)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let n=0;nthis.select(this.lastEvent),20)}}const Ua=Object.create(null),Wa=Object.create(null),$W=Te.ie&&Te.ie_version<15||Te.ios&&Te.webkit_version<604;function GW(i,t){let n,{state:e}=i,r=1,o=e.toText(t),s=o.lines==e.selection.ranges.length;if(null!=iP&&e.selection.ranges.every(l=>l.empty)&&iP==o.toString()){let l=-1;n=e.changeByRange(c=>{let u=e.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;let f=e.toText((s?o.line(r++).text:t)+e.lineBreak);return{changes:{from:u.from,insert:f},range:Z.cursor(c.from+f.length)}})}else n=s?e.changeByRange(l=>{let c=o.line(r++);return{changes:{from:l.from,to:l.to,insert:c.text},range:Z.cursor(l.from+c.length)}}):e.replaceSelection(o);i.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function qW(i,t,e,n){if(1==n)return Z.cursor(t,e);if(2==n)return function nge(i,t,e=1){let n=i.charCategorizer(t),r=i.doc.lineAt(t),o=t-r.from;if(0==r.length)return Z.cursor(t);0==o?e=1:o==r.length&&(e=-1);let s=o,a=o;e<0?s=Pr(r.text,o,!1):a=Pr(r.text,o);let l=n(r.text.slice(s,a));for(;s>0;){let c=Pr(r.text,s,!1);if(n(r.text.slice(c,s))!=l)break;s=c}for(;a{i.inputState.lastScrollTop=i.scrollDOM.scrollTop,i.inputState.lastScrollLeft=i.scrollDOM.scrollLeft},Ua.keydown=(i,t)=>(i.inputState.setSelectionOrigin("select"),27==t.keyCode&&(i.inputState.lastEscPress=Date.now()),!1),Wa.touchstart=(i,t)=>{i.inputState.lastTouchTime=Date.now(),i.inputState.setSelectionOrigin("select.pointer")},Wa.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")},Ua.mousedown=(i,t)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let e=null;for(let n of i.state.facet(yW))if(e=n(i,t),e)break;if(!e&&0==t.button&&(e=function Cge(i,t){let e=YW(i,t),n=ej(t),r=i.state.selection;return{update(o){o.docChanged&&(e.pos=o.changes.mapPos(e.pos),r=r.map(o.changes))},get(o,s,a){let c,l=YW(i,o),u=qW(i,l.pos,l.bias,n);if(e.pos!=l.pos&&!s){let f=qW(i,e.pos,e.bias,n),p=Math.min(f.from,u.from),g=Math.max(f.to,u.to);u=p1&&(c=function Dge(i,t){for(let e=0;e=t)return Z.create(i.ranges.slice(0,e).concat(i.ranges.slice(e+1)),i.mainIndex==e?0:i.mainIndex-(i.mainIndex>e?1:0))}return null}(r,l.pos))?c:a?r.addRange(u):Z.create([u])}}}(i,t)),e){let n=!i.hasFocus;i.inputState.startMouseSelection(new pge(i,t,e,n)),n&&i.observer.ignore(()=>GU(i.contentDOM));let r=i.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}return!1};let KW=(i,t)=>i>=t.top&&i<=t.bottom,JW=(i,t,e)=>KW(t,e)&&i>=e.left&&i<=e.right;function wge(i,t,e,n){let r=ir.find(i.docView,t);if(!r)return 1;let o=t-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&JW(e,n,s))return-1;let a=r.coordsAt(o,1);return a&&JW(e,n,a)?1:s&&KW(n,s)?-1:1}function YW(i,t){let e=i.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:e,bias:wge(i,e,t.clientX,t.clientY)}}const xge=Te.ie&&Te.ie_version<=11;let XW=null,ZW=0,QW=0;function ej(i){if(!xge)return i.detail;let t=XW,e=QW;return XW=i,QW=Date.now(),ZW=!t||e>Date.now()-400&&Math.abs(t.clientX-i.clientX)<2&&Math.abs(t.clientY-i.clientY)<2?(ZW+1)%3:1}function tj(i,t,e,n){if(!e)return;let r=i.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=i.inputState,s=n&&o&&function _ge(i,t){let e=i.state.facet(vW);return e.length?e[0](t):Te.mac?!t.altKey:!t.ctrlKey}(i,t)?{from:o.from,to:o.to}:null,a={from:r,insert:e},l=i.state.changes(s?[s,a]:a);i.focus(),i.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"}),i.inputState.draggedContent=null}Ua.dragstart=(i,t)=>{let{selection:{main:e}}=i.state;if(t.target.draggable){let r=i.docView.nearest(t.target);if(r&&r.isWidget){let o=r.posAtStart,s=o+r.length;(o>=e.to||s<=e.from)&&(e=Z.range(o,s))}}let{inputState:n}=i;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=e,t.dataTransfer&&(t.dataTransfer.setData("Text",i.state.sliceDoc(e.from,e.to)),t.dataTransfer.effectAllowed="copyMove"),!1},Ua.dragend=i=>(i.inputState.draggedContent=null,!1),Ua.drop=(i,t)=>{if(!t.dataTransfer)return!1;if(i.state.readOnly)return!0;let e=t.dataTransfer.files;if(e&&e.length){let n=Array(e.length),r=0,o=()=>{++r==e.length&&tj(i,t,n.filter(s=>null!=s).join(i.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[s]=a.result),o()},a.readAsText(e[s])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return tj(i,t,n,!0),!0}return!1},Ua.paste=(i,t)=>{if(i.state.readOnly)return!0;i.observer.flush();let e=$W?null:t.clipboardData;return e?(GW(i,e.getData("text/plain")||e.getData("text/uri-text")),!0):(function yge(i){let t=i.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{i.focus(),e.remove(),GW(i,e.value)},50)}(i),!1)};let iP=null;Ua.copy=Ua.cut=(i,t)=>{let{text:e,ranges:n,linewise:r}=function Ege(i){let t=[],e=[],n=!1;for(let r of i.selection.ranges)r.empty||(t.push(i.sliceDoc(r.from,r.to)),e.push(r));if(!t.length){let r=-1;for(let{from:o}of i.selection.ranges){let s=i.doc.lineAt(o);s.number>r&&(t.push(s.text),e.push({from:s.from,to:Math.min(i.doc.length,s.to+1)})),r=s.number}n=!0}return{text:t.join(i.lineBreak),ranges:e,linewise:n}}(i.state);if(!e&&!r)return!1;iP=r?e:null,"cut"==t.type&&!i.state.readOnly&&i.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let o=$W?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",e),!0):(function kge(i,t){let e=i.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout(()=>{n.remove(),i.focus()},50)}(i,e),!1)};const ij=Gc.define();function nj(i,t){let e=[];for(let n of i.facet(CW)){let r=n(i,t);r&&e.push(r)}return e?i.update({effects:e,annotations:ij.of(!0)}):null}function rj(i){setTimeout(()=>{let t=i.hasFocus;if(t!=i.inputState.notifiedFocused){let e=nj(i.state,t);e?i.dispatch(e):i.update([])}},10)}Wa.focus=i=>{i.inputState.lastFocusTime=Date.now(),!i.scrollDOM.scrollTop&&(i.inputState.lastScrollTop||i.inputState.lastScrollLeft)&&(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),rj(i)},Wa.blur=i=>{i.observer.clearSelectionRange(),rj(i)},Wa.compositionstart=Wa.compositionupdate=i=>{null==i.inputState.compositionFirstChange&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0)},Wa.compositionend=i=>{i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,Te.chrome&&Te.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then(()=>i.observer.flush()):setTimeout(()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])},50)},Wa.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()},Ua.beforeinput=(i,t)=>{var e;let n;if(Te.chrome&&Te.android&&(n=WW.find(r=>r.inputType==t.inputType))&&(i.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let r=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(()=>{var o;((null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0)>r+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())},100)}return!1};const oj=new Set,sj=["pre-wrap","normal","pre-line","break-spaces"];class aj{constructor(t){this.lineWrapping=t,this.doc=ri.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let n=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((e-t-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return sj.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let n=0;n-1,l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=e,this.charWidth=n,this.textHeight=r,this.lineLength=o,l){this.heightSamples={};for(let c=0;c0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>r1&&(t.heightChanged=!0),this.height=e)}replace(t,e,n){return to.of(n)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,n,r){let o=this,s=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:u,toB:f}=r[a],p=o.lineAt(l,Ai.ByPosNoHeight,n.setDoc(e),0,0),g=p.to>=c?p:o.lineAt(c,Ai.ByPosNoHeight,n,0,0);for(f+=g.to-c,c=g.to;a>0&&p.from<=r[a-1].toA;)l=r[a-1].fromA,u=r[a-1].fromB,a--,l2*o){let a=t[e-1];a.break?t.splice(--e,1,a.left,null,a.right):t.splice(--e,1,a.left,a.right),n+=1+a.break,r-=a.size}else{if(!(o>2*r))break;{let a=t[n];a.break?t.splice(n,1,a.left,null,a.right):t.splice(n,1,a.left,a.right),n+=2+a.break,o-=a.size}}else if(r=o&&s(this.blockAt(0,n,r,o))}updateHeight(t,e=0,n=!1,r){return r&&r.from<=e&&r.more&&this.setHeight(t,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ms extends cj{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,n,r){return new Nl(r,this.length,n,this.height,this.breaks)}replace(t,e,n){let r=n[0];return 1==n.length&&(r instanceof Ms||r instanceof Lr&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof Lr?r=new Ms(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):to.of(n)}updateHeight(t,e=0,n=!1,r){return r&&r.from<=e&&r.more?this.setHeight(t,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Lr extends to{constructor(t){super(t,0)}heightMetrics(t,e){let s,n=t.doc.lineAt(e).number,r=t.doc.lineAt(e+this.length).number,o=r-n+1,a=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*o);s=l/o,this.length>o+1&&(a=(this.height-l)/(this.length-o-1))}else s=this.height/o;return{firstLine:n,lastLine:r,perLine:s,perChar:a}}blockAt(t,e,n,r){let{firstLine:o,lastLine:s,perLine:a,perChar:l}=this.heightMetrics(e,r);if(e.lineWrapping){let c=r+Math.round(Math.max(0,Math.min(1,(t-n)/this.height))*this.length),u=e.doc.lineAt(c),f=a+u.length*l,p=Math.max(n,t-f/2);return new Nl(u.from,u.length,p,f,0)}{let c=Math.max(0,Math.min(s-o,Math.floor((t-n)/a))),{from:u,length:f}=e.doc.line(o+c);return new Nl(u,f,n+a*c,a,0)}}lineAt(t,e,n,r,o){if(e==Ai.ByHeight)return this.blockAt(t,n,r,o);if(e==Ai.ByPosNoHeight){let{from:g,to:b}=n.doc.lineAt(t);return new Nl(g,b-g,0,0,0)}let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,o),c=n.doc.lineAt(t),u=a+c.length*l,f=c.number-s;return new Nl(c.from,c.length,Math.max(r,Math.min(r+a*f+l*(c.from-o-f),r+this.height-u)),u,0)}forEachLine(t,e,n,r,o,s){t=Math.max(t,o),e=Math.min(e,o+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(n,o);for(let u=t,f=r;u<=e;){let p=n.doc.lineAt(u);if(u==t){let b=p.number-a;f+=l*b+c*(t-o-b)}let g=l+c*p.length;s(new Nl(p.from,p.length,f,g,0)),f+=g,u=p.to+1}}replace(t,e,n){let r=this.length-e;if(r>0){let o=n[n.length-1];o instanceof Lr?n[n.length-1]=new Lr(o.length+r):n.push(null,new Lr(r-1))}if(t>0){let o=n[0];o instanceof Lr?n[0]=new Lr(t+o.length):n.unshift(new Lr(t-1),null)}return to.of(n)}decomposeLeft(t,e){e.push(new Lr(t-1),null)}decomposeRight(t,e){e.push(null,new Lr(this.length-t-1))}updateHeight(t,e=0,n=!1,r){let o=e+this.length;if(r&&r.from<=e+this.length&&r.more){let s=[],a=Math.max(e,r.from),l=-1;for(r.from>e&&s.push(new Lr(r.from-e-1).updateHeight(t,e));a<=o&&r.more;){let u=t.doc.lineAt(a).length;s.length&&s.push(null);let f=r.heights[r.index++];-1==l?l=f:Math.abs(f-l)>=r1&&(l=-2);let p=new Ms(u,f);p.outdated=!1,s.push(p),a+=u+1}a<=o&&s.push(null,new Lr(o-a).updateHeight(t,a));let c=to.of(s);return(l<0||Math.abs(c.height-this.height)>=r1||Math.abs(l-this.heightMetrics(t,e).perLine)>=r1)&&(t.heightChanged=!0),c}return(n||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Mge extends to{constructor(t,e,n){super(t.length+e+n.length,t.height+n.height,e|(t.outdated||n.outdated?2:0)),this.left=t,this.right=n,this.size=t.size+n.size}get break(){return 1&this.flags}blockAt(t,e,n,r){let o=n+this.left.height;return ta))return c;let u=e==Ai.ByPosNoHeight?Ai.ByPosNoHeight:Ai.ByPos;return l?c.join(this.right.lineAt(a,u,n,s,a)):this.left.lineAt(a,u,n,r,o).join(c)}forEachLine(t,e,n,r,o,s){let a=r+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,n,a,l,s);else{let c=this.lineAt(l,Ai.ByPos,n,r,o);t=t&&c.from<=e&&s(c),e>c.to&&this.right.forEachLine(c.to+1,e,n,a,l,s)}}replace(t,e,n){let r=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-r,e-r,n));let o=[];t>0&&this.decomposeLeft(t,o);let s=o.length;for(let a of n)o.push(a);if(t>0&&dj(o,s-1),e=n&&e.push(null)),t>n&&this.right.decomposeLeft(t-n,e)}decomposeRight(t,e){let n=this.left.length,r=n+this.break;if(t>=r)return this.right.decomposeRight(t-r,e);t2*e.size||e.size>2*t.size?to.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,n=!1,r){let{left:o,right:s}=this,a=e+o.length+this.break,l=null;return r&&r.from<=e+o.length&&r.more?l=o=o.updateHeight(t,e,n,r):o.updateHeight(t,e,n),r&&r.from<=a+s.length&&r.more?l=s=s.updateHeight(t,a,n,r):s.updateHeight(t,a,n),l?this.balanced(o,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function dj(i,t){let e,n;null==i[t]&&(e=i[t-1])instanceof Lr&&(n=i[t+1])instanceof Lr&&i.splice(t-1,3,new Lr(e.length+1+n.length))}class nP{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let n=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Ms?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Ms(n-this.pos,-1)),this.writtenTo=n,e>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,n){if(t=5)&&this.addLineDeco(r,o,s)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new Ms(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let n=new Lr(e-t);return this.oracle.doc.lineAt(t).to==e&&(n.flags|=4),n}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Ms)return t;let e=new Ms(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,t),r.breaks+=e,this.writtenTo=this.pos=this.pos+n}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof Ms||this.isCovered?(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&"visible"!=f.overflow){let p=u.getBoundingClientRect();o=Math.max(o,p.left),s=Math.min(s,p.right),a=Math.max(a,p.top),l=c==i.parentNode?p.bottom:Math.min(l,p.bottom)}c="absolute"==f.position||"fixed"==f.position?u.offsetParent:u.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+t),bottom:Math.max(a,l)-(e.top+t)}}function Rge(i,t){let e=i.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}class rP{constructor(t,e,n){this.from=t,this.to=e,this.size=n}static same(t,e){if(t.length!=e.length)return!1;for(let n=0;n"function"!=typeof n&&"cm-lineWrapping"==n.class);this.heightOracle=new aj(e),this.stateDeco=t.facet(ly).filter(n=>"function"!=typeof n),this.heightMap=to.empty().applyChanges(this.stateDeco,ri.empty,this.heightOracle.setDoc(t.doc),[new Ss(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ne.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let n=0;n<=1;n++){let r=n?e.head:e.anchor;if(!t.some(({from:o,to:s})=>r>=o&&r<=s)){let{from:o,to:s}=this.lineBlockAt(r);t.push(new o1(o,s))}}this.viewports=t.sort((n,r)=>n.from-r.from),this.scaler=this.heightMap.height<=7e6?hj:new Lge(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:dy(t,this.scaler))})}update(t,e=null){this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ly).filter(u=>"function"!=typeof u);let o=Ss.extendWithRanges(t.changedRanges,function Tge(i,t,e){let n=new Ige;return qi.compare(i,t,e,n,0),n.changes}(n,this.stateDeco,t?t.changes:tr.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(t.flags|=2),a?(this.scrollAnchorPos=t.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,e));let c=!t.changes.empty||2&t.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(kW)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,n=window.getComputedStyle(e),r=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?ki.RTL:ki.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:H,scaleY:W}=$U(e,a);(this.scaleX!=H||this.scaleY!=W)&&(this.scaleX=H,this.scaleY=W,c|=8,s=l=!0)}let f=(parseInt(n.paddingTop)||0)*this.scaleY,p=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=p)&&(this.paddingTop=f,this.paddingBottom=p,c|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=8);let g=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=JU(t.scrollDOM);let b=(this.printing?Rge:Oge)(e,this.paddingTop),v=b.top-this.pixelViewport.top,C=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let S=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(S!=this.inView&&(this.inView=S,S&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let M=a.width;if((this.contentDOMWidth!=M||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=t.scrollDOM.clientHeight,c|=8),l){let H=t.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(H)&&(s=!0),s||r.lineWrapping&&Math.abs(M-this.contentDOMWidth)>r.charWidth){let{lineHeight:W,charWidth:te,textHeight:se}=t.docView.measureTextSize();s=W>0&&r.refresh(o,W,te,se,M/te,H),s&&(t.docView.minWidth=0,c|=8)}v>0&&C>0?u=Math.max(v,C):v<0&&C<0&&(u=Math.min(v,C)),r.heightChanged=!1;for(let W of this.viewports){let te=W.from==this.viewport.from?H:t.docView.measureVisibleLineHeights(W);this.heightMap=(s?to.empty().applyChanges(this.stateDeco,ri.empty,this.heightOracle,[new Ss(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new lj(W.from,te))}r.heightChanged&&(c|=2)}let L=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return L&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||L)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),r=this.heightMap,o=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,l=new o1(r.lineAt(s-1e3*n,Ai.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-n),Ai.ByHeight,o,0,0).to);if(e){let{head:c}=e.range;if(cl.to){let p,u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=r.lineAt(c,Ai.ByPos,o,0,0);p="center"==e.y?(f.top+f.bottom)/2-u/2:"start"==e.y||"nearest"==e.y&&c=a+Math.max(10,Math.min(n,250)))&&r>s-2e3&&o>1,s=r<<1;if(this.defaultTextDirection!=ki.LTR&&!n)return[];let a=[],l=(c,u,f,p)=>{if(u-cc&&CC.from>=f.from&&C.to<=f.to&&Math.abs(C.from-c)C.fromS));if(!v){if(uC.from<=u&&C.to>=u)){let C=e.moveToLineBoundary(Z.cursor(u),!1,!0).head;C>c&&(u=C)}v=new rP(c,u,this.gapSize(f,c,u,p))}a.push(v)};for(let c of this.viewportLines){if(c.lengthc.from&&l(c.from,p,c,u),ge.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];qi.spans(t,this.viewport.from,this.viewport.to,{span(r,o){e.push({from:r,to:o})},point(){}},20);let n=e.length!=this.visibleRanges.length||this.visibleRanges.some((r,o)=>r.from!=e[o].from||r.to!=e[o].to);return this.visibleRanges=e,n?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||dy(this.heightMap.lineAt(t,Ai.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return dy(this.heightMap.lineAt(this.scaler.fromDOM(t),Ai.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return dy(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class o1{constructor(t,e){this.from=t,this.to=e}}function Fge(i,t,e){let n=[],r=i,o=0;return qi.spans(e,i,t,{span(){},point(s,a){s>r&&(n.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return t[t.length-1].to;let n=Math.floor(i*e);for(let r=0;;r++){let{from:o,to:s}=t[r],a=s-o;if(n<=a)return o+n;n-=a}}function a1(i,t){let e=0;for(let{from:n,to:r}of i.ranges){if(t<=r){e+=t-n;break}e+=r-n}return e/i.total}const hj={toDOM:i=>i,fromDOM:i=>i,scale:1};class Lge{constructor(t,e,n){let r=0,o=0,s=0;this.viewports=n.map(({from:a,to:l})=>{let c=e.lineAt(a,Ai.ByPos,t,0,0).top,u=e.lineAt(l,Ai.ByPos,t,0,0).bottom;return r+=u-c,{from:a,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);for(let a of this.viewports)a.domTop=s+(a.top-o)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(t){for(let e=0,n=0,r=0;;e++){let o=edy(r,t)):i._content)}const l1=ke.define({combine:i=>i.join(" ")}),oP=ke.define({combine:i=>i.indexOf(!0)>-1}),sP=pu.newName(),fj=pu.newName(),mj=pu.newName(),pj={"&light":"."+fj,"&dark":"."+mj};function aP(i,t,e){return new pu(t,{finish:n=>/&/.test(n)?n.replace(/&\w*/,r=>{if("&"==r)return i;if(!e||!e[r])throw new RangeError(`Unsupported selector: ${r}`);return e[r]}):i+" "+n})}const Bge=aP("."+sP,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},pj);class Vge{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(ks.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="\uffff"}readRange(t,e){if(!t)return this;let n=t.parentNode;for(let r=t;;){this.findPointBefore(n,r);let o=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==e)break;let a=Vi.get(r),l=Vi.get(s);(a&&l?a.breakAfter:(a?a.breakAfter:gj(r))||gj(s)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>o)&&this.lineBreak(),r=s}return this.findPointBefore(n,e),this}readTextNode(t){let e=t.nodeValue;for(let n of this.points)n.node==t&&(n.pos=this.text.length+Math.min(n.offset,e.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let a,o=-1,s=1;if(this.lineSeparator?(o=e.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(a=r.exec(e))&&(o=a.index,s=a[0].length),this.append(e.slice(n,o<0?e.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);n=o+s}}readNode(t){if(t.cmIgnore)return;let e=Vi.get(t),n=e&&e.overrideDOMText;if(null!=n){this.findPointInside(t,n.length);for(let r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let n of this.points)n.node==t&&t.childNodes[n.offset]==e&&(n.pos=this.text.length)}findPointInside(t,e){for(let n of this.points)(3==t.nodeType?n.node==t:t.contains(n.node))&&(n.pos=this.text.length+(Hge(t,n.node,n.offset)?e:0))}}function Hge(i,t,e){for(;;){if(!t||e-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,n,0))){let a=o||s?[]:function jge(i){let t=[];if(i.root.activeElement!=i.contentDOM)return t;let{anchorNode:e,anchorOffset:n,focusNode:r,focusOffset:o}=i.observer.selectionRange;return e&&(t.push(new _j(e,n)),(r!=e||o!=n)&&t.push(new _j(r,o))),t}(t),l=new Vge(a,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=function $ge(i,t){if(0==i.length)return null;let e=i[0].pos,n=2==i.length?i[1].pos:e;return e>-1&&n>-1?Z.single(e+t,n+t):null}(a,this.bounds.from)}else{let a=t.observer.selectionRange,l=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!FR(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),c=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!FR(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=t.viewport;if(Te.ios&&t.state.selection.main.empty&&l!=c&&(u.from>0||u.toDate.now()-100?i.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:a}=t.bounds,l=r.from,c=null;(8===o||Te.android&&t.text.length0&&a>0&&i.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;return"end"==n&&(e-=s+Math.max(0,o-Math.min(s,a))-o),s=s?o-e:0,a=o+(a-s),s=o):a=a?o-e:0,s=o+(s-a),a=o),{from:o,toA:s,toB:a}}(i.state.doc.sliceString(s,a,"\uffff"),t.text,l-s,c);u&&(Te.chrome&&13==o&&u.toB==u.from+2&&"\uffff\uffff"==t.text.slice(u.from,u.toB)&&u.toB--,e={from:s+u.from,to:s+u.toA,insert:ri.of(t.text.slice(u.from,u.toB).split("\uffff"))})}else n&&(!i.hasFocus&&i.state.facet(XD)||n.main.eq(r))&&(n=null);if(!e&&!n)return!1;if(!e&&t.typeOver&&!r.empty&&n&&n.main.empty?e={from:r.from,to:r.to,insert:i.state.doc.slice(r.from,r.to)}:e&&e.from>=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:i.state.doc.slice(r.from,e.from).append(e.insert).append(i.state.doc.slice(e.to,r.to))}:(Te.mac||Te.android)&&e&&e.from==e.to&&e.from==r.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==i.contentDOM.getAttribute("autocorrect")?(n&&2==e.insert.length&&(n=Z.single(n.main.anchor-1,n.main.head-1)),e={from:r.from,to:r.to,insert:ri.of([" "])}):Te.chrome&&e&&e.from==e.to&&e.from==r.head&&"\n "==e.insert.toString()&&i.lineWrapping&&(n&&(n=Z.single(n.main.anchor-1,n.main.head-1)),e={from:r.from,to:r.to,insert:ri.of([" "])}),e){if(Te.ios&&i.inputState.flushIOSKey()||Te.android&&(e.from==r.from&&e.to==r.to&&1==e.insert.length&&2==e.insert.lines&&ig(i.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&0==e.insert.length||8==o&&e.insert.lengthr.head)&&ig(i.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&ig(i.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let a,l=()=>a||(a=function Uge(i,t,e){let n,r=i.state,o=r.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!e||e.main.empty&&e.main.from==t.from+t.insert.length)&&i.inputState.composing<0){let a=o.fromt.to?r.sliceDoc(t.to,o.to):"";n=r.replaceSelection(i.state.toText(a+t.insert.sliceString(0,void 0,i.state.lineBreak)+l))}else{let a=r.changes(t),l=e&&e.main.to<=a.newLength?e.main:void 0;if(r.selection.ranges.length>1&&i.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u,c=i.state.sliceDoc(t.from,t.to),f=e&&PW(i,e.main.head);u=f?{from:f.from,to:f.to-(t.insert.length-(t.to-t.from))}:i.state.doc.lineAt(o.head);let p=o.to-t.to,g=o.to-o.from;n=r.changeByRange(b=>{if(b.from==o.from&&b.to==o.to)return{changes:a,range:l||b.map(a)};let v=b.to-p,C=v-c.length;if(b.to-b.from!=g||i.state.sliceDoc(C,v)!=c||b.to>=u.from&&b.from<=u.to)return{range:b};let S=r.changes({from:C,to:v,insert:t.insert}),M=b.to-o.to;return{changes:S,range:l?Z.range(Math.max(0,l.anchor+M),Math.max(0,l.head+M)):b.map(S)}})}else n={changes:a,selection:l&&r.selection.replaceRange(l)}}let s="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,s+=".compose",i.inputState.compositionFirstChange&&(s+=".start",i.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:s,scrollIntoView:!0})}(i,e,n));return i.state.facet(xW).some(c=>c(i,e.from,e.to,s,l))||i.dispatch(l()),!0}if(n&&!n.main.eq(r)){let s=!1,a="select";return i.inputState.lastSelectionTime>Date.now()-50&&("select"==i.inputState.lastSelectionOrigin&&(s=!0),a=i.inputState.lastSelectionOrigin),i.dispatch({selection:n,scrollIntoView:s,userEvent:a}),!0}return!1}const Gge={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},lP=Te.ie&&Te.ie_version<=11;class qge{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Ppe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let n of e)this.queue.push(n);(Te.ie&&Te.ie_version<=11||Te.ios&&t.composing)&&e.some(n=>"childList"==n.type&&n.removedNodes.length||"characterData"==n.type&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),lP&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,n)=>e!=t[n]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(XD)?n.root.activeElement!=this.dom:!GD(n.dom,r))return;let o=r.anchorNode&&n.docView.nearest(r.anchorNode);o&&o.ignoreEvent(t)?e||(this.selectionChanged=!1):(Te.ie&&Te.ie_version<=11||Te.android&&Te.chrome)&&!n.state.selection.main.empty&&r.focusNode&&iy(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=Te.safari&&11==t.root.nodeType&&function Tpe(i){let t=i.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function Kge(i){let t=null;function e(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(i.contentDOM.addEventListener("beforeinput",e,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",e,!0),!t)return null;let n=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=i.docView.domAtPos(i.state.selection.main.anchor);return iy(a.node,a.offset,o,s)&&([n,r,o,s]=[o,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:s}}(this.view)||$D(t.root);if(!e||this.selectionRange.eq(e))return!1;let n=GD(this.dom,e);return n&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&ig(this.dom,o.key,o.keyCode))})),(!this.delayedAndroidKey||"Enter"==t)&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,n=-1,r=!1;for(let o of t){let s=this.readMutation(o);s&&(s.typeOver&&(r=!0),-1==e?({from:e,to:n}=s):(e=Math.min(s.from,e),n=Math.max(s.to,n)))}return{from:e,to:n,typeOver:r}}readChange(){let{from:t,to:e,typeOver:n}=this.processRecords(),r=this.selectionChanged&&GD(this.dom,this.selectionRange);if(t<0&&!r)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new zge(this.view,t,e,n);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let n=this.view.state,r=bj(this.view,e);return this.view.state==n&&this.view.update([]),r}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let n=vj(e,t.previousSibling||t.target.previousSibling,-1),r=vj(e,t.nextSibling||t.target.nextSibling,1);return{from:n?e.posAfter(n):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,n;this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function vj(i,t,e){for(;t;){let n=Vi.get(t);if(n&&n.parent==i)return n;let r=t.parentNode;t=r!=i.dom?r:e>0?t.nextSibling:t.previousSibling}return null}let ht=(()=>{class i{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(o=>n(o,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function Fpe(i){for(;i;){if(i&&(9==i.nodeType||11==i.nodeType&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}(e.parent)||document,this.viewState=new uj(e.state||ks.create(e)),e.scrollTo&&e.scrollTo.is(YD)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ay).map(r=>new YR(r));for(let r of this.plugins)r.update(this);this.observer=new qge(this),this.inputState=new uge(this),this.inputState.ensureHandlers(this.plugins),this.docView=new OW(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=1==e.length&&e[0]instanceof Pl?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o,n=!1,r=!1,s=this.state;for(let g of e){if(g.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=g.state}if(this.destroyed)return void(this.viewState.state=s);let a=this.hasFocus,l=0,c=null;e.some(g=>g.annotation(ij))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,c=nj(s,a),c||(l=1));let u=this.observer.delayedAndroidKey,f=null;if(u?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(f=null)):this.observer.clear(),s.facet(ks.phrases)!=this.state.facet(ks.phrases))return this.setState(s);o=QD.create(this,s,e),o.flags|=l;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let g of e){if(p&&(p=p.map(g.changes)),g.scrollIntoView){let{main:b}=g.state.selection;p=new rg(b.empty?b:Z.cursor(b.head,b.head>b.anchor?-1:1))}for(let b of g.effects)b.is(YD)&&(p=b.value.clip(this.state))}this.viewState.update(o,p),this.bidiCache=c1.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),n=this.docView.update(o),this.state.facet(cy)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(g=>g.isUserEvent("select.pointer")))}finally{this.updateState=0}if(o.startState.facet(l1)!=o.state.facet(l1)&&(this.viewState.mustMeasureContent=!0),(n||r||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let g of this.state.facet(JR))try{g(o)}catch(b){aa(this.state,b,"update listener")}(c||f)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),f&&!bj(this,f)&&u.force&&ig(this.contentDOM,u.key,u.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new uj(e),this.plugins=e.facet(ay).map(r=>new YR(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new OW(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(ay),r=e.state.facet(ay);if(n!=r){let o=[];for(let s of r){let a=n.indexOf(s);if(a<0)o.push(new YR(s));else{let l=this.plugins[a];l.mustUpdate=e,o.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=e;for(let o=0;o-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,o=r.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(JU(r))s=-1,a=this.viewState.heightMap.height;else{let b=this.viewState.scrollAnchorAt(o);s=b.from,a=b.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];4&c||([this.measureRequests,u]=[u,this.measureRequests]);let f=u.map(b=>{try{return b.read(this)}catch(v){return aa(this.state,v),yj}}),p=QD.create(this,this.state,[]),g=!1;p.flags|=c,n?n.flags|=c:n=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),g=this.docView.update(p));for(let b=0;b1||v<-1){o+=v,r.scrollTop=o/this.scaleY,a=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let l of this.state.facet(JR))l(n)}get themeClasses(){return sP+" "+(this.state.facet(oP)?mj:fj)+" "+this.state.facet(l1)}updateAttrs(){let e=wj(this,EW,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(XD)?"true":"false",class:"cm-content",style:`${Te.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),wj(this,ZD,n);let r=this.observer.ignore(()=>{let o=WR(this.contentDOM,this.contentAttrs,n),s=WR(this.dom,this.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let o of r.effects)o.is(i.announce)&&(n&&(this.announceDOM.textContent=""),n=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=o.value)}mountStyles(){this.styleModules=this.state.facet(cy);let e=this.state.facet(i.cspNonce);pu.mount(this.root,this.styleModules.concat(Bge).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let n=0;nr.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return tP(this,e,zW(this,e,n,r))}moveByGroup(e,n){return tP(this,e,zW(this,e,n,r=>function cge(i,t,e){let n=i.state.charCategorizer(t),r=n(e);return o=>{let s=n(o);return r==Gi.Space&&(r=s),r==s}}(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),o=this.textDirectionAt(e.from),s=r[n?r.length-1:0];return Z.cursor(s.side(n,o)+e.from,s.forward(!n,o)?1:-1)}moveToLineBoundary(e,n,r=!0){return function lge(i,t,e,n){let r=eP(i,t.head),o=n&&r.type==So.Text&&(i.lineWrapping||r.widgetLineBreaks)?i.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(o){let s=i.dom.getBoundingClientRect(),a=i.textDirectionAt(r.from),l=i.posAtCoords({x:e==(a==ki.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(null!=l)return Z.cursor(l,e?-1:1)}return Z.cursor(e?r.to:r.from,e?-1:1)}(this,e,n,r)}moveVertically(e,n,r){return tP(this,e,function dge(i,t,e,n){let r=t.head,o=e?1:-1;if(r==(e?i.state.doc.length:0))return Z.cursor(r,t.assoc);let a,s=t.goalColumn,l=i.contentDOM.getBoundingClientRect(),c=i.coordsAtPos(r,t.assoc||-1),u=i.documentTop;if(c)null==s&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let g=i.viewState.lineBlockAt(r);null==s&&(s=Math.min(l.right-l.left,i.defaultCharacterWidth*(r-g.from))),a=(o<0?g.top:g.bottom)+u}let f=l.left+s,p=n??i.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let b=a+(p+g)*o,v=VW(i,{x:f,y:b},!1,o);if(bl.bottom||(o<0?vr)){let C=i.docView.coordsForChar(v);return Z.cursor(v,!C||b0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(DW)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Jge)return pW(e.length);let r,n=this.textDirectionAt(e.from);for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||fW(s.isolates,r=AW(this,e))))return s.order;r||(r=AW(this,e));let o=function mW(i,t,e){if(!i)return[new yu(0,0,t==$R?1:0)];if(t==hf&&!e.length&&!jpe.test(i))return pW(i.length);if(e.length)for(;i.length>Ei.length;)Ei[Ei.length]=256;let n=[],r=t==hf?0:1;return KR(i,r,r,e,0,i.length,n),n}(e.text,n,r);return this.bidiCache.push(new c1(e.from,e.to,n,r,!0,o)),o}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Te.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{GU(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return YD.of(new rg("number"==typeof e?Z.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return YD.of(new rg(Z.cursor(r.from),"start","start",r.top-e,n,!0))}static domEventHandlers(e){return tn.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return tn.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=pu.newName(),o=[l1.of(r),cy.of(aP(`.${r}`,e))];return n&&n.dark&&o.push(oP.of(!0)),o}static baseTheme(e){return mu.lowest(cy.of(aP("."+sP,e,pj)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),o=r&&Vi.get(r)||Vi.get(e);return(null===(n=o?.rootView)||void 0===n?void 0:n.view)||null}}return i.styleModule=cy,i.inputHandler=xW,i.focusChangeEffect=CW,i.perLineTextDirection=DW,i.exceptionSink=wW,i.updateListener=JR,i.editable=XD,i.mouseSelectionStyle=yW,i.dragMovesSelection=vW,i.clickAddsSelectionRange=bW,i.decorations=ly,i.outerDecorations=SW,i.atomicRanges=XR,i.bidiIsolatedRanges=MW,i.scrollMargins=TW,i.darkTheme=oP,i.cspNonce=ke.define({combine:t=>t.length?t[0]:""}),i.contentAttributes=ZD,i.editorAttributes=EW,i.lineWrapping=i.contentAttributes.of({class:"cm-lineWrapping"}),i.announce=Ft.define(),i})();const Jge=4096,yj={};class c1{constructor(t,e,n,r,o,s){this.from=t,this.to=e,this.dir=n,this.isolates=r,this.fresh=o,this.order=s}static update(t,e){if(e.empty&&!t.some(o=>o.fresh))return t;let n=[],r=t.length?t[t.length-1].dir:ki.LTR;for(let o=Math.max(0,t.length-10);o=0;r--){let o=n[r],s="function"==typeof o?o(i):o;s&&zR(s,e)}return e}const Yge=Te.mac?"mac":Te.windows?"win":Te.linux?"linux":"key";function d1(i,t,e){return t.altKey&&(i="Alt-"+i),t.ctrlKey&&(i="Ctrl-"+i),t.metaKey&&(i="Meta-"+i),!1!==e&&t.shiftKey&&(i="Shift-"+i),i}const u1=ke.define({enables:mu.default(ht.domEventHandlers({keydown:(i,t)=>Dj(Cj(t.state),i,t,"editor")}))}),xj=new WeakMap;function Cj(i){let t=i.facet(u1),e=xj.get(t);return e||xj.set(t,e=function t_e(i,t=Yge){let e=Object.create(null),n=Object.create(null),r=(s,a)=>{let l=n[s];if(null==l)n[s]=a;else if(l!=a)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},o=(s,a,l,c,u)=>{var f,p;let g=e[s]||(e[s]=Object.create(null)),b=a.split(/ (?!$)/).map(S=>function Xge(i,t){const e=i.split(/-(?!$)/);let r,o,s,a,n=e[e.length-1];"Space"==n&&(n=" ");for(let l=0;l{let H=wu={view:L,prefix:M,scope:s};return setTimeout(()=>{wu==H&&(wu=null)},e_e),!0}]})}let v=b.join(" ");r(v,!1);let C=g[v]||(g[v]={preventDefault:!1,stopPropagation:!1,run:(null===(p=null===(f=g._any)||void 0===f?void 0:f.run)||void 0===p?void 0:p.slice())||[]});l&&C.run.push(l),c&&(C.preventDefault=!0),u&&(C.stopPropagation=!0)};for(let s of i){let a=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let c of a){let u=e[c]||(e[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let f in u)u[f].run.push(s.any)}let l=s[t]||s.key;if(l)for(let c of a)o(c,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(c,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return e}(t.reduce((n,r)=>n.concat(r),[]))),e}let wu=null;const e_e=4e3;function Dj(i,t,e,n){let r=function Ape(i){var e=!(Spe&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||Mpe&&i.shiftKey&&i.key&&1==i.key.length||"Unidentified"==i.key)&&i.key||(i.shiftKey?ty:gu)[i.keyCode]||i.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(t),s=sa(Fr(r,0))==r.length&&" "!=r,a="",l=!1,c=!1,u=!1;wu&&wu.view==e&&wu.scope==n&&(a=wu.prefix+" ",jW.indexOf(t.keyCode)<0&&(c=!0,wu=null));let b,v,f=new Set,p=C=>{if(C){for(let S of C.run)if(!f.has(S)&&(f.add(S),S(e,t)))return C.stopPropagation&&(u=!0),!0;C.preventDefault&&(C.stopPropagation&&(u=!0),c=!0)}return!1},g=i[n];return g&&(p(g[a+d1(r,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Te.windows&&t.ctrlKey&&t.altKey)&&(b=gu[t.keyCode])&&b!=r?(p(g[a+d1(b,t,!0)])||t.shiftKey&&(v=ty[t.keyCode])!=r&&v!=b&&p(g[a+d1(v,t,!1)]))&&(l=!0):s&&t.shiftKey&&p(g[a+d1(r,t,!0)])&&(l=!0),!l&&p(g._any)&&(l=!0)),c&&(l=!0),l&&u&&t.stopPropagation(),l}class hy{constructor(t,e,n,r,o){this.className=t,this.left=e,this.top=n,this.width=r,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,n){if(n.empty){let r=t.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let o=kj(t);return[new hy(e,r.left-o.left,r.top-o.top,null,r.bottom-r.top)]}return function i_e(i,t,e){if(e.to<=i.viewport.from||e.from>=i.viewport.to)return[];let n=Math.max(e.from,i.viewport.from),r=Math.min(e.to,i.viewport.to),o=i.textDirection==ki.LTR,s=i.contentDOM,a=s.getBoundingClientRect(),l=kj(i),c=s.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),f=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),p=a.right-(u?parseInt(u.paddingRight):0),g=eP(i,n),b=eP(i,r),v=g.type==So.Text?g:null,C=b.type==So.Text?b:null;if(v&&(i.lineWrapping||g.widgetLineBreaks)&&(v=Ej(i,n,v)),C&&(i.lineWrapping||b.widgetLineBreaks)&&(C=Ej(i,r,C)),v&&C&&v.from==C.from)return M(L(e.from,e.to,v));{let W=v?L(e.from,null,v):H(g,!1),te=C?L(null,e.to,C):H(b,!0),se=[];return(v||g).to<(C||b).from-(v&&C?1:0)||g.widgetLineBreaks>1&&W.bottom+i.defaultLineHeight/2gt&&jt.from=ye)break;Rt>Ii&&St(Math.max(mt,Ii),null==W&&mt<=gt,Math.min(Rt,ye),null==te&&Rt>=Bt,Me.dir)}if(Ii=De.to+1,Ii>=ye)break}return 0==ft.length&&St(gt,null==W,Bt,null==te,i.textDirection),{top:ze,bottom:ct,horizontal:ft}}function H(W,te){let se=a.top+(te?W.top:W.bottom);return{top:se,bottom:se,horizontal:[]}}}(t,e,n)}}function kj(i){let t=i.scrollDOM.getBoundingClientRect();return{left:(i.textDirection==ki.LTR?t.left:t.right-i.scrollDOM.clientWidth*i.scaleX)-i.scrollDOM.scrollLeft*i.scaleX,top:t.top-i.scrollDOM.scrollTop*i.scaleY}}function Ej(i,t,e){let n=Z.cursor(t);return{from:Math.max(e.from,i.moveToLineBoundary(n,!1,!0).from),to:Math.min(e.to,i.moveToLineBoundary(n,!0,!0).from),type:So.Text}}class r_e{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(h1)!=t.state.facet(h1)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let e=0,n=t.facet(h1);for(;e!function n_e(i,t){return i.constructor==t.constructor&&i.eq(t)}(e,this.drawn[n]))){let e=this.dom.firstChild,n=0;for(let r of t)r.update&&e&&r.constructor&&this.drawn[n].constructor&&r.update(e,this.drawn[n])?(e=e.nextSibling,n++):this.dom.insertBefore(r.draw(),e);for(;e;){let r=e.nextSibling;e.remove(),e=r}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const h1=ke.define();function Sj(i){return[tn.define(t=>new r_e(t,i)),h1.of(i)]}const Mj=!Te.ios,og=ke.define({combine:i=>za(i,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function o_e(i={}){return[og.of(i),s_e,a_e,l_e,kW.of(!0)]}function Aj(i){return i.startState.facet(og)!=i.state.facet(og)}const s_e=Sj({above:!0,markers(i){let{state:t}=i,e=t.facet(og),n=[];for(let r of t.selection.ranges){let o=r==t.selection.main;if(r.empty?!o||Mj:e.drawRangeCursor){let s=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=r.empty?r:Z.cursor(r.head,r.head>r.anchor?-1:1);for(let l of hy.forRange(i,s,a))n.push(l)}}return n},update(i,t){i.transactions.some(n=>n.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let e=Aj(i);return e&&Tj(i.state,t),i.docChanged||i.selectionSet||e},mount(i,t){Tj(t.state,i)},class:"cm-cursorLayer"});function Tj(i,t){t.style.animationDuration=i.facet(og).cursorBlinkRate+"ms"}const a_e=Sj({above:!1,markers:i=>i.state.selection.ranges.map(t=>t.empty?[]:hy.forRange(i,"cm-selectionBackground",t)).reduce((t,e)=>t.concat(e)),update:(i,t)=>i.docChanged||i.selectionSet||i.viewportChanged||Aj(i),class:"cm-selectionLayer"}),cP={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Mj&&(cP[".cm-line"].caretColor="transparent !important",cP[".cm-content"]={caretColor:"transparent !important"});const l_e=mu.highest(ht.theme(cP)),Ij=Ft.define({map:(i,t)=>null==i?null:t.mapPos(i)}),fy=Bn.define({create:()=>null,update:(i,t)=>(null!=i&&(i=t.changes.mapPos(i)),t.effects.reduce((e,n)=>n.is(Ij)?n.value:e,i))}),c_e=tn.fromClass(class{constructor(i){this.view=i,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(i){var t;let e=i.state.field(fy);null==e?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(i.startState.field(fy)!=e||i.docChanged||i.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:i}=this,t=i.state.field(fy),e=null!=t&&i.coordsAtPos(t);if(!e)return null;let n=i.scrollDOM.getBoundingClientRect();return{left:e.left-n.left+i.scrollDOM.scrollLeft*i.scaleX,top:e.top-n.top+i.scrollDOM.scrollTop*i.scaleY,height:e.bottom-e.top}}drawCursor(i){if(this.cursor){let{scaleX:t,scaleY:e}=this.view;i?(this.cursor.style.left=i.left/t+"px",this.cursor.style.top=i.top/e+"px",this.cursor.style.height=i.height/e+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(i){this.view.state.field(fy)!=i&&this.view.dispatch({effects:Ij.of(i)})}},{eventObservers:{dragover(i){this.setDropPos(this.view.posAtCoords({x:i.clientX,y:i.clientY}))},dragleave(i){(i.target==this.view.contentDOM||!this.view.contentDOM.contains(i.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Oj(i,t,e,n,r){t.lastIndex=0;for(let a,o=i.iterRange(e,n),s=e;!o.next().done;s+=o.value.length)if(!o.lineBreak)for(;a=t.exec(o.value);)r(s+a.index,a)}class dP{constructor(t){const{regexp:e,decoration:n,decorate:r,boundary:o,maxLength:s=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,r)this.addMatch=(a,l,c,u)=>r(u,c,c+a[0].length,a,l);else if("function"==typeof n)this.addMatch=(a,l,c,u)=>{let f=n(a,l,c);f&&u(c,c+a[0].length,f)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(a,l,c,u)=>u(c,c+a[0].length,n)}this.boundary=o,this.maxLength=s}createDeco(t){let e=new qc,n=e.add.bind(e);for(let{from:r,to:o}of function u_e(i,t){let e=i.visibleRanges;if(1==e.length&&e[0].from==i.viewport.from&&e[0].to==i.viewport.to)return e;let n=[];for(let{from:r,to:o}of e)r=Math.max(i.state.doc.lineAt(r).from,r-t),o=Math.min(i.state.doc.lineAt(o).to,o+t),n.length&&n[n.length-1].to>=r?n[n.length-1].to=o:n.push({from:r,to:o});return n}(t,this.maxLength))Oj(t.state.doc,this.regexp,r,o,(s,a)=>this.addMatch(a,t,s,n));return e.finish()}updateDeco(t,e){let n=1e9,r=-1;return t.docChanged&&t.changes.iterChanges((o,s,a,l)=>{l>t.view.viewport.from&&a1e3?this.createDeco(t.view):r>-1?this.updateRange(t.view,e.map(t.changes),n,r):e}updateRange(t,e,n,r){for(let o of t.visibleRanges){let s=Math.max(o.from,n),a=Math.min(o.to,r);if(a>s){let l=t.state.doc.lineAt(s),c=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){u=s;break}for(;ap.push(S.range(v,C));if(l==c)for(this.regexp.lastIndex=u-l.from;(g=this.regexp.exec(l.text))&&g.indexthis.addMatch(C,t,v,b));e=e.update({filterFrom:u,filterTo:f,filter:(v,C)=>vf,add:p})}}return e}}const uP=null!=/x/.unicode?"gu":"g",h_e=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",uP),f_e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let hP=null;const f1=ke.define({combine(i){let t=za(i,{render:null,specialChars:h_e,addSpecialChars:null});return(t.replaceTabs=!function m_e(){var i;if(null==hP&&typeof document<"u"&&document.body){let t=document.body.style;hP=null!=(null!==(i=t.tabSize)&&void 0!==i?i:t.MozTabSize)}return hP||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,uP)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,uP)),t}});function p_e(i={}){return[f1.of(i),Rj||(Rj=tn.fromClass(class{constructor(i){this.view=i,this.decorations=Ne.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(i.state.facet(f1)),this.decorations=this.decorator.createDeco(i)}makeDecorator(i){return new dP({regexp:i.specialChars,decoration:(t,e,n)=>{let{doc:r}=e.state,o=Fr(t[0],0);if(9==o){let s=r.lineAt(n),a=e.state.tabSize,l=Qp(s.text,a,n-s.from);return Ne.replace({widget:new w_e((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=Ne.replace({widget:new y_e(i,o)}))},boundary:i.replaceTabs?void 0:/[^]/})}update(i){let t=i.state.facet(f1);i.startState.facet(f1)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(i.view)):this.decorations=this.decorator.updateDeco(i,this.decorations)}},{decorations:i=>i.decorations}))]}let Rj=null;class y_e extends Xc{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=function v_e(i){return i>=32?"\u2022":10==i?"\u2424":String.fromCharCode(9216+i)}(this.code),n=t.state.phrase("Control character")+" "+(f_e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,e);if(r)return r;let o=document.createElement("span");return o.textContent=e,o.title=n,o.setAttribute("aria-label",n),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class w_e extends Xc{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="\t",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const C_e=Ne.line({class:"cm-activeLine"}),D_e=tn.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let t=-1,e=[];for(let n of i.state.selection.ranges){let r=i.lineBlockAt(n.head);r.from>t&&(e.push(C_e.range(r.from)),t=r.from)}return Ne.set(e)}},{decorations:i=>i.decorations}),fP=2e3;function Fj(i,t){let e=i.posAtCoords({x:t.clientX,y:t.clientY},!1),n=i.state.doc.lineAt(e),r=e-n.from,o=r>fP?-1:r==n.length?function S_e(i,t){let e=i.coordsAtPos(i.viewport.from);return e?Math.round(Math.abs((e.left-t)/i.defaultCharacterWidth)):-1}(i,t.clientX):Qp(n.text,i.state.tabSize,e-n.from);return{line:n.number,col:o,off:r}}function A_e(i){let t=i?.eventFilter||(e=>e.altKey&&0==e.button);return ht.mouseSelectionStyle.of((e,n)=>t(n)?function M_e(i,t){let e=Fj(i,t),n=i.state.selection;return e?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},n=n.map(r.changes)}},get(r,o,s){let a=Fj(i,r);if(!a)return n;let l=function E_e(i,t,e){let n=Math.min(t.line,e.line),r=Math.max(t.line,e.line),o=[];if(t.off>fP||e.off>fP||t.col<0||e.col<0){let s=Math.min(t.off,e.off),a=Math.max(t.off,e.off);for(let l=n;l<=r;l++){let c=i.doc.line(l);c.length<=a&&o.push(Z.range(c.from+s,c.to+a))}}else{let s=Math.min(t.col,e.col),a=Math.max(t.col,e.col);for(let l=n;l<=r;l++){let c=i.doc.line(l),u=IR(c.text,s,i.tabSize,!0);if(u<0)o.push(Z.cursor(c.to));else{let f=IR(c.text,a,i.tabSize);o.push(Z.range(c.from+u,c.from+f))}}}return o}(i.state,e,a);return l.length?Z.create(s?l.concat(n.ranges):l):n}}:null}(e,n):null)}const T_e={Alt:[18,i=>!!i.altKey],Control:[17,i=>!!i.ctrlKey],Shift:[16,i=>!!i.shiftKey],Meta:[91,i=>!!i.metaKey]},I_e={style:"cursor: crosshair"};function O_e(i={}){let[t,e]=T_e[i.key||"Alt"],n=tn.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==t||e(r))},keyup(r){(r.keyCode==t||!e(r))&&this.set(!1)},mousemove(r){this.set(e(r))}}});return[n,ht.contentAttributes.of(r=>{var o;return null!==(o=r.plugin(n))&&void 0!==o&&o.isDown?I_e:null})]}const my="-10000px";class Nj{constructor(t,e,n){this.facet=e,this.createTooltipView=n,this.input=t.state.facet(e),this.tooltips=this.input.filter(r=>r),this.tooltipViews=this.tooltips.map(n)}update(t,e){var n;let r=t.state.facet(this.facet),o=r.filter(l=>l);if(r===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],a=e?[]:null;for(let l=0;le[c]=l),e.length=a.length),this.input=r,this.tooltips=o,this.tooltipViews=s,!0}}function R_e(i){let{win:t}=i;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const m1=ke.define({combine:i=>{var t,e,n;return{position:Te.ios?"absolute":(null===(t=i.find(r=>r.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(e=i.find(r=>r.parent))||void 0===e?void 0:e.parent)||null,tooltipSpace:(null===(n=i.find(r=>r.tooltipSpace))||void 0===n?void 0:n.tooltipSpace)||R_e}}}),Lj=new WeakMap,p1=tn.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=i.state.facet(m1);this.position=t.position,this.parent=t.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Nj(i,g1,e=>this.createTooltip(e)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(i,this.above);t&&this.observeIntersection();let e=t||i.geometryChanged,n=i.state.facet(m1);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;e=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(i){let t=i.create(this.view);if(t.dom.classList.add("cm-tooltip"),i.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=my,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var i,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let e of this.manager.tooltipViews)e.dom.remove(),null===(i=e.destroy)||void 0===i||i.call(e);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=this.view.dom.getBoundingClientRect(),t=1,e=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(Te.gecko)n=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==my&&"0px"==r.style.left){let o=r.getBoundingClientRect();n=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(n||"absolute"==this.position)if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(t=r.width/this.parent.offsetWidth,e=r.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);return{editor:i,parent:this.parent?this.container.getBoundingClientRect():i,pos:this.manager.tooltips.map((r,o)=>{let s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(m1).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(i){var t;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:e,space:n,scaleX:r,scaleY:o}=i,s=[];for(let a=0;a=Math.min(e.bottom,n.bottom)||f.rightMath.min(e.right,n.right)+.1){u.style.top=my;continue}let g=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,b=g?7:0,v=p.right-p.left,C=null!==(t=Lj.get(c))&&void 0!==t?t:p.bottom-p.top,S=c.offset||F_e,M=this.view.textDirection==ki.LTR,L=p.width>n.right-n.left?M?n.left:n.right-p.width:M?Math.min(f.left-(g?14:0)+S.x,n.right-v):Math.max(n.left,f.left-v+(g?14:0)-S.x),H=this.above[a];!l.strictSide&&(H?f.top-(p.bottom-p.top)-S.yn.bottom)&&H==n.bottom-f.bottom>f.top-n.top&&(H=this.above[a]=!H);let W=(H?f.top-n.top:n.bottom-f.bottom)-b;if(WL&&ze.topte&&(te=H?ze.top-C-2-b:ze.bottom+b+2);"absolute"==this.position?(u.style.top=(te-i.parent.top)/o+"px",u.style.left=(L-i.parent.left)/r+"px"):(u.style.top=te/o+"px",u.style.left=L/r+"px"),g&&(g.style.left=(f.left+(M?S.x:-S.x)-(L+14-7))/r+"px"),!0!==c.overlap&&s.push({left:L,top:te,right:se,bottom:te+C}),u.classList.toggle("cm-tooltip-above",H),u.classList.toggle("cm-tooltip-below",!H),c.positioned&&c.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=my}},{eventObservers:{scroll(){this.maybeMeasure()}}}),F_e={x:0,y:0},g1=ke.define({enables:[p1,ht.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}})]}),py=ke.define();class _1{static create(t){return new _1(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Nj(t,py,e=>this.createHostedView(e))}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let n of this.manager.tooltipViews){let r=n[t];if(void 0!==r)if(void 0===e)e=r;else if(e!==r)return}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const N_e=g1.compute([py],i=>{let t=i.facet(py).filter(e=>e);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var n;return null!==(n=e.end)&&void 0!==n?n:e.pos})),create:_1.create,above:t[0].above,arrow:t.some(e=>e.arrow)}});class L_e{constructor(t,e,n,r,o){this.view=t,this.source=e,this.field=n,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ta.bottom||e.xa.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(r)).find(u=>u.from<=r&&u.to>=r),c=l&&l.dir==ki.RTL?-1:1;o=e.x{this.pending==a&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>aa(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}get tooltip(){let t=this.view.plugin(p1),e=t?t.manager.tooltips.findIndex(n=>n.create==_1.create):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:r}=this;if(n&&r&&!function B_e(i,t){let e=i.getBoundingClientRect();return t.clientX>=e.left-b1&&t.clientX<=e.right+b1&&t.clientY>=e.top-b1&&t.clientY<=e.bottom+b1}(r.dom,t)||this.pending){let{pos:o}=n||this.pending,s=null!==(e=n?.end)&&void 0!==e?e:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!function V_e(i,t,e,n,r,o){let s=i.scrollDOM.getBoundingClientRect();if(s.left>n||s.rightr||Math.min(s.bottom,i.documentTop+i.documentPadding.top+i.contentHeight)=t&&l<=e}(this.view,o,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e){let{tooltip:n}=this;n&&n.dom.contains(t.relatedTarget)?this.watchTooltipLeave(n.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let e=n=>{t.removeEventListener("mouseleave",e),this.active&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const b1=4;function H_e(i,t={}){let e=Ft.define(),n=Bn.define({create:()=>null,update(r,o){if(r&&(t.hideOnChange&&(o.docChanged||o.selection)||t.hideOn&&t.hideOn(o,r)))return null;if(r&&o.docChanged){let s=o.changes.mapPos(r.pos,-1,Eo.TrackDel);if(null==s)return null;let a=Object.assign(Object.create(null),r);a.pos=s,null!=r.end&&(a.end=o.changes.mapPos(r.end)),r=a}for(let s of o.effects)s.is(e)&&(r=s.value),s.is(z_e)&&(r=null);return r},provide:r=>py.from(r)});return[n,tn.define(r=>new L_e(r,i,n,e,t.hoverTime||300)),N_e]}function Bj(i,t){let e=i.plugin(p1);if(!e)return null;let n=e.manager.tooltips.indexOf(t);return n<0?null:e.manager.tooltipViews[n]}const z_e=Ft.define(),mP=ke.define({combine(i){let t,e;for(let n of i)t=t||n.topContainer,e=e||n.bottomContainer;return{topContainer:t,bottomContainer:e}}});function gy(i,t){let e=i.plugin(Vj),n=e?e.specs.indexOf(t):-1;return n>-1?e.panels[n]:null}const Vj=tn.fromClass(class{constructor(i){this.input=i.state.facet(_y),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(e=>e(i));let t=i.state.facet(mP);this.top=new v1(i,!0,t.topContainer),this.bottom=new v1(i,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(i){let t=i.state.facet(mP);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new v1(i.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new v1(i.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let e=i.state.facet(_y);if(e!=this.input){let n=e.filter(l=>l),r=[],o=[],s=[],a=[];for(let l of n){let u,c=this.specs.indexOf(l);c<0?(u=l(i.view),a.push(u)):(u=this.panels[c],u.update&&u.update(i)),r.push(u),(u.top?o:s).push(u)}this.specs=n,this.panels=r,this.top.sync(o),this.bottom.sync(s);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>ht.scrollMargins.of(t=>{let e=t.plugin(i);return e&&{top:e.top.scrollMargin(),bottom:e.bottom.scrollMargin()}})});class v1{constructor(t,e,n){this.view=t,this.top=e,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=Hj(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=Hj(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function Hj(i){let t=i.nextSibling;return i.remove(),t}const _y=ke.define({enables:Vj});class Ll extends df{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Ll.prototype.elementClass="",Ll.prototype.toDOM=void 0,Ll.prototype.mapMode=Eo.TrackBefore,Ll.prototype.startSide=Ll.prototype.endSide=-1,Ll.prototype.point=!0;const y1=ke.define(),U_e={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>qi.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},by=ke.define();function zj(i){return[Uj(),by.of(Object.assign(Object.assign({},U_e),i))]}const pP=ke.define({combine:i=>i.some(t=>t)});function Uj(i){let t=[W_e];return i&&!1===i.fixed&&t.push(pP.of(!0)),t}const W_e=tn.fromClass(class{constructor(i){this.view=i,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(by).map(t=>new jj(i,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!i.state.facet(pP),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}update(i){if(this.updateGutters(i)){let t=this.prevViewport,e=i.view.viewport,n=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(n<.8*(e.to-e.from))}i.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(pP)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=i.view.viewport}syncGutters(i){let t=this.dom.nextSibling;i&&this.dom.remove();let e=qi.iter(this.view.state.facet(y1),this.view.viewport.from),n=[],r=this.gutters.map(o=>new j_e(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(o.type)){let s=!0;for(let a of o.type)if(a.type==So.Text&&s){gP(e,n,a.from);for(let l of r)l.line(this.view,a,n);s=!1}else if(a.widget)for(let l of r)l.widget(this.view,a)}else if(o.type==So.Text){gP(e,n,o.from);for(let s of r)s.line(this.view,o,n)}else if(o.widget)for(let s of r)s.widget(this.view,o);for(let o of r)o.finish();i&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(i){let t=i.startState.facet(by),e=i.state.facet(by),n=i.docChanged||i.heightChanged||i.viewportChanged||!qi.eq(i.startState.facet(y1),i.state.facet(y1),i.view.viewport.from,i.view.viewport.to);if(t==e)for(let r of this.gutters)r.update(i)&&(n=!0);else{n=!0;let r=[];for(let o of e){let s=t.indexOf(o);s<0?r.push(new jj(this.view,o)):(this.gutters[s].update(i),r.push(this.gutters[s]))}for(let o of this.gutters)o.dom.remove(),r.indexOf(o)<0&&o.destroy();for(let o of r)this.dom.appendChild(o.dom);this.gutters=r}return n}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove()}},{provide:i=>ht.scrollMargins.of(t=>{let e=t.plugin(i);return e&&0!=e.gutters.length&&e.fixed?t.textDirection==ki.LTR?{left:e.dom.offsetWidth*t.scaleX}:{right:e.dom.offsetWidth*t.scaleX}:null})});function Wj(i){return Array.isArray(i)?i:[i]}function gP(i,t,e){for(;i.value&&i.from<=e;)i.from==e&&t.push(i.value),i.next()}class j_e{constructor(t,e,n){this.gutter=t,this.height=n,this.i=0,this.cursor=qi.iter(t.markers,e.from)}addElement(t,e,n){let{gutter:r}=this,o=(e.top-this.height)/t.scaleY,s=e.height/t.scaleY;if(this.i==r.elements.length){let a=new $j(t,s,o,n);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(t,s,o,n);this.height=e.bottom,this.i++}line(t,e,n){let r=[];gP(this.cursor,r,e.from),n.length&&(r=r.concat(n));let o=this.gutter.config.lineMarker(t,e,r);o&&r.unshift(o),0==r.length&&!this.gutter.config.renderEmptyElements||this.addElement(t,e,r)}widget(t,e){let n=this.gutter.config.widgetMarker(t,e.widget,e);n&&this.addElement(t,e,[n])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class jj{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in e.domEventHandlers)this.dom.addEventListener(n,r=>{let s,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=r.clientY;let a=t.lineBlockAtHeight(s-t.documentTop);e.domEventHandlers[n](t,a,r)&&r.preventDefault()});this.markers=Wj(e.markers(t)),e.initialSpacer&&(this.spacer=new $j(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=Wj(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],t);r!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[r])}let n=t.view.viewport;return!qi.eq(this.markers,e,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class $j{constructor(t,e,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,n,r)}update(t,e,n,r){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function $_e(i,t){if(i.length!=t.length)return!1;for(let e=0;eza(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let n=Object.assign({},t);for(let r in e){let o=n[r],s=e[r];n[r]=o?(a,l,c)=>o(a,l,c)||s(a,l,c):s}return n}})});class _P extends Ll{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function bP(i,t){return i.state.facet(sg).formatNumber(t,i.state)}const q_e=by.compute([sg],i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(G_e),lineMarker:(t,e,n)=>n.some(r=>r.toDOM)?null:new _P(bP(t,t.state.doc.lineAt(e.from).number)),widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(sg)!=t.state.facet(sg),initialSpacer:t=>new _P(bP(t,Gj(t.state.doc.lines))),updateSpacer(t,e){let n=bP(e.view,Gj(e.view.state.doc.lines));return n==t.number?t:new _P(n)},domEventHandlers:i.facet(sg).domEventHandlers}));function K_e(i={}){return[sg.of(i),Uj(),q_e]}function Gj(i){let t=9;for(;t{let t=[],e=-1;for(let n of i.selection.ranges){let r=i.doc.lineAt(n.head).from;r>e&&(e=r,t.push(J_e.range(r)))}return qi.of(t)}),Jj=1024;let tbe=0;class la{constructor(t,e){this.from=t,this.to=e}}class kt{constructor(t={}){this.id=tbe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=Mo.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}kt.closedBy=new kt({deserialize:i=>i.split(" ")}),kt.openedBy=new kt({deserialize:i=>i.split(" ")}),kt.group=new kt({deserialize:i=>i.split(" ")}),kt.isolate=new kt({deserialize:i=>{if(i&&"rtl"!=i&&"ltr"!=i&&"auto"!=i)throw new RangeError("Invalid value for isolate: "+i);return i||"auto"}}),kt.contextHash=new kt({perNode:!0}),kt.lookAhead=new kt({perNode:!0}),kt.mounted=new kt({perNode:!0});class vy{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}static get(t){return t&&t.props&&t.props[kt.mounted.id]}}const ibe=Object.create(null);class Mo{constructor(t,e,n,r=0){this.name=t,this.props=e,this.id=n,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):ibe,r=new Mo(t.name||"",e,t.id,(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0));if(t.props)for(let o of t.props)if(Array.isArray(o)||(o=o(r)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[o[0].id]=o[1]}return r}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(kt.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let r of n.split(" "))e[r]=t[n];return n=>{for(let r=n.prop(kt.group),o=-1;o<(r?r.length:0);o++){let s=e[o<0?n.name:r[o]];if(s)return s}}}}Mo.none=new Mo("",Object.create(null),0,8);class w1{constructor(t){this.types=t;for(let e=0;e=t){let a=new io(s.tree,s.overlay[0].from+o.from,-1,o);(r||(r=[n])).push(yy(a,t,e,!1))}}return r?e$(r):n}(this,t,e)}iterate(t){let{enter:e,leave:n,from:r=0,to:o=this.length}=t,s=t.mode||0,a=(s&nn.IncludeAnonymous)>0;for(let l=this.cursor(s|nn.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=r&&(!a&&l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:xP(Mo.none,this.children,this.positions,0,this.children.length,0,this.length,(e,n,r)=>new rn(this.type,e,n,r,this.propValues),t.makeTree||((e,n,r)=>new rn(Mo.none,e,n,r)))}static build(t){return function sbe(i){var t;let{buffer:e,nodeSet:n,maxBufferLength:r=Jj,reused:o=[],minRepeatType:s=n.types.length}=i,a=Array.isArray(e)?new vP(e,e.length):e,l=n.types,c=0,u=0;function f(W,te,se,ze,ct,ft){let{id:St,start:gt,end:Bt,size:jt}=a,Ii=u;for(;jt<0;){if(a.next(),-1==jt)return se.push(o[St]),void ze.push(gt-W);if(-3==jt)return void(c=St);if(-4==jt)return void(u=St);throw new RangeError(`Unrecognized record size: ${jt}`)}let De,Me,ye=l[St],mt=gt-W;if(Bt-gt<=r&&(Me=function C(W,te){let se=a.fork(),ze=0,ct=0,ft=0,St=se.end-r,gt={size:0,start:0,skip:0};e:for(let Bt=se.pos-W;se.pos>Bt;){let jt=se.size;if(se.id==te&&jt>=0){gt.size=ze,gt.start=ct,gt.skip=ft,ft+=4,ze+=4,se.next();continue}let Ii=se.pos-jt;if(jt<0||Ii=s?4:0,De=se.start;for(se.next();se.pos>Ii;){if(se.size<0){if(-3!=se.size)break e;ye+=4}else se.id>=s&&(ye+=4);se.next()}ct=De,ze+=jt,ft+=ye}return(te<0||ze==W)&&(gt.size=ze,gt.start=ct,gt.skip=ft),gt.size>4?gt:void 0}(a.pos-te,ct))){let Rt=new Uint16Array(Me.size-Me.skip),on=a.pos-Me.size,Ki=Rt.length;for(;a.pos>on;)Ki=S(Me.start,Rt,Ki);De=new xu(Rt,Bt-Me.start,n),mt=Me.start-W}else{let Rt=a.pos-jt;a.next();let on=[],Ki=[],oo=St>=s?St:-1,di=0,Cf=Bt;for(;a.pos>Rt;)oo>=0&&a.id==oo&&a.size>=0?(a.end<=Cf-r&&(b(on,Ki,gt,di,a.end,Cf,oo,Ii),di=on.length,Cf=a.end),a.next()):ft>2500?p(gt,Rt,on,Ki):f(gt,Rt,on,Ki,oo,ft+1);if(oo>=0&&di>0&&di-1&&di>0){let zk=function g(W){return(te,se,ze)=>{let St,gt,ct=0,ft=te.length-1;if(ft>=0&&(St=te[ft])instanceof rn){if(!ft&&St.type==W&&St.length==ze)return St;(gt=St.prop(kt.lookAhead))&&(ct=se[ft]+St.length+gt)}return v(W,te,se,ze,ct)}}(ye);De=xP(ye,on,Ki,0,on.length,0,Bt-gt,zk,zk)}else De=v(ye,on,Ki,Bt-gt,Ii-Bt)}se.push(De),ze.push(mt)}function p(W,te,se,ze){let ct=[],ft=0,St=-1;for(;a.pos>te;){let{id:gt,start:Bt,end:jt,size:Ii}=a;if(Ii>4)a.next();else{if(St>-1&&Bt=0;jt-=3)gt[Ii++]=ct[jt],gt[Ii++]=ct[jt+1]-Bt,gt[Ii++]=ct[jt+2]-Bt,gt[Ii++]=Ii;se.push(new xu(gt,ct[2]-Bt,n)),ze.push(Bt-W)}}function b(W,te,se,ze,ct,ft,St,gt){let Bt=[],jt=[];for(;W.length>ze;)Bt.push(W.pop()),jt.push(te.pop()+se-ct);W.push(v(n.types[St],Bt,jt,ft-ct,gt-ft)),te.push(ct-se)}function v(W,te,se,ze,ct=0,ft){if(c){let St=[kt.contextHash,c];ft=ft?[St].concat(ft):[St]}if(ct>25){let St=[kt.lookAhead,ct];ft=ft?[St].concat(ft):[St]}return new rn(W,te,se,ze,ft)}function S(W,te,se){let{id:ze,start:ct,end:ft,size:St}=a;if(a.next(),St>=0&&ze4){let Bt=a.pos-(St-4);for(;a.pos>Bt;)se=S(W,te,se)}te[--se]=gt,te[--se]=ft-W,te[--se]=ct-W,te[--se]=ze}else-3==St?c=ze:-4==St&&(u=ze);return se}let M=[],L=[];for(;a.pos>0;)f(i.start||0,i.bufferStart||0,M,L,-1,0);let H=null!==(t=i.length)&&void 0!==t?t:M.length?L[0]+M[0].length:0;return new rn(l[i.topID],M.reverse(),L.reverse(),H)}(t)}}rn.empty=new rn(Mo.none,[],[],0);class vP{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new vP(this.buffer,this.index)}}class xu{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return Mo.none}toString(){let t=[];for(let e=0;e0));l=s[l+3]);return a}slice(t,e,n){let r=this.buffer,o=new Uint16Array(e-t),s=0;for(let a=t,l=0;a=t&&et;case 1:return e<=t&&n>t;case 2:return n>t;case 4:return!0}}function yy(i,t,e,n){for(var r;i.from==i.to||(e<1?i.from>=t:i.from>t)||(e>-1?i.to<=t:i.to0?a.length:-1;t!=c;t+=e){let u=a[t],f=l[t]+s.from;if(Xj(r,n,f,f+u.length))if(u instanceof xu){if(o&nn.ExcludeBuffers)continue;let p=u.findChild(0,u.buffer.length,e,n-f,r);if(p>-1)return new Bl(new nbe(s,u,t,f),null,p)}else if(o&nn.IncludeAnonymous||!u.type.isAnonymous||wP(u)){let p;if(!(o&nn.IgnoreMounts)&&(p=vy.get(u))&&!p.overlay)return new io(p.tree,f,t,s);let g=new io(u,f,t,s);return o&nn.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(e<0?u.children.length-1:0,e,n,r)}}if(o&nn.IncludeAnonymous||!s.type.isAnonymous||(t=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let r;if(!(n&nn.IgnoreOverlays)&&(r=vy.get(this._tree))&&r.overlay){let o=t-this.from;for(let{from:s,to:a}of r.overlay)if((e>0?s<=o:s=o:a>o))return new io(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Qj(i,t,e,n){let r=i.cursor(),o=[];if(!r.firstChild())return o;if(null!=e)for(let s=!1;!s;)if(s=r.type.is(e),!r.nextSibling())return o;for(;;){if(null!=n&&r.type.is(n))return o;if(r.type.is(t)&&o.push(r.node),!r.nextSibling())return null==n?o:[]}}function yP(i,t,e=t.length-1){for(let n=i.parent;e>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[e]&&t[e]!=n.name)return!1;e--}}return!0}class nbe{constructor(t,e,n,r){this.parent=t,this.buffer=e,this.index=n,this.start=r}}class Bl extends Zj{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,n);return o<0?null:new Bl(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&nn.ExcludeBuffers)return null;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return o<0?null:new Bl(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Bl(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Bl(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,r=this.index+4,o=n.buffer[this.index+3];return o>r&&(t.push(n.slice(r,o,n.buffer[this.index+1])),e.push(0)),new rn(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function e$(i){if(!i.length)return null;let t=0,e=i[0];for(let o=1;oe.from||s.to0){if(this.index-1)for(let o=e+t,s=t<0?-1:n._tree.children.length;o!=s;o+=t){let a=n._tree.children[o];if(this.mode&nn.IncludeAnonymous||a instanceof xu||!a.type.isAnonymous||wP(a))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,n=o+1;break e}r=this.stack[--o]}for(let r=n;r=0;o--){if(o<0)return yP(this.node,t,r);let s=n[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(t[r]&&t[r]!=s.name)return!1;r--}}return!0}}function wP(i){return i.children.some(t=>t instanceof xu||!t.type.isAnonymous||wP(t))}const t$=new WeakMap;function D1(i,t){if(!i.isAnonymous||t instanceof xu||t.type!=i)return 1;let e=t$.get(t);if(null==e){e=1;for(let n of t.children){if(n.type!=i||!(n instanceof rn)){e=1;break}e+=D1(i,n)}t$.set(t,e)}return e}function xP(i,t,e,n,r,o,s,a,l){let c=0;for(let b=n;b=u)break;te+=se}if(L==H+1){if(te>u){let se=b[H];g(se.children,se.positions,0,se.children.length,v[H]+M);continue}f.push(b[H])}else f.push(xP(i,b,v,H,L,W,v[L-1]+b[L-1].length-W,null,l));p.push(W+M-o)}}(t,e,n,r,0),(a||l)(f,p,s)}class Zc{constructor(t,e,n,r,o=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=r,this.open=(o?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let r=[new Zc(0,t.length,t,0,!1,n)];for(let o of e)o.to>t.length&&r.push(o);return r}static applyChanges(t,e,n=128){if(!e.length)return t;let r=[],o=1,s=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a=n)for(;s&&s.from=p.from||f<=p.to||c){let g=Math.max(p.from,l)-c,b=Math.min(p.to,f)-c;p=g>=b?null:new Zc(g,b,p.tree,p.offset+c,a>0,!!u)}if(p&&r.push(p),s.to>f)break;s=onew la(r.from,r.to)):[new la(0,0)]:[new la(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let r=this.startParse(t,e,n);for(;;){let o=r.advance();if(o)return o}}}class abe{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new kt({perNode:!0});let mbe=0;class Vl{constructor(t,e,n){this.set=t,this.base=e,this.modified=n,this.id=mbe++}static define(t){if(t?.base)throw new Error("Can not derive from a modified tag");let e=new Vl([],null,[]);if(e.set.push(e),t)for(let n of t.set)e.set.push(n);return e}static defineModifier(){let t=new k1;return e=>e.modified.indexOf(t)>-1?e:k1.get(e.base||e,e.modified.concat(t).sort((n,r)=>n.id-r.id))}}let pbe=0;class k1{constructor(){this.instances=[],this.id=pbe++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(a=>a.base==t&&function gbe(i,t){return i.length==t.length&&i.every((e,n)=>e==t[n])}(e,a.modified));if(n)return n;let r=[],o=new Vl(r,t,e);for(let a of e)a.instances.push(o);let s=function _be(i){let t=[[]];for(let e=0;en.length-e.length)}(e);for(let a of t.set)if(!a.modified.length)for(let l of s)r.push(k1.get(a,l));return o}}function c$(i){let t=Object.create(null);for(let e in i){let n=i[e];Array.isArray(n)||(n=[n]);for(let r of e.split(" "))if(r){let o=[],s=2,a=r;for(let f=0;;){if("..."==a&&f>0&&f+3==r.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!p)throw new RangeError("Invalid path: "+r);if(o.push("*"==p[0]?"":'"'==p[0][0]?JSON.parse(p[0]):p[0]),f+=p[0].length,f==r.length)break;let g=r[f++];if(f==r.length&&"!"==g){s=0;break}if("/"!=g)throw new RangeError("Invalid path: "+r);a=r.slice(f)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+r);let u=new E1(n,s,l>0?o.slice(0,l):null);t[c]=u.sort(t[c])}}return d$.add(t)}const d$=new kt;class E1{constructor(t,e,n,r){this.tags=t,this.mode=e,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth{let s=r;for(let a of o)for(let l of a.set){let c=e[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:n}}function h$(i,t,e,n=0,r=i.length){let o=new vbe(n,Array.isArray(t)?t:[t],e);o.highlightRange(i.cursor(),n,r,"",o.highlighters),o.flush(r)}E1.empty=new E1([],2,null);class vbe{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,r,o){let{type:s,from:a,to:l}=t;if(a>=n||l<=e)return;s.isTop&&(o=this.highlighters.filter(g=>!g.scope||g.scope(s)));let c=r,u=function ybe(i){let t=i.type.prop(d$);for(;t&&t.context&&!i.matchContext(t.context);)t=t.next;return t||null}(t)||E1.empty,f=function bbe(i,t){let e=null;for(let n of i){let r=n.style(t);r&&(e=e?e+" "+r:r)}return e}(o,u.tags);if(f&&(c&&(c+=" "),c+=f,1==u.mode&&(r+=(r?" ":"")+f)),this.startSpan(Math.max(e,a),c),u.opaque)return;let p=t.tree&&t.tree.prop(kt.mounted);if(p&&p.overlay){let g=t.node.enter(p.overlay[0].from+a,1),b=this.highlighters.filter(C=>!C.scope||C.scope(p.tree.type)),v=t.firstChild();for(let C=0,S=a;;C++){let M=C=L)&&t.nextSibling()););if(!M||L>n)break;S=M.to+a,S>e&&(this.highlightRange(g.cursor(),Math.max(e,M.from+a),Math.min(n,S),"",b),this.startSpan(Math.min(n,S),c))}v&&t.parent()}else if(t.firstChild()){p&&(r="");do{if(!(t.to<=e)){if(t.from>=n)break;this.highlightRange(t,e,n,r,o),this.startSpan(Math.min(n,t.to),c)}}while(t.nextSibling());t.parent()}}}const ve=Vl.define,S1=ve(),Cu=ve(),f$=ve(Cu),m$=ve(Cu),Du=ve(),M1=ve(Du),DP=ve(Du),Hl=ve(),ff=ve(Hl),zl=ve(),Ul=ve(),kP=ve(),wy=ve(kP),A1=ve(),me={comment:S1,lineComment:ve(S1),blockComment:ve(S1),docComment:ve(S1),name:Cu,variableName:ve(Cu),typeName:f$,tagName:ve(f$),propertyName:m$,attributeName:ve(m$),className:ve(Cu),labelName:ve(Cu),namespace:ve(Cu),macroName:ve(Cu),literal:Du,string:M1,docString:ve(M1),character:ve(M1),attributeValue:ve(M1),number:DP,integer:ve(DP),float:ve(DP),bool:ve(Du),regexp:ve(Du),escape:ve(Du),color:ve(Du),url:ve(Du),keyword:zl,self:ve(zl),null:ve(zl),atom:ve(zl),unit:ve(zl),modifier:ve(zl),operatorKeyword:ve(zl),controlKeyword:ve(zl),definitionKeyword:ve(zl),moduleKeyword:ve(zl),operator:Ul,derefOperator:ve(Ul),arithmeticOperator:ve(Ul),logicOperator:ve(Ul),bitwiseOperator:ve(Ul),compareOperator:ve(Ul),updateOperator:ve(Ul),definitionOperator:ve(Ul),typeOperator:ve(Ul),controlOperator:ve(Ul),punctuation:kP,separator:ve(kP),bracket:wy,angleBracket:ve(wy),squareBracket:ve(wy),paren:ve(wy),brace:ve(wy),content:Hl,heading:ff,heading1:ve(ff),heading2:ve(ff),heading3:ve(ff),heading4:ve(ff),heading5:ve(ff),heading6:ve(ff),contentSeparator:ve(Hl),list:ve(Hl),quote:ve(Hl),emphasis:ve(Hl),strong:ve(Hl),link:ve(Hl),monospace:ve(Hl),strikethrough:ve(Hl),inserted:ve(),deleted:ve(),changed:ve(),invalid:ve(),meta:A1,documentMeta:ve(A1),annotation:ve(A1),processingInstruction:ve(A1),definition:Vl.defineModifier(),constant:Vl.defineModifier(),function:Vl.defineModifier(),standard:Vl.defineModifier(),local:Vl.defineModifier(),special:Vl.defineModifier()};var EP;u$([{tag:me.link,class:"tok-link"},{tag:me.heading,class:"tok-heading"},{tag:me.emphasis,class:"tok-emphasis"},{tag:me.strong,class:"tok-strong"},{tag:me.keyword,class:"tok-keyword"},{tag:me.atom,class:"tok-atom"},{tag:me.bool,class:"tok-bool"},{tag:me.url,class:"tok-url"},{tag:me.labelName,class:"tok-labelName"},{tag:me.inserted,class:"tok-inserted"},{tag:me.deleted,class:"tok-deleted"},{tag:me.literal,class:"tok-literal"},{tag:me.string,class:"tok-string"},{tag:me.number,class:"tok-number"},{tag:[me.regexp,me.escape,me.special(me.string)],class:"tok-string2"},{tag:me.variableName,class:"tok-variableName"},{tag:me.local(me.variableName),class:"tok-variableName tok-local"},{tag:me.definition(me.variableName),class:"tok-variableName tok-definition"},{tag:me.special(me.variableName),class:"tok-variableName2"},{tag:me.definition(me.propertyName),class:"tok-propertyName tok-definition"},{tag:me.typeName,class:"tok-typeName"},{tag:me.namespace,class:"tok-namespace"},{tag:me.className,class:"tok-className"},{tag:me.macroName,class:"tok-macroName"},{tag:me.propertyName,class:"tok-propertyName"},{tag:me.operator,class:"tok-operator"},{tag:me.comment,class:"tok-comment"},{tag:me.meta,class:"tok-meta"},{tag:me.invalid,class:"tok-invalid"},{tag:me.punctuation,class:"tok-punctuation"}]);const mf=new kt;const wbe=new kt;let ca=(()=>{class i{constructor(e,n,r=[],o=""){this.data=e,this.name=o,ks.prototype.hasOwnProperty("tree")||Object.defineProperty(ks.prototype,"tree",{get(){return Vn(this)}}),this.parser=n,this.extension=[ku.of(this),ks.languageData.of((s,a,l)=>{let c=g$(s,a,l),u=c.type.prop(mf);if(!u)return[];let f=s.facet(u),p=c.type.prop(wbe);if(p){let g=c.resolve(a-c.from,l);for(let b of p)if(b.test(g,s)){let v=s.facet(b.facet);return"replace"==b.type?v:v.concat(f)}}return f})].concat(r)}isActiveAt(e,n,r=-1){return g$(e,n,r).type.prop(mf)==this.data}findRegions(e){let n=e.facet(ku);if(n?.data==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],o=(s,a)=>{if(s.prop(mf)==this.data)return void r.push({from:a,to:a+s.length});let l=s.prop(kt.mounted);if(l){if(l.tree.prop(mf)==this.data){if(l.overlay)for(let c of l.overlay)r.push({from:c.from+a,to:c.to+a});else r.push({from:a,to:a+s.length});return}if(l.overlay){let c=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>c)return}}for(let c=0;ct.concat(i):void 0})}(t.languageData);return new T1(e,t.parser.configure({props:[mf.add(n=>n.isTop?e:void 0)]}),t.name)}configure(t,e){return new T1(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Vn(i){let t=i.field(ca.state,!1);return t?t.tree:rn.empty}class Cbe{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let xy=null;class ag{constructor(t,e,n=[],r,o,s,a,l){this.parser=t,this.state=e,this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new ag(t,e,[],rn.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Cbe(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=rn.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let r=Date.now()+t;t=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(Zc.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=xy;xy=this;try{return t()}finally{xy=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=_$(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,u,f,p)=>l.push({fromA:c,toA:u,fromB:f,toB:p})),n=Zc.applyChanges(n,l),r=rn.empty,o=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=t.mapPos(c.from,1),f=t.mapPos(c.to,-1);ut.from&&(this.fragments=_$(this.fragments,r,o),this.skipped.splice(n--,1))}return!(this.skipped.length>=e||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends i${createParse(e,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let l=xy;if(l){for(let c of r)l.tempSkipped.push(c);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new rn(Mo.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return xy}}function _$(i,t,e){return Zc.applyChanges(i,[{fromA:t,toA:e,fromB:t,toB:e}])}class lg{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new lg(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=ag.create(t.facet(ku).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new lg(n)}}ca.state=Bn.define({create:lg.init,update(i,t){for(let e of t.effects)if(e.is(ca.setState))return e.value;return t.startState.facet(ku)!=t.state.facet(ku)?lg.init(t.state):i.apply(t)}});let b$=i=>{let t=setTimeout(()=>i(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(b$=i=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(i,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const SP=typeof navigator<"u"&&null!==(EP=navigator.scheduling)&&void 0!==EP&&EP.isInputPending?()=>navigator.scheduling.isInputPending():null,v$=tn.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(ca.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(ca.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=b$(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndr+1e3,l=o.context.work(()=>SP&&SP()||Date.now()>s,r+(a?0:1e5));this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:ca.setState.of(new lg(o.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>aa(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ku=ke.define({combine:i=>i.length?i[0]:null,enables:i=>[ca.state,v$,ht.contentAttributes.compute([i],t=>{let e=t.facet(i);return e&&e.name?{"data-language":e.name}:{}})]});class Dbe{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const w$=ke.define(),MP=ke.define({combine:i=>{if(!i.length)return" ";let t=i[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return t}});function pf(i){let t=i.facet(MP);return 9==t.charCodeAt(0)?i.tabSize*t.length:t.length}function cg(i,t){let e="",n=i.tabSize,r=i.facet(MP)[0];if("\t"==r){for(;t>=n;)e+="\t",t-=n;r=" "}for(let o=0;o=t?function kbe(i,t,e){let n=t.resolveStack(e),r=n.node.enterUnfinishedNodesBefore(e);if(r!=n.node){let o=[];for(let s=r;s!=n.node;s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)n={node:o[s],next:n}}return C$(n,i,e)}(i,e,t):null}class Cy{constructor(t,e={}){this.state=t,this.options=e,this.unit=pf(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return null!=r&&r>=n.from&&r<=n.to?o&&r==t?{text:"",from:t}:(e<0?r-1&&(o+=s-this.countColumn(n,n.search(/\S|$/))),o}countColumn(t,e=t.length){return Qp(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e),o=this.options.overrideIndentation;if(o){let s=o(r);if(s>-1)return s}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const x$=new kt;function C$(i,t,e){for(let n=i;n;n=n.next){let r=Sbe(n.node);if(r)return r(AP.create(t,e,n))}return 0}function Sbe(i){let t=i.type.prop(x$);if(t)return t;let n,e=i.firstChild;if(e&&(n=e.type.prop(kt.closedBy))){let r=i.lastChild,o=r&&n.indexOf(r.name)>-1;return s=>function D$(i,t,e,n,r){let o=i.textAfter,s=o.match(/^\s*/)[0].length,a=n&&o.slice(s,s+n.length)==n||r==i.pos+s,l=t?function Tbe(i){let t=i.node,e=t.childAfter(t.from),n=t.lastChild;if(!e)return null;let r=i.options.simulateBreak,o=i.state.doc.lineAt(e.from),s=null==r||r<=o.from?o.to:Math.min(o.to,r);for(let a=e.to;;){let l=t.childAfter(a);if(!l||l==n)return null;if(!l.type.isSkipped)return l.from{let n=i&&i.test(e.textAfter);return e.baseIndent+(n?0:t*e.unit)}}const Rbe=ke.define(),E$=new kt;function Nbe(i){let t=i.lastChild;return t&&t.to==i.to&&t.type.isError}function Dy(i,t,e){for(let n of i.facet(Rbe)){let r=n(i,t,e);if(r)return r}return function Fbe(i,t,e){let n=Vn(i);if(n.lengthe)continue;if(o&&a.from=t&&c.to>e&&(o=c)}}return o}(i,t,e)}function S$(i,t){let e=t.mapPos(i.from,1),n=t.mapPos(i.to,-1);return e>=n?void 0:{from:e,to:n}}const ky=Ft.define({map:S$}),dg=Ft.define({map:S$});function TP(i){let t=[];for(let{head:e}of i.state.selection.ranges)t.some(n=>n.from<=e&&n.to>=e)||t.push(i.lineBlockAt(e));return t}const Eu=Bn.define({create:()=>Ne.none,update(i,t){i=i.map(t.changes);for(let e of t.effects)if(e.is(ky)&&!Lbe(i,e.value.from,e.value.to)){let{preparePlaceholder:n}=t.state.facet(OP),r=n?Ne.replace({widget:new $be(n(t.state,e.value))}):T$;i=i.update({add:[r.range(e.value.from,e.value.to)]})}else e.is(dg)&&(i=i.update({filter:(n,r)=>e.value.from!=n||e.value.to!=r,filterFrom:e.value.from,filterTo:e.value.to}));if(t.selection){let e=!1,{head:n}=t.selection.main;i.between(n,n,(r,o)=>{rn&&(e=!0)}),e&&(i=i.update({filterFrom:n,filterTo:n,filter:(r,o)=>o<=n||r>=n}))}return i},provide:i=>ht.decorations.from(i),toJSON(i,t){let e=[];return i.between(0,t.doc.length,(n,r)=>{e.push(n,r)}),e},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{(!r||r.from>o)&&(r={from:o,to:s})}),r}function Lbe(i,t,e){let n=!1;return i.between(t,t,(r,o)=>{r==t&&o==e&&(n=!0)}),n}function IP(i,t){return i.field(Eu,!1)?t:t.concat(Ft.appendConfig.of(M$()))}function O1(i,t,e=!0){let n=i.state.doc.lineAt(t.from).number,r=i.state.doc.lineAt(t.to).number;return ht.announce.of(`${i.state.phrase(e?"Folded lines":"Unfolded lines")} ${n} ${i.state.phrase("to")} ${r}.`)}const Wbe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:i=>{for(let t of TP(i)){let e=Dy(i.state,t.from,t.to);if(e)return i.dispatch({effects:IP(i.state,[ky.of(e),O1(i,e)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:i=>{if(!i.state.field(Eu,!1))return!1;let t=[];for(let e of TP(i)){let n=Ey(i.state,e.from,e.to);n&&t.push(dg.of(n),O1(i,n,!1))}return t.length&&i.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:i=>{let{state:t}=i,e=[];for(let n=0;n{let t=i.state.field(Eu,!1);if(!t||!t.size)return!1;let e=[];return t.between(0,i.state.doc.length,(n,r)=>{e.push(dg.of({from:n,to:r}))}),i.dispatch({effects:e}),!0}}],jbe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},OP=ke.define({combine:i=>za(i,jbe)});function M$(i){let t=[Eu,Kbe];return i&&t.push(OP.of(i)),t}function A$(i,t){let{state:e}=i,n=e.facet(OP),r=s=>{let a=i.lineBlockAt(i.posAtDOM(s.target)),l=Ey(i.state,a.from,a.to);l&&i.dispatch({effects:dg.of(l)}),s.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(i,r,t);let o=document.createElement("span");return o.textContent=n.placeholderText,o.setAttribute("aria-label",e.phrase("folded code")),o.title=e.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=r,o}const T$=Ne.replace({widget:new class extends Xc{toDOM(i){return A$(i,null)}}});class $be extends Xc{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return A$(t,this.value)}}const Gbe={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class RP extends Ll{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function qbe(i={}){let t=Object.assign(Object.assign({},Gbe),i),e=new RP(t,!0),n=new RP(t,!1),r=tn.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(ku)!=s.state.facet(ku)||s.startState.field(Eu,!1)!=s.state.field(Eu,!1)||Vn(s.startState)!=Vn(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let a=new qc;for(let l of s.viewportLineBlocks){let c=Ey(s.state,l.from,l.to)?n:Dy(s.state,l.from,l.to)?e:null;c&&a.add(l.from,l.from,c)}return a.finish()}}),{domEventHandlers:o}=t;return[r,zj({class:"cm-foldGutter",markers(s){var a;return(null===(a=s.plugin(r))||void 0===a?void 0:a.markers)||qi.empty},initialSpacer:()=>new RP(t,!1),domEventHandlers:Object.assign(Object.assign({},o),{click:(s,a,l)=>{if(o.click&&o.click(s,a,l))return!0;let c=Ey(s.state,a.from,a.to);if(c)return s.dispatch({effects:dg.of(c)}),!0;let u=Dy(s.state,a.from,a.to);return!!u&&(s.dispatch({effects:ky.of(u)}),!0)}})}),M$()]}const Kbe=ht.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class R1{constructor(t,e){let n;function r(a){let l=pu.newName();return(n||(n=Object.create(null)))["."+l]=a,l}this.specs=t;const o="string"==typeof e.all?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof ca?a=>a.prop(mf)==s.data:s?a=>a==s:void 0,this.style=u$(t.map(a=>({tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))})),{all:o}).style,this.module=n?new pu(n):null,this.themeType=e.themeType}static define(t,e){return new R1(t,e||{})}}const PP=ke.define(),I$=ke.define({combine:i=>i.length?[i[0]]:null});function P1(i){let t=i.facet(PP);return t.length?t:i.facet(I$)}function Jbe(i,t){let n,e=[Xbe];return i instanceof R1&&(i.module&&e.push(ht.styleModule.of(i.module)),n=i.themeType),e.push(t?.fallback?I$.of(i):n?PP.computeN([ht.darkTheme],r=>r.facet(ht.darkTheme)==("dark"==n)?[i]:[]):PP.of(i)),e}class Ybe{constructor(t){this.markCache=Object.create(null),this.tree=Vn(t.state),this.decorations=this.buildDeco(t,P1(t.state))}update(t){let e=Vn(t.state),n=P1(t.state),r=n!=P1(t.startState);e.length{n.add(s,a,this.markCache[l]||(this.markCache[l]=Ne.mark({class:l})))},r,o);return n.finish()}}const Xbe=mu.high(tn.fromClass(Ybe,{decorations:i=>i.decorations})),Zbe=R1.define([{tag:me.meta,color:"#404740"},{tag:me.link,textDecoration:"underline"},{tag:me.heading,textDecoration:"underline",fontWeight:"bold"},{tag:me.emphasis,fontStyle:"italic"},{tag:me.strong,fontWeight:"bold"},{tag:me.strikethrough,textDecoration:"line-through"},{tag:me.keyword,color:"#708"},{tag:[me.atom,me.bool,me.url,me.contentSeparator,me.labelName],color:"#219"},{tag:[me.literal,me.inserted],color:"#164"},{tag:[me.string,me.deleted],color:"#a11"},{tag:[me.regexp,me.escape,me.special(me.string)],color:"#e40"},{tag:me.definition(me.variableName),color:"#00f"},{tag:me.local(me.variableName),color:"#30a"},{tag:[me.typeName,me.namespace],color:"#085"},{tag:me.className,color:"#167"},{tag:[me.special(me.variableName),me.macroName],color:"#256"},{tag:me.definition(me.propertyName),color:"#00c"},{tag:me.comment,color:"#940"},{tag:me.invalid,color:"#f00"}]),Qbe=ht.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),O$=1e4,R$="()[]{}",P$=ke.define({combine:i=>za(i,{afterCursor:!0,brackets:R$,maxScanDistance:O$,renderMatch:ive})}),eve=Ne.mark({class:"cm-matchingBracket"}),tve=Ne.mark({class:"cm-nonmatchingBracket"});function ive(i){let t=[],e=i.matched?eve:tve;return t.push(e.range(i.start.from,i.start.to)),i.end&&t.push(e.range(i.end.from,i.end.to)),t}const nve=[Bn.define({create:()=>Ne.none,update(i,t){if(!t.docChanged&&!t.selection)return i;let e=[],n=t.state.facet(P$);for(let r of t.state.selection.ranges){if(!r.empty)continue;let o=Wl(t.state,r.head,-1,n)||r.head>0&&Wl(t.state,r.head-1,1,n)||n.afterCursor&&(Wl(t.state,r.head,1,n)||r.headht.decorations.from(i)}),Qbe];function rve(i={}){return[P$.of(i),nve]}const ove=new kt;function FP(i,t,e){let n=i.prop(t<0?kt.openedBy:kt.closedBy);if(n)return n;if(1==i.name.length){let r=e.indexOf(i.name);if(r>-1&&r%2==(t<0?1:0))return[e[r+t]]}return null}function NP(i){let t=i.type.prop(ove);return t?t(i.node):i}function Wl(i,t,e,n={}){let r=n.maxScanDistance||O$,o=n.brackets||R$,s=Vn(i),a=s.resolveInner(t,e);for(let l=a;l;l=l.parent){let c=FP(l.type,e,o);if(c&&l.from0?t>=u.from&&tu.from&&t<=u.to))return sve(0,0,e,l,u,c,o)}}return function ave(i,t,e,n,r,o,s){let a=e<0?i.sliceDoc(t-1,t):i.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;let c={from:e<0?t-1:t,to:e>0?t+1:t},u=i.doc.iterRange(t,e>0?i.doc.length:0),f=0;for(let p=0;!u.next().done&&p<=o;){let g=u.value;e<0&&(p+=g.length);let b=t+p*e;for(let v=e>0?0:g.length-1,C=e>0?g.length:-1;v!=C;v+=e){let S=s.indexOf(g[v]);if(!(S<0||n.resolveInner(b+v,1).type!=r))if(S%2==0==e>0)f++;else{if(1==f)return{start:c,end:{from:b+v,to:b+v+1},matched:S>>1==l>>1};f--}}e>0&&(p+=g.length)}return u.done?{start:c,matched:!1}:null}(i,t,e,s,a.type,r,o)}function sve(i,t,e,n,r,o,s){let a=n.parent,l={from:r.from,to:r.to},c=0,u=a?.cursor();if(u&&(e<0?u.childBefore(n.from):u.childAfter(n.to)))do{if(e<0?u.to<=n.from:u.from>=n.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from-1||(z$.push(i),console.warn(t))}function $$(i,t){let e=[];for(let a of t.split(" ")){let l=[];for(let c of a.split(".")){let u=i[c]||me[c];u?"function"==typeof u?l.length?l=l.map(u):VP(c,`Modifier ${c} used at start of tag`):l.length?VP(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:VP(c,`Unknown highlighting tag ${c}`)}for(let c of l)e.push(c)}if(!e.length)return 0;let n=t.replace(/ /g,"_"),r=n+" "+e.map(a=>a.id),o=U$[r];if(o)return o.id;let s=U$[r]=Mo.define({id:Sy.length,name:n,props:[c$({[n]:e})]});return Sy.push(s),s.id}function zP(i,t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=i(t,e);return!!r&&(n(e.update(r)),!0)}}const yve=zP(kve,0),wve=zP(J$,0),xve=zP((i,t)=>J$(i,t,function Dve(i){let t=[];for(let e of i.selection.ranges){let n=i.doc.lineAt(e.from),r=e.to<=n.to?n:i.doc.lineAt(e.to),o=t.length-1;o>=0&&t[o].to>n.from?t[o].to=r.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return t}(t)),0);function UP(i,t){let e=i.languageDataAt("commentTokens",t);return e.length?e[0]:{}}const My=50;function J$(i,t,e=t.selection.ranges){let n=e.map(o=>UP(t,o.from).block);if(!n.every(o=>o))return null;let r=e.map((o,s)=>function Cve(i,{open:t,close:e},n,r){let u,f,o=i.sliceDoc(n-My,n),s=i.sliceDoc(r,r+My),a=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(s)[0].length,c=o.length-a;if(o.slice(c-t.length,c)==t&&s.slice(l,l+e.length)==e)return{open:{pos:n-a,margin:a&&1},close:{pos:r+l,margin:l&&1}};r-n<=2*My?u=f=i.sliceDoc(n,r):(u=i.sliceDoc(n,n+My),f=i.sliceDoc(r-My,r));let p=/^\s*/.exec(u)[0].length,g=/\s*$/.exec(f)[0].length,b=f.length-g-e.length;return u.slice(p,p+t.length)==t&&f.slice(b,b+e.length)==e?{open:{pos:n+p+t.length,margin:/\s/.test(u.charAt(p+t.length))?1:0},close:{pos:r-g-e.length,margin:/\s/.test(f.charAt(b-1))?1:0}}:null}(t,n[s],o.from,o.to));if(2!=i&&!r.every(o=>o))return{changes:t.changes(e.map((o,s)=>r[s]?[]:[{from:o.from,insert:n[s].open+" "},{from:o.to,insert:" "+n[s].close}]))};if(1!=i&&r.some(o=>o)){let o=[];for(let a,s=0;sr&&(o==s||s>f.from)){r=f.from;let p=/^\s*/.exec(f.text)[0].length,g=p==f.length,b=f.text.slice(p,p+c.length)==c?p:-1;po.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:a,token:l,indent:c,empty:u,single:f}of n)(f||!u)&&o.push({from:a.from+c,insert:l+" "});let s=t.changes(o);return{changes:s,selection:t.selection.map(s,1)}}if(1!=i&&n.some(o=>o.comment>=0)){let o=[];for(let{line:s,comment:a,token:l}of n)if(a>=0){let c=s.from+a,u=c+l.length;" "==s.text[u-s.from]&&u++,o.push({from:c,to:u})}return{changes:o}}return null}const WP=Gc.define(),Eve=Gc.define(),Sve=ke.define(),Y$=ke.define({combine:i=>za(i,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,r)=>t(n,r)||e(n,r)})}),jP=Bn.define({create:()=>qP.empty,update(i,t){let e=t.state.facet(Y$),n=t.annotation(WP);if(n){let l=Yo.fromTransaction(t,n.selection),c=n.side,u=0==c?i.undone:i.done;return u=l?N1(u,u.length,e.minDepth,l):Q$(u,t.startState.selection),new qP(0==c?n.rest:u,0==c?u:n.rest)}let r=t.annotation(Eve);if(("full"==r||"before"==r)&&(i=i.isolate()),!1===t.annotation(Pl.addToHistory))return t.changes.empty?i:i.addMapping(t.changes.desc);let o=Yo.fromTransaction(t),s=t.annotation(Pl.time),a=t.annotation(Pl.userEvent);return o?i=i.addChanges(o,s,a,e,t):t.selection&&(i=i.addSelection(t.startState.selection,s,a,e.newGroupDelay)),("full"==r||"after"==r)&&(i=i.isolate()),i},toJSON:i=>({done:i.done.map(t=>t.toJSON()),undone:i.undone.map(t=>t.toJSON())}),fromJSON:i=>new qP(i.done.map(Yo.fromJSON),i.undone.map(Yo.fromJSON))});function Mve(i={}){return[jP,Y$.of(i),ht.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?X$:"historyRedo"==t.inputType?$P:null;return!!n&&(t.preventDefault(),n(e))}})]}function F1(i,t){return function({state:e,dispatch:n}){if(!t&&e.readOnly)return!1;let r=e.field(jP,!1);if(!r)return!1;let o=r.pop(i,e,t);return!!o&&(n(o),!0)}}const X$=F1(0,!1),$P=F1(1,!1),Ave=F1(0,!0),Tve=F1(1,!0);class Yo{constructor(t,e,n,r,o){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(t){return new Yo(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(t){return new Yo(t.changes&&tr.fromJSON(t.changes),[],t.mapped&&Rl.fromJSON(t.mapped),t.startSelection&&Z.fromJSON(t.startSelection),t.selectionsAfter.map(Z.fromJSON))}static fromTransaction(t,e){let n=da;for(let r of t.startState.facet(Sve)){let o=r(t);o.length&&(n=n.concat(o))}return!n.length&&t.changes.empty?null:new Yo(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,da)}static selection(t){return new Yo(void 0,da,void 0,void 0,t)}}function N1(i,t,e,n){let o=i.slice(t+1>e+20?t-e-1:0,t);return o.push(n),o}function Z$(i,t){return i.length?t.length?i.concat(t):i:t}const da=[],Rve=200;function Q$(i,t){if(i.length){let e=i[i.length-1],n=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-Rve));return n.length&&n[n.length-1].eq(t)?i:(n.push(t),N1(i,i.length-1,1e9,e.setSelAfter(n)))}return[Yo.selection([t])]}function Pve(i){let t=i[i.length-1],e=i.slice();return e[i.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function GP(i,t){if(!i.length)return i;let e=i.length,n=da;for(;e;){let r=Fve(i[e-1],t,n);if(r.changes&&!r.changes.empty||r.effects.length){let o=i.slice(0,e);return o[e-1]=r,o}t=r.mapped,e--,n=r.selectionsAfter}return n.length?[Yo.selection(n)]:da}function Fve(i,t,e){let n=Z$(i.selectionsAfter.length?i.selectionsAfter.map(a=>a.map(t)):da,e);if(!i.changes)return Yo.selection(n);let r=i.changes.map(t),o=t.mapDesc(i.changes,!0),s=i.mapped?i.mapped.composeDesc(o):o;return new Yo(r,Ft.mapEffects(i.effects,t),s,i.startSelection.map(o),n)}const Nve=/^(input\.type|delete)($|\.)/;let qP=(()=>{class i{constructor(e,n,r=0,o=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=o}isolate(){return this.prevTime?new i(this.done,this.undone):this}addChanges(e,n,r,o,s){let a=this.done,l=a[a.length-1];return a=l&&l.changes&&!l.changes.empty&&e.changes&&(!r||Nve.test(r))&&(!l.selectionsAfter.length&&n-this.prevTimee.push(r,o)),t.iterChangedRanges((r,o,s,a)=>{for(let l=0;l=c&&s<=u&&(n=!0)}}),n}(l.changes,e.changes))||"input.type.compose"==r)?N1(a,a.length-1,o.minDepth,new Yo(e.changes.compose(l.changes),Z$(e.effects,l.effects),l.mapped,l.startSelection,da)):N1(a,a.length,o.minDepth,e),new i(a,da,n,r)}addSelection(e,n,r,o){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:da;return s.length>0&&n-this.prevTimee.empty!=t.ranges[n].empty).length}(s[s.length-1],e)?this:new i(Q$(this.done,e),this.undone,n,r)}addMapping(e){return new i(GP(this.done,e),GP(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let o=0==e?this.done:this.undone;if(0==o.length)return null;let s=o[o.length-1],a=s.selectionsAfter[0]||n.selection;if(r&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:WP.of({side:e,rest:Pve(o),selection:a}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let l=1==o.length?da:o.slice(0,o.length-1);return s.mapped&&(l=GP(l,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:WP.of({side:e,rest:l,selection:a}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}return i.empty=new i(da,da),i})();const Lve=[{key:"Mod-z",run:X$,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$P,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$P,preventDefault:!0},{key:"Mod-u",run:Ave,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Tve,preventDefault:!0}];function ug(i,t){return Z.create(i.ranges.map(t),i.mainIndex)}function jl(i,t){return i.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function ua({state:i,dispatch:t},e){let n=ug(i.selection,e);return!n.eq(i.selection,!0)&&(t(jl(i,n)),!0)}function Ay(i,t){return Z.cursor(t?i.to:i.from)}function L1(i,t){return ua(i,e=>e.empty?i.moveByChar(e,t):Ay(e,t))}function no(i){return i.textDirectionAt(i.state.selection.main.head)==ki.LTR}const e9=i=>L1(i,!no(i)),t9=i=>L1(i,no(i));function B1(i,t){return ua(i,e=>e.empty?i.moveByGroup(e,t):Ay(e,t))}function Hve(i,t,e){if(t.type.prop(e))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(i.sliceDoc(t.from,t.to)))||t.firstChild}function V1(i,t,e){let s,a,n=Vn(i).resolveInner(t.head),r=e?kt.closedBy:kt.openedBy;for(let l=t.head;;){let c=e?n.childAfter(l):n.childBefore(l);if(!c)break;Hve(i,c,r)?n=c:l=e?c.to:c.from}return a=n.type.prop(r)&&(s=e?Wl(i,n.from,1):Wl(i,n.to,-1))&&s.matched?e?s.end.to:s.end.from:e?n.to:n.from,Z.cursor(a,e?-1:1)}function o9(i,t){return ua(i,e=>{if(!e.empty)return Ay(e,t);let n=i.moveVertically(e,t);return n.head!=e.head?n:i.moveToLineBoundary(e,t)})}typeof Intl<"u"&&Intl;const s9=i=>o9(i,!1),a9=i=>o9(i,!0);function l9(i){let r,t=i.scrollDOM.clientHeights.empty?i.moveVertically(s,t,e.height):Ay(s,t));if(r.eq(n.selection))return!1;if(e.selfScroll){let s=i.coordsAtPos(n.selection.main.head),a=i.scrollDOM.getBoundingClientRect(),l=a.top+e.marginTop;s&&s.top>l&&s.bottomc9(i,!1),KP=i=>c9(i,!0);function Su(i,t,e){let n=i.lineBlockAt(t.head),r=i.moveToLineBoundary(t,e);if(r.head==t.head&&r.head!=(e?n.to:n.from)&&(r=i.moveToLineBoundary(t,e,!1)),!e&&r.head==n.from&&n.length){let o=/^\s*/.exec(i.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;o&&t.head!=n.from+o&&(r=Z.cursor(n.from+o))}return r}function As(i,t){let e=ug(i.state.selection,n=>{let r=t(n);return Z.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return!e.eq(i.state.selection)&&(i.dispatch(jl(i.state,e)),!0)}function H1(i,t){return As(i,e=>i.moveByChar(e,t))}const h9=i=>H1(i,!no(i)),f9=i=>H1(i,no(i));function z1(i,t){return As(i,e=>i.moveByGroup(e,t))}function p9(i,t){return As(i,e=>i.moveVertically(e,t))}const g9=i=>p9(i,!1),_9=i=>p9(i,!0);function b9(i,t){return As(i,e=>i.moveVertically(e,t,l9(i).height))}const v9=i=>b9(i,!1),y9=i=>b9(i,!0),w9=({state:i,dispatch:t})=>(t(jl(i,{anchor:0})),!0),x9=({state:i,dispatch:t})=>(t(jl(i,{anchor:i.doc.length})),!0),C9=({state:i,dispatch:t})=>(t(jl(i,{anchor:i.selection.main.anchor,head:0})),!0),D9=({state:i,dispatch:t})=>(t(jl(i,{anchor:i.selection.main.anchor,head:i.doc.length})),!0);function hg(i,t){if(i.state.readOnly)return!1;let e="delete.selection",{state:n}=i,r=n.changeByRange(o=>{let{from:s,to:a}=o;if(s==a){let l=t(o);ls&&(e="delete.forward",l=U1(i,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=U1(i,s,!1),a=U1(i,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:Z.cursor(s,sr(i)))n.between(t,t,(r,o)=>{rt&&(t=e?o:r)});return t}const k9=(i,t)=>hg(i,e=>{let s,a,n=e.from,{state:r}=i,o=r.doc.lineAt(n);if(!t&&n>o.from&&nk9(i,!1),E9=i=>k9(i,!0),S9=(i,t)=>hg(i,e=>{let n=e.head,{state:r}=i,o=r.doc.lineAt(n),s=r.charCategorizer(n);for(let a=null;;){if(n==(t?o.to:o.from)){n==e.head&&o.number!=(t?r.doc.lines:1)&&(n+=t?1:-1);break}let l=Pr(o.text,n-o.from,t)+o.from,c=o.text.slice(Math.min(n,l)-o.from,Math.max(n,l)-o.from),u=s(c);if(null!=a&&u!=a)break;(" "!=c||n!=e.head)&&(a=u),n=l}return n}),M9=i=>S9(i,!1);function W1(i){let t=[],e=-1;for(let n of i.selection.ranges){let r=i.doc.lineAt(n.from),o=i.doc.lineAt(n.to);if(!n.empty&&n.to==o.from&&(o=i.doc.lineAt(n.to-1)),e>=r.number){let s=t[t.length-1];s.to=o.to,s.ranges.push(n)}else t.push({from:r.from,to:o.to,ranges:[n]});e=o.number+1}return t}function A9(i,t,e){if(i.readOnly)return!1;let n=[],r=[];for(let o of W1(i)){if(e?o.to==i.doc.length:0==o.from)continue;let s=i.doc.lineAt(e?o.to+1:o.from-1),a=s.length+1;if(e){n.push({from:o.to,to:s.to},{from:o.from,insert:s.text+i.lineBreak});for(let l of o.ranges)r.push(Z.range(Math.min(i.doc.length,l.anchor+a),Math.min(i.doc.length,l.head+a)))}else{n.push({from:s.from,to:o.from},{from:o.to,insert:i.lineBreak+s.text});for(let l of o.ranges)r.push(Z.range(l.anchor-a,l.head-a))}}return!!n.length&&(t(i.update({changes:n,scrollIntoView:!0,selection:Z.create(r,i.selection.mainIndex),userEvent:"move.line"})),!0)}function T9(i,t,e){if(i.readOnly)return!1;let n=[];for(let r of W1(i))n.push(e?{from:r.from,insert:i.doc.slice(r.from,r.to)+i.lineBreak}:{from:r.to,insert:i.lineBreak+i.doc.slice(r.from,r.to)});return t(i.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const xye=I9(!1);function I9(i){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{let{from:o,to:s}=r,a=t.doc.lineAt(o),l=!i&&o==s&&function wye(i,t){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(t-1,t+1)))return{from:t,to:t};let o,e=Vn(i).resolveInner(t),n=e.childBefore(t),r=e.childAfter(t);return n&&r&&n.to<=t&&r.from>=t&&(o=n.type.prop(kt.closedBy))&&o.indexOf(r.name)>-1&&i.doc.lineAt(n.to).from==i.doc.lineAt(r.from).from&&!/\S/.test(i.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}(t,o);i&&(o=s=(s<=a.to?a:t.doc.lineAt(s)).to);let c=new Cy(t,{simulateBreak:o,simulateDoubleBreak:!!l}),u=I1(c,o);for(null==u&&(u=Qp(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));sa.from&&o{let r=[];for(let s=n.from;s<=n.to;){let a=i.doc.lineAt(s);a.number>e&&(n.empty||n.to>a.from)&&(t(a,r,n),e=a.number),s=a.to+1}let o=i.changes(r);return{changes:r,range:Z.range(o.mapPos(n.anchor,1),o.mapPos(n.head,1))}})}const Sye=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:i=>ua(i,t=>V1(i.state,t,!no(i))),shift:i=>As(i,t=>V1(i.state,t,!no(i)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:i=>ua(i,t=>V1(i.state,t,no(i))),shift:i=>As(i,t=>V1(i.state,t,no(i)))},{key:"Alt-ArrowUp",run:({state:i,dispatch:t})=>A9(i,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:i,dispatch:t})=>T9(i,t,!1)},{key:"Alt-ArrowDown",run:({state:i,dispatch:t})=>A9(i,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:i,dispatch:t})=>T9(i,t,!0)},{key:"Escape",run:({state:i,dispatch:t})=>{let e=i.selection,n=null;return e.ranges.length>1?n=Z.create([e.main]):e.main.empty||(n=Z.create([Z.cursor(e.main.head)])),!!n&&(t(jl(i,n)),!0)}},{key:"Mod-Enter",run:I9(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:i,dispatch:t})=>{let e=W1(i).map(({from:n,to:r})=>Z.range(n,Math.min(r+1,i.doc.length)));return t(i.update({selection:Z.create(e),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:i,dispatch:t})=>{let e=ug(i.selection,n=>{var r;for(let s=Vn(i).resolveStack(n.from,1);s;s=s.next){let{node:a}=s;if((a.from=n.to||a.to>n.to&&a.from<=n.from)&&null!==(r=a.parent)&&void 0!==r&&r.parent)return Z.range(a.to,a.from)}return n});return t(jl(i,e)),!0},preventDefault:!0},{key:"Mod-[",run:({state:i,dispatch:t})=>!i.readOnly&&(t(i.update(YP(i,(e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let o=Qp(r,i.tabSize),s=0,a=cg(i,Math.max(0,o-pf(i)));for(;s!i.readOnly&&(t(i.update(YP(i,(e,n)=>{n.push({from:e.from,insert:i.facet(MP)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:i,dispatch:t})=>{if(i.readOnly)return!1;let e=Object.create(null),n=new Cy(i,{overrideIndentation:o=>e[o]??-1}),r=YP(i,(o,s,a)=>{let l=I1(n,o.from);if(null==l)return;/\S/.test(o.text)||(l=0);let c=/^\s*/.exec(o.text)[0],u=cg(i,l);(c!=u||a.from{if(i.state.readOnly)return!1;let{state:t}=i,e=t.changes(W1(t).map(({from:r,to:o})=>(r>0?r--:oi.moveVertically(r,!0)).map(e);return i.dispatch({changes:e,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:i,dispatch:t})=>function u9(i,t,e){let n=!1,r=ug(i.selection,o=>{let s=Wl(i,o.head,-1)||Wl(i,o.head,1)||o.head>0&&Wl(i,o.head-1,1)||o.head{let{state:t}=i,e=t.doc.lineAt(t.selection.main.from),n=UP(i.state,e.from);return n.line?yve(i):!!n.block&&xve(i)}},{key:"Alt-A",run:wve}].concat([{key:"ArrowLeft",run:e9,shift:h9,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:i=>B1(i,!no(i)),shift:i=>z1(i,!no(i)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:i=>ua(i,t=>Su(i,t,!no(i))),shift:i=>As(i,t=>Su(i,t,!no(i))),preventDefault:!0},{key:"ArrowRight",run:t9,shift:f9,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:i=>B1(i,no(i)),shift:i=>z1(i,no(i)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:i=>ua(i,t=>Su(i,t,no(i))),shift:i=>As(i,t=>Su(i,t,no(i))),preventDefault:!0},{key:"ArrowUp",run:s9,shift:g9,preventDefault:!0},{mac:"Cmd-ArrowUp",run:w9,shift:C9},{mac:"Ctrl-ArrowUp",run:d9,shift:v9},{key:"ArrowDown",run:a9,shift:_9,preventDefault:!0},{mac:"Cmd-ArrowDown",run:x9,shift:D9},{mac:"Ctrl-ArrowDown",run:KP,shift:y9},{key:"PageUp",run:d9,shift:v9},{key:"PageDown",run:KP,shift:y9},{key:"Home",run:i=>ua(i,t=>Su(i,t,!1)),shift:i=>As(i,t=>Su(i,t,!1)),preventDefault:!0},{key:"Mod-Home",run:w9,shift:C9},{key:"End",run:i=>ua(i,t=>Su(i,t,!0)),shift:i=>As(i,t=>Su(i,t,!0)),preventDefault:!0},{key:"Mod-End",run:x9,shift:D9},{key:"Enter",run:xye},{key:"Mod-a",run:({state:i,dispatch:t})=>(t(i.update({selection:{anchor:0,head:i.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:JP,shift:JP},{key:"Delete",run:E9},{key:"Mod-Backspace",mac:"Alt-Backspace",run:M9},{key:"Mod-Delete",mac:"Alt-Delete",run:i=>S9(i,!0)},{mac:"Mod-Backspace",run:i=>hg(i,t=>{let e=i.moveToLineBoundary(t,!1).head;return t.head>e?e:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:i=>hg(i,t=>{let e=i.moveToLineBoundary(t,!0).head;return t.headua(i,t=>Z.cursor(i.lineBlockAt(t.head).from,1)),shift:i=>As(i,t=>Z.cursor(i.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:i=>ua(i,t=>Z.cursor(i.lineBlockAt(t.head).to,-1)),shift:i=>As(i,t=>Z.cursor(i.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:E9},{key:"Ctrl-h",run:JP},{key:"Ctrl-k",run:i=>hg(i,t=>{let e=i.lineBlockAt(t.head).to;return t.head{if(i.readOnly)return!1;let e=i.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:ri.of(["",""])},range:Z.cursor(n.from)}));return t(i.update(e,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:i,dispatch:t})=>{if(i.readOnly)return!1;let e=i.changeByRange(n=>{if(!n.empty||0==n.from||n.from==i.doc.length)return{range:n};let r=n.from,o=i.doc.lineAt(r),s=r==o.from?r-1:Pr(o.text,r-o.from,!1)+o.from,a=r==o.to?r+1:Pr(o.text,r-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:i.doc.slice(r,a).append(i.doc.slice(s,r))},range:Z.cursor(a)}});return!e.changes.empty&&(t(i.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:KP}].map(i=>({mac:i.key,run:i.run,shift:i.shift}))));function Ti(){var i=arguments[0];"string"==typeof i&&(i=document.createElement(i));var t=1,e=arguments[1];if(e&&"object"==typeof e&&null==e.nodeType&&!Array.isArray(e)){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];"string"==typeof r?i.setAttribute(n,r):null!=r&&(i[n]=r)}t++}for(;ti.normalize("NFKD"):i=>i;class fg{constructor(t,e,n=0,r=t.length,o,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(n,r),this.bufferStart=n,this.normalize=o?a=>o(P9(a)):P9,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Fr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=gR(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=sa(t);let r=this.normalize(e);for(let o=0,s=n;;o++){let a=r.charCodeAt(o),l=this.match(a,s);if(o==r.length-1){if(l)return this.value=l,this;break}s==n&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let n=this.curLineStart+e.index,r=n+e[0].length;if(this.matchPos=j1(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,e)))return this.value={from:n,to:r,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=e){let a=new mg(e,t.sliceString(e,n));return QP.set(t,a),a}if(r.from==e&&r.to==n)return r;let{text:o,from:s}=r;return s>e&&(o=t.sliceString(e,s)+o,s=e),r.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let n=this.flat.from+e.index,r=n+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,e)))return this.value={from:n,to:r,match:e},this.matchPos=j1(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=mg.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function j1(i,t){if(t>=i.length)return t;let n,e=i.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function e2(i){let e=Ti("input",{class:"cm-textfield",name:"line",value:String(i.state.doc.lineAt(i.state.selection.main.head).number)});function r(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!o)return;let{state:s}=i,a=s.doc.lineAt(s.selection.main.head),[,l,c,u,f]=o,p=u?+u.slice(1):0,g=c?+c:a.number;if(c&&f){let C=g/100;l&&(C=C*("-"==l?-1:1)+a.number/s.doc.lines),g=Math.round(s.doc.lines*C)}else c&&l&&(g=g*("-"==l?-1:1)+a.number);let b=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),v=Z.cursor(b.from+Math.max(0,Math.min(p,b.length)));i.dispatch({effects:[$1.of(!1),ht.scrollIntoView(v.from,{y:"center"})],selection:v}),i.focus()}return{dom:Ti("form",{class:"cm-gotoLine",onkeydown:o=>{27==o.keyCode?(o.preventDefault(),i.dispatch({effects:$1.of(!1)}),i.focus()):13==o.keyCode&&(o.preventDefault(),r())},onsubmit:o=>{o.preventDefault(),r()}},Ti("label",i.state.phrase("Go to line"),": ",e)," ",Ti("button",{class:"cm-button",type:"submit"},i.state.phrase("go")))}}typeof Symbol<"u"&&(N9.prototype[Symbol.iterator]=L9.prototype[Symbol.iterator]=function(){return this});const $1=Ft.define(),B9=Bn.define({create:()=>!0,update(i,t){for(let e of t.effects)e.is($1)&&(i=e.value);return i},provide:i=>_y.from(i,t=>t?e2:null)}),Tye=ht.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Iye={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},V9=ke.define({combine:i=>za(i,Iye,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})});function Oye(i){let t=[Lye,Nye];return i&&t.push(V9.of(i)),t}const Rye=Ne.mark({class:"cm-selectionMatch"}),Pye=Ne.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function H9(i,t,e,n){return!(0!=e&&i(t.sliceDoc(e-1,e))==Gi.Word||n!=t.doc.length&&i(t.sliceDoc(n,n+1))==Gi.Word)}const Nye=tn.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.selectionSet||i.docChanged||i.viewportChanged)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let t=i.state.facet(V9),{state:e}=i,n=e.selection;if(n.ranges.length>1)return Ne.none;let o,r=n.main,s=null;if(r.empty){if(!t.highlightWordAroundCursor)return Ne.none;let l=e.wordAt(r.head);if(!l)return Ne.none;s=e.charCategorizer(r.head),o=e.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l200)return Ne.none;if(t.wholeWords){if(o=e.sliceDoc(r.from,r.to),s=e.charCategorizer(r.head),!H9(s,e,r.from,r.to)||!function Fye(i,t,e,n){return i(t.sliceDoc(e,e+1))==Gi.Word&&i(t.sliceDoc(n-1,n))==Gi.Word}(s,e,r.from,r.to))return Ne.none}else if(o=e.sliceDoc(r.from,r.to).trim(),!o)return Ne.none}let a=[];for(let l of i.visibleRanges){let c=new fg(e.doc,o,l.from,l.to);for(;!c.next().done;){let{from:u,to:f}=c.value;if((!s||H9(s,e,u,f))&&(r.empty&&u<=r.from&&f>=r.to?a.push(Pye.range(u,f)):(u>=r.to||f<=r.from)&&a.push(Rye.range(u,f)),a.length>t.maxMatches))return Ne.none}}return Ne.set(a)}},{decorations:i=>i.decorations}),Lye=ht.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),gf=ke.define({combine:i=>za(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new Zye(t),scrollToMatch:t=>ht.scrollIntoView(t)})});class z9{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function Mye(i){try{return new RegExp(i,ZP),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(e,n)=>"n"==n?"\n":"r"==n?"\r":"t"==n?"\t":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new jye(this):new Uye(this)}getCursor(t,e=0,n){let r=t.doc?t:ks.create({doc:t});return null==n&&(n=r.doc.length),this.regexp?gg(this,r,e,n):pg(this,r,e,n)}}class U9{constructor(t){this.spec=t}}function pg(i,t,e,n){return new fg(t.doc,i.unquoted,e,n,i.caseSensitive?void 0:r=>r.toLowerCase(),i.wholeWord?function zye(i,t){return(e,n,r,o)=>((o>e||o+r.length=e)return null;r.push(n.value)}return r}highlight(t,e,n,r){let o=pg(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,t.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function gg(i,t,e,n){return new N9(t.doc,i.search,{ignoreCase:!i.caseSensitive,test:i.wholeWord?Wye(t.charCategorizer(t.selection.main.head)):void 0},e,n)}function G1(i,t){return i.slice(Pr(i,t,!1),t)}function q1(i,t){return i.slice(t,Pr(i,t))}function Wye(i){return(t,e,n)=>!n[0].length||(i(G1(n.input,n.index))!=Gi.Word||i(q1(n.input,n.index))!=Gi.Word)&&(i(q1(n.input,n.index+n[0].length))!=Gi.Word||i(G1(n.input,n.index+n[0].length))!=Gi.Word)}class jye extends U9{nextMatch(t,e,n){let r=gg(this.spec,t,n,t.doc.length).next();return r.done&&(r=gg(this.spec,t,0,e).next()),r.done?null:r.value}prevMatchInRange(t,e,n){for(let r=1;;r++){let o=Math.max(e,n-1e4*r),s=gg(this.spec,t,o,n),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==e||a.from>o+10))return a;if(o==e)return null}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(e,n)=>"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;r.push(n.value)}return r}highlight(t,e,n,r){let o=gg(this.spec,t,Math.max(0,e-250),Math.min(n+250,t.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const Ty=Ft.define(),t2=Ft.define(),$l=Bn.define({create:i=>new n2(Y1(i).create(),null),update(i,t){for(let e of t.effects)e.is(Ty)?i=new n2(e.value.create(),i.panel):e.is(t2)&&(i=new n2(i.query,e.value?r2:null));return i},provide:i=>_y.from(i,t=>t.panel)});class n2{constructor(t,e){this.query=t,this.panel=e}}const $ye=Ne.mark({class:"cm-searchMatch"}),Gye=Ne.mark({class:"cm-searchMatch cm-searchMatch-selected"}),qye=tn.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field($l))}update(i){let t=i.state.field($l);(t!=i.startState.field($l)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:i,panel:t}){if(!t||!i.spec.valid)return Ne.none;let{view:e}=this,n=new qc;for(let r=0,o=e.visibleRanges,s=o.length;ro[r+1].from-500;)l=o[++r].to;i.highlight(e.state,a,l,(c,u)=>{let f=e.state.selection.ranges.some(p=>p.from==c&&p.to==u);n.add(c,u,f?Gye:$ye)})}return n.finish()}},{decorations:i=>i.decorations});function Iy(i){return t=>{let e=t.state.field($l,!1);return e&&e.query.spec.valid?i(t,e):G9(t)}}const K1=Iy((i,{query:t})=>{let{to:e}=i.state.selection.main,n=t.nextMatch(i.state,e,e);if(!n)return!1;let r=Z.single(n.from,n.to),o=i.state.facet(gf);return i.dispatch({selection:r,effects:[o2(i,n),o.scrollToMatch(r.main,i)],userEvent:"select.search"}),$9(i),!0}),J1=Iy((i,{query:t})=>{let{state:e}=i,{from:n}=e.selection.main,r=t.prevMatch(e,n,n);if(!r)return!1;let o=Z.single(r.from,r.to),s=i.state.facet(gf);return i.dispatch({selection:o,effects:[o2(i,r),s.scrollToMatch(o.main,i)],userEvent:"select.search"}),$9(i),!0}),Kye=Iy((i,{query:t})=>{let e=t.matchAll(i.state,1e3);return!(!e||!e.length||(i.dispatch({selection:Z.create(e.map(n=>Z.range(n.from,n.to))),userEvent:"select.search.matches"}),0))}),W9=Iy((i,{query:t})=>{let{state:e}=i,{from:n,to:r}=e.selection.main;if(e.readOnly)return!1;let o=t.nextMatch(e,n,n);if(!o)return!1;let a,l,s=[],c=[];if(o.from==n&&o.to==r&&(l=e.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(e,o.from,o.to),c.push(ht.announce.of(e.phrase("replaced match on line $",e.doc.lineAt(n).number)+"."))),o){let u=0==s.length||s[0].from>=o.to?0:o.to-o.from-l.length;a=Z.single(o.from-u,o.to-u),c.push(o2(i,o)),c.push(e.facet(gf).scrollToMatch(a.main,i))}return i.dispatch({changes:s,selection:a,effects:c,userEvent:"input.replace"}),!0}),Yye=Iy((i,{query:t})=>{if(i.state.readOnly)return!1;let e=t.matchAll(i.state,1e9).map(r=>{let{from:o,to:s}=r;return{from:o,to:s,insert:t.getReplacement(r)}});if(!e.length)return!1;let n=i.state.phrase("replaced $ matches",e.length)+".";return i.dispatch({changes:e,effects:ht.announce.of(n),userEvent:"input.replace.all"}),!0});function r2(i){return i.state.facet(gf).createPanel(i)}function Y1(i,t){var e,n,r,o,s;let a=i.selection.main,l=a.empty||a.to>a.from+100?"":i.sliceDoc(a.from,a.to);if(t&&!l)return t;let c=i.facet(gf);return new z9({search:(null!==(e=t?.literal)&&void 0!==e?e:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(n=t?.caseSensitive)&&void 0!==n?n:c.caseSensitive,literal:null!==(r=t?.literal)&&void 0!==r?r:c.literal,regexp:null!==(o=t?.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(s=t?.wholeWord)&&void 0!==s?s:c.wholeWord})}function j9(i){let t=gy(i,r2);return t&&t.dom.querySelector("[main-field]")}function $9(i){let t=j9(i);t&&t==i.root.activeElement&&t.select()}const G9=i=>{let t=i.state.field($l,!1);if(t&&t.panel){let e=j9(i);if(e&&e!=i.root.activeElement){let n=Y1(i.state,t.query.spec);n.valid&&i.dispatch({effects:Ty.of(n)}),e.focus(),e.select()}}else i.dispatch({effects:[t2.of(!0),t?Ty.of(Y1(i.state,t.query.spec)):Ft.appendConfig.of(s2)]});return!0},q9=i=>{let t=i.state.field($l,!1);if(!t||!t.panel)return!1;let e=gy(i,r2);return e&&e.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:t2.of(!1)}),!0},Xye=[{key:"Mod-f",run:G9,scope:"editor search-panel"},{key:"F3",run:K1,shift:J1,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:K1,shift:J1,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:q9,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:i,dispatch:t})=>{let e=i.selection;if(e.ranges.length>1||e.main.empty)return!1;let{from:n,to:r}=e.main,o=[],s=0;for(let a=new fg(i.doc,i.sliceDoc(n,r));!a.next().done;){if(o.length>1e3)return!1;a.value.from==n&&(s=o.length),o.push(Z.range(a.value.from,a.value.to))}return t(i.update({selection:Z.create(o,s),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:i=>{let t=gy(i,e2);if(!t){let e=[$1.of(!0)];null==i.state.field(B9,!1)&&e.push(Ft.appendConfig.of([B9,Tye])),i.dispatch({effects:e}),t=gy(i,e2)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:i,dispatch:t})=>{let{ranges:e}=i.selection;if(e.some(o=>o.from===o.to))return(({state:i,dispatch:t})=>{let{selection:e}=i,n=Z.create(e.ranges.map(r=>i.wordAt(r.head)||Z.cursor(r.head)),e.mainIndex);return!n.eq(e)&&(t(i.update({selection:n})),!0)})({state:i,dispatch:t});let n=i.sliceDoc(e[0].from,e[0].to);if(i.selection.ranges.some(o=>i.sliceDoc(o.from,o.to)!=n))return!1;let r=function Vye(i,t){let{main:e,ranges:n}=i.selection,r=i.wordAt(e.head),o=r&&r.from==e.from&&r.to==e.to;for(let s=!1,a=new fg(i.doc,t,n[n.length-1].to);;){if(a.next(),!a.done){if(s&&n.some(l=>l.from==a.value.from))continue;if(o){let l=i.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}if(s)return null;a=new fg(i.doc,t,0,Math.max(0,n[n.length-1].from-1)),s=!0}}(i,n);return!!r&&(t(i.update({selection:i.selection.addRange(Z.range(r.from,r.to),!1),effects:ht.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class Zye{constructor(t){this.view=t;let e=this.query=t.state.field($l).query.spec;function n(r,o,s){return Ti("button",{class:"cm-button",name:r,onclick:o,type:"button"},s)}this.commit=this.commit.bind(this),this.searchField=Ti("input",{value:e.search,placeholder:Ts(t,"Find"),"aria-label":Ts(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ti("input",{value:e.replace,placeholder:Ts(t,"Replace"),"aria-label":Ts(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ti("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=Ti("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=Ti("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=Ti("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>K1(t),[Ts(t,"next")]),n("prev",()=>J1(t),[Ts(t,"previous")]),n("select",()=>Kye(t),[Ts(t,"all")]),Ti("label",null,[this.caseField,Ts(t,"match case")]),Ti("label",null,[this.reField,Ts(t,"regexp")]),Ti("label",null,[this.wordField,Ts(t,"by word")]),...t.state.readOnly?[]:[Ti("br"),this.replaceField,n("replace",()=>W9(t),[Ts(t,"replace")]),n("replaceAll",()=>Yye(t),[Ts(t,"replace all")])],Ti("button",{name:"close",onclick:()=>q9(t),"aria-label":Ts(t,"close"),type:"button"},["\xd7"])])}commit(){let t=new z9({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:Ty.of(t)}))}keydown(t){!function Qge(i,t,e){return Dj(Cj(i.state),t,i,e)}(this.view,t,"search-panel")?13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?J1:K1)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),W9(this.view)):t.preventDefault()}update(t){for(let e of t.transactions)for(let n of e.effects)n.is(Ty)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(gf).top}}function Ts(i,t){return i.state.phrase(t)}const X1=30,Z1=/[\s\.,:;?!]/;function o2(i,{from:t,to:e}){let n=i.state.doc.lineAt(t),r=i.state.doc.lineAt(e).to,o=Math.max(n.from,t-X1),s=Math.min(r,e+X1),a=i.state.sliceDoc(o,s);if(o!=n.from)for(let l=0;la.length-X1;l--)if(!Z1.test(a[l-1])&&Z1.test(a[l])){a=a.slice(0,l);break}return ht.announce.of(`${i.state.phrase("current match")}. ${a} ${i.state.phrase("on line")} ${n.number}.`)}const Qye=ht.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),s2=[$l,mu.low(qye),Qye];class K9{constructor(t,e,n){this.state=t,this.pos=e,this.explicit=n,this.abortListeners=[]}tokenBefore(t){let e=Vn(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),r=e.text.slice(n-e.from,this.pos-e.from),o=r.search(X9(t,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function J9(i){let t=Object.keys(i).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class Y9{constructor(t,e,n,r){this.completion=t,this.source=e,this.match=n,this.score=r}}function Mu(i){return i.selection.main.from}function X9(i,t){var e;let{source:n}=i,r=t&&"^"!=n[0],o="$"!=n[n.length-1];return r||o?new RegExp(`${r?"^":""}(?:${n})${o?"$":""}`,null!==(e=i.flags)&&void 0!==e?e:i.ignoreCase?"i":""):i}const Z9=Gc.define(),Q9=new WeakMap;function n0e(i){if(!Array.isArray(i))return i;let t=Q9.get(i);return t||Q9.set(i,t=function t0e(i){let t=i.map(r=>"string"==typeof r?{label:r}:r),[e,n]=t.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:function e0e(i){let t=Object.create(null),e=Object.create(null);for(let{label:r}of i){t[r[0]]=!0;for(let o=1;o{let o=r.matchBefore(n);return o||r.explicit?{from:o?o.from:r.pos,options:t,validFor:e}:null}}(i)),t}const Q1=Ft.define(),Oy=Ft.define();class r0e{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&W<=57||W>=97&&W<=122?2:W>=65&&W<=90?1:0:(te=gR(W))!=te.toLowerCase()?1:te!=te.toUpperCase()?2:0;(!M||1==se&&C||0==H&&0!=se)&&(e[f]==W||n[f]==W&&(p=!0)?s[f++]=M:s.length&&(S=!1)),H=se,M+=sa(W)}return f==l&&0==s[0]&&S?this.result((p?-200:0)-100,s,t):g==l&&0==b?this.ret(-200-t.length+(v==t.length?0:-100),[0,v]):a>-1?this.ret(-700-t.length,[a,a+this.pattern.length]):g==l?this.ret(-900-t.length,[b,v]):f==l?this.result((p?-200:0)-100-700+(S?0:-1100),s,t):2!=e.length&&this.result((r[0]?-700:0)-200-1100,r,t)}result(t,e,n){let r=[],o=0;for(let s of e){let a=s+(this.astral?sa(Fr(n,s)):1);o&&r[o-1]==s?r[o-1]=a:(r[o++]=s,r[o++]=a)}return this.ret(t-n.length,r)}}const Br=ke.define({combine:i=>za(i,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:o0e,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>eG(t(n),e(n)),optionClass:(t,e)=>n=>eG(t(n),e(n)),addToOptions:(t,e)=>t.concat(e)})});function eG(i,t){return i?t?i+" "+t:i:t}function o0e(i,t,e,n,r,o){let u,f,s=i.textDirection==ki.RTL,a=s,l=!1,c="top",p=t.left-r.left,g=r.right-t.right,b=n.right-n.left,v=n.bottom-n.top;if(a&&p=v||M>t.top?u=e.bottom-t.top:(c="bottom",u=t.bottom-e.top)}return{style:`${c}: ${u/((t.bottom-t.top)/o.offsetHeight)}px; max-width: ${f/((t.right-t.left)/o.offsetWidth)}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function a2(i,t,e){if(i<=e)return{from:0,to:i};if(t<0&&(t=0),t<=i>>1){let r=Math.floor(t/e);return{from:r*e,to:(r+1)*e}}let n=Math.floor((i-t)/e);return{from:i-(n+1)*e,to:i-n*e}}class a0e{constructor(t,e,n){this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let r=t.state.field(e),{options:o,selected:s}=r.open,a=t.state.facet(Br);this.optionContent=function s0e(i){let t=i.addToOptions.slice();return i.icons&&t.push({render(e){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),e.type&&n.classList.add(...e.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),n.setAttribute("aria-hidden","true"),n},position:20}),t.push({render(e,n,r,o){let s=document.createElement("span");s.className="cm-completionLabel";let a=e.displayLabel||e.label,l=0;for(let c=0;cl&&s.appendChild(document.createTextNode(a.slice(l,u)));let p=s.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(a.slice(u,f))),p.className="cm-completionMatchedText",l=f}return le.position-n.position).map(e=>e.render)}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=a2(o.length,s,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=t.state.field(e).open;for(let f,u=l.target;u&&u!=this.dom;u=u.parentNode)if("LI"==u.nodeName&&(f=/-(\d+)$/.exec(u.id))&&+f[1]{let c=t.state.field(this.stateField,!1);c&&c.tooltip&&t.state.facet(Br).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Oy.of(null)})}),this.showOptions(o,r.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let n=t.state.field(this.stateField),r=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=r){let{options:o,selected:s,disabled:a}=n.open;(!r.open||r.open.options!=o)&&(this.range=a2(o.length,s,t.state.facet(Br).maxRenderedOptions),this.showOptions(o,n.id)),this.updateSel(),a!=(null===(e=r.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of e.split(" "))n&&this.dom.classList.add(n);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=a2(e.options.length,e.selected,this.view.state.facet(Br).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:r}=n;if(!r)return;let o="string"==typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,n)}).catch(s=>aa(this.view.state,s,"completion info")):this.addInfoPane(o,n)}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:r,destroy:o}=t;n.appendChild(r),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==t?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),e=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return e&&function c0e(i,t){let e=i.getBoundingClientRect(),n=t.getBoundingClientRect(),r=e.height/i.offsetHeight;n.tope.bottom&&(i.scrollTop+=(n.bottom-e.bottom)/r)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=t.getBoundingClientRect(),o=this.space;if(!o){let s=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return r.top>Math.min(o.bottom,e.bottom)-10||r.bottomn.from||0==n.from)&&(o=p,"string"!=typeof c&&c.header?r.appendChild(c.header(c)):r.appendChild(document.createElement("completion-section")).textContent=p)}const u=r.appendChild(document.createElement("li"));u.id=e+"-"+s,u.setAttribute("role","option");let f=this.optionClass(a);f&&(u.className=f);for(let p of this.optionContent){let g=p(a,this.view.state,this.view,l);g&&u.appendChild(g)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew a0e(e,i,t)}function tG(i){return 100*(i.boost||0)+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}class _g{constructor(t,e,n,r,o,s){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=r,this.selected=o,this.disabled=s}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new _g(this.options,iG(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,r,o){let s=function d0e(i,t){let e=[],n=null,r=l=>{e.push(l);let{section:c}=l.completion;if(c){n||(n=[]);let u="string"==typeof c?c:c.name;n.some(f=>f.name==u)||n.push("string"==typeof c?{name:u}:c)}};for(let l of i)if(l.hasResult()){let c=l.result.getMatch;if(!1===l.result.filter)for(let u of l.result.options)r(new Y9(u,l.source,c?c(u):[],1e9-e.length));else{let u=new r0e(t.sliceDoc(l.from,l.to));for(let f of l.result.options)if(u.match(f.label)){let p=f.displayLabel?c?c(f,u.matched):[]:u.matched;r(new Y9(f,l.source,p,u.score+(f.boost||0)))}}}if(n){let l=Object.create(null),c=0,u=(f,p)=>{var g,b;return(null!==(g=f.rank)&&void 0!==g?g:1e9)-(null!==(b=p.rank)&&void 0!==b?b:1e9)||(f.nameu.score-c.score||a(c.completion,u.completion))){let c=l.completion;!s||s.label!=c.label||s.detail!=c.detail||null!=s.type&&null!=c.type&&s.type!=c.type||s.apply!=c.apply||s.boost!=c.boost?o.push(l):tG(l.completion)>tG(s)&&(o[o.length-1]=l),s=l.completion}return o}(t,e);if(!s.length)return r&&t.some(l=>1==l.state)?new _g(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=e.facet(Br).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let l=r.options[r.selected].completion;for(let c=0;cc.hasResult()?Math.min(l,c.from):l,1e8),create:p0e,above:o.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(t){return new _g(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class ek{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new ek(f0e,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(Br),o=(n.override||e.languageDataAt("autocomplete",Mu(e)).map(n0e)).map(a=>(this.active.find(c=>c.source==a)||new Xo(a,this.active.some(c=>0!=c.state)?1:0)).update(t,n));o.length==this.active.length&&o.every((a,l)=>a==this.active[l])&&(o=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||o.some(a=>a.hasResult()&&t.changes.touchesRange(a.from,a.to))||!function u0e(i,t){if(i==t)return!0;for(let e=0,n=0;;){for(;e1==a.state)&&(s=null),!s&&o.every(a=>1!=a.state)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new Xo(a.source,0):a));for(let a of t.effects)a.is(c2)&&(s=s&&s.setSelected(a.value,this.id));return o==this.active&&s==this.open?this:new ek(o,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:h0e}}const h0e={"aria-autocomplete":"list"};function iG(i,t){let e={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i};return t>-1&&(e["aria-activedescendant"]=i+"-"+t),e}const f0e=[];function l2(i){return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class Xo{constructor(t,e,n=-1){this.source=t,this.state=e,this.explicitPos=n}hasResult(){return!1}update(t,e){let n=l2(t),r=this;n?r=r.handleUserEvent(t,n,e):t.docChanged?r=r.handleChange(t):t.selection&&0!=r.state&&(r=new Xo(r.source,0));for(let o of t.effects)if(o.is(Q1))r=new Xo(r.source,1,o.value?Mu(t.state):-1);else if(o.is(Oy))r=new Xo(r.source,0);else if(o.is(nG))for(let s of o.value)s.source==r.source&&(r=s);return r}handleUserEvent(t,e,n){return"delete"!=e&&n.activateOnTyping?new Xo(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(Mu(t.startState))?new Xo(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Xo(this.source,this.state,t.mapPos(this.explicitPos))}}class bg extends Xo{constructor(t,e,n,r,o){super(t,2,e),this.result=n,this.from=r,this.to=o}hasResult(){return!0}handleUserEvent(t,e,n){var r;let o=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),a=Mu(t.state);if((this.explicitPos<0?a<=o:as||"delete"==e&&Mu(t.startState)==this.from)return new Xo(this.source,"input"==e&&n.activateOnTyping?1:0);let c,l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return function m0e(i,t,e,n){if(!i)return!1;let r=t.sliceDoc(e,n);return"function"==typeof i?i(r,e,n,t):X9(i,!0).test(r)}(this.result.validFor,t.state,o,s)?new bg(this.source,l,this.result,o,s):this.result.update&&(c=this.result.update(this.result,o,s,new K9(t.state,a,l>=0)))?new bg(this.source,l,c,c.from,null!==(r=c.to)&&void 0!==r?r:Mu(t.state)):new Xo(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Xo(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new bg(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}const nG=Ft.define({map:(i,t)=>i.map(e=>e.map(t))}),c2=Ft.define(),Vr=Bn.define({create:()=>ek.start(),update:(i,t)=>i.update(t),provide:i=>[g1.from(i,t=>t.tooltip),ht.contentAttributes.from(i,t=>t.attrs)]});function rG(i,t){const e=t.completion.apply||t.completion.label;let n=i.state.field(Vr).active.find(r=>r.source==t.source);return n instanceof bg&&("string"==typeof e?i.dispatch(Object.assign(Object.assign({},function i0e(i,t,e,n){let{main:r}=i.selection,o=e-r.from,s=n-r.from;return Object.assign(Object.assign({},i.changeByRange(a=>a!=r&&e!=n&&i.sliceDoc(a.from+o,a.from+s)!=i.sliceDoc(e,n)?{range:a}:{changes:{from:a.from+o,to:n==r.from?a.to:a.from+s,insert:t},range:Z.cursor(a.from+o+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(i.state,e,n.from,n.to)),{annotations:Z9.of(t.completion)})):e(i,t.completion,n.from,n.to),!0)}const p0e=l0e(Vr,rG);function tk(i,t="option"){return e=>{let n=e.state.field(Vr,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+r*(i?1:-1):i?0:s-1;return a<0?a="page"==t?0:s-1:a>=s&&(a="page"==t?s-1:0),e.dispatch({effects:c2.of(a)}),!0}}class v0e{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const x0e=tn.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of i.state.field(Vr).active)1==t.state&&this.startQuery(t)}update(i){let t=i.state.field(Vr);if(!i.selectionSet&&!i.docChanged&&i.startState.field(Vr)==t)return;let e=i.transactions.some(r=>(r.selection||r.docChanged)&&!l2(r));for(let r=0;r50&&Date.now()-o.time>1e3){for(let s of o.context.abortListeners)try{s()}catch(a){aa(this.view.state,a)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...i.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),i.transactions.some(r=>r.effects.some(o=>o.is(Q1)))&&(this.pendingStart=!0);let n=this.pendingStart?50:i.state.facet(Br).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(r=>1==r.state&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),n):-1,0!=this.composing)for(let r of i.transactions)"input"==l2(r)?this.composing=2:2==this.composing&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:i}=this.view,t=i.field(Vr);for(let e of t.active)1==e.state&&!this.running.some(n=>n.active.source==e.source)&&this.startQuery(e)}startQuery(i){let{state:t}=this.view,e=Mu(t),n=new K9(t,e,i.explicitPos==e),r=new v0e(i,n);this.running.push(r),Promise.resolve(i.source(n)).then(o=>{r.context.aborted||(r.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Oy.of(null)}),aa(this.view.state,o)})}scheduleAccept(){this.running.every(i=>void 0!==i.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Br).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(Br);for(let n=0;ns.source==r.active.source);if(o&&1==o.state)if(null==r.done){let s=new Xo(r.active.source,0);for(let a of r.updates)s=s.update(a,e);1!=s.state&&t.push(s)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:nG.of(t)})}},{eventHandlers:{blur(i){let t=this.view.state.field(Vr,!1);if(t&&t.tooltip&&this.view.state.facet(Br).closeOnBlur){let e=t.open&&Bj(this.view,t.open.tooltip);(!e||!e.dom.contains(i.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Oy.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:Q1.of(!1)}),20),this.composing=0}}}),oG=ht.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Py={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},bf=Ft.define({map:(i,t)=>t.mapPos(i,-1,Eo.TrackAfter)??void 0}),f2=new class extends df{};f2.startSide=1,f2.endSide=-1;const hG=Bn.define({create:()=>qi.empty,update(i,t){if(i=i.map(t.changes),t.selection){let e=t.state.doc.lineAt(t.selection.main.head);i=i.update({filter:n=>n>=e.from&&n<=e.to})}for(let e of t.effects)e.is(bf)&&(i=i.update({add:[f2.range(e.value,e.value+1)]}));return i}}),m2="()[]{}<>";function fG(i){for(let t=0;t<8;t+=2)if(m2.charCodeAt(t)==i)return m2.charAt(t+1);return gR(i<128?i:i+1)}function mG(i,t){return i.languageDataAt("closeBrackets",t)[0]||Py}const L0e="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),B0e=ht.inputHandler.of((i,t,e,n)=>{if((L0e?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let r=i.state.selection.main;if(n.length>2||2==n.length&&1==sa(Fr(n,0))||t!=r.from||e!=r.to)return!1;let o=function H0e(i,t){let e=mG(i,i.selection.main.head),n=e.brackets||Py.brackets;for(let r of n){let o=fG(Fr(r,0));if(t==r)return o==r?j0e(i,r,n.indexOf(r+r+r)>-1,e):U0e(i,r,o,e.before||Py.before);if(t==o&&pG(i,i.selection.main.from))return W0e(i,0,o)}return null}(i.state,n);return!!o&&(i.dispatch(o),!0)}),V0e=[{key:"Backspace",run:({state:i,dispatch:t})=>{if(i.readOnly)return!1;let n=mG(i,i.selection.main.head).brackets||Py.brackets,r=null,o=i.changeByRange(s=>{if(s.empty){let a=function z0e(i,t){let e=i.sliceString(t-2,t);return sa(Fr(e,0))==e.length?e:e.slice(1)}(i.doc,s.head);for(let l of n)if(l==a&&ik(i.doc,s.head)==fG(Fr(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:Z.cursor(s.head-l.length)}}return{range:r=s}});return r||t(i.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function pG(i,t){let e=!1;return i.field(hG).between(0,i.doc.length,n=>{n==t&&(e=!0)}),e}function ik(i,t){let e=i.sliceString(t,t+2);return e.slice(0,sa(Fr(e,0)))}function U0e(i,t,e,n){let r=null,o=i.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:e,from:s.to}],effects:bf.of(s.to+t.length),range:Z.range(s.anchor+t.length,s.head+t.length)};let a=ik(i.doc,s.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:t+e,from:s.head},effects:bf.of(s.head+t.length),range:Z.cursor(s.head+t.length)}:{range:r=s}});return r?null:i.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function W0e(i,t,e){let n=null,r=i.changeByRange(o=>o.empty&&ik(i.doc,o.head)==e?{changes:{from:o.head,to:o.head+e.length,insert:e},range:Z.cursor(o.head+e.length)}:n={range:o});return n?null:i.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function j0e(i,t,e,n){let r=n.stringPrefixes||Py.stringPrefixes,o=null,s=i.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:t,from:a.to}],effects:bf.of(a.to+t.length),range:Z.range(a.anchor+t.length,a.head+t.length)};let u,l=a.head,c=ik(i.doc,l);if(c==t){if(gG(i,l))return{changes:{insert:t+t,from:l},effects:bf.of(l+t.length),range:Z.cursor(l+t.length)};if(pG(i,l)){let p=e&&i.sliceDoc(l,l+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+p.length,insert:p},range:Z.cursor(l+p.length)}}}else{if(e&&i.sliceDoc(l-2*t.length,l)==t+t&&(u=_G(i,l-2*t.length,r))>-1&&gG(i,u))return{changes:{insert:t+t+t+t,from:l},effects:bf.of(l+t.length),range:Z.cursor(l+t.length)};if(i.charCategorizer(l)(c)!=Gi.Word&&_G(i,l,r)>-1&&!function $0e(i,t,e,n){let r=Vn(i).resolveInner(t,-1),o=n.reduce((s,a)=>Math.max(s,a.length),0);for(let s=0;s<5;s++){let a=i.sliceDoc(r.from,Math.min(r.to,r.from+e.length+o)),l=a.indexOf(e);if(!l||l>-1&&n.indexOf(a.slice(0,l))>-1){let u=r.firstChild;for(;u&&u.from==r.from&&u.to-u.from>e.length+l;){if(i.sliceDoc(u.to-e.length,u.to)==e)return!1;u=u.firstChild}return!0}let c=r.to==t&&r.parent;if(!c)break;r=c}return!1}(i,l,t,r))return{changes:{insert:t+t,from:l},effects:bf.of(l+t.length),range:Z.cursor(l+t.length)}}return{range:o=a}});return o?null:i.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function gG(i,t){let e=Vn(i).resolveInner(t+1);return e.parent&&e.from==t}function _G(i,t,e){let n=i.charCategorizer(t);if(n(i.sliceDoc(t-1,t))!=Gi.Word)return t;for(let r of e){let o=t-r.length;if(i.sliceDoc(o,t)==r&&n(i.sliceDoc(o-1,o))!=Gi.Word)return o}return-1}function G0e(i={}){return[Vr,Br.of(i),x0e,q0e,oG]}const bG=[{key:"Ctrl-Space",run:i=>!!i.state.field(Vr,!1)&&(i.dispatch({effects:Q1.of(!0)}),!0)},{key:"Escape",run:i=>{let t=i.state.field(Vr,!1);return!(!t||!t.active.some(e=>0!=e.state)||(i.dispatch({effects:Oy.of(null)}),0))}},{key:"ArrowDown",run:tk(!0)},{key:"ArrowUp",run:tk(!1)},{key:"PageDown",run:tk(!0,"page")},{key:"PageUp",run:tk(!1,"page")},{key:"Enter",run:i=>{let t=i.state.field(Vr,!1);return!(i.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampi.facet(Br).defaultKeymap?[bG]:[]));class K0e{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class vf{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let r=t,o=n.facet(g2).markerFilter;o&&(r=o(r));let s=Ne.set(r.map(a=>a.from==a.to||a.from==a.to-1&&n.doc.lineAt(a.from).to==a.from?Ne.widget({widget:new ewe(a),diagnostic:a}).range(a.from):Ne.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity+(a.markClass?" "+a.markClass:"")},diagnostic:a}).range(a.from,a.to)),!0);return new vf(s,e,yg(s))}}function yg(i,t=null,e=0){let n=null;return i.between(e,1e9,(r,o,{spec:s})=>{if(!t||s.diagnostic==t)return n=new K0e(r,o,s.diagnostic),!1}),n}function wG(i,t){return i.field(ro,!1)?t:t.concat(Ft.appendConfig.of(OG))}const nk=Ft.define(),p2=Ft.define(),xG=Ft.define(),ro=Bn.define({create:()=>new vf(Ne.none,null,null),update(i,t){if(t.docChanged){let e=i.diagnostics.map(t.changes),n=null;if(i.selected){let r=t.changes.mapPos(i.selected.from,1);n=yg(e,i.selected.diagnostic,r)||yg(e,null,r)}i=new vf(e,i.panel,n)}for(let e of t.effects)e.is(nk)?i=vf.init(e.value,i.panel,t.state):e.is(p2)?i=new vf(i.diagnostics,e.value?rk.open:null,i.selected):e.is(xG)&&(i=new vf(i.diagnostics,i.panel,e.value));return i},provide:i=>[_y.from(i,t=>t.panel),ht.decorations.from(i,t=>t.diagnostics)]}),J0e=Ne.mark({class:"cm-lintRange cm-lintRange-active"});function Y0e(i,t,e){let{diagnostics:n}=i.state.field(ro),r=[],o=2e8,s=0;n.between(t-(e<0?1:0),t+(e>0?1:0),(l,c,{spec:u})=>{t>=l&&t<=c&&(l==c||(t>l||e>0)&&(t({dom:CG(i,r)})}:null}function CG(i,t){return Ti("ul",{class:"cm-tooltip-lint"},t.map(e=>SG(i,e,!1)))}const DG=i=>{let t=i.state.field(ro,!1);return!(!t||!t.panel||(i.dispatch({effects:p2.of(!1)}),0))},Q0e=[{key:"Mod-Shift-m",run:i=>{let t=i.state.field(ro,!1);(!t||!t.panel)&&i.dispatch({effects:wG(i.state,[p2.of(!0)])});let e=gy(i,rk.open);return e&&e.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:i=>{let t=i.state.field(ro,!1);if(!t)return!1;let e=i.state.selection.main,n=t.diagnostics.iter(e.to+1);return!(!n.value&&(n=t.diagnostics.iter(0),!n.value||n.from==e.from&&n.to==e.to)||(i.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),0))}}],g2=ke.define({combine:i=>Object.assign({sources:i.map(t=>t.source)},za(i.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,e)=>t?e?n=>t(n)||e(n):t:e}))});function EG(i){let t=[];if(i)e:for(let{name:e}of i){for(let n=0;no.toLowerCase()==r.toLowerCase())){t.push(r);continue e}}t.push("")}return t}function SG(i,t,e){var n;let r=e?EG(t.actions):[];return Ti("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Ti("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(n=t.actions)||void 0===n?void 0:n.map((o,s)=>{let a=!1,l=p=>{if(p.preventDefault(),a)return;a=!0;let g=yg(i.state.field(ro).diagnostics,t);g&&o.apply(i,g.from,g.to)},{name:c}=o,u=r[s]?c.indexOf(r[s]):-1,f=u<0?c:[c.slice(0,u),Ti("u",c.slice(u,u+1)),c.slice(u+1)];return Ti("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${u<0?"":` (access key "${r[s]})"`}.`},f)}),t.source&&Ti("div",{class:"cm-diagnosticSource"},t.source))}class ewe extends Xc{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Ti("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class MG{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=SG(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class rk{constructor(t){this.view=t,this.items=[],this.list=Ti("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:r=>{if(27==r.keyCode)DG(this.view),this.view.focus();else if(38==r.keyCode||33==r.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==r.keyCode||34==r.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==r.keyCode)this.moveSelection(0);else if(35==r.keyCode)this.moveSelection(this.items.length-1);else if(13==r.keyCode)this.view.focus();else{if(!(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:o}=this.items[this.selectedIndex],s=EG(o.actions);for(let a=0;a{for(let o=0;oDG(this.view)},"\xd7")),this.update()}get selectedIndex(){let t=this.view.state.field(ro).selected;if(!t)return-1;for(let e=0;e{let u,c=-1;for(let f=n;fn&&(this.items.splice(n,c-n),r=!0)),e&&u.diagnostic==e.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),o=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),n++});n({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:a})=>{let l=a.height/this.list.offsetHeight;s.topa.bottom&&(this.list.scrollTop+=(s.bottom-a.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let t=this.list.firstChild;function e(){let n=t;t=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;t!=n.dom;)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let n=yg(this.view.state.field(ro).diagnostics,this.items[t].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:xG.of(n)})}static open(t){return new rk(t)}}function sk(i){return function ok(i,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(i)}')`}(``,'width="6" height="3"')}const twe=ht.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:sk("#d11")},".cm-lintRange-warning":{backgroundImage:sk("orange")},".cm-lintRange-info":{backgroundImage:sk("#999")},".cm-lintRange-hint":{backgroundImage:sk("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),OG=[ro,ht.decorations.compute([ro],i=>{let{selected:t,panel:e}=i.field(ro);return t&&e&&t.from!=t.to?Ne.set([J0e.range(t.from,t.to)]):Ne.none}),H_e(Y0e,{hideOn:function yG(i,t){let e=i.startState.doc.lineAt(t.pos);return!(!i.effects.some(n=>n.is(nk))&&!i.changes.touchesRange(e.from,e.to))}}),twe],lwe=(()=>[K_e(),Y_e,p_e(),Mve(),qbe(),o_e(),[fy,c_e],ks.allowMultipleSelections.of(!0),ks.transactionFilter.of(i=>{if(!i.docChanged||!i.isUserEvent("input.type")&&!i.isUserEvent("input.complete"))return i;let t=i.startState.languageDataAt("indentOnInput",i.startState.selection.main.head);if(!t.length)return i;let e=i.newDoc,{head:n}=i.newSelection.main,r=e.lineAt(n);if(n>r.from+200)return i;let o=e.sliceString(r.from,n);if(!t.some(c=>c.test(o)))return i;let{state:s}=i,a=-1,l=[];for(let{head:c}of s.selection.ranges){let u=s.doc.lineAt(c);if(u.from==a)continue;a=u.from;let f=I1(s,u.from);if(null==f)continue;let p=/^\s*/.exec(u.text)[0],g=cg(s,f);p!=g&&l.push({from:u.from,to:u.from+p.length,insert:g})}return l.length?[i,{changes:l,sequential:!0}]:i}),Jbe(Zbe,{fallback:!0}),rve(),[B0e,hG],G0e(),A_e(),O_e(),D_e,Oye(),u1.of([...V0e,...Sye,...Xye,...Lve,...Wbe,...bG,...Q0e])])();class lk{constructor(t,e,n,r,o,s,a,l,c,u=0,f){this.p=t,this.stack=e,this.state=n,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let r=t.parser.context;return new lk(t,[],e,n,n,0,[],0,r?new RG(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let n=t>>19,r=65535&t,{parser:o}=this.p,s=o.dynamicPrecedence(r);if(s&&(this.score+=s),0==n)return this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r=2e3&&(null===(e=this.p.parser.nodeSet.types[r])||void 0===e||!e.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(r,l)}storeNode(t,e,n,r=4,o=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==n)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=n)}}if(o&&this.pos!=n){let s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,r>4&&(r-=4);this.buffer[s]=t,this.buffer[s+1]=e,this.buffer[s+2]=n,this.buffer[s+3]=r}else this.buffer.push(t,e,n,r)}shift(t,e,n,r){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=r,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,r,4);else{let o=t,{parser:s}=this.p;(r>this.pos||e<=s.maxNode)&&(this.pos=r,s.stateFlag(o,1)||(this.reducePos=r)),this.pushState(o,n),this.shiftContext(e,n),e<=s.maxNode&&this.buffer.push(e,n,r,4)}}apply(t,e,n,r){65536&t?this.reduce(t):this.shift(t,e,n,r)}useNode(t,e){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let r=this.pos;this.reducePos=this.pos=r+t.length,this.pushState(e,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let n=t.buffer.slice(e),r=t.bufferBase+e;for(;t&&r==t.bufferBase;)t=t.parent;return new lk(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new cwe(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if(!(65536&n))return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let r=[];for(let s,o=0;o1&l&&a==s)||r.push(e[o],s)}e=r}let n=[];for(let r=0;r>19);if(o<0||t.getGoto(this.stack[o],65535&e,!1)<0){let s=this.findForcedReduction();if(null==s)return!1;e=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],n=(r,o)=>{if(!e.includes(r))return e.push(r),t.allActions(r,s=>{if(!(393216&s))if(65536&s){let a=(s>>19)-o;if(a>1){let l=65535&s,c=this.stack.length-3*a;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(s,o+1);if(null!=a)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class RG{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class cwe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,n=t>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}class ck{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new ck(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new ck(this.stack,this.pos,this.index)}}function Fy(i,t=Uint16Array){if("string"!=typeof i)return i;let e=null;for(let n=0,r=0;n=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new t(o)}return e}class dk{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const PG=new dk;class dwe{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=PG,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,r=this.rangeIndex,o=this.pos+t;for(;on.to:o>=n.to;){if(r==this.ranges.length-1)return null;let s=this.ranges[++r];o+=s.from-n.to,n=s}return o}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let n,r,e=this.chunkOff+t;if(e>=0&&e=this.chunk2Pos&&na.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=PG,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let r of this.ranges){if(r.from>=e)break;r.to>t&&(n+=this.input.read(Math.max(r.from,t),Math.min(r.to,e)))}return n}}class wg{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:n}=e.p;!function FG(i,t,e,n,r,o){let s=0,a=1<0){let b=i[g];if(l.allows(b)&&(-1==t.token.value||t.token.value==b||hwe(b,t.token.value,r,o))){t.acceptToken(b);break}}let u=t.next,f=0,p=i[s+2];if(!(t.next<0&&p>f&&65535==i[c+3*p-3])){for(;f>1,b=c+g+(g<<1);if(u=(i[b+1]||65536))){s=i[b+2],t.advance();continue e}f=g+1}}break}s=i[c+3*p-1]}}(this.data,t,e,this.id,n.data,n.tokenPrecTable)}}function NG(i,t,e){for(let r,n=t;65535!=(r=i[n]);n++)if(r==e)return n-t;return-1}function hwe(i,t,e,n){let r=NG(e,n,t);return r<0||NG(e,n,i)t)&&!n.type.isError)return e<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(i.length,Math.max(n.from+1,t+25));if(e<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return e<0?0:i.length}}class fwe{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?LG(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?LG(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(o instanceof rn){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}}}class mwe{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(n=>new dk)}getActions(t){let e=0,n=null,{parser:r}=t.p,{tokenizers:o}=r,s=r.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;cf.end+25&&(l=Math.max(f.lookAhead,l)),0!=f.value)){let p=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(n=f,e>p))break}}for(;this.actions.length>e;)this.actions.pop();return l&&t.setLookAhead(l),!n&&t.pos==this.stream.end&&(n=new dk,n.value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new dk,{pos:n,p:r}=t;return e.start=n,e.end=Math.min(n+1,r.stream.end),e.value=n==r.stream.end?r.parser.eofTerm:0,e}updateCachedToken(t,e,n){let r=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(r,t),n),t.value>-1){let{parser:o}=n.p;for(let s=0;s=0&&n.p.parser.dialect.allows(a>>1)){1&a?t.extended=a>>1:t.value=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(r+1)}putAction(t,e,n,r){for(let o=0;o4*t.bufferLength?new fwe(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let r,o,t=this.stacks,e=this.minStackPos,n=this.stacks=[];if(this.bigReductionCount>300&&1==t.length){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;se)n.push(a);else{if(this.advanceStack(a,n,t))continue;{r||(r=[],o=[]),r.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!n.length){let s=r&&function _we(i){let t=null;for(let e of i){let n=e.p.stoppedAt;(e.pos==e.p.stream.end||null!=n&&e.pos>n)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scorethis.stoppedAt?r[0]:this.runRecovery(r,o,n);if(s)return Is&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=1==this.recovering?1:3*this.recovering;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>e)&&this.recovering--}else if(n.length>1){e:for(let s=0;s500&&c.buffer.length>500){if(!((a.score-c.score||a.buffer.length-c.buffer.length)>0)){n.splice(s--,1);continue e}n.splice(l--,1)}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let s=1;s ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let f=this.fragments.nodeAt(r);f;){let p=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(t.state,f.type.id):-1;if(p>-1&&f.length&&(!c||(f.prop(kt.contextHash)||0)==u))return t.useNode(f,p),Is&&console.log(s+this.stackID(t)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof rn)||0==f.children.length||f.positions[0]>0)break;let g=f.children[0];if(!(g instanceof rn&&0==f.positions[0]))break;f=g}}let a=o.stateSlot(t.state,4);if(a>0)return t.reduce(a),Is&&console.log(s+this.stackID(t)+` (via always-reduce ${o.getName(65535&a)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;cr?e.push(b):n.push(b)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return BG(t,e),!0}}runRecovery(t,e,n){let r=null,o=!1;for(let s=0;s ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),Is&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let f=a.split(),p=u;for(let g=0;f.forceReduce()&&g<10&&(Is&&console.log(p+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,n));g++)Is&&(p=this.stackID(f)+" -> ");for(let g of a.recoverByInsert(l))Is&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Is&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),BG(a,n)):(!r||r.scoret.topRules[a][1]),r=[];for(let a=0;a=0)o(u,l,a[c++]);else{let f=a[c+-u];for(let p=-u;p>0;p--)o(a[c++],l,f);c++}}}this.nodeSet=new w1(e.map((a,l)=>Mo.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:r[l],top:n.indexOf(l)>-1,error:0==l,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Jj;let s=Fy(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a"number"==typeof a?new wg(s,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let r=new pwe(this,t,e,n);for(let o of this.wrappers)r=o(r,t,e,n);return r}getGoto(t,e,n=!1){let r=this.goto;if(e>=r[0])return-1;for(let o=r[e+1];;){let s=r[o++],a=1&s,l=r[o++];if(a&&n)return l;for(let c=o+(s>>1);o0}validAction(t,e){return!!this.allActions(t,n=>n==e||null)}allActions(t,e){let n=this.stateSlot(t,4),r=n?e(n):void 0;for(let o=this.stateSlot(t,1);null==r;o+=3){if(65535==this.data[o]){if(1!=this.data[o+1])break;o=Qc(this.data,o+2)}r=e(Qc(this.data,o+1))}return r}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Qc(this.data,n+2)}if(!(1&this.data[n+2])){let r=this.data[n+1];e.some((o,s)=>1&s&&o==r)||e.push(this.data[n],r)}}return e}configure(t){let e=Object.assign(Object.create(uk.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=n}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(n=>{let r=t.tokenizers.find(o=>o.from==n);return r?r.to:n})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((n,r)=>{let o=t.specializers.find(a=>a.from==n.external);if(!o)return n;let s=Object.assign(Object.assign({},n),{external:o.to});return e.specializers[r]=VG(s),s})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map(()=>!1);if(t)for(let o of t.split(" ")){let s=e.indexOf(o);s>=0&&(n[s]=!0)}let r=null;for(let o=0;oi.external(e,n)<<1|t}return i.get}const bwe=c$({String:me.string,Number:me.number,"True False":me.bool,PropertyName:me.propertyName,Null:me.null,",":me.separator,"[ ]":me.squareBracket,"{ }":me.brace}),vwe=uk.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26a0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[bwe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),wwe=T1.define({name:"json",parser:vwe.configure({props:[x$.add({Object:k$({except:/^\s*\}/}),Array:k$({except:/^\s*\]/})}),E$.add({"Object Array":function Pbe(i){let t=i.firstChild,e=i.lastChild;return t&&t.to{class i{set config(e){this.codeMirror?this.setCodeMirrorValue(e):this.lastValidConfig=e}constructor(e){this.ngZone=e,this.whatIsBeingEditedName="",this.defaultConfig="",this.closable=!0,this.update=new pe,this.lastValidConfig="{}",this.changed=!1,this.codemirrorOptions={lineNumbers:!0,theme:"material",mode:"javascript"},this.changed$=new gr(this.changed)}getCodeMirrorValue(){return this.codeMirror?this.codeMirror?.state.doc.toString():"{}"}setCodeMirrorValue(e){if(!this.codeMirror)return void(this.lastValidConfig=e);console.log("setCodeMirrorValue--\x3e calling state update");const n=this.codeMirror.state.update({changes:{from:0,to:this.codeMirror.state.doc.length,insert:e}});this.codeMirror.dispatch(n)}ngOnInit(){const e=new Yv;console.log("this.editorState.create..."),this.editorState=ks.create({doc:this.lastValidConfig,extensions:[lwe,e.of(new Dbe(wwe)),ht.updateListener.of(n=>{this.ngZone.run(()=>{const r=this.lastValidConfig!==n.state.doc.toString();this.changed!==r&&(this.changed=r,this.changed$.next(this.changed))})})]})}ngAfterContentInit(){}ngAfterViewInit(){this.codemirrorElementRef?this.codeMirror=new ht({state:this.editorState,parent:this.codemirrorElementRef.nativeElement}):console.warn("ngAfterContentInit: missing codemirror element.")}resetConfig(){this.codeMirror?(this.tmpConfigString=this.getCodeMirrorValue(),this.setCodeMirrorValue(this.defaultConfig.slice())):console.warn("Missing codeMirror object.")}undoChanges(){this.codeMirror?(this.tmpConfigString=this.getCodeMirrorValue(),this.setCodeMirrorValue(this.lastValidConfig.slice())):console.warn("Missing codeMirror object.")}get isDefault(){return this.codeMirror?this.defaultConfig==this.getCodeMirrorValue():this.defaultConfig===this.lastValidConfig}get canReDoChanges(){return this.codeMirror?!(!this.tmpConfigString||this.changed)&&this.tmpConfigString!=this.getCodeMirrorValue():(console.warn("Missing codeMirror object."),!1)}redoChanges(){this.codeMirror?(this.tmpConfigString&&this.setCodeMirrorValue(this.tmpConfigString),delete this.tmpConfigString):console.warn("Missing codeMirror object.")}makeConfigUpdate(){if(!this.codeMirror)return console.warn("Missing codeMirror object."),{json:"{}",error:"Missing codeMirror object."};let e;const n=this.getCodeMirrorValue();try{return e=cpe.parse(n),this.lastValidConfig=n.slice(),this.changed=!1,this.changed$.next(this.changed),{obj:e,json:n}}catch(r){return{json:n,error:r.message}}}tryEmitConfig(){const e=this.makeConfigUpdate();e.close=!1,this.configError=e.error,this.configError||delete this.tmpConfigString,this.update.emit(e)}tryEmitConfigAndClose(){const e=this.makeConfigUpdate();e.close=!0,this.configError=e.error,this.update.emit(e)}justClose(){this.update.emit({close:!0})}static#e=this.\u0275fac=function(n){return new(n||i)(x(ge))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-codemirror-config-editor"]],viewQuery:function(n,r){if(1&n&&Pt(Cwe,5),2&n){let o;he(o=fe())&&(r.codemirrorElementRef=o.first)}},inputs:{whatIsBeingEditedName:"whatIsBeingEditedName",defaultConfig:"defaultConfig",closable:"closable",config:"config"},outputs:{update:"update"},decls:39,vars:22,consts:[[1,"buttons"],[1,"whatIsBeingEditedName"],[4,"ngIf"],[1,"spacer"],["color","accent","mat-raised-button","",3,"click",4,"ngIf"],["color","primary","mat-raised-button","",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Options",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"disabled","click"],["class","hint-error",4,"ngIf"],[1,"code"],["codemirror",""],["color","accent","mat-raised-button","",3,"click"],["color","primary","mat-raised-button","",3,"click"],[1,"hint-error"]],template:function(n,r){if(1&n&&(D(0,"div",0)(1,"div",1),R(2),_e(3,Dwe,2,0,"span",2),Ph(4,"async"),E(),q(5,"div",3),D(6,"div"),_e(7,kwe,2,0,"button",4),Ph(8,"async"),_e(9,Ewe,2,0,"button",5),Ph(10,"async"),_e(11,Swe,2,0,"button",5),Ph(12,"async"),E(),D(13,"button",6)(14,"mat-icon"),R(15,"more_vert"),E()(),D(16,"mat-menu",null,7)(18,"button",8),Q("click",function(){return r.resetConfig()}),D(19,"mat-icon"),R(20,"settings_backup_restore"),E(),D(21,"span"),R(22,"Reset to default"),E()(),D(23,"button",8),Q("click",function(){return r.undoChanges()}),Ph(24,"async"),D(25,"mat-icon"),R(26,"restore"),E(),D(27,"span"),R(28,"Restore last saved"),E()(),D(29,"button",8),Q("click",function(){return r.redoChanges()}),Ph(30,"async"),D(31,"mat-icon"),R(32,"redo"),E(),D(33,"span"),R(34,"Return to last changed"),E()()()(),_e(35,Mwe,2,1,"div",9),D(36,"div",10),q(37,"div",null,11),E()),2&n){const o=Qn(17);I(2),Li(" ",r.whatIsBeingEditedName,""),I(1),K("ngIf",Fh(4,10,r.changed$)),I(4),K("ngIf",Fh(8,12,r.changed$)),I(2),K("ngIf",r.closable&&!Fh(10,14,r.changed$)),I(2),K("ngIf",Fh(12,16,r.changed$)&&r.closable),I(2),K("matMenuTriggerFor",o),I(5),K("disabled",r.isDefault),I(5),K("disabled",!Fh(24,18,r.changed$)),I(6),K("disabled",Fh(30,20,r.changed$)||!r.tmpConfigString),I(6),K("ngIf",r.configError)}},dependencies:[ou,bD,t4,Gv,zv,ID,gme,r4],styles:[".hint-error[_ngcontent-%COMP%]{color:#f00000cc}.code[_ngcontent-%COMP%]{flex:0 0 auto;background-color:#fff;margin-bottom:5px;margin-left:5px;margin-right:5px}.buttons[_ngcontent-%COMP%]{flex:0 0 60px;padding:10px;display:flex;flex-wrap:wrap;flex-direction:row;justify-content:flex-end;align-items:center}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.buttons[_ngcontent-%COMP%] .whatIsBeingEditedName[_ngcontent-%COMP%]{font-weight:800}.spacer[_ngcontent-%COMP%]{flex:1}"]})}return i})();const Twe=["downloadLink"];function Iwe(i,t){1&i&&q(0,"mat-progress-bar",12),2&i&&K("mode","indeterminate")}function Owe(i,t){if(1&i&&(D(0,"div",16),R(1),E()),2&i){const e=ie();I(1),Oh(" There are ",e.errorCount," errors. The first error is: ",e.errorMessage," ")}}function Rwe(i,t){if(1&i&&(D(0,"div",16),R(1),E()),2&i){const e=ie();I(1),Li(" ",e.errorMessage," ")}}let y2=(()=>{class i{constructor(e,n,r){this.appStateService=e,this.driveService=n,this.authService=r,this.defaultDataStr=JSON.stringify(RC(),null,2),this.currentDataStr=this.defaultDataStr.slice(),this.waiting=!1,this.errorCount=0,this.usersList=[],this.appNameControl=new AT(this.appStateService.appName()),this.appNameControl.valueChanges.forEach(o=>{o&&this.appStateService.setSetting("name",o)}),Tc(()=>{const o=this.appStateService.appName();null!==this.appNameControl.value&&this.appNameControl.value!==o&&this.appNameControl.setValue(o,{emitEvent:!1})}),Tc(()=>{this.currentDataStr=JSON.stringify(this.appStateService.data(),null,2)})}ngOnInit(){}reset(){this.appStateService.reset(),this.appNameControl.setValue(this.appStateService.appName()),this.currentDataStr=JSON.stringify(this.appStateService.data(),null,2)}saveToGoogleDrive(){var e=this;return en(function*(){const n=JSON.stringify(e.appStateService.data()),r=yield e.authService.getToken("https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/drive.file"),o=yield e.driveService.saveData(n,`${e.appStateService.appName()}.json`,"",r);console.log("saveToGoogleDrive:response",o)})()}download(e){const n=JSON.stringify(this.appStateService.data()),r=new Blob([n],{type:"data:application/json;charset=utf-8"});this.downloadUrl&&URL.revokeObjectURL(this.downloadUrl),this.downloadUrl=URL.createObjectURL(r),e.href=this.downloadUrl,e.click()}downloadName(){return`${this.appNameControl.value}.json`}configUpdated(e){const n=e;!n.error&&n.obj&&n.json?(this.appStateService.data.set(n.obj),this.currentDataStr=n.json):console.log(`configUpdated with no update: ${n}`)}sizeString(){const e=this.appStateService.dataSize();return e>=1073741824?(e/1073741824).toFixed(2)+" GB":e>=1048576?(e/1048576).toFixed(2)+" MB":e>=1024?(e/1024).toFixed(2)+" KB":e>1?e+" bytes":1==e?e+" byte":"0 bytes"}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr),x(lpe),x(KO))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-app-settings"]],viewQuery:function(n,r){if(1&n&&Pt(Twe,5),2&n){let o;he(o=fe())&&(r.downloadLink=o.first)}},standalone:!0,features:[vi],decls:30,vars:8,consts:[[1,"main"],[1,"settings-form"],[1,"full-width"],["matInput","","placeholder","Write a name for your app",3,"formControl"],[1,"row"],[1,"appinfo"],[1,"spacer"],["mat-button","","color","warn",3,"click"],["mat-button","","aria-label","Download",3,"click"],["hidden","","target","_top",3,"download"],["downloadLink",""],["mat-button","","aria-label","Save to Google Drive",3,"click"],[3,"mode"],["class","error"],[1,"code-full-screen"],["whatIsBeingEditedName","Configuration",3,"closable","defaultConfig","config","update"],[1,"error"]],template:function(n,r){if(1&n){const o=Ci();D(0,"div",0)(1,"form",1)(2,"div")(3,"mat-form-field",2)(4,"mat-label"),R(5,"App Name"),E(),q(6,"input",3),E()(),D(7,"div",4)(8,"div",5),R(9," App data: "),D(10,"span"),R(11),E()(),q(12,"div",6),D(13,"button",7),Q("click",function(){return r.reset()}),R(14,"Clear all data"),E()(),D(15,"button",8),Q("click",function(){He(o);const a=Qn(20);return Se(r.download(a))}),D(16,"mat-icon"),R(17,"download"),E(),R(18," Download a snapshot "),q(19,"a",9,10),E(),D(21,"button",11),Q("click",function(){return r.saveToGoogleDrive()}),D(22,"mat-icon"),R(23,"save"),E(),R(24," Save to Google Drive "),E(),_e(25,Iwe,1,1,"mat-progress-bar",12)(26,Owe,2,2,"div",13)(27,Rwe,2,1),E(),D(28,"div",14)(29,"app-codemirror-config-editor",15),Q("update",function(a){return r.configUpdated(a)}),E()()()}2&n&&(I(6),K("formControl",r.appNameControl),I(5),qt(r.sizeString()),I(8),K("download",r.downloadName()),I(6),xe(25,r.waiting?25:-1),I(1),xe(26,r.errorMessage&&r.errorCount>1?26:r.errorMessage?27:-1),I(3),K("closable",!1)("defaultConfig",r.defaultDataStr)("config",r.currentDataStr))},dependencies:[Jo,su,Il,Ba,gH,Cl,Zd,nH,Hh,Ha,au,tv,IT,Cs,ou,y6,Uv,$6,yme,pU,Awe,Jp,Gv],styles:[".full-width[_ngcontent-%COMP%]{width:100%}.error[_ngcontent-%COMP%]{color:#900;border-radius:5px;border:solid 1px #990000;background-color:#fbb;padding:5px}.row[_ngcontent-%COMP%]{display:flex}.spacer[_ngcontent-%COMP%]{flex:1}mat-form-field[_ngcontent-%COMP%]{width:420px}.code-full-screen[_ngcontent-%COMP%]{margin:10px 0 0;flex:1 1 auto;height:100%;width:100%;background-color:#eee}"]})}return i})(),Pwe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-page-not-found"]],standalone:!0,features:[vi],decls:2,vars:0,template:function(n,r){1&n&&(D(0,"h2"),R(1,"Page Not Found"),E())}})}return i})();const hk=["*"],Fwe=["content"];function Nwe(i,t){if(1&i){const e=Ci();D(0,"div",1),Q("click",function(){return He(e),Se(ie()._onBackdropClicked())}),E()}2&i&&Pe("mat-drawer-shown",ie()._isShowingBackdrop())}function Lwe(i,t){1&i&&(D(0,"mat-drawer-content"),we(1,2),E())}const Bwe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Vwe=["mat-drawer","mat-drawer-content","*"];function Hwe(i,t){if(1&i){const e=Ci();D(0,"div",1),Q("click",function(){return He(e),Se(ie()._onBackdropClicked())}),E()}2&i&&Pe("mat-drawer-shown",ie()._isShowingBackdrop())}function zwe(i,t){1&i&&(D(0,"mat-sidenav-content"),we(1,2),E())}const Uwe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Wwe=["mat-sidenav","mat-sidenav-content","*"],HG={transformDrawer:jc("transform",[oa("open, open-instant",Ln({transform:"none",visibility:"visible"})),oa("void",Ln({"box-shadow":"none",visibility:"hidden"})),Ds("void => open-instant",ra("0ms")),Ds("void <=> open, open-instant => void",ra("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$we=new V("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Gwe(){return!1}}),w2=new V("MAT_DRAWER_CONTAINER");let fk=(()=>{class i extends Vv{constructor(e,n,r,o,s){super(r,o,s),this._changeDetectorRef=e,this._container=n}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(n){return new(n||i)(x(Nt),x(At(()=>UG)),x(Ee),x(Kp),x(ge))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(n,r){2&n&&vl("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[Re([{provide:Vv,useExisting:i}]),Ae],ngContentSelectors:hk,decls:1,vars:0,template:function(n,r){1&n&&(Lt(),we(0))},encapsulation:2,changeDetection:0})}return i})(),zG=(()=>{class i{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=$e(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=$e(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle($e(e))}constructor(e,n,r,o,s,a,l,c){this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=r,this._platform=o,this._ngZone=s,this._interactivityChecker=a,this._doc=l,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new de,this._animationEnd=new de,this._animationState="void",this.openedChange=new pe(!0),this._openedStream=this.openedChange.pipe(ci(u=>u),ue(()=>{})),this.openedStart=this._animationStarted.pipe(ci(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),BC(void 0)),this._closedStream=this.openedChange.pipe(ci(u=>!u),ue(()=>{})),this.closedStart=this._animationStarted.pipe(ci(u=>u.fromState!==u.toState&&"void"===u.toState),BC(void 0)),this._destroyed=new de,this.onPositionChanged=new pe,this._modeChanged=new de,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Lv(this._elementRef.nativeElement,"keydown").pipe(ci(u=>27===u.keyCode&&!this.disableClose&&!na(u)),Qe(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(sd((u,f)=>u.fromState===f.fromState&&u.toState===f.toState)).subscribe(u=>{const{fromState:f,toState:p}=u;(0===p.indexOf("open")&&"void"===f||"void"===p&&0===f.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{!n&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,n,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",n&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(ji(1)).subscribe(s=>o(s?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(e){const n=this._elementRef.nativeElement,r=n.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,n)),r.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Cde),x(Tl),x(Bi),x(ge),x(gz),x(it,8),x(w2,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-drawer"]],viewQuery:function(n,r){if(1&n&&Pt(Fwe,5),2&n){let o;he(o=fe())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(n,r){1&n&&nA("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&n&&(je("align",null),eA("@transform",r._animationState),Pe("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:hk,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(n,r){1&n&&(Lt(),D(0,"div",0,1),we(2),E())},dependencies:[Vv],encapsulation:2,data:{animation:[HG.transformDrawer]},changeDetection:0})}return i})(),UG=(()=>{class i{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=$e(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:$e(e)}get scrollable(){return this._userContent||this._content}constructor(e,n,r,o,s,a=!1,l){this._dir=e,this._element=n,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=l,this._drawers=new Ic,this.backdropClick=new pe,this._destroyed=new de,this._doCheckSubject=new de,this._contentMargins={left:null,right:null},this._contentMarginChanges=new de,e&&e.change.pipe(Qe(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Qe(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(hr(this._allDrawers),Qe(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(hr(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(aD(10),Qe(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,n-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();n+=r,e-=r}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(ci(n=>n.fromState!==n.toState),Qe(this._drawers.changes)).subscribe(n=>{"open-instant"!==n.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Qe(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Qe(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(ji(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Qe(Hi(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const n=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?n.add(r):n.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return null!=e&&e.opened}_drawerHasBackdrop(e){return null==this._backdropOverride?!!e&&"side"!==e.mode:this._backdropOverride}static#e=this.\u0275fac=function(n){return new(n||i)(x(xs,8),x(Ee),x(ge),x(Nt),x(Hv),x($we),x(Ui,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(n,r,o){if(1&n&&(ut(o,fk,5),ut(o,zG,5)),2&n){let s;he(s=fe())&&(r._content=s.first),he(s=fe())&&(r._allDrawers=s)}},viewQuery:function(n,r){if(1&n&&Pt(fk,5),2&n){let o;he(o=fe())&&(r._userContent=o.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,r){2&n&&Pe("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Re([{provide:w2,useExisting:i}])],ngContentSelectors:Vwe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,r){1&n&&(Lt(Bwe),_e(0,Nwe,1,2,"div",0),we(1),we(2,1),_e(3,Lwe,2,0,"mat-drawer-content")),2&n&&(xe(0,r.hasBackdrop?0:-1),I(3),xe(3,r._content?-1:3))},dependencies:[fk],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return i})(),mk=(()=>{class i extends fk{constructor(e,n,r,o,s){super(e,n,r,o,s)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Nt),x(At(()=>C2)),x(Ee),x(Kp),x(ge))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(n,r){2&n&&vl("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[Re([{provide:Vv,useExisting:i}]),Ae],ngContentSelectors:hk,decls:1,vars:0,template:function(n,r){1&n&&(Lt(),we(0))},encapsulation:2,changeDetection:0})}return i})(),x2=(()=>{class i extends zG{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=$e(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=$i(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=$i(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275cmp=w({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(n,r){2&n&&(je("align",null),vl("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),Pe("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ae],ngContentSelectors:hk,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(n,r){1&n&&(Lt(),D(0,"div",0,1),we(2),E())},dependencies:[Vv],encapsulation:2,data:{animation:[HG.transformDrawer]},changeDetection:0})}return i})(),C2=(()=>{class i extends UG{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275cmp=w({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(n,r,o){if(1&n&&(ut(o,mk,5),ut(o,x2,5)),2&n){let s;he(s=fe())&&(r._content=s.first),he(s=fe())&&(r._allDrawers=s)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(n,r){2&n&&Pe("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[Re([{provide:w2,useExisting:i}]),Ae],ngContentSelectors:Wwe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,r){1&n&&(Lt(Uwe),_e(0,Hwe,1,2,"div",0),we(1),we(2,1),_e(3,zwe,2,0,"mat-sidenav-content")),2&n&&(xe(0,r.hasBackdrop?0:-1),I(3),xe(3,r._content?-1:3))},dependencies:[mk],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return i})(),D2=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,nf,nf,Ot]})}return i})(),qwe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Ot]})}return i})();class pk{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,n=!0,r){this._multiple=t,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new de,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(n=>this._markSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(n=>this._unmarkSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,n=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}let k2=(()=>{class i{constructor(){this._listeners=[]}notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const WG=["*"],$G=["unscopedContent"],Kwe=["text"],Jwe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Ywe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],GG=new V("ListOption");let gk=(()=>{class i{constructor(e){this._elementRef=e}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee))};static#t=this.\u0275dir=ne({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),qG=(()=>{class i{constructor(e){this._elementRef=e}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee))};static#t=this.\u0275dir=ne({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),mxe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),KG=(()=>{class i{constructor(e){this._listOption=e}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static#e=this.\u0275fac=function(n){return new(n||i)(x(GG,8))};static#t=this.\u0275dir=ne({type:i,hostVars:4,hostBindings:function(n,r){2&n&&Pe("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return i})(),pxe=(()=>{class i extends KG{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275dir=ne({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Ae]})}return i})(),gxe=(()=>{class i extends KG{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275dir=ne({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Ae]})}return i})();const _xe=new V("MAT_LIST_CONFIG");let xg=(()=>{class i{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=ee(_xe,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,hostVars:1,hostBindings:function(n,r){2&n&&je("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),E2=(()=>{class i{set lines(e){this._explicitLines=$i(e,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=$e(e)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(e){this._disabled=$e(e)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(e,n,r,o,s,a){this._elementRef=e,this._ngZone=n,this._listBase=r,this._platform=o,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new Ue,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=s||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===a,r&&!r._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Fv(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Hi(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();const n=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===n),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===n),this._hasUnscopedTextContent){const o=0===this._titles.length&&1===n;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!(!e.textContent||!e.textContent.trim()))}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(ge),x(xg,8),x(Bi),x(ru,8),x(Ui,8))};static#t=this.\u0275dir=ne({type:i,contentQueries:function(n,r,o){if(1&n&&(ut(o,pxe,4),ut(o,gxe,4)),2&n){let s;he(s=fe())&&(r._avatars=s),he(s=fe())&&(r._icons=s)}},hostVars:4,hostBindings:function(n,r){2&n&&(je("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),Pe("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),JG=(()=>{class i extends E2{get activated(){return this._activated}set activated(e){this._activated=$e(e)}constructor(e,n,r,o,s,a){super(e,n,r,o,s,a),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(ge),x(xg,8),x(Bi),x(ru,8),x(Ui,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(n,r,o){if(1&n&&(ut(o,qG,5),ut(o,gk,5),ut(o,mxe,5)),2&n){let s;he(s=fe())&&(r._lines=s),he(s=fe())&&(r._titles=s),he(s=fe())&&(r._meta=s)}},viewQuery:function(n,r){if(1&n&&(Pt($G,5),Pt(Kwe,5)),2&n){let o;he(o=fe())&&(r._unscopedContent=o.first),he(o=fe())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(n,r){2&n&&(je("aria-current",r._getAriaCurrent()),Pe("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",0!==r._avatars.length)("mdc-list-item--with-leading-icon",0!==r._icons.length)("mdc-list-item--with-trailing-meta",0!==r._meta.length)("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Ae],ngContentSelectors:Ywe,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(n,r){1&n&&(Lt(Jwe),we(0),D(1,"span",0),we(2,1),we(3,2),D(4,"span",1,2),Q("cdkObserveContent",function(){return r._updateItemLines(!0)}),we(6,3),E()(),we(7,4),we(8,5),q(9,"div",3))},dependencies:[lz],encapsulation:2,changeDetection:0})}return i})(),XG=(()=>{class i extends xg{constructor(){super(...arguments),this._isNonInteractive=!1}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275cmp=w({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Re([{provide:xg,useExisting:i}]),Ae],ngContentSelectors:WG,decls:1,vars:0,template:function(n,r){1&n&&(Lt(),we(0))},styles:['@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}'],encapsulation:2,changeDetection:0})}return i})(),S2=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[eO,Fc,Ot,Uc,Oz,qwe]})}return i})(),ZG=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-chat-user-profile"]],inputs:{profile:"profile"},standalone:!0,features:[vi],decls:8,vars:3,consts:[[1,"profile"],["alt","Avatar image",1,"avatar",3,"src"]],template:function(n,r){1&n&&(D(0,"div",0),q(1,"img",1),D(2,"div")(3,"u")(4,"b"),R(5),E(),R(6),E(),R(7,": "),E()()),2&n&&(I(1),K("src",r.profile.avatarUrl,A),I(4),qt(r.profile.name),I(1),Li(" (",r.profile.pronouns,")"))},styles:[".avatar[_ngcontent-%COMP%]{border-radius:50%;width:40px}.profile[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center}"]})}return i})(),QG=(()=>{class i{dateStrOfTimestamp(e){const n=new Date(e);return`${n.getFullYear()} - ${n.getMonth()-n.getDate()}: ${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-chat-user-message"]],inputs:{message:"message"},standalone:!0,features:[vi],decls:7,vars:3,consts:[[1,"flex-container"],[1,"date"],[1,"profile_and_message"],[3,"profile"],[1,"message"]],template:function(n,r){1&n&&(D(0,"div",0)(1,"div",1),R(2),E(),D(3,"div",2),q(4,"app-chat-user-profile",3),D(5,"div",4),R(6),E()()()),2&n&&(I(2),qt(r.dateStrOfTimestamp(r.message.timestamp)),I(2),K("profile",r.message.fromProfile),I(2),qt(r.message.text))},dependencies:[ZG],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;margin:0 0 10px;list-style:none;padding:10px;width:calc(100% - 25px);background:#fff;border-radius:2px}.message[_ngcontent-%COMP%]{margin-left:10px}.date[_ngcontent-%COMP%]{font-size:10px;color:#aaa;margin-left:6px}.profile_and_message[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center}"]})}return i})(),e7=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-chat-discuss-items-message"]],standalone:!0,features:[vi],decls:2,vars:0,template:function(n,r){1&n&&(D(0,"p"),R(1,"chat-discuss-items-message works!"),E())}})}return i})(),xxe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-chat-mediator-profile"]],standalone:!0,features:[vi],decls:6,vars:0,consts:[[1,"profile"],["src","assets/avatars/they.png","alt","Avatar image",1,"avatar"]],template:function(n,r){1&n&&(D(0,"div",0),q(1,"img",1),D(2,"div")(3,"u")(4,"b"),R(5,"Mediator: "),E()()()())},styles:[".avatar[_ngcontent-%COMP%]{border-radius:50%;width:40px}.profile[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center}"]})}return i})(),t7=(()=>{class i{dateStrOfTimestamp(e){const n=new Date(e);return`${n.getFullYear()} - ${n.getMonth()-n.getDate()}: ${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-chat-mediator-message"]],inputs:{message:"message"},standalone:!0,features:[vi],decls:7,vars:2,consts:[[1,"flex-container"],[1,"date"],[1,"profile_and_message"],[1,"message"]],template:function(n,r){1&n&&(D(0,"div",0)(1,"div",1),R(2),E(),D(3,"div",2),q(4,"app-chat-mediator-profile"),D(5,"div",3),R(6),E()()()),2&n&&(I(2),qt(r.dateStrOfTimestamp(r.message.timestamp)),I(4),qt(r.message.text))},dependencies:[xxe]})}return i})();function Cxe(i,t){1&i&&q(0,"app-chat-user-message",7),2&i&&K("message",ie().$implicit)}function Dxe(i,t){1&i&&q(0,"app-chat-mediator-message",7),2&i&&K("message",ie().$implicit)}function kxe(i,t){1&i&&q(0,"app-chat-discuss-items-message")}function Exe(i,t){1&i&&q(0,"div")}function Sxe(i,t){if(1&i&&(D(0,"div",6),_e(1,Cxe,1,1,"app-chat-user-message",7)(2,Dxe,1,1)(3,kxe,1,0)(4,Exe,1,0),E()),2&i){const e=t.$implicit;I(1),xe(1,"userMessage"===e.messageType?1:"mediatorMessage"===e.messageType?2:"discussItemsMessage"===e.messageType?3:4)}}let i7=(()=>{class i{constructor(e){this.message="";const{participant:n,stageData:r}=e.getParticipantAndStage(Kt.groupChat);this.stageData=r,this.participant=n,this.messages=xn(()=>this.stageData().messages)}sendMessage(){this.participant.sendMessage(this.message),this.message=""}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-exp-chat"]],standalone:!0,features:[vi],decls:12,vars:2,consts:[[1,"messages"],[1,"message-form"],[3,"profile"],[1,"full-width"],["matInput","","placeholder","Write your message",3,"ngModel","ngModelChange"],["color","primary","mat-button","",3,"click"],[1,"message"],[3,"message"],["class","message"]],template:function(n,r){1&n&&(D(0,"div",0),Yr(1,Sxe,5,1,"div",8,up),E(),D(3,"div",1),q(4,"app-chat-user-profile",2),D(5,"mat-form-field",3)(6,"mat-label"),R(7,"Message to send"),E(),D(8,"input",4),Q("ngModelChange",function(s){return r.message=s}),E()(),D(9,"button",5),Q("click",function(){return r.sendMessage()}),D(10,"span"),R(11,"Send"),E()()()),2&n&&(I(1),Xr(r.messages()),I(3),K("profile",r.participant.userData().profile),I(4),K("ngModel",r.message))},dependencies:[QG,e7,t7,ZG,Jo,su,Il,Ba,Cl,Zd,Qd,Cs,ou,Ha,au],styles:[".message-form[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center}"]})}return i})();function Mxe(i,t){1&i&&(D(0,"div",2),R(1,"Please hold for everyone else to reach the end of the experiment..."),E())}function Axe(i,t){if(1&i&&(D(0,"div",3),R(1," The leader is "),D(2,"strong"),R(3),E()()),2&i){const e=ie();I(3),qt(e.finalLeader())}}let Txe=(()=>{class i{constructor(e){this.stateService=e;const{participant:n,stageData:r}=this.stateService.getParticipantAndStage(Kt.revealVoted);this.stageData=r(),this.participant=n,this.everyoneReachedTheEnd=xn(()=>Object.values(this.participant.experiment().participants).map(s=>s.futureStageNames.length).every(s=>1===s)),this.finalLeader=xn(()=>{const o=Object.values(this.participant.experiment().participants),s={};o.forEach(({userId:l})=>{s[l]=0});for(const l of o){const c=l.stageMap[this.stageData.pendingVoteStageName].config;for(const u of Object.keys(c)){const f=c[u];"positive"===f?s[u]+=1:"negative"===f?s[u]-=1:"neutral"===f&&(s[u]+=0)}}return(0,iv.reverse)((0,iv.sortBy)(Object.entries(s).map(([l,c])=>({userId:l,vote:c})),["vote"]))[0].userId})}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-exp-leader-reveal"]],standalone:!0,features:[vi],decls:3,vars:1,consts:[[1,"main"],["class","hold-message-container"],[1,"hold-message-container"],[1,"leader-reveal-container"]],template:function(n,r){1&n&&(D(0,"div",0),_e(1,Mxe,2,0,"div",1)(2,Axe,4,1),E()),2&n&&(I(1),xe(1,r.everyoneReachedTheEnd()?2:1))},styles:[".main[_ngcontent-%COMP%]{padding:2rem}.hold-message-container[_ngcontent-%COMP%]{font-size:1.1rem;font-style:italic}.leader-reveal-container[_ngcontent-%COMP%]{font-size:1.1rem}"]})}return i})();const Ixe=["input"],Oxe=["*"];let n7=0;class r7{constructor(t,e){this.source=t,this.value=e}}const Rxe={provide:Ir,useExisting:At(()=>_k),multi:!0},o7=new V("MatRadioGroup"),Pxe=new V("mat-radio-default-options",{providedIn:"root",factory:function Fxe(){return{color:"accent"}}});let _k=(()=>{class i{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=$e(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+n7++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new pe}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(n=>{n.checked=this.value===n.value,n.checked&&(this._selected=n)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new r7(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(n){return new(n||i)(x(Nt))};static#t=this.\u0275dir=ne({type:i,selectors:[["mat-radio-group"]],contentQueries:function(n,r,o){if(1&n&&ut(o,bk,5),2&n){let s;he(s=fe())&&(r._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[Re([Rxe,{provide:o7,useExisting:i}])]})}return i})();class Nxe{constructor(t){this._elementRef=t}}const Lxe=pD(jp(Nxe));let bk=(()=>{class i extends Lxe{get checked(){return this._checked}set checked(e){const n=$e(e);this._checked!==n&&(this._checked=n,n&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!n&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),n&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled($e(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=$e(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,s,a,l,c){super(n),this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=s,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++n7,this.id=this._uniqueId,this.change=new pe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===a,c&&(this.tabIndex=$i(c,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,n)=>{e!==this.id&&n===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new r7(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let n;if(n=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,n!==this._previousTabIndex){const r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",n+""),this._previousTabIndex=n)}}static#e=this.\u0275fac=function(n){return new(n||i)(x(o7,8),x(Ee),x(Nt),x(Tl),x(k2),x(Ui,8),x(Pxe,8),mo("tabindex"))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-radio-button"]],viewQuery:function(n,r){if(1&n&&Pt(Ixe,5),2&n){let o;he(o=fe())&&(r._inputElement=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(n,r){1&n&&Q("focus",function(){return r._inputElement.nativeElement.focus()}),2&n&&(je("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Pe("mat-primary","primary"===r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("mat-mdc-radio-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],features:[Ae],ngContentSelectors:Oxe,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(n,r){if(1&n&&(Lt(),D(0,"div",0,1)(2,"div",2)(3,"div",3),Q("click",function(s){return r._onTouchTargetClick(s)}),E(),D(4,"input",4,5),Q("change",function(s){return r._onInputInteraction(s)}),E(),D(6,"div",6),q(7,"div",7)(8,"div",8),E(),D(9,"div",9),q(10,"div",10),E()(),D(11,"label",11),we(12),E()()),2&n){const o=Qn(1);Pe("mdc-form-field--align-end","before"==r.labelPosition),I(2),Pe("mdc-radio--disabled",r.disabled),I(2),K("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),je("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),I(5),K("matRippleTrigger",o)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),I(2),K("for",r.inputId)}},dependencies:[zc],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return i})(),M2=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Fc,Uc,Ot]})}return i})();const Bxe=(i,t)=>t.userId;function Vxe(i,t){if(1&i){const e=Ci();D(0,"label",1),R(1),E(),D(2,"mat-radio-group",2),Q("change",function(r){const s=He(e).$implicit;return Se(ie().setVote(r,s.userId))}),D(3,"mat-radio-button",3),R(4),E(),D(5,"mat-radio-button",3),R(6),E(),D(7,"mat-radio-button",3),R(8),E(),D(9,"button",4),Q("click",function(){const o=He(e).$implicit;return Se(ie().resetVote(o.userId))}),R(10,"Clear"),E()(),q(11,"br")}if(2&i){const e=t.$implicit,n=ie();K("id",e.userId),I(1),Oh("",e.profile.name," (",e.profile.pronouns,"):"),I(1),K("value",n.votes[e.userId]),I(1),K("value",n.LeaderVote.POSITIVE),I(1),Li(" ",n.LeaderVote.POSITIVE," "),I(1),K("value",n.LeaderVote.NEUTRAL),I(1),Li(" ",n.LeaderVote.NEUTRAL," "),I(1),K("value",n.LeaderVote.NEGATIVE),I(1),Li(" ",n.LeaderVote.NEGATIVE," ")}}let s7=(()=>{class i{constructor(e){this.stateService=e,this.LeaderVote=nv;const{participant:n,stageData:r}=this.stateService.getParticipantAndStage(Kt.voteForLeader);this.votes=r(),this.participant=n,this.otherParticipants=xn(()=>{const s=this.participant.userData().userId;return Object.values(this.participant.experiment().participants).filter(l=>l.userId!==s)});const o={};for(const s of this.otherParticipants())o[s.userId]=s,s.userId in this.votes||(this.votes[s.userId]=nv.NOT_RATED);Object.keys(this.votes).forEach(s=>{s in o||delete this.votes[s]})}isComplete(){let e=!0;return this.otherParticipants().forEach(n=>{(!(n.userId in this.votes)||this.votes[n.userId]===nv.NOT_RATED)&&(e=!1)}),e}setVote(e,n){const{value:r}=e;this.votes[n]=r,this.participant.editStageData(()=>this.votes)}resetVote(e){this.votes[e]=nv.NOT_RATED,this.participant.editStageData(()=>this.votes)}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-exp-leader-vote"]],standalone:!0,features:[vi],decls:3,vars:0,consts:[[1,"main"],[3,"id"],[1,"vote-radio-group",3,"value","change"],[1,"vote-radio-button",3,"value"],["mat-button","","color","accent",1,"vote-clear-button",3,"click"]],template:function(n,r){1&n&&(D(0,"div",0),Yr(1,Vxe,12,10,null,null,Bxe),E()),2&n&&(I(1),Xr(r.otherParticipants()))},dependencies:[M2,_k,bk,Cs,ou],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem}label[_ngcontent-%COMP%]{font-weight:700;-webkit-user-select:none;user-select:none}.vote-radio-group[_ngcontent-%COMP%]{display:flex;align-items:center}.vote-radio-group[_ngcontent-%COMP%] .vote-radio-button[_ngcontent-%COMP%]{margin:5px;-webkit-user-select:none;user-select:none}.vote-radio-group[_ngcontent-%COMP%] .vote-clear-button[_ngcontent-%COMP%]{margin-left:10px}"]})}return i})(),a7=(()=>{class i{constructor(e){this.stateService=e;const{participant:n,stageData:r}=this.stateService.getParticipantAndStage(Kt.setProfile);this.profile=xn(()=>(console.log("ExpProfileComponent stage data: ",r()),r())),this.participant=n}isComplete(){return""!==this.profile().avatarUrl&&""!==this.profile().name&&""!==this.profile().pronouns}updateName(e){console.log("updateName",e),this.participant.editStageData(n=>{n.name=e,this.participant.setProfile(n)})}updatePronouns(e){console.log("updatePronouns",e),e.value!==this.participant.userData().profile.pronouns&&this.participant.editStageData(n=>{n.pronouns=e.value,this.participant.setProfile(n)})}updateAvatarUrl(e){console.log("updateAvatarUrl",e),this.participant.editStageData(n=>{n.avatarUrl=e.value,this.participant.setProfile(n)})}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-exp-profile"]],standalone:!0,features:[vi],decls:31,vars:7,consts:[[1,"main"],[1,"full-width"],["matInput","","placeholder","Write your response",3,"ngModel","ngModelChange"],[1,"pronouns-radio-group",3,"change"],["value","She/Her",1,"pronouns-radio-button",3,"checked"],["value","They/Them",1,"pronouns-radio-button",3,"checked"],["value","He/Him",1,"pronouns-radio-button",3,"checked"],[1,"avatar-radio-group",3,"change"],["value","/assets/avatars/she.png",1,"avatar-radio-button",3,"checked"],["src","/assets/avatars/she.png","alt","Avatar Female","width","72","height","77"],["value","/assets/avatars/they.png",1,"avatar-radio-button",3,"checked"],["src","/assets/avatars/they.png","alt","Avatar Neutral","width","72","height","77"],["value","/assets/avatars/he.png",1,"avatar-radio-button",3,"checked"],["src","/assets/avatars/he.png","alt","Avatar Male","width","72","height","77"]],template:function(n,r){1&n&&(D(0,"div",0)(1,"h2"),R(2,"Profile Setting"),E(),D(3,"p"),q(4,"br")(5,"br"),R(6," Please select your pseudo. This will be used to refer to you in the app. "),E(),D(7,"mat-form-field",1)(8,"mat-label"),R(9,"My Name"),E(),D(10,"input",2),Q("ngModelChange",function(s){return r.updateName(s)}),E()(),D(11,"p"),R(12,"Please select your preferred pronouns. This will be used to refer to you in the app."),E(),D(13,"mat-radio-group",3),Q("change",function(s){return r.updatePronouns(s)}),D(14,"mat-radio-button",4),R(15,"She/Her"),E(),D(16,"mat-radio-button",5),R(17,"They/Them"),E(),D(18,"mat-radio-button",6),R(19,"He/Him"),E()(),D(20,"p"),q(21,"br")(22,"br"),R(23," Please select your avatar. This will be used to refer to you in the app. "),E(),D(24,"mat-radio-group",7),Q("change",function(s){return r.updateAvatarUrl(s)}),D(25,"mat-radio-button",8),q(26,"img",9),E(),D(27,"mat-radio-button",10),q(28,"img",11),E(),D(29,"mat-radio-button",12),q(30,"img",13),E()()()),2&n&&(I(10),K("ngModel",r.profile().name),I(4),K("checked","She/Her"===r.profile().pronouns),I(2),K("checked","They/Them"===r.profile().pronouns),I(2),K("checked","He/Him"===r.profile().pronouns),I(7),K("checked","/assets/avatars/she.png"===r.profile().avatarUrl),I(2),K("checked","/assets/avatars/they.png"===r.profile().avatarUrl),I(2),K("checked","/assets/avatars/he.png"===r.profile().avatarUrl))},dependencies:[M2,_k,bk,Cs,Jo,su,Il,Ha,au,Ba,Cl,Zd,Qd,tv],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem}label[_ngcontent-%COMP%]{font-weight:700;-webkit-user-select:none;user-select:none}.pronouns-radio-group[_ngcontent-%COMP%]{display:flex;align-items:center}.pronouns-radio-group[_ngcontent-%COMP%] .pronouns-radio-button[_ngcontent-%COMP%]{margin:5px;-webkit-user-select:none;user-select:none}.avatar-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.avatar-radio-button[_ngcontent-%COMP%]{margin:5px}"]})}return i})();const Hxe=["knob"],zxe=["valueIndicatorContainer"];function Uxe(i,t){if(1&i&&(D(0,"div",4,5)(2,"div",6)(3,"span",7),R(4),E()()()),2&i){const e=ie();I(4),qt(e.valueIndicatorText)}}const Wxe=["trackActive"];function jxe(i,t){if(1&i&&q(0,"div"),2&i){const e=t.$implicit,n=t.$index,r=ie(3);wb(0===e?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),vl("transform",r._calcTickMarkTransform(n))}}function $xe(i,t){1&i&&Yr(0,jxe,1,4,"div",9,Ah),2&i&&Xr(ie(2)._tickMarks)}function Gxe(i,t){if(1&i&&(D(0,"div",7,8),_e(2,$xe,2,0),E()),2&i){const e=ie();I(2),xe(2,e._cachedWidth?2:-1)}}function qxe(i,t){if(1&i&&q(0,"mat-slider-visual-thumb",6),2&i){const e=ie();K("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}const Kxe=["*"],vk=new V("_MatSlider"),l7=new V("_MatSliderThumb"),c7=new V("_MatSliderRangeThumb"),d7=new V("_MatSliderVisualThumb");let Jxe=(()=>{class i{constructor(e,n,r,o){this._cdr=e,this._ngZone=n,this._slider=o,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=s=>{if(this._sliderInput._isFocused)return;const a=this._hostElement.getBoundingClientRect(),l=this._slider._isCursorOnSliderThumb(s,a);this._isHovered=l,l?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=s=>{0===s.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=r.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const e=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{e.addEventListener("pointermove",this._onPointerMove),e.addEventListener("pointerdown",this._onDragStart),e.addEventListener("pointerup",this._onDragEnd),e.addEventListener("pointerleave",this._onMouseLeave),e.addEventListener("focus",this._onFocus),e.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const e=this._sliderInputEl;e.removeEventListener("pointermove",this._onPointerMove),e.removeEventListener("pointerdown",this._onDragStart),e.removeEventListener("pointerup",this._onDragEnd),e.removeEventListener("pointerleave",this._onMouseLeave),e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return 0===e?.state||1===e?.state}_showRipple(e,n){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(1===this.thumbPosition?2:1)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||n))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const n=this._getSibling();n._isShowingAnyRipple()||(this._hideValueIndicator(),n._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(1===this.thumbPosition?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static#e=this.\u0275fac=function(n){return new(n||i)(x(Nt),x(ge),x(Ee),x(vk))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(n,r){if(1&n&&(Pt(zc,5),Pt(Hxe,5),Pt(zxe,5)),2&n){let o;he(o=fe())&&(r._ripple=o.first),he(o=fe())&&(r._knob=o.first),he(o=fe())&&(r._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Re([{provide:d7,useExisting:i}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(n,r){1&n&&(_e(0,Uxe,5,1,"div",0),q(1,"div",1,2)(3,"div",3)),2&n&&(xe(0,r.discrete?0:-1),I(3),K("matRippleDisabled",!0))},dependencies:[zc],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return i})();const Yxe=mD(pD(class{constructor(i){this._elementRef=i}}),"primary");let u7=(()=>{class i extends Yxe{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e);const n=this._getInput(2),r=this._getInput(1);n&&(n.disabled=this._disabled),r&&(r.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(e){this._discrete=$e(e),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(e){this._showTickMarks=$e(e)}get min(){return this._min}set min(e){const n=$i(e,this._min);this._min!==n&&this._updateMin(n)}_updateMin(e){const n=this._min;this._min=e,this._isRange?this._updateMinRange({old:n,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange()}_updateMinRange(e){const n=this._getInput(2),r=this._getInput(1),o=n.value,s=r.value;r.min=e.new,n.min=Math.max(e.new,r.value),r.max=Math.min(n.max,n.value),r._updateWidthInactive(),n._updateWidthInactive(),e.newe.old?this._onTranslateXChangeBySideEffect(r,n):this._onTranslateXChangeBySideEffect(n,r),o!==n.value&&this._onValueChange(n),s!==r.value&&this._onValueChange(r)}_updateMaxNonRange(e){const n=this._getInput(2);if(n){const r=n.value;n.max=e,n._updateThumbUIByValue(),this._updateTrackUI(n),r!==n.value&&this._onValueChange(n)}}get step(){return this._step}set step(e){const n=$i(e,this._step);this._step!==n&&this._updateStep(n)}_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const e=this._getInput(2),n=this._getInput(1),r=e.value,o=n.value,s=n.value;e.min=this._min,n.max=this._max,e.step=this._step,n.step=this._step,this._platform.SAFARI&&(e.value=e.value,n.value=n.value),e.min=Math.max(this._min,n.value),n.max=Math.min(this._max,e.value),n._updateWidthInactive(),e._updateWidthInactive(),e.value`${l}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=ee(Bi),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===a,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const e=this._getInput(2),n=this._getInput(1);this._isRange=!!e&&!!n,this._cdr.detectChanges();const r=this._getThumb(2);this._rippleRadius=r._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(e,n):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue()}_initUIRange(e,n){e.initProps(),e.initUI(),n.initProps(),n.initUI(),e._updateMinMax(),n._updateMinMax(),e._updateStaticStyles(),n._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),n._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const e=this._getInput(2),n=this._getInput(1);e._setIsLeftThumb(),n._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),n.translateX=n._calcTranslateXByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateWidthInactive(),n._updateWidthInactive(),e._updateThumbUIByValue(),n._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(e=2){const n=this._getInput(e);return n?n.value:this.min}_skipUpdate(){return!(!this._getInput(1)?._skipUIUpdate&&!this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(e){const n=this._trackActive.nativeElement.style;n.left=e.left,n.right=e.right,n.transformOrigin=e.transformOrigin,n.transform=e.transform}_calcTickMarkTransform(e){return`translateX(${e*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e))}_onTranslateXChangeBySideEffect(e,n){this._hasViewInitialized&&(e._updateThumbUIByValue(),n._updateThumbUIByValue())}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const e=this._getInput(2),n=this._getInput(1);e._updateThumbUIByValue(),n._updateThumbUIByValue(),e._updateStaticStyles(),n._updateStaticStyles(),e._updateMinMax(),n._updateMinMax(),e._updateWidthInactive(),n._updateWidthInactive()}else{const e=this._getInput(2);e&&e._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const e=this._getInput(1),n=this._getInput(2);return!(!e||!n)&&n.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){const n=e.getSibling(),r=this._getThumb(e.thumbPosition);this._getThumb(n.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),r._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e))}_updateThumbUI(e){this._skipUpdate()||(this._getThumb(2===e.thumbPosition?2:1)._hostElement.style.transform=`translateX(${e.translateX}px)`)}_updateValueIndicatorUI(e){if(this._skipUpdate())return;const n=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext=n:e._hostElement.setAttribute("aria-valuetext",n),this.discrete){1===e.thumbPosition?this.startValueIndicatorText=n:this.endValueIndicatorText=n;const r=this._getThumb(e.thumbPosition);n.length<3?r._hostElement.classList.add("mdc-slider__thumb--short-value"):r._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const e=this._getInput(2),n=this._getInput(1);e&&this._updateValueIndicatorUI(e),n&&this._updateValueIndicatorUI(n)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const e=this._step&&this._step>0?this._step:1,r=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*r-6}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e))}_updateTrackUIRange(e){const n=e.getSibling();if(!n||!this._cachedWidth)return;const r=Math.abs(n.translateX-e.translateX)/this._cachedWidth;this._setTrackActiveStyles(e._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-n.translateX+"px",transformOrigin:"right",transform:`scaleX(${r})`}:{left:`${n.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${r})`})}_updateTrackUINonRange(e){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(e){const n=this._getValue();let r=Math.max(Math.round((n-this.min)/e),0),o=Math.max(Math.round((this.max-n)/e),0);this._isRtl?r++:o++,this._tickMarks=Array(r).fill(0).concat(Array(o).fill(1))}_updateTickMarkUIRange(e){const n=this._getValue(),r=this._getValue(1),o=Math.max(Math.floor((r-this.min)/e),0),s=Math.max(Math.floor((n-r)/e)+1,0),a=Math.max(Math.floor((this.max-n)/e),0);this._tickMarks=Array(o).fill(1).concat(Array(s).fill(0),Array(a).fill(1))}_getInput(e){return 2===e&&this._input?this._input:this._inputs?.length?1===e?this._inputs.first:this._inputs.last:void 0}_getThumb(e){return 2===e?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(e,n){const r=n.width/2,l=e.clientY-(n.y+r);return Math.pow(e.clientX-(n.x+r),2)+Math.pow(l,2)yk),multi:!0};let yk=(()=>{class i{get value(){return $i(this._hostElement.value)}set value(e){const n=$i(e).toString();this._hasSetInitialValue?this._isActive||(this._hostElement.value=n,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()):this._initialValue=n}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}get min(){return $i(this._hostElement.min)}set min(e){this._hostElement.min=$i(e).toString(),this._cdr.detectChanges()}get max(){return $i(this._hostElement.max)}set max(e){this._hostElement.max=$i(e).toString(),this._cdr.detectChanges()}get step(){return $i(this._hostElement.step)}set step(e){this._hostElement.step=$i(e).toString(),this._cdr.detectChanges()}get disabled(){return $e(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=$e(e),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(e){this._isFocused=e}constructor(e,n,r,o){this._ngZone=e,this._elementRef=n,this._cdr=r,this._slider=o,this.valueChange=new pe,this.dragStart=new pe,this.dragEnd=new pe,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new de,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=ee(Bi),this._hostElement=n.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!this.disabled&&0===e.button){if(this._platform.IOS){const n=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=n,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){const n=e.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,o=0===this._slider.step?1:this._slider.step,s=Math.floor((this._slider.max-this._slider.min)/o),c=Math.round((this._slider._isRtl?1-n/r:n/r)*s)/s*(this._slider.max-this._slider.min)+this._slider.min,u=Math.round(c/o)*o;if(u===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation}));this.value=u,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){return Math.max(Math.min(e,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,n){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(n)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||null!==e)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static#e=this.\u0275fac=function(n){return new(n||i)(x(ge),x(Ee),x(Nt),x(vk))};static#t=this.\u0275dir=ne({type:i,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(n,r){1&n&&Q("change",function(){return r._onChange()})("input",function(){return r._onInput()})("blur",function(){return r._onBlur()})("focus",function(){return r._onFocus()}),2&n&&je("aria-valuetext",r._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[Re([Zxe,{provide:l7,useExisting:i}])]})}return i})(),A2=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Uc]})}return i})();const tCe=["input"],iCe=["label"],nCe=["*"],rCe=new V("mat-checkbox-default-options",{providedIn:"root",factory:h7});function h7(){return{color:"accent",clickAction:"check-indeterminate"}}const oCe={provide:Ir,useExisting:At(()=>wk),multi:!0};class sCe{}let aCe=0;const f7=h7();let wk=(()=>{class i{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const n=new sCe;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,s,a){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._animationMode=s,this._options=a,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new pe,this.indeterminateChange=new pe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||f7,this.color=this._options.color||f7.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++aCe}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const n=e!=this._indeterminate;this._indeterminate=e,n&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_transitionCheckState(e){let n=this._currentCheckState,r=this._getAnimationTargetElement();if(n!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===n)return this._animationClasses.uncheckedToChecked;if(3==n)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===n?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===n?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===n?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static#e=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(Nt),x(ge),mo("tabindex"),x(Ui,8),x(rCe,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-checkbox"]],viewQuery:function(n,r){if(1&n&&(Pt(tCe,5),Pt(iCe,5),Pt(zc,5)),2&n){let o;he(o=fe())&&(r._inputElement=o.first),he(o=fe())&&(r._labelElement=o.first),he(o=fe())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,r){2&n&&(Qs("id",r.id),je("tabindex",null)("aria-label",null)("aria-labelledby",null),wb(r.color?"mat-"+r.color:"mat-accent"),Pe("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:["required","required",Ct],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:["disableRipple","disableRipple",Ct],tabIndex:["tabIndex","tabIndex",e=>null==e?void 0:function ute(i,t=NaN){return isNaN(parseFloat(i))||isNaN(Number(i))?t:Number(i)}(e)],color:"color",checked:["checked","checked",Ct],disabled:["disabled","disabled",Ct],indeterminate:["indeterminate","indeterminate",Ct]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Re([oCe]),dr],ngContentSelectors:nCe,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(n,r){if(1&n&&(Lt(),D(0,"div",0),Q("click",function(s){return r._preventBubblingFromLabel(s)}),D(1,"div",1,2)(3,"div",3),Q("click",function(){return r._onTouchTargetClick()}),E(),D(4,"input",4,5),Q("blur",function(){return r._onBlur()})("click",function(){return r._onInputClick()})("change",function(s){return r._onInteractionEvent(s)}),E(),q(6,"div",6),D(7,"div",7),sl(),D(8,"svg",8),q(9,"path",9),E(),fm(),q(10,"div",10),E(),q(11,"div",11),E(),D(12,"label",12,13),we(14),E()()),2&n){const o=Qn(2);Pe("mdc-form-field--align-end","before"==r.labelPosition),I(4),Pe("mdc-checkbox--selected",r.checked),K("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),je("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("name",r.name)("value",r.value),I(7),K("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),I(1),K("for",r.inputId)}},dependencies:[zc],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return i})(),m7=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})(),xk=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Uc,m7,Ot,m7]})}return i})(),dCe=(()=>{class i{updateCheckboxValue(e){this.question.edit(()=>{this.question.data.checkMark=e.checked})}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-survey-check-question"]],inputs:{question:"question"},standalone:!0,features:[vi],decls:3,vars:1,consts:[["required","",3,"change"]],template:function(n,r){1&n&&(D(0,"div")(1,"mat-checkbox",0),Q("change",function(s){return r.updateCheckboxValue(s)}),R(2),E()()),2&n&&(I(2),qt(r.question.data.questionText))},dependencies:[xk,wk],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem;width:540px}label[_ngcontent-%COMP%]{font-weight:700;-webkit-user-select:none;user-select:none}.pronouns-radio-group[_ngcontent-%COMP%]{display:flex;align-items:center}.pronouns-radio-group[_ngcontent-%COMP%] .pronouns-radio-button[_ngcontent-%COMP%]{margin:5px;-webkit-user-select:none;user-select:none}mat-slider[_ngcontent-%COMP%]{width:300px}.bound[_ngcontent-%COMP%]{word-wrap:break-word;width:150px}.item-pair[_ngcontent-%COMP%]{width:100%;margin:20px;display:flex;flex-direction:column;align-items:center;padding:16px;border-bottom:1px dashed lightgray}.item-pair[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:100%;font-size:1rem;margin-bottom:10px}.item-pair-displays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:16px;border-radius:16px;box-sizing:border-box;border:4px solid transparent;margin:0 6px;cursor:pointer;transition:all .1s ease-in-out}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item.selected[_ngcontent-%COMP%]{border-color:#5d79f7a9;background-color:#e2e4ec}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%]:hover{border:4px solid rgba(93,121,247,.661)}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:4px;padding:5px;width:150px;height:150px;object-fit:contain}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%] .item-pair-item-name[_ngcontent-%COMP%]{font-size:1rem;margin-top:5px}.item-pair-confidence[_ngcontent-%COMP%]{width:100%;margin-top:5px;padding:.75rem 1rem;border-radius:10px;display:flex;align-items:center;justify-content:space-between}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{margin-left:6px;border-radius:5px;padding:.125rem .25rem;background-color:#d0d8fc}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%] .value.not-rated[_ngcontent-%COMP%]{background-color:#e54938;color:#fff}.slider-container[_ngcontent-%COMP%]{margin-left:10px;display:flex;align-items:center}.slider-container[_ngcontent-%COMP%] .slider-end-label[_ngcontent-%COMP%]{opacity:.5;margin:8px}.slider-container[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:100px}"]})}return i})();function uCe(i,t){1&i&&(D(0,"span",13)(1,"b"),R(2," 50/50 \u{1f937}"),E()())}function hCe(i,t){1&i&&(D(0,"span",13),R(1,"50/50 \u{1f937}"),E())}function fCe(i,t){1&i&&(D(0,"span",13),R(1,"\u{1f44d}"),D(2,"b"),R(3," Full "),q(4,"br"),R(5,"confidence"),E()())}function mCe(i,t){1&i&&(D(0,"span",13),R(1,"\u{1f44d} Full "),q(2,"br"),R(3,"confidence"),E())}function pCe(i,t){if(1&i){const e=Ci();D(0,"div",7)(1,"div",8)(2,"strong"),R(3,"Confidence:"),E(),D(4,"span"),R(5),E()(),D(6,"div",9),_e(7,uCe,3,0,"span",10)(8,hCe,2,0),D(9,"mat-slider",11)(10,"input",12),Q("valueChange",function(r){return He(e),Se(ie().setConfidence(r))}),E()(),_e(11,fCe,6,0,"span",10)(12,mCe,4,0),E()()}if(2&i){const e=ie();I(4),lp("value ",null===e.question.data.rating.confidence?"not-rated":"",""),I(1),Li(" ",null!==e.question.data.rating.confidence?e.question.data.rating.confidence.toFixed(1):"Not rated"," "),I(2),xe(7,0===e.question.data.rating.confidence||null===e.question.data.rating.confidence?7:8),I(3),Pa("value",e.question.data.rating.confidence),I(1),xe(11,1===e.question.data.rating.confidence?11:12)}}let gCe=(()=>{class i{setChoice(e){this.question.edit(()=>{this.question.data.rating.choice=e})}setConfidence(e){this.question.edit(()=>{this.question.data.rating.confidence=e})}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-survey-rating-question"]],inputs:{question:"question"},standalone:!0,features:[vi],decls:13,vars:14,consts:[[1,"item-pair"],[1,"title"],[1,"item-pair-displays"],[3,"click"],[3,"src","alt"],[1,"item-pair-item-name"],["class","item-pair-confidence"],[1,"item-pair-confidence"],[1,"confidence-value"],[1,"slider-container"],["class","slider-end-label"],["min","0.5","max","1","step","0.1","discrete",""],["matSliderThumb","",3,"value","valueChange"],[1,"slider-end-label"]],template:function(n,r){1&n&&(D(0,"div",0)(1,"div",1),R(2),E(),D(3,"div",2)(4,"button",3),Q("click",function(){return r.setChoice("item1")}),q(5,"img",4),D(6,"span",5),R(7),E()(),D(8,"button",3),Q("click",function(){return r.setChoice("item2")}),q(9,"img",4),D(10,"span",5),R(11),E()()(),_e(12,pCe,13,7,"div",6),E()),2&n&&(I(2),qt(r.question.data.questionText),I(2),lp("item-pair-item ","item1"===r.question.data.rating.choice?"selected":"",""),I(1),Pa("src",r.question.data.rating.item1.imageUrl,A),Pa("alt",r.question.data.rating.item1.name),I(2),qt(r.question.data.rating.item1.name),I(1),lp("item-pair-item ","item2"===r.question.data.rating.choice?"selected":"",""),I(1),Pa("src",r.question.data.rating.item2.imageUrl,A),Pa("alt",r.question.data.rating.item2.name),I(2),qt(r.question.data.rating.item2.name),I(1),xe(12,null!==r.question.data.rating.choice?12:-1))},dependencies:[A2,u7,yk],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem;width:540px}label[_ngcontent-%COMP%]{font-weight:700;-webkit-user-select:none;user-select:none}.pronouns-radio-group[_ngcontent-%COMP%]{display:flex;align-items:center}.pronouns-radio-group[_ngcontent-%COMP%] .pronouns-radio-button[_ngcontent-%COMP%]{margin:5px;-webkit-user-select:none;user-select:none}mat-slider[_ngcontent-%COMP%]{width:300px}.bound[_ngcontent-%COMP%]{word-wrap:break-word;width:150px}.item-pair[_ngcontent-%COMP%]{width:100%;margin:20px;display:flex;flex-direction:column;align-items:center;padding:16px;border-bottom:1px dashed lightgray}.item-pair[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:100%;font-size:1rem;margin-bottom:10px}.item-pair-displays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:16px;border-radius:16px;box-sizing:border-box;border:4px solid transparent;margin:0 6px;cursor:pointer;transition:all .1s ease-in-out}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item.selected[_ngcontent-%COMP%]{border-color:#5d79f7a9;background-color:#e2e4ec}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%]:hover{border:4px solid rgba(93,121,247,.661)}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:4px;padding:5px;width:150px;height:150px;object-fit:contain}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%] .item-pair-item-name[_ngcontent-%COMP%]{font-size:1rem;margin-top:5px}.item-pair-confidence[_ngcontent-%COMP%]{width:100%;margin-top:5px;padding:.75rem 1rem;border-radius:10px;display:flex;align-items:center;justify-content:space-between}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{margin-left:6px;border-radius:5px;padding:.125rem .25rem;background-color:#d0d8fc}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%] .value.not-rated[_ngcontent-%COMP%]{background-color:#e54938;color:#fff}.slider-container[_ngcontent-%COMP%]{margin-left:10px;display:flex;align-items:center}.slider-container[_ngcontent-%COMP%] .slider-end-label[_ngcontent-%COMP%]{opacity:.5;margin:8px}.slider-container[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:100px}"]})}return i})(),_Ce=(()=>{class i{setSliderValue(e){this.question.edit(()=>{this.question.data.score=e})}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-survey-scale-question"]],inputs:{question:"question"},standalone:!0,features:[vi],decls:12,vars:4,consts:[[2,"white-space","pre-wrap"],[1,"bound"],["min","0","max","10","step","1","showTickMarks","","discrete",""],["matSliderThumb","",3,"value","valueChange"]],template:function(n,r){1&n&&(D(0,"div")(1,"h2",0),R(2),E()(),D(3,"table")(4,"tr")(5,"td",1),R(6),E(),D(7,"td")(8,"mat-slider",2)(9,"input",3),Q("valueChange",function(s){return r.setSliderValue(s)}),E()()(),D(10,"td",1),R(11),E()()()),2&n&&(I(2),Li(" ",r.question.data.questionText," "),I(4),qt(r.question.data.lowerBound),I(3),K("value",r.question.data.score),I(2),qt(r.question.data.upperBound))},dependencies:[A2,u7,yk],styles:["mat-slider[_ngcontent-%COMP%]{width:300px}.bound[_ngcontent-%COMP%]{word-wrap:break-word;width:150px}"]})}return i})(),bCe=(()=>{class i{updateAnswerText(e){console.log(e),this.question.edit(()=>{this.question.data.answerText=e})}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-survey-text-question"]],inputs:{question:"question"},standalone:!0,features:[vi],decls:4,vars:2,consts:[[1,"full-width"],["matInput","","placeholder","Write your response",3,"ngModel","ngModelChange"]],template:function(n,r){1&n&&(D(0,"mat-form-field",0)(1,"mat-label"),R(2),E(),D(3,"input",1),Q("ngModelChange",function(s){return r.updateAnswerText(s)}),E()()),2&n&&(I(2),qt(r.question.data.questionText),I(1),K("ngModel",r.question.data.answerText))},dependencies:[Ba,Cl,Zd,Qd,Jo,su,Il,Ha,au],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem;width:540px}label[_ngcontent-%COMP%]{font-weight:700;-webkit-user-select:none;user-select:none}.pronouns-radio-group[_ngcontent-%COMP%]{display:flex;align-items:center}.pronouns-radio-group[_ngcontent-%COMP%] .pronouns-radio-button[_ngcontent-%COMP%]{margin:5px;-webkit-user-select:none;user-select:none}mat-slider[_ngcontent-%COMP%]{width:300px}.bound[_ngcontent-%COMP%]{word-wrap:break-word;width:150px}"]})}return i})();class vCe{constructor(t,e,n){this.participant=t,this.survey=e,this.questionIndex=n,this.data=e().questions[this.questionIndex]}edit(t){const e=this.survey().questions,r=t(e[this.questionIndex]);r&&(e[this.questionIndex]=r),this.participant.editStageData(o=>{o.questions=e})}}function yCe(i,t){if(1&i&&q(0,"app-survey-check-question",1),2&i){const e=ie().$implicit,n=ie();K("question",n.questionAsKind(n.SurveyQuestionKind.CHECK,e))}}function wCe(i,t){if(1&i&&q(0,"app-survey-text-question",1),2&i){const e=ie().$implicit,n=ie();K("question",n.questionAsKind(n.SurveyQuestionKind.TEXT,e))}}function xCe(i,t){if(1&i&&q(0,"app-survey-rating-question",1),2&i){const e=ie().$implicit,n=ie();K("question",n.questionAsKind(n.SurveyQuestionKind.RATING,e))}}function CCe(i,t){if(1&i&&q(0,"app-survey-scale-question",1),2&i){const e=ie().$implicit,n=ie();K("question",n.questionAsKind(n.SurveyQuestionKind.SCALE,e))}}function DCe(i,t){if(1&i&&_e(0,yCe,1,1,"app-survey-check-question",1)(1,wCe,1,1)(2,xCe,1,1)(3,CCe,1,1),2&i){const e=t.$implicit,n=ie();xe(0,e.data.kind===n.SurveyQuestionKind.CHECK?0:e.data.kind===n.SurveyQuestionKind.TEXT?1:e.data.kind===n.SurveyQuestionKind.RATING?2:e.data.kind===n.SurveyQuestionKind.SCALE?3:-1)}}let p7=(()=>{class i{constructor(e){this.SurveyQuestionKind=ys;const{participant:n,stageData:r}=e.getParticipantAndStage(Kt.takeSurvey);this.stageData=r,this.participant=n,this.questions=xn(()=>r().questions.map((o,s)=>new vCe(this.participant,this.stageData,s)))}questionAsKind(e,n){return n}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-exp-survey"]],standalone:!0,features:[vi],decls:3,vars:0,consts:[[1,"main"],[3,"question"]],template:function(n,r){1&n&&(D(0,"div",0),Yr(1,DCe,4,1,null,null,Ah),E()),2&n&&(I(1),Xr(r.questions()))},dependencies:[Ba,tv,Jo,Ha,A2,dCe,gCe,_Ce,bCe],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem;width:540px}label[_ngcontent-%COMP%]{font-weight:700;-webkit-user-select:none;user-select:none}.pronouns-radio-group[_ngcontent-%COMP%]{display:flex;align-items:center}.pronouns-radio-group[_ngcontent-%COMP%] .pronouns-radio-button[_ngcontent-%COMP%]{margin:5px;-webkit-user-select:none;user-select:none}mat-slider[_ngcontent-%COMP%]{width:300px}.bound[_ngcontent-%COMP%]{word-wrap:break-word;width:150px}.item-pair[_ngcontent-%COMP%]{width:100%;margin:20px;display:flex;flex-direction:column;align-items:center;padding:16px;border-bottom:1px dashed lightgray}.item-pair[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:100%;font-size:1rem;margin-bottom:10px}.item-pair-displays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:16px;border-radius:16px;box-sizing:border-box;border:4px solid transparent;margin:0 6px;cursor:pointer;transition:all .1s ease-in-out}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item.selected[_ngcontent-%COMP%]{border-color:#5d79f7a9;background-color:#e2e4ec}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%]:hover{border:4px solid rgba(93,121,247,.661)}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:4px;padding:5px;width:150px;height:150px;object-fit:contain}.item-pair-displays[_ngcontent-%COMP%] .item-pair-item[_ngcontent-%COMP%] .item-pair-item-name[_ngcontent-%COMP%]{font-size:1rem;margin-top:5px}.item-pair-confidence[_ngcontent-%COMP%]{width:100%;margin-top:5px;padding:.75rem 1rem;border-radius:10px;display:flex;align-items:center;justify-content:space-between}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{margin-left:6px;border-radius:5px;padding:.125rem .25rem;background-color:#d0d8fc}.item-pair-confidence[_ngcontent-%COMP%] .confidence-value[_ngcontent-%COMP%] .value.not-rated[_ngcontent-%COMP%]{background-color:#e54938;color:#fff}.slider-container[_ngcontent-%COMP%]{margin-left:10px;display:flex;align-items:center}.slider-container[_ngcontent-%COMP%] .slider-end-label[_ngcontent-%COMP%]{opacity:.5;margin:8px}.slider-container[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:100px}"]})}return i})();function kCe(i,t){if(1&i&&(D(0,"li"),R(1),E()),2&i){const e=t.$implicit;I(1),qt(e)}}var Ny=function(i){return i.HeHim="He/Him",i.SheHer="She/Her",i.TheyThem="They/Them",i}(Ny||{});let g7=(()=>{class i{constructor(e){this.Pronouns=Ny;const{participant:n,stageData:r}=e.getParticipantAndStage(Kt.acceptTosAndSetProfile);this.stageData=r,this.participant=n}isOtherPronoun(e){return e!==Ny.HeHim&&e!==Ny.SheHer&&e!==Ny.TheyThem}updateCheckboxValue(e){this.participant.editStageData(n=>{n.acceptedTosTimestamp=e.checked?new Date:null})}updateName(e){this.participant.editStageData(n=>{n.name=e}),this.updateUserProfile()}updatePronouns(e){this.participant.editStageData(n=>{n.pronouns=e.value}),this.updateUserProfile()}updateOtherPronoun(e){this.participant.editStageData(n=>{n.pronouns=e}),this.updateUserProfile()}updateAvatarUrl(e){this.participant.editStageData(n=>{n.avatarUrl=e.value}),this.updateUserProfile()}updateUserProfile(){this.participant.edit(e=>{e.profile.avatarUrl=this.stageData().avatarUrl,e.profile.name=this.stageData().name,e.profile.pronouns=this.stageData().pronouns})}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-exp-tos-and-profile"]],standalone:!0,features:[vi],decls:50,vars:15,consts:[[1,"main"],[1,"full-width"],["matInput","","placeholder","Write your response",3,"ngModel","ngModelChange"],[1,"pronouns-radio-group",3,"change"],[1,"pronouns-radio-button",3,"checked","value"],[1,"avatar-container"],[1,"avatar-radio-group",3,"change"],["value","/assets/avatars/she.png",1,"avatar-radio-button",3,"checked"],["src","/assets/avatars/she.png","alt","Avatar Female","width","72","height","77"],["value","/assets/avatars/they.png",1,"avatar-radio-button",3,"checked"],["src","/assets/avatars/they.png","alt","Avatar Neutral","width","72","height","77"],["value","/assets/avatars/he.png",1,"avatar-radio-button",3,"checked"],["src","/assets/avatars/he.png","alt","Avatar Male","width","72","height","77"],["required","",3,"checked","change"]],template:function(n,r){1&n&&(D(0,"div",0)(1,"h2"),R(2,"Profile Setting"),E(),D(3,"p"),q(4,"br")(5,"br"),R(6," Please select your username. This will be used to refer to you in the app. "),E(),D(7,"mat-form-field",1)(8,"mat-label"),R(9,"My Name"),E(),D(10,"input",2),Q("ngModelChange",function(s){return r.updateName(s)}),E()(),D(11,"p"),R(12,"Please select your preferred pronouns. This will be used to refer to you in the app."),E(),D(13,"mat-radio-group",3),Q("change",function(s){return r.updatePronouns(s)}),D(14,"mat-radio-button",4),R(15),E(),D(16,"mat-radio-button",4),R(17),E(),D(18,"mat-radio-button",4),R(19),E()(),D(20,"span"),R(21,"Other: "),D(22,"mat-form-field",1)(23,"mat-label"),R(24,"My Pronouns"),E(),D(25,"input",2),Q("ngModelChange",function(s){return r.updateOtherPronoun(s)}),E()()(),D(26,"div",5)(27,"div"),q(28,"br")(29,"br"),R(30," Please select your avatar. This will be used to refer to you in the app. "),E(),D(31,"mat-radio-group",6),Q("change",function(s){return r.updateAvatarUrl(s)}),D(32,"mat-radio-button",7),q(33,"img",8),E(),D(34,"mat-radio-button",9),q(35,"img",10),E(),D(36,"mat-radio-button",11),q(37,"img",12),E()()(),D(38,"p"),q(39,"br")(40,"br"),E(),D(41,"h2"),R(42,"Terms of Service"),E(),D(43,"p"),R(44,"Please read and accept the following terms of service before proceeding:"),E(),D(45,"ul"),Yr(46,kCe,2,1,"li",null,Ah),E(),D(48,"mat-checkbox",13),Q("change",function(s){return r.updateCheckboxValue(s)}),R(49," I accept the terms of service "),E()()),2&n&&(I(10),K("ngModel",r.stageData().name),I(4),Pa("value",r.Pronouns.SheHer),K("checked",r.stageData().pronouns===r.Pronouns.SheHer),I(1),qt(r.Pronouns.SheHer),I(1),Pa("value",r.Pronouns.TheyThem),K("checked",r.stageData().pronouns===r.Pronouns.TheyThem),I(1),qt(r.Pronouns.TheyThem),I(1),Pa("value",r.Pronouns.HeHim),K("checked",r.stageData().pronouns===r.Pronouns.HeHim),I(1),qt(r.Pronouns.HeHim),I(6),K("ngModel",r.stageData().pronouns),I(7),K("checked","/assets/avatars/she.png"===r.stageData().avatarUrl),I(2),K("checked","/assets/avatars/they.png"===r.stageData().avatarUrl),I(2),K("checked","/assets/avatars/he.png"===r.stageData().avatarUrl),I(10),Xr(r.stageData().tosLines),I(2),K("checked",null!==r.stageData().acceptedTosTimestamp))},dependencies:[xk,wk,M2,_k,bk,Cs,Jo,su,Il,Ha,au,Ba,Cl,Zd,Qd,tv],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem}label[_ngcontent-%COMP%]{font-weight:700;-webkit-user-select:none;user-select:none}.pronouns-radio-group[_ngcontent-%COMP%]{display:flex;align-items:center}.pronouns-radio-group[_ngcontent-%COMP%] .pronouns-radio-button[_ngcontent-%COMP%]{margin:5px;-webkit-user-select:none;user-select:none}.avatar-radio-group[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;margin:15px;column-gap:20px}.avatar-radio-button[_ngcontent-%COMP%]{margin:5px}.avatar-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap}"]})}return i})(),_7=(()=>{class i{constructor(e){const{participant:n,stageData:r}=e.getParticipantAndStage(Kt.acceptTos);this.stageData=r(),this.participant=n}updateCheckboxValue(e){this.stageData.acceptedTosTimestamp=e.checked?new Date:null,this.participant.editStageData(()=>this.stageData)}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-exp-tos"]],standalone:!0,features:[vi],decls:12,vars:0,consts:[[1,"main"],["required","",3,"change"]],template:function(n,r){1&n&&(D(0,"div",0)(1,"h2"),R(2,"Terms of Service"),E(),D(3,"p"),R(4,"Please read and accept the following terms of service before proceeding:"),E(),D(5,"ul")(6,"li"),R(7,"Term 1: Lorem ipsum dolor sit amet."),E(),D(8,"li"),R(9,"Term 2: Consectetur adipiscing elit."),E()(),D(10,"mat-checkbox",1),Q("change",function(s){return r.updateCheckboxValue(s)}),R(11," I accept the terms of service "),E()())},dependencies:[xk,wk],styles:[".main[_ngcontent-%COMP%]{padding:2rem 1rem}"]})}return i})();function ECe(i,t){1&i&&q(0,"app-exp-tos")}function SCe(i,t){1&i&&q(0,"app-exp-profile")}function MCe(i,t){1&i&&q(0,"app-exp-chat")}function ACe(i,t){1&i&&q(0,"app-exp-tos-and-profile")}function TCe(i,t){1&i&&q(0,"app-exp-survey")}function ICe(i,t){1&i&&q(0,"app-exp-leader-vote")}function OCe(i,t){1&i&&q(0,"app-exp-leader-reveal")}function RCe(i,t){if(1&i&&(D(0,"div",4),R(1," Oh no! It looks like something went wrong, there is no component for "),D(2,"span"),R(3),E()()),2&i){const e=ie();I(3),qt(e.participant.viewingStage().kind)}}function PCe(i,t){1&i&&q(0,"div",5)}function FCe(i,t){if(1&i){const e=Ci();D(0,"button",6),Q("click",function(){return He(e),Se(ie().nextStep())}),D(1,"span"),R(2,"Next step"),E()()}}let NCe=(()=>{class i{constructor(e){this.StageKinds=Kt;const n=uI(e.state(),uv.Participant);this.participant=n.particpant}nextStep(){this.participant.nextStep()}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-participant-stage-view"]],standalone:!0,features:[vi],decls:14,vars:5,consts:[[1,"main"],[1,"exp-stage-content"],["class","mask"],["color","primary","mat-button",""],[1,"error"],[1,"mask"],["color","primary","mat-button","",3,"click"]],template:function(n,r){if(1&n&&(D(0,"div",0)(1,"h2"),R(2),E(),D(3,"div",1),_e(4,ECe,1,0)(5,SCe,1,0)(6,MCe,1,0)(7,ACe,1,0)(8,TCe,1,0)(9,ICe,1,0)(10,OCe,1,0)(11,RCe,4,1)(12,PCe,1,0,"div",2),E(),_e(13,FCe,3,0,"button",3),E()),2&n){let o;I(2),Oh("",r.participant.viewingStage().name," (",r.participant.viewingStage().kind,")"),I(2),xe(4,(o=r.participant.viewingStage().kind)===r.StageKinds.acceptTos?4:o===r.StageKinds.setProfile?5:o===r.StageKinds.groupChat?6:o===r.StageKinds.acceptTosAndSetProfile?7:o===r.StageKinds.takeSurvey?8:o===r.StageKinds.voteForLeader?9:o===r.StageKinds.revealVoted?10:11),I(8),xe(12,r.participant.viewingStage().name!==r.participant.workingOnStage().name?12:-1),I(1),xe(13,0!==r.participant.userData().futureStageNames.length?13:-1)}},dependencies:[i7,s7,a7,p7,g7,Txe,_7,Cs,ou],styles:[".main[_ngcontent-%COMP%]{padding:20px}.main[_ngcontent-%COMP%] .exp-stage-content[_ngcontent-%COMP%]{position:relative;width:100%}.main[_ngcontent-%COMP%] .exp-stage-content[_ngcontent-%COMP%] .mask[_ngcontent-%COMP%]{background-color:#fff;opacity:.2;position:absolute;inset:0;z-index:9999999999;cursor:not-allowed}.buttons-and-progress[_ngcontent-%COMP%]{margin-top:-18px}.error[_ngcontent-%COMP%]{padding:5px;border-radius:5px;background-color:#faa;border:solid 1px #a00;display:flex}.error-message[_ngcontent-%COMP%]{flex:1}.search-response-sep[_ngcontent-%COMP%]{height:20px}.item-text-form[_ngcontent-%COMP%]{min-width:150px;width:100%;flex-wrap:wrap;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex:1 1 auto}.full-width[_ngcontent-%COMP%]{width:100%}"]})}return i})();const LCe=["googleButton"],b7=()=>["./"],v7=i=>({stage:i});function BCe(i,t){if(1&i&&(D(0,"mat-list-item",16)(1,"div",13),R(2),q(3,"mat-icon",17),E()()),2&i){const e=t.$implicit;Pe("highlighted",ie().participant.viewingStage().name===e),K("routerLink",yp(5,b7))("queryParams",Bb(6,v7,e)),I(2),Li(" ",e," ")}}function VCe(i,t){if(1&i&&(D(0,"mat-list-item",18),R(1),E()),2&i){const e=t.$implicit;K("disabled",!0)("activated",!1),I(1),Li(" ",e," ")}}const HCe=()=>({exact:!0});let zCe=(()=>{class i{constructor(e,n,r){this.route=e,this.router=n,this.stateService=r,this.participant=function Qse(i,t,e){const r=new Xse(i,t,new Set(["experiment","user"]),Zse);return new Jse(e,r.session,()=>r.destroy())}(n,e,r.data),this.participant&&r.state.set({kind:uv.Participant,particpant:this.participant})}updateCurrentStageName(e){this.participant&&this.participant.setViewingStage(e)}ngOnDestroy(){this.participant&&this.participant.destory&&this.participant.destory()}static#e=this.\u0275fac=function(n){return new(n||i)(x(Hc),x(Ko),x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-participant-view"]],viewQuery:function(n,r){if(1&n&&Pt(LCe,5),2&n){let o;he(o=fe())&&(r.googleButton=o.first)}},standalone:!0,features:[vi],decls:29,vars:12,consts:[["role","banner",1,"toolbar"],["mat-icon-button","",3,"click"],[1,"title"],[1,"spacer"],[1,"current-user"],["aria-label","PAIR","href","https://pair.withgoogle.com/","title","Home",1,"small-logo"],["src","webapp/assets/pair-logo.svg","alt","PAIR logo"],["role","main",1,"content"],["mode","side","opened","true"],["sidenav",""],[1,"menu-buttons"],["matListItemTitle","","ariaCurrentWhenActive","page","routerLinkActive","",1,"menu-item","working-on-stage",3,"routerLink","queryParams","routerLinkActiveOptions"],["rla","routerLinkActive"],[1,"menu-item-inner"],[1,"ongoing-badge"],[1,"page"],["matListItemTitle","","ariaCurrentWhenActive","page",1,"menu-item",3,"routerLink","queryParams"],["fontIcon","check",1,"icon","completed"],["matListItemTitle","","ariaCurrentWhenActive","page",1,"menu-item","future-stage",3,"disabled","activated"],["matListItemTitle","","ariaCurrentWhenActive","page","class","menu-item",3,"routerLink","queryParams","highlighted"],["matListItemTitle","","ariaCurrentWhenActive","page","class","menu-item future-stage",3,"disabled","activated"]],template:function(n,r){if(1&n){const o=Ci();D(0,"div",0)(1,"button",1),Q("click",function(){return He(o),Se(Qn(14).toggle())}),D(2,"mat-icon"),R(3,"menu"),E()(),D(4,"span",2),R(5),E(),q(6,"div",3),D(7,"div",4),R(8),E(),D(9,"a",5),q(10,"img",6),E()(),D(11,"div",7)(12,"mat-sidenav-container")(13,"mat-sidenav",8,9)(15,"mat-nav-list",10),Yr(16,BCe,4,8,"mat-list-item",19,Ah),D(18,"mat-list-item",11,12)(20,"div",13),R(21),D(22,"div",14),R(23,"ongoing"),E()()(),Yr(24,VCe,2,3,"mat-list-item",20,Ah),E()(),D(26,"mat-sidenav-content")(27,"div",15),q(28,"app-participant-stage-view"),E()()()()}if(2&n){const o=Qn(19);I(5),Li("Participant: ",r.participant.experiment().name,""),I(3),Li("Current user: ",r.participant.userData().userId,""),I(8),Xr(r.participant.userData().completedStageNames),I(2),Pe("highlighted",r.participant.viewingStage().name===r.participant.workingOnStage().name&&o.isActive),K("routerLink",yp(8,b7))("queryParams",Bb(9,v7,r.participant.workingOnStage().name))("routerLinkActiveOptions",yp(11,HCe)),I(3),Li(" ",r.participant.workingOnStage().name," "),I(3),Xr(r.participant.userData().futureStageNames)}},dependencies:[Jp,Gv,D2,x2,C2,mk,Uv,S2,XG,JG,gk,Cs,bD,Zh,Xh,zI,NCe],styles:[".toolbar[_ngcontent-%COMP%]{top:0;left:0;right:0;height:60px;display:flex;align-items:center;background-color:#000000de;color:#fff;font-weight:600;flex:0 0 60px}.toolbar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 16px}.small-logo[_ngcontent-%COMP%]{width:100px}.spacer[_ngcontent-%COMP%]{flex:1}.page[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.title[_ngcontent-%COMP%]{font-weight:400}.current-user[_ngcontent-%COMP%]{margin:0 15px;font-weight:300;color:#ccc}.content[_ngcontent-%COMP%]{display:flex;margin:0;flex-wrap:wrap;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex:1 1 auto;overflow:auto}.content[_ngcontent-%COMP%] .highlighted[_ngcontent-%COMP%]{background-color:#ddd}.content[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#d00}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%]{display:flex;align-items:center}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%] .ongoing-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-left:8px;border-radius:5px;background-color:orange;padding:1px 4px;line-height:1.1rem;color:#fff;font-size:12px;opacity:1}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-left:6px}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%] .icon.completed[_ngcontent-%COMP%]{color:#018501}.content[_ngcontent-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{min-height:calc(100vh - 60px);min-width:100%}.menu-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column}.icon-menu-item[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-content:center}.icon-menu-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:5px}.profileImg[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%}.error[_ngcontent-%COMP%]{color:red;background-color:#fee;border-radius:5px;border:1px solid #AAA}"]})}return i})();const UCe=(i,t)=>t.name,WCe=i=>["experiment",i];function jCe(i,t){if(1&i&&(D(0,"mat-list-item",12)(1,"div",15),R(2),E()()),2&i){const e=t.$implicit;K("routerLink",Bb(2,WCe,e.name)),I(2),Li(" ",e.name," ")}}const $Ce=()=>["create-experiment"],GCe=()=>["settings"];let y7=(()=>{class i{constructor(e){this.stateService=e,this.experiments=xn(()=>Object.values(this.stateService.data().experiments).sort((n,r)=>n.name.localeCompare(r.name)))}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-experimenter-view"]],standalone:!0,features:[vi],decls:27,vars:4,consts:[["role","banner",1,"toolbar"],["mat-icon-button","",3,"click"],[1,"title"],[1,"spacer"],["aria-label","PAIR","href","https://pair.withgoogle.com/","title","Home",1,"small-logo"],["src","webapp/assets/pair-logo.svg","alt","PAIR logo"],["role","main",1,"content"],["mode","side","opened","true"],["sidenav",""],[1,"menu-buttons"],["matListItemTitle","","routerLinkActive","highlighted","ariaCurrentWhenActive","page",3,"routerLink"],[1,"icon-menu-item"],["matListItemTitle","","ariaCurrentWhenActive","page",1,"menu-item",3,"routerLink"],["fontIcon","settings"],[1,"page"],[1,"menu-item-inner"],["matListItemTitle","","ariaCurrentWhenActive","page","class","menu-item",3,"routerLink"]],template:function(n,r){if(1&n){const o=Ci();D(0,"div",0)(1,"button",1),Q("click",function(){return He(o),Se(Qn(12).toggle())}),D(2,"mat-icon"),R(3,"menu"),E()(),D(4,"span",2),R(5,"Experiment Management"),E(),q(6,"div",3),D(7,"a",4),q(8,"img",5),E()(),D(9,"div",6)(10,"mat-sidenav-container")(11,"mat-sidenav",7,8)(13,"mat-nav-list",9),Yr(14,jCe,3,4,"mat-list-item",16,UCe),D(16,"mat-list-item",10)(17,"div",11)(18,"mat-icon"),R(19,"design_services"),E(),R(20,"Create an experiment"),E()(),D(21,"mat-list-item",12),q(22,"mat-icon",13),R(23," Settings "),E()()(),D(24,"mat-sidenav-content")(25,"div",14),q(26,"router-outlet"),E()()()()}2&n&&(I(14),Xr(r.experiments()),I(2),K("routerLink",yp(2,$Ce)),I(5),K("routerLink",yp(3,GCe)))},dependencies:[Jp,Gv,D2,x2,C2,mk,Uv,S2,XG,JG,gk,Cs,bD,Zh,KC,Xh,zI,Ba,Ha,Jo],styles:[".toolbar[_ngcontent-%COMP%]{top:0;left:0;right:0;height:60px;display:flex;align-items:center;background-color:#000000de;color:#fff;font-weight:600;flex:0 0 60px}.toolbar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 16px}.small-logo[_ngcontent-%COMP%]{width:100px}.spacer[_ngcontent-%COMP%]{flex:1}.page[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.title[_ngcontent-%COMP%]{font-weight:400}.current-user[_ngcontent-%COMP%]{margin:0 15px;font-weight:300;color:#ccc}.content[_ngcontent-%COMP%]{display:flex;margin:0;flex-wrap:wrap;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex:1 1 auto;overflow:auto}.content[_ngcontent-%COMP%] .highlighted[_ngcontent-%COMP%]{background-color:#ddd}.content[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#d00}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%]{display:flex;align-items:center}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%] .ongoing-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-left:8px;border-radius:5px;background-color:orange;padding:1px 4px;line-height:1.1rem;color:#fff;font-size:12px;opacity:1}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-left:6px}.content[_ngcontent-%COMP%] .menu-item-inner[_ngcontent-%COMP%] .icon.completed[_ngcontent-%COMP%]{color:#018501}.content[_ngcontent-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{min-height:calc(100vh - 60px);min-width:100%}.menu-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column}.icon-menu-item[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-content:center}.icon-menu-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:5px}.profileImg[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%}.error[_ngcontent-%COMP%]{color:red;background-color:#fee;border-radius:5px;border:1px solid #AAA}"]})}return i})(),qCe=0;const T2=new V("CdkAccordion");let KCe=(()=>{class i{constructor(){this._stateChanges=new de,this._openCloseAllActions=new de,this.id="cdk-accordion-"+qCe++,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:["multi","multi",Ct]},exportAs:["cdkAccordion"],features:[Re([{provide:T2,useExisting:i}]),dr,Zi]})}return i})(),JCe=0,YCe=(()=>{class i{get expanded(){return this._expanded}set expanded(e){this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=Ue.EMPTY,this.closed=new pe,this.opened=new pe,this.destroyed=new pe,this.expandedChange=new pe,this.id="cdk-accordion-child-"+JCe++,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static#e=this.\u0275fac=function(n){return new(n||i)(x(T2,12),x(Nt),x(k2))};static#t=this.\u0275dir=ne({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:["expanded","expanded",Ct],disabled:["disabled","disabled",Ct]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Re([{provide:T2,useValue:void 0}]),dr]})}return i})(),XCe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({})}return i})();const ZCe=["body"];function QCe(i,t){}const eDe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],tDe=["mat-expansion-panel-header","*","mat-action-row"];function iDe(i,t){1&i&&q(0,"span",2),2&i&&K("@indicatorRotate",ie()._getExpandedState())}const nDe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rDe=["mat-panel-title","mat-panel-description","*"],I2=new V("MAT_ACCORDION"),w7="225ms cubic-bezier(0.4,0.0,0.2,1)",x7={indicatorRotate:jc("indicatorRotate",[oa("collapsed, void",Ln({transform:"rotate(0deg)"})),oa("expanded",Ln({transform:"rotate(180deg)"})),Ds("expanded <=> collapsed, void => collapsed",ra(w7))]),bodyExpansion:jc("bodyExpansion",[oa("collapsed, void",Ln({height:"0px",visibility:"hidden"})),oa("expanded",Ln({height:"*",visibility:""})),Ds("expanded <=> collapsed, void => collapsed",ra(w7))])},C7=new V("MAT_EXPANSION_PANEL");let oDe=(()=>{class i{constructor(e,n){this._template=e,this._expansionPanel=n}static#e=this.\u0275fac=function(n){return new(n||i)(x(jo),x(C7,8))};static#t=this.\u0275dir=ne({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]})}return i})(),sDe=0;const D7=new V("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let k7=(()=>{class i extends YCe{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=$e(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,n,r,o,s,a,l){super(e,n,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new pe,this.afterCollapse=new pe,this._inputChanges=new de,this._headerId="mat-expansion-panel-header-"+sDe++,this._bodyAnimationDone=new de,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(sd((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(hr(null),ci(()=>this.expanded&&!this._portal),ji(1)).subscribe(()=>{this._portal=new TD(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}static#e=this.\u0275fac=function(n){return new(n||i)(x(I2,12),x(Nt),x(k2),x(Tr),x(it),x(Ui,8),x(D7,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(n,r,o){if(1&n&&ut(o,oDe,5),2&n){let s;he(s=fe())&&(r._lazyContent=s.first)}},viewQuery:function(n,r){if(1&n&&Pt(ZCe,5),2&n){let o;he(o=fe())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,r){2&n&&Pe("mat-expanded",r.expanded)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Re([{provide:I2,useValue:void 0},{provide:C7,useExisting:i}]),Ae,Zi],ngContentSelectors:tDe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,r){1&n&&(Lt(eDe),we(0),D(1,"div",0,1),Q("@bodyExpansion.done",function(s){return r._bodyAnimationDone.next(s)}),D(3,"div",2),we(4,1),_e(5,QCe,0,0,"ng-template",3),E(),we(6,2),E()),2&n&&(I(1),K("@bodyExpansion",r._getExpandedState())("id",r.id),je("aria-labelledby",r._headerId),I(4),K("cdkPortalOutlet",r._portal))},dependencies:[Afe],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[x7.bodyExpansion]},changeDetection:0})}return i})();class aDe{}const lDe=jp(aDe);let E7=(()=>{class i extends lDe{constructor(e,n,r,o,s,a,l){super(),this.panel=e,this._element=n,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=Ue.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(ci(u=>!(!u.hideToggle&&!u.togglePosition))):Wr;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Hi(e.opened,e.closed,c,e._inputChanges.pipe(ci(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ci(()=>e._containsFocus())).subscribe(()=>r.focusVia(n,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:na(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(n){return new(n||i)(x(k7,1),x(Ee),x(Tl),x(Nt),x(D7,8),x(Ui,8),mo("tabindex"))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,r){1&n&&Q("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&n&&(je("id",r.panel._headerId)("tabindex",r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),vl("height",r._getHeaderHeight()),Pe("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Ae],ngContentSelectors:rDe,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator"],[1,"mat-expansion-indicator"]],template:function(n,r){1&n&&(Lt(nDe),D(0,"span",0),we(1),we(2,1),we(3,2),E(),_e(4,iDe,1,1,"span",1)),2&n&&(Pe("mat-content-hide-toggle",!r._showToggle()),I(4),xe(4,r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[x7.indicatorRotate]},changeDetection:0})}return i})(),cDe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return i})(),dDe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=ne({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return i})(),uDe=(()=>{class i extends KCe{constructor(){super(...arguments),this._ownHeaders=new Ic,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=$e(e)}ngAfterContentInit(){this._headers.changes.pipe(hr(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new dD(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(i)))(r||i)}})();static#t=this.\u0275dir=ne({type:i,selectors:[["mat-accordion"]],contentQueries:function(n,r,o){if(1&n&&ut(o,E7,5),2&n){let s;he(s=fe())&&(r._headers=s)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,r){2&n&&Pe("mat-accordion-multi",r.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Re([{provide:I2,useExisting:i}]),Ae]})}return i})(),hDe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,XCe,E6]})}return i})();function fDe(i,t){1&i&&q(0,"app-chat-user-message",6),2&i&&K("message",ie().$implicit)}function mDe(i,t){1&i&&q(0,"app-chat-mediator-message",6),2&i&&K("message",ie().$implicit)}function pDe(i,t){1&i&&q(0,"app-chat-discuss-items-message")}function gDe(i,t){1&i&&q(0,"div")}function _De(i,t){if(1&i&&(D(0,"div",5),_e(1,fDe,1,1,"app-chat-user-message",6)(2,mDe,1,1)(3,pDe,1,0)(4,gDe,1,0),E()),2&i){const e=t.$implicit;I(1),xe(1,"userMessage"===e.messageType?1:"mediatorMessage"===e.messageType?2:"discussItemsMessage"===e.messageType?3:4)}}let bDe=(()=>{class i{set chatRoomName(e){this.roomName.set(e)}constructor(e){this.appStateService=e,this.roomName=_s(""),this.message="",this.messages=xn(()=>""!==this.roomName()&&this.experiment&&this.participants?this.participants()[0].stageMap[this.roomName()].config.messages:[])}sendMessage(){if(!this.experiment)throw new Error("Tried to send a message without knowing the experiment");(function iae(i,t,e,n){const r=i().experiments[t];for(const o of Object.values(r.participants))Z8(i,{experiment:t,id:o.userId},e.stageName,s=>{const a={messageType:"mediatorMessage",text:e.message,timestamp:(new Date).valueOf()};s.messages.push(a)},{skipSetting:!0});n&&n.withoutSetting||i.set({...i()})})(this.appStateService.data,this.experiment(),{stageName:this.roomName(),message:this.message}),this.message=""}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-mediator-chat"]],inputs:{experiment:"experiment",participants:"participants",chatRoomName:"chatRoomName"},standalone:!0,features:[vi],decls:13,vars:1,consts:[[1,"messages"],[1,"message-form"],[1,"full-width"],["matInput","","placeholder","Write your response",3,"ngModel","ngModelChange"],["color","primary","mat-button","",3,"click"],[1,"message"],[3,"message"],["class","message"]],template:function(n,r){1&n&&(D(0,"div"),R(1,"Mediator Chat View"),E(),D(2,"div",0),Yr(3,_De,5,1,"div",7,up),E(),D(5,"div",1)(6,"mat-form-field",2)(7,"mat-label"),R(8,"Message to send"),E(),D(9,"input",3),Q("ngModelChange",function(s){return r.message=s}),E()(),D(10,"button",4),Q("click",function(){return r.sendMessage()}),D(11,"span"),R(12,"Send"),E()()()),2&n&&(I(3),Xr(r.messages()),I(6),K("ngModel",r.message))},dependencies:[QG,e7,t7,Jo,su,Il,Ba,Cl,Zd,Qd,Cs,ou,Ha,au]})}return i})();const vDe=(i,t)=>t.userId,yDe=(i,t)=>t.name;function wDe(i,t){1&i&&q(0,"img",1),2&i&&K("src",ie().$implicit.profile.avatarUrl,A)}function xDe(i,t){1&i&&R(0," no avatar set ")}const CDe=(i,t)=>["/participant",i,t],DDe=i=>({stage:i});function kDe(i,t){if(1&i&&(D(0,"a",0),R(1),E(),D(2,"ul")(3,"li"),R(4),E(),D(5,"li"),R(6),E(),D(7,"li"),R(8," Avatar: "),_e(9,wDe,1,1,"img",1)(10,xDe,1,0),E(),D(11,"li"),R(12),E(),D(13,"li"),R(14," Access Code: "),D(15,"span",2),R(16),E()()()),2&i){const e=t.$implicit,n=ie();K("routerLink",E3(9,CDe,n.experimentName(),e.userId))("queryParams",Bb(12,DDe,e.workingOnStageName)),I(1),qt(e.userId),I(3),Li("Name: ",e.profile.name,""),I(2),Li("Preffered pronouns: ",e.profile.pronouns,""),I(3),xe(9,e.profile.avatarUrl?9:10),I(3),Li("Working on stage: ",e.workingOnStageName,""),I(4),Oh("",n.experimentName(),"/",e.userId,"")}}function EDe(i,t){if(1&i&&(D(0,"mat-accordion")(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),R(4," Current state of the Chat Discussion "),E(),D(5,"mat-panel-description"),R(6," You can interact directly with the chat here. "),E()(),q(7,"app-mediator-chat",3),E()()),2&i){const e=ie().$implicit,n=ie();I(7),K("experiment",n.experimentName)("participants",n.participants)("chatRoomName",e.name)}}function SDe(i,t){if(1&i&&(D(0,"div"),R(1),_e(2,EDe,8,3,"mat-accordion"),E()),2&i){const e=t.$implicit,n=ie();I(1),Oh(" ",e.name,": ",e.participants.length," "),I(1),xe(2,n.isOfKind(e,n.StageKinds.groupChat)?2:-1)}}let MDe=(()=>{class i{set experiment(e){this.experimentName.set(e)}constructor(e){this.stateService=e,this.experimentName=_s(""),this.isOfKind=Q8,this.StageKinds=Kt,this.participants=xn(()=>{if(console.log("experimentName:",this.experimentName()),!(this.experimentName()in this.stateService.data().experiments))return[];const n=this.stateService.data().experiments[this.experimentName()];return Object.values(n.participants)}),this.stageStates=xn(()=>{const n=this.participants()[0],r={},o=[...n.completedStageNames,n.workingOnStageName,...n.futureStageNames].map(s=>({name:s,kind:n.stageMap[s].kind,participants:[]}));return o.forEach(s=>r[s.name]=s),this.participants().forEach(s=>{if(!(s.workingOnStageName in r))throw new Error(`stage not in the first participants stages: ${s.workingOnStageName}`);r[s.workingOnStageName].participants.push(s.profile)}),o})}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-experiment-monitor"]],inputs:{experiment:"experiment"},standalone:!0,features:[vi],decls:11,vars:1,consts:[[3,"routerLink","queryParams"],["alt","avatar",3,"src"],[1,"code"],[3,"experiment","participants","chatRoomName"]],template:function(n,r){1&n&&(D(0,"h2"),R(1,"Experimenter View"),E(),D(2,"div")(3,"p"),R(4),E(),Yr(5,kDe,17,14,null,null,vDe),E(),D(7,"h2"),R(8,"Experiment stages:"),E(),Yr(9,SDe,3,3,"div",null,yDe)),2&n&&(I(4),Li("Number of participants (",r.participants().length,")"),I(1),Xr(r.participants()),I(4),Xr(r.stageStates()))},dependencies:[Zh,Xh,bDe,hDe,uDe,k7,E7,dDe,cDe],styles:["h2[_ngcontent-%COMP%]{margin-top:1em}.code[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #ccc;background-color:#eee;padding:2px;font-family:Courier New,Courier,monospace}"]})}return i})(),ADe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=w({type:i,selectors:[["app-experiment-settings"]],standalone:!0,features:[vi],decls:1,vars:0,template:function(n,r){1&n&&q(0,"app-app-settings")},dependencies:[y2]})}return i})();function O2(i,t,e){for(let n in t)if(t.hasOwnProperty(n)){const r=t[n];r?i.setProperty(n,r,e?.has(n)?"important":""):i.removeProperty(n)}return i}function Cg(i,t){const e=t?"":"none";O2(i.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function S7(i,t,e){O2(i.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Ck(i,t){return t&&"none"!=t?i+" "+t:i}function M7(i){const t=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*t}function R2(i,t){return i.getPropertyValue(t).split(",").map(n=>n.trim())}function P2(i){const t=i.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function F2(i,t,e){const{top:n,bottom:r,left:o,right:s}=i;return e>=n&&e<=r&&t>=o&&t<=s}function Ly(i,t,e){i.top+=t,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function A7(i,t,e,n){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=i,u=l*t,f=c*t;return n>r-f&&na-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:P2(e)})})}handleScroll(t){const e=ia(t),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Ly(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function I7(i){const t=i.cloneNode(!0),e=t.querySelectorAll("[id]"),n=i.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;rCg(e,t)))}constructor(t,e,n,r,o,s){this._config=e,this._document=n,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new de,this._pointerMoveSubscription=Ue.EMPTY,this._pointerUpSubscription=Ue.EMPTY,this._scrollSubscription=Ue.EMPTY,this._resizeSubscription=Ue.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new de,this.started=new de,this.released=new de,this.ended=new de,this.entered=new de,this.exited=new de,this.dropped=new de,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const g=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),b=this._dropContainer;if(!g)return void this._endDragSequence(a);(!b||!b.isDragging()&&!b.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,f=this._activeTransform;f.x=c.x-u.x+this._passiveTransform.x,f.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(f.x,f.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new T7(n),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(n=>fn(n)),this._handles.forEach(n=>Cg(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=fn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Dk),e.addEventListener("touchstart",this._pointerDown,F7),e.addEventListener("dragstart",this._nativeDragStart,Dk)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?fn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Cg(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Cg(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){By(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),S7(n,!1,N2),this._document.body.appendChild(r.replaceChild(o,n)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=By(e),o=!r&&0!==e.button,s=this._rootElement,a=ia(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?hD(e):uD(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),n||o||l||c)return;if(this._handles.length){const p=s.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=P2(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const f=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:f.x,y:f.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){S7(this._rootElement,!0,N2),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,n,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let r;if(n&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(n,t.context);s.detectChanges(),r=L7(s,this._document),this._previewRef=s,t.matchSize?B7(r,o):r.style.transform=kk(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=I7(this._rootElement),B7(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return O2(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},N2),Cg(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function RDe(i){const t=getComputedStyle(i),e=R2(t,"transition-property"),n=e.find(a=>"transform"===a||"all"===a);if(!n)return 0;const r=e.indexOf(n),o=R2(t,"transition-duration"),s=R2(t,"transition-delay");return M7(o[r])+M7(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=s=>{(!s||ia(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),n(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=L7(this._placeholderRef,this._document)):n=I7(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e,n){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=By(n)?n.targetTouches[0]:n,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=By(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=n.pageX-e.left,o=n.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,f=a.bottom-(c-s);n=N7(n,a.left+o,a.right-(l-o)),r=N7(r,u,f)}return{x:n,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(n-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=n>o.y?1:-1,o.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Cg(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Dk),t.removeEventListener("touchstart",this._pointerDown,F7),t.removeEventListener("dragstart",this._nativeDragStart,Dk)}_applyRootElementTransform(t,e){const n=kk(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Ck(n,this._initialTransform)}_applyPreviewTransform(t,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=kk(t,e);this._preview.style.transform=Ck(r,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===n.width&&0===n.height)return;const o=r.left-n.left,s=n.right-r.right,a=r.top-n.top,l=n.bottom-r.bottom;r.width>n.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>n.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:By(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=ia(t);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&Ly(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=GI(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const n=this._previewContainer||"global";if("parent"===n)return t;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return fn(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function kk(i,t){return`translate3d(${Math.round(i)}px, ${Math.round(t)}px, 0)`}function N7(i,t,e){return Math.max(t,Math.min(e,i))}function By(i){return"t"===i.type[0]}function L7(i,t){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const n=t.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function B7(i,t){i.style.width=`${t.width}px`,i.style.height=`${t.height}px`,i.style.transform=kk(t.left,t.top)}function Vy(i,t,e){const n=Hy(t,i.length-1),r=Hy(e,i.length-1);if(n===r)return;const o=i[n],s=r0)return null;const a="horizontal"===this.orientation,l=o.findIndex(C=>C.drag===t),c=o[s],f=c.clientRect,p=l>s?1:-1,g=this._getItemOffsetPx(o[l].clientRect,f,p),b=this._getSiblingOffsetPx(l,o,p),v=o.slice();return Vy(o,l,s),o.forEach((C,S)=>{if(v[S]===C)return;const M=C.drag===t,L=M?g:b,H=M?t.getPlaceholderElement():C.drag.getRootElement();C.offset+=L,a?(H.style.transform=Ck(`translate3d(${Math.round(C.offset)}px, 0, 0)`,C.initialTransform),Ly(C.clientRect,0,L)):(H.style.transform=Ck(`translate3d(0, ${Math.round(C.offset)}px, 0)`,C.initialTransform),Ly(C.clientRect,L,0))}),this._previousSwap.overlaps=F2(f,e,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,n,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,n):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else fn(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const n=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:n})=>{Ly(n,t,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:P2(n)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getItemOffsetPx(t,e,n){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===n&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,n){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*n];let a=o[r?"width":"height"]*n;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===n?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this.orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=n[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,n,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>a!==t&&((!r||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&n!0,this.sortPredicate=()=>!0,this.beforeStarted=new de,this.entered=new de,this.exited=new de,this.dropped=new de,this.sorted=new de,this.receivingStarted=new de,this.receivingStopped=new de,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Ue.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new de,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function ODe(i=0,t=Iv){return i<0&&(i=0),iR(i,i,t)}(0,M6).pipe(Qe(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=fn(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new T7(n),this._sortStrategy=new LDe(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=fn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,r){if(this.sortingDisabled||!this._clientRect||!A7(this._clientRect,.05,e,n))return;const o=this._sortStrategy.sort(t,e,n,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||n||A7(s.clientRect,.05,t,e)&&([r,o]=function VDe(i,t,e,n){const r=z7(t,n),o=U7(t,e);let s=0,a=0;if(r){const l=i.scrollTop;1===r?l>0&&(s=1):i.scrollHeight-l>i.clientHeight&&(s=2)}if(o){const l=i.scrollLeft;1===o?l>0&&(a=1):i.scrollWidth-l>i.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(n=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=z7(l,e),o=U7(l,t),n=window}n&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=fn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=fn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=fn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&F2(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,n){return this._siblings.find(r=>r._canReceive(t,e,n))}_canReceive(t,e,n){if(!this._clientRect||!F2(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=fn(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const n=this._activeSiblings;!n.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=GI(fn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function z7(i,t){const{top:e,bottom:n,height:r}=i,o=.05*r;return t>=e-o&&t<=e+o?1:t>=n-o&&t<=n+o?2:0}function U7(i,t){const{left:e,right:n,width:r}=i,o=.05*r;return t>=e-o&&t<=e+o?1:t>=n-o&&t<=n+o?2:0}const Ek=Ml({passive:!1,capture:!0});let HDe=(()=>{class i{constructor(e,n){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new de,this.pointerUp=new de,this.scroll=new de,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=n}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Ek)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Ek)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ek}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Ek}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new Vt(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Hi(...n)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}static#e=this.\u0275fac=function(n){return new(n||i)(U(ge),U(it))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const zDe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let W7=(()=>{class i{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=zDe){return new NDe(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new BDe(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(n){return new(n||i)(U(it),U(ge),U(Hv),U(HDe))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const L2=new V("CDK_DRAG_PARENT"),B2=new V("CdkDragHandle"),j7=new V("CdkDragPlaceholder"),$7=new V("CdkDragPreview"),G7=new V("CDK_DRAG_CONFIG"),q7=new V("CdkDropList");let K7=(()=>{class i{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}constructor(e,n,r,o,s,a,l,c,u,f,p){this.element=e,this.dropContainer=n,this._ngZone=o,this._viewContainerRef=s,this._dir=l,this._changeDetectorRef=u,this._selfHandle=f,this._parentDrag=p,this._destroyed=new de,this.started=new pe,this.released=new pe,this.ended=new pe,this.entered=new pe,this.exited=new pe,this.dropped=new pe,this.moved=new Vt(g=>{const b=this._dragRef.moved.pipe(ue(v=>({source:this,pointerPosition:v.pointerPosition,event:v.event,delta:v.delta,distance:v.distance}))).subscribe(g);return()=>{b.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:a?.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),a&&this._assignDefaults(a),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ji(1),Qe(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const n=e.rootElementSelector,r=e.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=i._dragInstances.indexOf(this);e>-1&&i._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let n=e;this.rootElementSelector&&(n=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):fn(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const n=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:$i(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(ji(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){if(n.classList.contains("cdk-drag")){e.withParent(i._dragInstances.find(r=>r.element.nativeElement===n)?._dragRef||null);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){const{lockAxis:n,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:u}=e;this.disabled=l??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(hr(this._handles),kn(e=>{const n=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),Mn(e=>Hi(...e.map(n=>n._stateChanges.pipe(hr(n))))),Qe(this._destroyed)).subscribe(e=>{const n=this._dragRef,r=e.element.nativeElement;e.disabled?n.disableHandle(r):n.enableHandle(r)})}static#t=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(q7,12),x(it),x(ge),x(Tr),x(G7,8),x(xs,8),x(W7),x(Nt),x(B2,10),x(L2,12))};static#i=this.\u0275dir=ne({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(n,r,o){if(1&n&&(ut(o,$7,5),ut(o,j7,5),ut(o,B2,5)),2&n){let s;he(s=fe())&&(r._previewTemplate=s.first),he(s=fe())&&(r._placeholderTemplate=s.first),he(s=fe())&&(r._handles=s)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(n,r){2&n&&Pe("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled",Ct],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[Re([{provide:L2,useExisting:i}]),dr,Zi]})}return i})();const V2=new V("CdkDropListGroup");let qDe=0,J7=(()=>{class i{static#e=this._dropLists=[];get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}constructor(e,n,r,o,s,a,l){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=s,this._group=a,this._destroyed=new de,this.connectedTo=[],this.id="cdk-drop-list-"+qDe++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new pe,this.entered=new pe,this.exited=new pe,this.sorted=new pe,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,f)=>this.sortPredicate(c,u.data,f.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),i._dropLists.push(this),a&&a._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=i._dropLists.indexOf(this);e>-1&&i._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(hr(this._dir.value),Qe(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=Ov(this.connectedTo).map(r=>"string"==typeof r?i._dropLists.find(s=>s.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===n.indexOf(r)&&n.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=$i(this.autoScrollStep,2),e.connectedTo(n.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),Hi(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:n,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=s??!1,this.orientation=a||"vertical",n&&(this.lockAxis=n)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}static#t=this.\u0275fac=function(n){return new(n||i)(x(Ee),x(W7),x(Nt),x(Kp),x(xs,8),x(V2,12),x(G7,8))};static#i=this.\u0275dir=ne({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(n,r){2&n&&(je("id",r.id),Pe("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled",Ct],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled",Ct],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled",Ct],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[Re([{provide:V2,useValue:void 0},{provide:q7,useExisting:i}]),dr]})}return i})();const KDe=["*"],QDe=new V("MAT_CARD_CONFIG");let Y7=(()=>{class i{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(n){return new(n||i)(x(QDe,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,r){2&n&&Pe("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:KDe,decls:1,vars:0,template:function(n,r){1&n&&(Lt(),we(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return i})(),e1e=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Fc,Ot]})}return i})();const t1e=["trigger"],i1e=["panel"];function n1e(i,t){if(1&i&&(D(0,"span",9),R(1),E()),2&i){const e=ie();I(1),qt(e.placeholder)}}function r1e(i,t){1&i&&we(0)}function o1e(i,t){if(1&i&&(D(0,"span",11),R(1),E()),2&i){const e=ie(2);I(1),qt(e.triggerValue)}}function s1e(i,t){if(1&i&&(D(0,"span",10),_e(1,r1e,1,0)(2,o1e,2,1),E()),2&i){const e=ie();I(1),xe(1,e.customTrigger?1:2)}}function a1e(i,t){if(1&i){const e=Ci();sl(),fm(),D(0,"div",12,13),Q("@transformPanel.done",function(r){return He(e),Se(ie()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return He(e),Se(ie()._handleKeydown(r))}),we(2,1),E()}if(2&i){const e=ie();lp("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),K("ngClass",e.panelClass)("@transformPanel","showing"),je("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const l1e=[[["mat-select-trigger"]],"*"],c1e=["mat-select-trigger","*"],d1e={transformPanelWrap:jc("transformPanelWrap",[Ds("* => void",pue("@transformPanel",[mue()],{optional:!0}))]),transformPanel:jc("transformPanel",[oa("void",Ln({opacity:0,transform:"scale(1, 0.8)"})),Ds("void => showing",ra("120ms cubic-bezier(0, 0, 0.2, 1)",Ln({opacity:1,transform:"scale(1, 1)"}))),Ds("* => void",ra("100ms linear",Ln({opacity:0})))])};let X7=0;const Z7=new V("mat-select-scroll-strategy"),h1e=new V("MAT_SELECT_CONFIG"),f1e={provide:Z7,deps:[du],useFactory:function u1e(i){return()=>i.scrollStrategies.reposition()}},m1e=new V("MatSelectTrigger");class p1e{constructor(t,e){this.source=t,this.value=e}}const g1e=pD(jp(Ez(oO(class{constructor(i,t,e,n,r){this._elementRef=i,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r,this.stateChanges=new de}}))));let _1e=(()=>{class i extends g1e{_scrollOptionIntoView(e){const n=this.options.toArray()[e];if(n){const r=this.panel.nativeElement,o=function Qde(i,t,e){if(e.length){let n=t.toArray(),r=e.toArray(),o=0;for(let s=0;se+n?Math.max(0,i-n+t):e}(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new p1e(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(gT.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=$e(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=$e(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=$i(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,n,r,o,s,a,l,c,u,f,p,g,b,v){super(s,o,l,c,f),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=b,this._defaultOptions=v,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(C,S)=>C===S,this._uid="mat-select-"+X7++,this._triggerAriaLabelledBy=null,this._destroy=new de,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+X7++,this._panelDoneAnimatingStream=new de,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this.optionSelectionChanges=mI(()=>{const C=this.options;return C?C.changes.pipe(hr(C),Mn(()=>Hi(...C.map(S=>S.onSelectionChange)))):this._ngZone.onStable.pipe(ji(1),Mn(()=>this.optionSelectionChanges))}),this.openedChange=new pe,this._openedStream=this.openedChange.pipe(ci(C=>C),ue(()=>{})),this._closedStream=this.openedChange.pipe(ci(C=>!C),ue(()=>{})),this.selectionChange=new pe,this.valueChange=new pe,this._trackedModal=null,this._skipPredicate=C=>!this.panelOpen&&C.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=v?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._scrollStrategyFactory=g,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}ngOnInit(){this._selectionModel=new pk(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(sd(),Qe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Qe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Qe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(hr(null),Qe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(void 0!==this._previousControl&&null!==n.disabled&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck()),this.stateChanges.next()}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const n=`${this.id}-panel`;this._trackedModal&&tO(this._trackedModal,"aria-owns",n),hz(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(tO(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched()),this.stateChanges.next()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const n=e.keyCode,r=40===n||38===n||37===n||39===n,o=13===n||32===n,s=this._keyManager;if(!s.isTyping()&&o&&!na(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,r=e.keyCode,o=40===r||38===r,s=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!n.activeItem||na(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==a&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ji(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{const n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const n=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof sR?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new ude(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Hi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Qe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Hi(...this.options.map(n=>n._stateChanges)).pipe(Qe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(n){return new(n||i)(x(Hv),x(Nt),x(ge),x(gD),x(Ee),x(xs,8),x(Hh,8),x(Sp,8),x(wD,8),x(La,10),mo("tabindex"),x(Z7),x(Ide),x(h1e,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-select"]],contentQueries:function(n,r,o){if(1&n&&(ut(o,m1e,5),ut(o,Fz,5),ut(o,Pz,5)),2&n){let s;he(s=fe())&&(r.customTrigger=s.first),he(s=fe())&&(r.options=s),he(s=fe())&&(r.optionGroups=s)}},viewQuery:function(n,r){if(1&n&&(Pt(t1e,5),Pt(i1e,5),Pt(z6,5)),2&n){let o;he(o=fe())&&(r.trigger=o.first),he(o=fe())&&(r.panel=o.first),he(o=fe())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,r){1&n&&Q("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&n&&(je("id",r.id)("tabindex",r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),Pe("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Re([{provide:yD,useExisting:i},{provide:Rz,useExisting:i}]),Ae,Zi],ngContentSelectors:c1e,decls:11,vars:8,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(n,r){if(1&n&&(Lt(l1e),D(0,"div",0,1),Q("click",function(){return r.toggle()}),D(3,"div",2),_e(4,n1e,2,1,"span",3)(5,s1e,3,1),E(),D(6,"div",4)(7,"div",5),sl(),D(8,"svg",6),q(9,"path",7),E()()()(),_e(10,a1e,3,9,"ng-template",8),Q("backdropClick",function(){return r.close()})("attach",function(){return r._onAttached()})("detach",function(){return r.close()})),2&n){const o=Qn(1);I(3),je("id",r._valueId),I(1),xe(4,r.empty?4:5),I(6),K("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[hC,z6,sR],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[d1e.transformPanel]},changeDetection:0})}return i})(),Q7=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:[f1e],imports:[Fc,aR,Nz,Ot,nf,Jo,Nz,Ot]})}return i})();const b1e=["tooltip"],eq=new V("mat-tooltip-scroll-strategy"),w1e={provide:eq,deps:[du],useFactory:function y1e(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},C1e=new V("mat-tooltip-default-options",{providedIn:"root",factory:function x1e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),tq="tooltip-panel",iq=Ml({passive:!0});let A1e=(()=>{class i{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=$e(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=$i(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=$i(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,n,r,o,s,a,l,c,u,f,p,g){this._overlay=e,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=f,this._defaultOptions=p,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=T1e,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new de,this._scrollStrategy=u,this._document=g,p&&(this._showDelay=p.showDelay,this._hideDelay=p.hideDelay,p.position&&(this.position=p.position),p.positionAtOrigin&&(this.positionAtOrigin=p.positionAtOrigin),p.touchGestures&&(this.touchGestures=p.touchGestures)),f.change.pipe(Qe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Qe(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,iq)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(n);this._detach(),this._portal=this._portal||new D6(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Qe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof Ee)return this._overlayRef;this._detach()}const n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(Qe(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${tq}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Qe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Qe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Qe(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!na(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n||"below"==n?r={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n?r={overlayX:"center",overlayY:"bottom"}:"below"==n?r={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ji(1),Qe(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return"above"===this.position||"below"===this.position?"top"===n?n="bottom":"bottom"===n&&(n="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){const{overlayY:n,originX:r,originY:o}=e;let s;if(s="center"===n?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===n&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${tq}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let n;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(n=e),this.show(void 0,n)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{const r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,iq)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const n=this._elementRef.nativeElement,r=n.style;("on"===e||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(n){return new(n||i)(x(du),x(Ee),x(Kp),x(Tr),x(ge),x(Bi),x(dde),x(Tl),x(eq),x(xs),x(C1e,8),x(it))};static#t=this.\u0275dir=ne({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){2&n&&Pe("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return i})(),T1e=(()=>{class i{constructor(e,n,r){this._changeDetectorRef=e,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new de,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===r}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(n);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(n){return new(n||i)(x(Nt),x(Ee),x(Ui,8))};static#t=this.\u0275cmp=w({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(1&n&&Pt(b1e,7),2&n){let o;he(o=fe())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,r){1&n&&Q("mouseleave",function(s){return r._handleMouseLeave(s)}),2&n&&vl("zoom",r.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,r){1&n&&(D(0,"div",0,1),Q("animationend",function(s){return r._handleAnimationEnd(s)}),D(2,"div",2),R(3),E()()),2&n&&(Pe("mdc-tooltip--multiline",r._isMultiline),K("ngClass",r.tooltipClass),I(3),qt(r.message))},dependencies:[hC],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return i})(),I1e=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:[w1e],imports:[Cz,Fc,aR,Ot,Ot,nf]})}return i})(),O1e=(()=>{class i{constructor(){}saveData(e,n){localStorage.setItem(e,JSON.stringify(n))}getData(e){return localStorage.getItem(e)?JSON.parse(localStorage.getItem(e)):null}removeData(e){localStorage.removeItem(e)}clearData(){localStorage.clear()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function R1e(i,t){1&i&&(D(0,"mat-icon"),R(1,"portrait"),E())}function P1e(i,t){1&i&&(D(0,"mat-icon"),R(1,"forum"),E())}function F1e(i,t){1&i&&(D(0,"mat-icon"),R(1,"poll"),E())}function N1e(i,t){1&i&&(D(0,"mat-icon"),R(1,"how_to_vote"),E())}function L1e(i,t){1&i&&(D(0,"mat-icon"),R(1,"emoji_events"),E())}function B1e(i,t){1&i&&(D(0,"mat-icon",25),R(1,"question_mark"),E())}function V1e(i,t){1&i&&(D(0,"div",26)(1,"mat-icon"),R(2,"warning"),E()())}function H1e(i,t){if(1&i){const e=Ci();D(0,"div",18),Q("click",function(){const o=He(e).$index;return Se(ie().navigateToStage(o))}),D(1,"div",19),R(2),E(),D(3,"div",20),_e(4,R1e,2,0)(5,P1e,2,0)(6,F1e,2,0)(7,N1e,2,0)(8,L1e,2,0)(9,B1e,2,0),E(),D(10,"div",21),R(11),E(),_e(12,V1e,3,0,"div",22),D(13,"div",23)(14,"button",24),Q("click",function(r){const s=He(e).$index;return Se(ie().deleteStage(r,s))}),D(15,"mat-icon"),R(16,"close"),E()()()()}if(2&i){const e=t.$implicit,n=t.$index,r=ie();let o;lp("stage-container ",n===r.currentEditingStageIndex&&"active",""),I(2),qt(n+1),I(1),Pa("matTooltip",e.kind||"Please select a stage kind!"),I(1),xe(4,(o=e.kind)===r.StageKinds.acceptTos?4:o===r.StageKinds.groupChat?5:o===r.StageKinds.takeSurvey?6:o===r.StageKinds.voteForLeader?7:o===r.StageKinds.revealVoted?8:9),I(7),Li(" ",e.name&&0!==e.name.length?e.name:"Unnamed stage"," "),I(1),xe(12,r.stageSetupIncomplete(e)?12:-1)}}function z1e(i,t){if(1&i&&(D(0,"mat-option",27),R(1),E()),2&i){const e=t.$implicit;K("value",e),I(1),qt(e)}}function U1e(i,t){if(1&i){const e=Ci();D(0,"div",32)(1,"mat-form-field",33)(2,"textarea",34),Q("ngModelChange",function(r){const s=He(e).$index;return Se(ie().config.tosLines[s]=r)})("input",function(r){return He(e),Se(ie(2).onChange(r))}),R(3," "),E()(),R(4," \xa0 "),D(5,"button",35),Q("click",function(){const o=He(e).$index,s=ie();return Se(ie().deleteTosLine(s,o))}),D(6,"mat-icon"),R(7,"close"),E()()()}if(2&i){const e=t.$index,n=ie();I(2),K("ngModel",n.config.tosLines[e])}}function W1e(i,t){if(1&i){const e=Ci();D(0,"div",28)(1,"h3"),R(2,"Terms of Service (ToS) lines:"),E(),q(3,"div",29),D(4,"button",7),Q("click",function(){const o=He(e);return Se(ie().addNewTosLine(o))}),D(5,"mat-icon"),R(6,"add"),E(),R(7,"ToS Line "),E()(),D(8,"div",30)(9,"div",31),Q("cdkDropListDropped",function(r){const s=He(e);return Se(ie().dropTosLine(s,r))}),Yr(10,U1e,8,1,"div",36,up),E()()}2&i&&(I(10),Xr(t.config.tosLines))}function j1e(i,t){1&i&&(D(0,"div",39),R(1,"Please add a question to this survey"),E())}function $1e(i,t){if(1&i){const e=Ci();D(0,"div",48),Q("click",function(){He(e);const r=ie().$index;return Se(ie(2).moveSurveyQuestion("up",r))}),D(1,"mat-icon"),R(2,"arrow_upward"),E()()}}function G1e(i,t){if(1&i){const e=Ci();D(0,"div",49),Q("click",function(){He(e);const r=ie().$index;return Se(ie(2).moveSurveyQuestion("down",r))}),D(1,"mat-icon"),R(2,"arrow_downward"),E()()}}function q1e(i,t){if(1&i){const e=Ci();D(0,"mat-form-field",33)(1,"mat-label"),R(2,"Checkbox question text:"),E(),D(3,"input",34),Q("ngModelChange",function(r){return Se(He(e).questionText=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()()}2&i&&(I(3),K("ngModel",t.questionText))}function K1e(i,t){if(1&i){const e=Ci();D(0,"mat-form-field",33)(1,"mat-label"),R(2,"Freeform question text:"),E(),D(3,"input",34),Q("ngModelChange",function(r){return Se(He(e).questionText=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()()}2&i&&(I(3),K("ngModel",t.questionText))}function J1e(i,t){if(1&i){const e=Ci();D(0,"div",50)(1,"mat-form-field",33)(2,"mat-label"),R(3,"Scale question text:"),E(),D(4,"input",34),Q("ngModelChange",function(r){return Se(He(e).questionText=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()(),D(5,"mat-form-field",33)(6,"mat-label"),R(7,"Lowerbound label:"),E(),D(8,"input",34),Q("ngModelChange",function(r){return Se(He(e).lowerBound=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()(),D(9,"mat-form-field",33)(10,"mat-label"),R(11,"Upperbound label:"),E(),D(12,"input",34),Q("ngModelChange",function(r){return Se(He(e).upperBound=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()()()}2&i&&(I(4),K("ngModel",t.questionText),I(4),K("ngModel",t.lowerBound),I(4),K("ngModel",t.upperBound))}function Y1e(i,t){if(1&i){const e=Ci();D(0,"div",50)(1,"mat-form-field",33)(2,"mat-label"),R(3,"Rating question text:"),E(),D(4,"input",34),Q("ngModelChange",function(r){return Se(He(e).questionText=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()(),D(5,"div",51)(6,"div",52)(7,"div",53)(8,"div"),R(9,"Item 1"),E(),D(10,"mat-form-field",33)(11,"mat-label"),R(12,"Name:"),E(),D(13,"input",54),Q("ngModelChange",function(r){return Se(He(e).rating.item1.name=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()(),D(14,"mat-form-field",33)(15,"mat-label"),R(16,"Image URL:"),E(),D(17,"input",55),Q("ngModelChange",function(r){return Se(He(e).rating.item1.imageUrl=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()()(),D(18,"div",53)(19,"div"),R(20,"Item 2"),E(),D(21,"mat-form-field",33)(22,"mat-label"),R(23,"Name:"),E(),D(24,"input",54),Q("ngModelChange",function(r){return Se(He(e).rating.item2.name=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()(),D(25,"mat-form-field",33)(26,"mat-label"),R(27,"Image URL:"),E(),D(28,"input",55),Q("ngModelChange",function(r){return Se(He(e).rating.item2.imageUrl=r)})("input",function(r){return He(e),Se(ie(3).onChange(r))}),E()()()()()()}2&i&&(I(4),K("ngModel",t.questionText),I(9),K("ngModel",t.rating.item1.name),I(4),K("ngModel",t.rating.item1.imageUrl),I(7),K("ngModel",t.rating.item2.name),I(4),K("ngModel",t.rating.item2.imageUrl))}function X1e(i,t){if(1&i){const e=Ci();D(0,"div",40)(1,"div",41),_e(2,$1e,3,0,"div",42),D(3,"div",43),R(4),E(),_e(5,G1e,3,0,"div",44),E(),_e(6,q1e,4,1,"mat-form-field",45)(7,K1e,4,1,"mat-form-field",45)(8,J1e,13,3,"div",46)(9,Y1e,29,5,"div",46),D(10,"button",47),Q("click",function(r){const s=He(e).$index;return Se(ie(2).deleteSurveyQuestion(r,s))}),D(11,"mat-icon"),R(12,"close"),E()()()}if(2&i){const e=t.$implicit,n=t.$index,r=ie(),o=ie();let s;I(2),xe(2,n>0?2:-1),I(2),Li("Q",n+1,""),I(1),xe(5,nee(fr).validParticipant(i.params.experiment,i.params.user)],pathMatch:"full"},{path:"experimenter",component:y7,canActivate:[(i,t)=>!0],children:[{path:"create-experiment",component:(()=>{class i{constructor(e,n){this.appStateService=e,this.localStore=n,this.existingStages=[],this.currentEditingStageIndex=-1,this.newExperimentName="",this.StageKinds=Kt,this.SurveyQuestionKind=ys,this.tryCast=aae,this.availableStageKinds=[Kt.acceptTosAndSetProfile,Kt.takeSurvey,Kt.voteForLeader,Kt.groupChat,Kt.revealVoted];const r=this.localStore.getData(Sk);this.existingStages=r||dI(),this.currentEditingStageIndex=0}get currentEditingStage(){return this.existingStages[this.currentEditingStageIndex]}get hasUnsavedData(){const e=this.localStore.getData(Sk);return!(0,iv.isEqual)(e,this.existingStages)}addNewTosLine(e){e.config.tosLines.push(""),this.persistExistingStages()}deleteTosLine(e,n){e.config.tosLines.splice(n,1),this.persistExistingStages()}dropTosLine(e,n){Vy(e.config.tosLines,n.previousIndex,n.currentIndex),this.persistExistingStages()}addNewSurveyQuestion(e,n){let r=null;"rating"===n?r={kind:ys.RATING,id:(0,iv.uniqueId)(),questionText:"",rating:{item1:{name:"",imageUrl:""},item2:{name:"",imageUrl:""},choice:null,confidence:null}}:"scale"===n&&(r={kind:ys.SCALE,id:(0,iv.uniqueId)(),questionText:"",upperBound:"",lowerBound:"",score:null}),this.currentEditingStage.config.questions.push(r),this.persistExistingStages()}deleteSurveyQuestion(e,n){this.currentEditingStage.config.questions.splice(n,1),this.persistExistingStages()}moveSurveyQuestion(e,n){0===n&&"up"===e||n===this.currentEditingStage.config?.questions.length-1&&"down"===e||Vy(this.currentEditingStage.config.questions,n,"up"===e?n-1:n+1)}dropSurveyQuestion(e){Vy(this.currentEditingStage.config.questions,e.previousIndex,e.currentIndex),this.persistExistingStages()}stageSetupIncomplete(e){const n=e||this.currentEditingStage;return!n.kind||!n.name||0===n.name.trim().length||n.kind!==Kt.acceptTosAndSetProfile&&n.kind===Kt.takeSurvey&&0===n.config?.questions.length}experimentSetupIncomplete(){return 0===this.newExperimentName.trim().length||this.existingStages.some(e=>this.stageSetupIncomplete(e))}persistExistingStages(){this.localStore.saveData(Sk,this.existingStages)}dropStage(e){Vy(this.existingStages,e.previousIndex,e.currentIndex),this.persistExistingStages(),this.navigateToStage(e.currentIndex)}addNewStage(){this.existingStages.push({name:""}),this.persistExistingStages(),this.currentEditingStageIndex=this.existingStages.length-1}deleteStage(e,n){e.stopPropagation(),1===this.existingStages.length?this.existingStages[0]={name:""}:(this.currentEditingStageIndex>=n&&(this.currentEditingStageIndex-=1),this.existingStages.splice(n,1)),this.persistExistingStages()}resetExistingStages(){this.localStore.removeData(Sk),this.existingStages=dI(),this.persistExistingStages(),this.currentEditingStageIndex=0}navigateToStage(e){this.currentEditingStageIndex=e}onChange(e,n){if("stage-kind"===n){console.log("Switched to:",this.currentEditingStage.kind);let r={};switch(this.currentEditingStage.kind){case Kt.acceptTosAndSetProfile:r={pronouns:"",avatarUrl:"",name:"",tosLines:[""],acceptedTosTimestamp:null};break;case Kt.takeSurvey:r={questions:[]};break;case Kt.voteForLeader:r={};break;case Kt.groupChat:r={ratingsToDiscuss:[],messages:[]};break;case Kt.revealVoted:r={pendingVoteStageName:"",revealTimestamp:null}}this.currentEditingStage.config=r}this.persistExistingStages()}addExperiment(){this.appStateService.editData(e=>Y8(this.newExperimentName,this.existingStages,e))}static#e=this.\u0275fac=function(n){return new(n||i)(x(fr),x(O1e))};static#t=this.\u0275cmp=w({type:i,selectors:[["app-create-experiment"]],standalone:!0,features:[vi],decls:48,vars:8,consts:[[1,"main"],[1,"top-bar"],[1,"mat-form-field"],["matInput","","type","text","placeholder","new experiment name","required","true",3,"ngModel","ngModelChange","input"],["mat-raised-button","","color","primary",3,"disabled","click"],[1,"container"],["cdkDropList","",1,"stage-list",3,"cdkDropListDropped"],["mat-button","",3,"click"],["mat-raised-button","","color","warn",3,"click"],[1,"stage-creation-container"],[1,"main-content"],[1,"stage-kind-selection"],[1,"form-element-wrapper"],[3,"ngModel","ngModelChange","selectionChange"],[1,"stage-name-edit"],["matInput","","type","text","placeholder","Welcome to the experiment!",3,"ngModel","ngModelChange","input"],[1,"tool-bar"],["class","unsaved-warning"],["cdkDrag","",3,"click"],[1,"stage-idx"],[1,"stage-icon",3,"matTooltip"],[1,"stage-content"],["class","stage-incomplete","matTooltip","Stage incomplete"],[1,"stage-delete"],["mat-icon-button","","matTooltip","Delelte this stage",3,"click"],[1,"unknow-stage-kind"],["matTooltip","Stage incomplete",1,"stage-incomplete"],[3,"value"],[1,"config-title"],[1,"fill"],[1,"config-wrapper"],["cdkDropList","",1,"tos-lines",3,"cdkDropListDropped"],[1,"tos-line"],["cdkDrag","",1,"mat-form-field"],["matInput","","type","text","placeholder","In vel diam malesuada nibh vehicula rutrum eget vel lectus.",3,"ngModel","ngModelChange","input"],["mat-icon-button","","matTooltip","Delelte this line",3,"click"],["class","tos-line"],["class","warning"],["cdkDropList","",1,"survey-questions",3,"cdkDropListDropped"],[1,"warning"],[1,"question"],[1,"question-index"],["matTooltip","move up","class","move-button"],[1,"idx"],["matTooltip","move down","class","move-button"],["cdkDrag","","class","mat-form-field"],["class","question-fields"],["mat-icon-button","","matTooltip","Delete this question",3,"click"],["matTooltip","move up",1,"move-button",3,"click"],["matTooltip","move down",1,"move-button",3,"click"],[1,"question-fields"],[1,"question-rating-items"],[1,"item-pair"],[1,"question-rating-item"],["matInput","","type","text","placeholder","compass",3,"ngModel","ngModelChange","input"],["matInput","","type","text","placeholder","https://m.media-amazon.com/images/I/81NUeKWdiQL._AC_UF1000,1000_QL80_.jpg",3,"ngModel","ngModelChange","input"],["class","question"],[1,"unsaved-warning"],["mat-raised-button","","color","primary",3,"click"],["cdkDrag","",3,"class"]],template:function(n,r){if(1&n&&(D(0,"div",0)(1,"div",1)(2,"h2"),R(3,"Create an experiment:"),E(),D(4,"mat-form-field",2)(5,"mat-label"),R(6,"Experiment Name"),E(),D(7,"input",3),Q("ngModelChange",function(s){return r.newExperimentName=s})("input",function(s){return r.onChange(s)}),E()(),D(8,"button",4),Q("click",function(){return r.addExperiment()}),R(9," Add new experiment "),E()(),D(10,"div",5)(11,"div",6),Q("cdkDropListDropped",function(s){return r.dropStage(s)}),Yr(12,H1e,17,8,"div",59,up),q(14,"br"),D(15,"button",7),Q("click",function(){return r.addNewStage()}),D(16,"mat-icon"),R(17,"add"),E(),R(18," New stage"),E(),q(19,"br"),D(20,"button",8),Q("click",function(){return r.resetExistingStages()}),R(21,"Reset all"),E(),q(22,"br"),E(),D(23,"mat-card",9)(24,"div",10)(25,"div",11)(26,"h3"),R(27,"Stage kind:"),E(),R(28," \xa0\xa0\xa0 "),D(29,"div",12)(30,"mat-form-field",2)(31,"mat-label"),R(32,"Choose a stage:"),E(),D(33,"mat-select",13),Q("ngModelChange",function(s){return r.currentEditingStage.kind=s})("selectionChange",function(s){return r.onChange(s,"stage-kind")}),Yr(34,z1e,2,2,"mat-option",27,Ah),E()()()(),D(36,"div",14)(37,"h3"),R(38,"Stage name:"),E(),R(39," \xa0\xa0\xa0 "),D(40,"div",12)(41,"mat-form-field",2)(42,"input",15),Q("ngModelChange",function(s){return r.currentEditingStage.name=s})("input",function(s){return r.onChange(s)}),E()()()(),_e(43,W1e,12,0)(44,Z1e,17,1),E(),D(45,"div",16),_e(46,Q1e,2,0,"div",17)(47,eke,4,0),E()()()()),2&n){let o;I(7),K("ngModel",r.newExperimentName),I(1),K("disabled",r.experimentSetupIncomplete()),I(4),Xr(r.existingStages),I(21),K("ngModel",r.currentEditingStage.kind),I(1),Xr(r.availableStageKinds),I(8),K("ngModel",r.currentEditingStage.name),I(1),xe(43,(o=r.tryCast(r.StageKinds.acceptTosAndSetProfile,r.currentEditingStage))?43:-1,o),I(1),xe(44,(o=r.tryCast(r.StageKinds.takeSurvey,r.currentEditingStage))?44:-1,o),I(2),xe(46,r.stageSetupIncomplete()?46:-1),I(1),xe(47,r.hasUnsavedData?47:-1)}},dependencies:[Cs,ou,bD,e1e,Y7,Jp,Gv,Q7,su,Il,_1e,Fz,xk,Jo,Ha,au,I1e,A1e,Ba,Cl,Zd,DC,Qd,J7,K7],styles:[".main[_ngcontent-%COMP%]{padding:1rem}.top-bar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.top-bar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{display:flex;width:100%;height:80vh}.stage-list[_ngcontent-%COMP%]{width:250px;padding-right:20px;height:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;overflow:auto}.stage-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-shrink:0}.stage-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;margin:0;font-size:.9rem;background-color:#efefef;cursor:pointer;display:flex;align-items:center}.stage-container[_ngcontent-%COMP%]:hover, .cdk-drag-preview[_ngcontent-%COMP%]:hover{background-color:#ddd}.stage-container.active[_ngcontent-%COMP%], .cdk-drag-preview.active[_ngcontent-%COMP%]{background-color:#ccc}.stage-idx[_ngcontent-%COMP%]{margin-right:8px;height:100%;width:24px;background-color:#0ee9ed4b;display:flex;align-items:center;justify-content:center}.stage-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-right:5px;transform:scale(.8);opacity:.8}.stage-icon[_ngcontent-%COMP%] .unknow-stage-kind[_ngcontent-%COMP%]{color:#ce4200}.stage-content[_ngcontent-%COMP%]{min-height:30px;display:flex;align-items:center;flex:1}.stage-incomplete[_ngcontent-%COMP%]{transform:scale(.7);color:#d9523e;cursor:default}.stage-delete[_ngcontent-%COMP%]{opacity:.7}.stage-creation-container[_ngcontent-%COMP%]{flex:1;padding:1rem 1.5rem;display:flex;flex-direction:column}.stage-creation-container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{flex:1;height:90%;padding-bottom:20px;display:flex;flex-direction:column;align-items:stretch}.stage-creation-container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .form-element-wrapper[_ngcontent-%COMP%]{min-width:350px}.stage-creation-container[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%] .form-element-wrapper[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}.stage-creation-container[_ngcontent-%COMP%] .tool-bar[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end}.stage-creation-container[_ngcontent-%COMP%] .tool-bar[_ngcontent-%COMP%] .unsaved-warning[_ngcontent-%COMP%]{margin:1rem;color:#ed5109}.warning[_ngcontent-%COMP%]{color:#ed5109}.stage-name-edit[_ngcontent-%COMP%], .stage-kind-selection[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.config-title[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px}.config-title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.config-title[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{flex:1}.config-wrapper[_ngcontent-%COMP%]{flex:1;overflow:auto}.tos-lines[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.tos-lines[_ngcontent-%COMP%] .tos-line[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;margin-bottom:.25rem}.tos-lines[_ngcontent-%COMP%] .tos-line[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{flex:1}.survey-questions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;padding:1rem 0rem;box-sizing:border-box;border-bottom:1px dashed lightgray}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-index[_ngcontent-%COMP%]{flex-shrink:0;margin-right:1rem;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-index[_ngcontent-%COMP%] .move-button[_ngcontent-%COMP%]{margin:12px 0;cursor:pointer;opacity:.5;transform:scale(.7);transition:all .1s ease-in-out}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-index[_ngcontent-%COMP%] .move-button[_ngcontent-%COMP%]:hover{opacity:1}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-fields[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;flex:1}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-fields[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{margin-bottom:-6px}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-fields[_ngcontent-%COMP%] .question-rating-items[_ngcontent-%COMP%]{display:flex;align-items:center}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-fields[_ngcontent-%COMP%] .question-rating-items[_ngcontent-%COMP%] .item-pair[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center}.survey-questions[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .question-fields[_ngcontent-%COMP%] .question-rating-items[_ngcontent-%COMP%] .item-pair[_ngcontent-%COMP%] .question-rating-item[_ngcontent-%COMP%]{flex-basis:45%;display:flex;flex-direction:column;padding:5px}.stage-view[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}.stage-view[_ngcontent-%COMP%] .sub-view[_ngcontent-%COMP%]{padding:.5rem}.stage-view[_ngcontent-%COMP%] .reference-view[_ngcontent-%COMP%]{max-height:300px;overflow:auto}.stage-view[_ngcontent-%COMP%] .reference-view[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{height:100%;width:100%;font-size:12px;line-height:1rem}.stage-view[_ngcontent-%COMP%] .creation-view[_ngcontent-%COMP%]{border-top:thin solid #ccc}.navigation[_ngcontent-%COMP%]{margin-top:1.5rem;display:flex;align-items:center;justify-content:space-between}.toolbar[_ngcontent-%COMP%]{margin:1.5rem 0rem;display:flex;align-items:center;justify-content:flex-end}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .stage-container[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}return i})(),pathMatch:"full"},{path:"experiment/:experiment/settings",component:ADe,pathMatch:"full"},{path:"experiment/:experiment",component:MDe,pathMatch:"full"},{path:"settings",component:y2,pathMatch:"full"}]},{path:"",component:h6,pathMatch:"full"},{path:"**",component:Pwe}];let ike=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Zh.forRoot(tke,{useHash:!0,bindToComponentInputs:!0}),Zh]})}return i})();function rq(i){return new z(3e3,!1)}function Au(i){switch(i.length){case 0:return new Nv;case 1:return i[0];default:return new Uz(i)}}function oq(i,t,e=new Map,n=new Map){const r=[],o=[];let s=-1,a=null;if(t.forEach(l=>{const c=l.get("offset"),u=c==s,f=u&&a||new Map;l.forEach((p,g)=>{let b=g,v=p;if("offset"!==g)switch(b=i.normalizePropertyName(b,r),v){case"!":v=e.get(g);break;case Wc:v=n.get(g);break;default:v=i.normalizeStyleValue(g,b,v,r)}f.set(b,v)}),u||o.push(f),a=f,s=c}),r.length)throw function kke(i){return new z(3502,!1)}();return o}function H2(i,t,e,n){switch(t){case"start":i.onStart(()=>n(e&&z2(e,"start",i)));break;case"done":i.onDone(()=>n(e&&z2(e,"done",i)));break;case"destroy":i.onDestroy(()=>n(e&&z2(e,"destroy",i)))}}function z2(i,t,e){const o=U2(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),s=i._data;return null!=s&&(o._data=s),o}function U2(i,t,e,n,r="",o=0,s){return{element:i,triggerName:t,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function Os(i,t,e){let n=i.get(t);return n||i.set(t,n=e),n}function sq(i){const t=i.indexOf(":");return[i.substring(1,t),i.slice(t+1)]}const Lke=(()=>typeof document>"u"?null:document.documentElement)();function W2(i){const t=i.parentNode||i.host||null;return t===Lke?null:t}let yf=null,aq=!1;function lq(i,t){for(;t;){if(t===i)return!0;t=W2(t)}return!1}function cq(i,t,e){if(e)return Array.from(i.querySelectorAll(t));const n=i.querySelector(t);return n?[n]:[]}let j2=(()=>{class i{validateStyleProperty(e){return function Vke(i){yf||(yf=function Hke(){return typeof document<"u"?document.body:null}()||{},aq=!!yf.style&&"WebkitAppearance"in yf.style);let t=!0;return yf.style&&!function Bke(i){return"ebkit"==i.substring(1,6)}(i)&&(t=i in yf.style,!t&&aq&&(t="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in yf.style)),t}(e)}matchesElement(e,n){return!1}containsElement(e,n){return lq(e,n)}getParentElement(e){return W2(e)}query(e,n,r){return cq(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,s,a=[],l){return new Nv(r,o)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})(),$2=(()=>{class i{static#e=this.NOOP=new j2}return i})();class G2{}const Uke=1e3,q2="ng-enter",Mk="ng-leave",Ak="ng-trigger",Tk=".ng-trigger",uq="ng-animating",K2=".ng-animating";function ed(i){if("number"==typeof i)return i;const t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:J2(parseFloat(t[1]),t[2])}function J2(i,t){return"s"===t?i*Uke:i}function Ik(i,t,e){return i.hasOwnProperty("duration")?i:function jke(i,t,e){let r,o=0,s="";if("string"==typeof i){const a=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(rq()),{duration:0,delay:0,easing:""};r=J2(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=J2(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=i;if(!e){let a=!1,l=t.length;r<0&&(t.push(function nke(){return new z(3100,!1)}()),a=!0),o<0&&(t.push(function rke(){return new z(3101,!1)}()),a=!0),a&&t.splice(l,0,rq())}return{duration:r,delay:o,easing:s}}(i,t,e)}function zy(i,t={}){return Object.keys(i).forEach(e=>{t[e]=i[e]}),t}function hq(i){const t=new Map;return Object.keys(i).forEach(e=>{t.set(e,i[e])}),t}function Tu(i,t=new Map,e){if(e)for(let[n,r]of e)t.set(n,r);for(let[n,r]of i)t.set(n,r);return t}function Gl(i,t,e){t.forEach((n,r)=>{const o=X2(r);e&&!e.has(r)&&e.set(r,i.style[o]),i.style[o]=n})}function wf(i,t){t.forEach((e,n)=>{const r=X2(n);i.style[r]=""})}function Uy(i){return Array.isArray(i)?1==i.length?i[0]:function fue(i,t=null){return{type:2,steps:i,options:t}}(i):i}const Y2=new RegExp("{{\\s*(.+?)\\s*}}","g");function mq(i){let t=[];if("string"==typeof i){let e;for(;e=Y2.exec(i);)t.push(e[1]);Y2.lastIndex=0}return t}function Wy(i,t,e){const n=i.toString(),r=n.replace(Y2,(o,s)=>{let a=t[s];return null==a&&(e.push(function ske(i){return new z(3003,!1)}()),a=""),a.toString()});return r==n?i:r}function Ok(i){const t=[];let e=i.next();for(;!e.done;)t.push(e.value),e=i.next();return t}const qke=/-+([a-z0-9])/g;function X2(i){return i.replace(qke,(...t)=>t[1].toUpperCase())}function Rs(i,t,e){switch(t.type){case 7:return i.visitTrigger(t,e);case 0:return i.visitState(t,e);case 1:return i.visitTransition(t,e);case 2:return i.visitSequence(t,e);case 3:return i.visitGroup(t,e);case 4:return i.visitAnimate(t,e);case 5:return i.visitKeyframes(t,e);case 6:return i.visitStyle(t,e);case 8:return i.visitReference(t,e);case 9:return i.visitAnimateChild(t,e);case 10:return i.visitAnimateRef(t,e);case 11:return i.visitQuery(t,e);case 12:return i.visitStagger(t,e);default:throw function ake(i){return new z(3004,!1)}()}}function pq(i,t){return window.getComputedStyle(i)[t]}const Yke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class gq extends G2{normalizePropertyName(t,e){return X2(t)}normalizeStyleValue(t,e,n,r){let o="";const s=n.toString().trim();if(Yke.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function lke(i,t){return new z(3005,!1)}())}return s+o}}const Rk="*";function Xke(i,t){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(n=>function Zke(i,t,e){if(":"==i[0]){const l=function Qke(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(i,e);if("function"==typeof l)return void t.push(l);i=l}const n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function yke(i){return new z(3015,!1)}()),t;const r=n[1],o=n[2],s=n[3];t.push(_q(r,s));"<"==o[0]&&!(r==Rk&&s==Rk)&&t.push(_q(s,r))}(n,e,t)):e.push(i),e}const Pk=new Set(["true","1"]),Fk=new Set(["false","0"]);function _q(i,t){const e=Pk.has(i)||Fk.has(i),n=Pk.has(t)||Fk.has(t);return(r,o)=>{let s=i==Rk||i==r,a=t==Rk||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Pk.has(i):Fk.has(i)),!a&&n&&"boolean"==typeof o&&(a=o?Pk.has(t):Fk.has(t)),s&&a}}const eEe=new RegExp("s*:selfs*,?","g");function Z2(i,t,e,n){return new tEe(i).build(t,e,n)}class tEe{constructor(t){this._driver=t}build(t,e,n){const r=new rEe(e);return this._resetContextStyleTimingState(r),Rs(this,Uy(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function cke(){return new z(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function dke(){return new z(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{mq(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Ok(o.values()),e.errors.push(function uke(i,t){return new z(3008,!1)}()))}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Rs(this,Uy(t.animation),e);return{type:1,matchers:Xke(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:xf(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(n=>Rs(this,n,e)),options:xf(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=n;const a=Rs(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:xf(t.options)}}visitAnimate(t,e){const n=function sEe(i,t){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return Q2(Ik(i,t).duration,0,"");const e=i;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Q2(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Ik(e,t);return Q2(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let r,o=t.styles?t.styles:Ln({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};n.easing&&(c.easing=n.easing),s=Ln(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Wc?n.push(a):e.errors.push(new z(3002,!1)):n.push(hq(a));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let f=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function fke(i,t,e,n,r){return new z(3010,!1)}()),f=!1),o=u.startTime),f&&c.set(l,{startTime:o,endTime:r}),e.options&&function Gke(i,t,e){const n=t.params||{},r=mq(i);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function oke(i){return new z(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function mke(){return new z(3011,!1)}()),n;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(S=>{const M=this._makeStyleAst(S,e);let L=null!=M.offset?M.offset:function oEe(i){if("string"==typeof i)return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(M.styles),H=0;return null!=L&&(o++,H=M.offset=L),l=l||H<0||H>1,a=a||H0&&o{const L=p>0?M==g?1:p*M:s[M],H=L*C;e.currentTime=b+v.delay+H,v.duration=H,this._validateStyleAst(S,e),S.offset=L,n.styles.push(S)}),n}visitReference(t,e){return{type:8,animation:Rs(this,Uy(t.animation),e),options:xf(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:xf(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:xf(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function iEe(i){const t=!!i.split(/\s*,\s*/).find(e=>":self"==e);return t&&(i=i.replace(eEe,"")),i=i.replace(/@\*/g,Tk).replace(/@\w+/g,e=>Tk+"-"+e.slice(1)).replace(/:animating/g,K2),[i,t]}(t.selector);e.currentQuerySelector=n.length?n+" "+o:o,Os(e.collectedStyles,e.currentQuerySelector,new Map);const a=Rs(this,Uy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:xf(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function bke(){return new z(3013,!1)}());const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ik(t.timings,e.errors,!0);return{type:12,animation:Rs(this,Uy(t.animation),e),timings:n,options:null}}}class rEe{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function xf(i){return i?(i=zy(i)).params&&(i.params=function nEe(i){return i?zy(i):null}(i.params)):i={},i}function Q2(i,t,e){return{duration:i,delay:t,easing:e}}function eF(i,t,e,n,r,o,s=null,a=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Nk{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const cEe=new RegExp(":enter","g"),uEe=new RegExp(":leave","g");function tF(i,t,e,n,r,o=new Map,s=new Map,a,l,c=[]){return(new hEe).buildKeyframes(i,t,e,n,r,o,s,a,l,c)}class hEe{buildKeyframes(t,e,n,r,o,s,a,l,c,u=[]){c=c||new Nk;const f=new iF(t,e,c,r,o,u,[]);f.options=l;const p=l.delay?ed(l.delay):0;f.currentTimeline.delayNextStep(p),f.currentTimeline.setStyles([s],null,f.errors,l),Rs(this,n,f);const g=f.timelines.filter(b=>b.containsAnimation());if(g.length&&a.size){let b;for(let v=g.length-1;v>=0;v--){const C=g[v];if(C.element===e){b=C;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,f.errors,l)}return g.length?g.map(b=>b.buildKeyframes()):[eF(e,[],[],[],0,p,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,n){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:ed(Wy(o,r?.params??{},e.errors));n.delayNextStep(s)}}}_visitSubInstructions(t,e,n){let o=e.currentTimeline.currentTime;const s=null!=n.duration?ed(n.duration):null,a=null!=n.delay?ed(n.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Rs(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lk);const s=ed(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Rs(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?ed(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Rs(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Ik(e.params?Wy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?ed(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lk);let s=n;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const f=e.createSubContext(t.options,c);o&&f.delayNextStep(o),c===e.element&&(l=f.currentTimeline),Rs(this,t.animation,f),f.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,f.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const f=u.currentTime;Rs(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-f+(r.startTime-n.currentTimeline.startTime)}}const Lk={};class iF{constructor(t,e,n,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bk(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=ed(n.duration)),null!=n.delay&&(r.delay=ed(n.delay));const o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Wy(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,o=new iF(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Lk,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},o=new fEe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(cEe,"."+this._enterClassName)).replace(uEe,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&0==a.length&&s.push(function vke(i){return new z(3014,!1)}()),a}}class Bk{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Bk(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Wc),this._currentKeyframe.set(e,Wc);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function mEe(i,t){const e=new Map;let n;return i.forEach(r=>{if("*"===r){n=n||t.keys();for(let o of n)e.set(o,Wc)}else Tu(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Wy(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Wc),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{const r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Tu(a,new Map,this._backFill);c.forEach((u,f)=>{"!"===u?t.add(f):u===Wc&&e.add(f)}),n||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Ok(t.values()):[],s=e.size?Ok(e.values()):[];if(n){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return eF(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class fEe extends Bk{constructor(t,e,n,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=n+e,a=e/s,l=Tu(t[0]);l.set("offset",0),o.push(l);const c=Tu(t[0]);c.set("offset",yq(a)),o.push(c);const u=t.length-1;for(let f=1;f<=u;f++){let p=Tu(t[f]);const g=p.get("offset");p.set("offset",yq((e+g*n)/s)),o.push(p)}n=s,e=0,r="",t=o}return eF(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function yq(i,t=3){const e=Math.pow(10,t-1);return Math.round(i*e)/e}function wq(i,t,e,n,r,o,s,a,l,c,u,f,p){return{type:0,element:i,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:f,errors:p}}const nF={};class xq{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function pEe(i,t,e,n,r){return i.some(o=>o(t,e,n,r))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,n):new Map}build(t,e,n,r,o,s,a,l,c,u){const f=[],p=this.ast.options&&this.ast.options.params||nF,b=this.buildStyles(n,a&&a.params||nF,f),v=l&&l.params||nF,C=this.buildStyles(r,v,f),S=new Set,M=new Map,L=new Map,H="void"===r,W={params:gEe(v,p),delay:this.ast.options?.delay},te=u?[]:tF(t,e,this.ast.animation,o,s,b,C,W,c,f);let se=0;if(te.forEach(ct=>{se=Math.max(ct.duration+ct.delay,se)}),f.length)return wq(e,this._triggerName,n,r,H,b,C,[],[],M,L,se,f);te.forEach(ct=>{const ft=ct.element,St=Os(M,ft,new Set);ct.preStyleProps.forEach(Bt=>St.add(Bt));const gt=Os(L,ft,new Set);ct.postStyleProps.forEach(Bt=>gt.add(Bt)),ft!==e&&S.add(ft)});const ze=Ok(S.values());return wq(e,this._triggerName,n,r,H,b,C,te,ze,M,L,se)}}function gEe(i,t){const e=zy(t);for(const n in i)i.hasOwnProperty(n)&&null!=i[n]&&(e[n]=i[n]);return e}class _Ee{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n=new Map,r=zy(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Wy(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),n.set(a,s)})}),n}}class vEe{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new _Ee(r.style,r.options&&r.options.params||{},n))}),Cq(this.states,"true","1"),Cq(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new xq(t,r,this.states))}),this.fallbackTransition=function yEe(i,t,e){return new xq(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(s=>s.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Cq(i,t,e){i.has(t)?i.has(e)||i.set(e,i.get(t)):i.has(e)&&i.set(t,i.get(e))}const wEe=new Nk;class xEe{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const n=[],o=Z2(this._driver,e,n,[]);if(n.length)throw function Eke(i){return new z(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,n){const r=t.element,o=oq(this._normalizer,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=tF(this._driver,e,o,q2,Mk,new Map,new Map,n,wEe,r),s.forEach(u=>{const f=Os(a,u.element,new Map);u.postStyleProps.forEach(p=>f.set(p,null))})):(r.push(function Ske(){return new z(3300,!1)}()),s=[]),r.length)throw function Mke(i){return new z(3504,!1)}();a.forEach((u,f)=>{u.forEach((p,g)=>{u.set(g,this._driver.computeStyle(f,g,Wc))})});const c=Au(s.map(u=>{const f=a.get(u.element);return this._buildPlayer(u,new Map,f)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function Ake(i){return new z(3301,!1)}();return e}listen(t,e,n,r){const o=U2(e,"","","");return H2(this._getPlayer(t),n,o,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const Dq="ng-animate-queued",rF="ng-animate-disabled",SEe=[],kq={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},MEe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ja="__ng_removed";class oF{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function OEe(i){return i??null}(n?t.value:t),n){const o=zy(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const jy="void",sF=new oF(jy);class AEe{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ha(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.has(e))throw function Tke(i,t){return new z(3302,!1)}();if(null==n||0==n.length)throw function Ike(i){return new z(3303,!1)}();if(!function REe(i){return"start"==i||"done"==i}(n))throw function Oke(i,t){return new z(3400,!1)}();const o=Os(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);const a=Os(this._engine.statesByElement,t,new Map);return a.has(e)||(ha(t,Ak),ha(t,Ak+"-"+e),a.set(e,sF)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function Rke(i){return new z(3401,!1)}();return e}trigger(t,e,n,r=!0){const o=this._getTrigger(e),s=new aF(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(ha(t,Ak),ha(t,Ak+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new oF(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=sF),c.value!==jy&&l.value===c.value){if(!function NEe(i,t){const e=Object.keys(i),n=Object.keys(t);if(e.length!=n.length)return!1;for(let r=0;r{wf(t,C),Gl(t,S)})}return}const p=Os(this._engine.playersByElement,t,[]);p.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let g=o.matchTransition(l.value,c.value,t,c.params),b=!1;if(!g){if(!r)return;g=o.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:g,fromState:l,toState:c,player:s,isFallbackTransition:b}),b||(ha(t,Dq),s.onStart(()=>{Dg(t,Dq)})),s.onDone(()=>{let v=this.players.indexOf(s);v>=0&&this.players.splice(v,1);const C=this._engine.playersByElement.get(t);if(C){let S=C.indexOf(s);S>=0&&C.splice(S,1)}}),this.players.push(s),p.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,Tk,!0);n.forEach(r=>{if(r[ja])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,n,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,jy,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),n&&Au(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=n.get(s)||sF,u=new oF(jy),f=new aF(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:f,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const o=t[ja];(!o||o===kq)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){ha(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){const l=U2(o,n.triggerName,n.fromState.value,n.toState.value);l._data=t,H2(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const o=n.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class TEe{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){const n=new AEe(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(t)}else n.push(t);return r.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,n,r){if(Vk(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Vk(e))return;const o=e[ja];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ha(t,rF)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Dg(t,rF))}removeNode(t,e,n){if(Vk(e)){const r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n);const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,n,r,o){this.collectedLeaveElements.push(e),e[ja]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,n,r,o){return Vk(e)?this._fetchNamespace(t).listen(e,n,r,o):()=>{}}_buildInstruction(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Tk,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,K2,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Au(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[ja];if(e&&e.setForRemoval){if(t[ja]=kq,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(rF)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Au(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw function Pke(i){return new z(3402,!1)}()}_flushAnimations(t,e){const n=new Nk,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(ye=>{u.add(ye);const De=this.driver.query(ye,".ng-animate-queued",!0);for(let Me=0;Me{const Me=q2+v++;b.set(De,Me),ye.forEach(mt=>ha(mt,Me))});const C=[],S=new Set,M=new Set;for(let ye=0;yeS.add(mt)):M.add(De))}const L=new Map,H=Mq(p,Array.from(S));H.forEach((ye,De)=>{const Me=Mk+v++;L.set(De,Me),ye.forEach(mt=>ha(mt,Me))}),t.push(()=>{g.forEach((ye,De)=>{const Me=b.get(De);ye.forEach(mt=>Dg(mt,Me))}),H.forEach((ye,De)=>{const Me=L.get(De);ye.forEach(mt=>Dg(mt,Me))}),C.forEach(ye=>{this.processLeaveNode(ye)})});const W=[],te=[];for(let ye=this._namespaceList.length-1;ye>=0;ye--)this._namespaceList[ye].drainQueuedTransitions(e).forEach(Me=>{const mt=Me.player,Rt=Me.element;if(W.push(mt),this.collectedEnterElements.length){const so=Rt[ja];if(so&&so.setForMove){if(so.previousTriggersValues&&so.previousTriggersValues.has(Me.triggerName)){const Df=so.previousTriggersValues.get(Me.triggerName),fa=this.statesByElement.get(Me.element);if(fa&&fa.has(Me.triggerName)){const Uk=fa.get(Me.triggerName);Uk.value=Df,fa.set(Me.triggerName,Uk)}}return void mt.destroy()}}const on=!f||!this.driver.containsElement(f,Rt),Ki=L.get(Rt),oo=b.get(Rt),di=this._buildInstruction(Me,n,oo,Ki,on);if(di.errors&&di.errors.length)return void te.push(di);if(on)return mt.onStart(()=>wf(Rt,di.fromStyles)),mt.onDestroy(()=>Gl(Rt,di.toStyles)),void r.push(mt);if(Me.isFallbackTransition)return mt.onStart(()=>wf(Rt,di.fromStyles)),mt.onDestroy(()=>Gl(Rt,di.toStyles)),void r.push(mt);const Cf=[];di.timelines.forEach(so=>{so.stretchStartingKeyframe=!0,this.disabledNodes.has(so.element)||Cf.push(so)}),di.timelines=Cf,n.append(Rt,di.timelines),s.push({instruction:di,player:mt,element:Rt}),di.queriedElements.forEach(so=>Os(a,so,[]).push(mt)),di.preStyleProps.forEach((so,Df)=>{if(so.size){let fa=l.get(Df);fa||l.set(Df,fa=new Set),so.forEach((Uk,pF)=>fa.add(pF))}}),di.postStyleProps.forEach((so,Df)=>{let fa=c.get(Df);fa||c.set(Df,fa=new Set),so.forEach((Uk,pF)=>fa.add(pF))})});if(te.length){const ye=[];te.forEach(De=>{ye.push(function Fke(i,t){return new z(3505,!1)}())}),W.forEach(De=>De.destroy()),this.reportError(ye)}const se=new Map,ze=new Map;s.forEach(ye=>{const De=ye.element;n.has(De)&&(ze.set(De,De),this._beforeAnimationBuild(ye.player.namespaceId,ye.instruction,se))}),r.forEach(ye=>{const De=ye.element;this._getPreviousPlayers(De,!1,ye.namespaceId,ye.triggerName,null).forEach(mt=>{Os(se,De,[]).push(mt),mt.destroy()})});const ct=C.filter(ye=>Tq(ye,l,c)),ft=new Map;Sq(ft,this.driver,M,c,Wc).forEach(ye=>{Tq(ye,l,c)&&ct.push(ye)});const gt=new Map;g.forEach((ye,De)=>{Sq(gt,this.driver,new Set(ye),l,"!")}),ct.forEach(ye=>{const De=ft.get(ye),Me=gt.get(ye);ft.set(ye,new Map([...De?.entries()??[],...Me?.entries()??[]]))});const Bt=[],jt=[],Ii={};s.forEach(ye=>{const{element:De,player:Me,instruction:mt}=ye;if(n.has(De)){if(u.has(De))return Me.onDestroy(()=>Gl(De,mt.toStyles)),Me.disabled=!0,Me.overrideTotalTime(mt.totalTime),void r.push(Me);let Rt=Ii;if(ze.size>1){let Ki=De;const oo=[];for(;Ki=Ki.parentNode;){const di=ze.get(Ki);if(di){Rt=di;break}oo.push(Ki)}oo.forEach(di=>ze.set(di,Rt))}const on=this._buildAnimation(Me.namespaceId,mt,se,o,gt,ft);if(Me.setRealPlayer(on),Rt===Ii)Bt.push(Me);else{const Ki=this.playersByElement.get(Rt);Ki&&Ki.length&&(Me.parentPlayer=Au(Ki)),r.push(Me)}}else wf(De,mt.fromStyles),Me.onDestroy(()=>Gl(De,mt.toStyles)),jt.push(Me),u.has(De)&&r.push(Me)}),jt.forEach(ye=>{const De=o.get(ye.element);if(De&&De.length){const Me=Au(De);ye.setRealPlayer(Me)}}),r.forEach(ye=>{ye.parentPlayer?ye.syncPlayerEvents(ye.parentPlayer):ye.destroy()});for(let ye=0;ye!on.destroyed);Rt.length?PEe(this,De,Rt):this.processLeaveNode(De)}return C.length=0,Bt.forEach(ye=>{this.players.push(ye),ye.onDone(()=>{ye.destroy();const De=this.players.indexOf(ye);this.players.splice(De,1)}),ye.play()}),Bt}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==jy;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,n){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,f=Os(n,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(g=>{const b=g.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),g.destroy(),f.push(g)})}wf(o,e.fromStyles)}_buildAnimation(t,e,n,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,f=new Set,p=e.timelines.map(b=>{const v=b.element;u.add(v);const C=v[ja];if(C&&C.removedBeforeQueried)return new Nv(b.duration,b.delay);const S=v!==l,M=function FEe(i){const t=[];return Aq(i,t),t}((n.get(v)||SEe).map(se=>se.getRealPlayer())).filter(se=>!!se.element&&se.element===v),L=o.get(v),H=s.get(v),W=oq(this._normalizer,b.keyframes,L,H),te=this._buildPlayer(b,W,M);if(b.subTimeline&&r&&f.add(v),S){const se=new aF(t,a,v);se.setRealPlayer(te),c.push(se)}return te});c.forEach(b=>{Os(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function IEe(i,t,e){let n=i.get(t);if(n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&i.delete(t)}return n}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>ha(b,uq));const g=Au(p);return g.onDestroy(()=>{u.forEach(b=>Dg(b,uq)),Gl(l,e.toStyles)}),f.forEach(b=>{Os(r,b,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Nv(t.duration,t.delay)}}class aF{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Nv,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>H2(t,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Os(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Vk(i){return i&&1===i.nodeType}function Eq(i,t){const e=i.style.display;return i.style.display=t??"none",e}function Sq(i,t,e,n,r){const o=[];e.forEach(l=>o.push(Eq(l)));const s=[];n.forEach((l,c)=>{const u=new Map;l.forEach(f=>{const p=t.computeStyle(c,f,r);u.set(f,p),(!p||0==p.length)&&(c[ja]=MEe,s.push(c))}),i.set(c,u)});let a=0;return e.forEach(l=>Eq(l,o[a++])),s}function Mq(i,t){const e=new Map;if(i.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function ha(i,t){i.classList?.add(t)}function Dg(i,t){i.classList?.remove(t)}function PEe(i,t,e){Au(e).onDone(()=>i.processLeaveNode(t))}function Aq(i,t){for(let e=0;er.add(o)):t.set(i,n),e.delete(i),!0}class $y{constructor(t,e,n){this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new TEe(t.body,e,n),this._timelineEngine=new xEe(t.body,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,n,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Z2(this._driver,o,l,[]);if(l.length)throw function Dke(i,t){return new z(3404,!1)}();a=function bEe(i,t,e){return new vEe(i,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n){this._transitionEngine.removeNode(t,e,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[o,s]=sq(n);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,o){if("@"==n.charAt(0)){const[s,a]=sq(n);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,n,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}let BEe=(()=>{class i{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=i.initialStylesByElement.get(e);o||i.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Gl(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Gl(this._element,this._initialStyles),this._endStyles&&(Gl(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(wf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wf(this._element,this._endStyles),this._endStyles=null),Gl(this._element,this._initialStyles),this._state=3)}}return i})();function lF(i){let t=null;return i.forEach((e,n)=>{(function VEe(i){return"display"===i||"position"===i})(n)&&(t=t||new Map,t.set(n,e))}),t}class Iq{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(t,e,n){return t.animate(this._convertKeyframesToObject(e),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&t.set(r,this._finished?n:pq(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Oq{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return lq(t,e)}getParentElement(t){return W2(t)}query(t,e,n){return cq(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}animate(t,e,n,r,o,s=[]){const l={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(g=>g instanceof Iq);(function Kke(i,t){return 0===i||0===t})(n,r)&&u.forEach(g=>{g.currentSnapshot.forEach((b,v)=>c.set(v,b))});let f=function $ke(i){return i.length?i[0]instanceof Map?i:i.map(t=>hq(t)):[]}(e).map(g=>Tu(g));f=function Jke(i,t,e){if(e.size&&t.length){let n=t[0],r=[];if(e.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,pq(i,a)))}}return t}(t,f,c);const p=function LEe(i,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=lF(t[0]),t.length>1&&(n=lF(t[t.length-1]))):t instanceof Map&&(e=lF(t)),e||n?new BEe(i,e,n):null}(t,f);return new Iq(t,f,l,p)}}const Rq="@.disabled";class Pq{constructor(t,e,n,r){this.namespaceId=t,this.delegate=e,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Rq?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class HEe extends Pq{constructor(t,e,n,r,o){super(e,n,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Rq?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function zEe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function UEe(i){const t=i.indexOf(".");return[i.substring(0,t),i.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(t,e,n)}}class WEe{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{const s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(t,e){const r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){const c=this._rendererCache;let u=c.get(r);return u||(u=new Pq("",r,this.engine,()=>c.delete(r)),c.set(r,u)),u}const o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,t,c.name,c)};return e.data.animation.forEach(a),new HEe(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){if(t>=0&&te(n));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,n])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Fq=[{provide:G2,useFactory:function $Ee(){return new gq}},{provide:$y,useClass:(()=>{class i extends $y{constructor(e,n,r,o){super(e,n,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||i)(U(it),U($2),U(G2),U(qd))};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac})}return i})()},{provide:aM,useFactory:function GEe(i,t,e){return new WEe(i,t,e)},deps:[dT,$y,ge]}],cF=[{provide:$2,useFactory:()=>new Oq},{provide:Ui,useValue:"BrowserAnimations"},...Fq],Nq=[{provide:$2,useClass:j2},{provide:Ui,useValue:"NoopAnimations"},...Fq];let qEe=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?Nq:cF}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({providers:cF,imports:[C4]})}return i})();function Gy(i){return void 0!==i.error}function Lq(i){return dF.apply(this,arguments)}function dF(){return(dF=en(function*(i){try{const t=yield i();return 200!==t.status?{error:`${t.statusText} (status: ${t.status})`}:t.result}catch(t){const e=t;return console.warn(t),404===e.status?{error:"No such spreadsheet exists. Maybe the ID or URL is mistyped? (404)"}:403===e.status?{error:"You do not have permission to access this sheet. You need to login with an account that has access, or have the owner make it publicly viewable. (403)"}:{error:`Unknown error (${e.status}), sorry.`}}})).apply(this,arguments)}function Bq(i,t){const e=i.match(/^(https\:\/\/docs\.google\.com\/spreadsheets\/d\/)?([a-zA-Z0-9_\-]{5,})\/?/);if(!e)return{error:"No sheet URL or ID entered."};const n=e[2];console.log("sheetId:",n);const r={spreadsheetId:n};return t&&(r.access_token=t.access_token),r}let YEe=(()=>{class i{constructor(){this.onceReady=new Promise((e,n)=>{gapi.load("client",en(function*(){yield gapi.client.init({apiKey:"enter api key for sheets api here",discoveryDocs:["https://sheets.googleapis.com/$discovery/rest?version=v4"]}),e()}))})}getSheetInfo(e,n){var r=this;return en(function*(){yield r.onceReady;const o=Bq(e,n);if(Gy(o))return o;const s=yield Lq(()=>gapi.client.sheets.spreadsheets.get(o));return Gy(s),s})()}getSheetValues(e,n,r){var o=this;return en(function*(){yield o.onceReady;const s=function JEe(i,t,e){const n=Bq(i,e);return Gy(n)||(n.range=t),n}(e,n,r);if(Gy(s))return s;const a=yield Lq(()=>gapi.client.sheets.spreadsheets.values.get(s));return Gy(a)?a:a.values&&0!=a.values.length?{values:a.values}:{error:"no values found."}})()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),XEe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Cz,Ot,Ot]})}return i})(),nSe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i});static#i=this.\u0275inj=nt({imports:[Ot,Uc,Ot]})}return i})();function uF(){return(uF=en(function*(i="",t,e){return(yield fetch(i,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(e)})).json()})).apply(this,arguments)}function hF(){return hF=en(function*(i,t,e,n="text-bison",r="us-central1-aiplatform.googleapis.com"){return function rSe(){return uF.apply(this,arguments)}(`https://${r}/v1/projects/${i}/locations/us-central1/publishers/google/models/${n}:predict`,t,e)}),hF.apply(this,arguments)}class sSe{constructor(t,e){this.projectId=t,this.accessToken=e,this.defaultOptions={modelId:"text-bison",apiEndpoint:"us-central1-aiplatform.googleapis.com",requestParameters:{temperature:.7,topK:40,topP:.95,candidateCount:4,maxOutputTokens:256,stopSequences:[]}},this.name="VertexLLM:"+this.defaultOptions.modelId}predict(t,e){var n=this;return en(function*(){const r=e?e.requestParameters:n.defaultOptions.requestParameters,o={instances:[{content:t}],parameters:r},s=yield function oSe(i,t,e){return hF.apply(this,arguments)}(n.projectId,n.accessToken,o,n.defaultOptions.modelId,n.defaultOptions.apiEndpoint);let a="";if(r.stopSequences&&r.stopSequences.length>0&&(a=r.stopSequences[0]),!s.predictions)throw new Error(`No predictions resturned in api response: ${JSON.stringify(s,null,2)}`);return{completions:s.predictions.map(c=>({query:t,completion:c.content+a,score:1})).map(c=>c.completion)}})()}}function fF(){return(fF=en(function*(i="",t,e){return(yield fetch(i,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(e)})).json()})).apply(this,arguments)}function mF(){return mF=en(function*(i,t,e,n="textembedding-gecko",r="us-central1-aiplatform.googleapis.com"){return function lSe(){return fF.apply(this,arguments)}(`https://${r}/v1/projects/${i}/locations/us-central1/publishers/google/models/${n}:predict`,t,e)}),mF.apply(this,arguments)}class dSe{constructor(t,e){this.projectId=t,this.accessToken=e,this.defaultOptions={modelId:"textembedding-gecko",apiEndpoint:"us-central1-aiplatform.googleapis.com"},this.name="VertexEmbedder:"+this.defaultOptions.modelId}embed(t,e){var n=this;return en(function*(){const r={instances:[{content:t}]},o=yield function cSe(i,t,e){return mF.apply(this,arguments)}(n.projectId,n.accessToken,r,e?e.modelId:n.defaultOptions.modelId,e?e.apiEndpoint:n.defaultOptions.apiEndpoint);return console.log(o),function aSe(i){return!!i.error}(o)?{error:o.error.message}:{embedding:o.predictions[0].embeddings.values}})()}}let uSe=(()=>{class i{constructor(){const e=localStorage.getItem("projectId")||"no project set",n=localStorage.getItem("accessToken")||"no access token set";this.llm=new sSe(e,n),this.embedder=new dSe(e,n)}set accessToken(e){console.log(`accessToken update ${e}.`),this.llm.accessToken=e,localStorage.setItem("accessToken",e)}get accessToken(){return this.llm.accessToken}set projectId(e){console.log(`projectId update ${e}.`),this.llm.projectId=e,localStorage.setItem("projectId",e)}get projectId(){return this.llm.projectId}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=oe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),hSe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=Fe({type:i,bootstrap:[Vce]});static#i=this.\u0275inj=nt({providers:[uSe,fr,t5,KO,YEe],imports:[C4,qEe,Zh,ike,Q7,D2,nSe,Jp,S2,XEe,Ba,tv,Cs,Jo,Ha,y6,Uv,$6,pU,h6,y2,p7,s7,a7,i7,_7,g7,y7]})}return i})();One().bootstrapModule(hSe).catch(i=>console.error(i))},161:function(Zo){Zo.exports=function(){"use strict";function Ao(P,$){return P($={exports:{}},$.exports),$.exports}var mn=Ao(function(P){var $=P.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=$)}),Hn=Ao(function(P){var $=P.exports={version:"2.6.5"};"number"==typeof __e&&(__e=$)}),ui=function(P){return"object"==typeof P?null!==P:"function"==typeof P},Ps=function(P){if(!ui(P))throw TypeError(P+" is not an object!");return P},ql=function(P){try{return!!P()}catch{return!0}},Oi=!ql(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),mi=mn.document,Iu=ui(mi)&&ui(mi.createElement),Ou=!Oi&&!ql(function(){return 7!=Object.defineProperty(function(P){return Iu?mi.createElement(P):{}}("div"),"a",{get:function(){return 7}}).a}),td=Object.defineProperty,ma={f:Oi?Object.defineProperty:function($,ce,ae){if(Ps($),ce=function(P,$){if(!ui(P))return P;var ce,ae;if($&&"function"==typeof(ce=P.toString)&&!ui(ae=ce.call(P))||"function"==typeof(ce=P.valueOf)&&!ui(ae=ce.call(P))||!$&&"function"==typeof(ce=P.toString)&&!ui(ae=ce.call(P)))return ae;throw TypeError("Can't convert object to primitive value")}(ce,!0),Ps(ae),Ou)try{return td($,ce,ae)}catch{}if("get"in ae||"set"in ae)throw TypeError("Accessors not supported!");return"value"in ae&&($[ce]=ae.value),$}},sn=Oi?function(P,$,ce){return ma.f(P,$,function(P,$){return{enumerable:!(1&P),configurable:!(2&P),writable:!(4&P),value:$}}(1,ce))}:function(P,$,ce){return P[$]=ce,P},Fs={}.hasOwnProperty,Jl=function(P,$){return Fs.call(P,$)},Hr=0,Ns=Math.random(),zr=Ao(function(P){var $="__core-js_shared__",ce=mn[$]||(mn[$]={});(P.exports=function(ae,Ge){return ce[ae]||(ce[ae]=void 0!==Ge?Ge:{})})("versions",[]).push({version:Hn.version,mode:"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})}),co=zr("native-function-to-string",Function.toString),Ls=Ao(function(P){var $=function(P){return"Symbol(".concat(void 0===P?"":P,")_",(++Hr+Ns).toString(36))}("src"),ce="toString",ae=(""+co).split(ce);Hn.inspectSource=function(Ge){return co.call(Ge)},(P.exports=function(Ge,ue,yt,Wn){var Pi="function"==typeof yt;Pi&&(Jl(yt,"name")||sn(yt,"name",ue)),Ge[ue]!==yt&&(Pi&&(Jl(yt,$)||sn(yt,$,Ge[ue]?""+Ge[ue]:ae.join(String(ue)))),Ge===mn?Ge[ue]=yt:Wn?Ge[ue]?Ge[ue]=yt:sn(Ge,ue,yt):(delete Ge[ue],sn(Ge,ue,yt)))})(Function.prototype,ce,function(){return"function"==typeof this&&this[$]||co.call(this)})}),Ef=function(P,$,ce){if(function(P){if("function"!=typeof P)throw TypeError(P+" is not a function!")}(P),void 0===$)return P;switch(ce){case 1:return function(ae){return P.call($,ae)};case 2:return function(ae,Ge){return P.call($,ae,Ge)};case 3:return function(ae,Ge,ue){return P.call($,ae,Ge,ue)}}return function(){return P.apply($,arguments)}},Yl="prototype",pn=function(P,$,ce){var Ur,ns,rr,tc,ae=P&pn.F,Ge=P&pn.G,yt=P&pn.P,Wn=P&pn.B,Pi=Ge?mn:P&pn.S?mn[$]||(mn[$]={}):(mn[$]||{})[Yl],ya=Ge?Hn:Hn[$]||(Hn[$]={}),Ya=ya[Yl]||(ya[Yl]={});for(Ur in Ge&&(ce=$),ce)rr=((ns=!ae&&Pi&&void 0!==Pi[Ur])?Pi:ce)[Ur],tc=Wn&&ns?Ef(rr,mn):yt&&"function"==typeof rr?Ef(Function.call,rr):rr,Pi&&Ls(Pi,Ur,rr,P&pn.U),ya[Ur]!=rr&&sn(ya,Ur,tc),yt&&Ya[Ur]!=rr&&(Ya[Ur]=rr)};mn.core=Hn,pn.F=1,pn.G=2,pn.S=4,pn.P=8,pn.B=16,pn.W=32,pn.U=64,pn.R=128;var Qo=pn,Eg=Math.ceil,Sg=Math.floor,es=function(P){return isNaN(P=+P)?0:(P>0?Sg:Eg)(P)},Ga=(!1,function($,ce){var yt,Wn,ae=String(function(P){if(null==P)throw TypeError("Can't call method on "+P);return P}($)),Ge=es(ce),ue=ae.length;return Ge<0||Ge>=ue?void 0:(yt=ae.charCodeAt(Ge))<55296||yt>56319||Ge+1===ue||(Wn=ae.charCodeAt(Ge+1))<56320||Wn>57343?yt:Wn-56320+(yt-55296<<10)+65536});Qo(Qo.P,"String",{codePointAt:function($){return Ga(this,$)}});var qy=Math.max,Ky=Math.min,Sf=function(P,$){return(P=es(P))<0?qy(P+$,0):Ky(P,$)},ga=String.fromCharCode,id=String.fromCodePoint;Qo(Qo.S+Qo.F*(!!id&&1!=id.length),"String",{fromCodePoint:function($){for(var yt,ce=arguments,ae=[],Ge=arguments.length,ue=0;Ge>ue;){if(yt=+ce[ue++],Sf(yt,1114111)!==yt)throw RangeError(yt+" is not a valid code point");ae.push(yt<65536?ga(yt):ga(55296+((yt-=65536)>>10),yt%1024+56320))}return ae.join("")}});var Mt,Zt,zn,_a,Ue,mr,Ji,Bs,Ri,ot,Je,Zl,pr,st,Ka={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},wi={isSpaceSeparator:function($){return"string"==typeof $&&Ka.Space_Separator.test($)},isIdStartChar:function($){return"string"==typeof $&&($>="a"&&$<="z"||$>="A"&&$<="Z"||"$"===$||"_"===$||Ka.ID_Start.test($))},isIdContinueChar:function($){return"string"==typeof $&&($>="a"&&$<="z"||$>="A"&&$<="Z"||$>="0"&&$<="9"||"$"===$||"_"===$||"\u200c"===$||"\u200d"===$||Ka.ID_Continue.test($))},isDigit:function($){return"string"==typeof $&&/[0-9]/.test($)},isHexDigit:function($){return"string"==typeof $&&/[0-9A-Fa-f]/.test($)}};function ba(P,$,ce){var ae=P[$];if(null!=ae&&"object"==typeof ae)if(Array.isArray(ae))for(var Ge=0;Ge0;){var ce=nr();if(!wi.isHexDigit(ce))throw Jt(Y());P+=Y()}return String.fromCodePoint(parseInt(P,16))}var Ag={start:function(){if("eof"===Ji.type)throw Un();Ql()},beforePropertyName:function(){switch(Ji.type){case"identifier":case"string":return Bs=Ji.value,void(Zt="afterPropertyName");case"punctuator":return void nd();case"eof":throw Un()}},afterPropertyName:function(){if("eof"===Ji.type)throw Un();Zt="beforePropertyValue"},beforePropertyValue:function(){if("eof"===Ji.type)throw Un();Ql()},beforeArrayValue:function(){if("eof"===Ji.type)throw Un();"punctuator"!==Ji.type||"]"!==Ji.value?Ql():nd()},afterPropertyValue:function(){if("eof"===Ji.type)throw Un();switch(Ji.value){case",":return void(Zt="beforePropertyName");case"}":nd()}},afterArrayValue:function(){if("eof"===Ji.type)throw Un();switch(Ji.value){case",":return void(Zt="beforeArrayValue");case"]":nd()}},end:function(){}};function Ql(){var P;switch(Ji.type){case"punctuator":switch(Ji.value){case"{":P={};break;case"[":P=[]}break;case"null":case"boolean":case"numeric":case"string":P=Ji.value}if(void 0===Ri)Ri=P;else{var $=zn[zn.length-1];Array.isArray($)?$.push(P):Object.defineProperty($,Bs,{value:P,writable:!0,enumerable:!0,configurable:!0})}if(null!==P&&"object"==typeof P)zn.push(P),Zt=Array.isArray(P)?"beforeArrayValue":"beforePropertyName";else{var ce=zn[zn.length-1];Zt=null==ce?"end":Array.isArray(ce)?"afterArrayValue":"afterPropertyValue"}}function nd(){zn.pop();var P=zn[zn.length-1];Zt=null==P?"end":Array.isArray(P)?"afterArrayValue":"afterPropertyValue"}function Jt(P){return ec(void 0===P?"JSON5: invalid end of input at "+Ue+":"+mr:"JSON5: invalid character '"+Vt(P)+"' at "+Ue+":"+mr)}function Un(){return ec("JSON5: invalid end of input at "+Ue+":"+mr)}function Mf(){return ec("JSON5: invalid identifier character at "+Ue+":"+(mr-=5))}function Vt(P){var $={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if($[P])return $[P];if(P<" "){var ce=P.charCodeAt(0).toString(16);return"\\x"+("00"+ce).substring(ce.length)}return P}function ec(P){var $=new SyntaxError(P);return $.lineNumber=Ue,$.columnNumber=mr,$}return{parse:function($,ce){Mt=String($),Zt="start",zn=[],_a=0,Ue=1,mr=0,Ji=void 0,Bs=void 0,Ri=void 0;do{Ji=is(),Ag[Zt]()}while("eof"!==Ji.type);return"function"==typeof ce?ba({"":Ri},"",ce):Ri},stringify:function($,ce,ae){var yt,Wn,ya,Ge=[],ue="",Pi="";if(null!=ce&&"object"==typeof ce&&!Array.isArray(ce)&&(ae=ce.space,ya=ce.quote,ce=ce.replacer),"function"==typeof ce)Wn=ce;else if(Array.isArray(ce)){yt=[];for(var Ya=0,Ur=ce;Ya0&&(ae=Math.min(10,Math.floor(ae)),Pi=" ".substr(0,ae)):"string"==typeof ae&&(Pi=ae.substr(0,10)),tc("",{"":$});function tc($t,Yi){var rt=Yi[$t];switch(null!=rt&&("function"==typeof rt.toJSON5?rt=rt.toJSON5($t):"function"==typeof rt.toJSON&&(rt=rt.toJSON($t))),Wn&&(rt=Wn.call(Yi,$t,rt)),rt instanceof Number?rt=Number(rt):rt instanceof String?rt=String(rt):rt instanceof Boolean&&(rt=rt.valueOf()),rt){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof rt?Fu(rt):"number"==typeof rt?String(rt):"object"==typeof rt?Array.isArray(rt)?function rd($t){if(Ge.indexOf($t)>=0)throw TypeError("Converting circular structure to JSON5");Ge.push($t);var gn,Yi=ue;ue+=Pi;for(var rt=[],an=0;an<$t.length;an++){var ho=tc(String(an),$t);rt.push(void 0!==ho?ho:"null")}if(0===rt.length)gn="[]";else if(""===Pi)gn="["+rt.join(",")+"]";else{var rs=rt.join(",\n"+ue);gn="[\n"+ue+rs+",\n"+Yi+"]"}return Ge.pop(),ue=Yi,gn}(rt):function Og($t){if(Ge.indexOf($t)>=0)throw TypeError("Converting circular structure to JSON5");Ge.push($t);var wa,ic,Yi=ue;ue+=Pi;for(var an=[],ho=0,gn=yt||Object.keys($t);ho"']/g,Mf=RegExp(Jt.source),Af=RegExp(Un.source),Vt=/<%-([\s\S]+?)%>/g,ec=/<%([\s\S]+?)%>/g,Tf=/<%=([\s\S]+?)%>/g,Tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ig=/^\w*$/,de=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/[\\^$.*+?()[\]{}|]/g,$=RegExp(P.source),ce=/^\s+/,ae=/\s/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,yt=/,? & /,Wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pi=/[()=,{}\[\]\/\s]/,ya=/\\(\\)?/g,Ya=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ur=/\w*$/,ns=/^[-+]0x[0-9a-f]+$/i,rr=/^0b[01]+$/i,tc=/^\[object .+?Constructor\]$/,Fu=/^0o[0-7]+$/i,Og=/^(?:0|[1-9]\d*)$/,If=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rd=/($^)/,$t=/['\n\r\u2028\u2029\\]/g,Yi="\\ud800-\\udfff",gn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",zs="\\u2700-\\u27bf",_n="a-z\\xdf-\\xf6\\xf8-\\xff",Yy="A-Z\\xc0-\\xd6\\xd8-\\xde",Xy="\\ufe0e\\ufe0f",Zy="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wk="["+Yi+"]",Qy="["+Zy+"]",Of="["+gn+"]",e0="\\d+",jk="["+zs+"]",$k="["+_n+"]",Rf="[^"+Yi+Zy+e0+zs+_n+Yy+"]",Pf="\\ud83c[\\udffb-\\udfff]",Fg="[^"+Yi+"]",Ff="(?:\\ud83c[\\udde6-\\uddff]){2}",Ng="[\\ud800-\\udbff][\\udc00-\\udfff]",nc="["+Yy+"]",Bg="(?:"+$k+"|"+Rf+")",n0="(?:"+nc+"|"+Rf+")",jn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",r0="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",o0="(?:"+Of+"|"+Pf+")?",s0="["+Xy+"]?",l0=s0+o0+"(?:\\u200d(?:"+[Fg,Ff,Ng].join("|")+")"+s0+o0+")*",xa="(?:"+[jk,Ff,Ng].join("|")+")"+l0,Kk="(?:"+[Fg+Of+"?",Of,Ff,Ng,Wk].join("|")+")",Sn=RegExp("['\u2019]","g"),od=RegExp(Of,"g"),Wr=RegExp(Pf+"(?="+Pf+")|"+Kk+l0,"g"),gF=RegExp([nc+"?"+$k+"+"+jn+"(?="+[Qy,nc,"$"].join("|")+")",n0+"+"+r0+"(?="+[Qy,nc+Bg,"$"].join("|")+")",nc+"?"+Bg+"+"+jn,nc+"+"+r0,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e0,xa].join("|"),"g"),Jk=RegExp("[\\u200d"+Yi+gn+Xy+"]"),c0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],d0=-1,ei={};ei[is]=ei[nr]=ei[Y]=ei[Ja]=ei[Qt]=ei[uo]=ei[Pu]=ei[va]=ei[Hs]=!0,ei[ga]=ei[id]=ei[pr]=ei[qa]=ei[st]=ei[Xl]=ei[Ka]=ei[wi]=ei[Zt]=ei[zn]=ei[Ue]=ei[Bs]=ei[Ri]=ei[Vs]=ei[Je]=!1;var pi={};pi[ga]=pi[id]=pi[pr]=pi[st]=pi[qa]=pi[Xl]=pi[is]=pi[nr]=pi[Y]=pi[Ja]=pi[Qt]=pi[Zt]=pi[zn]=pi[Ue]=pi[Bs]=pi[Ri]=pi[Vs]=pi[ba]=pi[uo]=pi[Pu]=pi[va]=pi[Hs]=!0,pi[Ka]=pi[wi]=pi[Je]=!1;var Xk={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zk=parseFloat,Qk=parseInt,Hg="object"==typeof global&&global&&global.Object===Object&&global,eE="object"==typeof self&&self&&self.Object===Object&&self,$n=Hg||eE||Function("return this")(),ln=Ao&&!Ao.nodeType&&Ao,Hi=ln&&Zo&&!Zo.nodeType&&Zo,gr=Hi&&Hi.exports===ln,Ie=gr&&Hg.process,_r=function(){try{return Hi&&Hi.require&&Hi.require("util").types||Ie&&Ie.binding&&Ie.binding("util")}catch{}}(),Nf=_r&&_r.isArrayBuffer,Mn=_r&&_r.isDate,sd=_r&&_r.isMap,f0=_r&&_r.isRegExp,Yt=_r&&_r.isSet,Nu=_r&&_r.isTypedArray;function Ht(F,G,B){switch(B.length){case 0:return F.call(G);case 1:return F.call(G,B[0]);case 2:return F.call(G,B[0],B[1]);case 3:return F.call(G,B[0],B[1],B[2])}return F.apply(G,B)}function zg(F,G,B,Ce){for(var pt=-1,Be=null==F?0:F.length;++pt-1}function Lu(F,G,B){for(var Ce=-1,pt=null==F?0:F.length;++Ce-1;);return B}function sE(F,G){for(var B=F.length;B--&&sc(G,F[B],0)>-1;);return B}var aE=$g({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),vF=$g({"&":"&","<":"<",">":">",'"':""","'":"'"});function lE(F){return"\\"+Xk[F]}function bn(F){return Jk.test(F)}function g0(F){var G=-1,B=Array(F.size);return F.forEach(function(Ce,pt){B[++G]=[pt,Ce]}),B}function cE(F,G){return function(B){return F(G(B))}}function ac(F,G){for(var B=-1,Ce=F.length,pt=0,Be=[];++B",""":'"',"'":"'"}),wt=function F(G){var d,B=(G=null==G?$n:wt.defaults($n.Object(),G,wt.pick($n,Vg))).Array,Ce=G.Date,pt=G.Error,Be=G.Function,An=G.Math,gi=G.Object,V=G.RegExp,qg=G.String,jr=G.TypeError,Vu=B.prototype,cd=gi.prototype,dd=G["__core-js_shared__"],Jg=Be.prototype.toString,oi=cd.hasOwnProperty,CF=0,uE=(d=/[^.]+$/.exec(dd&&dd.keys&&dd.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",Yg=cd.toString,Hu=Jg.call(gi),Xg=$n._,zf=V("^"+Jg.call(oi).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uf=gr?G.Buffer:T,Za=G.Symbol,Wf=G.Uint8Array,Zg=Uf?Uf.allocUnsafe:T,Da=cE(gi.getPrototypeOf,gi),v0=gi.create,ka=cd.propertyIsEnumerable,jf=Vu.splice,U=Za?Za.isConcatSpreadable:T,ud=Za?Za.iterator:T,ee=Za?Za.toStringTag:T,lc=function(){try{var d=fc(gi,"defineProperty");return d({},"",{}),d}catch{}}(),Qg=G.clearTimeout!==$n.clearTimeout&&G.clearTimeout,zu=Ce&&Ce.now!==$n.Date.now&&Ce.now,hE=G.setTimeout!==$n.setTimeout&&G.setTimeout,$f=An.ceil,Gf=An.floor,ss=gi.getOwnPropertySymbols,qf=Uf?Uf.isBuffer:T,Ro=G.isFinite,js=Vu.join,Ut=cE(gi.keys,gi),cn=An.max,Tn=An.min,y0=Ce.now,w0=G.parseInt,hd=An.random,x0=Vu.reverse,Kf=fc(G,"DataView"),Uu=fc(G,"Map"),Jf=fc(G,"Promise"),fd=fc(G,"Set"),Wu=fc(G,"WeakMap"),vr=fc(gi,"create"),Yf=Wu&&new Wu,cc={},fE=gc(Kf),mE=gc(Uu),pE=gc(Jf),gE=gc(fd),C0=gc(Wu),Xf=Za?Za.prototype:T,ju=Xf?Xf.valueOf:T,D0=Xf?Xf.toString:T;function w(d){if(Qi(d)&&!Ke(d)&&!(d instanceof Tt)){if(d instanceof Fe)return d;if(oi.call(d,"__wrapped__"))return mo(d)}return new Fe(d)}var md=function(){function d(){}return function(h){if(!Wi(h))return{};if(v0)return v0(h);d.prototype=h;var m=new d;return d.prototype=T,m}}();function Zf(){}function Fe(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=T}function Tt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ts,this.__views__=[]}function xi(d){var h=-1,m=null==d?0:d.length;for(this.clear();++h=h?d:h)),d}function qn(d,h,m,_,y,k){var A,O=1&h,N=2&h,J=4&h;if(m&&(A=y?m(d,_,y,k):m(d)),A!==T)return A;if(!Wi(d))return d;var X=Ke(d);if(X){if(A=function rh(d){var h=d.length,m=new d.constructor(h);return h&&"string"==typeof d[0]&&oi.call(d,"index")&&(m.index=d.index,m.input=d.input),m}(d),!O)return Cr(d,A)}else{var re=Dr(d),be=re==wi||re==Mt;if(Cc(d))return p_(d,O);if(re==Ue||re==ga||be&&!y){if(A=N||be?{}:ym(d),!O)return N?function SE(d,h){return yn(d,AE(d),h)}(d,function $s(d,h){return d&&yn(h,Jr(h),d)}(A,d)):function Sa(d,h){return yn(d,D_(d),h)}(d,wd(A,d))}else{if(!pi[re])return y?d:{};A=function wm(d,h,m){var _=d.constructor;switch(h){case pr:return hc(d);case qa:case Xl:return new _(+d);case st:return function Gs(d,h){var m=h?hc(d.buffer):d.buffer;return new d.constructor(m,d.byteOffset,d.byteLength)}(d,m);case is:case nr:case Y:case Ja:case Qt:case uo:case Pu:case va:case Hs:return H0(d,m);case Zt:return new _;case zn:case Vs:return new _(d);case Bs:return function g_(d){var h=new d.constructor(d.source,Ur.exec(d));return h.lastIndex=d.lastIndex,h}(d);case Ri:return new _;case ba:return function __(d){return ju?gi(ju.call(d)):{}}(d)}}(d,re,O)}}k||(k=new yr);var Oe=k.get(d);if(Oe)return Oe;k.set(d,A),J_(d)?d.forEach(function(Ze){A.add(qn(Ze,h,m,Ze,d,k))}):Nm(d)&&d.forEach(function(Ze,It){A.set(It,qn(Ze,h,m,It,d,k))});var dt=X?T:(J?N?gm:th:N?Jr:On)(d);return os(dt||d,function(Ze,It){dt&&(Ze=d[It=Ze]),ds(A,It,qn(Ze,h,m,It,d,k))}),A}function vn(d,h,m){var _=m.length;if(null==d)return!_;for(d=gi(d);_--;){var y=m[_],A=d[y];if(A===T&&!(y in d)||!(0,h[y])(A))return!1}return!0}function Qf(d,h,m){if("function"!=typeof d)throw new jr(Oi);return Md(function(){d.apply(T,m)},h)}function us(d,h,m,_){var y=-1,k=rc,A=!0,O=d.length,N=[],J=h.length;if(!O)return N;m&&(h=Fi(h,Io(m))),_?(k=Lu,A=!1):h.length>=200&&(k=Lf,A=!1,h=new Xi(h));e:for(;++y-1},Po.prototype.set=function We(d,h){var m=this.__data__,_=et(m,d);return _<0?(++this.size,m.push([d,h])):m[_][1]=h,this},Wt.prototype.clear=function as(){this.size=0,this.__data__={hash:new xi,map:new(Uu||Po),string:new xi}},Wt.prototype.delete=function sr(d){var h=vm(this,d).delete(d);return this.size-=h?1:0,h},Wt.prototype.get=function ls(d){return vm(this,d).get(d)},Wt.prototype.has=function pd(d){return vm(this,d).has(d)},Wt.prototype.set=function hi(d,h){var m=vm(this,d),_=m.size;return m.set(d,h),this.size+=m.size==_?0:1,this},Xi.prototype.add=Xi.prototype.push=function gd(d){return this.__data__.set(d,Iu),this},Xi.prototype.has=function lt(d){return this.__data__.has(d)},yr.prototype.clear=function S0(){this.__data__=new Po,this.size=0},yr.prototype.delete=function _d(d){var h=this.__data__,m=h.delete(d);return this.size=h.size,m},yr.prototype.get=function Ni(d){return this.__data__.get(d)},yr.prototype.has=function $u(d){return this.__data__.has(d)},yr.prototype.set=function bd(d,h){var m=this.__data__;if(m instanceof Po){var _=m.__data__;if(!Uu||_.length<199)return _.push([d,h]),this.size=++m.size,this;m=this.__data__=new Wt(_)}return m.set(d,h),this.size=m.size,this};var hs=U0(Ea),No=U0(A0,!0);function t_(d,h){var m=!0;return hs(d,function(_,y,k){return m=!!h(_,y,k)}),m}function em(d,h,m){for(var _=-1,y=d.length;++_0&&m(O)?h>1?In(O,h-1,m,_,y):Ca(y,O):_||(y[y.length]=O)}return y}var i_=dm(),im=dm(!0);function Ea(d,h){return d&&i_(d,h,On)}function A0(d,h){return d&&im(d,h,On)}function n_(d,h){return Le(h,function(m){return Ma(d[m])})}function xd(d,h){for(var m=0,_=(h=_t(h,d)).length;null!=d&&m<_;)d=d[Vo(h[m++])];return m&&m==_?d:T}function yE(d,h,m){var _=h(d);return Ke(d)?_:Ca(_,m(d))}function Gr(d){return null==d?d===T?"[object Undefined]":"[object Null]":ee&&ee in gi(d)?function ME(d){var h=oi.call(d,ee),m=d[ee];try{d[ee]=T;var _=!0}catch{}var y=Yg.call(d);return _&&(h?d[ee]=m:delete d[ee]),y}(d):function Q0(d){return Yg.call(d)}(d)}function T0(d,h){return d>h}function DF(d,h){return null!=d&&oi.call(d,h)}function kF(d,h){return null!=d&&h in gi(d)}function I0(d,h,m){for(var _=m?Lu:rc,y=d[0].length,k=d.length,A=k,O=B(k),N=1/0,J=[];A--;){var X=d[A];A&&h&&(X=Fi(X,Io(h))),N=Tn(X.length,N),O[A]=!m&&(h||y>=120&&X.length>=120)?new Xi(A&&X):T}X=d[0];var re=-1,be=O[0];e:for(;++re=O?N:N*("desc"==m[_]?-1:1)}return d.index-h.index}(k,A,m)})}function P0(d,h,m){for(var _=-1,y=h.length,k={};++_-1;)O!==d&&jf.call(O,N,1),jf.call(d,N,1);return d}function qr(d,h){for(var m=d?h.length:0,_=m-1;m--;){var y=h[m];if(m==_||y!==k){var k=y;Js(y)?jf.call(d,y,1):lm(d,y)}}return d}function l_(d,h){return d+Gf(hd()*(h-d+1))}function d_(d,h){var m="";if(!d||h<1||h>To)return m;do{h%2&&(m+=d),(h=Gf(h/2))&&(d+=d)}while(h);return m}function tt(d,h){return cl(ew(d,h,Mr),d+"")}function F0(d){return vd(gl(d))}function DE(d,h){var m=gl(d);return Cm(m,fi(h,0,m.length))}function kd(d,h,m,_){if(!Wi(d))return d;for(var y=-1,k=(h=_t(h,d)).length,A=k-1,O=d;null!=O&&++yy?0:y+h),(m=m>y?y:m)<0&&(m+=y),y=h>m?0:m-h>>>0,h>>>=0;for(var k=B(y);++_>>1,A=d[k];null!==A&&!go(A)&&(m?A<=h:A=200){var J=h?null:fm(d);if(J)return oe(J);A=!1,y=Lf,N=new Xi}else N=h?[]:O;e:for(;++_=_?d:xr(d,h,m)}var ti=Qg||function(d){return $n.clearTimeout(d)};function p_(d,h){if(h)return d.slice();var m=d.length,_=Zg?Zg(m):new d.constructor(m);return d.copy(_),_}function hc(d){var h=new d.constructor(d.byteLength);return new Wf(h).set(new Wf(d)),h}function H0(d,h){var m=h?hc(d.buffer):d.buffer;return new d.constructor(m,d.byteOffset,d.length)}function EE(d,h){if(d!==h){var m=d!==T,_=null===d,y=d==d,k=go(d),A=h!==T,O=null===h,N=h==h,J=go(h);if(!O&&!J&&!k&&d>h||k&&A&&N&&!O&&!J||_&&A&&N||!m&&N||!y)return 1;if(!_&&!k&&!J&&d1?m[y-1]:T,A=y>2?m[2]:T;for(k=d.length>3&&"function"==typeof k?(y--,k):T,A&&kr(m[0],m[1],A)&&(k=y<3?T:k,y=1),h=gi(h);++_-1?y[k?h[A]:A]:T}}function y_(d){return Lo(function(h){var m=h.length,_=m,y=Fe.prototype.thru;for(d&&h.reverse();_--;){var k=h[_];if("function"!=typeof k)throw new jr(Oi);if(y&&!A&&"wrapper"==bm(k))var A=new Fe([],!0)}for(_=A?_:m;++_1&&Et.reverse(),X&&NO))return!1;var J=k.get(d),X=k.get(h);if(J&&X)return J==h&&X==d;var re=-1,be=!0,Oe=2&m?new Xi:T;for(k.set(d,h),k.set(h,d);++re-1&&d%1==0&&d1?"& ":"")+h[_],h=h.join(m>2?", ":" "),d.replace(Ge,"{\n/* [wrapped with "+h+"] */\n")}(_,function tw(d,h){return os(Sf,function(m){var _="_."+m[0];h&m[1]&&!rc(d,_)&&d.push(_)}),d.sort()}(function nh(d){var h=d.match(ue);return h?h[1].split(yt):[]}(_),m)))}function dn(d){var h=0,m=0;return function(){var _=y0(),y=16-(_-m);if(m=_,y>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(T,arguments)}}function Cm(d,h){var m=-1,_=d.length,y=_-1;for(h=h===T?_:h;++m1?d[h-1]:T;return m="function"==typeof m?(d.pop(),m):T,Nd(d,m)});function bc(d){var h=w(d);return h.__chain__=!0,h}function Ld(d,h){return h(d)}var Em=Lo(function(d){var h=d.length,m=h?d[0]:0,_=this.__wrapped__,y=function(k){return tl(k,d)};return!(h>1||this.__actions__.length)&&_ instanceof Tt&&Js(m)?((_=_.slice(m,+m+(h?1:0))).__actions__.push({func:Ld,args:[y],thisArg:T}),new Fe(_,this.__chain__).thru(function(k){return h&&!k.length&&k.push(T),k})):this.thru(y)}),iS=Ju(function(d,h,m){oi.call(d,m)?++d[m]:Fo(d,m,1)}),mw=um(OE),vc=um(RE);function pw(d,h){return(Ke(d)?os:hs)(d,Ve(h,3))}function Am(d,h){return(Ke(d)?tE:No)(d,Ve(h,3))}var Tm=Ju(function(d,h,m){oi.call(d,m)?d[m].push(h):Fo(d,m,[h])}),Bd=tt(function(d,h,m){var _=-1,y="function"==typeof h,k=Sr(d)?B(d.length):[];return hs(d,function(A){k[++_]=y?Ht(h,A,m):Cd(A,h,m)}),k}),B_=Ju(function(d,h,m){Fo(d,m,h)});function Im(d,h){return(Ke(d)?Fi:R0)(d,Ve(h,3))}var gw=Ju(function(d,h,m){d[m?0:1].push(h)},function(){return[[],[]]}),lS=tt(function(d,h){if(null==d)return[];var m=h.length;return m>1&&kr(d,h[0],h[1])?h=[]:m>2&&kr(h[0],h[1],h[2])&&(h=[h[0]]),Dd(d,In(h,1),[])}),Om=zu||function(){return $n.Date.now()};function vw(d,h,m){return h=m?T:h,Ks(d,128,T,T,T,T,h=d&&null==h?d.length:h)}function z_(d,h){var m;if("function"!=typeof h)throw new jr(Oi);return d=bt(d),function(){return--d>0&&(m=h.apply(this,arguments)),d<=1&&(h=T),m}}var U_=tt(function(d,h,m){var _=1;if(m.length){var y=ac(m,ms(U_));_|=32}return Ks(d,_,h,m,y)}),yw=tt(function(d,h,m){var _=3;if(m.length){var y=ac(m,ms(yw));_|=32}return Ks(h,_,d,m,y)});function j_(d,h,m){var _,y,k,A,O,N,J=0,X=!1,re=!1,be=!0;if("function"!=typeof d)throw new jr(Oi);function Oe(bi){var vo=_,gs=y;return _=y=T,J=bi,A=d.apply(gs,vo)}function Ze(bi){var vo=bi-N;return N===T||vo>=h||vo<0||re&&bi-J>=k}function It(){var bi=Om();if(Ze(bi))return Et(bi);O=Md(It,function dt(bi){var Wd=h-(bi-N);return re?Tn(Wd,k-(bi-J)):Wd}(bi))}function Et(bi){return O=T,be&&_?Oe(bi):(_=y=T,A)}function Ar(){var bi=Om(),vo=Ze(bi);if(_=arguments,y=this,N=bi,vo){if(O===T)return function Xe(bi){return J=bi,O=Md(It,h),X?Oe(bi):A}(N);if(re)return ti(O),O=Md(It,h),Oe(N)}return O===T&&(O=Md(It,h)),A}return h=zo(h)||0,Wi(m)&&(X=!!m.leading,k=(re="maxWait"in m)?cn(zo(m.maxWait)||0,h):k,be="trailing"in m?!!m.trailing:be),Ar.cancel=function bo(){O!==T&&ti(O),J=0,_=N=y=O=T},Ar.flush=function Xn(){return O===T?A:Et(Om())},Ar}var Jn=tt(function(d,h){return Qf(d,1,h)}),$_=tt(function(d,h,m){return Qf(d,zo(h)||0,m)});function wc(d,h){if("function"!=typeof d||null!=h&&"function"!=typeof h)throw new jr(Oi);var m=function(){var _=arguments,y=h?h.apply(this,_):_[0],k=m.cache;if(k.has(y))return k.get(y);var A=d.apply(this,_);return m.cache=k.set(y,A)||k,A};return m.cache=new(wc.Cache||Wt),m}function ch(d){if("function"!=typeof d)throw new jr(Oi);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}wc.Cache=Wt;var dS=He(function(d,h){var m=(h=1==h.length&&Ke(h[0])?Fi(h[0],Io(Ve())):Fi(In(h,1),Io(Ve()))).length;return tt(function(_){for(var y=-1,k=Tn(_.length,m);++y=h}),wn=r_(function(){return arguments}())?r_:function(d){return Qi(d)&&oi.call(d,"callee")&&!ka.call(d,"callee")},Ke=B.isArray,K_=Nf?Io(Nf):function MF(d){return Qi(d)&&Gr(d)==pr};function Sr(d){return null!=d&&zd(d.length)&&!Ma(d)}function ai(d){return Qi(d)&&Sr(d)}var Cc=qf||db,Pm=Mn?Io(Mn):function AF(d){return Qi(d)&&Gr(d)==Xl};function Fm(d){if(!Qi(d))return!1;var h=Gr(d);return h==Ka||"[object DOMException]"==h||"string"==typeof d.message&&"string"==typeof d.name&&!fl(d)}function Ma(d){if(!Wi(d))return!1;var h=Gr(d);return h==wi||h==Mt||"[object AsyncFunction]"==h||"[object Proxy]"==h}function kw(d){return"number"==typeof d&&d==bt(d)}function zd(d){return"number"==typeof d&&d>-1&&d%1==0&&d<=To}function Wi(d){var h=typeof d;return null!=d&&("object"==h||"function"==h)}function Qi(d){return null!=d&&"object"==typeof d}var Nm=sd?Io(sd):function dc(d){return Qi(d)&&Dr(d)==Zt};function fh(d){return"number"==typeof d||Qi(d)&&Gr(d)==zn}function fl(d){if(!Qi(d)||Gr(d)!=Ue)return!1;var h=Da(d);if(null===h)return!0;var m=oi.call(h,"constructor")&&h.constructor;return"function"==typeof m&&m instanceof m&&Jg.call(m)==Hu}var mh=f0?Io(f0):function O0(d){return Qi(d)&&Gr(d)==Bs},J_=Yt?Io(Yt):function wE(d){return Qi(d)&&Dr(d)==Ri};function ml(d){return"string"==typeof d||!Ke(d)&&Qi(d)&&Gr(d)==Vs}function go(d){return"symbol"==typeof d||Qi(d)&&Gr(d)==ba}var Dc=Nu?Io(Nu):function xE(d){return Qi(d)&&zd(d.length)&&!!ei[Gr(d)]},pl=si(Gu),bS=si(function(d,h){return d<=h});function Mw(d){if(!d)return[];if(Sr(d))return ml(d)?Oo(d):Cr(d);if(ud&&d[ud])return function wF(F){for(var G,B=[];!(G=F.next()).done;)B.push(G.value);return B}(d[ud]());var h=Dr(d);return(h==Zt?g0:h==Ri?oe:gl)(d)}function Aa(d){return d?(d=zo(d))===es||d===-es?17976931348623157e292*(d<0?-1:1):d==d?d:0:0===d?d:0}function bt(d){var h=Aa(d),m=h%1;return h==h?m?h-m:h:0}function Vm(d){return d?fi(bt(d),0,ts):0}function zo(d){if("number"==typeof d)return d;if(go(d))return NaN;if(Wi(d)){var h="function"==typeof d.valueOf?d.valueOf():d;d=Wi(h)?h+"":h}if("string"!=typeof d)return 0===d?d:+d;d=p0(d);var m=rr.test(d);return m||Fu.test(d)?Qk(d.slice(2),m?2:8):ns.test(d)?NaN:+d}function Aw(d){return yn(d,Jr(d))}function Gt(d){return null==d?"":fo(d)}var yS=Ed(function(d,h){if(ll(h)||Sr(h))yn(h,On(h),d);else for(var m in h)oi.call(h,m)&&ds(d,m,h[m])}),Tw=Ed(function(d,h){yn(h,Jr(h),d)}),Yn=Ed(function(d,h,m,_){yn(h,Jr(h),d,_)}),Y_=Ed(function(d,h,m,_){yn(h,On(h),d,_)}),Iw=Lo(tl),cr=tt(function(d,h){d=gi(d);var m=-1,_=h.length,y=_>2?h[2]:T;for(y&&kr(h[0],h[1],y)&&(_=1);++m<_;)for(var k=h[m],A=Jr(k),O=-1,N=A.length;++O1),k}),yn(d,gm(d),m),_&&(m=qn(m,7,al));for(var y=h.length;y--;)lm(m,h[y]);return m}),eb=Lo(function(d,h){return null==d?{}:function wr(d,h){return P0(d,h,function(m,_){return gh(d,_)})}(d,h)});function bh(d,h){if(null==d)return{};var m=Fi(gm(d),function(_){return[_]});return h=Ve(h),P0(d,m,function(_,y){return h(_,y[0])})}var zw=j0(On),Uw=j0(Jr);function gl(d){return null==d?[]:Ws(d,On(d))}var Ec=rl(function(d,h,m){return h=h.toLowerCase(),d+(m?ib(h):h)});function ib(d){return xh(Gt(d).toLowerCase())}function nb(d){return(d=Gt(d))&&d.replace(If,aE).replace(od,"")}var RS=rl(function(d,h,m){return d+(m?"-":"")+h.toLowerCase()}),$w=rl(function(d,h,m){return d+(m?" ":"")+h.toLowerCase()}),Gw=v_("toLowerCase"),ob=rl(function(d,h,m){return d+(m?"_":"")+h.toLowerCase()}),Yw=rl(function(d,h,m){return d+(m?" ":"")+xh(h)}),$m=rl(function(d,h,m){return d+(m?" ":"")+h.toUpperCase()}),xh=v_("toUpperCase");function Sc(d,h,m){return d=Gt(d),(h=m?T:h)===T?function Ye(F){return c0.test(F)}(d)?function b0(F){return F.match(gF)||[]}(d):function m0(F){return F.match(Wn)||[]}(d):d.match(h)||[]}var ex=tt(function(d,h){try{return Ht(d,T,h)}catch(m){return Fm(m)?m:new pt(m)}}),BS=Lo(function(d,h){return os(h,function(m){m=Vo(m),Fo(d,m,U_(d[m],d))}),d});function Ud(d){return function(){return d}}var tx=y_(),ix=y_(!0);function Mr(d){return d}function Ta(d){return s_("function"==typeof d?d:qn(d,1))}var US=tt(function(d,h){return function(m){return Cd(m,d,h)}}),WS=tt(function(d,h){return function(m){return Cd(d,m,h)}});function lb(d,h,m){var _=On(h),y=n_(h,_);null==m&&(!Wi(h)||!y.length&&_.length)&&(m=h,h=d,d=this,y=n_(h,On(h)));var k=!(Wi(m)&&"chain"in m&&!m.chain),A=Ma(d);return os(y,function(O){var N=h[O];d[O]=N,A&&(d.prototype[O]=function(){var J=this.__chain__;if(k||J){var X=d(this.__wrapped__);return(X.__actions__=Cr(this.__actions__)).push({func:N,args:arguments,thisArg:d}),X.__chain__=J,X}return N.apply(d,Ca([this.value()],arguments))})}),d}function Uo(){}var $S=Qu(Fi),GS=Qu(At),qS=Qu(oc);function nx(d){return Bo(d)?jg(Vo(d)):function Ku(d){return function(h){return xd(h,d)}}(d)}var rx=ol(),JS=ol(!0);function cb(){return[]}function db(){return!1}var ax=Zu(function(d,h){return d+h},0),XF=x_("ceil"),ZF=Zu(function(d,h){return d/h},1),QF=x_("floor"),ZS=Zu(function(d,h){return d*h},1),QS=x_("round"),eM=Zu(function(d,h){return d-h},0);return w.after=function bw(d,h){if("function"!=typeof h)throw new jr(Oi);return d=bt(d),function(){if(--d<1)return h.apply(this,arguments)}},w.ary=vw,w.assign=yS,w.assignIn=Tw,w.assignInWith=Yn,w.assignWith=Y_,w.at=Iw,w.before=z_,w.bind=U_,w.bindAll=BS,w.bindKey=yw,w.castArray=function zF(){if(!arguments.length)return[];var d=arguments[0];return Ke(d)?d:[d]},w.chain=bc,w.chunk=function Ad(d,h,m){h=(m?kr(d,h,m):h===T)?1:cn(bt(h),0);var _=null==d?0:d.length;if(!_||h<1)return[];for(var y=0,k=0,A=B($f(_/h));y<_;)A[k++]=xr(d,y,y+=h);return A},w.compact=function Td(d){for(var h=-1,m=null==d?0:d.length,_=0,y=[];++hy?0:y+m),(_=_===T||_>y?y:bt(_))<0&&(_+=y),_=m>_?0:Vm(_);m<_;)d[m++]=h;return d}(d,h,m,_)):[]},w.filter=function fw(d,h){return(Ke(d)?Le:tm)(d,Ve(h,3))},w.flatMap=function nS(d,h){return In(Im(d,h),1)},w.flatMapDeep=function L_(d,h){return In(Im(d,h),es)},w.flatMapDepth=function Mm(d,h,m){return m=m===T?1:bt(m),In(Im(d,h),m)},w.flatten=PE,w.flattenDeep=function Rd(d){return null!=d&&d.length?In(d,es):[]},w.flattenDepth=function FE(d,h){return null!=d&&d.length?In(d,h=h===T?1:bt(h)):[]},w.flip=function ul(d){return Ks(d,512)},w.flow=tx,w.flowRight=ix,w.fromPairs=function NE(d){for(var h=-1,m=null==d?0:d.length,_={};++h>>0)?(d=Gt(d))&&("string"==typeof h||null!=h&&!mh(h))&&!(h=fo(h))&&bn(d)?Se(Oo(d),0,m):d.split(h,m):[]},w.spread=function uh(d,h){if("function"!=typeof d)throw new jr(Oi);return h=null==h?0:cn(bt(h),0),tt(function(m){var _=m[h],y=Se(m,0,h);return _&&Ca(y,_),Ht(d,this,y)})},w.tail=function $E(d){var h=null==d?0:d.length;return h?xr(d,1,h):[]},w.take=function _c(d,h,m){return d&&d.length?xr(d,0,(h=m||h===T?1:bt(h))<0?0:h):[]},w.takeRight=function GE(d,h,m){var _=null==d?0:d.length;return _?xr(d,(h=_-(h=m||h===T?1:bt(h)))<0?0:h,_):[]},w.takeRightWhile=function lh(d,h){return d&&d.length?cm(d,Ve(h,3),!1,!0):[]},w.takeWhile=function qE(d,h){return d&&d.length?cm(d,Ve(h,3)):[]},w.tap=function cw(d,h){return h(d),d},w.throttle=function hS(d,h,m){var _=!0,y=!0;if("function"!=typeof d)throw new jr(Oi);return Wi(m)&&(_="leading"in m?!!m.leading:_,y="trailing"in m?!!m.trailing:y),j_(d,h,{leading:_,maxWait:h,trailing:y})},w.thru=Ld,w.toArray=Mw,w.toPairs=zw,w.toPairsIn=Uw,w.toPath=function ox(d){return Ke(d)?Fi(d,Vo):go(d)?[d]:Cr(Xt(Gt(d)))},w.toPlainObject=Aw,w.transform=function AS(d,h,m){var _=Ke(d),y=_||Cc(d)||Dc(d);if(h=Ve(h,4),null==m){var k=d&&d.constructor;m=y?_?new k:[]:Wi(d)&&Ma(k)?md(Da(d)):{}}return(y?os:Ea)(d,function(A,O,N){return h(m,A,O,N)}),m},w.unary=function ww(d){return vw(d,1)},w.union=sw,w.unionBy=P_,w.unionWith=km,w.uniq=function aw(d){return d&&d.length?nl(d):[]},w.uniqBy=function KE(d,h){return d&&d.length?nl(d,Ve(h,2)):[]},w.uniqWith=function JE(d,h){return h="function"==typeof h?h:T,d&&d.length?nl(d,T,h):[]},w.unset=function Ww(d,h){return null==d||lm(d,h)},w.unzip=dl,w.unzipWith=Nd,w.update=function vh(d,h,m){return null==d?d:uc(d,h,j(m))},w.updateWith=function zm(d,h,m,_){return _="function"==typeof _?_:T,null==d?d:uc(d,h,j(m),_)},w.values=gl,w.valuesIn=function TS(d){return null==d?[]:Ws(d,Jr(d))},w.without=YE,w.words=Sc,w.wrap=function xc(d,h){return G_(j(h),d)},w.xor=BF,w.xorBy=lw,w.xorWith=XE,w.zip=VF,w.zipObject=function ZE(d,h){return V0(d||[],h||[],ds)},w.zipObjectDeep=function QE(d,h){return V0(d||[],h||[],kd)},w.zipWith=eS,w.entries=zw,w.entriesIn=Uw,w.extend=Tw,w.extendWith=Yn,lb(w,w),w.add=ax,w.attempt=ex,w.camelCase=Ec,w.capitalize=ib,w.ceil=XF,w.clamp=function IS(d,h,m){return m===T&&(m=h,h=T),m!==T&&(m=(m=zo(m))==m?m:0),h!==T&&(h=(h=zo(h))==h?h:0),fi(zo(d),h,m)},w.clone=function Ui(d){return qn(d,4)},w.cloneDeep=function fS(d){return qn(d,5)},w.cloneDeepWith=function mS(d,h){return qn(d,5,h="function"==typeof h?h:T)},w.cloneWith=function q_(d,h){return qn(d,4,h="function"==typeof h?h:T)},w.conformsTo=function pS(d,h){return null==h||vn(d,h,On(h))},w.deburr=nb,w.defaultTo=function ab(d,h){return null==d||d!=d?h:d},w.divide=ZF,w.endsWith=function OS(d,h,m){d=Gt(d),h=fo(h);var _=d.length,y=m=m===T?_:fi(bt(m),0,_);return(m-=h.length)>=0&&d.slice(m,y)==h},w.eq=ps,w.escape=function JF(d){return(d=Gt(d))&&Af.test(d)?d.replace(Un,vF):d},w.escapeRegExp=function Um(d){return(d=Gt(d))&&$.test(d)?d.replace(P,"\\$&"):d},w.every=function N_(d,h,m){var _=Ke(d)?At:t_;return m&&kr(d,h,m)&&(h=T),_(d,Ve(h,3))},w.find=mw,w.findIndex=OE,w.findKey=function Ow(d,h){return Us(d,Ve(h,3),Ea)},w.findLast=vc,w.findLastIndex=RE,w.findLastKey=function Rw(d,h){return Us(d,Ve(h,3),A0)},w.floor=QF,w.forEach=pw,w.forEachRight=Am,w.forIn=function wS(d,h){return null==d?d:i_(d,Ve(h,3),Jr)},w.forInRight=function Pw(d,h){return null==d?d:im(d,Ve(h,3),Jr)},w.forOwn=function xS(d,h){return d&&Ea(d,Ve(h,3))},w.forOwnRight=function Fw(d,h){return d&&A0(d,Ve(h,3))},w.get=Z_,w.gt=xw,w.gte=Hd,w.has=function DS(d,h){return null!=d&&G0(d,h,DF)},w.hasIn=gh,w.head=un,w.identity=Mr,w.includes=function Ho(d,h,m,_){d=Sr(d)?d:gl(d),m=m&&!_?bt(m):0;var y=d.length;return m<0&&(m=cn(y+m,0)),ml(d)?m<=y&&d.indexOf(h,m)>-1:!!y&&sc(d,h,m)>-1},w.indexOf=function LE(d,h,m){var _=null==d?0:d.length;if(!_)return-1;var y=null==m?0:bt(m);return y<0&&(y=cn(_+y,0)),sc(d,h,y)},w.inRange=function tb(d,h,m){return h=Aa(h),m===T?(m=h,h=0):m=Aa(m),function EF(d,h,m){return d>=Tn(h,m)&&d=-To&&d<=To},w.isSet=J_,w.isString=ml,w.isSymbol=go,w.isTypedArray=Dc,w.isUndefined=function Sw(d){return d===T},w.isWeakMap=function Lm(d){return Qi(d)&&Dr(d)==Je},w.isWeakSet=function Bm(d){return Qi(d)&&"[object WeakSet]"==Gr(d)},w.join=function nw(d,h){return null==d?"":js.call(d,h)},w.kebabCase=RS,w.last=Er,w.lastIndexOf=function ah(d,h,m){var _=null==d?0:d.length;if(!_)return-1;var y=_;return m!==T&&(y=(y=bt(m))<0?cn(_+y,0):Tn(y,_-1)),h==h?function Bf(F,G,B){for(var Ce=B+1;Ce--;)if(F[Ce]===G)return Ce;return Ce}(d,h,y):Xa(d,zt,y,!0)},w.lowerCase=$w,w.lowerFirst=Gw,w.lt=pl,w.lte=bS,w.max=function ub(d){return d&&d.length?em(d,Mr,T0):T},w.maxBy=function hb(d,h){return d&&d.length?em(d,Ve(h,2),T0):T},w.mean=function eN(d){return iE(d,Mr)},w.meanBy=function tN(d,h){return iE(d,Ve(h,2))},w.min=function lx(d){return d&&d.length?em(d,Mr,Gu):T},w.minBy=function XS(d,h){return d&&d.length?em(d,Ve(h,2),Gu):T},w.stubArray=cb,w.stubFalse=db,w.stubObject=function YS(){return{}},w.stubString=function Gm(){return""},w.stubTrue=function Ia(){return!0},w.multiply=ZS,w.nth=function T_(d,h){return d&&d.length?om(d,bt(h)):T},w.noConflict=function _o(){return $n._===this&&($n._=Xg),this},w.noop=Uo,w.now=Om,w.pad=function qw(d,h,m){d=Gt(d);var _=(h=bt(h))?ld(d):0;if(!h||_>=h)return d;var y=(h-_)/2;return hm(Gf(y),m)+d+hm($f(y),m)},w.padEnd=function rb(d,h,m){d=Gt(d);var _=(h=bt(h))?ld(d):0;return h&&_h){var _=d;d=h,h=_}if(m||d%1||h%1){var y=hd();return Tn(d+y*(h-d+Zk("1e-"+((y+"").length-1))),h)}return l_(d,h)},w.reduce=function Vd(d,h,m){var _=Ke(d)?z:nE,y=arguments.length<3;return _(d,Ve(h,4),m,y,hs)},w.reduceRight=function oS(d,h,m){var _=Ke(d)?ad:nE,y=arguments.length<3;return _(d,Ve(h,4),m,y,No)},w.repeat=function yh(d,h,m){return h=(m?kr(d,h,m):h===T)?1:bt(h),d_(Gt(d),h)},w.replace=function Jw(){var d=arguments,h=Gt(d[0]);return d.length<3?h:h.replace(d[1],d[2])},w.result=function ES(d,h,m){var _=-1,y=(h=_t(h,d)).length;for(y||(y=1,d=T);++_To)return[];var m=ts,_=Tn(d,ts);h=Ve(h),d-=ts;for(var y=br(_,h);++m=k)return d;var O=m-ld(_);if(O<1)return _;var N=A?Se(A,0,O).join(""):d.slice(0,O);if(y===T)return N+_;if(A&&(O+=N.length-O),mh(y)){if(d.slice(O).search(y)){var J,X=N;for(y.global||(y=V(y.source,Gt(Ur.exec(y))+"g")),y.lastIndex=0;J=y.exec(X);)var re=J.index;N=N.slice(0,re===T?O:re)}}else if(d.indexOf(fo(y),O)!=O){var be=N.lastIndexOf(y);be>-1&&(N=N.slice(0,be))}return N+_},w.unescape=function Qw(d){return(d=Gt(d))&&Mf.test(d)?d.replace(Jt,Vf):d},w.uniqueId=function sx(d){var h=++CF;return Gt(d)+h},w.upperCase=$m,w.upperFirst=xh,w.each=pw,w.eachRight=Am,w.first=un,lb(w,function(){var d={};return Ea(w,function(h,m){oi.call(w.prototype,m)||(d[m]=h)}),d}(),{chain:!1}),w.VERSION="4.17.21",os(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){w[d].placeholder=w}),os(["drop","take"],function(d,h){Tt.prototype[d]=function(m){m=m===T?1:cn(bt(m),0);var _=this.__filtered__&&!h?new Tt(this):this.clone();return _.__filtered__?_.__takeCount__=Tn(m,_.__takeCount__):_.__views__.push({size:Tn(m,ts),type:d+(_.__dir__<0?"Right":"")}),_},Tt.prototype[d+"Right"]=function(m){return this.reverse()[d](m).reverse()}}),os(["filter","map","takeWhile"],function(d,h){var m=h+1,_=1==m||3==m;Tt.prototype[d]=function(y){var k=this.clone();return k.__iteratees__.push({iteratee:Ve(y,3),type:m}),k.__filtered__=k.__filtered__||_,k}}),os(["head","last"],function(d,h){var m="take"+(h?"Right":"");Tt.prototype[d]=function(){return this[m](1).value()[0]}}),os(["initial","tail"],function(d,h){var m="drop"+(h?"":"Right");Tt.prototype[d]=function(){return this.__filtered__?new Tt(this):this[m](1)}}),Tt.prototype.compact=function(){return this.filter(Mr)},Tt.prototype.find=function(d){return this.filter(d).head()},Tt.prototype.findLast=function(d){return this.reverse().find(d)},Tt.prototype.invokeMap=tt(function(d,h){return"function"==typeof d?new Tt(this):this.map(function(m){return Cd(m,d,h)})}),Tt.prototype.reject=function(d){return this.filter(ch(Ve(d)))},Tt.prototype.slice=function(d,h){d=bt(d);var m=this;return m.__filtered__&&(d>0||h<0)?new Tt(m):(d<0?m=m.takeRight(-d):d&&(m=m.drop(d)),h!==T&&(m=(h=bt(h))<0?m.dropRight(-h):m.take(h-d)),m)},Tt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Tt.prototype.toArray=function(){return this.take(ts)},Ea(Tt.prototype,function(d,h){var m=/^(?:filter|find|map|reject)|While$/.test(h),_=/^(?:head|last)$/.test(h),y=w[_?"take"+("last"==h?"Right":""):h],k=_||/^find/.test(h);y&&(w.prototype[h]=function(){var A=this.__wrapped__,O=_?[1]:arguments,N=A instanceof Tt,J=O[0],X=N||Ke(A),re=function(It){var Et=y.apply(w,Ca([It],O));return _&&be?Et[0]:Et};X&&m&&"function"==typeof J&&1!=J.length&&(N=X=!1);var be=this.__chain__,Xe=k&&!be,dt=N&&!this.__actions__.length;if(!k&&X){A=dt?A:new Tt(this);var Ze=d.apply(A,O);return Ze.__actions__.push({func:Ld,args:[re],thisArg:T}),new Fe(Ze,be)}return Xe&&dt?d.apply(this,O):(Ze=this.thru(re),Xe?_?Ze.value()[0]:Ze.value():Ze)})}),os(["pop","push","shift","sort","splice","unshift"],function(d){var h=Vu[d],m=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",_=/^(?:pop|shift)$/.test(d);w.prototype[d]=function(){var y=arguments;if(_&&!this.__chain__){var k=this.value();return h.apply(Ke(k)?k:[],y)}return this[m](function(A){return h.apply(Ke(A)?A:[],y)})}}),Ea(Tt.prototype,function(d,h){var m=w[h];if(m){var _=m.name+"";oi.call(cc,_)||(cc[_]=[]),cc[_].push({name:h,func:m})}}),cc[Xu(T,2).name]=[{name:"wrapper",func:T}],Tt.prototype.clone=function ne(){var d=new Tt(this.__wrapped__);return d.__actions__=Cr(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Cr(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Cr(this.__views__),d},Tt.prototype.reverse=function $r(){if(this.__filtered__){var d=new Tt(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},Tt.prototype.value=function xt(){var d=this.__wrapped__.value(),h=this.__dir__,m=Ke(d),_=h<0,y=m?d.length:0,k=function k_(d,h,m){for(var _=-1,y=m.length;++_=this.__values__.length;return{done:d,value:d?T:this.__values__[this.__index__++]}},w.prototype.plant=function Sm(d){for(var h,m=this;m instanceof Zf;){var _=mo(m);_.__index__=0,_.__values__=T,h?y.__wrapped__=_:h=_;var y=_;m=m.__wrapped__}return y.__wrapped__=d,h},w.prototype.reverse=function HF(){var d=this.__wrapped__;if(d instanceof Tt){var h=d;return this.__actions__.length&&(h=new Tt(this)),(h=h.reverse()).__actions__.push({func:Ld,args:[rw],thisArg:T}),new Fe(h,this.__chain__)}return this.thru(rw)},w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=function F_(){return B0(this.__wrapped__,this.__actions__)},w.prototype.first=w.prototype.head,ud&&(w.prototype[ud]=function hw(){return this}),w}();$n._=wt,(Hn=function(){return wt}.call(Ao,mn,Ao,Zo))!==T&&(Zo.exports=Hn)}.call(this)}},Zo=>{Zo(Zo.s=78)}]); \ No newline at end of file diff --git a/docs/polyfills.12e7c38354de3df7.js b/docs/polyfills.12e7c38354de3df7.js deleted file mode 100644 index 15823e2f..00000000 --- a/docs/polyfills.12e7c38354de3df7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkllm_recs_webclient=self.webpackChunkllm_recs_webclient||[]).push([[429],{332:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class L{static#e=this.__symbol__=a;static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===P))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(P,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CL.hasTask(t,r),onScheduleTask:(L,T,t,r)=>L.scheduleTask(t,r),onInvokeTask:(L,T,t,r,k,C)=>L.invokeTask(t,r,k,C),onCancelTask:(L,T,t,r)=>L.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||e[O]&&(K=e[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else e[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(globalThis);const ue=Object.getOwnPropertyDescriptor,me=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",pe=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||globalThis,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(e){if(!(e=e||Y.event))return;let n=we[e.type];n||(n=we[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let o=ue(e,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=we[d];b||(b=we[d]=j("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[b]&&m.removeEventListener(d,Ue),y&&y.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[b];if(m)return m;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},me(e,n,o),e[c]=!0}function qe(e,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(e,n){e[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!1!==e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const P=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=P();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const p=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];p&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{const S=l[R],Z=!!s&&_===s[_];Z&&(s[J]=S,s[x]=w);const D=u.run(p,void 0,Z&&p!==K&&p!==H?[]:[S]);z(s,!0,D)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let p of u)f++,s.push(t.resolve(p))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new t((p,S)=>{for(let Z=0;Z{g||(g=!0,p(D))},D=>{w.push(D),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,Z)=>{s=S,f=Z});function w(S){s(S)}function p(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.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:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((D,V)=>{f=D,g=V}),p=2,S=0;const Z=[];for(let D of u){B(D)||(D=this.resolve(D));const V=S;try{D.then(F=>{Z[V]=s?s.thenCallback(F):F,p--,0===p&&f(Z)},F=>{s?(Z[V]=s.errorCallback(F),p--,0===p&&f(Z)):g(F)})}catch(F){g(F)}p++,S++}return p-=2,0===p&&f(Z),w}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=P();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(L),w=n.current;return this[q]==A?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,w){return new t((S,Z)=>{f.call(this,S,Z)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+pe+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ce,o=(n?n(e):e)+ie,c=pe+i,a=pe+o;te[e]={},te[e][ce]=c,te[e][ie]=a}function dt(e,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||De,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",m="prependListener",M="."+m+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const w=g&&s.target[g];if(w)for(let p=0;pfunction(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(m){const M=`${i}.${o}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(O,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,m,N)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function Qe(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(e,n,i,o){e&&qe(e,Qe(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=me,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=j("zoneTask");function Te(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function b(v){return a.call(e,v.data.handleId)}c=ae(e,n+=o,v=>function(m,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const B=Me(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,M)}),a=ae(e,i,v=>function(m,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Te(e,n,i,"Timeout"),Te(e,n,i,"Interval"),Te(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(Pe&&!Be||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function mt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const M=m.prototype;let N=M[Oe],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Oe],B=P[Ne]),Q&&B.call(P,H,Q);const oe=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===K){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const P=function O(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return le(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Ke(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ue=>{ue(ue.s=332)}]); \ No newline at end of file diff --git a/docs/runtime.6a183127526982a8.js b/docs/runtime.6a183127526982a8.js deleted file mode 100644 index a356ebf2..00000000 --- a/docs/runtime.6a183127526982a8.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,d={},b={};function a(e){var n=b[e];if(void 0!==n)return n.exports;var r=b[e]={id:e,loaded:!1,exports:{}};return d[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=d,e=[],a.O=(n,r,o,t)=>{if(!r){var u=1/0;for(l=0;l=t)&&Object.keys(a.O).every(p=>a.O[p](r[f]))?r.splice(f--,1):(i=!1,t0&&e[l-1][2]>t;l--)e[l]=e[l-1];e[l]=[r,o,t]},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=o=>0===e[o];var n=(o,t)=>{var f,c,[l,u,i]=t,s=0;if(l.some(_=>0!==e[_])){for(f in u)a.o(u,f)&&(a.m[f]=u[f]);if(i)var v=i(a)}for(o&&o(t);s