@hiai-gg/docsmint 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/backend/src/lib/logger.ts +45 -15
  2. package/dist/backend/index.js +238 -150
  3. package/dist/frontend/CategoryDialog-DphkZqIB.js +611 -0
  4. package/dist/frontend/ConfirmDialog-BLF3x_hr.js +214 -0
  5. package/dist/frontend/CreateSnapshotDialog-D5vPvFTL.js +216 -0
  6. package/dist/frontend/DatePicker-CLNTdvTk.js +259 -0
  7. package/dist/frontend/DeleteDialog-DxYFJivN.js +174 -0
  8. package/dist/frontend/FolderDialog-CRVZM2Oi.js +250 -0
  9. package/dist/frontend/FolderNode-C2zG7uii.js +298 -0
  10. package/dist/frontend/FolderTreeSelector-CyB8y2Sm.js +103 -0
  11. package/dist/frontend/Icon-CooFj4Ee.js +64 -0
  12. package/dist/frontend/SettingsDialog-DCM4-N6_.js +1016 -0
  13. package/dist/frontend/ShareDialog-DYu3RKQu.js +165 -0
  14. package/dist/frontend/TagCreateDialog-DXQs2bL9.js +260 -0
  15. package/dist/frontend/camera-iKXDOOWT.js +29 -0
  16. package/dist/frontend/check-D-UuvBuh.js +25 -0
  17. package/dist/frontend/chevron-down-CiPtYyFh.js +25 -0
  18. package/dist/frontend/circle-check-tSPE1V6t.js +29 -0
  19. package/dist/frontend/clock-DJHbHZb8.js +29 -0
  20. package/dist/frontend/{bundle-mjs-CP6Owz-8.js → clsx-C7bIvsDS.js} +16 -1
  21. package/dist/frontend/components/category-dialog.js +1 -1
  22. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  23. package/dist/frontend/components/delete-dialog.js +1 -1
  24. package/dist/frontend/components/editor/document-editor.js +1364 -1353
  25. package/dist/frontend/components/editor/document-title.js +25 -25
  26. package/dist/frontend/components/editor/markdown-toggle.js +45 -45
  27. package/dist/frontend/components/folder-node.js +1 -1
  28. package/dist/frontend/components/folder-tree-selector.js +1 -1
  29. package/dist/frontend/components/save-as-dialog.js +169 -151
  30. package/dist/frontend/components/settings.js +1 -1
  31. package/dist/frontend/components/share-dialog.js +1 -1
  32. package/dist/frontend/components/sidebar.js +1161 -1153
  33. package/dist/frontend/components/tag-create-dialog.js +1 -1
  34. package/dist/frontend/components/version-history.js +188 -187
  35. package/dist/frontend/copy-GppwRMjX.js +32 -0
  36. package/dist/frontend/dashboard.js +1188 -1156
  37. package/dist/frontend/dialog-D6NxYVmy.js +213 -0
  38. package/dist/frontend/doc-tabs.js +2 -2
  39. package/dist/frontend/ellipsis-vertical-P9MHvCps.js +530 -0
  40. package/dist/frontend/extension.js +8 -8
  41. package/dist/frontend/{floating-layer-anchor-C51M4l6v.js → floating-layer-anchor-CPwucTfd.js} +1414 -1412
  42. package/dist/frontend/folder-DeWhnD7O.js +45 -0
  43. package/dist/frontend/folder-refresh.js +1 -1
  44. package/dist/frontend/input-B5Rak-5G.js +23 -0
  45. package/dist/frontend/keyboard.js +1 -1
  46. package/dist/frontend/{keyboard.svelte-D7H8DihC.js → keyboard.svelte-CApmX0vl.js} +53 -53
  47. package/dist/frontend/label-CW9rxoAb.js +30 -0
  48. package/dist/frontend/{loader-circle-Bk-WFz9g.js → loader-circle-BA6aLO71.js} +86 -85
  49. package/dist/frontend/rotate-ccw-B4Q7brmV.js +25 -0
  50. package/dist/frontend/search.js +680 -654
  51. package/dist/frontend/select-value-sF86Geyh.js +1446 -0
  52. package/dist/frontend/shared-document.js +94 -94
  53. package/dist/frontend/subfolders-refresh-store.svelte-B2dKVmgz.js +65 -0
  54. package/dist/frontend/tag-HxRazVN_.js +54 -0
  55. package/dist/frontend/tag-store.svelte-CqrUXo0o.js +29 -0
  56. package/dist/frontend/textarea-i1720bE7.js +23 -0
  57. package/dist/frontend/theme.js +1 -1
  58. package/dist/frontend/theme.svelte-DKfCy12k.js +49 -0
  59. package/dist/frontend/{utils-C0OW2678.js → utils-CffiyuTo.js} +2 -3
  60. package/dist/frontend/{utils-D8kmM3ub.js → utils-hzdMVeCv.js} +2 -3
  61. package/dist/frontend/utils.js +1 -1
  62. package/dist/frontend/x-CzBsnJ2x.js +25 -0
  63. package/dist/frontend-ssr/api/attachments.js +2 -0
  64. package/dist/frontend-ssr/api/categories.js +2 -0
  65. package/dist/frontend-ssr/api/documents.js +2 -0
  66. package/dist/frontend-ssr/api/folders.js +2 -0
  67. package/dist/frontend-ssr/api/settings.js +2 -0
  68. package/dist/frontend-ssr/api/share.js +2 -0
  69. package/dist/frontend-ssr/api/tags.js +2 -0
  70. package/dist/frontend-ssr/assets/CategoryDialog-C2xaZKHq.js +584 -0
  71. package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +420 -0
  72. package/dist/frontend-ssr/assets/CreateSnapshotDialog-BRw1xJW1.js +214 -0
  73. package/dist/frontend-ssr/assets/DatePicker-DnXniwlZ.js +312 -0
  74. package/dist/frontend-ssr/assets/DeleteDialog-BCfZy3Zn.js +154 -0
  75. package/dist/frontend-ssr/assets/FolderDialog-Dq7I2cKZ.js +429 -0
  76. package/dist/frontend-ssr/assets/FolderNode-DRfBfpft.js +171 -0
  77. package/dist/frontend-ssr/assets/FolderTreeSelector-DZNZ2oI6.js +147 -0
  78. package/dist/frontend-ssr/assets/Icon-B0Zqppjo.js +231 -0
  79. package/dist/frontend-ssr/assets/SettingsDialog-CX8Noa8A.js +1107 -0
  80. package/dist/frontend-ssr/assets/ShareDialog-Cge49ZdJ.js +54 -0
  81. package/dist/frontend-ssr/assets/TagCreateDialog-EAChgBF-.js +264 -0
  82. package/dist/frontend-ssr/assets/api-keys-DFqX39MT.js +35 -0
  83. package/dist/frontend-ssr/assets/attachments-CWBxE3Vz.js +85 -0
  84. package/dist/frontend-ssr/assets/auth-client-x26kqY8Z.js +1286 -0
  85. package/dist/frontend-ssr/assets/camera-CdxscTw-.js +84 -0
  86. package/dist/frontend-ssr/assets/categories-AOqgcsn4.js +75 -0
  87. package/dist/frontend-ssr/assets/chevron-down-CSSNGNh_.js +80 -0
  88. package/dist/frontend-ssr/assets/chevron-right-B4p7Sk6X.js +80 -0
  89. package/dist/frontend-ssr/assets/circle-check-CI1v4vYh.js +84 -0
  90. package/dist/frontend-ssr/assets/client-DZMkDkDn.js +129 -0
  91. package/dist/frontend-ssr/assets/clipboard-CXOaoz2W.js +30 -0
  92. package/dist/frontend-ssr/assets/clock-IL-eX2di.js +84 -0
  93. package/dist/frontend-ssr/assets/context-jz1GGEUi.js +45 -0
  94. package/dist/frontend-ssr/assets/copy-CjV57nGQ.js +87 -0
  95. package/dist/frontend-ssr/assets/db-CnxeO66n.js +65 -0
  96. package/dist/frontend-ssr/assets/dialog-BOV1u6zP.js +157 -0
  97. package/dist/frontend-ssr/assets/dndzone-DMvTO_Jz.js +2114 -0
  98. package/dist/frontend-ssr/assets/document-drop-coordinator-CEaYACsC.js +109 -0
  99. package/dist/frontend-ssr/assets/documents-BnOTRdTY.js +108 -0
  100. package/dist/frontend-ssr/assets/editorExtensions-DUzwndMy.js +186 -0
  101. package/dist/frontend-ssr/assets/ellipsis-vertical-C-0hgkZn.js +555 -0
  102. package/dist/frontend-ssr/assets/floating-layer-anchor-uzw9K8qN.js +6114 -0
  103. package/dist/frontend-ssr/assets/folder-DChhG7qN.js +80 -0
  104. package/dist/frontend-ssr/assets/folders-CTfbS24J.js +127 -0
  105. package/dist/frontend-ssr/assets/identity-B3uHoDtf.js +99 -0
  106. package/dist/frontend-ssr/assets/input-DezGsU3y.js +19 -0
  107. package/dist/frontend-ssr/assets/keyboard.svelte-BgF47N3L.js +174 -0
  108. package/dist/frontend-ssr/assets/label-Bj8-TfFN.js +21 -0
  109. package/dist/frontend-ssr/assets/loader-circle-DZsrZ-er.js +80 -0
  110. package/dist/frontend-ssr/assets/markdown-CjqvGi5W.js +20 -0
  111. package/dist/frontend-ssr/assets/messages-DhXqlcJI.js +11125 -0
  112. package/dist/frontend-ssr/assets/resolve-BqHozBXl.js +32 -0
  113. package/dist/frontend-ssr/assets/rotate-ccw-BlgWwaiq.js +80 -0
  114. package/dist/frontend-ssr/assets/select-value-DngdSmLI.js +1526 -0
  115. package/dist/frontend-ssr/assets/settings-E6qSAWM2.js +64 -0
  116. package/dist/frontend-ssr/assets/share-BTBJelxA.js +30 -0
  117. package/dist/frontend-ssr/assets/subfolders-refresh-store.svelte-DAh4gT16.js +77 -0
  118. package/dist/frontend-ssr/assets/tag-GZEuGWk1.js +166 -0
  119. package/dist/frontend-ssr/assets/tag-store.svelte-DPodKj6Z.js +21 -0
  120. package/dist/frontend-ssr/assets/tags-BId2wdYd.js +49 -0
  121. package/dist/frontend-ssr/assets/textarea-Dev-qSEc.js +21 -0
  122. package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +67 -0
  123. package/dist/frontend-ssr/assets/utils-DtlPPXpJ.js +9 -0
  124. package/dist/frontend-ssr/assets/utils-DvZnctjz.js +23 -0
  125. package/dist/frontend-ssr/collaboration.js +39 -0
  126. package/dist/frontend-ssr/components/category-dialog.js +2 -0
  127. package/dist/frontend-ssr/components/create-snapshot-dialog.js +2 -0
  128. package/dist/frontend-ssr/components/delete-dialog.js +2 -0
  129. package/dist/frontend-ssr/components/editor/document-editor.js +2499 -0
  130. package/dist/frontend-ssr/components/editor/document-title.js +11 -0
  131. package/dist/frontend-ssr/components/editor/docx-serializer.js +186 -0
  132. package/dist/frontend-ssr/components/editor/extensions.js +2 -0
  133. package/dist/frontend-ssr/components/editor/markdown-toggle.js +20 -0
  134. package/dist/frontend-ssr/components/editor/markdown.js +2 -0
  135. package/dist/frontend-ssr/components/folder-node.js +2 -0
  136. package/dist/frontend-ssr/components/folder-tree-selector.js +2 -0
  137. package/dist/frontend-ssr/components/save-as-dialog.js +280 -0
  138. package/dist/frontend-ssr/components/settings.js +2 -0
  139. package/dist/frontend-ssr/components/share-dialog.js +2 -0
  140. package/dist/frontend-ssr/components/sidebar.js +2033 -0
  141. package/dist/frontend-ssr/components/tag-create-dialog.js +2 -0
  142. package/dist/frontend-ssr/components/version-history.js +370 -0
  143. package/dist/frontend-ssr/dashboard.js +2542 -0
  144. package/dist/frontend-ssr/doc-tabs.js +23 -0
  145. package/dist/frontend-ssr/document-drop-coordinator.js +2 -0
  146. package/dist/frontend-ssr/extension.js +13 -0
  147. package/dist/frontend-ssr/folder-refresh.js +2 -0
  148. package/dist/frontend-ssr/i18n.js +10 -0
  149. package/dist/frontend-ssr/keyboard.js +2 -0
  150. package/dist/frontend-ssr/offline/identity.js +2 -0
  151. package/dist/frontend-ssr/search.js +332 -0
  152. package/dist/frontend-ssr/shared-document.js +273 -0
  153. package/dist/frontend-ssr/theme.js +9 -0
  154. package/dist/frontend-ssr/types.js +1 -0
  155. package/dist/frontend-ssr/utils/clipboard.js +2 -0
  156. package/dist/frontend-ssr/utils/dndzone.js +2 -0
  157. package/dist/frontend-ssr/utils.js +2 -0
  158. package/package.json +22 -1
  159. package/packages/cli/src/index.ts +1 -1
  160. package/packages/db/src/schema.ts +3 -0
  161. package/packages/mcp-server/src/index.ts +1 -1
  162. package/dist/frontend/CategoryDialog--rIE7FrH.js +0 -580
  163. package/dist/frontend/ConfirmDialog-Cpzyb55f.js +0 -212
  164. package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +0 -216
  165. package/dist/frontend/DatePicker-Byynca7V.js +0 -257
  166. package/dist/frontend/DeleteDialog-ap6nOywZ.js +0 -174
  167. package/dist/frontend/FolderDialog-DmN_trV0.js +0 -247
  168. package/dist/frontend/FolderNode-C4B8a2fd.js +0 -317
  169. package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +0 -100
  170. package/dist/frontend/Icon-DtNo0N1U.js +0 -64
  171. package/dist/frontend/SettingsDialog-2kTaTXAs.js +0 -992
  172. package/dist/frontend/ShareDialog-BBDGNF5n.js +0 -165
  173. package/dist/frontend/TagCreateDialog-DiLZnJo4.js +0 -258
  174. package/dist/frontend/camera-B7dAOd4s.js +0 -28
  175. package/dist/frontend/check-CDwRlG9T.js +0 -24
  176. package/dist/frontend/chevron-down-B7ZrjUmT.js +0 -24
  177. package/dist/frontend/circle-check-CDqeMB2d.js +0 -28
  178. package/dist/frontend/client-Bc5Fzx40.js +0 -2785
  179. package/dist/frontend/clock-Ck5Sn-Zl.js +0 -28
  180. package/dist/frontend/clsx-nmtDPO_P.js +0 -16
  181. package/dist/frontend/copy-CMAA6GP0.js +0 -31
  182. package/dist/frontend/dialog-BDkiG42a.js +0 -213
  183. package/dist/frontend/disclose-version-5I57E3LD.js +0 -3
  184. package/dist/frontend/ellipsis-vertical-BBuPldbW.js +0 -519
  185. package/dist/frontend/folder-TQjKY4yn.js +0 -44
  186. package/dist/frontend/index-client-jobkrWVL.js +0 -86
  187. package/dist/frontend/input-CBI6p4Xl.js +0 -23
  188. package/dist/frontend/label-C-GkhEp4.js +0 -30
  189. package/dist/frontend/rotate-ccw-CleZtJ5D.js +0 -24
  190. package/dist/frontend/select-value-CvrWRkXW.js +0 -1436
  191. package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +0 -65
  192. package/dist/frontend/tag-Dx3SmucJ.js +0 -53
  193. package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +0 -29
  194. package/dist/frontend/textarea-Dfp78XlL.js +0 -23
  195. package/dist/frontend/theme.svelte-CROg1Hi5.js +0 -49
  196. package/dist/frontend/x-DaTdeDXv.js +0 -24
