@deck9/ui 0.12.13 → 0.13.2

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.
@@ -0,0 +1,3894 @@
1
+ import { defineComponent as T, computed as S, openBlock as N, createBlock as Q, unref as k, mergeProps as Yt, createCommentVNode as A, createElementBlock as R, normalizeClass as L, createElementVNode as I, toDisplayString as K, createVNode as H, ref as O, getCurrentInstance as go, onMounted as ue, watch as Oe, Fragment as Fe, withDirectives as bo, vModelText as yo, normalizeStyle as wo, cloneVNode as xo, h as Ye, inject as ze, provide as Be, watchEffect as De, nextTick as q, onUnmounted as wt, toRaw as ne, withCtx as Z, renderSlot as En, Teleport as _o, Transition as Qn, normalizeProps as Eo, guardReactiveProps as So, resolveDynamicComponent as Oo, isRef as No, renderList as er, createTextVNode as Do } from "vue";
2
+ import { FontAwesomeIcon as Po } from "@fortawesome/vue-fontawesome";
3
+ import { library as Xt } from "@fortawesome/fontawesome-svg-core";
4
+ import * as b from "@fortawesome/free-solid-svg-icons";
5
+ var Co = {
6
+ prefix: "fab",
7
+ iconName: "linkedin",
8
+ icon: [448, 512, [], "f08c", "M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]
9
+ }, ko = {
10
+ prefix: "fab",
11
+ iconName: "instagram",
12
+ icon: [448, 512, [], "f16d", "M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]
13
+ }, Ro = {
14
+ prefix: "fab",
15
+ iconName: "facebook",
16
+ icon: [512, 512, [62e3], "f09a", "M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"]
17
+ }, $o = {
18
+ prefix: "fab",
19
+ iconName: "github",
20
+ icon: [496, 512, [], "f09b", "M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]
21
+ }, Io = {
22
+ prefix: "fab",
23
+ iconName: "twitter",
24
+ icon: [512, 512, [], "f099", "M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]
25
+ }, tr = "fas", nr = "numeric-input", rr = 512, or = 512, $t = [], sr = "", ir = "m409.445 111 2.112.004c34.066.146 46.74 3.848 59.517 10.681 13.037 6.973 23.268 17.204 30.24 30.241l.415.782c6.705 12.782 10.271 25.9 10.271 60.847v72.002c-.15 34.066-3.852 46.74-10.685 59.517-6.973 13.037-17.204 23.268-30.241 30.24l-.782.415C457.51 382.434 444.392 386 409.445 386h-306.89l-2.112-.004c-34.066-.146-46.74-3.848-59.517-10.681-13.037-6.973-23.268-17.204-30.24-30.241l-.415-.782C3.566 331.51 0 318.392 0 283.445v-69.89c0-35.66 3.713-48.592 10.685-61.629 6.973-13.037 17.204-23.268 30.241-30.24l.782-.415C54.49 114.566 67.608 111 102.555 111h306.89Zm.806 36H102.555l-2.387.005c-22.69.089-31.789 1.488-39.667 5.128l-.523.246c-.696.332-1.385.683-2.074 1.052-6.764 3.617-11.856 8.71-15.473 15.473l-.282.533c-4.492 8.62-6.116 17.401-6.148 43.312v71.502l.012 3.09c.161 24.044 1.9 32.308 6.418 40.755 3.617 6.764 8.71 11.856 15.473 15.473l.533.282c8.62 4.492 17.401 6.116 43.312 6.149h307.696c27.078 0 35.763-1.677 44.651-6.43 6.764-3.618 11.856-8.71 15.473-15.474l.282-.533c4.492-8.62 6.116-17.401 6.149-43.312v-70.696c0-27.078-1.677-35.763-6.43-44.651-3.618-6.764-8.71-11.856-15.474-15.473l-.533-.282c-8.62-4.492-17.401-6.116-43.312-6.149Zm-164.715 19c11.682 0 22.013 1.976 30.994 5.929 8.98 3.952 16.005 9.38 21.074 16.284 5.07 6.904 7.578 14.797 7.527 23.677.103 8.829-2.92 16.066-9.07 21.713-6.15 5.646-13.935 8.983-23.353 10.01v1.231c12.764 1.386 22.362 5.274 28.794 11.665 6.433 6.39 9.598 14.411 9.496 24.061.051 9.24-2.715 17.427-8.299 24.562-5.584 7.135-13.33 12.73-23.236 16.785-9.907 4.055-21.319 6.083-34.236 6.083-12.454 0-23.506-2.143-33.156-6.43-9.65-4.285-17.227-10.201-22.734-17.747-5.506-7.545-8.286-16.22-8.337-26.025h43.23c.051 3.029.99 5.737 2.817 8.124 1.827 2.386 4.336 4.247 7.527 5.582 3.19 1.334 6.845 2.002 10.962 2.002 3.962 0 7.462-.706 10.498-2.118 3.037-1.411 5.404-3.375 7.102-5.89 1.699-2.515 2.522-5.39 2.47-8.623.052-3.183-.913-6.006-2.894-8.47-1.982-2.464-4.748-4.389-8.299-5.775-3.55-1.386-7.642-2.079-12.274-2.079h-16.057v-29.566h16.057c4.271 0 8.041-.693 11.31-2.08 3.267-1.385 5.815-3.31 7.642-5.774s2.714-5.287 2.663-8.47c.051-3.08-.695-5.8-2.239-8.161-1.544-2.361-3.692-4.21-6.446-5.544-2.753-1.334-5.93-2.002-9.533-2.002-3.912 0-7.398.693-10.46 2.08-3.063 1.385-5.468 3.31-7.218 5.774s-2.65 5.287-2.702 8.47h-41.068c.051-9.65 2.715-18.172 7.99-25.563 5.275-7.392 12.518-13.192 21.73-17.401 9.212-4.21 19.788-6.314 31.728-6.314Zm-133.074 0c12.615 0 23.55 2.017 32.807 6.05 9.257 4.033 16.41 9.698 21.462 16.994 5.051 7.296 7.577 15.851 7.577 25.665 0 6.063-1.257 12.087-3.77 18.073-2.512 5.986-7.025 12.601-13.538 19.846-6.513 7.245-15.77 15.877-27.77 25.896l-14.768 12.331v.925H176V326H55.077v-30.829l58.77-48.709c3.897-3.237 7.243-6.28 10.038-9.133 2.794-2.851 4.948-5.793 6.461-8.824 1.513-3.032 2.27-6.397 2.27-10.097 0-4.059-.86-7.527-2.578-10.404-1.717-2.877-4.09-5.1-7.115-6.667-3.026-1.567-6.513-2.35-10.461-2.35-3.95 0-7.424.796-10.424 2.389-3 1.593-5.32 3.93-6.961 7.013-1.641 3.083-2.462 6.834-2.462 11.253H52c0-11.099 2.487-20.655 7.462-28.67 4.974-8.016 12-14.182 21.076-18.498 9.077-4.316 19.718-6.474 31.924-6.474Z";
26
+ const Sn = {
27
+ prefix: tr,
28
+ iconName: nr,
29
+ icon: [rr, or, $t, sr, ir]
30
+ }, To = {
31
+ definition: Sn,
32
+ faAlignJustify: Sn,
33
+ prefix: tr,
34
+ iconName: nr,
35
+ width: rr,
36
+ height: or,
37
+ ligatures: $t,
38
+ unicode: sr,
39
+ svgPathData: ir,
40
+ aliases: $t
41
+ };
42
+ Xt.add(
43
+ b.faArrowUp19,
44
+ b.faAt,
45
+ b.faBold,
46
+ b.faBolt,
47
+ b.faCalendar,
48
+ b.faChartPie,
49
+ b.faCheck,
50
+ b.faCheckCircle,
51
+ b.faChevronDown,
52
+ b.faChevronLeft,
53
+ b.faChevronRight,
54
+ b.faChevronUp,
55
+ b.faCircleCheck,
56
+ b.faCircleNotch,
57
+ b.faClipboard,
58
+ b.faCloudDownload,
59
+ b.faCloudUpload,
60
+ b.faCog,
61
+ b.faCrown,
62
+ b.faDoorOpen,
63
+ b.faDotCircle,
64
+ b.faEllipsis,
65
+ b.faEllipsisVertical,
66
+ b.faEnvelope,
67
+ b.faExclamationTriangle,
68
+ b.faExternalLink,
69
+ b.faEyeDropper,
70
+ b.faFileLines,
71
+ b.faFileUpload,
72
+ b.faFilter,
73
+ b.faFingerprint,
74
+ b.faGlobe,
75
+ b.faGripHorizontal,
76
+ b.faGripVertical,
77
+ b.faHandPointRight,
78
+ b.faHashtag,
79
+ b.faHeart,
80
+ b.faInfoCircle,
81
+ b.faItalic,
82
+ b.faLink,
83
+ b.faLock,
84
+ b.faLockOpen,
85
+ b.faMedal,
86
+ b.faMessage,
87
+ b.faPencilAlt,
88
+ b.faPenToSquare,
89
+ b.faPhone,
90
+ b.faPlayCircle,
91
+ b.faPlus,
92
+ b.faPlusCircle,
93
+ b.faPoo,
94
+ b.faPuzzlePiece,
95
+ b.faReply,
96
+ b.faReplyAll,
97
+ b.faRobot,
98
+ b.faSave,
99
+ b.faShield,
100
+ b.faSignal,
101
+ b.faSignature,
102
+ b.faSquareCheck,
103
+ b.faStar,
104
+ b.faTimes,
105
+ b.faTrash,
106
+ b.faTree,
107
+ b.faTrophy,
108
+ b.faTurnDown,
109
+ b.faUpload,
110
+ b.faUser,
111
+ b.faUserShield,
112
+ // Brands
113
+ Io,
114
+ ko,
115
+ $o,
116
+ Co,
117
+ Ro,
118
+ // Custom
119
+ To.definition
120
+ );
121
+ const Vo = [...Object.keys(Xt.definitions.fas)].sort(), On = [...Object.keys(Xt.definitions.fab)].sort(), X = /* @__PURE__ */ T({
122
+ __name: "Icon",
123
+ props: {
124
+ name: { default: "user" }
125
+ },
126
+ setup(e) {
127
+ const t = e, n = S(() => On.includes(t.name) ? "fab" : "fas"), o = S(() => Vo.includes(t.name) || On.includes(t.name) ? !0 : (console.warn(
128
+ "could not load icon, because it is not available",
129
+ t.name
130
+ ), !1));
131
+ return (r, s) => o.value ? (N(), Q(k(Po), Yt({
132
+ key: 0,
133
+ icon: [n.value, r.name]
134
+ }, r.$attrs), null, 16, ["icon"])) : A("", !0);
135
+ }
136
+ }), Mo = ["aria-label", "tabindex"], Lo = {
137
+ key: 0,
138
+ class: "absolute inset-0 flex items-center justify-center"
139
+ }, Ml = /* @__PURE__ */ T({
140
+ __name: "Button",
141
+ props: {
142
+ label: {},
143
+ size: { default: "medium" },
144
+ color: { default: "primary" },
145
+ isLoading: { type: Boolean, default: !1 },
146
+ isDisabled: { type: Boolean, default: !1 },
147
+ icon: {},
148
+ iconPosition: { default: "right" }
149
+ },
150
+ emits: ["onClick"],
151
+ setup(e, { emit: t }) {
152
+ const n = t, o = e, r = S(() => {
153
+ const a = {
154
+ "text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900": o.color === "primary",
155
+ "text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900": o.color === "light",
156
+ "text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900": o.color === "dark",
157
+ "text-red-50 bg-red-500 border-transparent hover:bg-red-600 active:bg-red-600 ring-red-400 dark:ring-red-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-red-900": o.color === "danger"
158
+ }, c = {
159
+ "pointer-events-none opacity-75 cursor-not-allowed": o.isDisabled
160
+ }, u = {
161
+ "px-4 py-1 text-xs leading-5 mono-100 rounded-lg": o.size === "small",
162
+ "px-5 py-2 text-sm leading-4 font-medium rounded-lg": o.size === "medium",
163
+ "px-8 py-3 text-base leading-6 font-medium rounded-lg": o.size === "large"
164
+ };
165
+ return {
166
+ ...a,
167
+ ...c,
168
+ ...u
169
+ };
170
+ }), s = S(() => {
171
+ const a = {
172
+ "mr-2 -ml-1": ["small", "medium"].includes(o.size) && o.iconPosition === "left",
173
+ "mr-4 -ml-2": ["large"].includes(o.size) && o.iconPosition === "left"
174
+ }, c = {
175
+ "ml-3 -mr-1": ["small", "medium"].includes(o.size) && o.iconPosition === "right",
176
+ "ml-3 -mr-3": ["large"].includes(o.size) && o.iconPosition === "right"
177
+ }, u = {
178
+ "text-white": o.color === "primary",
179
+ "text-blue-600": o.color === "light",
180
+ "text-grey-50": o.color === "dark"
181
+ };
182
+ return {
183
+ ...a,
184
+ ...c,
185
+ ...u
186
+ };
187
+ });
188
+ function i() {
189
+ o.isDisabled || n("onClick");
190
+ }
191
+ return (a, c) => (N(), R("button", {
192
+ class: L(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out", r.value]),
193
+ type: "button",
194
+ "aria-label": a.label,
195
+ tabindex: a.isDisabled ? "-1" : void 0,
196
+ onClick: i
197
+ }, [
198
+ I("div", {
199
+ class: L(!a.isLoading || "invisible")
200
+ }, [
201
+ a.icon && a.iconPosition === "left" ? (N(), Q(X, {
202
+ key: 0,
203
+ name: a.icon,
204
+ class: L(s.value)
205
+ }, null, 8, ["name", "class"])) : A("", !0),
206
+ I("span", null, K(a.label), 1),
207
+ a.icon && a.iconPosition === "right" ? (N(), Q(X, {
208
+ key: 1,
209
+ name: a.icon,
210
+ class: L(s.value)
211
+ }, null, 8, ["name", "class"])) : A("", !0)
212
+ ], 2),
213
+ a.isLoading ? (N(), R("span", Lo, [
214
+ H(X, {
215
+ class: "animate-spin",
216
+ name: "circle-notch"
217
+ })
218
+ ])) : A("", !0)
219
+ ], 10, Mo));
220
+ }
221
+ });
222
+ let tt;
223
+ const jo = new Uint8Array(16);
224
+ function Ao() {
225
+ if (!tt && (tt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !tt))
226
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
227
+ return tt(jo);
228
+ }
229
+ const F = [];
230
+ for (let e = 0; e < 256; ++e)
231
+ F.push((e + 256).toString(16).slice(1));
232
+ function Fo(e, t = 0) {
233
+ return F[e[t + 0]] + F[e[t + 1]] + F[e[t + 2]] + F[e[t + 3]] + "-" + F[e[t + 4]] + F[e[t + 5]] + "-" + F[e[t + 6]] + F[e[t + 7]] + "-" + F[e[t + 8]] + F[e[t + 9]] + "-" + F[e[t + 10]] + F[e[t + 11]] + F[e[t + 12]] + F[e[t + 13]] + F[e[t + 14]] + F[e[t + 15]];
234
+ }
235
+ const zo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Nn = {
236
+ randomUUID: zo
237
+ };
238
+ function ar(e, t, n) {
239
+ if (Nn.randomUUID && !t && !e)
240
+ return Nn.randomUUID();
241
+ e = e || {};
242
+ const o = e.random || (e.rng || Ao)();
243
+ if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, t) {
244
+ n = n || 0;
245
+ for (let r = 0; r < 16; ++r)
246
+ t[n + r] = o[r];
247
+ return t;
248
+ }
249
+ return Fo(o);
250
+ }
251
+ const Bo = { class: "relative flex items-start" }, Ho = { class: "flex items-center h-5" }, Uo = ["checked", "id"], Wo = { class: "ml-2 text-sm leading-5" }, Ko = ["for"], qo = {
252
+ key: 0,
253
+ class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
254
+ }, Ll = /* @__PURE__ */ T({
255
+ __name: "Checkbox",
256
+ props: {
257
+ id: { default: ar() },
258
+ label: {},
259
+ modelValue: { type: Boolean },
260
+ description: {}
261
+ },
262
+ emits: ["update:modelValue"],
263
+ setup(e, { emit: t }) {
264
+ const n = t, o = (r) => {
265
+ n("update:modelValue", r.target.checked);
266
+ };
267
+ return (r, s) => (N(), R("div", Bo, [
268
+ I("div", Ho, [
269
+ I("input", {
270
+ class: "h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",
271
+ type: "checkbox",
272
+ checked: r.modelValue,
273
+ onChange: o,
274
+ id: r.id
275
+ }, null, 40, Uo)
276
+ ]),
277
+ I("div", Wo, [
278
+ I("label", {
279
+ for: r.id,
280
+ class: "font-medium text-grey-700 dark:text-grey-200 casual-25"
281
+ }, K(r.label), 9, Ko),
282
+ r.description ? (N(), R("p", qo, K(r.description), 1)) : A("", !0)
283
+ ])
284
+ ]));
285
+ }
286
+ });
287
+ function Go() {
288
+ const e = O(!1);
289
+ return go() && ue(() => {
290
+ e.value = !0;
291
+ }), e;
292
+ }
293
+ function Yo(e) {
294
+ const t = Go();
295
+ return S(() => (t.value, !!e()));
296
+ }
297
+ function Xo(e = {}) {
298
+ const { initialValue: t = "" } = e, n = Yo(() => typeof window < "u" && "EyeDropper" in window), o = O(t);
299
+ async function r(s) {
300
+ if (!n.value)
301
+ return;
302
+ const a = await new window.EyeDropper().open(s);
303
+ return o.value = a.sRGBHex, a;
304
+ }
305
+ return { isSupported: n, sRGBHex: o, open: r };
306
+ }
307
+ function Jo(e, t) {
308
+ const n = /* @__PURE__ */ Object.create(null), o = e.split(",");
309
+ for (let r = 0; r < o.length; r++)
310
+ n[o[r]] = !0;
311
+ return t ? (r) => !!n[r.toLowerCase()] : (r) => !!n[r];
312
+ }
313
+ const he = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
314
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
315
+ const Jt = () => {
316
+ }, Zo = /^on[^a-z]/, Qo = (e) => Zo.test(e), ce = Object.assign, es = (e, t) => {
317
+ const n = e.indexOf(t);
318
+ n > -1 && e.splice(n, 1);
319
+ }, ts = Object.prototype.hasOwnProperty, j = (e, t) => ts.call(e, t), V = Array.isArray, Te = (e) => _t(e) === "[object Map]", ns = (e) => _t(e) === "[object Set]", z = (e) => typeof e == "function", se = (e) => typeof e == "string", xt = (e) => typeof e == "symbol", ie = (e) => e !== null && typeof e == "object", rs = (e) => (ie(e) || z(e)) && z(e.then) && z(e.catch), os = Object.prototype.toString, _t = (e) => os.call(e), lr = (e) => _t(e).slice(8, -1), ss = (e) => _t(e) === "[object Object]", Zt = (e) => se(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, is = (e) => {
320
+ const t = /* @__PURE__ */ Object.create(null);
321
+ return (n) => t[n] || (t[n] = e(n));
322
+ }, as = is((e) => e.charAt(0).toUpperCase() + e.slice(1)), Le = (e, t) => !Object.is(e, t), ls = (e, t, n) => {
323
+ Object.defineProperty(e, t, {
324
+ configurable: !0,
325
+ enumerable: !1,
326
+ value: n
327
+ });
328
+ };
329
+ let Dn;
330
+ const It = () => Dn || (Dn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
331
+ function Qt(e) {
332
+ if (V(e)) {
333
+ const t = {};
334
+ for (let n = 0; n < e.length; n++) {
335
+ const o = e[n], r = se(o) ? fs(o) : Qt(o);
336
+ if (r)
337
+ for (const s in r)
338
+ t[s] = r[s];
339
+ }
340
+ return t;
341
+ } else if (se(e) || ie(e))
342
+ return e;
343
+ }
344
+ const us = /;(?![^(]*\))/g, cs = /:([^]+)/, ds = /\/\*[^]*?\*\//g;
345
+ function fs(e) {
346
+ const t = {};
347
+ return e.replace(ds, "").split(us).forEach((n) => {
348
+ if (n) {
349
+ const o = n.split(cs);
350
+ o.length > 1 && (t[o[0].trim()] = o[1].trim());
351
+ }
352
+ }), t;
353
+ }
354
+ function en(e) {
355
+ let t = "";
356
+ if (se(e))
357
+ t = e;
358
+ else if (V(e))
359
+ for (let n = 0; n < e.length; n++) {
360
+ const o = en(e[n]);
361
+ o && (t += o + " ");
362
+ }
363
+ else if (ie(e))
364
+ for (const n in e)
365
+ e[n] && (t += n + " ");
366
+ return t.trim();
367
+ }
368
+ function Pn(e, ...t) {
369
+ console.warn(`[Vue warn] ${e}`, ...t);
370
+ }
371
+ let ur;
372
+ function ps(e, t = ur) {
373
+ t && t.active && t.effects.push(e);
374
+ }
375
+ function vs() {
376
+ return ur;
377
+ }
378
+ const Xe = (e) => {
379
+ const t = new Set(e);
380
+ return t.w = 0, t.n = 0, t;
381
+ }, cr = (e) => (e.w & xe) > 0, dr = (e) => (e.n & xe) > 0, hs = ({ deps: e }) => {
382
+ if (e.length)
383
+ for (let t = 0; t < e.length; t++)
384
+ e[t].w |= xe;
385
+ }, ms = (e) => {
386
+ const { deps: t } = e;
387
+ if (t.length) {
388
+ let n = 0;
389
+ for (let o = 0; o < t.length; o++) {
390
+ const r = t[o];
391
+ cr(r) && !dr(r) ? r.delete(e) : t[n++] = r, r.w &= ~xe, r.n &= ~xe;
392
+ }
393
+ t.length = n;
394
+ }
395
+ }, Tt = /* @__PURE__ */ new WeakMap();
396
+ let We = 0, xe = 1;
397
+ const Vt = 30;
398
+ let U;
399
+ const _e = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Mt = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
400
+ class fr {
401
+ constructor(t, n = null, o) {
402
+ this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, ps(this, o);
403
+ }
404
+ run() {
405
+ if (!this.active)
406
+ return this.fn();
407
+ let t = U, n = ye;
408
+ for (; t; ) {
409
+ if (t === this)
410
+ return;
411
+ t = t.parent;
412
+ }
413
+ try {
414
+ return this.parent = U, U = this, ye = !0, xe = 1 << ++We, We <= Vt ? hs(this) : Cn(this), this.fn();
415
+ } finally {
416
+ We <= Vt && ms(this), xe = 1 << --We, U = this.parent, ye = n, this.parent = void 0, this.deferStop && this.stop();
417
+ }
418
+ }
419
+ stop() {
420
+ U === this ? this.deferStop = !0 : this.active && (Cn(this), this.onStop && this.onStop(), this.active = !1);
421
+ }
422
+ }
423
+ function Cn(e) {
424
+ const { deps: t } = e;
425
+ if (t.length) {
426
+ for (let n = 0; n < t.length; n++)
427
+ t[n].delete(e);
428
+ t.length = 0;
429
+ }
430
+ }
431
+ let ye = !0;
432
+ const pr = [];
433
+ function vr() {
434
+ pr.push(ye), ye = !1;
435
+ }
436
+ function hr() {
437
+ const e = pr.pop();
438
+ ye = e === void 0 ? !0 : e;
439
+ }
440
+ function G(e, t, n) {
441
+ if (ye && U) {
442
+ let o = Tt.get(e);
443
+ o || Tt.set(e, o = /* @__PURE__ */ new Map());
444
+ let r = o.get(n);
445
+ r || o.set(n, r = Xe());
446
+ const s = process.env.NODE_ENV !== "production" ? { effect: U, target: e, type: t, key: n } : void 0;
447
+ Lt(r, s);
448
+ }
449
+ }
450
+ function Lt(e, t) {
451
+ let n = !1;
452
+ We <= Vt ? dr(e) || (e.n |= xe, n = !cr(e)) : n = !e.has(U), n && (e.add(U), U.deps.push(e), process.env.NODE_ENV !== "production" && U.onTrack && U.onTrack(
453
+ ce(
454
+ {
455
+ effect: U
456
+ },
457
+ t
458
+ )
459
+ ));
460
+ }
461
+ function we(e, t, n, o, r, s) {
462
+ const i = Tt.get(e);
463
+ if (!i)
464
+ return;
465
+ let a = [];
466
+ if (t === "clear")
467
+ a = [...i.values()];
468
+ else if (n === "length" && V(e)) {
469
+ const u = Number(o);
470
+ i.forEach((l, d) => {
471
+ (d === "length" || !xt(d) && d >= u) && a.push(l);
472
+ });
473
+ } else
474
+ switch (n !== void 0 && a.push(i.get(n)), t) {
475
+ case "add":
476
+ V(e) ? Zt(n) && a.push(i.get("length")) : (a.push(i.get(_e)), Te(e) && a.push(i.get(Mt)));
477
+ break;
478
+ case "delete":
479
+ V(e) || (a.push(i.get(_e)), Te(e) && a.push(i.get(Mt)));
480
+ break;
481
+ case "set":
482
+ Te(e) && a.push(i.get(_e));
483
+ break;
484
+ }
485
+ const c = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: o, oldValue: r, oldTarget: s } : void 0;
486
+ if (a.length === 1)
487
+ a[0] && (process.env.NODE_ENV !== "production" ? Re(a[0], c) : Re(a[0]));
488
+ else {
489
+ const u = [];
490
+ for (const l of a)
491
+ l && u.push(...l);
492
+ process.env.NODE_ENV !== "production" ? Re(Xe(u), c) : Re(Xe(u));
493
+ }
494
+ }
495
+ function Re(e, t) {
496
+ const n = V(e) ? e : [...e];
497
+ for (const o of n)
498
+ o.computed && kn(o, t);
499
+ for (const o of n)
500
+ o.computed || kn(o, t);
501
+ }
502
+ function kn(e, t) {
503
+ (e !== U || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(ce({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
504
+ }
505
+ const gs = /* @__PURE__ */ Jo("__proto__,__v_isRef,__isVue"), mr = new Set(
506
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(xt)
507
+ ), Rn = /* @__PURE__ */ bs();
508
+ function bs() {
509
+ const e = {};
510
+ return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
511
+ e[t] = function(...n) {
512
+ const o = C(this);
513
+ for (let s = 0, i = this.length; s < i; s++)
514
+ G(o, "get", s + "");
515
+ const r = o[t](...n);
516
+ return r === -1 || r === !1 ? o[t](...n.map(C)) : r;
517
+ };
518
+ }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
519
+ e[t] = function(...n) {
520
+ vr();
521
+ const o = C(this)[t].apply(this, n);
522
+ return hr(), o;
523
+ };
524
+ }), e;
525
+ }
526
+ function ys(e) {
527
+ const t = C(this);
528
+ return G(t, "has", e), t.hasOwnProperty(e);
529
+ }
530
+ class gr {
531
+ constructor(t = !1, n = !1) {
532
+ this._isReadonly = t, this._shallow = n;
533
+ }
534
+ get(t, n, o) {
535
+ const r = this._isReadonly, s = this._shallow;
536
+ if (n === "__v_isReactive")
537
+ return !r;
538
+ if (n === "__v_isReadonly")
539
+ return r;
540
+ if (n === "__v_isShallow")
541
+ return s;
542
+ if (n === "__v_raw" && o === (r ? s ? _r : xr : s ? $s : wr).get(t))
543
+ return t;
544
+ const i = V(t);
545
+ if (!r) {
546
+ if (i && j(Rn, n))
547
+ return Reflect.get(Rn, n, o);
548
+ if (n === "hasOwnProperty")
549
+ return ys;
550
+ }
551
+ const a = Reflect.get(t, n, o);
552
+ return (xt(n) ? mr.has(n) : gs(n)) || (r || G(t, "get", n), s) ? a : J(a) ? i && Zt(n) ? a : a.value : ie(a) ? r ? Sr(a) : Er(a) : a;
553
+ }
554
+ }
555
+ class ws extends gr {
556
+ constructor(t = !1) {
557
+ super(!1, t);
558
+ }
559
+ set(t, n, o, r) {
560
+ let s = t[n];
561
+ if (Je(s) && J(s) && !J(o))
562
+ return !1;
563
+ if (!this._shallow && (!jt(o) && !Je(o) && (s = C(s), o = C(o)), !V(t) && J(s) && !J(o)))
564
+ return s.value = o, !0;
565
+ const i = V(t) && Zt(n) ? Number(n) < t.length : j(t, n), a = Reflect.set(t, n, o, r);
566
+ return t === C(r) && (i ? Le(o, s) && we(t, "set", n, o, s) : we(t, "add", n, o)), a;
567
+ }
568
+ deleteProperty(t, n) {
569
+ const o = j(t, n), r = t[n], s = Reflect.deleteProperty(t, n);
570
+ return s && o && we(t, "delete", n, void 0, r), s;
571
+ }
572
+ has(t, n) {
573
+ const o = Reflect.has(t, n);
574
+ return (!xt(n) || !mr.has(n)) && G(t, "has", n), o;
575
+ }
576
+ ownKeys(t) {
577
+ return G(
578
+ t,
579
+ "iterate",
580
+ V(t) ? "length" : _e
581
+ ), Reflect.ownKeys(t);
582
+ }
583
+ }
584
+ class br extends gr {
585
+ constructor(t = !1) {
586
+ super(!0, t);
587
+ }
588
+ set(t, n) {
589
+ return process.env.NODE_ENV !== "production" && Pn(
590
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
591
+ t
592
+ ), !0;
593
+ }
594
+ deleteProperty(t, n) {
595
+ return process.env.NODE_ENV !== "production" && Pn(
596
+ `Delete operation on key "${String(n)}" failed: target is readonly.`,
597
+ t
598
+ ), !0;
599
+ }
600
+ }
601
+ const xs = /* @__PURE__ */ new ws(), _s = /* @__PURE__ */ new br(), Es = /* @__PURE__ */ new br(!0), tn = (e) => e, Et = (e) => Reflect.getPrototypeOf(e);
602
+ function nt(e, t, n = !1, o = !1) {
603
+ e = e.__v_raw;
604
+ const r = C(e), s = C(t);
605
+ n || (Le(t, s) && G(r, "get", t), G(r, "get", s));
606
+ const { has: i } = Et(r), a = o ? tn : n ? sn : on;
607
+ if (i.call(r, t))
608
+ return a(e.get(t));
609
+ if (i.call(r, s))
610
+ return a(e.get(s));
611
+ e !== r && e.get(t);
612
+ }
613
+ function rt(e, t = !1) {
614
+ const n = this.__v_raw, o = C(n), r = C(e);
615
+ return t || (Le(e, r) && G(o, "has", e), G(o, "has", r)), e === r ? n.has(e) : n.has(e) || n.has(r);
616
+ }
617
+ function ot(e, t = !1) {
618
+ return e = e.__v_raw, !t && G(C(e), "iterate", _e), Reflect.get(e, "size", e);
619
+ }
620
+ function $n(e) {
621
+ e = C(e);
622
+ const t = C(this);
623
+ return Et(t).has.call(t, e) || (t.add(e), we(t, "add", e, e)), this;
624
+ }
625
+ function In(e, t) {
626
+ t = C(t);
627
+ const n = C(this), { has: o, get: r } = Et(n);
628
+ let s = o.call(n, e);
629
+ s ? process.env.NODE_ENV !== "production" && yr(n, o, e) : (e = C(e), s = o.call(n, e));
630
+ const i = r.call(n, e);
631
+ return n.set(e, t), s ? Le(t, i) && we(n, "set", e, t, i) : we(n, "add", e, t), this;
632
+ }
633
+ function Tn(e) {
634
+ const t = C(this), { has: n, get: o } = Et(t);
635
+ let r = n.call(t, e);
636
+ r ? process.env.NODE_ENV !== "production" && yr(t, n, e) : (e = C(e), r = n.call(t, e));
637
+ const s = o ? o.call(t, e) : void 0, i = t.delete(e);
638
+ return r && we(t, "delete", e, void 0, s), i;
639
+ }
640
+ function Vn() {
641
+ const e = C(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? Te(e) ? new Map(e) : new Set(e) : void 0, o = e.clear();
642
+ return t && we(e, "clear", void 0, void 0, n), o;
643
+ }
644
+ function st(e, t) {
645
+ return function(o, r) {
646
+ const s = this, i = s.__v_raw, a = C(i), c = t ? tn : e ? sn : on;
647
+ return !e && G(a, "iterate", _e), i.forEach((u, l) => o.call(r, c(u), c(l), s));
648
+ };
649
+ }
650
+ function it(e, t, n) {
651
+ return function(...o) {
652
+ const r = this.__v_raw, s = C(r), i = Te(s), a = e === "entries" || e === Symbol.iterator && i, c = e === "keys" && i, u = r[e](...o), l = n ? tn : t ? sn : on;
653
+ return !t && G(
654
+ s,
655
+ "iterate",
656
+ c ? Mt : _e
657
+ ), {
658
+ // iterator protocol
659
+ next() {
660
+ const { value: d, done: p } = u.next();
661
+ return p ? { value: d, done: p } : {
662
+ value: a ? [l(d[0]), l(d[1])] : l(d),
663
+ done: p
664
+ };
665
+ },
666
+ // iterable protocol
667
+ [Symbol.iterator]() {
668
+ return this;
669
+ }
670
+ };
671
+ };
672
+ }
673
+ function ve(e) {
674
+ return function(...t) {
675
+ if (process.env.NODE_ENV !== "production") {
676
+ const n = t[0] ? `on key "${t[0]}" ` : "";
677
+ console.warn(
678
+ `${as(e)} operation ${n}failed: target is readonly.`,
679
+ C(this)
680
+ );
681
+ }
682
+ return e === "delete" ? !1 : this;
683
+ };
684
+ }
685
+ function Ss() {
686
+ const e = {
687
+ get(s) {
688
+ return nt(this, s);
689
+ },
690
+ get size() {
691
+ return ot(this);
692
+ },
693
+ has: rt,
694
+ add: $n,
695
+ set: In,
696
+ delete: Tn,
697
+ clear: Vn,
698
+ forEach: st(!1, !1)
699
+ }, t = {
700
+ get(s) {
701
+ return nt(this, s, !1, !0);
702
+ },
703
+ get size() {
704
+ return ot(this);
705
+ },
706
+ has: rt,
707
+ add: $n,
708
+ set: In,
709
+ delete: Tn,
710
+ clear: Vn,
711
+ forEach: st(!1, !0)
712
+ }, n = {
713
+ get(s) {
714
+ return nt(this, s, !0);
715
+ },
716
+ get size() {
717
+ return ot(this, !0);
718
+ },
719
+ has(s) {
720
+ return rt.call(this, s, !0);
721
+ },
722
+ add: ve("add"),
723
+ set: ve("set"),
724
+ delete: ve("delete"),
725
+ clear: ve("clear"),
726
+ forEach: st(!0, !1)
727
+ }, o = {
728
+ get(s) {
729
+ return nt(this, s, !0, !0);
730
+ },
731
+ get size() {
732
+ return ot(this, !0);
733
+ },
734
+ has(s) {
735
+ return rt.call(this, s, !0);
736
+ },
737
+ add: ve("add"),
738
+ set: ve("set"),
739
+ delete: ve("delete"),
740
+ clear: ve("clear"),
741
+ forEach: st(!0, !0)
742
+ };
743
+ return ["keys", "values", "entries", Symbol.iterator].forEach((s) => {
744
+ e[s] = it(
745
+ s,
746
+ !1,
747
+ !1
748
+ ), n[s] = it(
749
+ s,
750
+ !0,
751
+ !1
752
+ ), t[s] = it(
753
+ s,
754
+ !1,
755
+ !0
756
+ ), o[s] = it(
757
+ s,
758
+ !0,
759
+ !0
760
+ );
761
+ }), [
762
+ e,
763
+ n,
764
+ t,
765
+ o
766
+ ];
767
+ }
768
+ const [
769
+ Os,
770
+ Ns,
771
+ Ds,
772
+ Ps
773
+ ] = /* @__PURE__ */ Ss();
774
+ function nn(e, t) {
775
+ const n = t ? e ? Ps : Ds : e ? Ns : Os;
776
+ return (o, r, s) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? o : Reflect.get(
777
+ j(n, r) && r in o ? n : o,
778
+ r,
779
+ s
780
+ );
781
+ }
782
+ const Cs = {
783
+ get: /* @__PURE__ */ nn(!1, !1)
784
+ }, ks = {
785
+ get: /* @__PURE__ */ nn(!0, !1)
786
+ }, Rs = {
787
+ get: /* @__PURE__ */ nn(!0, !0)
788
+ };
789
+ function yr(e, t, n) {
790
+ const o = C(n);
791
+ if (o !== n && t.call(e, o)) {
792
+ const r = lr(e);
793
+ console.warn(
794
+ `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
795
+ );
796
+ }
797
+ }
798
+ const wr = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap();
799
+ function Is(e) {
800
+ switch (e) {
801
+ case "Object":
802
+ case "Array":
803
+ return 1;
804
+ case "Map":
805
+ case "Set":
806
+ case "WeakMap":
807
+ case "WeakSet":
808
+ return 2;
809
+ default:
810
+ return 0;
811
+ }
812
+ }
813
+ function Ts(e) {
814
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : Is(lr(e));
815
+ }
816
+ function Er(e) {
817
+ return Je(e) ? e : rn(
818
+ e,
819
+ !1,
820
+ xs,
821
+ Cs,
822
+ wr
823
+ );
824
+ }
825
+ function Sr(e) {
826
+ return rn(
827
+ e,
828
+ !0,
829
+ _s,
830
+ ks,
831
+ xr
832
+ );
833
+ }
834
+ function at(e) {
835
+ return rn(
836
+ e,
837
+ !0,
838
+ Es,
839
+ Rs,
840
+ _r
841
+ );
842
+ }
843
+ function rn(e, t, n, o, r) {
844
+ if (!ie(e))
845
+ return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
846
+ if (e.__v_raw && !(t && e.__v_isReactive))
847
+ return e;
848
+ const s = r.get(e);
849
+ if (s)
850
+ return s;
851
+ const i = Ts(e);
852
+ if (i === 0)
853
+ return e;
854
+ const a = new Proxy(
855
+ e,
856
+ i === 2 ? o : n
857
+ );
858
+ return r.set(e, a), a;
859
+ }
860
+ function Ve(e) {
861
+ return Je(e) ? Ve(e.__v_raw) : !!(e && e.__v_isReactive);
862
+ }
863
+ function Je(e) {
864
+ return !!(e && e.__v_isReadonly);
865
+ }
866
+ function jt(e) {
867
+ return !!(e && e.__v_isShallow);
868
+ }
869
+ function At(e) {
870
+ return Ve(e) || Je(e);
871
+ }
872
+ function C(e) {
873
+ const t = e && e.__v_raw;
874
+ return t ? C(t) : e;
875
+ }
876
+ function Vs(e) {
877
+ return ls(e, "__v_skip", !0), e;
878
+ }
879
+ const on = (e) => ie(e) ? Er(e) : e, sn = (e) => ie(e) ? Sr(e) : e;
880
+ function Ms(e) {
881
+ ye && U && (e = C(e), process.env.NODE_ENV !== "production" ? Lt(e.dep || (e.dep = Xe()), {
882
+ target: e,
883
+ type: "get",
884
+ key: "value"
885
+ }) : Lt(e.dep || (e.dep = Xe())));
886
+ }
887
+ function Ls(e, t) {
888
+ e = C(e);
889
+ const n = e.dep;
890
+ n && (process.env.NODE_ENV !== "production" ? Re(n, {
891
+ target: e,
892
+ type: "set",
893
+ key: "value",
894
+ newValue: t
895
+ }) : Re(n));
896
+ }
897
+ function J(e) {
898
+ return !!(e && e.__v_isRef === !0);
899
+ }
900
+ function js(e) {
901
+ return J(e) ? e.value : e;
902
+ }
903
+ const As = {
904
+ get: (e, t, n) => js(Reflect.get(e, t, n)),
905
+ set: (e, t, n, o) => {
906
+ const r = e[t];
907
+ return J(r) && !J(n) ? (r.value = n, !0) : Reflect.set(e, t, n, o);
908
+ }
909
+ };
910
+ function Fs(e) {
911
+ return Ve(e) ? e : new Proxy(e, As);
912
+ }
913
+ class zs {
914
+ constructor(t, n, o, r) {
915
+ this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this._dirty = !0, this.effect = new fr(t, () => {
916
+ this._dirty || (this._dirty = !0, Ls(this));
917
+ }), this.effect.computed = this, this.effect.active = this._cacheable = !r, this.__v_isReadonly = o;
918
+ }
919
+ get value() {
920
+ const t = C(this);
921
+ return Ms(t), (t._dirty || !t._cacheable) && (t._dirty = !1, t._value = t.effect.run()), t._value;
922
+ }
923
+ set value(t) {
924
+ this._setter(t);
925
+ }
926
+ }
927
+ function Bs(e, t, n = !1) {
928
+ let o, r;
929
+ const s = z(e);
930
+ s ? (o = e, r = process.env.NODE_ENV !== "production" ? () => {
931
+ console.warn("Write operation failed: computed value is readonly");
932
+ } : Jt) : (o = e.get, r = e.set);
933
+ const i = new zs(o, r, s || !r, n);
934
+ return process.env.NODE_ENV !== "production" && t && !n && (i.effect.onTrack = t.onTrack, i.effect.onTrigger = t.onTrigger), i;
935
+ }
936
+ const Ee = [];
937
+ function Hs(e) {
938
+ Ee.push(e);
939
+ }
940
+ function Us() {
941
+ Ee.pop();
942
+ }
943
+ function W(e, ...t) {
944
+ if (process.env.NODE_ENV === "production")
945
+ return;
946
+ vr();
947
+ const n = Ee.length ? Ee[Ee.length - 1].component : null, o = n && n.appContext.config.warnHandler, r = Ws();
948
+ if (o)
949
+ Se(
950
+ o,
951
+ n,
952
+ 11,
953
+ [
954
+ e + t.join(""),
955
+ n && n.proxy,
956
+ r.map(
957
+ ({ vnode: s }) => `at <${Ar(n, s.type)}>`
958
+ ).join(`
959
+ `),
960
+ r
961
+ ]
962
+ );
963
+ else {
964
+ const s = [`[Vue warn]: ${e}`, ...t];
965
+ r.length && s.push(`
966
+ `, ...Ks(r)), console.warn(...s);
967
+ }
968
+ hr();
969
+ }
970
+ function Ws() {
971
+ let e = Ee[Ee.length - 1];
972
+ if (!e)
973
+ return [];
974
+ const t = [];
975
+ for (; e; ) {
976
+ const n = t[0];
977
+ n && n.vnode === e ? n.recurseCount++ : t.push({
978
+ vnode: e,
979
+ recurseCount: 0
980
+ });
981
+ const o = e.component && e.component.parent;
982
+ e = o && o.vnode;
983
+ }
984
+ return t;
985
+ }
986
+ function Ks(e) {
987
+ const t = [];
988
+ return e.forEach((n, o) => {
989
+ t.push(...o === 0 ? [] : [`
990
+ `], ...qs(n));
991
+ }), t;
992
+ }
993
+ function qs({ vnode: e, recurseCount: t }) {
994
+ const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, r = ` at <${Ar(
995
+ e.component,
996
+ e.type,
997
+ o
998
+ )}`, s = ">" + n;
999
+ return e.props ? [r, ...Gs(e.props), s] : [r + s];
1000
+ }
1001
+ function Gs(e) {
1002
+ const t = [], n = Object.keys(e);
1003
+ return n.slice(0, 3).forEach((o) => {
1004
+ t.push(...Or(o, e[o]));
1005
+ }), n.length > 3 && t.push(" ..."), t;
1006
+ }
1007
+ function Or(e, t, n) {
1008
+ return se(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : J(t) ? (t = Or(e, C(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : z(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = C(t), n ? t : [`${e}=`, t]);
1009
+ }
1010
+ const Nr = {
1011
+ sp: "serverPrefetch hook",
1012
+ bc: "beforeCreate hook",
1013
+ c: "created hook",
1014
+ bm: "beforeMount hook",
1015
+ m: "mounted hook",
1016
+ bu: "beforeUpdate hook",
1017
+ u: "updated",
1018
+ bum: "beforeUnmount hook",
1019
+ um: "unmounted hook",
1020
+ a: "activated hook",
1021
+ da: "deactivated hook",
1022
+ ec: "errorCaptured hook",
1023
+ rtc: "renderTracked hook",
1024
+ rtg: "renderTriggered hook",
1025
+ 0: "setup function",
1026
+ 1: "render function",
1027
+ 2: "watcher getter",
1028
+ 3: "watcher callback",
1029
+ 4: "watcher cleanup function",
1030
+ 5: "native event handler",
1031
+ 6: "component event handler",
1032
+ 7: "vnode hook",
1033
+ 8: "directive hook",
1034
+ 9: "transition hook",
1035
+ 10: "app errorHandler",
1036
+ 11: "app warnHandler",
1037
+ 12: "ref function",
1038
+ 13: "async component loader",
1039
+ 14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
1040
+ };
1041
+ function Se(e, t, n, o) {
1042
+ let r;
1043
+ try {
1044
+ r = o ? e(...o) : e();
1045
+ } catch (s) {
1046
+ Dr(s, t, n);
1047
+ }
1048
+ return r;
1049
+ }
1050
+ function Ft(e, t, n, o) {
1051
+ if (z(e)) {
1052
+ const s = Se(e, t, n, o);
1053
+ return s && rs(s) && s.catch((i) => {
1054
+ Dr(i, t, n);
1055
+ }), s;
1056
+ }
1057
+ const r = [];
1058
+ for (let s = 0; s < e.length; s++)
1059
+ r.push(Ft(e[s], t, n, o));
1060
+ return r;
1061
+ }
1062
+ function Dr(e, t, n, o = !0) {
1063
+ const r = t ? t.vnode : null;
1064
+ if (t) {
1065
+ let s = t.parent;
1066
+ const i = t.proxy, a = process.env.NODE_ENV !== "production" ? Nr[n] : n;
1067
+ for (; s; ) {
1068
+ const u = s.ec;
1069
+ if (u) {
1070
+ for (let l = 0; l < u.length; l++)
1071
+ if (u[l](e, i, a) === !1)
1072
+ return;
1073
+ }
1074
+ s = s.parent;
1075
+ }
1076
+ const c = t.appContext.config.errorHandler;
1077
+ if (c) {
1078
+ Se(
1079
+ c,
1080
+ null,
1081
+ 10,
1082
+ [e, i, a]
1083
+ );
1084
+ return;
1085
+ }
1086
+ }
1087
+ Ys(e, n, r, o);
1088
+ }
1089
+ function Ys(e, t, n, o = !0) {
1090
+ if (process.env.NODE_ENV !== "production") {
1091
+ const r = Nr[t];
1092
+ if (n && Hs(n), W(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Us(), o)
1093
+ throw e;
1094
+ console.error(e);
1095
+ } else
1096
+ console.error(e);
1097
+ }
1098
+ let ht = !1, zt = !1;
1099
+ const re = [];
1100
+ let ge = 0;
1101
+ const Me = [];
1102
+ let le = null, me = 0;
1103
+ const Pr = /* @__PURE__ */ Promise.resolve();
1104
+ let an = null;
1105
+ const Xs = 100;
1106
+ function Js(e) {
1107
+ const t = an || Pr;
1108
+ return e ? t.then(this ? e.bind(this) : e) : t;
1109
+ }
1110
+ function Zs(e) {
1111
+ let t = ge + 1, n = re.length;
1112
+ for (; t < n; ) {
1113
+ const o = t + n >>> 1, r = re[o], s = Ze(r);
1114
+ s < e || s === e && r.pre ? t = o + 1 : n = o;
1115
+ }
1116
+ return t;
1117
+ }
1118
+ function ln(e) {
1119
+ (!re.length || !re.includes(
1120
+ e,
1121
+ ht && e.allowRecurse ? ge + 1 : ge
1122
+ )) && (e.id == null ? re.push(e) : re.splice(Zs(e.id), 0, e), Cr());
1123
+ }
1124
+ function Cr() {
1125
+ !ht && !zt && (zt = !0, an = Pr.then(Rr));
1126
+ }
1127
+ function kr(e) {
1128
+ V(e) ? Me.push(...e) : (!le || !le.includes(
1129
+ e,
1130
+ e.allowRecurse ? me + 1 : me
1131
+ )) && Me.push(e), Cr();
1132
+ }
1133
+ function Qs(e) {
1134
+ if (Me.length) {
1135
+ const t = [...new Set(Me)];
1136
+ if (Me.length = 0, le) {
1137
+ le.push(...t);
1138
+ return;
1139
+ }
1140
+ for (le = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), le.sort((n, o) => Ze(n) - Ze(o)), me = 0; me < le.length; me++)
1141
+ process.env.NODE_ENV !== "production" && $r(e, le[me]) || le[me]();
1142
+ le = null, me = 0;
1143
+ }
1144
+ }
1145
+ const Ze = (e) => e.id == null ? 1 / 0 : e.id, ei = (e, t) => {
1146
+ const n = Ze(e) - Ze(t);
1147
+ if (n === 0) {
1148
+ if (e.pre && !t.pre)
1149
+ return -1;
1150
+ if (t.pre && !e.pre)
1151
+ return 1;
1152
+ }
1153
+ return n;
1154
+ };
1155
+ function Rr(e) {
1156
+ zt = !1, ht = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), re.sort(ei);
1157
+ const t = process.env.NODE_ENV !== "production" ? (n) => $r(e, n) : Jt;
1158
+ try {
1159
+ for (ge = 0; ge < re.length; ge++) {
1160
+ const n = re[ge];
1161
+ if (n && n.active !== !1) {
1162
+ if (process.env.NODE_ENV !== "production" && t(n))
1163
+ continue;
1164
+ Se(n, null, 14);
1165
+ }
1166
+ }
1167
+ } finally {
1168
+ ge = 0, re.length = 0, Qs(e), ht = !1, an = null, (re.length || Me.length) && Rr(e);
1169
+ }
1170
+ }
1171
+ function $r(e, t) {
1172
+ if (!e.has(t))
1173
+ e.set(t, 1);
1174
+ else {
1175
+ const n = e.get(t);
1176
+ if (n > Xs) {
1177
+ const o = t.ownerInstance, r = o && jr(o.type);
1178
+ return W(
1179
+ `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`
1180
+ ), !0;
1181
+ } else
1182
+ e.set(t, n + 1);
1183
+ }
1184
+ }
1185
+ const Ue = /* @__PURE__ */ new Set();
1186
+ process.env.NODE_ENV !== "production" && (It().__VUE_HMR_RUNTIME__ = {
1187
+ createRecord: Pt(ti),
1188
+ rerender: Pt(ni),
1189
+ reload: Pt(ri)
1190
+ });
1191
+ const mt = /* @__PURE__ */ new Map();
1192
+ function ti(e, t) {
1193
+ return mt.has(e) ? !1 : (mt.set(e, {
1194
+ initialDef: qe(t),
1195
+ instances: /* @__PURE__ */ new Set()
1196
+ }), !0);
1197
+ }
1198
+ function qe(e) {
1199
+ return Fr(e) ? e.__vccOpts : e;
1200
+ }
1201
+ function ni(e, t) {
1202
+ const n = mt.get(e);
1203
+ n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
1204
+ t && (o.render = t, qe(o.type).render = t), o.renderCache = [], o.update();
1205
+ }));
1206
+ }
1207
+ function ri(e, t) {
1208
+ const n = mt.get(e);
1209
+ if (!n)
1210
+ return;
1211
+ t = qe(t), Mn(n.initialDef, t);
1212
+ const o = [...n.instances];
1213
+ for (const r of o) {
1214
+ const s = qe(r.type);
1215
+ Ue.has(s) || (s !== n.initialDef && Mn(s, t), Ue.add(s)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (Ue.add(s), r.ceReload(t.styles), Ue.delete(s)) : r.parent ? ln(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1216
+ "[HMR] Root or manually mounted instance modified. Full reload required."
1217
+ );
1218
+ }
1219
+ kr(() => {
1220
+ for (const r of o)
1221
+ Ue.delete(
1222
+ qe(r.type)
1223
+ );
1224
+ });
1225
+ }
1226
+ function Mn(e, t) {
1227
+ ce(e, t);
1228
+ for (const n in e)
1229
+ n !== "__file" && !(n in t) && delete e[n];
1230
+ }
1231
+ function Pt(e) {
1232
+ return (t, n) => {
1233
+ try {
1234
+ return e(t, n);
1235
+ } catch (o) {
1236
+ console.error(o), console.warn(
1237
+ "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1238
+ );
1239
+ }
1240
+ };
1241
+ }
1242
+ let be = null, oi = null;
1243
+ const si = Symbol.for("v-ndc"), ii = (e) => e.__isSuspense;
1244
+ function ai(e, t) {
1245
+ t && t.pendingBranch ? V(e) ? t.effects.push(...e) : t.effects.push(e) : kr(e);
1246
+ }
1247
+ const lt = {};
1248
+ function li(e, t, { immediate: n, deep: o, flush: r, onTrack: s, onTrigger: i } = he) {
1249
+ var a;
1250
+ process.env.NODE_ENV !== "production" && !t && (n !== void 0 && W(
1251
+ 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
1252
+ ), o !== void 0 && W(
1253
+ 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
1254
+ ));
1255
+ const c = (g) => {
1256
+ W(
1257
+ "Invalid watch source: ",
1258
+ g,
1259
+ "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
1260
+ );
1261
+ }, u = vs() === ((a = je) == null ? void 0 : a.scope) ? je : null;
1262
+ let l, d = !1, p = !1;
1263
+ if (J(e) ? (l = () => e.value, d = jt(e)) : Ve(e) ? (l = () => e, o = !0) : V(e) ? (p = !0, d = e.some((g) => Ve(g) || jt(g)), l = () => e.map((g) => {
1264
+ if (J(g))
1265
+ return g.value;
1266
+ if (Ve(g))
1267
+ return $e(g);
1268
+ if (z(g))
1269
+ return Se(g, u, 2);
1270
+ process.env.NODE_ENV !== "production" && c(g);
1271
+ })) : z(e) ? t ? l = () => Se(e, u, 2) : l = () => {
1272
+ if (!(u && u.isUnmounted))
1273
+ return v && v(), Ft(
1274
+ e,
1275
+ u,
1276
+ 3,
1277
+ [y]
1278
+ );
1279
+ } : (l = Jt, process.env.NODE_ENV !== "production" && c(e)), t && o) {
1280
+ const g = l;
1281
+ l = () => $e(g());
1282
+ }
1283
+ let v, y = (g) => {
1284
+ v = x.onStop = () => {
1285
+ Se(g, u, 4);
1286
+ };
1287
+ }, f = p ? new Array(e.length).fill(lt) : lt;
1288
+ const m = () => {
1289
+ if (x.active)
1290
+ if (t) {
1291
+ const g = x.run();
1292
+ (o || d || (p ? g.some((_, E) => Le(_, f[E])) : Le(g, f))) && (v && v(), Ft(t, u, 3, [
1293
+ g,
1294
+ // pass undefined as the old value when it's changed for the first time
1295
+ f === lt ? void 0 : p && f[0] === lt ? [] : f,
1296
+ y
1297
+ ]), f = g);
1298
+ } else
1299
+ x.run();
1300
+ };
1301
+ m.allowRecurse = !!t;
1302
+ let h;
1303
+ r === "sync" ? h = m : r === "post" ? h = () => zn(m, u && u.suspense) : (m.pre = !0, u && (m.id = u.uid), h = () => ln(m));
1304
+ const x = new fr(l, h);
1305
+ return process.env.NODE_ENV !== "production" && (x.onTrack = s, x.onTrigger = i), t ? n ? m() : f = x.run() : r === "post" ? zn(
1306
+ x.run.bind(x),
1307
+ u && u.suspense
1308
+ ) : x.run(), () => {
1309
+ x.stop(), u && u.scope && es(u.scope.effects, x);
1310
+ };
1311
+ }
1312
+ function ui(e, t, n) {
1313
+ const o = this.proxy, r = se(e) ? e.includes(".") ? ci(o, e) : () => o[e] : e.bind(o, o);
1314
+ let s;
1315
+ z(t) ? s = t : (s = t.handler, n = t);
1316
+ const i = je;
1317
+ Hn(this);
1318
+ const a = li(r, s.bind(o), n);
1319
+ return i ? Hn(i) : Di(), a;
1320
+ }
1321
+ function ci(e, t) {
1322
+ const n = t.split(".");
1323
+ return () => {
1324
+ let o = e;
1325
+ for (let r = 0; r < n.length && o; r++)
1326
+ o = o[n[r]];
1327
+ return o;
1328
+ };
1329
+ }
1330
+ function $e(e, t) {
1331
+ if (!ie(e) || e.__v_skip || (t = t || /* @__PURE__ */ new Set(), t.has(e)))
1332
+ return e;
1333
+ if (t.add(e), J(e))
1334
+ $e(e.value, t);
1335
+ else if (V(e))
1336
+ for (let n = 0; n < e.length; n++)
1337
+ $e(e[n], t);
1338
+ else if (ns(e) || Te(e))
1339
+ e.forEach((n) => {
1340
+ $e(n, t);
1341
+ });
1342
+ else if (ss(e))
1343
+ for (const n in e)
1344
+ $e(e[n], t);
1345
+ return e;
1346
+ }
1347
+ const Bt = (e) => e ? Pi(e) ? ki(e) || e.proxy : Bt(e.parent) : null, Ge = (
1348
+ // Move PURE marker to new line to workaround compiler discarding it
1349
+ // due to type annotation
1350
+ /* @__PURE__ */ ce(/* @__PURE__ */ Object.create(null), {
1351
+ $: (e) => e,
1352
+ $el: (e) => e.vnode.el,
1353
+ $data: (e) => e.data,
1354
+ $props: (e) => process.env.NODE_ENV !== "production" ? at(e.props) : e.props,
1355
+ $attrs: (e) => process.env.NODE_ENV !== "production" ? at(e.attrs) : e.attrs,
1356
+ $slots: (e) => process.env.NODE_ENV !== "production" ? at(e.slots) : e.slots,
1357
+ $refs: (e) => process.env.NODE_ENV !== "production" ? at(e.refs) : e.refs,
1358
+ $parent: (e) => Bt(e.parent),
1359
+ $root: (e) => Bt(e.root),
1360
+ $emit: (e) => e.emit,
1361
+ $options: (e) => pi(e),
1362
+ $forceUpdate: (e) => e.f || (e.f = () => ln(e.update)),
1363
+ $nextTick: (e) => e.n || (e.n = Js.bind(e.proxy)),
1364
+ $watch: (e) => ui.bind(e)
1365
+ })
1366
+ ), di = (e) => e === "_" || e === "$", Ct = (e, t) => e !== he && !e.__isScriptSetup && j(e, t), fi = {
1367
+ get({ _: e }, t) {
1368
+ const { ctx: n, setupState: o, data: r, props: s, accessCache: i, type: a, appContext: c } = e;
1369
+ if (process.env.NODE_ENV !== "production" && t === "__isVue")
1370
+ return !0;
1371
+ let u;
1372
+ if (t[0] !== "$") {
1373
+ const v = i[t];
1374
+ if (v !== void 0)
1375
+ switch (v) {
1376
+ case 1:
1377
+ return o[t];
1378
+ case 2:
1379
+ return r[t];
1380
+ case 4:
1381
+ return n[t];
1382
+ case 3:
1383
+ return s[t];
1384
+ }
1385
+ else {
1386
+ if (Ct(o, t))
1387
+ return i[t] = 1, o[t];
1388
+ if (r !== he && j(r, t))
1389
+ return i[t] = 2, r[t];
1390
+ if (
1391
+ // only cache other properties when instance has declared (thus stable)
1392
+ // props
1393
+ (u = e.propsOptions[0]) && j(u, t)
1394
+ )
1395
+ return i[t] = 3, s[t];
1396
+ if (n !== he && j(n, t))
1397
+ return i[t] = 4, n[t];
1398
+ i[t] = 0;
1399
+ }
1400
+ }
1401
+ const l = Ge[t];
1402
+ let d, p;
1403
+ if (l)
1404
+ return t === "$attrs" ? (G(e, "get", t), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && G(e, "get", t), l(e);
1405
+ if (
1406
+ // css module (injected by vue-loader)
1407
+ (d = a.__cssModules) && (d = d[t])
1408
+ )
1409
+ return d;
1410
+ if (n !== he && j(n, t))
1411
+ return i[t] = 4, n[t];
1412
+ if (
1413
+ // global properties
1414
+ p = c.config.globalProperties, j(p, t)
1415
+ )
1416
+ return p[t];
1417
+ process.env.NODE_ENV !== "production" && be && (!se(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1418
+ // to infinite warning loop
1419
+ t.indexOf("__v") !== 0) && (r !== he && di(t[0]) && j(r, t) ? W(
1420
+ `Property ${JSON.stringify(
1421
+ t
1422
+ )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
1423
+ ) : e === be && W(
1424
+ `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
1425
+ ));
1426
+ },
1427
+ set({ _: e }, t, n) {
1428
+ const { data: o, setupState: r, ctx: s } = e;
1429
+ return Ct(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup && j(r, t) ? (W(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== he && j(o, t) ? (o[t] = n, !0) : j(e.props, t) ? (process.env.NODE_ENV !== "production" && W(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && W(
1430
+ `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
1431
+ ), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
1432
+ enumerable: !0,
1433
+ configurable: !0,
1434
+ value: n
1435
+ }) : s[t] = n, !0);
1436
+ },
1437
+ has({
1438
+ _: { data: e, setupState: t, accessCache: n, ctx: o, appContext: r, propsOptions: s }
1439
+ }, i) {
1440
+ let a;
1441
+ return !!n[i] || e !== he && j(e, i) || Ct(t, i) || (a = s[0]) && j(a, i) || j(o, i) || j(Ge, i) || j(r.config.globalProperties, i);
1442
+ },
1443
+ defineProperty(e, t, n) {
1444
+ return n.get != null ? e._.accessCache[t] = 0 : j(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
1445
+ }
1446
+ };
1447
+ process.env.NODE_ENV !== "production" && (fi.ownKeys = (e) => (W(
1448
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1449
+ ), Reflect.ownKeys(e)));
1450
+ function Ln(e) {
1451
+ return V(e) ? e.reduce(
1452
+ (t, n) => (t[n] = null, t),
1453
+ {}
1454
+ ) : e;
1455
+ }
1456
+ function pi(e) {
1457
+ const t = e.type, { mixins: n, extends: o } = t, {
1458
+ mixins: r,
1459
+ optionsCache: s,
1460
+ config: { optionMergeStrategies: i }
1461
+ } = e.appContext, a = s.get(t);
1462
+ let c;
1463
+ return a ? c = a : !r.length && !n && !o ? c = t : (c = {}, r.length && r.forEach(
1464
+ (u) => gt(c, u, i, !0)
1465
+ ), gt(c, t, i)), ie(t) && s.set(t, c), c;
1466
+ }
1467
+ function gt(e, t, n, o = !1) {
1468
+ const { mixins: r, extends: s } = t;
1469
+ s && gt(e, s, n, !0), r && r.forEach(
1470
+ (i) => gt(e, i, n, !0)
1471
+ );
1472
+ for (const i in t)
1473
+ if (o && i === "expose")
1474
+ process.env.NODE_ENV !== "production" && W(
1475
+ '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
1476
+ );
1477
+ else {
1478
+ const a = vi[i] || n && n[i];
1479
+ e[i] = a ? a(e[i], t[i]) : t[i];
1480
+ }
1481
+ return e;
1482
+ }
1483
+ const vi = {
1484
+ data: jn,
1485
+ props: Fn,
1486
+ emits: Fn,
1487
+ // objects
1488
+ methods: Ke,
1489
+ computed: Ke,
1490
+ // lifecycle
1491
+ beforeCreate: B,
1492
+ created: B,
1493
+ beforeMount: B,
1494
+ mounted: B,
1495
+ beforeUpdate: B,
1496
+ updated: B,
1497
+ beforeDestroy: B,
1498
+ beforeUnmount: B,
1499
+ destroyed: B,
1500
+ unmounted: B,
1501
+ activated: B,
1502
+ deactivated: B,
1503
+ errorCaptured: B,
1504
+ serverPrefetch: B,
1505
+ // assets
1506
+ components: Ke,
1507
+ directives: Ke,
1508
+ // watch
1509
+ watch: mi,
1510
+ // provide / inject
1511
+ provide: jn,
1512
+ inject: hi
1513
+ };
1514
+ function jn(e, t) {
1515
+ return t ? e ? function() {
1516
+ return ce(
1517
+ z(e) ? e.call(this, this) : e,
1518
+ z(t) ? t.call(this, this) : t
1519
+ );
1520
+ } : t : e;
1521
+ }
1522
+ function hi(e, t) {
1523
+ return Ke(An(e), An(t));
1524
+ }
1525
+ function An(e) {
1526
+ if (V(e)) {
1527
+ const t = {};
1528
+ for (let n = 0; n < e.length; n++)
1529
+ t[e[n]] = e[n];
1530
+ return t;
1531
+ }
1532
+ return e;
1533
+ }
1534
+ function B(e, t) {
1535
+ return e ? [...new Set([].concat(e, t))] : t;
1536
+ }
1537
+ function Ke(e, t) {
1538
+ return e ? ce(/* @__PURE__ */ Object.create(null), e, t) : t;
1539
+ }
1540
+ function Fn(e, t) {
1541
+ return e ? V(e) && V(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : ce(
1542
+ /* @__PURE__ */ Object.create(null),
1543
+ Ln(e),
1544
+ Ln(t ?? {})
1545
+ ) : t;
1546
+ }
1547
+ function mi(e, t) {
1548
+ if (!e)
1549
+ return t;
1550
+ if (!t)
1551
+ return e;
1552
+ const n = ce(/* @__PURE__ */ Object.create(null), e);
1553
+ for (const o in t)
1554
+ n[o] = B(e[o], t[o]);
1555
+ return n;
1556
+ }
1557
+ const zn = ai, gi = (e) => e.__isTeleport, Ir = Symbol.for("v-fgt"), bi = Symbol.for("v-txt"), yi = Symbol.for("v-cmt");
1558
+ let Ie = null;
1559
+ function wi(e) {
1560
+ return e ? e.__v_isVNode === !0 : !1;
1561
+ }
1562
+ const xi = (...e) => Mr(
1563
+ ...e
1564
+ ), Tr = "__vInternal", Vr = ({ key: e }) => e ?? null, dt = ({
1565
+ ref: e,
1566
+ ref_key: t,
1567
+ ref_for: n
1568
+ }) => (typeof e == "number" && (e = "" + e), e != null ? se(e) || J(e) || z(e) ? { i: be, r: e, k: t, f: !!n } : e : null);
1569
+ function _i(e, t = null, n = null, o = 0, r = null, s = e === Ir ? 0 : 1, i = !1, a = !1) {
1570
+ const c = {
1571
+ __v_isVNode: !0,
1572
+ __v_skip: !0,
1573
+ type: e,
1574
+ props: t,
1575
+ key: t && Vr(t),
1576
+ ref: t && dt(t),
1577
+ scopeId: oi,
1578
+ slotScopeIds: null,
1579
+ children: n,
1580
+ component: null,
1581
+ suspense: null,
1582
+ ssContent: null,
1583
+ ssFallback: null,
1584
+ dirs: null,
1585
+ transition: null,
1586
+ el: null,
1587
+ anchor: null,
1588
+ target: null,
1589
+ targetAnchor: null,
1590
+ staticCount: 0,
1591
+ shapeFlag: s,
1592
+ patchFlag: o,
1593
+ dynamicProps: r,
1594
+ dynamicChildren: null,
1595
+ appContext: null,
1596
+ ctx: be
1597
+ };
1598
+ return a ? (un(c, n), s & 128 && e.normalize(c)) : n && (c.shapeFlag |= se(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && W("VNode created with invalid key (NaN). VNode type:", c.type), // avoid a block node from tracking itself
1599
+ !i && // has current parent block
1600
+ Ie && // presence of a patch flag indicates this node needs patching on updates.
1601
+ // component nodes also should always be patched, because even if the
1602
+ // component doesn't need to update, it needs to persist the instance on to
1603
+ // the next vnode so that it can be properly unmounted later.
1604
+ (c.patchFlag > 0 || s & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1605
+ // vnode should not be considered dynamic due to handler caching.
1606
+ c.patchFlag !== 32 && Ie.push(c), c;
1607
+ }
1608
+ const Ei = process.env.NODE_ENV !== "production" ? xi : Mr;
1609
+ function Mr(e, t = null, n = null, o = 0, r = null, s = !1) {
1610
+ if ((!e || e === si) && (process.env.NODE_ENV !== "production" && !e && W(`Invalid vnode type when creating vnode: ${e}.`), e = yi), wi(e)) {
1611
+ const a = bt(
1612
+ e,
1613
+ t,
1614
+ !0
1615
+ /* mergeRef: true */
1616
+ );
1617
+ return n && un(a, n), !s && Ie && (a.shapeFlag & 6 ? Ie[Ie.indexOf(e)] = a : Ie.push(a)), a.patchFlag |= -2, a;
1618
+ }
1619
+ if (Fr(e) && (e = e.__vccOpts), t) {
1620
+ t = Si(t);
1621
+ let { class: a, style: c } = t;
1622
+ a && !se(a) && (t.class = en(a)), ie(c) && (At(c) && !V(c) && (c = ce({}, c)), t.style = Qt(c));
1623
+ }
1624
+ const i = se(e) ? 1 : ii(e) ? 128 : gi(e) ? 64 : ie(e) ? 4 : z(e) ? 2 : 0;
1625
+ return process.env.NODE_ENV !== "production" && i & 4 && At(e) && (e = C(e), W(
1626
+ "Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1627
+ `
1628
+ Component that was made reactive: `,
1629
+ e
1630
+ )), _i(
1631
+ e,
1632
+ t,
1633
+ n,
1634
+ o,
1635
+ r,
1636
+ i,
1637
+ s,
1638
+ !0
1639
+ );
1640
+ }
1641
+ function Si(e) {
1642
+ return e ? At(e) || Tr in e ? ce({}, e) : e : null;
1643
+ }
1644
+ function bt(e, t, n = !1) {
1645
+ const { props: o, ref: r, patchFlag: s, children: i } = e, a = t ? Ni(o || {}, t) : o;
1646
+ return {
1647
+ __v_isVNode: !0,
1648
+ __v_skip: !0,
1649
+ type: e.type,
1650
+ props: a,
1651
+ key: a && Vr(a),
1652
+ ref: t && t.ref ? (
1653
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
1654
+ // if the vnode itself already has a ref, cloneVNode will need to merge
1655
+ // the refs so the single vnode can be set on multiple refs
1656
+ n && r ? V(r) ? r.concat(dt(t)) : [r, dt(t)] : dt(t)
1657
+ ) : r,
1658
+ scopeId: e.scopeId,
1659
+ slotScopeIds: e.slotScopeIds,
1660
+ children: process.env.NODE_ENV !== "production" && s === -1 && V(i) ? i.map(Lr) : i,
1661
+ target: e.target,
1662
+ targetAnchor: e.targetAnchor,
1663
+ staticCount: e.staticCount,
1664
+ shapeFlag: e.shapeFlag,
1665
+ // if the vnode is cloned with extra props, we can no longer assume its
1666
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1667
+ // note: preserve flag for fragments since they use the flag for children
1668
+ // fast paths only.
1669
+ patchFlag: t && e.type !== Ir ? s === -1 ? 16 : s | 16 : s,
1670
+ dynamicProps: e.dynamicProps,
1671
+ dynamicChildren: e.dynamicChildren,
1672
+ appContext: e.appContext,
1673
+ dirs: e.dirs,
1674
+ transition: e.transition,
1675
+ // These should technically only be non-null on mounted VNodes. However,
1676
+ // they *should* be copied for kept-alive vnodes. So we just always copy
1677
+ // them since them being non-null during a mount doesn't affect the logic as
1678
+ // they will simply be overwritten.
1679
+ component: e.component,
1680
+ suspense: e.suspense,
1681
+ ssContent: e.ssContent && bt(e.ssContent),
1682
+ ssFallback: e.ssFallback && bt(e.ssFallback),
1683
+ el: e.el,
1684
+ anchor: e.anchor,
1685
+ ctx: e.ctx,
1686
+ ce: e.ce
1687
+ };
1688
+ }
1689
+ function Lr(e) {
1690
+ const t = bt(e);
1691
+ return V(e.children) && (t.children = e.children.map(Lr)), t;
1692
+ }
1693
+ function Oi(e = " ", t = 0) {
1694
+ return Ei(bi, null, e, t);
1695
+ }
1696
+ function un(e, t) {
1697
+ let n = 0;
1698
+ const { shapeFlag: o } = e;
1699
+ if (t == null)
1700
+ t = null;
1701
+ else if (V(t))
1702
+ n = 16;
1703
+ else if (typeof t == "object")
1704
+ if (o & 65) {
1705
+ const r = t.default;
1706
+ r && (r._c && (r._d = !1), un(e, r()), r._c && (r._d = !0));
1707
+ return;
1708
+ } else {
1709
+ n = 32;
1710
+ const r = t._;
1711
+ !r && !(Tr in t) ? t._ctx = be : r === 3 && be && (be.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1712
+ }
1713
+ else
1714
+ z(t) ? (t = { default: t, _ctx: be }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Oi(t)]) : n = 8);
1715
+ e.children = t, e.shapeFlag |= n;
1716
+ }
1717
+ function Ni(...e) {
1718
+ const t = {};
1719
+ for (let n = 0; n < e.length; n++) {
1720
+ const o = e[n];
1721
+ for (const r in o)
1722
+ if (r === "class")
1723
+ t.class !== o.class && (t.class = en([t.class, o.class]));
1724
+ else if (r === "style")
1725
+ t.style = Qt([t.style, o.style]);
1726
+ else if (Qo(r)) {
1727
+ const s = t[r], i = o[r];
1728
+ i && s !== i && !(V(s) && s.includes(i)) && (t[r] = s ? [].concat(s, i) : i);
1729
+ } else
1730
+ r !== "" && (t[r] = o[r]);
1731
+ }
1732
+ return t;
1733
+ }
1734
+ let je = null, cn, ke, Bn = "__VUE_INSTANCE_SETTERS__";
1735
+ (ke = It()[Bn]) || (ke = It()[Bn] = []), ke.push((e) => je = e), cn = (e) => {
1736
+ ke.length > 1 ? ke.forEach((t) => t(e)) : ke[0](e);
1737
+ };
1738
+ const Hn = (e) => {
1739
+ cn(e), e.scope.on();
1740
+ }, Di = () => {
1741
+ je && je.scope.off(), cn(null);
1742
+ };
1743
+ function Pi(e) {
1744
+ return e.vnode.shapeFlag & 4;
1745
+ }
1746
+ let Ci = !1;
1747
+ function ki(e) {
1748
+ if (e.exposed)
1749
+ return e.exposeProxy || (e.exposeProxy = new Proxy(Fs(Vs(e.exposed)), {
1750
+ get(t, n) {
1751
+ if (n in t)
1752
+ return t[n];
1753
+ if (n in Ge)
1754
+ return Ge[n](e);
1755
+ },
1756
+ has(t, n) {
1757
+ return n in t || n in Ge;
1758
+ }
1759
+ }));
1760
+ }
1761
+ const Ri = /(?:^|[-_])(\w)/g, $i = (e) => e.replace(Ri, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1762
+ function jr(e, t = !0) {
1763
+ return z(e) ? e.displayName || e.name : e.name || t && e.__name;
1764
+ }
1765
+ function Ar(e, t, n = !1) {
1766
+ let o = jr(t);
1767
+ if (!o && t.__file) {
1768
+ const r = t.__file.match(/([^/\\]+)\.\w+$/);
1769
+ r && (o = r[1]);
1770
+ }
1771
+ if (!o && e && e.parent) {
1772
+ const r = (s) => {
1773
+ for (const i in s)
1774
+ if (s[i] === t)
1775
+ return i;
1776
+ };
1777
+ o = r(
1778
+ e.components || e.parent.type.components
1779
+ ) || r(e.appContext.components);
1780
+ }
1781
+ return o ? $i(o) : n ? "App" : "Anonymous";
1782
+ }
1783
+ function Fr(e) {
1784
+ return z(e) && "__vccOpts" in e;
1785
+ }
1786
+ const kt = (e, t) => Bs(e, t, Ci);
1787
+ function dn(e) {
1788
+ const t = kt(() => ({
1789
+ "pl-3 pr-10 py-2": !e.icon && e.type !== "color" && e.size === "small",
1790
+ "pl-4 pr-10 py-3": !e.icon && e.type !== "color" && e.size === "medium",
1791
+ "pl-6 pr-10 py-3": !e.icon && e.type !== "color" && e.size === "large",
1792
+ "pl-10 pr-10 py-1": (e.icon || e.type === "color") && e.size === "small",
1793
+ "pl-12 pr-10 py-3": (e.icon || e.type === "color") && (e.size === "medium" || e.size === "large"),
1794
+ "w-full block": e.block === !0
1795
+ })), n = kt(() => ({
1796
+ "pointer-events-none opacity-50 cursor-not-allowed": e.isDisabled
1797
+ })), o = kt(() => ({
1798
+ "text-xs leading-4": e.size === "small",
1799
+ "text-sm leading-4": e.size === "medium",
1800
+ "text-base leading-5": e.size === "large"
1801
+ }));
1802
+ return {
1803
+ inputClasses: t,
1804
+ disabledClasses: n,
1805
+ textSizeClasses: o
1806
+ };
1807
+ }
1808
+ const Ii = ["placeholder", "type", "tabindex", "value"], Ti = { class: "absolute inset-y-2 left-2 w-8 cursor-pointer" }, Vi = {
1809
+ inheritAttrs: !1
1810
+ }, jl = /* @__PURE__ */ T({
1811
+ ...Vi,
1812
+ __name: "Input",
1813
+ props: {
1814
+ modelValue: {},
1815
+ type: { default: "text" },
1816
+ placeholder: {},
1817
+ size: { default: "medium" },
1818
+ icon: {},
1819
+ isDisabled: { type: Boolean, default: !1 },
1820
+ block: { type: Boolean },
1821
+ showColorPicker: { type: Boolean }
1822
+ },
1823
+ emits: ["update:modelValue"],
1824
+ setup(e, { expose: t, emit: n }) {
1825
+ const o = e, r = O(o.modelValue ?? "");
1826
+ Oe(
1827
+ () => o.modelValue,
1828
+ (h) => {
1829
+ typeof h == "string" && h !== r.value && (r.value = h);
1830
+ }
1831
+ );
1832
+ const s = n, { inputClasses: i, disabledClasses: a, textSizeClasses: c } = dn(o), u = S(() => o.type === "color" ? "text" : o.type), {
1833
+ isSupported: l,
1834
+ open: d,
1835
+ sRGBHex: p
1836
+ } = Xo(), v = () => {
1837
+ d();
1838
+ };
1839
+ Oe(p, (h) => {
1840
+ r.value = h, s("update:modelValue", h);
1841
+ });
1842
+ const y = function(h) {
1843
+ r.value = (h == null ? void 0 : h.target).value, s("update:modelValue", (h == null ? void 0 : h.target).value);
1844
+ }, f = O(null);
1845
+ return t({
1846
+ focus: () => {
1847
+ o.isDisabled || f.value.focus();
1848
+ }
1849
+ }), (h, x) => (N(), R("div", {
1850
+ class: L(["relative", [h.block ? "w-full block" : "inline-block"]])
1851
+ }, [
1852
+ I("input", Yt({
1853
+ class: ["relative mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [k(i), k(c), k(a)]],
1854
+ placeholder: h.placeholder,
1855
+ type: u.value,
1856
+ tabindex: h.isDisabled ? "-1" : void 0,
1857
+ value: r.value
1858
+ }, h.$attrs, {
1859
+ ref_key: "input",
1860
+ ref: f,
1861
+ onInput: y
1862
+ }), null, 16, Ii),
1863
+ h.type === "color" ? (N(), R(Fe, { key: 0 }, [
1864
+ I("label", Ti, [
1865
+ bo(I("input", {
1866
+ class: "invisible",
1867
+ type: "color",
1868
+ "onUpdate:modelValue": x[0] || (x[0] = (w) => r.value = w),
1869
+ onInput: y
1870
+ }, null, 544), [
1871
+ [yo, r.value]
1872
+ ]),
1873
+ I("span", {
1874
+ class: "border-1 absolute inset-0 block rounded border border-grey-600/25 bg-clip-border shadow",
1875
+ style: wo(`background-color: ${r.value}`)
1876
+ }, null, 4)
1877
+ ]),
1878
+ k(l) && h.showColorPicker ? (N(), R("button", {
1879
+ key: 0,
1880
+ type: "button",
1881
+ class: "absolute inset-y-2 right-2 h-7 w-7 rounded-full hover:bg-grey-200",
1882
+ onClick: v
1883
+ }, [
1884
+ H(X, {
1885
+ size: "xs",
1886
+ name: "eyedropper"
1887
+ })
1888
+ ])) : A("", !0)
1889
+ ], 64)) : h.icon ? (N(), R("span", {
1890
+ key: 1,
1891
+ class: L(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", k(c)])
1892
+ }, [
1893
+ H(X, { name: h.icon }, null, 8, ["name"])
1894
+ ], 2)) : A("", !0)
1895
+ ], 2));
1896
+ }
1897
+ }), Mi = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" }, Li = ["for"], ji = {
1898
+ key: 0,
1899
+ class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
1900
+ }, Al = /* @__PURE__ */ T({
1901
+ __name: "Label",
1902
+ props: {
1903
+ id: {},
1904
+ label: {},
1905
+ description: {}
1906
+ },
1907
+ setup(e) {
1908
+ return (t, n) => (N(), R("span", Mi, [
1909
+ I("label", { for: t.id }, K(t.label), 9, Li),
1910
+ t.description ? (N(), R("span", ji, K(t.description), 1)) : A("", !0)
1911
+ ]));
1912
+ }
1913
+ });
1914
+ function ee(e, t, ...n) {
1915
+ if (e in t) {
1916
+ let r = t[e];
1917
+ return typeof r == "function" ? r(...n) : r;
1918
+ }
1919
+ let o = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((r) => `"${r}"`).join(", ")}.`);
1920
+ throw Error.captureStackTrace && Error.captureStackTrace(o, ee), o;
1921
+ }
1922
+ var Qe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Qe || {}), Ai = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Ai || {});
1923
+ function Y({ visible: e = !0, features: t = 0, ourProps: n, theirProps: o, ...r }) {
1924
+ var s;
1925
+ let i = Br(o, n), a = Object.assign(r, { props: i });
1926
+ if (e || t & 2 && i.static)
1927
+ return Rt(a);
1928
+ if (t & 1) {
1929
+ let c = (s = i.unmount) == null || s ? 0 : 1;
1930
+ return ee(c, { 0() {
1931
+ return null;
1932
+ }, 1() {
1933
+ return Rt({ ...r, props: { ...i, hidden: !0, style: { display: "none" } } });
1934
+ } });
1935
+ }
1936
+ return Rt(a);
1937
+ }
1938
+ function Rt({ props: e, attrs: t, slots: n, slot: o, name: r }) {
1939
+ var s, i;
1940
+ let { as: a, ...c } = fn(e, ["unmount", "static"]), u = (s = n.default) == null ? void 0 : s.call(n, o), l = {};
1941
+ if (o) {
1942
+ let d = !1, p = [];
1943
+ for (let [v, y] of Object.entries(o))
1944
+ typeof y == "boolean" && (d = !0), y === !0 && p.push(v);
1945
+ d && (l["data-headlessui-state"] = p.join(" "));
1946
+ }
1947
+ if (a === "template") {
1948
+ if (u = zr(u ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
1949
+ let [d, ...p] = u ?? [];
1950
+ if (!Fi(d) || p.length > 0)
1951
+ throw new Error(['Passing props on "template"!', "", `The current component <${r} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((f) => f.trim()).filter((f, m, h) => h.indexOf(f) === m).sort((f, m) => f.localeCompare(m)).map((f) => ` - ${f}`).join(`
1952
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(`
1953
+ `)].join(`
1954
+ `));
1955
+ let v = Br((i = d.props) != null ? i : {}, c), y = xo(d, v);
1956
+ for (let f in v)
1957
+ f.startsWith("on") && (y.props || (y.props = {}), y.props[f] = v[f]);
1958
+ return y;
1959
+ }
1960
+ return Array.isArray(u) && u.length === 1 ? u[0] : u;
1961
+ }
1962
+ return Ye(a, Object.assign({}, c, l), { default: () => u });
1963
+ }
1964
+ function zr(e) {
1965
+ return e.flatMap((t) => t.type === Fe ? zr(t.children) : [t]);
1966
+ }
1967
+ function Br(...e) {
1968
+ if (e.length === 0)
1969
+ return {};
1970
+ if (e.length === 1)
1971
+ return e[0];
1972
+ let t = {}, n = {};
1973
+ for (let o of e)
1974
+ for (let r in o)
1975
+ r.startsWith("on") && typeof o[r] == "function" ? (n[r] != null || (n[r] = []), n[r].push(o[r])) : t[r] = o[r];
1976
+ if (t.disabled || t["aria-disabled"])
1977
+ return Object.assign(t, Object.fromEntries(Object.keys(n).map((o) => [o, void 0])));
1978
+ for (let o in n)
1979
+ Object.assign(t, { [o](r, ...s) {
1980
+ let i = n[o];
1981
+ for (let a of i) {
1982
+ if (r instanceof Event && r.defaultPrevented)
1983
+ return;
1984
+ a(r, ...s);
1985
+ }
1986
+ } });
1987
+ return t;
1988
+ }
1989
+ function Hr(e) {
1990
+ let t = Object.assign({}, e);
1991
+ for (let n in t)
1992
+ t[n] === void 0 && delete t[n];
1993
+ return t;
1994
+ }
1995
+ function fn(e, t = []) {
1996
+ let n = Object.assign({}, e);
1997
+ for (let o of t)
1998
+ o in n && delete n[o];
1999
+ return n;
2000
+ }
2001
+ function Fi(e) {
2002
+ return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
2003
+ }
2004
+ let zi = 0;
2005
+ function Bi() {
2006
+ return ++zi;
2007
+ }
2008
+ function de() {
2009
+ return Bi();
2010
+ }
2011
+ var P = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(P || {});
2012
+ function Hi(e) {
2013
+ throw new Error("Unexpected object: " + e);
2014
+ }
2015
+ var $ = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))($ || {});
2016
+ function Ur(e, t) {
2017
+ let n = t.resolveItems();
2018
+ if (n.length <= 0)
2019
+ return null;
2020
+ let o = t.resolveActiveIndex(), r = o ?? -1, s = (() => {
2021
+ switch (e.focus) {
2022
+ case 0:
2023
+ return n.findIndex((i) => !t.resolveDisabled(i));
2024
+ case 1: {
2025
+ let i = n.slice().reverse().findIndex((a, c, u) => r !== -1 && u.length - c - 1 >= r ? !1 : !t.resolveDisabled(a));
2026
+ return i === -1 ? i : n.length - 1 - i;
2027
+ }
2028
+ case 2:
2029
+ return n.findIndex((i, a) => a <= r ? !1 : !t.resolveDisabled(i));
2030
+ case 3: {
2031
+ let i = n.slice().reverse().findIndex((a) => !t.resolveDisabled(a));
2032
+ return i === -1 ? i : n.length - 1 - i;
2033
+ }
2034
+ case 4:
2035
+ return n.findIndex((i) => t.resolveId(i) === e.id);
2036
+ case 5:
2037
+ return null;
2038
+ default:
2039
+ Hi(e);
2040
+ }
2041
+ })();
2042
+ return s === -1 ? o : s;
2043
+ }
2044
+ function D(e) {
2045
+ var t;
2046
+ return e == null || e.value == null ? null : (t = e.value.$el) != null ? t : e.value;
2047
+ }
2048
+ let Wr = Symbol("Context");
2049
+ var fe = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(fe || {});
2050
+ function Kr() {
2051
+ return ze(Wr, null);
2052
+ }
2053
+ function qr(e) {
2054
+ Be(Wr, e);
2055
+ }
2056
+ function Un(e, t) {
2057
+ if (e)
2058
+ return e;
2059
+ let n = t ?? "button";
2060
+ if (typeof n == "string" && n.toLowerCase() === "button")
2061
+ return "button";
2062
+ }
2063
+ function pn(e, t) {
2064
+ let n = O(Un(e.value.type, e.value.as));
2065
+ return ue(() => {
2066
+ n.value = Un(e.value.type, e.value.as);
2067
+ }), De(() => {
2068
+ var o;
2069
+ n.value || D(t) && D(t) instanceof HTMLButtonElement && !((o = D(t)) != null && o.hasAttribute("type")) && (n.value = "button");
2070
+ }), n;
2071
+ }
2072
+ var Ui = Object.defineProperty, Wi = (e, t, n) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wn = (e, t, n) => (Wi(e, typeof t != "symbol" ? t + "" : t, n), n);
2073
+ class Ki {
2074
+ constructor() {
2075
+ Wn(this, "current", this.detect()), Wn(this, "currentId", 0);
2076
+ }
2077
+ set(t) {
2078
+ this.current !== t && (this.currentId = 0, this.current = t);
2079
+ }
2080
+ reset() {
2081
+ this.set(this.detect());
2082
+ }
2083
+ nextId() {
2084
+ return ++this.currentId;
2085
+ }
2086
+ get isServer() {
2087
+ return this.current === "server";
2088
+ }
2089
+ get isClient() {
2090
+ return this.current === "client";
2091
+ }
2092
+ detect() {
2093
+ return typeof window > "u" || typeof document > "u" ? "server" : "client";
2094
+ }
2095
+ }
2096
+ let vn = new Ki();
2097
+ function hn(e) {
2098
+ if (vn.isServer)
2099
+ return null;
2100
+ if (e instanceof Node)
2101
+ return e.ownerDocument;
2102
+ if (e != null && e.hasOwnProperty("value")) {
2103
+ let t = D(e);
2104
+ if (t)
2105
+ return t.ownerDocument;
2106
+ }
2107
+ return document;
2108
+ }
2109
+ function qi({ container: e, accept: t, walk: n, enabled: o }) {
2110
+ De(() => {
2111
+ let r = e.value;
2112
+ if (!r || o !== void 0 && !o.value)
2113
+ return;
2114
+ let s = hn(e);
2115
+ if (!s)
2116
+ return;
2117
+ let i = Object.assign((c) => t(c), { acceptNode: t }), a = s.createTreeWalker(r, NodeFilter.SHOW_ELEMENT, i, !1);
2118
+ for (; a.nextNode(); )
2119
+ n(a.currentNode);
2120
+ });
2121
+ }
2122
+ let Ht = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
2123
+ var Ut = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(Ut || {}), Gi = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Gi || {}), Yi = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Yi || {});
2124
+ function Gr(e = document.body) {
2125
+ return e == null ? [] : Array.from(e.querySelectorAll(Ht)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
2126
+ }
2127
+ var St = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(St || {});
2128
+ function Ot(e, t = 0) {
2129
+ var n;
2130
+ return e === ((n = hn(e)) == null ? void 0 : n.body) ? !1 : ee(t, { 0() {
2131
+ return e.matches(Ht);
2132
+ }, 1() {
2133
+ let o = e;
2134
+ for (; o !== null; ) {
2135
+ if (o.matches(Ht))
2136
+ return !0;
2137
+ o = o.parentElement;
2138
+ }
2139
+ return !1;
2140
+ } });
2141
+ }
2142
+ function Yr(e) {
2143
+ let t = hn(e);
2144
+ q(() => {
2145
+ t && !Ot(t.activeElement, 0) && Ji(e);
2146
+ });
2147
+ }
2148
+ var Xi = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Xi || {});
2149
+ typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
2150
+ e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
2151
+ }, !0), document.addEventListener("click", (e) => {
2152
+ e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
2153
+ }, !0));
2154
+ function Ji(e) {
2155
+ e == null || e.focus({ preventScroll: !0 });
2156
+ }
2157
+ let Zi = ["textarea", "input"].join(",");
2158
+ function Qi(e) {
2159
+ var t, n;
2160
+ return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Zi)) != null ? n : !1;
2161
+ }
2162
+ function mn(e, t = (n) => n) {
2163
+ return e.slice().sort((n, o) => {
2164
+ let r = t(n), s = t(o);
2165
+ if (r === null || s === null)
2166
+ return 0;
2167
+ let i = r.compareDocumentPosition(s);
2168
+ return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
2169
+ });
2170
+ }
2171
+ function ea(e, t) {
2172
+ return ta(Gr(), t, { relativeTo: e });
2173
+ }
2174
+ function ta(e, t, { sorted: n = !0, relativeTo: o = null, skipElements: r = [] } = {}) {
2175
+ var s;
2176
+ let i = (s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? s : document, a = Array.isArray(e) ? n ? mn(e) : e : Gr(e);
2177
+ r.length > 0 && a.length > 1 && (a = a.filter((y) => !r.includes(y))), o = o ?? i.activeElement;
2178
+ let c = (() => {
2179
+ if (t & 5)
2180
+ return 1;
2181
+ if (t & 10)
2182
+ return -1;
2183
+ throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
2184
+ })(), u = (() => {
2185
+ if (t & 1)
2186
+ return 0;
2187
+ if (t & 2)
2188
+ return Math.max(0, a.indexOf(o)) - 1;
2189
+ if (t & 4)
2190
+ return Math.max(0, a.indexOf(o)) + 1;
2191
+ if (t & 8)
2192
+ return a.length - 1;
2193
+ throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
2194
+ })(), l = t & 32 ? { preventScroll: !0 } : {}, d = 0, p = a.length, v;
2195
+ do {
2196
+ if (d >= p || d + p <= 0)
2197
+ return 0;
2198
+ let y = u + d;
2199
+ if (t & 16)
2200
+ y = (y + p) % p;
2201
+ else {
2202
+ if (y < 0)
2203
+ return 3;
2204
+ if (y >= p)
2205
+ return 1;
2206
+ }
2207
+ v = a[y], v == null || v.focus(l), d += c;
2208
+ } while (v !== i.activeElement);
2209
+ return t & 6 && Qi(v) && v.select(), 2;
2210
+ }
2211
+ function ut(e, t, n) {
2212
+ vn.isServer || De((o) => {
2213
+ document.addEventListener(e, t, n), o(() => document.removeEventListener(e, t, n));
2214
+ });
2215
+ }
2216
+ function na(e, t, n) {
2217
+ vn.isServer || De((o) => {
2218
+ window.addEventListener(e, t, n), o(() => window.removeEventListener(e, t, n));
2219
+ });
2220
+ }
2221
+ function Xr(e, t, n = S(() => !0)) {
2222
+ function o(s, i) {
2223
+ if (!n.value || s.defaultPrevented)
2224
+ return;
2225
+ let a = i(s);
2226
+ if (a === null || !a.getRootNode().contains(a))
2227
+ return;
2228
+ let c = function u(l) {
2229
+ return typeof l == "function" ? u(l()) : Array.isArray(l) || l instanceof Set ? l : [l];
2230
+ }(e);
2231
+ for (let u of c) {
2232
+ if (u === null)
2233
+ continue;
2234
+ let l = u instanceof HTMLElement ? u : D(u);
2235
+ if (l != null && l.contains(a) || s.composed && s.composedPath().includes(l))
2236
+ return;
2237
+ }
2238
+ return !Ot(a, St.Loose) && a.tabIndex !== -1 && s.preventDefault(), t(s, a);
2239
+ }
2240
+ let r = O(null);
2241
+ ut("pointerdown", (s) => {
2242
+ var i, a;
2243
+ n.value && (r.value = ((a = (i = s.composedPath) == null ? void 0 : i.call(s)) == null ? void 0 : a[0]) || s.target);
2244
+ }, !0), ut("mousedown", (s) => {
2245
+ var i, a;
2246
+ n.value && (r.value = ((a = (i = s.composedPath) == null ? void 0 : i.call(s)) == null ? void 0 : a[0]) || s.target);
2247
+ }, !0), ut("click", (s) => {
2248
+ r.value && (o(s, () => r.value), r.value = null);
2249
+ }, !0), ut("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), na("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
2250
+ }
2251
+ var gn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(gn || {});
2252
+ let Jr = T({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
2253
+ return () => {
2254
+ let { features: o, ...r } = e, s = { "aria-hidden": (o & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(o & 4) === 4 && (o & 2) !== 2 && { display: "none" } } };
2255
+ return Y({ ourProps: s, theirProps: r, slot: {}, attrs: n, slots: t, name: "Hidden" });
2256
+ };
2257
+ } });
2258
+ function Zr(e = {}, t = null, n = []) {
2259
+ for (let [o, r] of Object.entries(e))
2260
+ eo(n, Qr(t, o), r);
2261
+ return n;
2262
+ }
2263
+ function Qr(e, t) {
2264
+ return e ? e + "[" + t + "]" : t;
2265
+ }
2266
+ function eo(e, t, n) {
2267
+ if (Array.isArray(n))
2268
+ for (let [o, r] of n.entries())
2269
+ eo(e, Qr(t, o.toString()), r);
2270
+ else
2271
+ n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : Zr(n, t, e);
2272
+ }
2273
+ function ra(e) {
2274
+ var t, n;
2275
+ let o = (t = e == null ? void 0 : e.form) != null ? t : e.closest("form");
2276
+ if (o) {
2277
+ for (let r of o.elements)
2278
+ if (r !== e && (r.tagName === "INPUT" && r.type === "submit" || r.tagName === "BUTTON" && r.type === "submit" || r.nodeName === "INPUT" && r.type === "image")) {
2279
+ r.click();
2280
+ return;
2281
+ }
2282
+ (n = o.requestSubmit) == null || n.call(o);
2283
+ }
2284
+ }
2285
+ function to(e, t, n) {
2286
+ let o = O(n == null ? void 0 : n.value), r = S(() => e.value !== void 0);
2287
+ return [S(() => r.value ? e.value : o.value), function(s) {
2288
+ return r.value || (o.value = s), t == null ? void 0 : t(s);
2289
+ }];
2290
+ }
2291
+ function Kn(e) {
2292
+ return [e.screenX, e.screenY];
2293
+ }
2294
+ function no() {
2295
+ let e = O([-1, -1]);
2296
+ return { wasMoved(t) {
2297
+ let n = Kn(t);
2298
+ return e.value[0] === n[0] && e.value[1] === n[1] ? !1 : (e.value = n, !0);
2299
+ }, update(t) {
2300
+ e.value = Kn(t);
2301
+ } };
2302
+ }
2303
+ let ro = Symbol("DescriptionContext");
2304
+ function oa() {
2305
+ let e = ze(ro, null);
2306
+ if (e === null)
2307
+ throw new Error("Missing parent");
2308
+ return e;
2309
+ }
2310
+ function sa({ slot: e = O({}), name: t = "Description", props: n = {} } = {}) {
2311
+ let o = O([]);
2312
+ function r(s) {
2313
+ return o.value.push(s), () => {
2314
+ let i = o.value.indexOf(s);
2315
+ i !== -1 && o.value.splice(i, 1);
2316
+ };
2317
+ }
2318
+ return Be(ro, { register: r, slot: e, name: t, props: n }), S(() => o.value.length > 0 ? o.value.join(" ") : void 0);
2319
+ }
2320
+ T({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${de()}` } }, setup(e, { attrs: t, slots: n }) {
2321
+ let o = oa();
2322
+ return ue(() => wt(o.register(e.id))), () => {
2323
+ let { name: r = "Description", slot: s = O({}), props: i = {} } = o, { id: a, ...c } = e, u = { ...Object.entries(i).reduce((l, [d, p]) => Object.assign(l, { [d]: k(p) }), {}), id: a };
2324
+ return Y({ ourProps: u, theirProps: c, slot: s.value, attrs: t, slots: n, name: r });
2325
+ };
2326
+ } });
2327
+ let qn = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
2328
+ function Gn(e) {
2329
+ var t, n;
2330
+ let o = (t = e.innerText) != null ? t : "", r = e.cloneNode(!0);
2331
+ if (!(r instanceof HTMLElement))
2332
+ return o;
2333
+ let s = !1;
2334
+ for (let a of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
2335
+ a.remove(), s = !0;
2336
+ let i = s ? (n = r.innerText) != null ? n : "" : o;
2337
+ return qn.test(i) && (i = i.replace(qn, "")), i;
2338
+ }
2339
+ function ia(e) {
2340
+ let t = e.getAttribute("aria-label");
2341
+ if (typeof t == "string")
2342
+ return t.trim();
2343
+ let n = e.getAttribute("aria-labelledby");
2344
+ if (n) {
2345
+ let o = n.split(" ").map((r) => {
2346
+ let s = document.getElementById(r);
2347
+ if (s) {
2348
+ let i = s.getAttribute("aria-label");
2349
+ return typeof i == "string" ? i.trim() : Gn(s).trim();
2350
+ }
2351
+ return null;
2352
+ }).filter(Boolean);
2353
+ if (o.length > 0)
2354
+ return o.join(", ");
2355
+ }
2356
+ return Gn(e).trim();
2357
+ }
2358
+ function oo(e) {
2359
+ let t = O(""), n = O("");
2360
+ return () => {
2361
+ let o = D(e);
2362
+ if (!o)
2363
+ return "";
2364
+ let r = o.innerText;
2365
+ if (t.value === r)
2366
+ return n.value;
2367
+ let s = ia(o).trim().toLowerCase();
2368
+ return t.value = r, n.value = s, s;
2369
+ };
2370
+ }
2371
+ function aa(e, t) {
2372
+ return e === t;
2373
+ }
2374
+ var la = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(la || {}), ua = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(ua || {}), ca = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(ca || {});
2375
+ function da(e) {
2376
+ requestAnimationFrame(() => requestAnimationFrame(e));
2377
+ }
2378
+ let so = Symbol("ListboxContext");
2379
+ function et(e) {
2380
+ let t = ze(so, null);
2381
+ if (t === null) {
2382
+ let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
2383
+ throw Error.captureStackTrace && Error.captureStackTrace(n, et), n;
2384
+ }
2385
+ return t;
2386
+ }
2387
+ let fa = T({ name: "Listbox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => aa }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: o }) {
2388
+ let r = O(1), s = O(null), i = O(null), a = O(null), c = O([]), u = O(""), l = O(null), d = O(1);
2389
+ function p(w = (g) => g) {
2390
+ let g = l.value !== null ? c.value[l.value] : null, _ = mn(w(c.value.slice()), (M) => D(M.dataRef.domRef)), E = g ? _.indexOf(g) : null;
2391
+ return E === -1 && (E = null), { options: _, activeOptionIndex: E };
2392
+ }
2393
+ let v = S(() => e.multiple ? 1 : 0), [y, f] = to(S(() => e.modelValue), (w) => o("update:modelValue", w), S(() => e.defaultValue)), m = S(() => y.value === void 0 ? ee(v.value, { 1: [], 0: void 0 }) : y.value), h = { listboxState: r, value: m, mode: v, compare(w, g) {
2394
+ if (typeof e.by == "string") {
2395
+ let _ = e.by;
2396
+ return (w == null ? void 0 : w[_]) === (g == null ? void 0 : g[_]);
2397
+ }
2398
+ return e.by(w, g);
2399
+ }, orientation: S(() => e.horizontal ? "horizontal" : "vertical"), labelRef: s, buttonRef: i, optionsRef: a, disabled: S(() => e.disabled), options: c, searchQuery: u, activeOptionIndex: l, activationTrigger: d, closeListbox() {
2400
+ e.disabled || r.value !== 1 && (r.value = 1, l.value = null);
2401
+ }, openListbox() {
2402
+ e.disabled || r.value !== 0 && (r.value = 0);
2403
+ }, goToOption(w, g, _) {
2404
+ if (e.disabled || r.value === 1)
2405
+ return;
2406
+ let E = p(), M = Ur(w === $.Specific ? { focus: $.Specific, id: g } : { focus: w }, { resolveItems: () => E.options, resolveActiveIndex: () => E.activeOptionIndex, resolveId: (ae) => ae.id, resolveDisabled: (ae) => ae.dataRef.disabled });
2407
+ u.value = "", l.value = M, d.value = _ ?? 1, c.value = E.options;
2408
+ }, search(w) {
2409
+ if (e.disabled || r.value === 1)
2410
+ return;
2411
+ let g = u.value !== "" ? 0 : 1;
2412
+ u.value += w.toLowerCase();
2413
+ let _ = (l.value !== null ? c.value.slice(l.value + g).concat(c.value.slice(0, l.value + g)) : c.value).find((M) => M.dataRef.textValue.startsWith(u.value) && !M.dataRef.disabled), E = _ ? c.value.indexOf(_) : -1;
2414
+ E === -1 || E === l.value || (l.value = E, d.value = 1);
2415
+ }, clearSearch() {
2416
+ e.disabled || r.value !== 1 && u.value !== "" && (u.value = "");
2417
+ }, registerOption(w, g) {
2418
+ let _ = p((E) => [...E, { id: w, dataRef: g }]);
2419
+ c.value = _.options, l.value = _.activeOptionIndex;
2420
+ }, unregisterOption(w) {
2421
+ let g = p((_) => {
2422
+ let E = _.findIndex((M) => M.id === w);
2423
+ return E !== -1 && _.splice(E, 1), _;
2424
+ });
2425
+ c.value = g.options, l.value = g.activeOptionIndex, d.value = 1;
2426
+ }, theirOnChange(w) {
2427
+ e.disabled || f(w);
2428
+ }, select(w) {
2429
+ e.disabled || f(ee(v.value, { 0: () => w, 1: () => {
2430
+ let g = ne(h.value.value).slice(), _ = ne(w), E = g.findIndex((M) => h.compare(_, ne(M)));
2431
+ return E === -1 ? g.push(_) : g.splice(E, 1), g;
2432
+ } }));
2433
+ } };
2434
+ Xr([i, a], (w, g) => {
2435
+ var _;
2436
+ h.closeListbox(), Ot(g, St.Loose) || (w.preventDefault(), (_ = D(i)) == null || _.focus());
2437
+ }, S(() => r.value === 0)), Be(so, h), qr(S(() => ee(r.value, { 0: fe.Open, 1: fe.Closed })));
2438
+ let x = S(() => {
2439
+ var w;
2440
+ return (w = D(i)) == null ? void 0 : w.closest("form");
2441
+ });
2442
+ return ue(() => {
2443
+ Oe([x], () => {
2444
+ if (!x.value || e.defaultValue === void 0)
2445
+ return;
2446
+ function w() {
2447
+ h.theirOnChange(e.defaultValue);
2448
+ }
2449
+ return x.value.addEventListener("reset", w), () => {
2450
+ var g;
2451
+ (g = x.value) == null || g.removeEventListener("reset", w);
2452
+ };
2453
+ }, { immediate: !0 });
2454
+ }), () => {
2455
+ let { name: w, modelValue: g, disabled: _, form: E, ...M } = e, ae = { open: r.value === 0, disabled: _, value: m.value };
2456
+ return Ye(Fe, [...w != null && m.value != null ? Zr({ [w]: m.value }).map(([Pe, Ce]) => Ye(Jr, Hr({ features: gn.Hidden, key: Pe, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: E, name: Pe, value: Ce }))) : [], Y({ ourProps: {}, theirProps: { ...n, ...fn(M, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: ae, slots: t, attrs: n, name: "Listbox" })]);
2457
+ };
2458
+ } });
2459
+ T({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${de()}` } }, setup(e, { attrs: t, slots: n }) {
2460
+ let o = et("ListboxLabel");
2461
+ function r() {
2462
+ var s;
2463
+ (s = D(o.buttonRef)) == null || s.focus({ preventScroll: !0 });
2464
+ }
2465
+ return () => {
2466
+ let s = { open: o.listboxState.value === 0, disabled: o.disabled.value }, { id: i, ...a } = e, c = { id: i, ref: o.labelRef, onClick: r };
2467
+ return Y({ ourProps: c, theirProps: a, slot: s, attrs: t, slots: n, name: "ListboxLabel" });
2468
+ };
2469
+ } });
2470
+ let pa = T({ name: "ListboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-listbox-button-${de()}` } }, setup(e, { attrs: t, slots: n, expose: o }) {
2471
+ let r = et("ListboxButton");
2472
+ o({ el: r.buttonRef, $el: r.buttonRef });
2473
+ function s(u) {
2474
+ switch (u.key) {
2475
+ case P.Space:
2476
+ case P.Enter:
2477
+ case P.ArrowDown:
2478
+ u.preventDefault(), r.openListbox(), q(() => {
2479
+ var l;
2480
+ (l = D(r.optionsRef)) == null || l.focus({ preventScroll: !0 }), r.value.value || r.goToOption($.First);
2481
+ });
2482
+ break;
2483
+ case P.ArrowUp:
2484
+ u.preventDefault(), r.openListbox(), q(() => {
2485
+ var l;
2486
+ (l = D(r.optionsRef)) == null || l.focus({ preventScroll: !0 }), r.value.value || r.goToOption($.Last);
2487
+ });
2488
+ break;
2489
+ }
2490
+ }
2491
+ function i(u) {
2492
+ switch (u.key) {
2493
+ case P.Space:
2494
+ u.preventDefault();
2495
+ break;
2496
+ }
2497
+ }
2498
+ function a(u) {
2499
+ r.disabled.value || (r.listboxState.value === 0 ? (r.closeListbox(), q(() => {
2500
+ var l;
2501
+ return (l = D(r.buttonRef)) == null ? void 0 : l.focus({ preventScroll: !0 });
2502
+ })) : (u.preventDefault(), r.openListbox(), da(() => {
2503
+ var l;
2504
+ return (l = D(r.optionsRef)) == null ? void 0 : l.focus({ preventScroll: !0 });
2505
+ })));
2506
+ }
2507
+ let c = pn(S(() => ({ as: e.as, type: t.type })), r.buttonRef);
2508
+ return () => {
2509
+ var u, l;
2510
+ let d = { open: r.listboxState.value === 0, disabled: r.disabled.value, value: r.value.value }, { id: p, ...v } = e, y = { ref: r.buttonRef, id: p, type: c.value, "aria-haspopup": "listbox", "aria-controls": (u = D(r.optionsRef)) == null ? void 0 : u.id, "aria-expanded": r.listboxState.value === 0, "aria-labelledby": r.labelRef.value ? [(l = D(r.labelRef)) == null ? void 0 : l.id, p].join(" ") : void 0, disabled: r.disabled.value === !0 ? !0 : void 0, onKeydown: s, onKeyup: i, onClick: a };
2511
+ return Y({ ourProps: y, theirProps: v, slot: d, attrs: t, slots: n, name: "ListboxButton" });
2512
+ };
2513
+ } }), va = T({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-listbox-options-${de()}` } }, setup(e, { attrs: t, slots: n, expose: o }) {
2514
+ let r = et("ListboxOptions"), s = O(null);
2515
+ o({ el: r.optionsRef, $el: r.optionsRef });
2516
+ function i(u) {
2517
+ switch (s.value && clearTimeout(s.value), u.key) {
2518
+ case P.Space:
2519
+ if (r.searchQuery.value !== "")
2520
+ return u.preventDefault(), u.stopPropagation(), r.search(u.key);
2521
+ case P.Enter:
2522
+ if (u.preventDefault(), u.stopPropagation(), r.activeOptionIndex.value !== null) {
2523
+ let l = r.options.value[r.activeOptionIndex.value];
2524
+ r.select(l.dataRef.value);
2525
+ }
2526
+ r.mode.value === 0 && (r.closeListbox(), q(() => {
2527
+ var l;
2528
+ return (l = D(r.buttonRef)) == null ? void 0 : l.focus({ preventScroll: !0 });
2529
+ }));
2530
+ break;
2531
+ case ee(r.orientation.value, { vertical: P.ArrowDown, horizontal: P.ArrowRight }):
2532
+ return u.preventDefault(), u.stopPropagation(), r.goToOption($.Next);
2533
+ case ee(r.orientation.value, { vertical: P.ArrowUp, horizontal: P.ArrowLeft }):
2534
+ return u.preventDefault(), u.stopPropagation(), r.goToOption($.Previous);
2535
+ case P.Home:
2536
+ case P.PageUp:
2537
+ return u.preventDefault(), u.stopPropagation(), r.goToOption($.First);
2538
+ case P.End:
2539
+ case P.PageDown:
2540
+ return u.preventDefault(), u.stopPropagation(), r.goToOption($.Last);
2541
+ case P.Escape:
2542
+ u.preventDefault(), u.stopPropagation(), r.closeListbox(), q(() => {
2543
+ var l;
2544
+ return (l = D(r.buttonRef)) == null ? void 0 : l.focus({ preventScroll: !0 });
2545
+ });
2546
+ break;
2547
+ case P.Tab:
2548
+ u.preventDefault(), u.stopPropagation();
2549
+ break;
2550
+ default:
2551
+ u.key.length === 1 && (r.search(u.key), s.value = setTimeout(() => r.clearSearch(), 350));
2552
+ break;
2553
+ }
2554
+ }
2555
+ let a = Kr(), c = S(() => a !== null ? (a.value & fe.Open) === fe.Open : r.listboxState.value === 0);
2556
+ return () => {
2557
+ var u, l, d, p;
2558
+ let v = { open: r.listboxState.value === 0 }, { id: y, ...f } = e, m = { "aria-activedescendant": r.activeOptionIndex.value === null || (u = r.options.value[r.activeOptionIndex.value]) == null ? void 0 : u.id, "aria-multiselectable": r.mode.value === 1 ? !0 : void 0, "aria-labelledby": (p = (l = D(r.labelRef)) == null ? void 0 : l.id) != null ? p : (d = D(r.buttonRef)) == null ? void 0 : d.id, "aria-orientation": r.orientation.value, id: y, onKeydown: i, role: "listbox", tabIndex: 0, ref: r.optionsRef };
2559
+ return Y({ ourProps: m, theirProps: f, slot: v, attrs: t, slots: n, features: Qe.RenderStrategy | Qe.Static, visible: c.value, name: "ListboxOptions" });
2560
+ };
2561
+ } }), ha = T({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-listbox.option-${de()}` } }, setup(e, { slots: t, attrs: n, expose: o }) {
2562
+ let r = et("ListboxOption"), s = O(null);
2563
+ o({ el: s, $el: s });
2564
+ let i = S(() => r.activeOptionIndex.value !== null ? r.options.value[r.activeOptionIndex.value].id === e.id : !1), a = S(() => ee(r.mode.value, { 0: () => r.compare(ne(r.value.value), ne(e.value)), 1: () => ne(r.value.value).some((h) => r.compare(ne(h), ne(e.value))) })), c = S(() => ee(r.mode.value, { 1: () => {
2565
+ var h;
2566
+ let x = ne(r.value.value);
2567
+ return ((h = r.options.value.find((w) => x.some((g) => r.compare(ne(g), ne(w.dataRef.value))))) == null ? void 0 : h.id) === e.id;
2568
+ }, 0: () => a.value })), u = oo(s), l = S(() => ({ disabled: e.disabled, value: e.value, get textValue() {
2569
+ return u();
2570
+ }, domRef: s }));
2571
+ ue(() => r.registerOption(e.id, l)), wt(() => r.unregisterOption(e.id)), ue(() => {
2572
+ Oe([r.listboxState, a], () => {
2573
+ r.listboxState.value === 0 && a.value && ee(r.mode.value, { 1: () => {
2574
+ c.value && r.goToOption($.Specific, e.id);
2575
+ }, 0: () => {
2576
+ r.goToOption($.Specific, e.id);
2577
+ } });
2578
+ }, { immediate: !0 });
2579
+ }), De(() => {
2580
+ r.listboxState.value === 0 && i.value && r.activationTrigger.value !== 0 && q(() => {
2581
+ var h, x;
2582
+ return (x = (h = D(s)) == null ? void 0 : h.scrollIntoView) == null ? void 0 : x.call(h, { block: "nearest" });
2583
+ });
2584
+ });
2585
+ function d(h) {
2586
+ if (e.disabled)
2587
+ return h.preventDefault();
2588
+ r.select(e.value), r.mode.value === 0 && (r.closeListbox(), q(() => {
2589
+ var x;
2590
+ return (x = D(r.buttonRef)) == null ? void 0 : x.focus({ preventScroll: !0 });
2591
+ }));
2592
+ }
2593
+ function p() {
2594
+ if (e.disabled)
2595
+ return r.goToOption($.Nothing);
2596
+ r.goToOption($.Specific, e.id);
2597
+ }
2598
+ let v = no();
2599
+ function y(h) {
2600
+ v.update(h);
2601
+ }
2602
+ function f(h) {
2603
+ v.wasMoved(h) && (e.disabled || i.value || r.goToOption($.Specific, e.id, 0));
2604
+ }
2605
+ function m(h) {
2606
+ v.wasMoved(h) && (e.disabled || i.value && r.goToOption($.Nothing));
2607
+ }
2608
+ return () => {
2609
+ let { disabled: h } = e, x = { active: i.value, selected: a.value, disabled: h }, { id: w, value: g, disabled: _, ...E } = e, M = { id: w, ref: s, role: "option", tabIndex: h === !0 ? void 0 : -1, "aria-disabled": h === !0 ? !0 : void 0, "aria-selected": a.value, disabled: void 0, onClick: d, onFocus: p, onPointerenter: y, onMouseenter: y, onPointermove: f, onMousemove: f, onPointerleave: m, onMouseleave: m };
2610
+ return Y({ ourProps: M, theirProps: E, slot: x, attrs: n, slots: t, name: "ListboxOption" });
2611
+ };
2612
+ } });
2613
+ var ma = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ma || {}), ga = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(ga || {});
2614
+ function ba(e) {
2615
+ requestAnimationFrame(() => requestAnimationFrame(e));
2616
+ }
2617
+ let io = Symbol("MenuContext");
2618
+ function Nt(e) {
2619
+ let t = ze(io, null);
2620
+ if (t === null) {
2621
+ let n = new Error(`<${e} /> is missing a parent <Menu /> component.`);
2622
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Nt), n;
2623
+ }
2624
+ return t;
2625
+ }
2626
+ let ya = T({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
2627
+ let o = O(1), r = O(null), s = O(null), i = O([]), a = O(""), c = O(null), u = O(1);
2628
+ function l(p = (v) => v) {
2629
+ let v = c.value !== null ? i.value[c.value] : null, y = mn(p(i.value.slice()), (m) => D(m.dataRef.domRef)), f = v ? y.indexOf(v) : null;
2630
+ return f === -1 && (f = null), { items: y, activeItemIndex: f };
2631
+ }
2632
+ let d = { menuState: o, buttonRef: r, itemsRef: s, items: i, searchQuery: a, activeItemIndex: c, activationTrigger: u, closeMenu: () => {
2633
+ o.value = 1, c.value = null;
2634
+ }, openMenu: () => o.value = 0, goToItem(p, v, y) {
2635
+ let f = l(), m = Ur(p === $.Specific ? { focus: $.Specific, id: v } : { focus: p }, { resolveItems: () => f.items, resolveActiveIndex: () => f.activeItemIndex, resolveId: (h) => h.id, resolveDisabled: (h) => h.dataRef.disabled });
2636
+ a.value = "", c.value = m, u.value = y ?? 1, i.value = f.items;
2637
+ }, search(p) {
2638
+ let v = a.value !== "" ? 0 : 1;
2639
+ a.value += p.toLowerCase();
2640
+ let y = (c.value !== null ? i.value.slice(c.value + v).concat(i.value.slice(0, c.value + v)) : i.value).find((m) => m.dataRef.textValue.startsWith(a.value) && !m.dataRef.disabled), f = y ? i.value.indexOf(y) : -1;
2641
+ f === -1 || f === c.value || (c.value = f, u.value = 1);
2642
+ }, clearSearch() {
2643
+ a.value = "";
2644
+ }, registerItem(p, v) {
2645
+ let y = l((f) => [...f, { id: p, dataRef: v }]);
2646
+ i.value = y.items, c.value = y.activeItemIndex, u.value = 1;
2647
+ }, unregisterItem(p) {
2648
+ let v = l((y) => {
2649
+ let f = y.findIndex((m) => m.id === p);
2650
+ return f !== -1 && y.splice(f, 1), y;
2651
+ });
2652
+ i.value = v.items, c.value = v.activeItemIndex, u.value = 1;
2653
+ } };
2654
+ return Xr([r, s], (p, v) => {
2655
+ var y;
2656
+ d.closeMenu(), Ot(v, St.Loose) || (p.preventDefault(), (y = D(r)) == null || y.focus());
2657
+ }, S(() => o.value === 0)), Be(io, d), qr(S(() => ee(o.value, { 0: fe.Open, 1: fe.Closed }))), () => {
2658
+ let p = { open: o.value === 0, close: d.closeMenu };
2659
+ return Y({ ourProps: {}, theirProps: e, slot: p, slots: t, attrs: n, name: "Menu" });
2660
+ };
2661
+ } }), wa = T({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-menu-button-${de()}` } }, setup(e, { attrs: t, slots: n, expose: o }) {
2662
+ let r = Nt("MenuButton");
2663
+ o({ el: r.buttonRef, $el: r.buttonRef });
2664
+ function s(u) {
2665
+ switch (u.key) {
2666
+ case P.Space:
2667
+ case P.Enter:
2668
+ case P.ArrowDown:
2669
+ u.preventDefault(), u.stopPropagation(), r.openMenu(), q(() => {
2670
+ var l;
2671
+ (l = D(r.itemsRef)) == null || l.focus({ preventScroll: !0 }), r.goToItem($.First);
2672
+ });
2673
+ break;
2674
+ case P.ArrowUp:
2675
+ u.preventDefault(), u.stopPropagation(), r.openMenu(), q(() => {
2676
+ var l;
2677
+ (l = D(r.itemsRef)) == null || l.focus({ preventScroll: !0 }), r.goToItem($.Last);
2678
+ });
2679
+ break;
2680
+ }
2681
+ }
2682
+ function i(u) {
2683
+ switch (u.key) {
2684
+ case P.Space:
2685
+ u.preventDefault();
2686
+ break;
2687
+ }
2688
+ }
2689
+ function a(u) {
2690
+ e.disabled || (r.menuState.value === 0 ? (r.closeMenu(), q(() => {
2691
+ var l;
2692
+ return (l = D(r.buttonRef)) == null ? void 0 : l.focus({ preventScroll: !0 });
2693
+ })) : (u.preventDefault(), r.openMenu(), ba(() => {
2694
+ var l;
2695
+ return (l = D(r.itemsRef)) == null ? void 0 : l.focus({ preventScroll: !0 });
2696
+ })));
2697
+ }
2698
+ let c = pn(S(() => ({ as: e.as, type: t.type })), r.buttonRef);
2699
+ return () => {
2700
+ var u;
2701
+ let l = { open: r.menuState.value === 0 }, { id: d, ...p } = e, v = { ref: r.buttonRef, id: d, type: c.value, "aria-haspopup": "menu", "aria-controls": (u = D(r.itemsRef)) == null ? void 0 : u.id, "aria-expanded": r.menuState.value === 0, onKeydown: s, onKeyup: i, onClick: a };
2702
+ return Y({ ourProps: v, theirProps: p, slot: l, attrs: t, slots: n, name: "MenuButton" });
2703
+ };
2704
+ } }), xa = T({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, id: { type: String, default: () => `headlessui-menu-items-${de()}` } }, setup(e, { attrs: t, slots: n, expose: o }) {
2705
+ let r = Nt("MenuItems"), s = O(null);
2706
+ o({ el: r.itemsRef, $el: r.itemsRef }), qi({ container: S(() => D(r.itemsRef)), enabled: S(() => r.menuState.value === 0), accept(l) {
2707
+ return l.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : l.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
2708
+ }, walk(l) {
2709
+ l.setAttribute("role", "none");
2710
+ } });
2711
+ function i(l) {
2712
+ var d;
2713
+ switch (s.value && clearTimeout(s.value), l.key) {
2714
+ case P.Space:
2715
+ if (r.searchQuery.value !== "")
2716
+ return l.preventDefault(), l.stopPropagation(), r.search(l.key);
2717
+ case P.Enter:
2718
+ if (l.preventDefault(), l.stopPropagation(), r.activeItemIndex.value !== null) {
2719
+ let p = r.items.value[r.activeItemIndex.value];
2720
+ (d = D(p.dataRef.domRef)) == null || d.click();
2721
+ }
2722
+ r.closeMenu(), Yr(D(r.buttonRef));
2723
+ break;
2724
+ case P.ArrowDown:
2725
+ return l.preventDefault(), l.stopPropagation(), r.goToItem($.Next);
2726
+ case P.ArrowUp:
2727
+ return l.preventDefault(), l.stopPropagation(), r.goToItem($.Previous);
2728
+ case P.Home:
2729
+ case P.PageUp:
2730
+ return l.preventDefault(), l.stopPropagation(), r.goToItem($.First);
2731
+ case P.End:
2732
+ case P.PageDown:
2733
+ return l.preventDefault(), l.stopPropagation(), r.goToItem($.Last);
2734
+ case P.Escape:
2735
+ l.preventDefault(), l.stopPropagation(), r.closeMenu(), q(() => {
2736
+ var p;
2737
+ return (p = D(r.buttonRef)) == null ? void 0 : p.focus({ preventScroll: !0 });
2738
+ });
2739
+ break;
2740
+ case P.Tab:
2741
+ l.preventDefault(), l.stopPropagation(), r.closeMenu(), q(() => ea(D(r.buttonRef), l.shiftKey ? Ut.Previous : Ut.Next));
2742
+ break;
2743
+ default:
2744
+ l.key.length === 1 && (r.search(l.key), s.value = setTimeout(() => r.clearSearch(), 350));
2745
+ break;
2746
+ }
2747
+ }
2748
+ function a(l) {
2749
+ switch (l.key) {
2750
+ case P.Space:
2751
+ l.preventDefault();
2752
+ break;
2753
+ }
2754
+ }
2755
+ let c = Kr(), u = S(() => c !== null ? (c.value & fe.Open) === fe.Open : r.menuState.value === 0);
2756
+ return () => {
2757
+ var l, d;
2758
+ let p = { open: r.menuState.value === 0 }, { id: v, ...y } = e, f = { "aria-activedescendant": r.activeItemIndex.value === null || (l = r.items.value[r.activeItemIndex.value]) == null ? void 0 : l.id, "aria-labelledby": (d = D(r.buttonRef)) == null ? void 0 : d.id, id: v, onKeydown: i, onKeyup: a, role: "menu", tabIndex: 0, ref: r.itemsRef };
2759
+ return Y({ ourProps: f, theirProps: y, slot: p, attrs: t, slots: n, features: Qe.RenderStrategy | Qe.Static, visible: u.value, name: "MenuItems" });
2760
+ };
2761
+ } }), _a = T({ name: "MenuItem", inheritAttrs: !1, props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 }, id: { type: String, default: () => `headlessui-menu-item-${de()}` } }, setup(e, { slots: t, attrs: n, expose: o }) {
2762
+ let r = Nt("MenuItem"), s = O(null);
2763
+ o({ el: s, $el: s });
2764
+ let i = S(() => r.activeItemIndex.value !== null ? r.items.value[r.activeItemIndex.value].id === e.id : !1), a = oo(s), c = S(() => ({ disabled: e.disabled, get textValue() {
2765
+ return a();
2766
+ }, domRef: s }));
2767
+ ue(() => r.registerItem(e.id, c)), wt(() => r.unregisterItem(e.id)), De(() => {
2768
+ r.menuState.value === 0 && i.value && r.activationTrigger.value !== 0 && q(() => {
2769
+ var f, m;
2770
+ return (m = (f = D(s)) == null ? void 0 : f.scrollIntoView) == null ? void 0 : m.call(f, { block: "nearest" });
2771
+ });
2772
+ });
2773
+ function u(f) {
2774
+ if (e.disabled)
2775
+ return f.preventDefault();
2776
+ r.closeMenu(), Yr(D(r.buttonRef));
2777
+ }
2778
+ function l() {
2779
+ if (e.disabled)
2780
+ return r.goToItem($.Nothing);
2781
+ r.goToItem($.Specific, e.id);
2782
+ }
2783
+ let d = no();
2784
+ function p(f) {
2785
+ d.update(f);
2786
+ }
2787
+ function v(f) {
2788
+ d.wasMoved(f) && (e.disabled || i.value || r.goToItem($.Specific, e.id, 0));
2789
+ }
2790
+ function y(f) {
2791
+ d.wasMoved(f) && (e.disabled || i.value && r.goToItem($.Nothing));
2792
+ }
2793
+ return () => {
2794
+ let { disabled: f } = e, m = { active: i.value, disabled: f, close: r.closeMenu }, { id: h, ...x } = e;
2795
+ return Y({ ourProps: { id: h, ref: s, role: "menuitem", tabIndex: f === !0 ? void 0 : -1, "aria-disabled": f === !0 ? !0 : void 0, disabled: void 0, onClick: u, onFocus: l, onPointerenter: p, onMouseenter: p, onPointermove: v, onMousemove: v, onPointerleave: y, onMouseleave: y }, theirProps: { ...n, ...x }, slot: m, attrs: n, slots: t, name: "MenuItem" });
2796
+ };
2797
+ } }), ao = Symbol("LabelContext");
2798
+ function lo() {
2799
+ let e = ze(ao, null);
2800
+ if (e === null) {
2801
+ let t = new Error("You used a <Label /> component, but it is not inside a parent.");
2802
+ throw Error.captureStackTrace && Error.captureStackTrace(t, lo), t;
2803
+ }
2804
+ return e;
2805
+ }
2806
+ function Ea({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
2807
+ let o = O([]);
2808
+ function r(s) {
2809
+ return o.value.push(s), () => {
2810
+ let i = o.value.indexOf(s);
2811
+ i !== -1 && o.value.splice(i, 1);
2812
+ };
2813
+ }
2814
+ return Be(ao, { register: r, slot: e, name: t, props: n }), S(() => o.value.length > 0 ? o.value.join(" ") : void 0);
2815
+ }
2816
+ T({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-label-${de()}` } }, setup(e, { slots: t, attrs: n }) {
2817
+ let o = lo();
2818
+ return ue(() => wt(o.register(e.id))), () => {
2819
+ let { name: r = "Label", slot: s = {}, props: i = {} } = o, { id: a, passive: c, ...u } = e, l = { ...Object.entries(i).reduce((d, [p, v]) => Object.assign(d, { [p]: k(v) }), {}), id: a };
2820
+ return c && (delete l.onClick, delete l.htmlFor, delete u.onClick), Y({ ourProps: l, theirProps: u, slot: s, attrs: n, slots: t, name: r });
2821
+ };
2822
+ } });
2823
+ let uo = Symbol("GroupContext");
2824
+ T({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
2825
+ let o = O(null), r = Ea({ name: "SwitchLabel", props: { htmlFor: S(() => {
2826
+ var i;
2827
+ return (i = o.value) == null ? void 0 : i.id;
2828
+ }), onClick(i) {
2829
+ o.value && (i.currentTarget.tagName === "LABEL" && i.preventDefault(), o.value.click(), o.value.focus({ preventScroll: !0 }));
2830
+ } } }), s = sa({ name: "SwitchDescription" });
2831
+ return Be(uo, { switchRef: o, labelledby: r, describedby: s }), () => Y({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: n, name: "SwitchGroup" });
2832
+ } });
2833
+ let Sa = T({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: !0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 }, id: { type: String, default: () => `headlessui-switch-${de()}` } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: o, expose: r }) {
2834
+ let s = ze(uo, null), [i, a] = to(S(() => e.modelValue), (m) => t("update:modelValue", m), S(() => e.defaultChecked));
2835
+ function c() {
2836
+ a(!i.value);
2837
+ }
2838
+ let u = O(null), l = s === null ? u : s.switchRef, d = pn(S(() => ({ as: e.as, type: n.type })), l);
2839
+ r({ el: l, $el: l });
2840
+ function p(m) {
2841
+ m.preventDefault(), c();
2842
+ }
2843
+ function v(m) {
2844
+ m.key === P.Space ? (m.preventDefault(), c()) : m.key === P.Enter && ra(m.currentTarget);
2845
+ }
2846
+ function y(m) {
2847
+ m.preventDefault();
2848
+ }
2849
+ let f = S(() => {
2850
+ var m, h;
2851
+ return (h = (m = D(l)) == null ? void 0 : m.closest) == null ? void 0 : h.call(m, "form");
2852
+ });
2853
+ return ue(() => {
2854
+ Oe([f], () => {
2855
+ if (!f.value || e.defaultChecked === void 0)
2856
+ return;
2857
+ function m() {
2858
+ a(e.defaultChecked);
2859
+ }
2860
+ return f.value.addEventListener("reset", m), () => {
2861
+ var h;
2862
+ (h = f.value) == null || h.removeEventListener("reset", m);
2863
+ };
2864
+ }, { immediate: !0 });
2865
+ }), () => {
2866
+ let { id: m, name: h, value: x, form: w, ...g } = e, _ = { checked: i.value }, E = { id: m, ref: l, role: "switch", type: d.value, tabIndex: 0, "aria-checked": i.value, "aria-labelledby": s == null ? void 0 : s.labelledby.value, "aria-describedby": s == null ? void 0 : s.describedby.value, onClick: p, onKeyup: v, onKeypress: y };
2867
+ return Ye(Fe, [h != null && i.value != null ? Ye(Jr, Hr({ features: gn.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: i.value, form: w, name: h, value: x })) : null, Y({ ourProps: E, theirProps: { ...n, ...fn(g, ["modelValue", "defaultChecked"]) }, slot: _, attrs: n, slots: o, name: "Switch" })]);
2868
+ };
2869
+ } });
2870
+ function te(e) {
2871
+ if (e == null)
2872
+ return window;
2873
+ if (e.toString() !== "[object Window]") {
2874
+ var t = e.ownerDocument;
2875
+ return t && t.defaultView || window;
2876
+ }
2877
+ return e;
2878
+ }
2879
+ function bn(e) {
2880
+ var t = te(e).Element;
2881
+ return e instanceof t || e instanceof Element;
2882
+ }
2883
+ function oe(e) {
2884
+ var t = te(e).HTMLElement;
2885
+ return e instanceof t || e instanceof HTMLElement;
2886
+ }
2887
+ function co(e) {
2888
+ if (typeof ShadowRoot > "u")
2889
+ return !1;
2890
+ var t = te(e).ShadowRoot;
2891
+ return e instanceof t || e instanceof ShadowRoot;
2892
+ }
2893
+ var Ae = Math.round;
2894
+ function Wt() {
2895
+ var e = navigator.userAgentData;
2896
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
2897
+ return t.brand + "/" + t.version;
2898
+ }).join(" ") : navigator.userAgent;
2899
+ }
2900
+ function Oa() {
2901
+ return !/^((?!chrome|android).)*safari/i.test(Wt());
2902
+ }
2903
+ function yt(e, t, n) {
2904
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
2905
+ var o = e.getBoundingClientRect(), r = 1, s = 1;
2906
+ t && oe(e) && (r = e.offsetWidth > 0 && Ae(o.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Ae(o.height) / e.offsetHeight || 1);
2907
+ var i = bn(e) ? te(e) : window, a = i.visualViewport, c = !Oa() && n, u = (o.left + (c && a ? a.offsetLeft : 0)) / r, l = (o.top + (c && a ? a.offsetTop : 0)) / s, d = o.width / r, p = o.height / s;
2908
+ return {
2909
+ width: d,
2910
+ height: p,
2911
+ top: l,
2912
+ right: u + d,
2913
+ bottom: l + p,
2914
+ left: u,
2915
+ x: u,
2916
+ y: l
2917
+ };
2918
+ }
2919
+ function fo(e) {
2920
+ var t = te(e), n = t.pageXOffset, o = t.pageYOffset;
2921
+ return {
2922
+ scrollLeft: n,
2923
+ scrollTop: o
2924
+ };
2925
+ }
2926
+ function Na(e) {
2927
+ return {
2928
+ scrollLeft: e.scrollLeft,
2929
+ scrollTop: e.scrollTop
2930
+ };
2931
+ }
2932
+ function Da(e) {
2933
+ return e === te(e) || !oe(e) ? fo(e) : Na(e);
2934
+ }
2935
+ function pe(e) {
2936
+ return e ? (e.nodeName || "").toLowerCase() : null;
2937
+ }
2938
+ function Dt(e) {
2939
+ return ((bn(e) ? e.ownerDocument : (
2940
+ // $FlowFixMe[prop-missing]
2941
+ e.document
2942
+ )) || window.document).documentElement;
2943
+ }
2944
+ function Pa(e) {
2945
+ return yt(Dt(e)).left + fo(e).scrollLeft;
2946
+ }
2947
+ function Ne(e) {
2948
+ return te(e).getComputedStyle(e);
2949
+ }
2950
+ function yn(e) {
2951
+ var t = Ne(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
2952
+ return /auto|scroll|overlay|hidden/.test(n + r + o);
2953
+ }
2954
+ function Ca(e) {
2955
+ var t = e.getBoundingClientRect(), n = Ae(t.width) / e.offsetWidth || 1, o = Ae(t.height) / e.offsetHeight || 1;
2956
+ return n !== 1 || o !== 1;
2957
+ }
2958
+ function ka(e, t, n) {
2959
+ n === void 0 && (n = !1);
2960
+ var o = oe(t), r = oe(t) && Ca(t), s = Dt(t), i = yt(e, r, n), a = {
2961
+ scrollLeft: 0,
2962
+ scrollTop: 0
2963
+ }, c = {
2964
+ x: 0,
2965
+ y: 0
2966
+ };
2967
+ return (o || !o && !n) && ((pe(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
2968
+ yn(s)) && (a = Da(t)), oe(t) ? (c = yt(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : s && (c.x = Pa(s))), {
2969
+ x: i.left + a.scrollLeft - c.x,
2970
+ y: i.top + a.scrollTop - c.y,
2971
+ width: i.width,
2972
+ height: i.height
2973
+ };
2974
+ }
2975
+ function Ra(e) {
2976
+ var t = yt(e), n = e.offsetWidth, o = e.offsetHeight;
2977
+ return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), {
2978
+ x: e.offsetLeft,
2979
+ y: e.offsetTop,
2980
+ width: n,
2981
+ height: o
2982
+ };
2983
+ }
2984
+ function wn(e) {
2985
+ return pe(e) === "html" ? e : (
2986
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
2987
+ // $FlowFixMe[incompatible-return]
2988
+ // $FlowFixMe[prop-missing]
2989
+ e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
2990
+ e.parentNode || // DOM Element detected
2991
+ (co(e) ? e.host : null) || // ShadowRoot detected
2992
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
2993
+ Dt(e)
2994
+ );
2995
+ }
2996
+ function po(e) {
2997
+ return ["html", "body", "#document"].indexOf(pe(e)) >= 0 ? e.ownerDocument.body : oe(e) && yn(e) ? e : po(wn(e));
2998
+ }
2999
+ function ft(e, t) {
3000
+ var n;
3001
+ t === void 0 && (t = []);
3002
+ var o = po(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = te(o), i = r ? [s].concat(s.visualViewport || [], yn(o) ? o : []) : o, a = t.concat(i);
3003
+ return r ? a : (
3004
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
3005
+ a.concat(ft(wn(i)))
3006
+ );
3007
+ }
3008
+ function $a(e) {
3009
+ return ["table", "td", "th"].indexOf(pe(e)) >= 0;
3010
+ }
3011
+ function Yn(e) {
3012
+ return !oe(e) || // https://github.com/popperjs/popper-core/issues/837
3013
+ Ne(e).position === "fixed" ? null : e.offsetParent;
3014
+ }
3015
+ function Ia(e) {
3016
+ var t = /firefox/i.test(Wt()), n = /Trident/i.test(Wt());
3017
+ if (n && oe(e)) {
3018
+ var o = Ne(e);
3019
+ if (o.position === "fixed")
3020
+ return null;
3021
+ }
3022
+ var r = wn(e);
3023
+ for (co(r) && (r = r.host); oe(r) && ["html", "body"].indexOf(pe(r)) < 0; ) {
3024
+ var s = Ne(r);
3025
+ if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
3026
+ return r;
3027
+ r = r.parentNode;
3028
+ }
3029
+ return null;
3030
+ }
3031
+ function vo(e) {
3032
+ for (var t = te(e), n = Yn(e); n && $a(n) && Ne(n).position === "static"; )
3033
+ n = Yn(n);
3034
+ return n && (pe(n) === "html" || pe(n) === "body" && Ne(n).position === "static") ? t : n || Ia(e) || t;
3035
+ }
3036
+ var pt = "top", Kt = "bottom", qt = "right", vt = "left", Ta = "start", Gt = "end", Va = "beforeRead", Ma = "read", La = "afterRead", ja = "beforeMain", Aa = "main", Fa = "afterMain", za = "beforeWrite", Ba = "write", Ha = "afterWrite", Ua = [Va, Ma, La, ja, Aa, Fa, za, Ba, Ha];
3037
+ function Wa(e) {
3038
+ var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
3039
+ e.forEach(function(s) {
3040
+ t.set(s.name, s);
3041
+ });
3042
+ function r(s) {
3043
+ n.add(s.name);
3044
+ var i = [].concat(s.requires || [], s.requiresIfExists || []);
3045
+ i.forEach(function(a) {
3046
+ if (!n.has(a)) {
3047
+ var c = t.get(a);
3048
+ c && r(c);
3049
+ }
3050
+ }), o.push(s);
3051
+ }
3052
+ return e.forEach(function(s) {
3053
+ n.has(s.name) || r(s);
3054
+ }), o;
3055
+ }
3056
+ function Ka(e) {
3057
+ var t = Wa(e);
3058
+ return Ua.reduce(function(n, o) {
3059
+ return n.concat(t.filter(function(r) {
3060
+ return r.phase === o;
3061
+ }));
3062
+ }, []);
3063
+ }
3064
+ function qa(e) {
3065
+ var t;
3066
+ return function() {
3067
+ return t || (t = new Promise(function(n) {
3068
+ Promise.resolve().then(function() {
3069
+ t = void 0, n(e());
3070
+ });
3071
+ })), t;
3072
+ };
3073
+ }
3074
+ function Ga(e) {
3075
+ var t = e.reduce(function(n, o) {
3076
+ var r = n[o.name];
3077
+ return n[o.name] = r ? Object.assign({}, r, o, {
3078
+ options: Object.assign({}, r.options, o.options),
3079
+ data: Object.assign({}, r.data, o.data)
3080
+ }) : o, n;
3081
+ }, {});
3082
+ return Object.keys(t).map(function(n) {
3083
+ return t[n];
3084
+ });
3085
+ }
3086
+ function ho(e) {
3087
+ return e.split("-")[0];
3088
+ }
3089
+ function mo(e) {
3090
+ return e.split("-")[1];
3091
+ }
3092
+ function Ya(e) {
3093
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
3094
+ }
3095
+ function Xa(e) {
3096
+ var t = e.reference, n = e.element, o = e.placement, r = o ? ho(o) : null, s = o ? mo(o) : null, i = t.x + t.width / 2 - n.width / 2, a = t.y + t.height / 2 - n.height / 2, c;
3097
+ switch (r) {
3098
+ case pt:
3099
+ c = {
3100
+ x: i,
3101
+ y: t.y - n.height
3102
+ };
3103
+ break;
3104
+ case Kt:
3105
+ c = {
3106
+ x: i,
3107
+ y: t.y + t.height
3108
+ };
3109
+ break;
3110
+ case qt:
3111
+ c = {
3112
+ x: t.x + t.width,
3113
+ y: a
3114
+ };
3115
+ break;
3116
+ case vt:
3117
+ c = {
3118
+ x: t.x - n.width,
3119
+ y: a
3120
+ };
3121
+ break;
3122
+ default:
3123
+ c = {
3124
+ x: t.x,
3125
+ y: t.y
3126
+ };
3127
+ }
3128
+ var u = r ? Ya(r) : null;
3129
+ if (u != null) {
3130
+ var l = u === "y" ? "height" : "width";
3131
+ switch (s) {
3132
+ case Ta:
3133
+ c[u] = c[u] - (t[l] / 2 - n[l] / 2);
3134
+ break;
3135
+ case Gt:
3136
+ c[u] = c[u] + (t[l] / 2 - n[l] / 2);
3137
+ break;
3138
+ }
3139
+ }
3140
+ return c;
3141
+ }
3142
+ var Xn = {
3143
+ placement: "bottom",
3144
+ modifiers: [],
3145
+ strategy: "absolute"
3146
+ };
3147
+ function Jn() {
3148
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
3149
+ t[n] = arguments[n];
3150
+ return !t.some(function(o) {
3151
+ return !(o && typeof o.getBoundingClientRect == "function");
3152
+ });
3153
+ }
3154
+ function Ja(e) {
3155
+ e === void 0 && (e = {});
3156
+ var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, s = r === void 0 ? Xn : r;
3157
+ return function(a, c, u) {
3158
+ u === void 0 && (u = s);
3159
+ var l = {
3160
+ placement: "bottom",
3161
+ orderedModifiers: [],
3162
+ options: Object.assign({}, Xn, s),
3163
+ modifiersData: {},
3164
+ elements: {
3165
+ reference: a,
3166
+ popper: c
3167
+ },
3168
+ attributes: {},
3169
+ styles: {}
3170
+ }, d = [], p = !1, v = {
3171
+ state: l,
3172
+ setOptions: function(h) {
3173
+ var x = typeof h == "function" ? h(l.options) : h;
3174
+ f(), l.options = Object.assign({}, s, l.options, x), l.scrollParents = {
3175
+ reference: bn(a) ? ft(a) : a.contextElement ? ft(a.contextElement) : [],
3176
+ popper: ft(c)
3177
+ };
3178
+ var w = Ka(Ga([].concat(o, l.options.modifiers)));
3179
+ return l.orderedModifiers = w.filter(function(g) {
3180
+ return g.enabled;
3181
+ }), y(), v.update();
3182
+ },
3183
+ // Sync update – it will always be executed, even if not necessary. This
3184
+ // is useful for low frequency updates where sync behavior simplifies the
3185
+ // logic.
3186
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
3187
+ // prefer the async Popper#update method
3188
+ forceUpdate: function() {
3189
+ if (!p) {
3190
+ var h = l.elements, x = h.reference, w = h.popper;
3191
+ if (Jn(x, w)) {
3192
+ l.rects = {
3193
+ reference: ka(x, vo(w), l.options.strategy === "fixed"),
3194
+ popper: Ra(w)
3195
+ }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(Ce) {
3196
+ return l.modifiersData[Ce.name] = Object.assign({}, Ce.data);
3197
+ });
3198
+ for (var g = 0; g < l.orderedModifiers.length; g++) {
3199
+ if (l.reset === !0) {
3200
+ l.reset = !1, g = -1;
3201
+ continue;
3202
+ }
3203
+ var _ = l.orderedModifiers[g], E = _.fn, M = _.options, ae = M === void 0 ? {} : M, Pe = _.name;
3204
+ typeof E == "function" && (l = E({
3205
+ state: l,
3206
+ options: ae,
3207
+ name: Pe,
3208
+ instance: v
3209
+ }) || l);
3210
+ }
3211
+ }
3212
+ }
3213
+ },
3214
+ // Async and optimistically optimized update – it will not be executed if
3215
+ // not necessary (debounced to run at most once-per-tick)
3216
+ update: qa(function() {
3217
+ return new Promise(function(m) {
3218
+ v.forceUpdate(), m(l);
3219
+ });
3220
+ }),
3221
+ destroy: function() {
3222
+ f(), p = !0;
3223
+ }
3224
+ };
3225
+ if (!Jn(a, c))
3226
+ return v;
3227
+ v.setOptions(u).then(function(m) {
3228
+ !p && u.onFirstUpdate && u.onFirstUpdate(m);
3229
+ });
3230
+ function y() {
3231
+ l.orderedModifiers.forEach(function(m) {
3232
+ var h = m.name, x = m.options, w = x === void 0 ? {} : x, g = m.effect;
3233
+ if (typeof g == "function") {
3234
+ var _ = g({
3235
+ state: l,
3236
+ name: h,
3237
+ instance: v,
3238
+ options: w
3239
+ }), E = function() {
3240
+ };
3241
+ d.push(_ || E);
3242
+ }
3243
+ });
3244
+ }
3245
+ function f() {
3246
+ d.forEach(function(m) {
3247
+ return m();
3248
+ }), d = [];
3249
+ }
3250
+ return v;
3251
+ };
3252
+ }
3253
+ var ct = {
3254
+ passive: !0
3255
+ };
3256
+ function Za(e) {
3257
+ var t = e.state, n = e.instance, o = e.options, r = o.scroll, s = r === void 0 ? !0 : r, i = o.resize, a = i === void 0 ? !0 : i, c = te(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
3258
+ return s && u.forEach(function(l) {
3259
+ l.addEventListener("scroll", n.update, ct);
3260
+ }), a && c.addEventListener("resize", n.update, ct), function() {
3261
+ s && u.forEach(function(l) {
3262
+ l.removeEventListener("scroll", n.update, ct);
3263
+ }), a && c.removeEventListener("resize", n.update, ct);
3264
+ };
3265
+ }
3266
+ const Qa = {
3267
+ name: "eventListeners",
3268
+ enabled: !0,
3269
+ phase: "write",
3270
+ fn: function() {
3271
+ },
3272
+ effect: Za,
3273
+ data: {}
3274
+ };
3275
+ function el(e) {
3276
+ var t = e.state, n = e.name;
3277
+ t.modifiersData[n] = Xa({
3278
+ reference: t.rects.reference,
3279
+ element: t.rects.popper,
3280
+ strategy: "absolute",
3281
+ placement: t.placement
3282
+ });
3283
+ }
3284
+ const tl = {
3285
+ name: "popperOffsets",
3286
+ enabled: !0,
3287
+ phase: "read",
3288
+ fn: el,
3289
+ data: {}
3290
+ };
3291
+ var nl = {
3292
+ top: "auto",
3293
+ right: "auto",
3294
+ bottom: "auto",
3295
+ left: "auto"
3296
+ };
3297
+ function rl(e, t) {
3298
+ var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
3299
+ return {
3300
+ x: Ae(n * r) / r || 0,
3301
+ y: Ae(o * r) / r || 0
3302
+ };
3303
+ }
3304
+ function Zn(e) {
3305
+ var t, n = e.popper, o = e.popperRect, r = e.placement, s = e.variation, i = e.offsets, a = e.position, c = e.gpuAcceleration, u = e.adaptive, l = e.roundOffsets, d = e.isFixed, p = i.x, v = p === void 0 ? 0 : p, y = i.y, f = y === void 0 ? 0 : y, m = typeof l == "function" ? l({
3306
+ x: v,
3307
+ y: f
3308
+ }) : {
3309
+ x: v,
3310
+ y: f
3311
+ };
3312
+ v = m.x, f = m.y;
3313
+ var h = i.hasOwnProperty("x"), x = i.hasOwnProperty("y"), w = vt, g = pt, _ = window;
3314
+ if (u) {
3315
+ var E = vo(n), M = "clientHeight", ae = "clientWidth";
3316
+ if (E === te(n) && (E = Dt(n), Ne(E).position !== "static" && a === "absolute" && (M = "scrollHeight", ae = "scrollWidth")), E = E, r === pt || (r === vt || r === qt) && s === Gt) {
3317
+ g = Kt;
3318
+ var Pe = d && E === _ && _.visualViewport ? _.visualViewport.height : (
3319
+ // $FlowFixMe[prop-missing]
3320
+ E[M]
3321
+ );
3322
+ f -= Pe - o.height, f *= c ? 1 : -1;
3323
+ }
3324
+ if (r === vt || (r === pt || r === Kt) && s === Gt) {
3325
+ w = qt;
3326
+ var Ce = d && E === _ && _.visualViewport ? _.visualViewport.width : (
3327
+ // $FlowFixMe[prop-missing]
3328
+ E[ae]
3329
+ );
3330
+ v -= Ce - o.width, v *= c ? 1 : -1;
3331
+ }
3332
+ }
3333
+ var xn = Object.assign({
3334
+ position: a
3335
+ }, u && nl), _n = l === !0 ? rl({
3336
+ x: v,
3337
+ y: f
3338
+ }, te(n)) : {
3339
+ x: v,
3340
+ y: f
3341
+ };
3342
+ if (v = _n.x, f = _n.y, c) {
3343
+ var He;
3344
+ return Object.assign({}, xn, (He = {}, He[g] = x ? "0" : "", He[w] = h ? "0" : "", He.transform = (_.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + f + "px)" : "translate3d(" + v + "px, " + f + "px, 0)", He));
3345
+ }
3346
+ return Object.assign({}, xn, (t = {}, t[g] = x ? f + "px" : "", t[w] = h ? v + "px" : "", t.transform = "", t));
3347
+ }
3348
+ function ol(e) {
3349
+ var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, s = n.adaptive, i = s === void 0 ? !0 : s, a = n.roundOffsets, c = a === void 0 ? !0 : a, u = {
3350
+ placement: ho(t.placement),
3351
+ variation: mo(t.placement),
3352
+ popper: t.elements.popper,
3353
+ popperRect: t.rects.popper,
3354
+ gpuAcceleration: r,
3355
+ isFixed: t.options.strategy === "fixed"
3356
+ };
3357
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Zn(Object.assign({}, u, {
3358
+ offsets: t.modifiersData.popperOffsets,
3359
+ position: t.options.strategy,
3360
+ adaptive: i,
3361
+ roundOffsets: c
3362
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Zn(Object.assign({}, u, {
3363
+ offsets: t.modifiersData.arrow,
3364
+ position: "absolute",
3365
+ adaptive: !1,
3366
+ roundOffsets: c
3367
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
3368
+ "data-popper-placement": t.placement
3369
+ });
3370
+ }
3371
+ const sl = {
3372
+ name: "computeStyles",
3373
+ enabled: !0,
3374
+ phase: "beforeWrite",
3375
+ fn: ol,
3376
+ data: {}
3377
+ };
3378
+ function il(e) {
3379
+ var t = e.state;
3380
+ Object.keys(t.elements).forEach(function(n) {
3381
+ var o = t.styles[n] || {}, r = t.attributes[n] || {}, s = t.elements[n];
3382
+ !oe(s) || !pe(s) || (Object.assign(s.style, o), Object.keys(r).forEach(function(i) {
3383
+ var a = r[i];
3384
+ a === !1 ? s.removeAttribute(i) : s.setAttribute(i, a === !0 ? "" : a);
3385
+ }));
3386
+ });
3387
+ }
3388
+ function al(e) {
3389
+ var t = e.state, n = {
3390
+ popper: {
3391
+ position: t.options.strategy,
3392
+ left: "0",
3393
+ top: "0",
3394
+ margin: "0"
3395
+ },
3396
+ arrow: {
3397
+ position: "absolute"
3398
+ },
3399
+ reference: {}
3400
+ };
3401
+ return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
3402
+ Object.keys(t.elements).forEach(function(o) {
3403
+ var r = t.elements[o], s = t.attributes[o] || {}, i = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), a = i.reduce(function(c, u) {
3404
+ return c[u] = "", c;
3405
+ }, {});
3406
+ !oe(r) || !pe(r) || (Object.assign(r.style, a), Object.keys(s).forEach(function(c) {
3407
+ r.removeAttribute(c);
3408
+ }));
3409
+ });
3410
+ };
3411
+ }
3412
+ const ll = {
3413
+ name: "applyStyles",
3414
+ enabled: !0,
3415
+ phase: "write",
3416
+ fn: il,
3417
+ effect: al,
3418
+ requires: ["computeStyles"]
3419
+ };
3420
+ var ul = [Qa, tl, sl, ll], cl = /* @__PURE__ */ Ja({
3421
+ defaultModifiers: ul
3422
+ });
3423
+ function dl(e) {
3424
+ const t = O(null), n = O(null);
3425
+ return ue(() => {
3426
+ De((o) => {
3427
+ if (!n.value || !t.value)
3428
+ return;
3429
+ const r = n.value.el || n.value, s = t.value.el || t.value;
3430
+ if (!(s instanceof HTMLElement) || !(r instanceof HTMLElement))
3431
+ return;
3432
+ const { destroy: i } = cl(s, r, e);
3433
+ o(i);
3434
+ });
3435
+ }), [t, n];
3436
+ }
3437
+ const Fl = /* @__PURE__ */ T({
3438
+ __name: "MenuContainer",
3439
+ props: {
3440
+ position: { default: "left" },
3441
+ usePortal: { type: [Boolean, String], default: !1 }
3442
+ },
3443
+ setup(e) {
3444
+ const n = e.position === "left" ? "bottom-end" : "bottom-start", [o, r] = dl({ placement: n });
3445
+ return (s, i) => (N(), Q(k(ya), {
3446
+ as: "div",
3447
+ class: "relative inline-block text-left"
3448
+ }, {
3449
+ default: Z(({ open: a }) => [
3450
+ H(k(wa), {
3451
+ class: "focus:outline-none",
3452
+ ref_key: "button",
3453
+ ref: o
3454
+ }, {
3455
+ default: Z(() => [
3456
+ En(s.$slots, "button", {}, () => [
3457
+ H(k(X), {
3458
+ class: "fill-current",
3459
+ name: "ellipsis-h"
3460
+ })
3461
+ ])
3462
+ ]),
3463
+ _: 3
3464
+ }, 512),
3465
+ (N(), Q(_o, {
3466
+ to: typeof s.usePortal == "string" ? s.usePortal : "body",
3467
+ disabled: !s.usePortal
3468
+ }, [
3469
+ I("div", {
3470
+ ref_key: "container",
3471
+ ref: r,
3472
+ class: L(["w-56", a ? "mt-" : "mt-px"])
3473
+ }, [
3474
+ H(Qn, {
3475
+ "enter-active-class": "transition duration-200 ease-in-out",
3476
+ "enter-from-class": "transform -translate-y-4 opacity-0",
3477
+ "enter-to-class": "transform opacity-100",
3478
+ "leave-active-class": "transition duration-100 ease-in-out",
3479
+ "leave-from-class": "transform opacity-100",
3480
+ "leave-to-class": "transform -translate-y-2 opacity-0"
3481
+ }, {
3482
+ default: Z(() => [
3483
+ H(k(xa), {
3484
+ class: L([
3485
+ {
3486
+ "absolute left-0 origin-top-left": !s.usePortal && s.position === "right",
3487
+ "absolute right-0 origin-top-right": !s.usePortal && s.position === "left"
3488
+ },
3489
+ "z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"
3490
+ ])
3491
+ }, {
3492
+ default: Z(() => [
3493
+ En(s.$slots, "default")
3494
+ ]),
3495
+ _: 3
3496
+ }, 8, ["class"])
3497
+ ]),
3498
+ _: 3
3499
+ })
3500
+ ], 2)
3501
+ ], 8, ["to", "disabled"]))
3502
+ ]),
3503
+ _: 3
3504
+ }));
3505
+ }
3506
+ }), fl = {
3507
+ key: 0,
3508
+ class: "bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"
3509
+ }, zl = /* @__PURE__ */ T({
3510
+ __name: "MenuLink",
3511
+ props: {
3512
+ label: {},
3513
+ meta: {},
3514
+ disabled: { type: Boolean },
3515
+ as: {}
3516
+ },
3517
+ setup(e) {
3518
+ return (t, n) => (N(), Q(k(_a), Eo(So({ disabled: t.disabled })), {
3519
+ default: Z(({ active: o }) => [
3520
+ (N(), Q(Oo(t.as || "span"), {
3521
+ class: L(["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg", [
3522
+ o ? "bg-grey-200" : "",
3523
+ t.disabled ? "opacity-50 pointer-events-none" : "hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"
3524
+ ]])
3525
+ }, {
3526
+ default: Z(() => [
3527
+ I("span", null, K(t.label), 1),
3528
+ t.meta ? (N(), R("span", fl, K(t.meta), 1)) : A("", !0)
3529
+ ]),
3530
+ _: 2
3531
+ }, 1032, ["class"]))
3532
+ ]),
3533
+ _: 1
3534
+ }, 16));
3535
+ }
3536
+ }), pl = { class: "relative" }, vl = {
3537
+ key: 0,
3538
+ class: "absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"
3539
+ }, hl = {
3540
+ key: 1,
3541
+ class: "block truncate"
3542
+ }, ml = {
3543
+ key: 2,
3544
+ class: "text-grey-500 truncate"
3545
+ }, gl = { class: "absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none" }, bl = { class: "absolute right-2 inset-y-0 flex items-center" }, yl = {
3546
+ key: 0,
3547
+ class: "bg-grey-500 text-grey-100 rounded text-xs px-2 py-1"
3548
+ }, Bl = /* @__PURE__ */ T({
3549
+ __name: "Select",
3550
+ props: {
3551
+ modelValue: {},
3552
+ size: { default: "medium" },
3553
+ icon: {},
3554
+ placeholder: {},
3555
+ isDisabled: { type: Boolean, default: !1 },
3556
+ options: {},
3557
+ disabledBadge: {}
3558
+ },
3559
+ emits: ["update:modelValue"],
3560
+ setup(e, { emit: t }) {
3561
+ const n = e, o = n.modelValue ? O(n.modelValue) : O(void 0), r = t, { inputClasses: s, disabledClasses: i, textSizeClasses: a } = dn(n);
3562
+ return Oe(
3563
+ () => n.modelValue,
3564
+ (c) => {
3565
+ var u;
3566
+ c && c.id !== ((u = o.value) == null ? void 0 : u.id) && (o.value = c);
3567
+ }
3568
+ ), Oe(o, (c) => {
3569
+ c && r("update:modelValue", c);
3570
+ }), (c, u) => (N(), Q(k(fa), {
3571
+ as: "div",
3572
+ modelValue: k(o),
3573
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => No(o) ? o.value = l : null),
3574
+ disabled: c.isDisabled
3575
+ }, {
3576
+ default: Z(() => [
3577
+ I("div", pl, [
3578
+ H(k(pa), {
3579
+ class: L(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left", [k(s), k(a), k(i)]])
3580
+ }, {
3581
+ default: Z(() => {
3582
+ var l;
3583
+ return [
3584
+ c.icon ? (N(), R("span", vl, [
3585
+ H(X, {
3586
+ name: ((l = k(o)) == null ? void 0 : l.icon) ?? c.icon
3587
+ }, null, 8, ["name"])
3588
+ ])) : A("", !0),
3589
+ k(o) ? (N(), R("span", hl, K(k(o).label), 1)) : (N(), R("span", ml, K(c.placeholder), 1)),
3590
+ I("span", gl, [
3591
+ H(X, {
3592
+ class: "text-grey-400",
3593
+ name: "chevron-down",
3594
+ "aria-hidden": "true"
3595
+ })
3596
+ ])
3597
+ ];
3598
+ }),
3599
+ _: 1
3600
+ }, 8, ["class"]),
3601
+ H(Qn, {
3602
+ "leave-active-class": "transition ease-in duration-100",
3603
+ "leave-from-class": "opacity-100",
3604
+ "leave-to-class": "opacity-0"
3605
+ }, {
3606
+ default: Z(() => [
3607
+ H(k(va), { class: "absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm" }, {
3608
+ default: Z(() => [
3609
+ (N(!0), R(Fe, null, er(c.options, (l) => (N(), Q(k(ha), {
3610
+ as: "template",
3611
+ key: l.id,
3612
+ value: l,
3613
+ disabled: l.disabled
3614
+ }, {
3615
+ default: Z(({ active: d, selected: p }) => [
3616
+ I("li", {
3617
+ class: L([
3618
+ d ? "text-white bg-blue-500" : "text-grey-900 dark:text-grey-50",
3619
+ "cursor-default select-none relative py-2 pl-3 pr-12",
3620
+ { "opacity-50 bg-grey-100": l.disabled }
3621
+ ])
3622
+ }, [
3623
+ I("div", bl, [
3624
+ l.disabled && c.disabledBadge ? (N(), R("span", yl, K(c.disabledBadge), 1)) : A("", !0)
3625
+ ]),
3626
+ I("span", {
3627
+ class: L([
3628
+ p ? "font-semibold" : "font-normal",
3629
+ "block truncate"
3630
+ ])
3631
+ }, [
3632
+ l.icon ? (N(), Q(X, {
3633
+ key: 0,
3634
+ class: "inline-block mr-1",
3635
+ name: l.icon
3636
+ }, null, 8, ["name"])) : A("", !0),
3637
+ Do(" " + K(l.label), 1)
3638
+ ], 2),
3639
+ p ? (N(), R("span", {
3640
+ key: 0,
3641
+ class: L([
3642
+ d ? "text-blue-100" : "text-blue-500",
3643
+ "absolute inset-y-0 right-0 flex items-center pr-4"
3644
+ ])
3645
+ }, [
3646
+ H(X, {
3647
+ name: "check",
3648
+ class: "h-5 w-5",
3649
+ "aria-hidden": "true"
3650
+ })
3651
+ ], 2)) : A("", !0)
3652
+ ], 2)
3653
+ ]),
3654
+ _: 2
3655
+ }, 1032, ["value", "disabled"]))), 128))
3656
+ ]),
3657
+ _: 1
3658
+ })
3659
+ ]),
3660
+ _: 1
3661
+ })
3662
+ ])
3663
+ ]),
3664
+ _: 1
3665
+ }, 8, ["modelValue", "disabled"]));
3666
+ }
3667
+ }), wl = { class: "animate-pulse" }, xl = { class: "flex items-center justify-between space-x-4" }, _l = {
3668
+ key: 0,
3669
+ class: "w-12 h-12 bg-current rounded-full shrink-0"
3670
+ }, El = {
3671
+ key: 1,
3672
+ class: "w-full h-8 bg-current rounded-lg"
3673
+ }, Sl = {
3674
+ key: 0,
3675
+ class: "mt-6 space-y-2"
3676
+ }, Ol = {
3677
+ key: 1,
3678
+ class: "w-1/3 h-10 mt-6 bg-current rounded-lg"
3679
+ }, Hl = /* @__PURE__ */ T({
3680
+ __name: "Skeleton",
3681
+ props: {
3682
+ avatar: { type: Boolean, default: !1 },
3683
+ title: { type: Boolean, default: !0 },
3684
+ lines: { default: 3 },
3685
+ footer: { type: Boolean, default: !1 }
3686
+ },
3687
+ setup(e) {
3688
+ const t = e, n = new Array(t.lines).fill(void 0).map(() => {
3689
+ const o = [4, 5, 6, 8, 10, 16, 24, 32];
3690
+ return {
3691
+ margin: `mr-${o[Math.floor(Math.random() * o.length)]}`
3692
+ };
3693
+ });
3694
+ return (o, r) => (N(), R("div", wl, [
3695
+ I("div", xl, [
3696
+ o.avatar ? (N(), R("div", _l)) : A("", !0),
3697
+ o.title ? (N(), R("div", El)) : A("", !0)
3698
+ ]),
3699
+ o.lines > 0 ? (N(), R("div", Sl, [
3700
+ (N(!0), R(Fe, null, er(k(n), (s, i) => (N(), R("div", {
3701
+ class: L(["h-4 bg-current rounded-lg", s.margin]),
3702
+ key: i
3703
+ }, null, 2))), 128))
3704
+ ])) : A("", !0),
3705
+ o.footer ? (N(), R("div", Ol)) : A("", !0)
3706
+ ]));
3707
+ }
3708
+ }), Ul = /* @__PURE__ */ T({
3709
+ __name: "Spinner",
3710
+ setup(e) {
3711
+ return (t, n) => (N(), Q(k(X), {
3712
+ class: "animate-spin",
3713
+ name: "circle-notch"
3714
+ }));
3715
+ }
3716
+ }), Nl = { class: "relative inline-flex items-center" }, Dl = ["aria-label", "tabindex"], Pl = {
3717
+ key: 0,
3718
+ class: "absolute inset-0 flex items-center justify-center"
3719
+ }, Wl = /* @__PURE__ */ T({
3720
+ __name: "SplitButton",
3721
+ props: {
3722
+ label: {},
3723
+ size: { default: "medium" },
3724
+ color: { default: "primary" },
3725
+ isLoading: { type: Boolean, default: !1 },
3726
+ isDisabled: { type: Boolean, default: !1 },
3727
+ icon: { default: "plus" }
3728
+ },
3729
+ emits: ["onClick", "onClickSplit"],
3730
+ setup(e, { emit: t }) {
3731
+ const n = t, o = e, r = S(() => {
3732
+ const u = {
3733
+ "text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900": o.color === "primary",
3734
+ "text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900": o.color === "light",
3735
+ "text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900": o.color === "dark",
3736
+ "text-red-50 bg-red-500 border-transparent hover:bg-red-600 active:bg-red-600 ring-red-400 dark:ring-red-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-red-900": o.color === "danger"
3737
+ }, l = {
3738
+ "px-4 py-1 text-xs leading-5 mono-100": o.size === "small",
3739
+ "px-5 py-2 text-sm leading-4 font-medium": o.size === "medium",
3740
+ "px-8 pr-4 py-3 text-base leading-6 font-medium": o.size === "large"
3741
+ }, d = {
3742
+ "pointer-events-none opacity-75 cursor-not-allowed": o.isDisabled
3743
+ };
3744
+ return {
3745
+ ...u,
3746
+ ...d,
3747
+ ...l
3748
+ };
3749
+ }), s = S(() => {
3750
+ const u = {
3751
+ "border-l-white/50 border-l": o.color === "primary",
3752
+ "border-l-blue-100 border-l": o.color === "light",
3753
+ "border-l-grey-600 border-l": o.color === "dark",
3754
+ "border-l-red-600 border-l": o.color === "danger"
3755
+ }, l = {
3756
+ "pl-2 pr-3": o.size === "small",
3757
+ "pl-3 pr-3": o.size === "medium",
3758
+ "pl-4 pr-5": o.size === "large"
3759
+ };
3760
+ return {
3761
+ ...u,
3762
+ ...l
3763
+ };
3764
+ }), i = S(() => ({
3765
+ ...{
3766
+ "text-white": o.color === "primary",
3767
+ "text-blue-600": o.color === "light",
3768
+ "text-grey-50": o.color === "dark"
3769
+ }
3770
+ }));
3771
+ function a() {
3772
+ o.isDisabled || n("onClick");
3773
+ }
3774
+ function c() {
3775
+ o.isDisabled || n("onClickSplit");
3776
+ }
3777
+ return (u, l) => (N(), R("div", Nl, [
3778
+ I("button", {
3779
+ type: "button",
3780
+ "aria-label": u.label,
3781
+ tabindex: u.isDisabled ? "-1" : void 0,
3782
+ class: L(["relative transition duration-150 ease-in-out rounded-l-lg", r.value]),
3783
+ onClick: a
3784
+ }, [
3785
+ I("div", {
3786
+ class: L(!u.isLoading || "invisible")
3787
+ }, [
3788
+ I("span", null, K(u.label), 1)
3789
+ ], 2),
3790
+ u.isLoading ? (N(), R("span", Pl, [
3791
+ H(X, {
3792
+ class: "ml-3 animate-spin",
3793
+ name: "circle-notch"
3794
+ })
3795
+ ])) : A("", !0)
3796
+ ], 10, Dl),
3797
+ I("button", {
3798
+ type: "button",
3799
+ class: L(["border-l-white/50 border-l transition duration-150 ease-in-out rounded-r-lg", [r.value, s.value]]),
3800
+ onClick: c
3801
+ }, [
3802
+ H(X, {
3803
+ class: L([i.value]),
3804
+ name: u.icon
3805
+ }, null, 8, ["class", "name"])
3806
+ ], 2)
3807
+ ]));
3808
+ }
3809
+ }), Cl = { class: "sr-only" }, Kl = /* @__PURE__ */ T({
3810
+ __name: "Switch",
3811
+ props: {
3812
+ id: { default: ar() },
3813
+ label: {},
3814
+ modelValue: { type: Boolean },
3815
+ description: {},
3816
+ onLabel: { default: "on" },
3817
+ offLabel: { default: "off" }
3818
+ },
3819
+ emits: ["update:modelValue", "change"],
3820
+ setup(e, { emit: t }) {
3821
+ const n = t, o = (r) => {
3822
+ n("update:modelValue", r), n("change", r);
3823
+ };
3824
+ return (r, s) => (N(), Q(k(Sa), {
3825
+ modelValue: r.modelValue,
3826
+ label: r.label,
3827
+ class: L([r.modelValue ? "bg-blue-700" : "bg-grey-700", "relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),
3828
+ "onUpdate:modelValue": o
3829
+ }, {
3830
+ default: Z(() => [
3831
+ I("span", {
3832
+ class: L(["absolute text-xs text-center text-white inset-x-2", r.modelValue ? "pr-3" : "pl-3"])
3833
+ }, K(r.modelValue === !0 ? r.onLabel : r.offLabel), 3),
3834
+ I("span", Cl, K(r.label), 1),
3835
+ I("span", {
3836
+ class: L([r.modelValue ? "translate-x-9" : "translate-x-1", "inline-block w-4 h-4 transition bg-white rounded-full"])
3837
+ }, null, 2)
3838
+ ]),
3839
+ _: 1
3840
+ }, 8, ["modelValue", "label", "class"]));
3841
+ }
3842
+ }), kl = { class: "relative" }, Rl = ["tabindex", "value"], $l = {
3843
+ inheritAttrs: !1
3844
+ }, ql = /* @__PURE__ */ T({
3845
+ ...$l,
3846
+ __name: "Textarea",
3847
+ props: {
3848
+ modelValue: {},
3849
+ size: { default: "medium" },
3850
+ isDisabled: { type: Boolean, default: !1 },
3851
+ block: { type: Boolean }
3852
+ },
3853
+ emits: ["update:modelValue"],
3854
+ setup(e, { expose: t, emit: n }) {
3855
+ const o = e, r = n, { inputClasses: s, disabledClasses: i, textSizeClasses: a } = dn(o), c = function(d) {
3856
+ r("update:modelValue", (d == null ? void 0 : d.target).value);
3857
+ }, u = O(null);
3858
+ return t({
3859
+ focus: () => {
3860
+ o.isDisabled || u.value.focus();
3861
+ }
3862
+ }), (d, p) => (N(), R("div", kl, [
3863
+ I("textarea", Yt({
3864
+ class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [k(s), k(a), k(i)]],
3865
+ tabindex: d.isDisabled ? "-1" : void 0,
3866
+ value: d.modelValue ?? ""
3867
+ }, d.$attrs, {
3868
+ ref_key: "input",
3869
+ ref: u,
3870
+ cols: "56",
3871
+ rows: "8",
3872
+ onInput: c
3873
+ }), `
3874
+ `, 16, Rl)
3875
+ ]));
3876
+ }
3877
+ });
3878
+ export {
3879
+ Ml as D9Button,
3880
+ Ll as D9Checkbox,
3881
+ X as D9Icon,
3882
+ jl as D9Input,
3883
+ Al as D9Label,
3884
+ Fl as D9Menu,
3885
+ zl as D9MenuLink,
3886
+ Bl as D9Select,
3887
+ Hl as D9Skeleton,
3888
+ Ul as D9Spinner,
3889
+ Wl as D9SplitButton,
3890
+ Kl as D9Switch,
3891
+ ql as D9Textarea,
3892
+ On as brands,
3893
+ Vo as icons
3894
+ };