signetai 0.1.52 → 0.1.54
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.
- package/LICENSE +193 -21
- package/dashboard/_app/immutable/assets/0.DAq3xvZD.css +1 -0
- package/dashboard/_app/immutable/assets/2.DGSSg1ea.css +1 -0
- package/dashboard/{build/_app/immutable/chunks/CUXOtego.js → _app/immutable/chunks/BfdWYpt4.js} +1 -1
- package/dashboard/_app/immutable/chunks/CEkDhCtv.js +10 -0
- package/dashboard/_app/immutable/chunks/{Ck79e58B.js → YtioRx_0.js} +1 -1
- package/dashboard/_app/immutable/entry/{app.Cc4zc4I6.js → app.DbakBfrk.js} +2 -2
- package/dashboard/_app/immutable/entry/start.D7nd1gpn.js +1 -0
- package/dashboard/_app/immutable/nodes/{1.DX9VEIym.js → 1.BNcnIi6x.js} +1 -1
- package/dashboard/_app/immutable/nodes/2.8GQj2RLe.js +1 -0
- package/dashboard/_app/version.json +1 -1
- package/dashboard/build/_app/immutable/assets/0.DAq3xvZD.css +1 -0
- package/dashboard/build/_app/immutable/assets/2.DGSSg1ea.css +1 -0
- package/dashboard/{_app/immutable/chunks/CUXOtego.js → build/_app/immutable/chunks/BfdWYpt4.js} +1 -1
- package/dashboard/build/_app/immutable/chunks/CEkDhCtv.js +10 -0
- package/dashboard/build/_app/immutable/chunks/{Ck79e58B.js → YtioRx_0.js} +1 -1
- package/dashboard/build/_app/immutable/entry/{app.Cc4zc4I6.js → app.DbakBfrk.js} +2 -2
- package/dashboard/build/_app/immutable/entry/start.D7nd1gpn.js +1 -0
- package/dashboard/build/_app/immutable/nodes/{1.DX9VEIym.js → 1.BNcnIi6x.js} +1 -1
- package/dashboard/build/_app/immutable/nodes/2.8GQj2RLe.js +1 -0
- package/dashboard/build/_app/version.json +1 -1
- package/dashboard/build/index.html +6 -6
- package/dashboard/index.html +6 -6
- package/dist/daemon.js +125 -32
- package/package.json +2 -2
- package/dashboard/_app/immutable/assets/0.Bxj_MnFs.css +0 -1
- package/dashboard/_app/immutable/assets/2.DONoBfNs.css +0 -1
- package/dashboard/_app/immutable/chunks/B4ASrhyO.js +0 -9
- package/dashboard/_app/immutable/entry/start.IDMrXiSL.js +0 -1
- package/dashboard/_app/immutable/nodes/2.4cChliX4.js +0 -1
- package/dashboard/build/_app/immutable/assets/0.Bxj_MnFs.css +0 -1
- package/dashboard/build/_app/immutable/assets/2.DONoBfNs.css +0 -1
- package/dashboard/build/_app/immutable/chunks/B4ASrhyO.js +0 -9
- package/dashboard/build/_app/immutable/entry/start.IDMrXiSL.js +0 -1
- package/dashboard/build/_app/immutable/nodes/2.4cChliX4.js +0 -1
- /package/dashboard/_app/immutable/nodes/{0.Bt8j7uTS.js → 0.LMJHwnL_.js} +0 -0
- /package/dashboard/build/_app/immutable/nodes/{0.Bt8j7uTS.js → 0.LMJHwnL_.js} +0 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,193 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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 made available under
|
|
36
|
+
the License, as indicated by a copyright notice that is included in
|
|
37
|
+
or attached to the work (an example is provided in the Appendix below).
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean, as submitted to the Licensor for inclusion
|
|
48
|
+
in the Work by the copyright owner or by an individual or Legal Entity
|
|
49
|
+
authorized to submit on behalf of the copyright owner. For the purposes
|
|
50
|
+
of this definition, "submitted" means any form of electronic, verbal,
|
|
51
|
+
or written communication sent to the Licensor or its representatives,
|
|
52
|
+
including but not limited to communication on electronic mailing lists,
|
|
53
|
+
source code control systems, and issue tracking systems that are managed
|
|
54
|
+
by, or on behalf of, the Licensor for the purpose of recording and
|
|
55
|
+
discussing improvements to the Work, but excluding communication that
|
|
56
|
+
is conspicuously marked or designated in writing by the copyright owner
|
|
57
|
+
as "Not a Contribution."
|
|
58
|
+
|
|
59
|
+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
|
|
60
|
+
whom a Contribution has been received by the Licensor and included
|
|
61
|
+
within the Work.
|
|
62
|
+
|
|
63
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
64
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
65
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
66
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
67
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
68
|
+
Work and such Derivative Works in Source or Object form.
|
|
69
|
+
|
|
70
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
71
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
72
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
73
|
+
(except as stated in this section) patent license to make, have made,
|
|
74
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
75
|
+
where such license applies only to those patent claims licensable
|
|
76
|
+
by such Contributor that are necessarily infringed by their
|
|
77
|
+
Contribution(s) alone or in combination with the Work to which
|
|
78
|
+
such Contribution(s) was submitted. If You institute patent litigation
|
|
79
|
+
against any entity (including a cross-claim or counterclaim in a
|
|
80
|
+
lawsuit) alleging that the Work or any Contribution embodied within
|
|
81
|
+
the Work constitutes direct or contributory patent infringement,
|
|
82
|
+
then any patent licenses granted to You under this License for that
|
|
83
|
+
Work shall terminate as of the date such litigation is filed.
|
|
84
|
+
|
|
85
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
86
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
87
|
+
modifications, and in Source or Object form, provided that You
|
|
88
|
+
meet the following conditions:
|
|
89
|
+
|
|
90
|
+
(a) You must give any other recipients of the Work or
|
|
91
|
+
Derivative Works a copy of this License; and
|
|
92
|
+
|
|
93
|
+
(b) You must cause any modified files to carry prominent notices
|
|
94
|
+
stating that You changed the files; and
|
|
95
|
+
|
|
96
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
97
|
+
that You distribute, all copyright, patent, trademark, and
|
|
98
|
+
attribution notices from the Source form of the Work,
|
|
99
|
+
excluding those notices that do not pertain to any part of
|
|
100
|
+
the Derivative Works; and
|
|
101
|
+
|
|
102
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
103
|
+
distribution, You must include a readable copy of the
|
|
104
|
+
attribution notices contained in such NOTICE file, in at least
|
|
105
|
+
one of the following places: within a NOTICE text file
|
|
106
|
+
distributed as part of the Derivative Works; within the Source
|
|
107
|
+
form or documentation, if provided along with the Derivative
|
|
108
|
+
Works; or, within a display generated by the Derivative Works,
|
|
109
|
+
if and wherever such third-party notices normally appear. The
|
|
110
|
+
contents of the NOTICE file are for informational purposes only
|
|
111
|
+
and do not modify the License. You may add Your own attribution
|
|
112
|
+
notices within Derivative Works that You distribute, alongside
|
|
113
|
+
or in addition to the NOTICE text from the Work, provided
|
|
114
|
+
that such additional attribution notices cannot be construed
|
|
115
|
+
as modifying the License.
|
|
116
|
+
|
|
117
|
+
You may add Your own license statement for Your modifications and
|
|
118
|
+
may provide additional grant of rights to use, copy, modify, merge,
|
|
119
|
+
publish, distribute, sublicense, and/or sell the Work, Derivative
|
|
120
|
+
Works, or modifications thereof, as permitted under Section 5 of
|
|
121
|
+
this License, provided your additions do not reduce the rights
|
|
122
|
+
granted by this License.
|
|
123
|
+
|
|
124
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
125
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
126
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
127
|
+
this License, without any additional terms or conditions.
|
|
128
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
129
|
+
the terms of any separate license agreement you may have executed
|
|
130
|
+
with Licensor regarding such Contributions.
|
|
131
|
+
|
|
132
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
133
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
134
|
+
except as required for reasonable and customary use in describing the
|
|
135
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
136
|
+
|
|
137
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
138
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
139
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
140
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
141
|
+
implied, including, without limitation, any warranties or conditions
|
|
142
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
143
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
144
|
+
appropriateness of using or reproducing the Work and assume any
|
|
145
|
+
risks associated with Your exercise of permissions under this License.
|
|
146
|
+
|
|
147
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
148
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
149
|
+
unless required by applicable law (such as deliberate and grossly
|
|
150
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
151
|
+
liable to You for damages, including any direct, indirect, special,
|
|
152
|
+
incidental, or exemplary damages of any character arising as a
|
|
153
|
+
result of this License or out of the use or inability to use the
|
|
154
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
155
|
+
work stoppage, computer failure or malfunction, or all other
|
|
156
|
+
commercial damages or losses), even if such Contributor has been
|
|
157
|
+
advised of the possibility of such damages.
|
|
158
|
+
|
|
159
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
160
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
161
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
162
|
+
or other liability obligations and/or rights consistent with this
|
|
163
|
+
License. However, in accepting such obligations, You may offer such
|
|
164
|
+
obligations only on Your own behalf and on Your sole responsibility,
|
|
165
|
+
not on behalf of any other Contributor, and only if You agree to
|
|
166
|
+
indemnify, defend, and hold each Contributor harmless for any
|
|
167
|
+
liability incurred by, or claims asserted against, such Contributor
|
|
168
|
+
by reason of your accepting any such warranty or additional liability.
|
|
169
|
+
|
|
170
|
+
END OF TERMS AND CONDITIONS
|
|
171
|
+
|
|
172
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
173
|
+
|
|
174
|
+
To apply the Apache License to your work, attach the following
|
|
175
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
176
|
+
replaced with your own identifying information. (Don't include
|
|
177
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
178
|
+
comment syntax for the format file being used. An example is
|
|
179
|
+
shown below.
|
|
180
|
+
|
|
181
|
+
Copyright 2025 Signet AI
|
|
182
|
+
|
|
183
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
184
|
+
you may not use this file except in compliance with the License.
|
|
185
|
+
You may obtain a copy of the License at
|
|
186
|
+
|
|
187
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
188
|
+
|
|
189
|
+
Unless required by applicable law or agreed to in writing, software
|
|
190
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
191
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
192
|
+
See the License for the specific language governing permissions and
|
|
193
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-error:var(--error)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.relative{position:relative}.block{display:block}.contents{display:contents}.flex{display:flex}.flex-shrink{flex-shrink:1}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.border{border-style:var(--tw-border-style);border-width:1px}.text-error{color:var(--color-error)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--bg-canvas:#060709;--bg-surface:#0c0f14;--bg-elevated:#11151d;--text-primary:#ebeff7;--text-secondary:#a9b3c7;--text-tertiary:#6d7790;--text-muted:#495167;--accent-seal:#8aa8ff;--accent-seal-dim:#8aa8ff1a;--accent-seal-ring:#8aa8ff33;--accent-pop:#3d4dff;--accent-lime:#d4ff00;--success:#4ade80;--warning:#fbbf24;--error:#f87171;--border-subtle:#bbceff12;--border-standard:#bbceff24;--border-emphasis:#bbceff38;--border-accent:#8aa8ff5c;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--font-sans:"Inter",system-ui,-apple-system,sans-serif;--font-mono:"JetBrains Mono","SF Mono",ui-monospace,monospace;--border:var(--border-standard);--bg-secondary:var(--bg-elevated);--bg-tertiary:var(--bg-elevated)}@supports (color:color-mix(in lab,red,red)){:root{--bg-tertiary:color-mix(in srgb,var(--bg-elevated)75%,white 25%)}}:root{--mono:var(--font-mono);color-scheme:dark}[data-theme=light]{--bg-canvas:#f4f6fb;--bg-surface:#fff;--bg-elevated:#eaf0ff;--text-primary:#111827;--text-secondary:#4b5563;--text-tertiary:#6b7280;--text-muted:#c5ccda;--accent-seal:#3b5bfd;--accent-seal-dim:#3b5bfd14;--accent-seal-ring:#3b5bfd29;--accent-pop:#253fff;--accent-lime:#98a400;--success:#16a34a;--warning:#d97706;--error:#dc2626;--border-subtle:#253e8214;--border-standard:#253e8229;--border-emphasis:#253e823d;--border-accent:#3b5bfd42;color-scheme:light}*{box-sizing:border-box}html{background:radial-gradient(circle at 15% -10%,#3d4dff40,transparent 45%),radial-gradient(circle at 85% 120%,#d4ff0026,transparent 40%),var(--bg-canvas);color:var(--text-primary);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:13px;line-height:1.5}body{background-image:linear-gradient(#89a7ff0f 1px,#0000 1px),linear-gradient(90deg,#89a7ff0a 1px,#0000 1px);background-size:40px 40px,40px 40px;min-height:100vh;margin:0}::selection{background:var(--accent-seal-dim);color:var(--text-primary)}::-webkit-scrollbar{width:3px;height:3px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-standard);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}:focus-visible{box-shadow:0 0 0 1.5px var(--accent-seal-ring);outline:none}button,a,input{transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s}@media(prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.app.svelte-1uha8ag{display:flex;flex-direction:column;height:100vh;background:linear-gradient(180deg,rgba(61,77,255,.08),transparent 120px),var(--bg-canvas);color:var(--text-primary);overflow:hidden}.main.svelte-1uha8ag{display:flex;flex:1;min-height:0;overflow:hidden}.header.svelte-1uha8ag{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 var(--space-4);border-bottom:1px solid var(--border-emphasis);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);flex-shrink:0}.brand.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-2)}.brand-icon.svelte-1uha8ag{color:var(--accent-seal)}.brand-name.svelte-1uha8ag{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-primary)}.header-signals.svelte-1uha8ag{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:8px}.signal-chip.svelte-1uha8ag{font-family:var(--font-mono);font-size:9px;letter-spacing:.08em;border:1px solid var(--border-standard);color:var(--text-secondary);padding:2px 6px;border-radius:999px;background:#8aa8ff14}.signal-chip-pop.svelte-1uha8ag{color:var(--bg-canvas);background:var(--accent-lime);border-color:transparent}.btn-icon.svelte-1uha8ag{display:flex;align-items:center;justify-content:center;width:28px;height:28px;color:var(--text-tertiary);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer}.btn-icon.svelte-1uha8ag:hover{color:var(--text-secondary);background:var(--bg-elevated)}.sidebar.svelte-1uha8ag{display:flex;flex-direction:column;background:var(--bg-surface);overflow:hidden}.sidebar-left.svelte-1uha8ag{width:220px;border-right:1px solid var(--border-standard)}.sidebar-right.svelte-1uha8ag{width:300px;border-left:1px solid var(--border-standard)}.sidebar-right-hidden.svelte-1uha8ag{display:none}.section.svelte-1uha8ag{padding:var(--space-3) var(--space-3)}.section-grow.svelte-1uha8ag{flex:1;display:flex;flex-direction:column;min-height:0;padding-bottom:var(--space-4)}.section-header.svelte-1uha8ag{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-3)}.section-title.svelte-1uha8ag{font-size:11px;font-weight:500;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.04em}.divider.svelte-1uha8ag{height:1px;background:var(--border-subtle);margin:0 var(--space-3)}.seal-indicator.svelte-1uha8ag{width:6px;height:6px;border-radius:50%;background:var(--accent-seal);box-shadow:0 0 0 2px var(--accent-seal-ring)}.seal-status.svelte-1uha8ag{width:5px;height:5px;border-radius:50%;background:var(--text-muted);flex-shrink:0}.seal-status-active.svelte-1uha8ag{background:var(--success);box-shadow:0 0 0 1.5px #4ade8033}.field.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) 0;font-size:12px}.field-label.svelte-1uha8ag{color:var(--text-tertiary);font-family:var(--font-mono);font-size:10px;min-width:60px}.field-value.svelte-1uha8ag{color:var(--text-secondary);font-family:var(--font-mono)}.field-value-accent.svelte-1uha8ag{color:var(--accent-seal)}.file-list.svelte-1uha8ag{display:flex;flex-direction:column;gap:1px;overflow-y:auto}.file-item.svelte-1uha8ag{display:flex;align-items:center;justify-content:space-between;padding:var(--space-2) var(--space-2);font-size:12px;color:var(--text-secondary);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;text-align:left}.file-item.svelte-1uha8ag:hover{background:var(--bg-elevated);color:var(--text-primary)}.file-item-active.svelte-1uha8ag{background:var(--accent-seal-dim);color:var(--accent-seal)}.file-name.svelte-1uha8ag{font-family:var(--font-mono);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;color:var(--text-tertiary);flex-shrink:0}.center.svelte-1uha8ag{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--bg-canvas)}.tabs.svelte-1uha8ag{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 var(--space-3);border-bottom:1px solid var(--border-emphasis);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);flex-shrink:0}.tab-group.svelte-1uha8ag{display:flex;gap:var(--space-1)}.tab.svelte-1uha8ag{padding:var(--space-1) var(--space-3);font-size:12px;font-weight:450;color:var(--text-tertiary);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer}.tab.svelte-1uha8ag:hover{color:var(--text-secondary);background:var(--bg-elevated)}.tab-active.svelte-1uha8ag{color:var(--text-primary);background:linear-gradient(135deg,#8aa8ff26,#3d4dff1f);border:1px solid var(--border-accent)}.tab-info.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-3)}.filename.svelte-1uha8ag{font-family:var(--font-mono);font-size:11px;color:var(--text-tertiary)}.status-text.svelte-1uha8ag{font-size:11px;color:var(--text-tertiary)}.embedding-limit-shell.svelte-1uha8ag{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:10px;color:var(--text-tertiary)}.embedding-limit-input.svelte-1uha8ag{width:72px;font-family:var(--font-mono);font-size:11px;color:var(--text-primary);background:var(--bg-elevated);border:1px solid var(--border-standard);border-radius:var(--radius-sm);padding:4px 6px;outline:none}.btn-primary.svelte-1uha8ag{padding:var(--space-1) var(--space-3);font-size:11px;font-weight:500;color:var(--bg-canvas);background:var(--text-primary);border:none;border-radius:var(--radius-sm);cursor:pointer}.btn-primary.svelte-1uha8ag:hover{background:var(--text-secondary)}.btn-primary.svelte-1uha8ag:disabled{opacity:.4;cursor:default}.btn-text.svelte-1uha8ag{font-size:11px;color:var(--accent-seal);background:transparent;border:none;cursor:pointer;padding:0}.btn-text.svelte-1uha8ag:hover{text-decoration:underline}.content.svelte-1uha8ag{flex:1;display:flex;flex-direction:column;min-height:0;position:relative}.editor.svelte-1uha8ag{flex:1;width:100%;padding:var(--space-5);font-family:var(--font-mono);font-size:13px;line-height:1.7;color:var(--text-primary);background:transparent;border:none;resize:none;outline:none;tab-size:2}.editor.svelte-1uha8ag::placeholder{color:var(--text-tertiary);font-style:italic}.memory-library.svelte-1uha8ag{flex:1;min-height:0;display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4);background:linear-gradient(180deg,rgba(138,168,255,.08),transparent 25%),radial-gradient(circle at 85% 0,rgba(212,255,0,.08),transparent 40%)}.memory-library-toolbar.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-3)}.memory-search-shell.svelte-1uha8ag{flex:1;display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);border:1px solid var(--border-accent);background:color-mix(in srgb,var(--bg-elevated) 72%,transparent)}.memory-search-glyph.svelte-1uha8ag{color:var(--accent-seal);font-family:var(--font-mono);font-size:11px}.memory-library-search.svelte-1uha8ag{flex:1;font-size:13px;font-family:var(--font-mono);color:var(--text-primary);background:transparent;border:none;outline:none}.memory-library-search.svelte-1uha8ag::placeholder{color:var(--text-tertiary)}.memory-toolbar-clear.svelte-1uha8ag{white-space:nowrap}.memory-library-filters.svelte-1uha8ag{display:grid;grid-template-columns:minmax(140px,200px) minmax(180px,1fr) 90px 140px auto;gap:var(--space-2);align-items:center}.memory-filter-select.svelte-1uha8ag,.memory-filter-input.svelte-1uha8ag,.memory-filter-number.svelte-1uha8ag,.memory-filter-date.svelte-1uha8ag{width:100%;font-size:12px;font-family:var(--font-mono);color:var(--text-primary);background:var(--bg-elevated);border:1px solid var(--border-standard);border-radius:var(--radius-sm);padding:6px 8px;outline:none}.memory-filter-pill.svelte-1uha8ag{font-size:11px;font-family:var(--font-mono);color:var(--text-secondary);background:transparent;border:1px solid var(--border-standard);border-radius:999px;padding:6px 10px;cursor:pointer;white-space:nowrap}.memory-filter-pill-active.svelte-1uha8ag{color:var(--accent-seal);border-color:var(--accent-seal);background:var(--accent-seal-dim)}.memory-library-types.svelte-1uha8ag{display:flex;flex-wrap:wrap;gap:var(--space-2)}.memory-type-chip.svelte-1uha8ag{font-size:11px;font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary);background:#8aa8ff0f;border:1px solid var(--border-standard);border-radius:999px;padding:4px 10px;cursor:pointer}.memory-type-chip-active.svelte-1uha8ag{color:var(--accent-seal);border-color:var(--accent-seal);background:var(--accent-seal-dim)}.memory-similar-banner.svelte-1uha8ag{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);border:1px dashed var(--border-accent);font-family:var(--font-mono);font-size:11px;color:var(--text-secondary);background:#8aa8ff0a}.memory-doc-grid.svelte-1uha8ag{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:var(--space-3);padding-right:var(--space-1)}.memory-doc.svelte-1uha8ag{display:flex;flex-direction:column;min-height:220px;gap:var(--space-3);padding:var(--space-4);border-radius:var(--radius-lg);border:1px solid var(--border-standard);background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 45%),var(--bg-surface);box-shadow:0 1px #ffffff0a inset,0 12px 32px #02040940}.memory-doc-head.svelte-1uha8ag{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-2)}.memory-doc-stamp.svelte-1uha8ag{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.memory-doc-date.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;color:var(--text-tertiary);white-space:nowrap}.memory-doc-content.svelte-1uha8ag{margin:0;color:var(--text-primary);line-height:1.62;font-size:13px;white-space:pre-wrap;word-break:break-word}.memory-doc-tags.svelte-1uha8ag{display:flex;flex-wrap:wrap;gap:6px}.memory-doc-tag.svelte-1uha8ag,.memory-doc-type.svelte-1uha8ag,.memory-doc-pin.svelte-1uha8ag,.memory-doc-importance.svelte-1uha8ag,.memory-doc-match.svelte-1uha8ag,.memory-doc-source.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;border-radius:999px;padding:2px 7px;border:1px solid var(--border-standard);color:var(--text-secondary);background:#ffffff0a}.memory-doc-source.svelte-1uha8ag{color:var(--accent-seal);border-color:var(--border-accent);background:#8aa8ff1f}.memory-doc-pin.svelte-1uha8ag{color:var(--accent-lime);border-color:color-mix(in srgb,var(--accent-lime) 45%,transparent);background:color-mix(in srgb,var(--accent-lime) 12%,transparent)}.memory-doc-match.svelte-1uha8ag{color:var(--accent-seal)}.memory-doc-foot.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-2);margin-top:auto}.btn-similar-visible.svelte-1uha8ag{opacity:1;margin-left:auto;border:1px solid var(--border-standard);border-radius:999px;padding:3px 8px;font-size:10px;letter-spacing:.04em;text-transform:uppercase}.memory-library-empty.svelte-1uha8ag{border:1px dashed var(--border-standard);border-radius:var(--radius-md);background:#8aa8ff0a}.embeddings-layout.svelte-1uha8ag{flex:1;min-height:0;display:flex;background:#050505}.canvas-container.svelte-1uha8ag{flex:1;position:relative;overflow:hidden;background:#050505}.graph-toolbar.svelte-1uha8ag{position:absolute;top:8px;left:12px;right:12px;z-index:8;display:flex;align-items:center;gap:var(--space-2);pointer-events:none}.graph-toolbar-input.svelte-1uha8ag{flex:1;max-width:420px;pointer-events:auto;font-family:var(--font-mono);font-size:11px;color:var(--text-primary);background:#050505b3;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-sm);padding:6px 9px;outline:none;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.graph-toolbar-meta.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;color:#dcdcdcbf;background:#0505058c;border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:4px 8px}.graph-ascii.svelte-1uha8ag{position:absolute;left:14px;top:44px;z-index:6;font-family:var(--font-mono);font-size:10px;color:#d4ff00c7;letter-spacing:.08em;text-transform:uppercase;pointer-events:none}.graph-corners.svelte-1uha8ag{position:absolute;inset:0;pointer-events:none;z-index:5}.corner.svelte-1uha8ag{position:absolute;width:14px;height:14px;border-color:#ffffff38;border-style:solid}.corner-tl.svelte-1uha8ag{top:10px;left:10px;border-width:1px 0 0 1px}.corner-tr.svelte-1uha8ag{top:10px;right:10px;border-width:1px 1px 0 0}.corner-bl.svelte-1uha8ag{bottom:10px;left:10px;border-width:0 0 1px 1px}.corner-br.svelte-1uha8ag{bottom:10px;right:10px;border-width:0 1px 1px 0}.canvas.svelte-1uha8ag{width:100%;height:100%;cursor:grab}.graph3d-container.svelte-1uha8ag{position:absolute;inset:0}.embedding-inspector.svelte-1uha8ag{width:340px;min-width:300px;border-left:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 140px),#060607;display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-3);overflow-y:auto}.embedding-inspector-header.svelte-1uha8ag{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2)}.embedding-inspector-title.svelte-1uha8ag{font-family:var(--font-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary)}.embedding-inspector-meta.svelte-1uha8ag{display:flex;flex-wrap:wrap;gap:6px}.embedding-inspector-meta.svelte-1uha8ag span:where(.svelte-1uha8ag),.embedding-inspector-tags.svelte-1uha8ag span:where(.svelte-1uha8ag){font-family:var(--font-mono);font-size:10px;color:var(--text-secondary);border:1px solid var(--border-standard);border-radius:999px;padding:2px 7px;background:#ffffff0a}.embedding-inspector-source.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;color:var(--accent-seal);border:1px solid var(--border-accent);border-radius:var(--radius-sm);padding:5px 7px;background:#8aa8ff14;word-break:break-all}.embedding-inspector-content.svelte-1uha8ag{margin:0;font-size:13px;line-height:1.55;color:var(--text-primary);white-space:pre-wrap;word-break:break-word}.embedding-inspector-tags.svelte-1uha8ag{display:flex;flex-wrap:wrap;gap:6px}.embedding-inspector-actions.svelte-1uha8ag{display:flex;gap:var(--space-2)}.embedding-inspector-subtitle.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;color:var(--text-tertiary);letter-spacing:.04em;text-transform:uppercase}.embedding-inspector-empty.svelte-1uha8ag{border:1px dashed var(--border-standard);border-radius:var(--radius-sm);padding:var(--space-3);font-size:12px;color:var(--text-tertiary);line-height:1.5}.embedding-mode-toggle.svelte-1uha8ag{align-self:flex-start}.embedding-relation-list.svelte-1uha8ag{display:flex;flex-direction:column;gap:var(--space-2)}.embedding-relation-item.svelte-1uha8ag{display:grid;grid-template-columns:auto 1fr;gap:var(--space-2);align-items:start;width:100%;text-align:left;border:1px solid var(--border-standard);border-radius:var(--radius-sm);background:#ffffff08;color:var(--text-secondary);padding:7px 8px;cursor:pointer}.embedding-relation-item.svelte-1uha8ag:hover{border-color:var(--border-accent);background:#8aa8ff14}.embedding-relation-score.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;color:var(--accent-seal);white-space:nowrap}.embedding-relation-text.svelte-1uha8ag{font-size:12px;line-height:1.45;color:var(--text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mode-toggle.svelte-1uha8ag{display:flex;border:1px solid var(--border-standard);border-radius:var(--radius-sm);overflow:hidden}.mode-btn.svelte-1uha8ag{padding:2px 8px;font-size:10px;font-weight:500;font-family:var(--font-mono);color:var(--text-tertiary);background:transparent;border:none;cursor:pointer;letter-spacing:.04em}.mode-btn.svelte-1uha8ag:hover{color:var(--text-secondary);background:var(--bg-elevated)}.mode-btn-active.svelte-1uha8ag{color:var(--accent-seal);background:var(--accent-seal-dim)}.overlay.svelte-1uha8ag{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--bg-canvas);z-index:10}.overlay.svelte-1uha8ag p:where(.svelte-1uha8ag){font-size:13px;color:var(--text-secondary)}.statusbar.svelte-1uha8ag{display:flex;background:#080b12b3;align-items:center;justify-content:space-between;height:26px;padding:0 var(--space-3);border-top:1px solid var(--border-subtle);font-size:10px;font-family:var(--font-mono);color:var(--text-tertiary);flex-shrink:0}.statusbar-right.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-2)}.statusbar.svelte-1uha8ag kbd:where(.svelte-1uha8ag){padding:1px 4px;font-size:9px;color:var(--text-tertiary);background:var(--bg-elevated);border-radius:2px}.badge.svelte-1uha8ag{font-family:var(--font-mono);font-size:10px;color:var(--accent-seal);padding:1px 5px;background:var(--accent-seal-dim);border-radius:10px}.search-row.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-1)}.search-input.svelte-1uha8ag{flex:1;padding:var(--space-2) var(--space-3);font-size:12px;font-family:var(--font-mono);color:var(--text-primary);background:linear-gradient(135deg,#8aa8ff26,#3d4dff1f);border:1px solid var(--border-accent);border-radius:var(--radius-md);outline:none}.search-input.svelte-1uha8ag:focus{border-color:var(--border-accent)}.search-input.svelte-1uha8ag::placeholder{color:var(--text-tertiary)}.search-results.svelte-1uha8ag{font-size:11px;color:var(--text-tertiary);margin-top:var(--space-2)}.memory-scroll.svelte-1uha8ag{flex:1;overflow-y:auto;padding:0 var(--space-3) var(--space-4)}.memory-item.svelte-1uha8ag{padding:var(--space-3) 0;border-bottom:1px solid var(--border-subtle)}.memory-item.svelte-1uha8ag:last-child{border-bottom:none}.memory-content.svelte-1uha8ag{font-size:12px;line-height:1.6;color:var(--text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 var(--space-2) 0}.memory-footer.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-2);font-size:10px}.memory-source.svelte-1uha8ag{font-family:var(--font-mono);color:var(--accent-seal)}.memory-critical.svelte-1uha8ag{color:var(--warning);font-weight:500;text-transform:uppercase;letter-spacing:.02em}.memory-time.svelte-1uha8ag{color:var(--text-tertiary);font-family:var(--font-mono)}.memory-type.svelte-1uha8ag{font-family:var(--font-mono);font-size:9px;color:var(--text-tertiary);border:1px solid var(--border-subtle);border-radius:3px;padding:0 3px}.memory-pinned.svelte-1uha8ag{font-size:9px}.empty.svelte-1uha8ag{padding:var(--space-8) var(--space-4);text-align:center;font-size:13px;color:var(--text-tertiary)}.filter-panel.svelte-1uha8ag{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-2) 0;border-top:1px solid var(--border-subtle)}.filter-row.svelte-1uha8ag{display:flex;gap:var(--space-1);align-items:center;flex-wrap:wrap}.pill.svelte-1uha8ag{font-size:10px;padding:2px 6px;border-radius:9999px;border:1px solid var(--border-standard);background:none;color:var(--text-secondary);cursor:pointer;white-space:nowrap}.pill.svelte-1uha8ag:hover{border-color:var(--accent-seal);color:var(--accent-seal)}.pill-active.svelte-1uha8ag{border-color:var(--accent-seal);color:var(--accent-seal);background:var(--accent-seal-dim)}.filter-select.svelte-1uha8ag,.filter-input.svelte-1uha8ag{font-size:11px;font-family:var(--font-mono);background:var(--bg-elevated);border:1px solid var(--border-standard);color:var(--text-primary);border-radius:4px;padding:3px 6px;width:100%;outline:none}.filter-num.svelte-1uha8ag{font-size:11px;font-family:var(--font-mono);background:var(--bg-elevated);border:1px solid var(--border-standard);color:var(--text-primary);border-radius:4px;padding:3px 4px;width:48px;outline:none}.filter-date.svelte-1uha8ag{font-size:11px;font-family:var(--font-mono);background:var(--bg-elevated);border:1px solid var(--border-standard);color:var(--text-primary);border-radius:4px;padding:3px 4px;flex:1;outline:none}.filter-label.svelte-1uha8ag{font-size:10px;color:var(--text-tertiary);white-space:nowrap;font-family:var(--font-mono)}.filter-active.svelte-1uha8ag{color:var(--accent-seal)!important}.btn-similar.svelte-1uha8ag{opacity:0;font-size:13px;color:var(--text-tertiary);background:none;border:none;cursor:pointer;margin-left:auto;padding:0 2px;line-height:1;transition:opacity .1s,color .1s}.memory-item.svelte-1uha8ag:hover .btn-similar:where(.svelte-1uha8ag){opacity:1}.btn-similar.svelte-1uha8ag:hover{color:var(--accent-seal)}.similar-header.svelte-1uha8ag{font-size:11px;color:var(--text-secondary);padding:var(--space-2) 0 0;display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-2);font-family:var(--font-mono);line-height:1.4}.text-error.svelte-1uha8ag{color:var(--error)}.logs-container.svelte-1uha8ag{flex:1;display:flex;flex-direction:column;min-height:0}.logs-filters.svelte-1uha8ag{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border-subtle);flex-shrink:0}.logs-filters.svelte-1uha8ag .filter-select:where(.svelte-1uha8ag){font-size:11px;padding:4px 8px;min-width:100px}.checkbox-label.svelte-1uha8ag{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-secondary);cursor:pointer}.checkbox-label.svelte-1uha8ag input:where(.svelte-1uha8ag){margin:0}.streaming-indicator.svelte-1uha8ag{color:var(--success);font-size:11px;font-weight:500;animation:svelte-1uha8ag-pulse 2s infinite}@keyframes svelte-1uha8ag-pulse{0%,to{opacity:1}50%{opacity:.5}}.streaming-badge.svelte-1uha8ag{background:var(--success);color:var(--bg-canvas);font-size:9px;font-weight:600;padding:2px 6px;border-radius:3px;animation:svelte-1uha8ag-pulse 2s infinite}.logs-scroll.svelte-1uha8ag{flex:1;overflow-y:auto;padding:var(--space-2);font-family:var(--font-mono);font-size:11px;line-height:1.6}.logs-empty.svelte-1uha8ag{padding:var(--space-8);text-align:center;color:var(--text-tertiary);font-family:var(--font-sans);font-size:13px}.log-entry.svelte-1uha8ag{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1);padding:2px 0;border-bottom:1px solid var(--border-subtle)}.log-entry.svelte-1uha8ag:last-child{border-bottom:none}.log-time.svelte-1uha8ag{color:var(--text-tertiary);flex-shrink:0}.log-level.svelte-1uha8ag{font-weight:600;flex-shrink:0;min-width:40px}.log-debug.svelte-1uha8ag .log-level:where(.svelte-1uha8ag){color:var(--text-tertiary)}.log-info.svelte-1uha8ag .log-level:where(.svelte-1uha8ag){color:var(--accent-seal)}.log-warn.svelte-1uha8ag .log-level:where(.svelte-1uha8ag){color:var(--warning)}.log-error.svelte-1uha8ag .log-level:where(.svelte-1uha8ag){color:var(--error)}.log-category.svelte-1uha8ag{color:var(--text-secondary);flex-shrink:0}.log-message.svelte-1uha8ag{color:var(--text-primary)}.log-duration.svelte-1uha8ag{color:var(--text-tertiary)}.log-data.svelte-1uha8ag{color:var(--text-tertiary);font-size:10px;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.log-error.svelte-1uha8ag{width:100%;color:var(--error);padding-left:60px;font-size:10px}.btn-icon.streaming.svelte-1uha8ag{color:var(--success)}.secrets-container.svelte-1uha8ag{height:100%;display:flex;flex-direction:column;padding:16px;gap:16px;overflow:hidden}.secrets-add.svelte-1uha8ag{display:flex;gap:8px;flex-shrink:0}.secrets-input.svelte-1uha8ag{flex:1;padding:8px 12px;border:1px solid var(--border-standard);border-radius:6px;background:var(--bg-elevated);color:var(--text-primary);font-size:13px}.secrets-input.svelte-1uha8ag:focus{outline:none;border-color:var(--accent-seal)}.secrets-list.svelte-1uha8ag{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.secrets-empty.svelte-1uha8ag{padding:32px;text-align:center;color:var(--text-tertiary)}.secret-item.svelte-1uha8ag{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--bg-elevated);border-radius:8px;border:1px solid var(--border-standard)}.secret-name.svelte-1uha8ag{flex:1;font-family:var(--font-mono);font-size:13px;color:var(--text-primary)}.secret-value.svelte-1uha8ag{color:var(--text-tertiary);font-family:var(--font-mono);font-size:12px}.btn-danger-small.svelte-1uha8ag{padding:4px 10px;font-size:11px;background:transparent;border:1px solid var(--error);color:var(--error);border-radius:4px;cursor:pointer}.btn-danger-small.svelte-1uha8ag:hover:not(:disabled){background:var(--error);color:#fff}.btn-danger-small.svelte-1uha8ag:disabled{opacity:.5;cursor:not-allowed}.skills-container.svelte-1uha8ag{height:100%;display:flex;flex-direction:column;padding:16px;gap:16px;overflow:hidden}.skills-search.svelte-1uha8ag{display:flex;gap:8px;flex-shrink:0}.skills-search-input.svelte-1uha8ag{flex:1;padding:8px 12px;border:1px solid var(--border-standard);border-radius:6px;background:var(--bg-elevated);color:var(--text-primary);font-size:13px}.skills-search-input.svelte-1uha8ag:focus{outline:none;border-color:var(--accent-seal)}.skills-section.svelte-1uha8ag{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}.skills-section-title.svelte-1uha8ag{font-size:12px;font-weight:500;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;flex-shrink:0}.skills-list.svelte-1uha8ag{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.skills-empty.svelte-1uha8ag{padding:32px;text-align:center;color:var(--text-tertiary)}.skill-item.svelte-1uha8ag{padding:12px 16px;background:var(--bg-elevated);border-radius:8px;border:1px solid var(--border-standard);display:flex;flex-direction:column;gap:6px}.skill-item.skill-selected.svelte-1uha8ag{border-color:var(--accent-seal)}.skill-info.svelte-1uha8ag{display:flex;align-items:center;gap:8px}.skill-name.svelte-1uha8ag{font-family:var(--font-mono);font-size:13px;font-weight:500;color:var(--text-primary)}.skill-badge.svelte-1uha8ag{font-size:10px;padding:2px 6px;border-radius:4px;text-transform:uppercase}.skill-badge.installed.svelte-1uha8ag{background:var(--success);color:#fff}.skill-badge.builtin.svelte-1uha8ag{background:var(--accent-seal);color:#fff}.skill-badge.invocable.svelte-1uha8ag{background:color-mix(in srgb,var(--bg-elevated) 80%,white 20%);color:var(--text-secondary);font-family:var(--font-mono);text-transform:none}.skill-description.svelte-1uha8ag{font-size:12px;color:var(--text-secondary);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.skill-actions.svelte-1uha8ag{display:flex;gap:8px;margin-top:4px}.btn-primary-small.svelte-1uha8ag{padding:4px 10px;font-size:11px;background:var(--accent-seal);border:none;color:#fff;border-radius:4px;cursor:pointer}.btn-primary-small.svelte-1uha8ag:hover:not(:disabled){opacity:.9}.btn-primary-small.svelte-1uha8ag:disabled{opacity:.5;cursor:not-allowed}@media(max-width:1024px){.sidebar-right.svelte-1uha8ag{display:none}.embeddings-layout.svelte-1uha8ag{flex-direction:column}.embedding-inspector.svelte-1uha8ag{width:100%;min-width:0;max-height:42%;border-left:none;border-top:1px solid rgba(255,255,255,.08)}.memory-library.svelte-1uha8ag{padding:var(--space-3)}.memory-library-filters.svelte-1uha8ag{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:768px){.sidebar-left.svelte-1uha8ag{display:none}.tabs.svelte-1uha8ag{overflow-x:auto;justify-content:flex-start;gap:var(--space-2)}.tab-info.svelte-1uha8ag{margin-left:auto;flex-shrink:0;gap:var(--space-2)}.embedding-limit-shell.svelte-1uha8ag{display:none}.memory-library-toolbar.svelte-1uha8ag{flex-direction:column;align-items:stretch}.memory-library-filters.svelte-1uha8ag,.memory-doc-grid.svelte-1uha8ag{grid-template-columns:1fr}}
|
package/dashboard/{build/_app/immutable/chunks/CUXOtego.js → _app/immutable/chunks/BfdWYpt4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as he,b9 as mt,aK as A,L as U,ay as T,aJ as te,ba as _t}from"./C6xDG81H.js";import{o as qe}from"./DehrdN04.js";const V=[];function Se(e,t=he){let n=null;const r=new Set;function a(o){if(mt(e,o)&&(e=o,n)){const c=!V.length;for(const l of r)l[1](),V.push(l,e);if(c){for(let l=0;l<V.length;l+=2)V[l][0](V[l+1]);V.length=0}}}function i(o){a(o(e))}function s(o,c=he){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,i)||he),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function vt(e){return e.split("%25").map(decodeURI).join("%25")}function yt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function pe({href:e}){return e.split("#")[0]}function bt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(l,...d)=>(n(l),s[o](l,...d));t();const c=Reflect.get(s,o);return typeof c=="function"?c.bind(s):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Et=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&M.delete(Le(e)),Et(e,t));const M=new Map;function Rt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&M.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function xt(e,t,n){if(M.size>0){const r=Le(e,n),a=M.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);M.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function At(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Tt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ge(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ge(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=Lt.exec(c),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?l===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ge(c)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Ut)}function Pt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-s];if(c.chained&&c.rest&&s&&(l=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&c.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return r}function ge(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:p,params:f}=At(o),u={id:o,exec:h=>{const w=p.exec(h);if(w)return Pt(w,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(s),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function He(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1crtu2f?.base??"",Ot=globalThis.__sveltekit_1crtu2f?.assets??x??"",$t="1771497148858",Je="sveltekit:snapshot",We="sveltekit:scroll",Ye="sveltekit:states",Ct="sveltekit:pageurl",B="sveltekit:history",H="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Ae=location.origin;function Xe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function K(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...N,"":N.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ze(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function we(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===Ae&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ne(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=K(o,"preload-code")),a===null&&(a=K(o,"preload-data")),t===null&&(t=K(o,"keepfocus")),n===null&&(n=K(o,"noscroll")),i===null&&(i=K(o,"reload")),s===null&&(s=K(o,"replacestate")),o=Qe(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(s)}}function Ke(e){const t=Se(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&s(o=c)})}return{notify:r,set:a,subscribe:i}}const et={v:()=>{}};function Nt(){const{set:e,subscribe:t}=Se(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==$t;return s&&(e(!0),et.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==Ae||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function fn(e){}const tt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...tt];const jt=new Set([...tt]);[...jt];function qt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof xe?e.status:500}function Dt(e){return e instanceof xe?e.text:"Internal Error"}let k,J,me;const Vt=qe.toString().includes("$$")||/function \w+\(\) \{\}/.test(qe.toString());Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},me={current:!1}):(k=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},J=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},me=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},et.v=()=>me.current=!0);function Kt(e){Object.assign(k,e)}const Be={spanContext(){return Bt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Bt={traceId:"",spanId:"",traceFlags:0},Ft=new Set(["icon","shortcut icon","apple-touch-icon"]),C=He(We)??{},W=He(Je)??{},$={url:Ke({}),page:Ke({}),navigating:Se(null),updated:Nt()};function Te(e){C[e]=q()}function Gt(e,t){let n=e+1;for(;C[n];)delete C[n],n+=1;for(n=t+1;W[n];)delete W[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function nt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Fe(){}let Pe,ve,re,P,ye,v;const ae=[],oe=[];let L=null;function be(){L?.fork?.then(e=>e?.discard()),L=null}const ee=new Map,rt=new Set,Mt=new Set,z=new Set;let _={branch:[],error:null,url:null},at=!1,se=!1,Ge=!0,X=!1,G=!1,ot=!1,Ie=!1,st,y,R,j;const ie=new Set,Me=new Map;async function gn(e,t,n){globalThis.__sveltekit_1crtu2f?.data&&globalThis.__sveltekit_1crtu2f.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Pe=It(e),P=document.documentElement,ye=t,ve=e.nodes[0],re=e.nodes[1],ve(),re(),y=history.state?.[B],R=history.state?.[H],y||(y=R=Date.now(),history.replaceState({...history.state,[B]:y,[H]:R},""));const r=C[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await an(ye,n)):(await F({type:"enter",url:Xe(v.hash?cn(new URL(location.href)):location.href),replace_state:!0}),a()),rn()}function zt(){ae.length=0,Ie=!1}function it(e){oe.some(t=>t?.snapshot)&&(W[e]=oe.map(t=>t?.snapshot?.capture()))}function ct(e){W[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function ze(){Te(y),De(We,C),it(R),De(Je,W)}async function Ht(e,t,n,r){let a;t.invalidateAll&&be(),await F({type:"goto",url:Xe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ie=!0,a=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&te().then(te).then(()=>{Me.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Jt(e){if(e.id!==L?.id){be();const t={};ie.add(t),L={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(ie.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null}}return L.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function lt(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),st=new v.root({target:t,props:{...e.props,stores:$,components:oe},hydrate:n,sync:!1}),await Promise.resolve(),ct(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:C[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};z.forEach(i=>i(a))}se=!0}function ce({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=wt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:qt(n).map(u=>u.node.component),page:je(k)}};s!==void 0&&(c.props.form=s);let l={},d=!k,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],w=_.branch[u];h?.data!==w?.data&&(d=!0),h&&(l={...l,...h.data},d&&(c.props[`data_${p}`]=l),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?l:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);c.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Be,current:Be},route:new Proxy(a,{get:(f,u)=>(o&&(c.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&c.params.add(u),f[u])}),data:i?.data??null,url:bt(n,()=>{o&&(c.url=!0)},f=>{o&&c.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:w}=ut(f,u,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await l.universal.load.call(null,p)??null}return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:s,uses:c}:null,data:s??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=se?xt(r,a.href,t):Rt(r,t);return{resolved:a,promise:i}}function Wt(e,t,n,r,a,i){if(Ie)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(ae.some(o=>o(new URL(s))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Xt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:je(k),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ie.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:c}=a,l=[...o,c];s.forEach(m=>m?.().catch(()=>{})),l.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==le(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Yt(_.url,n);let u=!1;const h=l.map(async(m,g)=>{if(!m)return;const S=_.branch[g];return m[1]===S?.loader&&!Wt(u,p,d,f,S.universal?.uses,r)?S:(u=!0,Oe({loader:m[1],url:n,params:r,route:a,parent:async()=>{const I={};for(let O=0;O<g;O+=1)Object.assign(I,(await h[O])?.data);return I},server_data_node:$e(m[0]?{type:"skip"}:null,m[0]?S?.server:void 0)}))});for(const m of h)m.catch(()=>{});const w=[];for(let m=0;m<l.length;m+=1)if(l[m])try{w.push(await h[m])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(ie.has(i))return Xt({error:await Q(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let S=Ue(g),E;if(g instanceof Ee)E=g.body;else{if(await $.updated.check())return await nt(),await Y(n);E=await Q(g,{params:r,url:n,route:{id:a.id}})}const I=await Qt(m,w,s);return I?ce({url:n,params:r,branch:w.slice(0,I.idx).concat(I.node),status:S,error:E,route:a}):await ht(n,{id:a.id},E,S)}else w.push(void 0);return ce({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function Qt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ce({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Oe({loader:ve,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(i)}),o={node:await re(),loader:re,universal:null,server:null,data:null};return ce({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Re)return Ht(new URL(s.location,location.href),{},0);throw s}}async function Zt(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ut(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,v.hash)){const n=await Zt(e);if(!n)return;const r=en(n);for(const a of Pe){const i=a.exec(r);if(i)return{id:le(e),invalidating:t,route:a,params:yt(i),url:e}}}}function en(e){return vt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function le(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ne(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const c={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return X||rt.forEach(l=>l(c)),s?null:o}async function F({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:c={},accept:l=Fe,block:d=Fe,event:p}){const f=j;j=c;const u=await fe(t,!1),h=e==="enter"?Ne(_,u,t,e):dt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),j===c&&(j=f);return}const w=y,m=R;l(),X=!0,se&&h.navigation.type!=="enter"&&$.navigating.set(J.current=h.navigation);let g=u&&await ft(u);if(!g){if(ue(t,x,v.hash))return await Y(t,i);g=await ht(t,{id:null},await Q(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,j!==c)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await F({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:c}),h.fulfil(void 0);return}g=await Ce({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await $.updated.check()&&(await nt(),await Y(t,i));if(zt(),Te(w),it(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const b=i?0:1,Z={[B]:y+=b,[H]:R+=b,[Ye]:s};(i?history.replaceState:history.pushState).call(history,Z,"",t),i||Gt(y,R)}const S=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let E;if(se){const b=(await Promise.all(Array.from(Mt,D=>D(h.navigation)))).filter(D=>typeof D=="function");if(b.length>0){let D=function(){b.forEach(de=>{z.delete(de)})};b.push(D),b.forEach(de=>{z.add(de)})}_=g.state,g.props.page&&(g.props.page.url=t);const Z=S&&await S;Z?E=Z.commit():(st.$set(g.props),Kt(g.props.page),E=_t?.()),ot=!0}else await lt(g,ye,!1);const{activeElement:I}=document;await E,await te(),await te();let O=null;if(Ge){const b=n?n.scroll:a?q():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(pt(t)))?O.scrollIntoView():scrollTo(0,0)}const gt=document.activeElement!==I&&document.activeElement!==document.body;!r&&!gt&&sn(t,!O),Ge=!0,g.props.page&&Object.assign(k,g.props.page),X=!1,e==="popstate"&&ct(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),z.forEach(b=>b(h.navigation)),$.navigating.set(J.current=null)}async function ht(e,t,n,r,a){return e.origin===Ae&&e.pathname===location.pathname&&!at?await Ce({status:r,error:n,url:e,route:t}):await Y(e,a)}function tn(){let e,t={element:void 0,href:void 0},n;P.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{i(c,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}P.addEventListener("mousedown",r),P.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(_e(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function i(o,c){const l=Ze(o,P),d=l===t.element&&l?.href===t.href&&c>=n;if(!l||d)return;const{url:p,external:f,download:u}=we(l,x,v.hash);if(f||u)return;const h=ne(l),w=p&&le(_.url)===le(p);if(!(h.reload||w))if(c<=h.preload_data){t={element:l,href:l.href},n=N.tap;const m=await fe(p,!1);if(!m)return;Jt(m)}else c<=h.preload_code&&(t={element:l,href:l.href},n=c,_e(p))}function s(){a.disconnect();for(const o of P.querySelectorAll("a")){const{url:c,external:l,download:d}=we(o,x,v.hash);if(l||d)continue;const p=ne(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&_e(c))}}z.add(s),s()}function Q(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),r=Dt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function rn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ze(),!X){const r=Ne(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};rt.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),navigator.connection?.saveData||tn(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ze(t.composedPath()[0],P);if(!n)return;const{url:r,external:a,target:i,download:s}=we(n,x,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=l===pe(location);if(a||o.reload&&(!p||!d)){dt({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(G=!0,Te(y),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await F({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(s,x,!1))return;const o=t.target,c=ne(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o,r);s.search=new URLSearchParams(l).toString(),F({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[B]){const n=t.state[B];if(j={},n===y)return;const r=C[n],a=t.state[Ye]??{},i=new URL(t.state[Ct]??location.href),s=t.state[H],o=_.url?pe(location)===pe(_.url):!1;if(s===R&&(ot||o)){a!==k.state&&(k.state=a),e(i),C[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const l=n-y;await F({type:"popstate",url:i,popped:{state:a,scroll:r,delta:l},accept:()=>{y=n,R=s},block:()=>{history.go(-l)},nav_token:j,event:t})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[B]:++y,[H]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(J.current=null)});function e(t){_.url=k.url=t,$.page.set(je(k)),$.page.notify()}}async function an(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:c}){at=!0;const l=new URL(location.href);let d;({params:a={},route:i={id:null}}=await fe(l,!1)||{}),d=Pe.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(w,m)=>{const g=o[m];return g?.uses&&(g.uses=on(g.uses)),Oe({loader:v.nodes[w],url:l,params:a,route:i,parent:async()=>{const S={};for(let E=0;E<m;E+=1)Object.assign(S,(await u[E]).data);return S},server_data_node:$e(g)})}),h=await Promise.all(u);if(d){const w=d.layouts;for(let m=0;m<w.length;m++)w[m]||h.splice(m,0,void 0)}p=ce({url:l,params:a,branch:h,status:t,error:n,form:c,route:d??null})}catch(u){if(u instanceof Re){await Y(new URL(u.location,location.href));return}p=await Ce({status:Ue(u),error:await Q(u,{url:l,params:a,route:i}),url:l,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await lt(p,e,f)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ke=!1;function sn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=pt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;ke=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),ke=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],c=a.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function Ne(e,t,n,r,a=null){let i,s;const o=new Promise((l,d)=>{i=l,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function je(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function cn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function pt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{gn as a,fn as l,k as p,$ as s};
|
|
1
|
+
import{b8 as he,b9 as mt,aK as A,L as U,ay as T,aJ as te,ba as _t}from"./C6xDG81H.js";import{o as qe}from"./DehrdN04.js";const V=[];function Se(e,t=he){let n=null;const r=new Set;function a(o){if(mt(e,o)&&(e=o,n)){const l=!V.length;for(const c of r)c[1](),V.push(c,e);if(l){for(let c=0;c<V.length;c+=2)V[c][0](V[c+1]);V.length=0}}}function i(o){a(o(e))}function s(o,l=he){const c=[o,l];return r.add(c),r.size===1&&(n=t(a,i)||he),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function wt(e){return e.split("%25").map(decodeURI).join("%25")}function yt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function pe({href:e}){return e.split("#")[0]}function bt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Et=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&M.delete(Le(e)),Et(e,t));const M=new Map;function Rt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&M.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function xt(e,t,n){if(M.size>0){const r=Le(e,n),a=M.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);M.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function At(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Tt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ge(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ge(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=Lt.exec(l),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?c===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ge(l)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Ut)}function Pt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function ge(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:f}=At(o),u={id:o,exec:h=>{const v=p.exec(h);if(v)return Pt(v,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function He(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1nqplvg?.base??"",Ot=globalThis.__sveltekit_1nqplvg?.assets??x??"",$t="1771500936660",Je="sveltekit:snapshot",We="sveltekit:scroll",Ye="sveltekit:states",Ct="sveltekit:pageurl",B="sveltekit:history",H="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Ae=location.origin;function Xe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function K(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...N,"":N.hover};function Qe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ze(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Qe(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===Ae&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ne(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=K(o,"preload-code")),a===null&&(a=K(o,"preload-data")),t===null&&(t=K(o,"keepfocus")),n===null&&(n=K(o,"noscroll")),i===null&&(i=K(o,"reload")),s===null&&(s=K(o,"replacestate")),o=Qe(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function Ke(e){const t=Se(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const et={v:()=>{}};function Nt(){const{set:e,subscribe:t}=Se(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==$t;return s&&(e(!0),et.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==Ae||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function fn(e){}const tt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...tt];const jt=new Set([...tt]);[...jt];function qt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof xe?e.status:500}function Dt(e){return e instanceof xe?e.text:"Internal Error"}let k,J,me;const Vt=qe.toString().includes("$$")||/function \w+\(\) \{\}/.test(qe.toString());Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},me={current:!1}):(k=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},J=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},me=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},et.v=()=>me.current=!0);function Kt(e){Object.assign(k,e)}const Be={spanContext(){return Bt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Bt={traceId:"",spanId:"",traceFlags:0},Ft=new Set(["icon","shortcut icon","apple-touch-icon"]),C=He(We)??{},W=He(Je)??{},$={url:Ke({}),page:Ke({}),navigating:Se(null),updated:Nt()};function Te(e){C[e]=q()}function Gt(e,t){let n=e+1;for(;C[n];)delete C[n],n+=1;for(n=t+1;W[n];)delete W[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function nt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Fe(){}let Pe,we,re,P,ye,w;const ae=[],oe=[];let L=null;function be(){L?.fork?.then(e=>e?.discard()),L=null}const ee=new Map,rt=new Set,Mt=new Set,z=new Set;let _={branch:[],error:null,url:null},at=!1,se=!1,Ge=!0,X=!1,G=!1,ot=!1,Ie=!1,st,y,R,j;const ie=new Set,Me=new Map;async function gn(e,t,n){globalThis.__sveltekit_1nqplvg?.data&&globalThis.__sveltekit_1nqplvg.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),Pe=It(e),P=document.documentElement,ye=t,we=e.nodes[0],re=e.nodes[1],we(),re(),y=history.state?.[B],R=history.state?.[H],y||(y=R=Date.now(),history.replaceState({...history.state,[B]:y,[H]:R},""));const r=C[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await an(ye,n)):(await F({type:"enter",url:Xe(w.hash?ln(new URL(location.href)):location.href),replace_state:!0}),a()),rn()}function zt(){ae.length=0,Ie=!1}function it(e){oe.some(t=>t?.snapshot)&&(W[e]=oe.map(t=>t?.snapshot?.capture()))}function lt(e){W[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function ze(){Te(y),De(We,C),it(R),De(Je,W)}async function Ht(e,t,n,r){let a;t.invalidateAll&&be(),await F({type:"goto",url:Xe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ie=!0,a=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&te().then(te).then(()=>{Me.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Jt(e){if(e.id!==L?.id){be();const t={};ie.add(t),L={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(ie.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null}}return L.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ct(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),st=new w.root({target:t,props:{...e.props,stores:$,components:oe},hydrate:n,sync:!1}),await Promise.resolve(),lt(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:C[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};z.forEach(i=>i(a))}se=!0}function le({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=vt(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:qt(n).map(u=>u.node.component),page:je(k)}};s!==void 0&&(l.props.form=s);let c={},d=!k,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],v=_.branch[u];h?.data!==v?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==k.form||d)&&(l.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?c:k.data}),l}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Be,current:Be},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:i?.data??null,url:bt(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},w.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:v}=ut(f,u,n);return o&&d(h.href),v},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=se?xt(r,a.href,t):Rt(r,t);return{resolved:a,promise:i}}function Wt(e,t,n,r,a,i){if(Ie)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(ae.some(o=>o(new URL(s))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Xt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:je(k),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ie.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==ce(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Yt(_.url,n);let u=!1;const h=c.map(async(m,g)=>{if(!m)return;const S=_.branch[g];return m[1]===S?.loader&&!Wt(u,p,d,f,S.universal?.uses,r)?S:(u=!0,Oe({loader:m[1],url:n,params:r,route:a,parent:async()=>{const I={};for(let O=0;O<g;O+=1)Object.assign(I,(await h[O])?.data);return I},server_data_node:$e(m[0]?{type:"skip"}:null,m[0]?S?.server:void 0)}))});for(const m of h)m.catch(()=>{});const v=[];for(let m=0;m<c.length;m+=1)if(c[m])try{v.push(await h[m])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(ie.has(i))return Xt({error:await Q(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let S=Ue(g),E;if(g instanceof Ee)E=g.body;else{if(await $.updated.check())return await nt(),await Y(n);E=await Q(g,{params:r,url:n,route:{id:a.id}})}const I=await Qt(m,v,s);return I?le({url:n,params:r,branch:v.slice(0,I.idx).concat(I.node),status:S,error:E,route:a}):await ht(n,{id:a.id},E,S)}else v.push(void 0);return le({url:n,params:r,branch:v,status:200,error:null,route:a,form:t?void 0:null})}async function Qt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ce({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Oe({loader:we,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(i)}),o={node:await re(),loader:re,universal:null,server:null,data:null};return le({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Re)return Ht(new URL(s.location,location.href),{},0);throw s}}async function Zt(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await w.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ut(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);w.hash?i.hash=a:i.pathname=a,a=i}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,w.hash)){const n=await Zt(e);if(!n)return;const r=en(n);for(const a of Pe){const i=a.exec(r);if(i)return{id:ce(e),invalidating:t,route:a,params:yt(i),url:e}}}}function en(e){return wt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ne(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return X||rt.forEach(c=>c(l)),s?null:o}async function F({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Fe,block:d=Fe,event:p}){const f=j;j=l;const u=await fe(t,!1),h=e==="enter"?Ne(_,u,t,e):dt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),j===l&&(j=f);return}const v=y,m=R;c(),X=!0,se&&h.navigation.type!=="enter"&&$.navigating.set(J.current=h.navigation);let g=u&&await ft(u);if(!g){if(ue(t,x,w.hash))return await Y(t,i);g=await ht(t,{id:null},await Q(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,j!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await F({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Ce({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await $.updated.check()&&(await nt(),await Y(t,i));if(zt(),Te(v),it(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const b=i?0:1,Z={[B]:y+=b,[H]:R+=b,[Ye]:s};(i?history.replaceState:history.pushState).call(history,Z,"",t),i||Gt(y,R)}const S=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let E;if(se){const b=(await Promise.all(Array.from(Mt,D=>D(h.navigation)))).filter(D=>typeof D=="function");if(b.length>0){let D=function(){b.forEach(de=>{z.delete(de)})};b.push(D),b.forEach(de=>{z.add(de)})}_=g.state,g.props.page&&(g.props.page.url=t);const Z=S&&await S;Z?E=Z.commit():(st.$set(g.props),Kt(g.props.page),E=_t?.()),ot=!0}else await ct(g,ye,!1);const{activeElement:I}=document;await E,await te(),await te();let O=null;if(Ge){const b=n?n.scroll:a?q():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(pt(t)))?O.scrollIntoView():scrollTo(0,0)}const gt=document.activeElement!==I&&document.activeElement!==document.body;!r&&!gt&&sn(t,!O),Ge=!0,g.props.page&&Object.assign(k,g.props.page),X=!1,e==="popstate"&<(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),z.forEach(b=>b(h.navigation)),$.navigating.set(J.current=null)}async function ht(e,t,n,r,a){return e.origin===Ae&&e.pathname===location.pathname&&!at?await Ce({status:r,error:n,url:e,route:t}):await Y(e,a)}function tn(){let e,t={element:void 0,href:void 0},n;P.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}P.addEventListener("mousedown",r),P.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(_e(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=Ze(o,P),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:f,download:u}=ve(c,x,w.hash);if(f||u)return;const h=ne(c),v=p&&ce(_.url)===ce(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const m=await fe(p,!1);if(!m)return;Jt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,_e(p))}function s(){a.disconnect();for(const o of P.querySelectorAll("a")){const{url:l,external:c,download:d}=ve(o,x,w.hash);if(c||d)continue;const p=ne(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&_e(l))}}z.add(s),s()}function Q(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),r=Dt(e);return w.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function rn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ze(),!X){const r=Ne(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};rt.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),navigator.connection?.saveData||tn(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ze(t.composedPath()[0],P);if(!n)return;const{url:r,external:a,target:i,download:s}=ve(n,x,w.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(w.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===pe(location);if(a||o.reload&&(!p||!d)){dt({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(G=!0,Te(y),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await F({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(s,x,!1))return;const o=t.target,l=ne(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),F({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[B]){const n=t.state[B];if(j={},n===y)return;const r=C[n],a=t.state[Ye]??{},i=new URL(t.state[Ct]??location.href),s=t.state[H],o=_.url?pe(location)===pe(_.url):!1;if(s===R&&(ot||o)){a!==k.state&&(k.state=a),e(i),C[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await F({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:j,event:t})}else if(!G){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[B]:++y,[H]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(J.current=null)});function e(t){_.url=k.url=t,$.page.set(je(k)),$.page.notify()}}async function an(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){at=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await fe(c,!1)||{}),d=Pe.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(v,m)=>{const g=o[m];return g?.uses&&(g.uses=on(g.uses)),Oe({loader:w.nodes[v],url:c,params:a,route:i,parent:async()=>{const S={};for(let E=0;E<m;E+=1)Object.assign(S,(await u[E]).data);return S},server_data_node:$e(g)})}),h=await Promise.all(u);if(d){const v=d.layouts;for(let m=0;m<v.length;m++)v[m]||h.splice(m,0,void 0)}p=le({url:c,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(u){if(u instanceof Re){await Y(new URL(u.location,location.href));return}p=await Ce({status:Ue(u),error:await Q(u,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await ct(p,e,f)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ke=!1;function sn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=pt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;ke=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),ke=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Ne(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function je(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function ln(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function pt(e){let t;if(w.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{gn as a,fn as l,k as p,$ as s};
|