@liip/liipgpt 3.10.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +201 -88
  2. package/NOTICE +22 -0
  3. package/button/liipgpt-button.iife.js +1 -0
  4. package/button/liipgpt-button.js +1 -0
  5. package/chat/liipgpt-chat.iife.js +2 -1
  6. package/chat/liipgpt-chat.js +2 -1
  7. package/config/index.cjs +2 -0
  8. package/config/index.d.ts +30 -0
  9. package/config/index.js +3 -0
  10. package/configurator/_app/env.js +1 -1
  11. package/configurator/_app/immutable/chunks/{DoB1D_8H.js → B1_pfFrT.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{C3nFRFkd.js → BCwS08XI.js} +2 -2
  13. package/configurator/_app/immutable/chunks/{DkBX8x2a.js → BJUZhA68.js} +1 -1
  14. package/configurator/_app/immutable/chunks/{Bp2fQKa2.js → BKIpM6Uh.js} +1 -1
  15. package/configurator/_app/immutable/chunks/{DGoyvn3J.js → BqUlvFpk.js} +1 -1
  16. package/configurator/_app/immutable/chunks/{cTsTcg30.js → C89VvXMY.js} +1 -1
  17. package/configurator/_app/immutable/chunks/{CQKQgM16.js → CCYtl4Cx.js} +1 -1
  18. package/configurator/_app/immutable/chunks/{IH_3DU1Z.js → CMvCHhSP.js} +1 -1
  19. package/configurator/_app/immutable/chunks/{BE15eIcX.js → Ck-AVw0N.js} +2 -2
  20. package/configurator/_app/immutable/chunks/D3wB30_g.js +1 -0
  21. package/configurator/_app/immutable/chunks/{N6jOC-pH.js → ZTjVhqEP.js} +1 -1
  22. package/configurator/_app/immutable/chunks/{cZD35eXJ.js → _oGHvI2z.js} +1 -1
  23. package/configurator/_app/immutable/chunks/{C5-Xjgie.js → avJin-Fq.js} +1 -1
  24. package/configurator/_app/immutable/chunks/{DCaDs1kM.js → eDqi3535.js} +1 -1
  25. package/configurator/_app/immutable/chunks/{CehiXGW0.js → pHVM4a9g.js} +1 -1
  26. package/configurator/_app/immutable/chunks/s8dY_eYY.js +1 -0
  27. package/configurator/_app/immutable/entry/{app.C8tlSXPA.js → app.DeI6KmEL.js} +2 -2
  28. package/configurator/_app/immutable/entry/start.B2WsGlY5.js +1 -0
  29. package/configurator/_app/immutable/nodes/{0.DCB0I300.js → 0.BT5ERCvw.js} +1 -1
  30. package/configurator/_app/immutable/nodes/{1.B1zFGe7K.js → 1.Ck4X0PzJ.js} +1 -1
  31. package/configurator/_app/immutable/nodes/{2.CrdD7F_a.js → 2.DH-Gvey4.js} +3 -3
  32. package/configurator/_app/immutable/nodes/{3.W2IWRGSL.js → 3.CeOJQlnp.js} +1 -1
  33. package/configurator/_app/version.json +1 -1
  34. package/configurator/index.html +6 -6
  35. package/configurator/sidebar.html +6 -6
  36. package/index.cjs +287 -281
  37. package/index.d.ts +114 -0
  38. package/index.js +287 -280
  39. package/package.json +4 -2
  40. package/search-summary/liipgpt-search-summary.iife.js +2 -1
  41. package/search-summary/liipgpt-search-summary.js +4 -3
  42. package/search-summary/{load-chat-config-D1K0jXrB.js → load-chat-config-BnSgm085.js} +2 -1
  43. package/search-summary/translations-utils-J0hLe4am.js +2 -0
  44. package/configurator/_app/immutable/chunks/BDBbhPa3.js +0 -1
  45. package/configurator/_app/immutable/chunks/Dgkk1Fhx.js +0 -1
  46. package/configurator/_app/immutable/entry/start.CuNeX-jt.js +0 -1
  47. package/search-summary/translations-utils-E4InubIu.js +0 -1
package/LICENSE CHANGED
@@ -1,88 +1,201 @@
1
- Copyright © Liip AG. All rights reserved.
2
-
3
- This software is source-available, not open source. Liip AG grants the limited
4
- permission set out below to anyone who lawfully obtains a copy. Everything not
5
- expressly permitted here requires prior written approval from Liip AG.
6
-
7
- 1. PERMITTED WITHOUT WRITTEN APPROVAL
8
-
9
- Subject to the conditions in section 3, you may, for the sole purpose of
10
- evaluating, reviewing, auditing and studying this software:
11
-
12
- a) read, examine and analyse the source code;
13
-
14
- b) make copies to the extent needed to do so;
15
-
16
- c) build and run the software on computers you own or control, including
17
- internal, non-production environments;
18
-
19
- d) modify the software locally, and run those modifications, as part of
20
- that evaluation.
21
-
22
- 2. NOT PERMITTED WITHOUT WRITTEN APPROVAL
23
-
24
- Without prior written approval from Liip AG, you may not:
25
-
26
- a) use the software in production, or to provide any service to third
27
- parties, whether or not for a fee;
28
-
29
- b) distribute, publish, sublicense, sell, rent, lease or otherwise make the
30
- software or any derivative of it available to anyone else, including by
31
- making a repository containing it publicly accessible;
32
-
33
- c) use the software, or knowledge derived from it, to develop or operate a
34
- competing product or service;
35
-
36
- d) remove or alter this licence, any copyright notice, or any attribution
37
- contained in the software.
38
-
39
- 3. CONDITIONS
40
-
41
- a) This permission is non-exclusive, non-transferable, royalty-free and
42
- REVOCABLE. Liip AG may withdraw it at any time, with or without reason,
43
- by giving notice. It is not perpetual and does not become irrevocable
44
- through the passage of time or through your use of the software.
45
-
46
- b) On withdrawal, or if you breach this licence, the permission in
47
- section 1 ends immediately and you must stop using the software and
48
- destroy the copies in your possession.
49
-
50
- c) You must reproduce this licence in full in any copy you are permitted to
51
- make.
52
-
53
- d) No rights are granted to any Liip AG trademark, logo or name.
54
-
55
- e) No rights are granted by implication, estoppel or otherwise. Liip AG
56
- reserves all rights not expressly granted here.
57
-
58
- 4. WRITTEN AGREEMENTS PREVAIL
59
-
60
- Where you have a separate written agreement with Liip AG covering this
61
- software, that agreement governs, and it prevails over this licence to the
62
- extent the two conflict. Such an agreement may grant rights beyond
63
- section 1 for example production use or deployment on behalf of a client.
64
- Nothing in this licence reduces rights already granted to you in writing.
65
-
66
- "Written approval" and "written agreement" mean a document signed or
67
- confirmed in writing by an authorised representative of Liip AG. Anything
68
- else including this file, the repository's contents, its documentation
69
- and its availability to you does not constitute such approval.
70
-
71
- 5. NO WARRANTY AND NO LIABILITY
72
-
73
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. TO THE FULLEST EXTENT
76
- PERMITTED BY LAW, LIIP AG IS NOT LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77
- LIABILITY ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR ITS USE, except
78
- to the extent a written agreement under section 4 provides otherwise.
79
-
80
- 6. SCOPE
81
-
82
- This is the licence referred to as `LicenseRef-LiipGPT` in the `license`
83
- field of the `package.json` files in this repository.
84
-
85
- Third-party components retain their own licences and are not covered by the
86
- terms above. In particular, `apps/api/src/simplecrawler` is vendored under
87
- BSD-2-Clause; see `apps/api/src/simplecrawler/LICENCE`. The terms above
88
- apply to Liip AG's own code, not to the dependencies it builds on.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,22 @@
1
+ LiipGPT Chat
2
+ Copyright 2025-2026 Liip AG
3
+
4
+ This distribution — the compiled chat, button and search-summary widget
5
+ bundles and the `@liip/liipgpt` client library — is licensed under the Apache
6
+ Licence, Version 2.0. See the LICENSE file distributed alongside this NOTICE,
7
+ or http://www.apache.org/licenses/LICENSE-2.0.
8
+
9
+ The source code from which this distribution is built is NOT covered by the
10
+ Apache Licence. It remains source-available under separate and more
11
+ restrictive terms; see the LICENSE file in the source repository at
12
+ https://gitlab.liip.ch/liipgpt/liipgpt-chat. Receiving this distribution
13
+ grants no rights in that source code.
14
+
15
+ As set out in section 6 of the Apache Licence, this distribution grants no
16
+ permission to use the trade names, trademarks, service marks, product names or
17
+ logos of Liip AG, including "Liip", "LiipGPT" and the Liip logo.
18
+
19
+ This distribution bundles third-party components that retain their own
20
+ licences and are not covered by the Apache Licence grant above. A full
21
+ component inventory can be generated from the source repository with
22
+ `bun run sbom`.
@@ -1,3 +1,4 @@
1
+ /*! @liip/liipgpt | Copyright 2025-2026 Liip AG | Apache-2.0 | see LICENSE and NOTICE */
1
2
  var LiipGPTButton=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var u={},d=Symbol(),f=`http://www.w3.org/1999/xhtml`,p=`http://www.w3.org/2000/svg`,m=`http://www.w3.org/1998/Math/MathML`,h=Array.isArray,g=Array.prototype.indexOf,_=Array.prototype.includes,v=Array.from,y=Object.keys,b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyDescriptors,ee=Object.prototype,te=Array.prototype,ne=Object.getPrototypeOf,re=Object.isExtensible;function ie(e){return typeof e==`function`}var ae=()=>{};function oe(e){return typeof e?.then==`function`}function se(e){for(var t=0;t<e.length;t++)e[t]()}function ce(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var le=1<<24,C=1024,ue=2048,de=4096,fe=8192,pe=16384,me=32768,he=1<<25,ge=65536,_e=1<<18,ve=1<<19,ye=1<<20,be=1<<25,xe=65536,Se=1<<21,Ce=1<<22,we=1<<23,Te=Symbol(`$state`),Ee=Symbol(`legacy props`),De=Symbol(``),Oe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ke=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ae(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function je(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ne(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Pe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Fe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ie(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Le(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Re(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ze(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Be(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ve(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function He(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ue(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function We(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ge(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var w=!1;function T(e){w=e}var E;function D(e){if(e===null)throw Ue(),u;return E=e}function Ke(){return D(R(E))}function qe(e){if(w){if(R(E)!==null)throw Ue(),u;E=e}}function Je(e=1){if(w){for(var t=e,n=E;t--;)n=R(n);E=n}}function Ye(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Xe(e){if(!e||e.nodeType!==8)throw Ue(),u;return e.data}function Ze(e){return e===this.v}function Qe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function $e(e){return!Qe(e,this.v)}var et=!1,tt=!1,O=null;function nt(e){O=e}function rt(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:W,l:tt&&!t?{s:null,u:null,$:[]}:null}}function it(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)Nn(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function at(){return!tt||O!==null&&O.l===null}var ot=[];function st(){var e=ot;ot=[],se(e)}function ct(e){if(ot.length===0&&!xt){var t=ot;queueMicrotask(()=>{t===ot&&st()})}ot.push(e)}function lt(){for(;ot.length>0;)st()}function ut(e){var t=W;if(t===null)return H.f|=we,e;if(!(t.f&32768)&&!(t.f&4))throw e;dt(e,t)}function dt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var ft=~(ue|de|C);function k(e,t){e.f=e.f&ft|t}function pt(e){e.f&512||e.deps===null?k(e,C):k(e,de)}function mt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=xe,mt(t.deps))}function ht(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),mt(e.deps),k(e,C)}var gt=!1,_t=!1;function vt(e){var t=_t;try{return _t=!1,[e(),_t]}finally{_t=t}}var yt=new Set,A=null,j=null,bt=null,xt=!1,St=!1,Ct=null,wt=null,Tt=0,Et=1,Dt=class e{id=Et++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)k(n,ue),this.schedule(n);for(n of t.m)k(n,de),this.schedule(n)}}#d(){if(Tt++>1e3&&(yt.delete(this),Ot()),!this.#u()){for(let e of this.#o)this.#s.delete(e),k(e,ue),this.schedule(e);for(let e of this.#s)k(e,de),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=Ct=[],r=[],i=wt=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw Ft(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Ct=null,wt=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Pt(e,t)}else{this.#n===0&&yt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),At(r),At(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(yt.add(o),o.#d()),yt.has(this)||this.#m()}#f(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):et&&i&16777224?n.push(r):dr(r)&&(i&16&&this.#s.add(r),gr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)ht(e[t],this.#o,this.#s)}capture(e,t){t!==d&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{St=!0,A=this,this.#d()}finally{Tt=0,bt=null,Ct=null,wt=null,St=!1,A=null,j=null,en.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),yt.delete(this)}#m(){for(let s of yt){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)jt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,ct(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=ce()).promise}static ensure(){if(A===null){let t=A=new e;St||(yt.add(A),xt||ct(()=>{A===t&&t.flush()}))}return A}apply(){if(!et||!this.is_fork&&yt.size===1){j=null;return}j=new Map(this.current);for(let e of yt)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)j.has(t)||j.set(t,n)}schedule(e){if(bt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ct!==null&&t===W&&(et||(H===null||!(H.f&2))&&!gt))return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#a.push(t)}};function M(e){var t=xt;xt=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(lt(),A===null)return n;A.flush()}}finally{xt=t}}function Ot(){try{Ie()}catch(e){dt(e,bt)}}var kt=null;function At(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&dr(r)&&(kt=new Set,gr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Kn(r),kt?.size>0)){en.clear();for(let e of kt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)kt.has(n)&&(kt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||gr(n)}}kt.clear()}}kt=null}}function jt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?jt(i,t,n,r):e&4194320&&!(e&2048)&&Mt(i,t,r)&&(k(i,ue),Nt(i))}}function Mt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(_.call(t,r))return!0;if(r.f&2&&Mt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Nt(e){A.schedule(e)}function Pt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,C);for(var n=e.first;n!==null;)Pt(n,t),n=n.next}}function Ft(e){k(e,C);for(var t=e.first;t!==null;)Ft(t),t=t.next}function It(e){let t=0,n=nn(0),r;return()=>{An()&&(Y(n),Rn(()=>(t===0&&(r=br(()=>e(()=>sn(n)))),t+=1,()=>{ct(()=>{--t,t===0&&(r?.(),r=void 0,sn(n))})})))}}var Lt=ge|ve;function Rt(e,t,n,r){new zt(e,t,n,r)}var zt=class{parent;is_pending=!1;transform_error;#e;#t=w?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=It(()=>(this.#m=nn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=W;t.b=this,t.f|=128,n(e)},this.parent=W.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Bn(()=>{if(w){let e=this.#t;Ke();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Lt),w&&(this.#e=E)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),ct(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,qn(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Zn(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){ht(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=W,n=H,r=O;rr(this.#i),U(this.#i),nt(this.#i.ctx);try{return Dt.ensure(),e()}catch(e){return ut(e),null}finally{rr(t),U(n),nt(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&qn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,ct(()=>{this.#d=!1,this.#m&&an(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Y(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),w&&(D(this.#t),Je(),D(Ye()));var r=!1,i=!1;let a=()=>{if(r){Ge();return}r=!0,i&&He(),this.#s!==null&&qn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){dt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=W;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return dt(e,this.#i.parent),null}}))};ct(()=>{var t;try{t=this.transform_error(e)}catch(e){dt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>dt(e,this.#i&&this.#i.parent)):o(t)})}};function Bt(e,t,n,r){let i=at()?Wt:Kt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=W,s=Vt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||dt(e,o)}Ht()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ut();function d(){Promise.all(n.map(e=>Gt(e))).then(e=>l([...t.map(i),...e])).catch(e=>dt(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ht()}):d()}function Vt(){var e=W,t=H,n=O,r=A;return function(i=!0){rr(e),U(t),nt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ht(e=!0){rr(null),U(null),nt(null),e&&A?.deactivate()}function Ut(){var e=W.b,t=A,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function Wt(e){var t=2|ue,n=H!==null&&H.f&2?H:null;return W!==null&&(W.f|=ve),{ctx:O,deps:null,effects:null,equals:Ze,f:t,fn:e,reactions:null,rv:0,v:d,wv:0,parent:n??W,ac:null}}function Gt(e,t,n){let r=W;r===null&&je();var i=void 0,a=nn(d),o=!H,s=new Map;return Ln(()=>{var t=W,n=ce();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ht)}catch(e){n.reject(e),Ht()}var c=A;if(o){if(t.f&32768)var l=Ut();if(r.b.is_rendered())s.get(c)?.reject(Oe),s.delete(c);else{for(let e of s.values())e.reject(Oe);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===Oe),!(n===Oe||t.f&16384)){if(c.activate(),n)a.f|=we,an(a,n);else{a.f&8388608&&(a.f^=we),an(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(Oe)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),jn(()=>{for(let e of s.values())e.reject(Oe)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function N(e){let t=Wt(e);return et||ir(t),t}function Kt(e){let t=Wt(e);return t.equals=$e,t}function qt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function Jt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Yt(e){var t,n=W;rr(Jt(e));try{e.f&=~xe,qt(e),t=pr(e)}finally{rr(n)}return t}function Xt(e){var t=e.v,n=Yt(e);if(!e.equals(n)&&(e.wv=ur(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t),e.deps===null))){k(e,C);return}er||(j===null?pt(e):(An()||A?.is_fork)&&j.set(e,n))}function Zt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Oe),t.teardown=ae,t.ac=null,hr(t,0),Un(t))}function Qt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&gr(t)}var $t=new Set,en=new Map,tn=!1;function nn(e,t){return{f:0,v:e,reactions:null,equals:Ze,rv:0,wv:0}}function P(e,t){let n=nn(e,t);return ir(n),n}function rn(e,t=!1,n=!0){let r=nn(e);return t||(r.equals=$e),tt&&n&&O!==null&&O.l!==null&&(O.l.s??=[]).push(r),r}function F(e,t,n=!1){return H!==null&&(!nr||H.f&131072)&&at()&&H.f&4325394&&(G===null||!_.call(G,e))&&Ve(),an(e,n?ln(t):t,wt)}function an(e,t,n=null){if(!e.equals(t)){var r=e.v;er?en.set(e,t):en.set(e,r),e.v=t;var i=Dt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Yt(t),j===null&&pt(t)}e.wv=ur(),cn(e,ue,n),at()&&W!==null&&W.f&1024&&!(W.f&96)&&(J===null?ar([e]):J.push(e)),!i.is_fork&&$t.size>0&&!tn&&on()}return t}function on(){tn=!1;for(let e of $t)e.f&1024&&k(e,de),dr(e)&&gr(e);$t.clear()}function sn(e){F(e,e.v+1)}function cn(e,t,n){var r=e.reactions;if(r!==null)for(var i=at(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===W)){var l=(c&ue)===0;if(l&&k(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=xe),cn(u,de,n))}else if(l){var d=s;c&16&&kt!==null&&kt.add(d),n===null?Nt(d):n.push(d)}}}}function ln(e){if(typeof e!=`object`||!e||Te in e)return e;let t=ne(e);if(t!==ee&&t!==te)return e;var n=new Map,r=h(e),i=P(0),a=null,o=cr,s=e=>{if(cr===o)return e();var t=H,n=cr;U(null),lr(o);var r=e();return U(t),lr(n),r};return r&&n.set(`length`,P(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&ze();var i=n.get(t);return i===void 0?s(()=>{var e=P(r.value,a);return n.set(t,e),e}):F(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>P(d,a));n.set(t,e),sn(i)}}else F(r,d),sn(i);return!0},get(t,r,i){if(r===Te)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||x(t,r)?.writable)&&(o=s(()=>P(ln(c?t[r]:d),a)),n.set(r,o)),o!==void 0){var l=Y(o);return l===d?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Y(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==d)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Te)return!0;var r=n.get(t),i=r!==void 0&&r.v!==d||Reflect.has(e,t);return(r!==void 0||W!==null&&(!i||x(e,t)?.writable))&&(r===void 0&&(r=s(()=>P(i?ln(e[t]):d,a)),n.set(t,r)),Y(r)===d)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>P(d,a)),n.set(f+``,p)):F(p,d)}if(l===void 0)(!u||x(e,t)?.writable)&&(l=s(()=>P(void 0,a)),F(l,ln(o)),n.set(t,l));else{u=l.v!==d;var m=s(()=>ln(o));F(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}sn(i)}return!0},ownKeys(e){Y(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==d});for(var[r,a]of n)a.v!==d&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Be()}})}function un(e){try{if(typeof e==`object`&&e&&Te in e)return e[Te]}catch{}return e}function dn(e,t){return Object.is(un(e),un(t))}var fn,pn,mn,hn;function gn(){if(fn===void 0){fn=window,pn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;mn=x(t,`firstChild`).get,hn=x(t,`nextSibling`).get,re(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),re(n)&&(n.__t=void 0)}}function I(e=``){return document.createTextNode(e)}function L(e){return mn.call(e)}function R(e){return hn.call(e)}function _n(e,t){if(!w)return L(e);var n=L(E);if(n===null)n=E.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),D(r),r}return t&&Sn(n),D(n),n}function z(e,t=!1){if(!w){var n=L(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(E?.nodeType!==3){var r=I();return E?.before(r),D(r),r}Sn(E)}return E}function vn(e,t=1,n=!1){let r=w?E:e;for(var i;t--;)i=r,r=R(r);if(!w)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),D(a),a}Sn(r)}return D(r),r}function yn(e){e.textContent=``}function bn(){return!et||kt!==null?!1:(W.f&me)!==0}function xn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Sn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Cn(e,t){if(t){let t=document.body;e.autofocus=!0,ct(()=>{document.activeElement===t&&e.focus()})}}var wn=!1;function Tn(){wn||(wn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function En(e){var t=H,n=W;U(null),rr(null);try{return e()}finally{U(t),rr(n)}}function Dn(e){W===null&&(H===null&&Fe(e),Pe()),er&&Ne(e)}function On(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function kn(e,t){var n=W;n!==null&&n.f&8192&&(e|=fe);var r={ctx:O,deps:null,nodes:null,f:e|ue|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)Ct===null?Dt.ensure().schedule(r):Ct.push(r);else if(t!==null){try{gr(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ge))}if(i!==null&&(i.parent=n,n!==null&&On(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function An(){return H!==null&&!nr}function jn(e){let t=kn(8,null);return k(t,C),t.teardown=e,t}function Mn(e){Dn(`$effect`);var t=W.f;if(!H&&t&32&&!(t&32768)){var n=O;(n.e??=[]).push(e)}else return Nn(e)}function Nn(e){return kn(4|ye,e)}function Pn(e){Dt.ensure();let t=kn(64|ve,e);return()=>{V(t)}}function Fn(e){Dt.ensure();let t=kn(64|ve,e);return(e={})=>new Promise(n=>{e.outro?qn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function In(e){return kn(4,e)}function Ln(e){return kn(Ce|ve,e)}function Rn(e,t=0){return kn(8|t,e)}function zn(e,t=[],n=[],r=[]){Bt(r,t,n,t=>{kn(8,()=>e(...t.map(Y)))})}function Bn(e,t=0){return kn(16|t,e)}function Vn(e,t=0){return kn(le|t,e)}function B(e){return kn(32|ve,e)}function Hn(e){var t=e.teardown;if(t!==null){let e=er,n=H;tr(!0),U(null);try{t.call(null)}finally{tr(e),U(n)}}}function Un(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&En(()=>{e.abort(Oe)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function Wn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Gn(e.nodes.start,e.nodes.end),n=!0),k(e,he),Un(e,t&&!n),hr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Hn(e),e.f^=he,e.f|=pe;var i=e.parent;i!==null&&i.first!==null&&Kn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Gn(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function Kn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function qn(e,t,n=!0){var r=[];Jn(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Jn(e,t,n){if(!(e.f&8192)){e.f^=fe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Jn(i,t,o?n:!1),i=a}}}function Yn(e){Xn(e,!0)}function Xn(e,t){if(e.f&8192){e.f^=fe,e.f&1024||(k(e,ue),Dt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Xn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Zn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var Qn=null,$n=!1,er=!1;function tr(e){er=e}var H=null,nr=!1;function U(e){H=e}var W=null;function rr(e){W=e}var G=null;function ir(e){H!==null&&(!et||H.f&2)&&(G===null?G=[e]:G.push(e))}var K=null,q=0,J=null;function ar(e){J=e}var or=1,sr=0,cr=sr;function lr(e){cr=e}function ur(){return++or}function dr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~xe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(dr(a)&&Xt(a),a.wv>e.wv)return!0}t&512&&j===null&&k(e,C)}return!1}function fr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!et&&G!==null&&_.call(G,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?fr(a,t,!1):t===a&&(n?k(a,ue):a.f&1024&&k(a,de),Nt(a))}}function pr(e){var t=K,n=q,r=J,i=H,a=G,o=O,s=nr,c=cr,l=e.f;K=null,q=0,J=null,H=l&96?null:e,G=null,nt(e.ctx),nr=!1,cr=++sr,e.ac!==null&&(En(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=Se;var u=e.fn,d=u();e.f|=me;var f=e.deps,p=A?.is_fork;if(K!==null){var m;if(p||hr(e,q),f!==null&&q>0)for(f.length=q+K.length,m=0;m<K.length;m++)f[q+m]=K[m];else e.deps=f=K;if(An()&&e.f&512)for(m=q;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&q<f.length&&(hr(e,q),f.length=q);if(at()&&J!==null&&!nr&&f!==null&&!(e.f&6146))for(m=0;m<J.length;m++)fr(J[m],e);if(i!==null&&i!==e){if(sr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=sr;if(t!==null)for(let e of t)e.rv=sr;J!==null&&(r===null?r=J:r.push(...J))}return e.f&8388608&&(e.f^=we),d}catch(e){return ut(e)}finally{e.f^=Se,K=t,q=n,J=r,H=i,G=a,nt(o),nr=s,cr=c}}function mr(e,t){let n=t.reactions;if(n!==null){var r=g.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(K===null||!_.call(K,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~xe),pt(a),Zt(a),hr(a,0)}}function hr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)mr(e,n[r])}function gr(e){var t=e.f;if(!(t&16384)){k(e,C);var n=W,r=$n;W=e,$n=!0;try{t&16777232?Wn(e):Un(e),Hn(e);var i=pr(e);e.teardown=typeof i==`function`?i:null,e.wv=or}finally{$n=r,W=n}}}async function _r(){if(et)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),M()}function Y(e){var t=(e.f&2)!=0;if(Qn?.add(e),H!==null&&!nr&&!(W!==null&&W.f&16384)&&(G===null||!_.call(G,e))){var n=H.deps;if(H.f&2097152)e.rv<sr&&(e.rv=sr,K===null&&n!==null&&n[q]===e?q++:K===null?K=[e]:K.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:_.call(r,H)||r.push(H)}}if(er&&en.has(e))return en.get(e);if(t){var i=e;if(er){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||yr(i))&&(a=Yt(i)),en.set(i,a),a}var o=(i.f&512)==0&&!nr&&H!==null&&($n||(H.f&512)!=0),s=(i.f&me)===0;dr(i)&&(o&&(i.f|=512),Xt(i)),o&&!s&&(Qt(i),vr(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function vr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Qt(t),vr(t))}function yr(e){if(e.v===d)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(en.has(t)||t.f&2&&yr(t))return!0;return!1}function br(e){var t=nr;try{return nr=!0,e()}finally{nr=t}}function xr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(Te in e)Sr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&Te in n&&Sr(n)}}}function Sr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Sr(e[n],t)}catch{}let n=ne(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=S(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var Cr=Symbol(`events`),wr=new Set,Tr=new Set;function Er(e,t,n,r={}){function i(e){if(r.capture||jr.call(t,e),!e.cancelBubble)return En(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?ct(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Dr(e,t,n,r,i){var a={capture:r,passive:i},o=Er(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&jn(()=>{t.removeEventListener(e,o,a)})}function Or(e,t,n){(t[Cr]??={})[e]=n}function kr(e){for(var t=0;t<e.length;t++)wr.add(e[t]);for(var n of Tr)n(e)}var Ar=null;function jr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Ar=e;var o=0,s=Ar===e&&e[Cr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Cr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){b(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=H,d=W;U(null),rr(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Cr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Cr]=t,delete e.currentTarget,U(u),rr(d)}}}var Mr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Nr(e){return Mr?.createHTML(e)??e}function Pr(e){var t=xn(`template`);return t.innerHTML=Nr(e.replaceAll(`<!>`,`<!---->`)),t.content}function Fr(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ir(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(w)return Fr(E,null),E;i===void 0&&(i=Pr(a?e:`<!>`+e),n||(i=L(i)));var t=r||pn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;Fr(o,s)}else Fr(t,t);return t}}function Lr(){if(w)return Fr(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=I();return e.append(t,n),Fr(t,n),e}function X(e,t){if(w){var n=W;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ke();return}e!==null&&e.before(t)}function Rr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var zr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Br(e){return zr.includes(e)}var Vr=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Hr={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function Ur(e){return e=e.toLowerCase(),Hr[e]??e}[...Vr];var Wr=[`touchstart`,`touchmove`];function Gr(e){return Wr.includes(e)}var Kr=[`textarea`,`script`,`style`,`title`];function qr(e){return Kr.includes(e)}function Jr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Yr(e,t){return Qr(e,t)}function Xr(e,t){gn(),t.intro=t.intro??!1;let n=t.target,r=w,i=E;try{for(var a=L(n);a&&(a.nodeType!==8||a.data!==`[`);)a=R(a);if(!a)throw u;T(!0),D(a);let r=Qr(e,{...t,anchor:a});return T(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
3
  `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==u&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Le(),gn(),yn(n),T(!1),Yr(e,t)}finally{T(r),D(i)}}var Zr=new Map;function Qr(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){gn();var c=void 0,l=Fn(()=>{var o=n??t.appendChild(I());Rt(o,{pending:()=>{}},t=>{rt({});var n=O;if(a&&(n.c=a),i&&(r.$$events=i),w&&Fr(t,null),c=e(t,r)||{},w&&(W.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw Ue(),u;it()},s);var l=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=Gr(r);for(let e of[t,document]){var a=Zr.get(e);a===void 0&&(a=new Map,Zr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,jr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(v(wr)),Tr.add(d),()=>{for(var e of l)for(let n of[t,document]){var r=Zr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,jr),r.delete(e),r.size===0&&Zr.delete(n)):r.set(e,i)}Tr.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return $r.set(c,l),c}var $r=new WeakMap;function ei(e,t){let n=$r.get(e);return n?($r.delete(e),n(t)):Promise.resolve()}var ti=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Yn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Zn(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),qn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=bn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else w&&(this.anchor=E),this.#a(n)}};function ni(e,t,...n){var r=new ti(e);Bn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ge)}function ri(e){O===null&&Ae(`onMount`),tt&&O.l!==null?ai(O).m.push(e):Mn(()=>{let t=br(e);if(typeof t==`function`)return t})}function ii(e){O===null&&Ae(`onDestroy`),ri(()=>()=>br(e))}function ai(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var oi=0,si=1,ci=2;function li(e,t,n,r,i){w&&Ke();var a=at(),o=d,s=a?nn(o):rn(o,!1,!1),c=a?nn(o):rn(o,!1,!1),l=new ti(e);Bn(()=>{var a=A;a.deactivate();var o=t();a.activate();var u=!1;let d=w&&oe(o)===(e.data===`[!`);if(d&&(D(Ye()),T(!1)),oe(o)){var f=Vt(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Dt.ensure(),w&&T(!1);try{e()}finally{Ht(!1),xt||M()}}};o.then(t=>{e(()=>{an(s,t),l.ensure(si,r&&(e=>r(e,s)))})},t=>{e(()=>{if(an(c,t),l.ensure(ci,i&&(e=>i(e,c))),!i)throw c.v})}),w?l.ensure(oi,n):ct(()=>{p||e(()=>{l.ensure(oi,n)})})}else an(s,o),l.ensure(si,r&&(e=>r(e,s)));return d&&T(!0),()=>{u=!0}})}function ui(e,t,n=!1){var r;w&&(r=E,Ke());var i=new ti(e),a=n?ge:0;function o(e,t){if(w){var n=Xe(r);if(e!==parseInt(n.substring(1))){var a=Ye();D(a),i.anchor=a,T(!1),i.ensure(e,t),T(!0);return}}i.ensure(e,t)}Bn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function di(e,t){return t}function fi(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];qn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;pi(e,v(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;yn(u),u.append(l),e.items.clear()}pi(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function pi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=be,Zn(a,document.createDocumentFragment())):V(t[i],n)}}var mi;function hi(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=w?D(L(c)):c.appendChild(I())}w&&Ke();var l=null,u=Kt(()=>{var e=n();return h(e)?e:e==null?[]:v(e)}),d,f=new Map,p=!0;function m(e){_.effect.f&16384||(_.pending.delete(e),_.fallback=l,_i(_,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=be,yi(l,null,o)):Yn(l):qn(l,()=>{l=null})))}function g(e){_.pending.delete(e)}var _={effect:Bn(()=>{d=Y(u);var e=d.length;let c=!1;w&&Xe(o)===`[!`!=(e===0)&&(o=Ye(),D(o),T(!1),c=!0);for(var h=new Set,_=A,v=bn(),y=0;y<e;y+=1){w&&E.nodeType===8&&E.data===`]`&&(o=E,c=!0,T(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&an(S.v,b),S.i&&an(S.i,y),v&&_.unskip_effect(S.e)):(S=vi(s,p?o:mi??=I(),b,x,y,i,t,n),p||(S.e.f|=be),s.set(x,S)),h.add(x)}if(e===0&&a&&!l&&(p?l=B(()=>a(o)):(l=B(()=>a(mi??=I())),l.f|=be)),e>h.size&&Me(``,``,``),w&&e>0&&D(Ye()),!p)if(f.set(_,h),v){for(let[e,t]of s)h.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(g)}else m(_);c&&T(!0),Y(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,w&&(o=E)}function gi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function _i(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=gi(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(Yn(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=be,g===c)yi(g,null,n);else{var y=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),bi(e,u,g),bi(e,g,y),yi(g,y,n),u=g,f=[],p=[],c=gi(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var b=p[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)yi(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);bi(e,S.prev,ee.next),bi(e,u,S),bi(e,ee,b),c=b,u=ee,--_,f=[],p=[]}else l.delete(g),yi(g,c,n),bi(e,g.prev,g.next),bi(e,g,u===null?e.effect.first:u.next),bi(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=gi(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=gi(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(pi(e,v(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(g of l)g.f&8192||te.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=gi(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(_=0;_<ne;_+=1)te[_].nodes?.a?.measure();for(_=0;_<ne;_+=1)te[_].nodes?.a?.fix()}fi(e,te,re)}}a&&ct(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function vi(e,t,n,r,i,a,o,s){var c=o&1?o&16?nn(n):rn(n,!1,!1):null,l=o&2?nn(i):null;return{v:c,i:l,e:B(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function yi(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=R(r);if(a.before(r),r===i)return;r=o}}function bi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function xi(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;w&&(o=D(L(c)))}zn(()=>{var e=W;if(s===(s=t()??``)){w&&Ke();return}if(n&&!w){e.nodes=null,c.innerHTML=s,s!==``&&Fr(L(c),c.lastChild);return}if(e.nodes!==null&&(Gn(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(w){for(var a=E.data,l=Ke(),d=l;l!==null&&(l.nodeType!==8||l.data!==``);)d=l,l=R(l);if(l===null)throw Ue(),u;Fr(E,d),o=D(l);return}var f=xn(r?`svg`:i?`math`:`template`,r?p:i?m:void 0);f.innerHTML=s;var h=r||i?f:f.content;if(Fr(L(h),h.lastChild),r||i)for(;L(h);)o.before(L(h));else o.before(h)}})}function Si(e,t,n,r,i,a){let o=w;w&&Ke();var s=null;w&&E.nodeType===1&&(s=E,Ke());var c=w?E:e,l=new ti(c,!1);Bn(()=>{let e=t()||null;var a=i?i():n||e===`svg`?p:void 0;if(e===null){l.ensure(null,null);return}return l.ensure(e,t=>{if(e){if(s=w?s:xn(e,a),Fr(s,s),r){w&&qr(e)&&s.append(document.createComment(``));var n=w?L(s):s.appendChild(I());w&&(n===null?T(!1):D(n)),r(s,n)}W.nodes.end=s,t.before(s)}w&&D(t)}),()=>{}},ge),jn(()=>{}),o&&(T(!0),D(c))}function Ci(e,t){let n=null,r=w;var i;if(w){n=E;for(var a=L(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=R(a);if(a===null)T(!1);else{var o=R(a);a.remove(),D(o)}}w||(i=document.head.appendChild(I()));try{Bn(()=>t(i),_e|ve)}finally{r&&(T(!0),D(n))}}function wi(e,t){In(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=xn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Ti(e,t,n){In(()=>{var r=br(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Rn(()=>{var e=n();xr(e),i&&Qe(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Ei(e,t){var n=void 0,r;Vn(()=>{n!==(n=t())&&(r&&=(V(r),null),n&&(r=B(()=>{In(()=>n(e))})))})}function Di(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Di(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Oi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Di(e))&&(r&&(r+=` `),r+=t);return r}function ki(e){return typeof e==`object`?Oi(e):e??``}var Ai=[...`
3
4
  \r\f\xA0\v`];function ji(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Ai.includes(r[o-1]))&&(s===r.length||Ai.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Mi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Ni(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Pi(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Ni)),i&&c.push(...Object.keys(i).map(Ni));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Ni(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Mi(r)),i&&(n+=Mi(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Fi(e,t,n,r,i,a){var o=e.__className;if(w||o!==n||o===void 0){var s=ji(n,r,a);(!w||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Ii(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Li(e,t,n,r){var i=e.__style;if(w||i!==t){var a=Pi(t,r);(!w||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Ii(e,n?.[0],r[0]),Ii(e,n?.[1],r[1],`important`)):Ii(e,n,r));return r}function Ri(e,t,n=!1){if(e.multiple){if(t==null)return;if(!h(t))return We();for(var r of e.options)r.selected=t.includes(Bi(r));return}for(r of e.options)if(dn(Bi(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function zi(e){var t=new MutationObserver(()=>{Ri(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),jn(()=>{t.disconnect()})}function Bi(e){return`__value`in e?e.__value:e.value}var Vi=Symbol(`class`),Hi=Symbol(`style`),Ui=Symbol(`is custom element`),Wi=Symbol(`is html`),Gi=ke?`link`:`LINK`,Ki=ke?`input`:`INPUT`,qi=ke?`option`:`OPTION`,Ji=ke?`select`:`SELECT`;function Yi(e){if(w){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Zi(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Zi(e,`checked`,null),e.checked=r}}};e.__on_r=n,ct(n),Tn()}}function Xi(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Zi(e,t,n,r){var i=ea(e);w&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Gi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[De]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&na(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Qi(e,t,n,r,i=!1,a=!1){if(w&&i&&e.nodeName===Ki){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Yi(o)}var s=ea(e),c=s[Ui],l=!s[Wi];let u=w&&c;u&&T(!1);var f=t||{},p=e.nodeName===qi;for(var m in t)m in n||(n[m]=null);n.class?n.class=ki(n.class):(r||n[Vi])&&(n.class=null),n[Hi]&&(n.style??=null);var h=na(e);for(let i in n){let o=n[i];if(p&&i===`value`&&o==null){e.value=e.__value=``,f[i]=o;continue}if(i===`class`){Fi(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Vi],n[Vi]),f[i]=o,f[Vi]=n[Vi];continue}if(i===`style`){Li(e,o,t?.[Hi],n[Hi]),f[i]=o,f[Hi]=n[Hi];continue}var g=f[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){f[i]=o;var _=i[0]+i[1];if(_!==`$$`)if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Br(r);if(Rr(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,f[n],t),f[n]=null}if(v)Or(r,e,o),kr([r]);else if(o!=null){function a(e){f[i].call(this,e)}f[n]=Er(r,e,a,t)}}else if(i===`style`)Zi(e,i,o);else if(i===`autofocus`)Cn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&p)Xi(e,o);else{var y=i;l||(y=Ur(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b)if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else b||h.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=d)):typeof o!=`function`&&Zi(e,y,o,a)}}}return u&&T(!0),f}function $i(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Bt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ji,l=!1;if(Vn(()=>{var u=t(...n.map(Y)),d=Qi(e,r,u,a,o,s);l&&c&&`value`in u&&Ri(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||V(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&V(i[t]),i[t]=B(()=>Ei(e,()=>f))),d[t]=f}r=d}),c){var u=e;In(()=>{Ri(u,r.value,!0),zi(u)})}l=!0})}function ea(e){return e.__attributes??={[Ui]:e.nodeName.includes(`-`),[Wi]:e.namespaceURI===f}}var ta=new Map;function na(e){var t=e.getAttribute(`is`)||e.nodeName,n=ta.get(t);if(n)return n;ta.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=S(i),r)r[o].set&&n.push(o);i=ne(i)}return n}function ra(e,t){return e===t||e?.[Te]===t}function ia(e={},t,n,r){var i=O.r,a=W;return In(()=>{var o,s;return Rn(()=>{o=s,s=r?.()||[],br(()=>{e!==n(...s)&&(t(e,...s),o&&ra(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ra(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var aa={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function oa(e,t,n){return new Proxy({props:e,exclude:t},aa)}var sa={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ie(i)&&(i=i());let a=x(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ie(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=x(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Te||t===Ee)return!1;for(let n of e.props)if(ie(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ie(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function ca(...e){return new Proxy({props:e},sa)}function Z(e,t,n,r){var i=!tt||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?br(r):r),s);let u;if(a){var d=Te in e||Ee in e;u=x(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=vt(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Re(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Wt:Kt)(()=>(g=!1,m()));a&&Y(_);var v=W;return(function(e,t){if(arguments.length>0){let n=t?Y(_):i&&a?ln(e):e;return F(_,n),g=!0,s!==void 0&&(s=n),e}return er&&g||v.f&16384?_.v:Y(_)})}function la(e){return new ua(e)}var ua=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=rn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Y(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===Ee?!0:(Y(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Xr:Yr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!et&&(!e?.props?.$$host||e.sync===!1)&&M(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||b(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{ei(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},da;typeof HTMLElement==`function`&&(da=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=xn(`slot`);e!==`default`&&(n.name=e),X(t,n)}}let t={},n=pa(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=fa(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=la({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pn(()=>{Rn(()=>{this.$$r=!0;for(let e of y(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=fa(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=fa(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return y(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fa(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function pa(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ma(e,t,n,r,i,a){let o=class extends da{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return y(t).map(e=>(t[e].attribute||e).toLowerCase())}};return y(t).forEach(e=>{b(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=fa(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(x(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{b(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var ha=Ir(`<div class="chat-app__container"><div class="error-message svelte-14mj70v">Server is unreachable, please try later... <button class="error-message__retry-button svelte-14mj70v">Retry</button></div></div>`),ga=Ir(` <!>`,1),_a={hash:`svelte-14mj70v`,code:`
@@ -1,3 +1,4 @@
1
+ /*! @liip/liipgpt | Copyright 2025-2026 Liip AG | Apache-2.0 | see LICENSE and NOTICE */
1
2
  var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var l={},u=Symbol(),d=`http://www.w3.org/1999/xhtml`,f=`http://www.w3.org/2000/svg`,p=`http://www.w3.org/1998/Math/MathML`,m=Array.isArray,h=Array.prototype.indexOf,g=Array.prototype.includes,_=Array.from,v=Object.keys,y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyDescriptors,S=Object.prototype,ee=Array.prototype,C=Object.getPrototypeOf,te=Object.isExtensible;function ne(e){return typeof e==`function`}var re=()=>{};function ie(e){return typeof e?.then==`function`}function ae(e){for(var t=0;t<e.length;t++)e[t]()}function oe(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var se=1<<24,w=1024,ce=2048,le=4096,ue=8192,de=16384,fe=32768,pe=1<<25,me=65536,he=1<<18,ge=1<<19,_e=1<<20,ve=1<<25,ye=65536,be=1<<21,xe=1<<22,Se=1<<23,Ce=Symbol(`$state`),we=Symbol(`legacy props`),Te=Symbol(``),Ee=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},De=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Oe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ke(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ae(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function je(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Me(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ne(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Pe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Fe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ie(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Le(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Re(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ze(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Be(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ve(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function He(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ue(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function E(e){T=e}var D;function O(e){if(e===null)throw Ve(),l;return D=e}function We(){return O(z(D))}function Ge(e){if(T){if(z(D)!==null)throw Ve(),l;D=e}}function Ke(e=1){if(T){for(var t=e,n=D;t--;)n=z(n);D=n}}function qe(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function Je(e){if(!e||e.nodeType!==8)throw Ve(),l;return e.data}function Ye(e){return e===this.v}function Xe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ze(e){return!Xe(e,this.v)}var Qe=!1,$e=!1,k=null;function et(e){k=e}function tt(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:G,l:$e&&!t?{s:null,u:null,$:[]}:null}}function nt(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)jn(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function rt(){return!$e||k!==null&&k.l===null}var it=[];function at(){var e=it;it=[],ae(e)}function ot(e){if(it.length===0&&!yt){var t=it;queueMicrotask(()=>{t===it&&at()})}it.push(e)}function st(){for(;it.length>0;)at()}function ct(e){var t=G;if(t===null)return U.f|=Se,e;if(!(t.f&32768)&&!(t.f&4))throw e;lt(e,t)}function lt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var ut=~(ce|le|w);function A(e,t){e.f=e.f&ut|t}function dt(e){e.f&512||e.deps===null?A(e,w):A(e,le)}function ft(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ye,ft(t.deps))}function pt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),ft(e.deps),A(e,w)}var mt=!1,ht=!1;function gt(e){var t=ht;try{return ht=!1,[e(),ht]}finally{ht=t}}var _t=new Set,j=null,M=null,vt=null,yt=!1,bt=!1,xt=null,St=null,Ct=0,wt=1,Tt=class e{id=wt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)A(n,ce),this.schedule(n);for(n of t.m)A(n,le),this.schedule(n)}}#d(){if(Ct++>1e3&&(_t.delete(this),Et()),!this.#u()){for(let e of this.#o)this.#s.delete(e),A(e,ce),this.schedule(e);for(let e of this.#s)A(e,le),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=xt=[],r=[],i=St=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw Nt(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(xt=null,St=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Mt(e,t)}else{this.#n===0&&_t.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),Ot(r),Ot(n),this.#i?.resolve()}var o=j;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(_t.add(o),o.#d()),_t.has(this)||this.#m()}#f(e,t,n){e.f^=w;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=w:i&4?t.push(r):Qe&&i&16777224?n.push(r):ur(r)&&(i&16&&this.#s.add(r),hr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)pt(e[t],this.#o,this.#s)}capture(e,t){t!==u&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{bt=!0,j=this,this.#d()}finally{Ct=0,vt=null,xt=null,St=null,bt=!1,j=null,M=null,Qt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),_t.delete(this)}#m(){for(let s of _t){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)kt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,ot(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=oe()).promise}static ensure(){if(j===null){let t=j=new e;bt||(_t.add(j),yt||ot(()=>{j===t&&t.flush()}))}return j}apply(){if(!Qe||!this.is_fork&&_t.size===1){M=null;return}M=new Map(this.current);for(let e of _t)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)M.has(t)||M.set(t,n)}schedule(e){if(vt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(xt!==null&&t===G&&(Qe||(U===null||!(U.f&2))&&!mt))return;if(n&96){if(!(n&1024))return;t.f^=w}}this.#a.push(t)}};function N(e){var t=yt;yt=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(st(),j===null)return n;j.flush()}}finally{yt=t}}function Et(){try{Pe()}catch(e){lt(e,vt)}}var Dt=null;function Ot(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ur(r)&&(Dt=new Set,hr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Wn(r),Dt?.size>0)){Qt.clear();for(let e of Dt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Dt.has(n)&&(Dt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||hr(n)}}Dt.clear()}}Dt=null}}function kt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?kt(i,t,n,r):e&4194320&&!(e&2048)&&At(i,t,r)&&(A(i,ce),jt(i))}}function At(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(g.call(t,r))return!0;if(r.f&2&&At(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function jt(e){j.schedule(e)}function Mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),A(e,w);for(var n=e.first;n!==null;)Mt(n,t),n=n.next}}function Nt(e){A(e,w);for(var t=e.first;t!==null;)Nt(t),t=t.next}function Pt(e){let t=0,n=en(0),r;return()=>{On()&&(Y(n),In(()=>(t===0&&(r=yr(()=>e(()=>an(n)))),t+=1,()=>{ot(()=>{--t,t===0&&(r?.(),r=void 0,an(n))})})))}}var Ft=me|ge;function It(e,t,n,r){new Lt(e,t,n,r)}var Lt=class{parent;is_pending=!1;transform_error;#e;#t=T?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Pt(()=>(this.#m=en(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Rn(()=>{if(T){let e=this.#t;We();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Ft),T&&(this.#e=D)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),ot(()=>{var e=this.#c=document.createDocumentFragment(),t=L();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Gn(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Yn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){pt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=G,n=U,r=k;tr(this.#i),W(this.#i),et(this.#i.ctx);try{return Tt.ensure(),e()}catch(e){return ct(e),null}finally{tr(t),W(n),et(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Gn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,ot(()=>{this.#d=!1,this.#m&&nn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Y(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),T&&(O(this.#t),Ke(),O(qe()));var r=!1,i=!1;let a=()=>{if(r){Ue();return}r=!0,i&&Be(),this.#s!==null&&Gn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){lt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return lt(e,this.#i.parent),null}}))};ot(()=>{var t;try{t=this.transform_error(e)}catch(e){lt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>lt(e,this.#i&&this.#i.parent)):o(t)})}};function Rt(e,t,n,r){let i=rt()?Ht:Wt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=zt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||lt(e,o)}Bt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Vt();function d(){Promise.all(n.map(e=>Ut(e))).then(e=>l([...t.map(i),...e])).catch(e=>lt(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Bt()}):d()}function zt(){var e=G,t=U,n=k,r=j;return function(i=!0){tr(e),W(t),et(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Bt(e=!0){tr(null),W(null),et(null),e&&j?.deactivate()}function Vt(){var e=G.b,t=j,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function Ht(e){var t=2|ce,n=U!==null&&U.f&2?U:null;return G!==null&&(G.f|=ge),{ctx:k,deps:null,effects:null,equals:Ye,f:t,fn:e,reactions:null,rv:0,v:u,wv:0,parent:n??G,ac:null}}function Ut(e,t,n){let r=G;r===null&&ke();var i=void 0,a=en(u),o=!U,s=new Map;return Fn(()=>{var t=G,n=oe();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Bt)}catch(e){n.reject(e),Bt()}var c=j;if(o){if(t.f&32768)var l=Vt();if(r.b.is_rendered())s.get(c)?.reject(Ee),s.delete(c);else{for(let e of s.values())e.reject(Ee);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===Ee),!(n===Ee||t.f&16384)){if(c.activate(),n)a.f|=Se,nn(a,n);else{a.f&8388608&&(a.f^=Se),nn(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(Ee)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),kn(()=>{for(let e of s.values())e.reject(Ee)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function P(e){let t=Ht(e);return Qe||nr(t),t}function Wt(e){let t=Ht(e);return t.equals=Ze,t}function Gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Kt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function qt(e){var t,n=G;tr(Kt(e));try{e.f&=~ye,Gt(e),t=fr(e)}finally{tr(n)}return t}function Jt(e){var t=e.v,n=qt(e);if(!e.equals(n)&&(e.wv=lr(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t),e.deps===null))){A(e,w);return}Qn||(M===null?dt(e):(On()||j?.is_fork)&&M.set(e,n))}function Yt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Ee),t.teardown=re,t.ac=null,mr(t,0),Vn(t))}function Xt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&hr(t)}var Zt=new Set,Qt=new Map,$t=!1;function en(e,t){return{f:0,v:e,reactions:null,equals:Ye,rv:0,wv:0}}function F(e,t){let n=en(e,t);return nr(n),n}function tn(e,t=!1,n=!0){let r=en(e);return t||(r.equals=Ze),$e&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function I(e,t,n=!1){return U!==null&&(!er||U.f&131072)&&rt()&&U.f&4325394&&(K===null||!g.call(K,e))&&ze(),nn(e,n?sn(t):t,St)}function nn(e,t,n=null){if(!e.equals(t)){var r=e.v;Qn?Qt.set(e,t):Qt.set(e,r),e.v=t;var i=Tt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&qt(t),M===null&&dt(t)}e.wv=lr(),on(e,ce,n),rt()&&G!==null&&G.f&1024&&!(G.f&96)&&(rr===null?ir([e]):rr.push(e)),!i.is_fork&&Zt.size>0&&!$t&&rn()}return t}function rn(){$t=!1;for(let e of Zt)e.f&1024&&A(e,le),ur(e)&&hr(e);Zt.clear()}function an(e){I(e,e.v+1)}function on(e,t,n){var r=e.reactions;if(r!==null)for(var i=rt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&ce)===0;if(l&&A(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=ye),on(u,le,n))}else if(l){var d=s;c&16&&Dt!==null&&Dt.add(d),n===null?jt(d):n.push(d)}}}}function sn(e){if(typeof e!=`object`||!e||Ce in e)return e;let t=C(e);if(t!==S&&t!==ee)return e;var n=new Map,r=m(e),i=F(0),a=null,o=sr,s=e=>{if(sr===o)return e();var t=U,n=sr;W(null),cr(o);var r=e();return W(t),cr(n),r};return r&&n.set(`length`,F(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Le();var i=n.get(t);return i===void 0?s(()=>{var e=F(r.value,a);return n.set(t,e),e}):I(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>F(u,a));n.set(t,e),an(i)}}else I(r,u),an(i);return!0},get(t,r,i){if(r===Ce)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||b(t,r)?.writable)&&(o=s(()=>F(sn(c?t[r]:u),a)),n.set(r,o)),o!==void 0){var l=Y(o);return l===u?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Y(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==u)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Ce)return!0;var r=n.get(t),i=r!==void 0&&r.v!==u||Reflect.has(e,t);return(r!==void 0||G!==null&&(!i||b(e,t)?.writable))&&(r===void 0&&(r=s(()=>F(i?sn(e[t]):u,a)),n.set(t,r)),Y(r)===u)?!1:i},set(e,t,o,c){var l=n.get(t),d=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>F(u,a)),n.set(f+``,p)):I(p,u)}if(l===void 0)(!d||b(e,t)?.writable)&&(l=s(()=>F(void 0,a)),I(l,sn(o)),n.set(t,l));else{d=l.v!==u;var m=s(()=>sn(o));I(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!d){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&I(g,_+1)}an(i)}return!0},ownKeys(e){Y(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==u});for(var[r,a]of n)a.v!==u&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Re()}})}function cn(e){try{if(typeof e==`object`&&e&&Ce in e)return e[Ce]}catch{}return e}function ln(e,t){return Object.is(cn(e),cn(t))}var un,dn,fn,pn;function mn(){if(un===void 0){un=window,dn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;fn=b(t,`firstChild`).get,pn=b(t,`nextSibling`).get,te(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),te(n)&&(n.__t=void 0)}}function L(e=``){return document.createTextNode(e)}function R(e){return fn.call(e)}function z(e){return pn.call(e)}function hn(e,t){if(!T)return R(e);var n=R(D);if(n===null)n=D.appendChild(L());else if(t&&n.nodeType!==3){var r=L();return n?.before(r),O(r),r}return t&&bn(n),O(n),n}function B(e,t=!1){if(!T){var n=R(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(D?.nodeType!==3){var r=L();return D?.before(r),O(r),r}bn(D)}return D}function gn(e,t=1,n=!1){let r=T?D:e;for(var i;t--;)i=r,r=z(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=L();return r===null?i?.after(a):r.before(a),O(a),a}bn(r)}return O(r),r}function _n(e){e.textContent=``}function vn(){return!Qe||Dt!==null?!1:(G.f&fe)!==0}function yn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function bn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function xn(e,t){if(t){let t=document.body;e.autofocus=!0,ot(()=>{document.activeElement===t&&e.focus()})}}var Sn=!1;function Cn(){Sn||(Sn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function wn(e){var t=U,n=G;W(null),tr(null);try{return e()}finally{W(t),tr(n)}}function Tn(e){G===null&&(U===null&&Ne(e),Me()),Qn&&je(e)}function En(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Dn(e,t){var n=G;n!==null&&n.f&8192&&(e|=ue);var r={ctx:k,deps:null,nodes:null,f:e|ce|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)xt===null?Tt.ensure().schedule(r):xt.push(r);else if(t!==null){try{hr(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=me))}if(i!==null&&(i.parent=n,n!==null&&En(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function On(){return U!==null&&!er}function kn(e){let t=Dn(8,null);return A(t,w),t.teardown=e,t}function An(e){Tn(`$effect`);var t=G.f;if(!U&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return jn(e)}function jn(e){return Dn(4|_e,e)}function Mn(e){Tt.ensure();let t=Dn(64|ge,e);return()=>{H(t)}}function Nn(e){Tt.ensure();let t=Dn(64|ge,e);return(e={})=>new Promise(n=>{e.outro?Gn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function Pn(e){return Dn(4,e)}function Fn(e){return Dn(xe|ge,e)}function In(e,t=0){return Dn(8|t,e)}function Ln(e,t=[],n=[],r=[]){Rt(r,t,n,t=>{Dn(8,()=>e(...t.map(Y)))})}function Rn(e,t=0){return Dn(16|t,e)}function zn(e,t=0){return Dn(se|t,e)}function V(e){return Dn(32|ge,e)}function Bn(e){var t=e.teardown;if(t!==null){let e=Qn,n=U;$n(!0),W(null);try{t.call(null)}finally{$n(e),W(n)}}}function Vn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&wn(()=>{e.abort(Ee)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function Hn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Un(e.nodes.start,e.nodes.end),n=!0),A(e,pe),Vn(e,t&&!n),mr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Bn(e),e.f^=pe,e.f|=de;var i=e.parent;i!==null&&i.first!==null&&Wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Un(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function Wn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Gn(e,t,n=!0){var r=[];Kn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Kn(e,t,n){if(!(e.f&8192)){e.f^=ue;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Kn(i,t,o?n:!1),i=a}}}function qn(e){Jn(e,!0)}function Jn(e,t){if(e.f&8192){e.f^=ue,e.f&1024||(A(e,ce),Tt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Jn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Yn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var Xn=null,Zn=!1,Qn=!1;function $n(e){Qn=e}var U=null,er=!1;function W(e){U=e}var G=null;function tr(e){G=e}var K=null;function nr(e){U!==null&&(!Qe||U.f&2)&&(K===null?K=[e]:K.push(e))}var q=null,J=0,rr=null;function ir(e){rr=e}var ar=1,or=0,sr=or;function cr(e){sr=e}function lr(){return++ar}function ur(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ye),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ur(a)&&Jt(a),a.wv>e.wv)return!0}t&512&&M===null&&A(e,w)}return!1}function dr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Qe&&K!==null&&g.call(K,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?dr(a,t,!1):t===a&&(n?A(a,ce):a.f&1024&&A(a,le),jt(a))}}function fr(e){var t=q,n=J,r=rr,i=U,a=K,o=k,s=er,c=sr,l=e.f;q=null,J=0,rr=null,U=l&96?null:e,K=null,et(e.ctx),er=!1,sr=++or,e.ac!==null&&(wn(()=>{e.ac.abort(Ee)}),e.ac=null);try{e.f|=be;var u=e.fn,d=u();e.f|=fe;var f=e.deps,p=j?.is_fork;if(q!==null){var m;if(p||mr(e,J),f!==null&&J>0)for(f.length=J+q.length,m=0;m<q.length;m++)f[J+m]=q[m];else e.deps=f=q;if(On()&&e.f&512)for(m=J;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&J<f.length&&(mr(e,J),f.length=J);if(rt()&&rr!==null&&!er&&f!==null&&!(e.f&6146))for(m=0;m<rr.length;m++)dr(rr[m],e);if(i!==null&&i!==e){if(or++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=or;if(t!==null)for(let e of t)e.rv=or;rr!==null&&(r===null?r=rr:r.push(...rr))}return e.f&8388608&&(e.f^=Se),d}catch(e){return ct(e)}finally{e.f^=be,q=t,J=n,rr=r,U=i,K=a,et(o),er=s,sr=c}}function pr(e,t){let n=t.reactions;if(n!==null){var r=h.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(q===null||!g.call(q,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~ye),dt(a),Yt(a),mr(a,0)}}function mr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)pr(e,n[r])}function hr(e){var t=e.f;if(!(t&16384)){A(e,w);var n=G,r=Zn;G=e,Zn=!0;try{t&16777232?Hn(e):Vn(e),Bn(e);var i=fr(e);e.teardown=typeof i==`function`?i:null,e.wv=ar}finally{Zn=r,G=n}}}async function gr(){if(Qe)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),N()}function Y(e){var t=(e.f&2)!=0;if(Xn?.add(e),U!==null&&!er&&!(G!==null&&G.f&16384)&&(K===null||!g.call(K,e))){var n=U.deps;if(U.f&2097152)e.rv<or&&(e.rv=or,q===null&&n!==null&&n[J]===e?J++:q===null?q=[e]:q.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:g.call(r,U)||r.push(U)}}if(Qn&&Qt.has(e))return Qt.get(e);if(t){var i=e;if(Qn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||vr(i))&&(a=qt(i)),Qt.set(i,a),a}var o=(i.f&512)==0&&!er&&U!==null&&(Zn||(U.f&512)!=0),s=(i.f&fe)===0;ur(i)&&(o&&(i.f|=512),Jt(i)),o&&!s&&(Xt(i),_r(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function _r(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Xt(t),_r(t))}function vr(e){if(e.v===u)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Qt.has(t)||t.f&2&&vr(t))return!0;return!1}function yr(e){var t=er;try{return er=!0,e()}finally{er=t}}function br(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(Ce in e)xr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&Ce in n&&xr(n)}}}function xr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{xr(e[n],t)}catch{}let n=C(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=x(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var Sr=Symbol(`events`),Cr=new Set,wr=new Set;function Tr(e,t,n,r={}){function i(e){if(r.capture||Ar.call(t,e),!e.cancelBubble)return wn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?ot(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Er(e,t,n,r,i){var a={capture:r,passive:i},o=Tr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&kn(()=>{t.removeEventListener(e,o,a)})}function Dr(e,t,n){(t[Sr]??={})[e]=n}function Or(e){for(var t=0;t<e.length;t++)Cr.add(e[t]);for(var n of wr)n(e)}var kr=null;function Ar(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;kr=e;var o=0,s=kr===e&&e[Sr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Sr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){y(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=U,d=G;W(null),tr(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Sr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Sr]=t,delete e.currentTarget,W(u),tr(d)}}}var jr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Mr(e){return jr?.createHTML(e)??e}function Nr(e){var t=yn(`template`);return t.innerHTML=Mr(e.replaceAll(`<!>`,`<!---->`)),t.content}function Pr(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Fr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return Pr(D,null),D;i===void 0&&(i=Nr(a?e:`<!>`+e),n||(i=R(i)));var t=r||dn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=R(t),s=t.lastChild;Pr(o,s)}else Pr(t,t);return t}}function Ir(){if(T)return Pr(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=L();return e.append(t,n),Pr(t,n),e}function X(e,t){if(T){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),We();return}e!==null&&e.before(t)}function Lr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Rr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function zr(e){return Rr.includes(e)}var Br=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Vr={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function Hr(e){return e=e.toLowerCase(),Vr[e]??e}[...Br];var Ur=[`touchstart`,`touchmove`];function Wr(e){return Ur.includes(e)}var Gr=[`textarea`,`script`,`style`,`title`];function Kr(e){return Gr.includes(e)}function qr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Jr(e,t){return Zr(e,t)}function Yr(e,t){mn(),t.intro=t.intro??!1;let n=t.target,r=T,i=D;try{for(var a=R(n);a&&(a.nodeType!==8||a.data!==`[`);)a=z(a);if(!a)throw l;E(!0),O(a);let r=Zr(e,{...t,anchor:a});return E(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
3
  `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==l&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Fe(),mn(),_n(n),E(!1),Jr(e,t)}finally{E(r),O(i)}}var Xr=new Map;function Zr(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){mn();var c=void 0,u=Nn(()=>{var o=n??t.appendChild(L());It(o,{pending:()=>{}},t=>{tt({});var n=k;if(a&&(n.c=a),i&&(r.$$events=i),T&&Pr(t,null),c=e(t,r)||{},T&&(G.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Ve(),l;nt()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=Wr(r);for(let e of[t,document]){var a=Xr.get(e);a===void 0&&(a=new Map,Xr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Ar,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(_(Cr)),wr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Xr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ar),r.delete(e),r.size===0&&Xr.delete(n)):r.set(e,i)}wr.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return Qr.set(c,u),c}var Qr=new WeakMap;function $r(e,t){let n=Qr.get(e);return n?(Qr.delete(e),n(t)):Promise.resolve()}var ei=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)qn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Yn(r,t),t.append(L()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Gn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=vn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=L();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=D),this.#a(n)}};function ti(e,t,...n){var r=new ei(e);Rn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},me)}function ni(e){k===null&&Oe(`onMount`),$e&&k.l!==null?ii(k).m.push(e):An(()=>{let t=yr(e);if(typeof t==`function`)return t})}function ri(e){k===null&&Oe(`onDestroy`),ni(()=>()=>yr(e))}function ii(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var ai=0,oi=1,si=2;function ci(e,t,n,r,i){T&&We();var a=rt(),o=u,s=a?en(o):tn(o,!1,!1),c=a?en(o):tn(o,!1,!1),l=new ei(e);Rn(()=>{var a=j;a.deactivate();var o=t();a.activate();var u=!1;let d=T&&ie(o)===(e.data===`[!`);if(d&&(O(qe()),E(!1)),ie(o)){var f=zt(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Tt.ensure(),T&&E(!1);try{e()}finally{Bt(!1),yt||N()}}};o.then(t=>{e(()=>{nn(s,t),l.ensure(oi,r&&(e=>r(e,s)))})},t=>{e(()=>{if(nn(c,t),l.ensure(si,i&&(e=>i(e,c))),!i)throw c.v})}),T?l.ensure(ai,n):ot(()=>{p||e(()=>{l.ensure(ai,n)})})}else nn(s,o),l.ensure(oi,r&&(e=>r(e,s)));return d&&E(!0),()=>{u=!0}})}function li(e,t,n=!1){var r;T&&(r=D,We());var i=new ei(e),a=n?me:0;function o(e,t){if(T){var n=Je(r);if(e!==parseInt(n.substring(1))){var a=qe();O(a),i.anchor=a,E(!1),i.ensure(e,t),E(!0);return}}i.ensure(e,t)}Rn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function ui(e,t){return t}function di(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Gn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;fi(e,_(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;_n(u),u.append(l),e.items.clear()}fi(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function fi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ve,Yn(a,document.createDocumentFragment())):H(t[i],n)}}var pi;function mi(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=T?O(R(c)):c.appendChild(L())}T&&We();var l=null,u=Wt(()=>{var e=n();return m(e)?e:e==null?[]:_(e)}),d,f=new Map,p=!0;function h(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,gi(v,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=ve,vi(l,null,o)):qn(l):Gn(l,()=>{l=null})))}function g(e){v.pending.delete(e)}var v={effect:Rn(()=>{d=Y(u);var e=d.length;let c=!1;T&&Je(o)===`[!`!=(e===0)&&(o=qe(),O(o),E(!1),c=!0);for(var m=new Set,_=j,v=vn(),y=0;y<e;y+=1){T&&D.nodeType===8&&D.data===`]`&&(o=D,c=!0,E(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&nn(S.v,b),S.i&&nn(S.i,y),v&&_.unskip_effect(S.e)):(S=_i(s,p?o:pi??=L(),b,x,y,i,t,n),p||(S.e.f|=ve),s.set(x,S)),m.add(x)}if(e===0&&a&&!l&&(p?l=V(()=>a(o)):(l=V(()=>a(pi??=L())),l.f|=ve)),e>m.size&&Ae(``,``,``),T&&e>0&&O(qe()),!p)if(f.set(_,m),v){for(let[e,t]of s)m.has(e)||_.skip_effect(t.e);_.oncommit(h),_.ondiscard(g)}else h(_);c&&E(!0),Y(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,T&&(o=D)}function hi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function gi(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=hi(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,v;if(a)for(v=0;v<o;v+=1)m=t[v],h=i(m,v),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(v=0;v<o;v+=1){if(m=t[v],h=i(m,v),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(qn(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=ve,g===c)vi(g,null,n);else{var y=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),yi(e,u,g),yi(e,g,y),vi(g,y,n),u=g,f=[],p=[],c=hi(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var b=p[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)vi(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);yi(e,S.prev,ee.next),yi(e,u,S),yi(e,ee,b),c=b,u=ee,--v,f=[],p=[]}else l.delete(g),vi(g,c,n),yi(e,g.prev,g.next),yi(e,g,u===null?e.effect.first:u.next),yi(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=hi(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=hi(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(fi(e,_(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(g of l)g.f&8192||C.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=hi(c.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}di(e,C,ne)}}a&&ot(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function _i(e,t,n,r,i,a,o,s){var c=o&1?o&16?en(n):tn(n,!1,!1):null,l=o&2?en(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function vi(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=z(r);if(a.before(r),r===i)return;r=o}}function yi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function bi(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;T&&(o=O(R(c)))}Ln(()=>{var e=G;if(s===(s=t()??``)){T&&We();return}if(n&&!T){e.nodes=null,c.innerHTML=s,s!==``&&Pr(R(c),c.lastChild);return}if(e.nodes!==null&&(Un(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(T){for(var a=D.data,u=We(),d=u;u!==null&&(u.nodeType!==8||u.data!==``);)d=u,u=z(u);if(u===null)throw Ve(),l;Pr(D,d),o=O(u);return}var m=yn(r?`svg`:i?`math`:`template`,r?f:i?p:void 0);m.innerHTML=s;var h=r||i?m:m.content;if(Pr(R(h),h.lastChild),r||i)for(;R(h);)o.before(R(h));else o.before(h)}})}function xi(e,t,n,r,i,a){let o=T;T&&We();var s=null;T&&D.nodeType===1&&(s=D,We());var c=T?D:e,l=new ei(c,!1);Rn(()=>{let e=t()||null;var a=i?i():n||e===`svg`?f:void 0;if(e===null){l.ensure(null,null);return}return l.ensure(e,t=>{if(e){if(s=T?s:yn(e,a),Pr(s,s),r){T&&Kr(e)&&s.append(document.createComment(``));var n=T?R(s):s.appendChild(L());T&&(n===null?E(!1):O(n)),r(s,n)}G.nodes.end=s,t.before(s)}T&&O(t)}),()=>{}},me),kn(()=>{}),o&&(E(!0),O(c))}function Si(e,t){let n=null,r=T;var i;if(T){n=D;for(var a=R(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=z(a);if(a===null)E(!1);else{var o=z(a);a.remove(),O(o)}}T||(i=document.head.appendChild(L()));try{Rn(()=>t(i),he|ge)}finally{r&&(E(!0),O(n))}}function Ci(e,t){Pn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=yn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function wi(e,t,n){Pn(()=>{var r=yr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};In(()=>{var e=n();br(e),i&&Xe(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Ti(e,t){var n=void 0,r;zn(()=>{n!==(n=t())&&(r&&=(H(r),null),n&&(r=V(()=>{Pn(()=>n(e))})))})}function Ei(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ei(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Di(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ei(e))&&(r&&(r+=` `),r+=t);return r}function Oi(e){return typeof e==`object`?Di(e):e??``}var ki=[...`
3
4
  \r\f\xA0\v`];function Ai(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||ki.includes(r[o-1]))&&(s===r.length||ki.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ji(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Mi(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Ni(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Mi)),i&&c.push(...Object.keys(i).map(Mi));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Mi(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=ji(r)),i&&(n+=ji(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Pi(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=Ai(n,r,a);(!T||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Fi(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Ii(e,t,n,r){var i=e.__style;if(T||i!==t){var a=Ni(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Fi(e,n?.[0],r[0]),Fi(e,n?.[1],r[1],`important`)):Fi(e,n,r));return r}function Li(e,t,n=!1){if(e.multiple){if(t==null)return;if(!m(t))return He();for(var r of e.options)r.selected=t.includes(zi(r));return}for(r of e.options)if(ln(zi(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Ri(e){var t=new MutationObserver(()=>{Li(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),kn(()=>{t.disconnect()})}function zi(e){return`__value`in e?e.__value:e.value}var Bi=Symbol(`class`),Vi=Symbol(`style`),Hi=Symbol(`is custom element`),Ui=Symbol(`is html`),Wi=De?`link`:`LINK`,Gi=De?`input`:`INPUT`,Ki=De?`option`:`OPTION`,qi=De?`select`:`SELECT`;function Ji(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Xi(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Xi(e,`checked`,null),e.checked=r}}};e.__on_r=n,ot(n),Cn()}}function Yi(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Xi(e,t,n,r){var i=$i(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Wi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Te]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ta(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Zi(e,t,n,r,i=!1,a=!1){if(T&&i&&e.nodeName===Gi){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ji(o)}var s=$i(e),c=s[Hi],l=!s[Ui];let d=T&&c;d&&E(!1);var f=t||{},p=e.nodeName===Ki;for(var m in t)m in n||(n[m]=null);n.class?n.class=Oi(n.class):(r||n[Bi])&&(n.class=null),n[Vi]&&(n.style??=null);var h=ta(e);for(let i in n){let o=n[i];if(p&&i===`value`&&o==null){e.value=e.__value=``,f[i]=o;continue}if(i===`class`){Pi(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Bi],n[Bi]),f[i]=o,f[Bi]=n[Bi];continue}if(i===`style`){Ii(e,o,t?.[Vi],n[Vi]),f[i]=o,f[Vi]=n[Vi];continue}var g=f[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){f[i]=o;var _=i[0]+i[1];if(_!==`$$`)if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=zr(r);if(Lr(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,f[n],t),f[n]=null}if(v)Dr(r,e,o),Or([r]);else if(o!=null){function a(e){f[i].call(this,e)}f[n]=Tr(r,e,a,t)}}else if(i===`style`)Xi(e,i,o);else if(i===`autofocus`)xn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&p)Yi(e,o);else{var y=i;l||(y=Hr(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b)if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else b||h.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=u)):typeof o!=`function`&&Xi(e,y,o,a)}}}return d&&E(!0),f}function Qi(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Rt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===qi,l=!1;if(zn(()=>{var u=t(...n.map(Y)),d=Zi(e,r,u,a,o,s);l&&c&&`value`in u&&Li(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||H(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&H(i[t]),i[t]=V(()=>Ti(e,()=>f))),d[t]=f}r=d}),c){var u=e;Pn(()=>{Li(u,r.value,!0),Ri(u)})}l=!0})}function $i(e){return e.__attributes??={[Hi]:e.nodeName.includes(`-`),[Ui]:e.namespaceURI===d}}var ea=new Map;function ta(e){var t=e.getAttribute(`is`)||e.nodeName,n=ea.get(t);if(n)return n;ea.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=x(i),r)r[o].set&&n.push(o);i=C(i)}return n}function na(e,t){return e===t||e?.[Ce]===t}function ra(e={},t,n,r){var i=k.r,a=G;return Pn(()=>{var o,s;return In(()=>{o=s,s=r?.()||[],yr(()=>{e!==n(...s)&&(t(e,...s),o&&na(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&na(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var ia={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function aa(e,t,n){return new Proxy({props:e,exclude:t},ia)}var oa={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ne(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ne(i)&&(i=i());let a=b(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ne(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=b(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Ce||t===we)return!1;for(let n of e.props)if(ne(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ne(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function sa(...e){return new Proxy({props:e},oa)}function Z(e,t,n,r){var i=!$e||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?yr(r):r),s);let u;if(a){var d=Ce in e||we in e;u=b(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=gt(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Ie(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Ht:Wt)(()=>(g=!1,m()));a&&Y(_);var v=G;return(function(e,t){if(arguments.length>0){let n=t?Y(_):i&&a?sn(e):e;return I(_,n),g=!0,s!==void 0&&(s=n),e}return Qn&&g||v.f&16384?_.v:Y(_)})}function ca(e){return new la(e)}var la=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=tn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Y(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===we?!0:(Y(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Yr:Jr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Qe&&(!e?.props?.$$host||e.sync===!1)&&N(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||y(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{$r(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},ua;typeof HTMLElement==`function`&&(ua=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=yn(`slot`);e!==`default`&&(n.name=e),X(t,n)}}let t={},n=fa(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=da(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=ca({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Mn(()=>{In(()=>{this.$$r=!0;for(let e of v(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=da(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=da(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return v(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function da(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function fa(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function pa(e,t,n,r,i,a){let o=class extends ua{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return v(t).map(e=>(t[e].attribute||e).toLowerCase())}};return v(t).forEach(e=>{y(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=da(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(b(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{y(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var ma=Fr(`<div class="chat-app__container"><div class="error-message svelte-14mj70v">Server is unreachable, please try later... <button class="error-message__retry-button svelte-14mj70v">Retry</button></div></div>`),ha=Fr(` <!>`,1),ga={hash:`svelte-14mj70v`,code:`