@@ -0,0 +1,1446 @@
1
+ import { t as e } from "./utils-hzdMVeCv.js";
2
+ import { $ as t, A as n, C as r, D as i, E as a, G as o, H as s, J as c, K as l, O as u, P as d, Q as f, S as p, T as m, V as h, W as g, X as _, Y as v, Z as y, _ as b, a as x, b as S, g as C, h as w, i as T, j as ee, k as te, n as ne, o as E, q as D, r as O, t as k, v as A, w as j, x as re, y as ie, z as ae } from "./floating-layer-anchor-CPwucTfd.js";
3
+ import "svelte/internal/disclose-version";
4
+ import * as M from "svelte/internal/client";
5
+ import { untrack as oe } from "svelte";
6
+ import { on as N } from "svelte/events";
7
+ //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+68f06e2e1fdd21f8/node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js
8
+ var P = {
9
+ position: "absolute",
10
+ width: "1px",
11
+ height: "1px",
12
+ padding: "0",
13
+ margin: "-1px",
14
+ overflow: "hidden",
15
+ clip: "rect(0, 0, 0, 0)",
16
+ whiteSpace: "nowrap",
17
+ borderWidth: "0",
18
+ transform: "translateX(-100%)"
19
+ };
20
+ f(P);
21
+ //#endregion
22
+ //#region ../node_modules/.bun/svelte-toolbelt@0.10.6+68f06e2e1fdd21f8/node_modules/svelte-toolbelt/dist/utils/on-mount-effect.svelte.js
23
+ function F(e) {
24
+ M.user_effect(() => oe(() => e()));
25
+ }
26
+ //#endregion
27
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/internal/data-typeahead.svelte.js
28
+ var I = class {
29
+ #e;
30
+ #t = M.derived(() => this.#e.candidateValues());
31
+ #n;
32
+ constructor(e) {
33
+ this.#e = e, this.#n = b("", {
34
+ afterMs: 1e3,
35
+ getWindow: this.#e.getWindow
36
+ }), this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this), this.resetTypeahead = this.resetTypeahead.bind(this);
37
+ }
38
+ handleTypeaheadSearch(e) {
39
+ if (!this.#e.enabled() || !M.get(this.#t).length) return;
40
+ this.#n.current = this.#n.current + e;
41
+ let t = this.#e.getCurrentItem(), n = M.get(this.#t).find((e) => e === t) ?? "", r = re(M.get(this.#t).map((e) => e ?? ""), this.#n.current, n), i = M.get(this.#t).find((e) => e === r);
42
+ return i && this.#e.onMatch(i), i;
43
+ }
44
+ resetTypeahead() {
45
+ this.#n.current = "";
46
+ }
47
+ }, L = [
48
+ ee,
49
+ s,
50
+ ae
51
+ ], R = [
52
+ d,
53
+ h,
54
+ "End"
55
+ ], z = [...L, ...R], B = i({
56
+ component: "select",
57
+ parts: [
58
+ "trigger",
59
+ "content",
60
+ "item",
61
+ "viewport",
62
+ "scroll-up-button",
63
+ "scroll-down-button",
64
+ "group",
65
+ "group-label",
66
+ "separator",
67
+ "arrow",
68
+ "input",
69
+ "content-wrapper",
70
+ "item-text",
71
+ "value"
72
+ ]
73
+ }), V = new l("Select.Root | Combobox.Root");
74
+ new l("Select.Group | Combobox.Group");
75
+ var H = new l("Select.Content | Combobox.Content"), U = class {
76
+ opts;
77
+ #e = M.state(!1);
78
+ get touchedInput() {
79
+ return M.get(this.#e);
80
+ }
81
+ set touchedInput(e) {
82
+ M.set(this.#e, e, !0);
83
+ }
84
+ #t = M.state(null);
85
+ get inputNode() {
86
+ return M.get(this.#t);
87
+ }
88
+ set inputNode(e) {
89
+ M.set(this.#t, e, !0);
90
+ }
91
+ #n = M.state(null);
92
+ get contentNode() {
93
+ return M.get(this.#n);
94
+ }
95
+ set contentNode(e) {
96
+ M.set(this.#n, e, !0);
97
+ }
98
+ contentPresence;
99
+ #r = M.state(null);
100
+ get viewportNode() {
101
+ return M.get(this.#r);
102
+ }
103
+ set viewportNode(e) {
104
+ M.set(this.#r, e, !0);
105
+ }
106
+ #i = M.state(null);
107
+ get triggerNode() {
108
+ return M.get(this.#i);
109
+ }
110
+ set triggerNode(e) {
111
+ M.set(this.#i, e, !0);
112
+ }
113
+ #a = M.state(null);
114
+ get valueNode() {
115
+ return M.get(this.#a);
116
+ }
117
+ set valueNode(e) {
118
+ M.set(this.#a, e, !0);
119
+ }
120
+ #o = M.state("");
121
+ get valueId() {
122
+ return M.get(this.#o);
123
+ }
124
+ set valueId(e) {
125
+ M.set(this.#o, e, !0);
126
+ }
127
+ #s = M.state(null);
128
+ get highlightedNode() {
129
+ return M.get(this.#s);
130
+ }
131
+ set highlightedNode(e) {
132
+ M.set(this.#s, e, !0);
133
+ }
134
+ #c = M.derived(() => this.highlightedNode ? this.highlightedNode.getAttribute("data-value") : null);
135
+ get highlightedValue() {
136
+ return M.get(this.#c);
137
+ }
138
+ set highlightedValue(e) {
139
+ M.set(this.#c, e);
140
+ }
141
+ #l = M.derived(() => {
142
+ if (this.highlightedNode) return this.highlightedNode.id;
143
+ });
144
+ get highlightedId() {
145
+ return M.get(this.#l);
146
+ }
147
+ set highlightedId(e) {
148
+ M.set(this.#l, e);
149
+ }
150
+ #u = M.derived(() => this.highlightedNode ? this.highlightedNode.getAttribute("data-label") : null);
151
+ get highlightedLabel() {
152
+ return M.get(this.#u);
153
+ }
154
+ set highlightedLabel(e) {
155
+ M.set(this.#u, e);
156
+ }
157
+ #d = M.state(!1);
158
+ get contentIsPositioned() {
159
+ return M.get(this.#d);
160
+ }
161
+ set contentIsPositioned(e) {
162
+ M.set(this.#d, e, !0);
163
+ }
164
+ isUsingKeyboard = !1;
165
+ isCombobox = !1;
166
+ domContext = new c(() => null);
167
+ constructor(e) {
168
+ this.opts = e, this.isCombobox = e.isCombobox, this.contentPresence = new w({
169
+ ref: t(() => this.contentNode),
170
+ open: this.opts.open,
171
+ onComplete: () => {
172
+ this.opts.onOpenChangeComplete.current(this.opts.open.current);
173
+ }
174
+ }), M.user_pre_effect(() => {
175
+ this.opts.open.current || this.setHighlightedNode(null);
176
+ });
177
+ }
178
+ setHighlightedNode(e, t = !1) {
179
+ this.highlightedNode = e, e && (this.isUsingKeyboard || t) && this.scrollHighlightedNodeIntoView(e);
180
+ }
181
+ scrollHighlightedNodeIntoView(e) {
182
+ !this.viewportNode || !this.contentIsPositioned || e.scrollIntoView({ block: this.opts.scrollAlignment.current });
183
+ }
184
+ getCandidateNodes() {
185
+ let e = this.contentNode;
186
+ return e ? Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)) : [];
187
+ }
188
+ setHighlightedToFirstCandidate(e = !1) {
189
+ this.setHighlightedNode(null);
190
+ let t = this.getCandidateNodes();
191
+ if (t.length) {
192
+ if (this.viewportNode) {
193
+ let e = this.viewportNode.getBoundingClientRect();
194
+ t = t.filter((t) => {
195
+ if (!this.viewportNode) return !1;
196
+ let n = t.getBoundingClientRect();
197
+ return n.right <= e.right && n.left >= e.left && n.bottom <= e.bottom && n.top >= e.top;
198
+ });
199
+ }
200
+ this.setHighlightedNode(t[0], e);
201
+ }
202
+ }
203
+ getNodeByValue(e) {
204
+ return this.getCandidateNodes().find((t) => t.dataset.value === e) ?? null;
205
+ }
206
+ getLabelForValue(e) {
207
+ if (e === "") return "";
208
+ let t = this.opts.items.current.find((t) => t.value === e)?.label;
209
+ if (t !== void 0) return t;
210
+ let n = this.getNodeByValue(e);
211
+ if (n) {
212
+ let t = n.getAttribute("data-label");
213
+ return t !== null && t !== "" ? t : n.textContent?.trim() ?? e;
214
+ }
215
+ return e;
216
+ }
217
+ setOpen(e) {
218
+ this.opts.open.current = e;
219
+ }
220
+ toggleOpen() {
221
+ this.opts.open.current = !this.opts.open.current;
222
+ }
223
+ handleOpen() {
224
+ this.setOpen(!0);
225
+ }
226
+ handleClose() {
227
+ this.setHighlightedNode(null), this.setOpen(!1);
228
+ }
229
+ toggleMenu() {
230
+ this.toggleOpen();
231
+ }
232
+ getBitsAttr = (e) => B.getAttr(e, this.isCombobox ? "combobox" : void 0);
233
+ }, W = class extends U {
234
+ opts;
235
+ isMulti = !1;
236
+ #e = M.derived(() => this.opts.value.current !== "");
237
+ get hasValue() {
238
+ return M.get(this.#e);
239
+ }
240
+ set hasValue(e) {
241
+ M.set(this.#e, e);
242
+ }
243
+ #t = M.derived(() => this.opts.items.current.length ? this.opts.items.current.find((e) => e.value === this.opts.value.current)?.label ?? "" : "");
244
+ get currentLabel() {
245
+ return M.get(this.#t);
246
+ }
247
+ set currentLabel(e) {
248
+ M.set(this.#t, e);
249
+ }
250
+ #n = M.derived(() => this.opts.items.current.length ? this.opts.items.current.filter((e) => !e.disabled).map((e) => e.label) : []);
251
+ get candidateLabels() {
252
+ return M.get(this.#n);
253
+ }
254
+ set candidateLabels(e) {
255
+ M.set(this.#n, e);
256
+ }
257
+ #r = M.derived(() => !(this.isMulti || this.opts.items.current.length === 0));
258
+ get dataTypeaheadEnabled() {
259
+ return M.get(this.#r);
260
+ }
261
+ set dataTypeaheadEnabled(e) {
262
+ M.set(this.#r, e);
263
+ }
264
+ constructor(e) {
265
+ super(e), this.opts = e, M.user_effect(() => {
266
+ !this.opts.open.current && this.highlightedNode && this.setHighlightedNode(null);
267
+ }), o(() => this.opts.open.current, () => {
268
+ this.opts.open.current && this.setInitialHighlightedNode();
269
+ });
270
+ }
271
+ includesItem(e) {
272
+ return this.opts.value.current === e;
273
+ }
274
+ toggleItem(e, t = e) {
275
+ let n = this.includesItem(e) ? "" : e;
276
+ this.opts.value.current = n, n !== "" && (this.opts.inputValue.current = t);
277
+ }
278
+ setInitialHighlightedNode() {
279
+ v(() => {
280
+ if (!(this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode))) {
281
+ if (this.opts.value.current !== "") {
282
+ let e = this.getNodeByValue(this.opts.value.current);
283
+ if (e) {
284
+ this.setHighlightedNode(e, !0);
285
+ return;
286
+ }
287
+ }
288
+ this.setHighlightedToFirstCandidate(!0);
289
+ }
290
+ });
291
+ }
292
+ }, G = class extends U {
293
+ opts;
294
+ isMulti = !0;
295
+ #e = M.derived(() => this.opts.value.current.length > 0);
296
+ get hasValue() {
297
+ return M.get(this.#e);
298
+ }
299
+ set hasValue(e) {
300
+ M.set(this.#e, e);
301
+ }
302
+ constructor(e) {
303
+ super(e), this.opts = e, M.user_effect(() => {
304
+ !this.opts.open.current && this.highlightedNode && this.setHighlightedNode(null);
305
+ }), o(() => this.opts.open.current, () => {
306
+ this.opts.open.current && this.setInitialHighlightedNode();
307
+ });
308
+ }
309
+ includesItem(e) {
310
+ return this.opts.value.current.includes(e);
311
+ }
312
+ toggleItem(e, t = e) {
313
+ this.includesItem(e) ? this.opts.value.current = this.opts.value.current.filter((t) => t !== e) : this.opts.value.current = [...this.opts.value.current, e], this.opts.inputValue.current = t;
314
+ }
315
+ setInitialHighlightedNode() {
316
+ v(() => {
317
+ if (this.domContext && !(this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode))) {
318
+ if (this.opts.value.current.length && this.opts.value.current[0] !== "") {
319
+ let e = this.getNodeByValue(this.opts.value.current[0]);
320
+ if (e) {
321
+ this.setHighlightedNode(e, !0);
322
+ return;
323
+ }
324
+ }
325
+ this.setHighlightedToFirstCandidate(!0);
326
+ }
327
+ });
328
+ }
329
+ }, K = class {
330
+ static create(e) {
331
+ let { type: t, ...n } = e, r = t === "single" ? new W(n) : new G(n);
332
+ return V.set(r);
333
+ }
334
+ }, q = class e {
335
+ static create(t) {
336
+ return new e(t, V.get());
337
+ }
338
+ root;
339
+ opts;
340
+ attachment;
341
+ constructor(e, t) {
342
+ this.root = t, this.opts = e, this.attachment = D(e.ref, (e) => this.root.valueNode = e), this.setValue = this.setValue.bind(this);
343
+ }
344
+ setValue(e) {
345
+ this.root.isMulti && !Array.isArray(e) || !this.root.isMulti && typeof e != "string" || (this.root.opts.value.current = e);
346
+ }
347
+ #e = M.derived(() => {
348
+ if (this.root.isMulti) return {
349
+ selection: {
350
+ type: "multiple",
351
+ selected: this.root.opts.value.current.length > 0 ? this.root.opts.value.current.map((e) => ({
352
+ value: e,
353
+ label: this.root.getLabelForValue(e)
354
+ })) : [],
355
+ setValue: this.setValue
356
+ },
357
+ placeholder: this.opts.placeholder.current ?? null,
358
+ disabled: this.root.opts.disabled.current
359
+ };
360
+ let e = this.root.opts.value.current;
361
+ return {
362
+ selection: {
363
+ type: "single",
364
+ selected: e === "" ? void 0 : {
365
+ value: e,
366
+ label: e === "" ? "" : this.root.getLabelForValue(e)
367
+ },
368
+ setValue: this.setValue
369
+ },
370
+ placeholder: this.opts.placeholder.current ?? null,
371
+ disabled: this.root.opts.disabled.current
372
+ };
373
+ });
374
+ get snippetProps() {
375
+ return M.get(this.#e);
376
+ }
377
+ set snippetProps(e) {
378
+ M.set(this.#e, e);
379
+ }
380
+ #t = M.derived(() => ({
381
+ id: this.opts.id.current,
382
+ "data-placeholder": this.root.hasValue ? void 0 : "",
383
+ "data-select-value": "",
384
+ ...this.attachment
385
+ }));
386
+ get props() {
387
+ return M.get(this.#t);
388
+ }
389
+ set props(e) {
390
+ M.set(this.#t, e);
391
+ }
392
+ }, se = class e {
393
+ static create(t) {
394
+ return new e(t, V.get());
395
+ }
396
+ opts;
397
+ root;
398
+ attachment;
399
+ #e;
400
+ #t;
401
+ constructor(e, t) {
402
+ this.opts = e, this.root = t, this.attachment = D(e.ref, (e) => this.root.triggerNode = e), this.root.domContext = new c(e.ref), this.#e = new C({
403
+ getCurrentItem: () => this.root.highlightedNode,
404
+ onMatch: (e) => {
405
+ this.root.setHighlightedNode(e);
406
+ },
407
+ getActiveElement: () => this.root.domContext.getActiveElement(),
408
+ getWindow: () => this.root.domContext.getWindow()
409
+ }), this.#t = new I({
410
+ getCurrentItem: () => this.root.isMulti ? "" : this.root.currentLabel,
411
+ onMatch: (e) => {
412
+ if (this.root.isMulti || !this.root.opts.items.current) return;
413
+ let t = this.root.opts.items.current.find((t) => t.label === e);
414
+ t && (this.root.opts.value.current = t.value);
415
+ },
416
+ enabled: () => !this.root.isMulti && this.root.dataTypeaheadEnabled,
417
+ candidateValues: () => this.root.isMulti ? [] : this.root.candidateLabels,
418
+ getWindow: () => this.root.domContext.getWindow()
419
+ }), this.onkeydown = this.onkeydown.bind(this), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this), this.onclick = this.onclick.bind(this);
420
+ }
421
+ #n() {
422
+ this.root.opts.open.current = !0, this.#t.resetTypeahead(), this.#e.resetTypeahead();
423
+ }
424
+ #r(e) {
425
+ this.#n();
426
+ }
427
+ #i() {
428
+ let e = this.root.highlightedValue === this.root.opts.value.current;
429
+ return !this.root.opts.allowDeselect.current && e && !this.root.isMulti || (this.root.highlightedValue !== null && this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? void 0), !this.root.isMulti && !e) ? (this.root.handleClose(), !0) : !1;
430
+ }
431
+ onkeydown(e) {
432
+ if (this.root.isUsingKeyboard = !0, (e.key === "ArrowUp" || e.key === "ArrowDown") && e.preventDefault(), !this.root.opts.open.current) {
433
+ if (e.key === "Enter" || e.key === " " || e.key === "ArrowDown" || e.key === "ArrowUp") e.preventDefault(), this.root.handleOpen();
434
+ else if (!this.root.isMulti && this.root.dataTypeaheadEnabled) {
435
+ this.#t.handleTypeaheadSearch(e.key);
436
+ return;
437
+ }
438
+ if (this.root.hasValue) return;
439
+ let t = this.root.getCandidateNodes();
440
+ if (!t.length) return;
441
+ if (e.key === "ArrowDown") {
442
+ let e = t[0];
443
+ this.root.setHighlightedNode(e);
444
+ } else if (e.key === "ArrowUp") {
445
+ let e = t[t.length - 1];
446
+ this.root.setHighlightedNode(e);
447
+ }
448
+ return;
449
+ }
450
+ if (e.key === "Tab") {
451
+ this.root.handleClose();
452
+ return;
453
+ }
454
+ if ((e.key === "Enter" || e.key === " " && this.#e.search === "") && !e.isComposing && (e.preventDefault(), this.#i())) return;
455
+ if (e.key === "ArrowUp" && e.altKey && this.root.handleClose(), z.includes(e.key)) {
456
+ e.preventDefault();
457
+ let t = this.root.getCandidateNodes(), n = this.root.highlightedNode, i = n ? t.indexOf(n) : -1, a = this.root.opts.loop.current, o;
458
+ if (e.key === "ArrowDown" ? o = p(t, i, a) : e.key === "ArrowUp" ? o = r(t, i, a) : e.key === "PageDown" ? o = S(t, i, 10, a) : e.key === "PageUp" ? o = ie(t, i, 10, a) : e.key === "Home" ? o = t[0] : e.key === "End" && (o = t[t.length - 1]), !o) return;
459
+ this.root.setHighlightedNode(o);
460
+ return;
461
+ }
462
+ let t = e.ctrlKey || e.altKey || e.metaKey, n = e.key.length === 1, i = e.key === " ", a = this.root.getCandidateNodes();
463
+ if (e.key !== "Tab") {
464
+ if (!t && (n || i)) {
465
+ !this.#e.handleTypeaheadSearch(e.key, a) && i && (e.preventDefault(), this.#i());
466
+ return;
467
+ }
468
+ this.root.highlightedNode || this.root.setHighlightedToFirstCandidate();
469
+ }
470
+ }
471
+ onclick(e) {
472
+ e.currentTarget.focus();
473
+ }
474
+ onpointerdown(e) {
475
+ if (this.root.opts.disabled.current) return;
476
+ if (e.pointerType === "touch") return e.preventDefault();
477
+ let t = e.target;
478
+ t?.hasPointerCapture(e.pointerId) && t?.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && (this.root.opts.open.current === !1 ? this.#r(e) : this.root.handleClose());
479
+ }
480
+ onpointerup(e) {
481
+ this.root.opts.disabled.current || (e.preventDefault(), e.pointerType === "touch" && (this.root.opts.open.current === !1 ? this.#r(e) : this.root.handleClose()));
482
+ }
483
+ #a = M.derived(() => ({
484
+ id: this.opts.id.current,
485
+ disabled: this.root.opts.disabled.current ? !0 : void 0,
486
+ "aria-haspopup": "listbox",
487
+ "aria-expanded": m(this.root.opts.open.current),
488
+ "aria-activedescendant": this.root.highlightedId,
489
+ "data-state": u(this.root.opts.open.current),
490
+ "data-disabled": j(this.root.opts.disabled.current),
491
+ "data-placeholder": this.root.hasValue ? void 0 : "",
492
+ [this.root.getBitsAttr("trigger")]: "",
493
+ onpointerdown: this.onpointerdown,
494
+ onkeydown: this.onkeydown,
495
+ onclick: this.onclick,
496
+ onpointerup: this.onpointerup,
497
+ ...this.attachment
498
+ }));
499
+ get props() {
500
+ return M.get(this.#a);
501
+ }
502
+ set props(e) {
503
+ M.set(this.#a, e);
504
+ }
505
+ }, ce = class e {
506
+ static create(t) {
507
+ return H.set(new e(t, V.get()));
508
+ }
509
+ opts;
510
+ root;
511
+ attachment;
512
+ #e = M.state(!1);
513
+ get isPositioned() {
514
+ return M.get(this.#e);
515
+ }
516
+ set isPositioned(e) {
517
+ M.set(this.#e, e, !0);
518
+ }
519
+ domContext;
520
+ constructor(e, t) {
521
+ this.opts = e, this.root = t, this.attachment = D(e.ref, (e) => this.root.contentNode = e), this.domContext = new c(this.opts.ref), this.root.domContext === null && (this.root.domContext = this.domContext), _(() => {
522
+ this.root.contentNode = null, this.root.contentIsPositioned = !1, this.isPositioned = !1;
523
+ }), o(() => this.root.opts.open.current, () => {
524
+ this.root.opts.open.current || (this.root.contentIsPositioned = !1, this.isPositioned = !1);
525
+ }), o([() => this.isPositioned, () => this.root.highlightedNode], () => {
526
+ !this.isPositioned || !this.root.highlightedNode || this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode);
527
+ }), this.onpointermove = this.onpointermove.bind(this);
528
+ }
529
+ onpointermove(e) {
530
+ this.root.isUsingKeyboard = !1;
531
+ }
532
+ #t = M.derived(() => E(this.root.isCombobox ? "combobox" : "select"));
533
+ onInteractOutside = (e) => {
534
+ if (e.target === this.root.triggerNode || e.target === this.root.inputNode) {
535
+ e.preventDefault();
536
+ return;
537
+ }
538
+ this.opts.onInteractOutside.current(e), !e.defaultPrevented && this.root.handleClose();
539
+ };
540
+ onEscapeKeydown = (e) => {
541
+ this.opts.onEscapeKeydown.current(e), !e.defaultPrevented && this.root.handleClose();
542
+ };
543
+ onOpenAutoFocus = (e) => {
544
+ e.preventDefault();
545
+ };
546
+ onCloseAutoFocus = (e) => {
547
+ e.preventDefault();
548
+ };
549
+ get shouldRender() {
550
+ return this.root.contentPresence.shouldRender;
551
+ }
552
+ #n = M.derived(() => ({ open: this.root.opts.open.current }));
553
+ get snippetProps() {
554
+ return M.get(this.#n);
555
+ }
556
+ set snippetProps(e) {
557
+ M.set(this.#n, e);
558
+ }
559
+ #r = M.derived(() => ({
560
+ id: this.opts.id.current,
561
+ role: "listbox",
562
+ "aria-multiselectable": this.root.isMulti ? "true" : void 0,
563
+ "data-state": u(this.root.opts.open.current),
564
+ ...te(this.root.contentPresence.transitionStatus),
565
+ [this.root.getBitsAttr("content")]: "",
566
+ style: {
567
+ display: "flex",
568
+ flexDirection: "column",
569
+ outline: "none",
570
+ boxSizing: "border-box",
571
+ pointerEvents: "auto",
572
+ ...M.get(this.#t)
573
+ },
574
+ onpointermove: this.onpointermove,
575
+ ...this.attachment
576
+ }));
577
+ get props() {
578
+ return M.get(this.#r);
579
+ }
580
+ set props(e) {
581
+ M.set(this.#r, e);
582
+ }
583
+ popperProps = {
584
+ onInteractOutside: this.onInteractOutside,
585
+ onEscapeKeydown: this.onEscapeKeydown,
586
+ onOpenAutoFocus: this.onOpenAutoFocus,
587
+ onCloseAutoFocus: this.onCloseAutoFocus,
588
+ trapFocus: !1,
589
+ loop: !1,
590
+ onPlaced: () => {
591
+ this.root.opts.open.current && (this.root.contentIsPositioned = !0, this.isPositioned = !0);
592
+ }
593
+ };
594
+ }, le = class e {
595
+ static create(t) {
596
+ return new e(t, V.get());
597
+ }
598
+ opts;
599
+ root;
600
+ attachment;
601
+ #e = M.derived(() => this.root.includesItem(this.opts.value.current));
602
+ get isSelected() {
603
+ return M.get(this.#e);
604
+ }
605
+ set isSelected(e) {
606
+ M.set(this.#e, e);
607
+ }
608
+ #t = M.derived(() => this.root.highlightedValue === this.opts.value.current);
609
+ get isHighlighted() {
610
+ return M.get(this.#t);
611
+ }
612
+ set isHighlighted(e) {
613
+ M.set(this.#t, e);
614
+ }
615
+ prevHighlighted = new g(() => this.isHighlighted);
616
+ #n = M.state(!1);
617
+ get mounted() {
618
+ return M.get(this.#n);
619
+ }
620
+ set mounted(e) {
621
+ M.set(this.#n, e, !0);
622
+ }
623
+ constructor(e, t) {
624
+ this.opts = e, this.root = t, this.attachment = D(e.ref), o([() => this.isHighlighted, () => this.prevHighlighted.current], () => {
625
+ this.isHighlighted ? this.opts.onHighlight.current() : this.prevHighlighted.current && this.opts.onUnhighlight.current();
626
+ }), o(() => this.mounted, () => {
627
+ this.mounted && this.root.setInitialHighlightedNode();
628
+ }), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this), this.onpointermove = this.onpointermove.bind(this);
629
+ }
630
+ handleSelect() {
631
+ if (this.opts.disabled.current) return;
632
+ let e = this.opts.value.current === this.root.opts.value.current;
633
+ if (!this.root.opts.allowDeselect.current && e && !this.root.isMulti) {
634
+ this.root.handleClose();
635
+ return;
636
+ }
637
+ this.root.toggleItem(this.opts.value.current, this.opts.label.current), !this.root.isMulti && !e && this.root.handleClose();
638
+ }
639
+ #r = M.derived(() => ({
640
+ selected: this.isSelected,
641
+ highlighted: this.isHighlighted
642
+ }));
643
+ get snippetProps() {
644
+ return M.get(this.#r);
645
+ }
646
+ set snippetProps(e) {
647
+ M.set(this.#r, e);
648
+ }
649
+ onpointerdown(e) {
650
+ e.preventDefault();
651
+ }
652
+ onpointerup(e) {
653
+ if (!(e.defaultPrevented || !this.opts.ref.current)) {
654
+ if (e.pointerType === "touch" && !n) {
655
+ N(this.opts.ref.current, "click", () => {
656
+ this.handleSelect(), this.root.setHighlightedNode(this.opts.ref.current);
657
+ }, { once: !0 });
658
+ return;
659
+ }
660
+ e.preventDefault(), this.handleSelect(), e.pointerType === "touch" && this.root.setHighlightedNode(this.opts.ref.current);
661
+ }
662
+ }
663
+ onpointermove(e) {
664
+ e.pointerType !== "touch" && this.root.highlightedNode !== this.opts.ref.current && this.root.setHighlightedNode(this.opts.ref.current);
665
+ }
666
+ #i = M.derived(() => ({
667
+ id: this.opts.id.current,
668
+ role: "option",
669
+ "aria-selected": this.root.includesItem(this.opts.value.current) ? "true" : void 0,
670
+ "data-value": this.opts.value.current,
671
+ "data-disabled": j(this.opts.disabled.current),
672
+ "data-highlighted": this.root.highlightedValue === this.opts.value.current && !this.opts.disabled.current ? "" : void 0,
673
+ "data-selected": this.root.includesItem(this.opts.value.current) ? "" : void 0,
674
+ "data-label": this.opts.label.current,
675
+ [this.root.getBitsAttr("item")]: "",
676
+ onpointermove: this.onpointermove,
677
+ onpointerdown: this.onpointerdown,
678
+ onpointerup: this.onpointerup,
679
+ ...this.attachment
680
+ }));
681
+ get props() {
682
+ return M.get(this.#i);
683
+ }
684
+ set props(e) {
685
+ M.set(this.#i, e);
686
+ }
687
+ }, ue = class e {
688
+ static create(t) {
689
+ return new e(t, V.get());
690
+ }
691
+ opts;
692
+ root;
693
+ #e = M.derived(() => this.root.opts.name.current !== "");
694
+ get shouldRender() {
695
+ return M.get(this.#e);
696
+ }
697
+ set shouldRender(e) {
698
+ M.set(this.#e, e);
699
+ }
700
+ constructor(e, t) {
701
+ this.opts = e, this.root = t, this.onfocus = this.onfocus.bind(this);
702
+ }
703
+ onfocus(e) {
704
+ e.preventDefault(), this.root.isCombobox ? this.root.inputNode?.focus() : this.root.triggerNode?.focus();
705
+ }
706
+ #t = M.derived(() => ({
707
+ disabled: a(this.root.opts.disabled.current),
708
+ required: a(this.root.opts.required.current),
709
+ name: this.root.opts.name.current,
710
+ value: this.opts.value.current,
711
+ onfocus: this.onfocus
712
+ }));
713
+ get props() {
714
+ return M.get(this.#t);
715
+ }
716
+ set props(e) {
717
+ M.set(this.#t, e);
718
+ }
719
+ }, de = class e {
720
+ static create(t) {
721
+ return new e(t, H.get());
722
+ }
723
+ opts;
724
+ content;
725
+ root;
726
+ attachment;
727
+ #e = M.state(0);
728
+ get prevScrollTop() {
729
+ return M.get(this.#e);
730
+ }
731
+ set prevScrollTop(e) {
732
+ M.set(this.#e, e, !0);
733
+ }
734
+ constructor(e, t) {
735
+ this.opts = e, this.content = t, this.root = t.root, this.attachment = D(e.ref, (e) => {
736
+ this.root.viewportNode = e;
737
+ });
738
+ }
739
+ #t = M.derived(() => ({
740
+ id: this.opts.id.current,
741
+ role: "presentation",
742
+ [this.root.getBitsAttr("viewport")]: "",
743
+ style: {
744
+ position: "relative",
745
+ flex: 1,
746
+ overflow: "auto"
747
+ },
748
+ ...this.attachment
749
+ }));
750
+ get props() {
751
+ return M.get(this.#t);
752
+ }
753
+ set props(e) {
754
+ M.set(this.#t, e);
755
+ }
756
+ }, fe = /* @__PURE__ */ new Set([
757
+ "$$slots",
758
+ "$$events",
759
+ "$$legacy",
760
+ "value"
761
+ ]), J = M.from_html("<input/>");
762
+ function pe(e, t) {
763
+ M.push(t, !0);
764
+ let n = M.prop(t, "value", 15), r = M.rest_props(t, fe), i = M.derived(() => y(r, {
765
+ "aria-hidden": "true",
766
+ tabindex: -1,
767
+ style: {
768
+ ...P,
769
+ position: "absolute",
770
+ top: "0",
771
+ left: "0"
772
+ }
773
+ }));
774
+ var a = M.comment(), o = M.first_child(a), s = (e) => {
775
+ var t = J();
776
+ M.attribute_effect(t, () => ({
777
+ ...M.get(i),
778
+ value: n()
779
+ }), void 0, void 0, void 0, void 0, !0), M.append(e, t);
780
+ }, c = (e) => {
781
+ var t = J();
782
+ M.attribute_effect(t, () => ({ ...M.get(i) }), void 0, void 0, void 0, void 0, !0), M.bind_value(t, n), M.append(e, t);
783
+ };
784
+ M.if(o, (e) => {
785
+ M.get(i).type === "checkbox" ? e(s) : e(c, -1);
786
+ }), M.append(e, a), M.pop();
787
+ }
788
+ //#endregion
789
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte
790
+ function Y(e, n) {
791
+ M.push(n, !0);
792
+ let r = M.prop(n, "value", 15), i = ue.create({ value: t(() => r()) });
793
+ var a = M.comment(), o = M.first_child(a), s = (e) => {
794
+ pe(e, M.spread_props(() => i.props, {
795
+ get autocomplete() {
796
+ return n.autocomplete;
797
+ },
798
+ get value() {
799
+ return r();
800
+ },
801
+ set value(e) {
802
+ r(e);
803
+ }
804
+ }));
805
+ };
806
+ M.if(o, (e) => {
807
+ i.shouldRender && e(s);
808
+ }), M.append(e, a), M.pop();
809
+ }
810
+ //#endregion
811
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select.svelte
812
+ var me = M.from_html("<!> <!>", 1);
813
+ function he(e, n) {
814
+ M.push(n, !0);
815
+ let r = M.prop(n, "value", 15), i = M.prop(n, "onValueChange", 3, A), a = M.prop(n, "name", 3, ""), s = M.prop(n, "disabled", 3, !1), c = M.prop(n, "open", 15, !1), l = M.prop(n, "onOpenChange", 3, A), u = M.prop(n, "onOpenChangeComplete", 3, A), d = M.prop(n, "loop", 3, !1), f = M.prop(n, "scrollAlignment", 3, "nearest"), p = M.prop(n, "required", 3, !1), m = M.prop(n, "items", 19, () => []), h = M.prop(n, "allowDeselect", 3, !1);
816
+ function g() {
817
+ r() === void 0 && r(n.type === "single" ? "" : []);
818
+ }
819
+ g(), o.pre(() => r(), () => {
820
+ g();
821
+ });
822
+ let _ = M.state(""), v = K.create({
823
+ type: n.type,
824
+ value: t(() => r(), (e) => {
825
+ r(e), i()(e);
826
+ }),
827
+ disabled: t(() => s()),
828
+ required: t(() => p()),
829
+ open: t(() => c(), (e) => {
830
+ c(e), l()(e);
831
+ }),
832
+ loop: t(() => d()),
833
+ scrollAlignment: t(() => f()),
834
+ name: t(() => a()),
835
+ isCombobox: !1,
836
+ items: t(() => m()),
837
+ allowDeselect: t(() => h()),
838
+ inputValue: t(() => M.get(_), (e) => M.set(_, e, !0)),
839
+ onOpenChangeComplete: t(() => u())
840
+ });
841
+ var y = me(), b = M.first_child(y);
842
+ x(b, {
843
+ children: (e, t) => {
844
+ var r = M.comment(), i = M.first_child(r);
845
+ M.snippet(i, () => n.children ?? M.noop), M.append(e, r);
846
+ },
847
+ $$slots: { default: !0 }
848
+ });
849
+ var S = M.sibling(b, 2), C = (e) => {
850
+ var t = M.comment(), r = M.first_child(t), i = (e) => {
851
+ Y(e, { get autocomplete() {
852
+ return n.autocomplete;
853
+ } });
854
+ }, a = (e) => {
855
+ var t = M.comment(), r = M.first_child(t);
856
+ M.each(r, 16, () => v.opts.value.current, (e) => e, (e, t) => {
857
+ Y(e, {
858
+ get value() {
859
+ return t;
860
+ },
861
+ get autocomplete() {
862
+ return n.autocomplete;
863
+ }
864
+ });
865
+ }), M.append(e, t);
866
+ };
867
+ M.if(r, (e) => {
868
+ v.opts.value.current.length === 0 ? e(i) : e(a, -1);
869
+ }), M.append(e, t);
870
+ }, w = M.derived(() => Array.isArray(v.opts.value.current)), T = (e) => {
871
+ Y(e, {
872
+ get autocomplete() {
873
+ return n.autocomplete;
874
+ },
875
+ get value() {
876
+ return v.opts.value.current;
877
+ },
878
+ set value(e) {
879
+ v.opts.value.current = e;
880
+ }
881
+ });
882
+ };
883
+ M.if(S, (e) => {
884
+ M.get(w) ? e(C) : e(T, -1);
885
+ }), M.append(e, y), M.pop();
886
+ }
887
+ //#endregion
888
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-value.svelte
889
+ var ge = /* @__PURE__ */ new Set([
890
+ "$$slots",
891
+ "$$events",
892
+ "$$legacy",
893
+ "ref",
894
+ "id",
895
+ "placeholder",
896
+ "child",
897
+ "children"
898
+ ]), _e = M.from_html("<span><!></span>");
899
+ function X(e, n) {
900
+ let r = M.props_id();
901
+ M.push(n, !0);
902
+ let i = M.prop(n, "ref", 15, null), a = M.prop(n, "id", 19, () => T(r)), o = M.rest_props(n, ge), s = q.create({
903
+ id: t(() => a()),
904
+ ref: t(() => i(), (e) => i(e)),
905
+ placeholder: t(() => n.placeholder)
906
+ }), c = M.derived(() => y(o, s.props));
907
+ var l = M.comment(), u = M.first_child(l), d = (e) => {
908
+ var t = M.comment(), r = M.first_child(t);
909
+ {
910
+ let e = M.derived(() => ({
911
+ props: M.get(c),
912
+ ...s.snippetProps
913
+ }));
914
+ M.snippet(r, () => n.child, () => M.get(e));
915
+ }
916
+ M.append(e, t);
917
+ }, f = (e) => {
918
+ var t = _e();
919
+ M.attribute_effect(t, () => ({ ...M.get(c) }));
920
+ var r = M.child(t), i = (e) => {
921
+ var t = M.comment(), r = M.first_child(t);
922
+ M.snippet(r, () => n.children ?? M.noop, () => s.snippetProps), M.append(e, t);
923
+ }, a = (e) => {
924
+ var t = M.text();
925
+ M.template_effect(() => M.set_text(t, s.snippetProps.selection.selected?.label ?? n.placeholder)), M.append(e, t);
926
+ }, o = (e) => {
927
+ var t = M.text();
928
+ M.template_effect((e) => M.set_text(t, e), [() => s.snippetProps.selection.selected.length > 0 ? s.snippetProps.selection.selected.map((e) => e.label).join(", ") : n.placeholder]), M.append(e, t);
929
+ }, l = (e) => {
930
+ var t = M.text();
931
+ M.template_effect(() => M.set_text(t, n.placeholder)), M.append(e, t);
932
+ };
933
+ M.if(r, (e) => {
934
+ n.children ? e(i) : s.snippetProps.selection.type === "single" ? e(a, 1) : s.snippetProps.selection.type === "multiple" && s.snippetProps.selection.selected ? e(o, 2) : e(l, -1);
935
+ }), M.reset(t), M.append(e, t);
936
+ };
937
+ M.if(u, (e) => {
938
+ n.child ? e(d) : e(f, -1);
939
+ }), M.append(e, l), M.pop();
940
+ }
941
+ //#endregion
942
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-content.svelte
943
+ var ve = /* @__PURE__ */ new Set([
944
+ "$$slots",
945
+ "$$events",
946
+ "$$legacy",
947
+ "id",
948
+ "ref",
949
+ "forceMount",
950
+ "side",
951
+ "onInteractOutside",
952
+ "onEscapeKeydown",
953
+ "children",
954
+ "child",
955
+ "preventScroll",
956
+ "style"
957
+ ]), Z = M.from_html("<div><div><!></div></div>");
958
+ function ye(e, n) {
959
+ let r = M.props_id();
960
+ M.push(n, !0);
961
+ let i = M.prop(n, "id", 19, () => T(r)), a = M.prop(n, "ref", 15, null), o = M.prop(n, "forceMount", 3, !1), s = M.prop(n, "side", 3, "bottom"), c = M.prop(n, "onInteractOutside", 3, A), l = M.prop(n, "onEscapeKeydown", 3, A), u = M.prop(n, "preventScroll", 3, !1), d = M.rest_props(n, ve), f = ce.create({
962
+ id: t(() => i()),
963
+ ref: t(() => a(), (e) => a(e)),
964
+ onInteractOutside: t(() => c()),
965
+ onEscapeKeydown: t(() => l())
966
+ }), p = M.derived(() => y(d, f.props));
967
+ var m = M.comment(), h = M.first_child(m), g = (e) => {
968
+ ne(e, M.spread_props(() => M.get(p), () => f.popperProps, {
969
+ get ref() {
970
+ return f.opts.ref;
971
+ },
972
+ get side() {
973
+ return s();
974
+ },
975
+ get enabled() {
976
+ return f.root.opts.open.current;
977
+ },
978
+ get id() {
979
+ return i();
980
+ },
981
+ get preventScroll() {
982
+ return u();
983
+ },
984
+ forceMount: !0,
985
+ get shouldRender() {
986
+ return f.shouldRender;
987
+ },
988
+ popper: (e, t) => {
989
+ let r = () => (t?.()).props, i = () => (t?.()).wrapperProps, a = M.derived(() => y(r(), { style: f.props.style }, { style: n.style }));
990
+ var o = M.comment(), s = M.first_child(o), c = (e) => {
991
+ var t = M.comment(), r = M.first_child(t);
992
+ {
993
+ let e = M.derived(() => ({
994
+ props: M.get(a),
995
+ wrapperProps: i(),
996
+ ...f.snippetProps
997
+ }));
998
+ M.snippet(r, () => n.child, () => M.get(e));
999
+ }
1000
+ M.append(e, t);
1001
+ }, l = (e) => {
1002
+ var t = Z();
1003
+ M.attribute_effect(t, () => ({ ...i() }));
1004
+ var r = M.child(t);
1005
+ M.attribute_effect(r, () => ({ ...M.get(a) }));
1006
+ var o = M.child(r);
1007
+ M.snippet(o, () => n.children ?? M.noop), M.reset(r), M.reset(t), M.append(e, t);
1008
+ };
1009
+ M.if(s, (e) => {
1010
+ n.child ? e(c) : e(l, -1);
1011
+ }), M.append(e, o);
1012
+ },
1013
+ $$slots: { popper: !0 }
1014
+ }));
1015
+ }, _ = (e) => {
1016
+ O(e, M.spread_props(() => M.get(p), () => f.popperProps, {
1017
+ get ref() {
1018
+ return f.opts.ref;
1019
+ },
1020
+ get side() {
1021
+ return s();
1022
+ },
1023
+ get open() {
1024
+ return f.root.opts.open.current;
1025
+ },
1026
+ get id() {
1027
+ return i();
1028
+ },
1029
+ get preventScroll() {
1030
+ return u();
1031
+ },
1032
+ forceMount: !1,
1033
+ get shouldRender() {
1034
+ return f.shouldRender;
1035
+ },
1036
+ popper: (e, t) => {
1037
+ let r = () => (t?.()).props, i = () => (t?.()).wrapperProps, a = M.derived(() => y(r(), { style: f.props.style }, { style: n.style }));
1038
+ var o = M.comment(), s = M.first_child(o), c = (e) => {
1039
+ var t = M.comment(), r = M.first_child(t);
1040
+ {
1041
+ let e = M.derived(() => ({
1042
+ props: M.get(a),
1043
+ wrapperProps: i(),
1044
+ ...f.snippetProps
1045
+ }));
1046
+ M.snippet(r, () => n.child, () => M.get(e));
1047
+ }
1048
+ M.append(e, t);
1049
+ }, l = (e) => {
1050
+ var t = Z();
1051
+ M.attribute_effect(t, () => ({ ...i() }));
1052
+ var r = M.child(t);
1053
+ M.attribute_effect(r, () => ({ ...M.get(a) }));
1054
+ var o = M.child(r);
1055
+ M.snippet(o, () => n.children ?? M.noop), M.reset(r), M.reset(t), M.append(e, t);
1056
+ };
1057
+ M.if(s, (e) => {
1058
+ n.child ? e(c) : e(l, -1);
1059
+ }), M.append(e, o);
1060
+ },
1061
+ $$slots: { popper: !0 }
1062
+ }));
1063
+ };
1064
+ M.if(h, (e) => {
1065
+ o() ? e(g) : o() || e(_, 1);
1066
+ }), M.append(e, m), M.pop();
1067
+ }
1068
+ //#endregion
1069
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/utilities/mounted.svelte
1070
+ function be(e, t) {
1071
+ M.push(t, !0);
1072
+ let n = M.prop(t, "mounted", 15, !1), r = M.prop(t, "onMountedChange", 3, A);
1073
+ F(() => (n(!0), r()(!0), () => {
1074
+ n(!1), r()(!1);
1075
+ })), M.pop();
1076
+ }
1077
+ //#endregion
1078
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-item.svelte
1079
+ var xe = /* @__PURE__ */ new Set([
1080
+ "$$slots",
1081
+ "$$events",
1082
+ "$$legacy",
1083
+ "id",
1084
+ "ref",
1085
+ "value",
1086
+ "label",
1087
+ "disabled",
1088
+ "children",
1089
+ "child",
1090
+ "onHighlight",
1091
+ "onUnhighlight"
1092
+ ]), Se = M.from_html("<div><!></div>"), Ce = M.from_html("<!> <!>", 1);
1093
+ function we(e, n) {
1094
+ let r = M.props_id();
1095
+ M.push(n, !0);
1096
+ let i = M.prop(n, "id", 19, () => T(r)), a = M.prop(n, "ref", 15, null), o = M.prop(n, "label", 19, () => n.value), s = M.prop(n, "disabled", 3, !1), c = M.prop(n, "onHighlight", 3, A), l = M.prop(n, "onUnhighlight", 3, A), u = M.rest_props(n, xe), d = le.create({
1097
+ id: t(() => i()),
1098
+ ref: t(() => a(), (e) => a(e)),
1099
+ value: t(() => n.value),
1100
+ disabled: t(() => s()),
1101
+ label: t(() => o()),
1102
+ onHighlight: t(() => c()),
1103
+ onUnhighlight: t(() => l())
1104
+ }), f = M.derived(() => y(u, d.props));
1105
+ var p = Ce(), m = M.first_child(p), h = (e) => {
1106
+ var t = M.comment(), r = M.first_child(t);
1107
+ {
1108
+ let e = M.derived(() => ({
1109
+ props: M.get(f),
1110
+ ...d.snippetProps
1111
+ }));
1112
+ M.snippet(r, () => n.child, () => M.get(e));
1113
+ }
1114
+ M.append(e, t);
1115
+ }, g = (e) => {
1116
+ var t = Se();
1117
+ M.attribute_effect(t, () => ({ ...M.get(f) }));
1118
+ var r = M.child(t);
1119
+ M.snippet(r, () => n.children ?? M.noop, () => d.snippetProps), M.reset(t), M.append(e, t);
1120
+ };
1121
+ M.if(m, (e) => {
1122
+ n.child ? e(h) : e(g, -1);
1123
+ }), be(M.sibling(m, 2), {
1124
+ get mounted() {
1125
+ return d.mounted;
1126
+ },
1127
+ set mounted(e) {
1128
+ d.mounted = e;
1129
+ }
1130
+ }), M.append(e, p), M.pop();
1131
+ }
1132
+ //#endregion
1133
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte
1134
+ var Te = /* @__PURE__ */ new Set([
1135
+ "$$slots",
1136
+ "$$events",
1137
+ "$$legacy",
1138
+ "id",
1139
+ "ref",
1140
+ "child",
1141
+ "children",
1142
+ "type"
1143
+ ]), Ee = M.from_html("<button><!></button>");
1144
+ function Q(e, n) {
1145
+ let r = M.props_id();
1146
+ M.push(n, !0);
1147
+ let i = M.prop(n, "id", 19, () => T(r)), a = M.prop(n, "ref", 15, null), o = M.prop(n, "type", 3, "button"), s = M.rest_props(n, Te), c = se.create({
1148
+ id: t(() => i()),
1149
+ ref: t(() => a(), (e) => a(e))
1150
+ }), l = M.derived(() => y(s, c.props, { type: o() }));
1151
+ var u = M.comment(), d = M.first_child(u);
1152
+ M.component(d, () => k, (e, t) => {
1153
+ t(e, {
1154
+ get id() {
1155
+ return i();
1156
+ },
1157
+ get ref() {
1158
+ return c.opts.ref;
1159
+ },
1160
+ children: (e, t) => {
1161
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1162
+ var t = M.comment(), r = M.first_child(t);
1163
+ M.snippet(r, () => n.child, () => ({ props: M.get(l) })), M.append(e, t);
1164
+ }, o = (e) => {
1165
+ var t = Ee();
1166
+ M.attribute_effect(t, () => ({ ...M.get(l) }));
1167
+ var r = M.child(t);
1168
+ M.snippet(r, () => n.children ?? M.noop), M.reset(t), M.append(e, t);
1169
+ };
1170
+ M.if(i, (e) => {
1171
+ n.child ? e(a) : e(o, -1);
1172
+ }), M.append(e, r);
1173
+ },
1174
+ $$slots: { default: !0 }
1175
+ });
1176
+ }), M.append(e, u), M.pop();
1177
+ }
1178
+ //#endregion
1179
+ //#region ../node_modules/.bun/bits-ui@2.18.1+203cd734255b50e4/node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte
1180
+ var De = /* @__PURE__ */ new Set([
1181
+ "$$slots",
1182
+ "$$events",
1183
+ "$$legacy",
1184
+ "id",
1185
+ "ref",
1186
+ "children",
1187
+ "child"
1188
+ ]), $ = M.from_html("<div><!></div>");
1189
+ function Oe(e, n) {
1190
+ let r = M.props_id();
1191
+ M.push(n, !0);
1192
+ let i = M.prop(n, "id", 19, () => T(r)), a = M.prop(n, "ref", 15, null), o = M.rest_props(n, De), s = de.create({
1193
+ id: t(() => i()),
1194
+ ref: t(() => a(), (e) => a(e))
1195
+ }), c = M.derived(() => y(o, s.props));
1196
+ var l = M.comment(), u = M.first_child(l), d = (e) => {
1197
+ var t = M.comment(), r = M.first_child(t);
1198
+ M.snippet(r, () => n.child, () => ({ props: M.get(c) })), M.append(e, t);
1199
+ }, f = (e) => {
1200
+ var t = $();
1201
+ M.attribute_effect(t, () => ({ ...M.get(c) }));
1202
+ var r = M.child(t);
1203
+ M.snippet(r, () => n.children ?? M.noop), M.reset(t), M.append(e, t);
1204
+ };
1205
+ M.if(u, (e) => {
1206
+ n.child ? e(d) : e(f, -1);
1207
+ }), M.append(e, l), M.pop();
1208
+ }
1209
+ //#endregion
1210
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select.svelte
1211
+ var ke = /* @__PURE__ */ new Set([
1212
+ "$$slots",
1213
+ "$$events",
1214
+ "$$legacy",
1215
+ "value",
1216
+ "children"
1217
+ ]);
1218
+ function Ae(e, t) {
1219
+ M.push(t, !0);
1220
+ let n = M.prop(t, "value", 15), r = M.rest_props(t, ke);
1221
+ var i = M.comment(), a = M.first_child(i);
1222
+ M.component(a, () => he, (e, i) => {
1223
+ i(e, M.spread_props(() => r, {
1224
+ get value() {
1225
+ return n();
1226
+ },
1227
+ set value(e) {
1228
+ n(e);
1229
+ },
1230
+ children: (e, n) => {
1231
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1232
+ var n = M.comment(), r = M.first_child(n);
1233
+ M.snippet(r, () => t.children), M.append(e, n);
1234
+ };
1235
+ M.if(i, (e) => {
1236
+ t.children && e(a);
1237
+ }), M.append(e, r);
1238
+ },
1239
+ $$slots: { default: !0 }
1240
+ }));
1241
+ }), M.append(e, i), M.pop();
1242
+ }
1243
+ //#endregion
1244
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-content.svelte
1245
+ var je = /* @__PURE__ */ new Set([
1246
+ "$$slots",
1247
+ "$$events",
1248
+ "$$legacy",
1249
+ "ref",
1250
+ "class",
1251
+ "sideOffset",
1252
+ "children"
1253
+ ]);
1254
+ function Me(t, n) {
1255
+ M.push(n, !0);
1256
+ let r = M.prop(n, "ref", 15, null), i = M.prop(n, "sideOffset", 3, 4), a = M.rest_props(n, je);
1257
+ var o = M.comment(), s = M.first_child(o);
1258
+ {
1259
+ let t = M.derived(() => e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md", n.class));
1260
+ M.component(s, () => ye, (e, o) => {
1261
+ o(e, M.spread_props({
1262
+ get sideOffset() {
1263
+ return i();
1264
+ },
1265
+ get class() {
1266
+ return M.get(t);
1267
+ }
1268
+ }, () => a, {
1269
+ get ref() {
1270
+ return r();
1271
+ },
1272
+ set ref(e) {
1273
+ r(e);
1274
+ },
1275
+ children: (e, t) => {
1276
+ var r = M.comment(), i = M.first_child(r);
1277
+ M.component(i, () => Oe, (e, t) => {
1278
+ t(e, {
1279
+ class: "p-1",
1280
+ children: (e, t) => {
1281
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1282
+ var t = M.comment(), r = M.first_child(t);
1283
+ M.snippet(r, () => n.children), M.append(e, t);
1284
+ };
1285
+ M.if(i, (e) => {
1286
+ n.children && e(a);
1287
+ }), M.append(e, r);
1288
+ },
1289
+ $$slots: { default: !0 }
1290
+ });
1291
+ }), M.append(e, r);
1292
+ },
1293
+ $$slots: { default: !0 }
1294
+ }));
1295
+ });
1296
+ }
1297
+ M.append(t, o), M.pop();
1298
+ }
1299
+ //#endregion
1300
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-item.svelte
1301
+ var Ne = /* @__PURE__ */ new Set([
1302
+ "$$slots",
1303
+ "$$events",
1304
+ "$$legacy",
1305
+ "ref",
1306
+ "class",
1307
+ "children"
1308
+ ]);
1309
+ function Pe(t, n) {
1310
+ M.push(n, !0);
1311
+ let r = M.prop(n, "ref", 15, null), i = M.rest_props(n, Ne);
1312
+ var a = M.comment(), o = M.first_child(a);
1313
+ {
1314
+ let t = M.derived(() => e("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 pr-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", n.class));
1315
+ M.component(o, () => we, (e, a) => {
1316
+ a(e, M.spread_props({ get class() {
1317
+ return M.get(t);
1318
+ } }, () => i, {
1319
+ get ref() {
1320
+ return r();
1321
+ },
1322
+ set ref(e) {
1323
+ r(e);
1324
+ },
1325
+ children: (e, t) => {
1326
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1327
+ var t = M.comment(), r = M.first_child(t);
1328
+ M.snippet(r, () => n.children), M.append(e, t);
1329
+ };
1330
+ M.if(i, (e) => {
1331
+ n.children && e(a);
1332
+ }), M.append(e, r);
1333
+ },
1334
+ $$slots: { default: !0 }
1335
+ }));
1336
+ });
1337
+ }
1338
+ M.append(t, a), M.pop();
1339
+ }
1340
+ //#endregion
1341
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-trigger.svelte
1342
+ var Fe = /* @__PURE__ */ new Set([
1343
+ "$$slots",
1344
+ "$$events",
1345
+ "$$legacy",
1346
+ "ref",
1347
+ "class",
1348
+ "child",
1349
+ "children"
1350
+ ]);
1351
+ function Ie(t, n) {
1352
+ M.push(n, !0);
1353
+ let r = M.prop(n, "ref", 15, null), i = M.rest_props(n, Fe);
1354
+ var a = M.comment(), o = M.first_child(a), s = (t) => {
1355
+ let a = (e, t = M.noop) => {
1356
+ var r = M.comment(), i = M.first_child(r);
1357
+ M.snippet(i, () => n.child ?? M.noop, t), M.append(e, r);
1358
+ };
1359
+ var o = M.comment(), s = M.first_child(o);
1360
+ {
1361
+ let t = M.derived(() => e("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", n.class));
1362
+ M.component(s, () => Q, (e, n) => {
1363
+ n(e, M.spread_props(() => i, {
1364
+ get child() {
1365
+ return a;
1366
+ },
1367
+ get class() {
1368
+ return M.get(t);
1369
+ },
1370
+ get ref() {
1371
+ return r();
1372
+ },
1373
+ set ref(e) {
1374
+ r(e);
1375
+ }
1376
+ }));
1377
+ });
1378
+ }
1379
+ M.append(t, o);
1380
+ }, c = (t) => {
1381
+ var a = M.comment(), o = M.first_child(a);
1382
+ {
1383
+ let t = M.derived(() => e("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", n.class));
1384
+ M.component(o, () => Q, (e, a) => {
1385
+ a(e, M.spread_props(() => i, {
1386
+ get class() {
1387
+ return M.get(t);
1388
+ },
1389
+ get ref() {
1390
+ return r();
1391
+ },
1392
+ set ref(e) {
1393
+ r(e);
1394
+ },
1395
+ children: (e, t) => {
1396
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1397
+ var t = M.comment(), r = M.first_child(t);
1398
+ M.snippet(r, () => n.children), M.append(e, t);
1399
+ };
1400
+ M.if(i, (e) => {
1401
+ n.children && e(a);
1402
+ }), M.append(e, r);
1403
+ },
1404
+ $$slots: { default: !0 }
1405
+ }));
1406
+ });
1407
+ }
1408
+ M.append(t, a);
1409
+ };
1410
+ M.if(o, (e) => {
1411
+ n.child ? e(s) : e(c, -1);
1412
+ }), M.append(t, a), M.pop();
1413
+ }
1414
+ //#endregion
1415
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-value.svelte
1416
+ var Le = /* @__PURE__ */ new Set([
1417
+ "$$slots",
1418
+ "$$events",
1419
+ "$$legacy",
1420
+ "children"
1421
+ ]);
1422
+ function Re(e, t) {
1423
+ let n = M.rest_props(t, Le);
1424
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1425
+ var r = M.comment(), i = M.first_child(r);
1426
+ M.component(i, () => X, (e, r) => {
1427
+ r(e, M.spread_props(() => n, {
1428
+ children: (e, n) => {
1429
+ var r = M.comment(), i = M.first_child(r);
1430
+ M.snippet(i, () => t.children), M.append(e, r);
1431
+ },
1432
+ $$slots: { default: !0 }
1433
+ }));
1434
+ }), M.append(e, r);
1435
+ }, o = (e) => {
1436
+ var t = M.comment(), r = M.first_child(t);
1437
+ M.component(r, () => X, (e, t) => {
1438
+ t(e, M.spread_props(() => n));
1439
+ }), M.append(e, t);
1440
+ };
1441
+ M.if(i, (e) => {
1442
+ t.children ? e(a) : e(o, -1);
1443
+ }), M.append(e, r);
1444
+ }
1445
+ //#endregion
1446
+ export { Ae as a, Me as i, Ie as n, Pe as r, Re as t };