@cregis/ui 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createI18n as Kn } from "vue-i18n";
2
- import { defineComponent as oe, useSlots as Sn, ref as V, computed as p, openBlock as u, createElementBlock as h, normalizeClass as q, createElementVNode as S, mergeProps as Be, createBlock as de, resolveDynamicComponent as it, normalizeStyle as Z, renderSlot as ae, toDisplayString as H, createCommentVNode as N, unref as U, watch as le, nextTick as ge, onMounted as Ne, onBeforeUnmount as It, withDirectives as _e, vModelDynamic as Gn, withModifiers as Fe, vModelText as Zn, createVNode as ne, withCtx as ve, createTextVNode as ye, reactive as je, provide as Nt, toRef as ht, Fragment as ze, renderList as We, inject as jt, onUnmounted as Le, Transition as st, render as Ue, h as Ht, getCurrentScope as Qn, onScopeDispose as Jn, readonly as Ot, toHandlers as Tt, Teleport as _t, vShow as St, createSlots as on } from "vue";
3
- import { EdsLoad as Pt, EdsCloseCircleFill as ea, EdsTickFill as Cn, EdsWarningFill as ta, EdsSearch as On, EdsArrowDownMiniIos as Ft, EdsArrowRightMiniIos as na, EdsAdd as sn, EdsClose as Ut, EdsWarningLonely as aa, EdsTimeWait as ia, EdsArrowRefuses as ra, EdsTick as la, EdsNoData as oa } from "@cregis/icon";
2
+ import { defineComponent as oe, useSlots as Sn, ref as B, computed as p, openBlock as u, createElementBlock as m, normalizeClass as q, createElementVNode as C, mergeProps as Be, createBlock as de, resolveDynamicComponent as it, normalizeStyle as Z, renderSlot as ae, toDisplayString as _, createCommentVNode as j, unref as U, watch as le, nextTick as ge, onMounted as Ne, onBeforeUnmount as It, withDirectives as _e, vModelDynamic as Gn, withModifiers as Fe, vModelText as Zn, createVNode as ne, withCtx as ve, createTextVNode as ye, reactive as je, provide as Nt, toRef as ht, Fragment as ze, renderList as We, inject as jt, onUnmounted as Le, Transition as st, render as Ue, h as Ht, getCurrentScope as Qn, onScopeDispose as Jn, readonly as Ot, toHandlers as Tt, Teleport as _t, vShow as St, createSlots as on } from "vue";
3
+ import { EdsLoad as Vt, EdsCloseCircleFill as ea, EdsTickFill as Cn, EdsWarningFill as ta, EdsSearch as On, EdsArrowDownMiniIos as Ft, EdsArrowRightMiniIos as na, EdsAdd as sn, EdsClose as Ut, EdsWarningLonely as aa, EdsTimeWait as ia, EdsArrowRefuses as ra, EdsTick as la, EdsNoData as oa } from "@cregis/icon";
4
4
  const sa = {
5
5
  input: {
6
6
  placeholder: "請輸入"
@@ -122,14 +122,14 @@ const Tn = () => (zt || (zt = Kn({
122
122
  isActive: { type: Boolean }
123
123
  },
124
124
  setup(e) {
125
- const t = e, n = Sn(), i = V(null);
126
- function a() {
127
- t.disabled || t.loading || i.value?.click();
125
+ const t = e, n = Sn(), a = B(null);
126
+ function i() {
127
+ t.disabled || t.loading || a.value?.click();
128
128
  }
129
129
  const r = p(() => {
130
130
  const c = t, d = n.icon;
131
131
  return !c.icon && typeof d == "function";
132
- }), s = p(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), l = p(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), o = p(() => t.width ? { width: t.width } : void 0), v = p(() => {
132
+ }), o = p(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), l = p(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), s = p(() => t.width ? { width: t.width } : void 0), v = p(() => {
133
133
  if (t.plain || t.text)
134
134
  switch (t.type) {
135
135
  case "primary":
@@ -146,13 +146,13 @@ const Tn = () => (zt || (zt = Kn({
146
146
  else
147
147
  return t.type === "secondary" ? "var(--material-base-secondary)" : t.type === "foreground" ? "var(--text-face-primary)" : t.type === "sameWhite" ? "var(--text-same-black-primary)" : "var(--material-same-white-primary)";
148
148
  });
149
- return (c, d) => e.icon || c.$slots.icon ? (u(), h("div", {
149
+ return (c, d) => e.icon || c.$slots.icon ? (u(), m("div", {
150
150
  key: 0,
151
151
  class: q(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
152
152
  }, [
153
- S("button", Be({
153
+ C("button", Be({
154
154
  ref_key: "iconButtonRef",
155
- ref: i
155
+ ref: a
156
156
  }, c.$attrs, {
157
157
  class: ["cregis-button__icon", {
158
158
  [`cregis-button__icon--${e.iconType}`]: e.iconType,
@@ -165,21 +165,21 @@ const Tn = () => (zt || (zt = Kn({
165
165
  }), [
166
166
  e.icon ? (u(), de(it(e.icon), {
167
167
  key: 0,
168
- size: s.value
169
- }, null, 8, ["size"])) : (u(), h("span", {
168
+ size: o.value
169
+ }, null, 8, ["size"])) : (u(), m("span", {
170
170
  key: 1,
171
171
  class: "cregis-button__icon-slot-inner",
172
- style: Z({ "--cregis-btn-icon-slot-size": s.value })
172
+ style: Z({ "--cregis-btn-icon-slot-size": o.value })
173
173
  }, [
174
174
  ae(c.$slots, "icon")
175
175
  ], 4))
176
176
  ], 16, da),
177
- e.iconText ? (u(), h("span", {
177
+ e.iconText ? (u(), m("span", {
178
178
  key: 0,
179
179
  class: q(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
180
- onClick: a
181
- }, H(e.iconText), 3)) : N("", !0)
182
- ], 2)) : e.link ? (u(), h("button", Be({ key: 1 }, c.$attrs, {
180
+ onClick: i
181
+ }, _(e.iconText), 3)) : j("", !0)
182
+ ], 2)) : e.link ? (u(), m("button", Be({ key: 1 }, c.$attrs, {
183
183
  class: ["cregis-button__link", {
184
184
  [`cregis-button__link--${e.type}`]: e.type,
185
185
  [`cregis-button__link--${e.size}`]: e.size,
@@ -189,11 +189,11 @@ const Tn = () => (zt || (zt = Kn({
189
189
  disabled: e.disabled || e.loading
190
190
  }), [
191
191
  ae(c.$slots, "default")
192
- ], 16, fa)) : (u(), h("button", Be({
192
+ ], 16, fa)) : (u(), m("button", Be({
193
193
  key: 2,
194
194
  ref: "buttonRef"
195
195
  }, c.$attrs, {
196
- style: o.value,
196
+ style: s.value,
197
197
  class: ["cregis-button", {
198
198
  [`cregis-button--${e.type}`]: e.type,
199
199
  [`cregis-button--${e.size}`]: e.size,
@@ -207,7 +207,7 @@ const Tn = () => (zt || (zt = Kn({
207
207
  }],
208
208
  disabled: e.disabled || e.loading
209
209
  }), [
210
- e.loading ? (u(), de(U(Pt), {
210
+ e.loading ? (u(), de(U(Vt), {
211
211
  key: 0,
212
212
  class: "loading",
213
213
  size: l.value,
@@ -243,148 +243,148 @@ const Tn = () => (zt || (zt = Kn({
243
243
  },
244
244
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
245
245
  setup(e, { expose: t, emit: n }) {
246
- const i = e, a = n, r = (f) => {
246
+ const a = e, i = n, r = (f) => {
247
247
  if (f === "" || f === null || f === void 0) return "";
248
- const $ = String(f).trim();
249
- if ($ === "") return "";
250
- const D = Number($.replace(/,/g, ""));
251
- if (!Number.isNaN(D) && D < 0) return Math.abs(D);
252
- if (/^-/.test($)) {
253
- const ee = $.replace(/^-+/, "");
248
+ const S = String(f).trim();
249
+ if (S === "") return "";
250
+ const M = Number(S.replace(/,/g, ""));
251
+ if (!Number.isNaN(M) && M < 0) return Math.abs(M);
252
+ if (/^-/.test(S)) {
253
+ const ee = S.replace(/^-+/, "");
254
254
  return ee === "" ? "" : ee;
255
255
  }
256
256
  return f;
257
- }, s = p(() => {
258
- const f = i.decimals;
257
+ }, o = p(() => {
258
+ const f = a.decimals;
259
259
  return f === void 0 || !Number.isFinite(f) ? null : Math.max(0, Math.floor(f));
260
- }), l = p(() => i.type === "number" && s.value !== null), o = p(() => l.value ? "text" : i.type), v = p(() => l.value ? "decimal" : void 0), c = (f) => f.replace(/[,,。.]/g, "."), d = (f) => {
260
+ }), l = p(() => a.type === "number" && o.value !== null), s = p(() => l.value ? "text" : a.type), v = p(() => l.value ? "decimal" : void 0), c = (f) => f.replace(/[,,。.]/g, "."), d = (f) => {
261
261
  if (f === "" || f === null || f === void 0) return "";
262
- let $ = c(String(f).trim());
263
- if ($ === "") return "";
264
- let D = !1;
265
- !i.nonNegative && $.startsWith("-") && (D = !0, $ = $.slice(1)), $ = $.replace(/[^\d.]/g, "");
266
- const ee = $.indexOf(".");
267
- return ee !== -1 && ($ = $.slice(0, ee + 1) + $.slice(ee + 1).replace(/\./g, "")), (D ? "-" : "") + $;
262
+ let S = c(String(f).trim());
263
+ if (S === "") return "";
264
+ let M = !1;
265
+ !a.nonNegative && S.startsWith("-") && (M = !0, S = S.slice(1)), S = S.replace(/[^\d.]/g, "");
266
+ const ee = S.indexOf(".");
267
+ return ee !== -1 && (S = S.slice(0, ee + 1) + S.slice(ee + 1).replace(/\./g, "")), (M ? "-" : "") + S;
268
268
  }, g = (f) => {
269
- const $ = s.value;
270
- if ($ === null) return f;
269
+ const S = o.value;
270
+ if (S === null) return f;
271
271
  if (f === "" || f === null || f === void 0) return "";
272
- const D = String(f).trim();
273
- if (D === "") return "";
274
- const ee = D.startsWith("-");
275
- let ce = ee ? D.slice(1) : D;
272
+ const M = String(f).trim();
273
+ if (M === "") return "";
274
+ const ee = M.startsWith("-");
275
+ let ce = ee ? M.slice(1) : M;
276
276
  const b = ce.indexOf(".");
277
277
  if (b === -1) return f;
278
278
  const ie = ce.slice(0, b), re = ce.slice(b + 1);
279
- return $ === 0 ? (ee ? "-" : "") + ie : re.length <= $ ? f : (ee ? "-" : "") + ie + "." + re.slice(0, $);
280
- }, m = (f) => {
281
- let $ = f;
282
- return l.value && ($ = d($)), i.nonNegative && ($ = r($)), s.value !== null && ($ = g($)), $;
283
- }, y = V(
284
- i.type === "number" ? m(i.modelValue) : i.modelValue
279
+ return S === 0 ? (ee ? "-" : "") + ie : re.length <= S ? f : (ee ? "-" : "") + ie + "." + re.slice(0, S);
280
+ }, h = (f) => {
281
+ let S = f;
282
+ return l.value && (S = d(S)), a.nonNegative && (S = r(S)), o.value !== null && (S = g(S)), S;
283
+ }, y = B(
284
+ a.type === "number" ? h(a.modelValue) : a.modelValue
285
285
  );
286
286
  le(
287
- () => i.modelValue,
287
+ () => a.modelValue,
288
288
  (f) => {
289
- y.value = i.type === "number" ? m(f) : f, ge(() => te());
289
+ y.value = a.type === "number" ? h(f) : f, ge(() => te());
290
290
  }
291
291
  );
292
- const C = V(), E = V(), x = V(0), z = V(!1), R = V(!1);
293
- let k = null, P = null, T = null;
294
- const B = async () => {
295
- await ge(), C.value?.focus();
296
- }, I = async () => {
297
- if (i.type === "number") {
298
- const f = m(y.value);
292
+ const $ = B(), z = B(), V = B(0), N = B(!1), A = B(!1);
293
+ let O = null, k = null, x = null;
294
+ const E = async () => {
295
+ await ge(), $.value?.focus();
296
+ }, L = async () => {
297
+ if (a.type === "number") {
298
+ const f = h(y.value);
299
299
  f !== y.value && (y.value = f);
300
300
  }
301
- a("update:modelValue", y.value), a("input", y.value), await ge(), G(), te();
301
+ i("update:modelValue", y.value), i("input", y.value), await ge(), G(), te();
302
302
  }, Y = () => {
303
- a("change", y.value);
303
+ i("change", y.value);
304
304
  }, X = (f) => {
305
- z.value = !0, a("focus", f);
306
- }, _ = (f) => {
307
- z.value = !1, a("blur", f);
308
- }, se = p(() => i.clearable && !i.disabled && !!y.value && z.value), Q = () => {
309
- y.value = "", a("update:modelValue", ""), a("clear"), a("input", ""), a("change", ""), ge(() => te());
305
+ N.value = !0, i("focus", f);
306
+ }, D = (f) => {
307
+ N.value = !1, i("blur", f);
308
+ }, se = p(() => a.clearable && !a.disabled && !!y.value && N.value), Q = () => {
309
+ y.value = "", i("update:modelValue", ""), i("clear"), i("input", ""), i("change", ""), ge(() => te());
310
310
  }, te = () => {
311
- if (i.type !== "textarea" || i.disabled) {
312
- R.value = !1;
311
+ if (a.type !== "textarea" || a.disabled) {
312
+ A.value = !1;
313
313
  return;
314
314
  }
315
- P && cancelAnimationFrame(P), P = requestAnimationFrame(() => {
316
- const f = C.value, $ = E.value;
317
- if (!f || f.tagName !== "TEXTAREA" || !$) {
318
- R.value = !1;
315
+ k && cancelAnimationFrame(k), k = requestAnimationFrame(() => {
316
+ const f = $.value, S = z.value;
317
+ if (!f || f.tagName !== "TEXTAREA" || !S) {
318
+ A.value = !1;
319
319
  return;
320
320
  }
321
- const D = f;
321
+ const M = f;
322
322
  if (!String(y.value)) {
323
- R.value = !1;
323
+ A.value = !1;
324
324
  return;
325
325
  }
326
- const ee = window.getComputedStyle(D), ce = parseFloat(ee.paddingBottom) || 0, b = $.getBoundingClientRect().top - D.getBoundingClientRect().top;
327
- R.value = D.scrollHeight - ce > D.scrollTop + b + 0.5;
326
+ const ee = window.getComputedStyle(M), ce = parseFloat(ee.paddingBottom) || 0, b = S.getBoundingClientRect().top - M.getBoundingClientRect().top;
327
+ A.value = M.scrollHeight - ce > M.scrollTop + b + 0.5;
328
328
  });
329
329
  }, pe = () => {
330
330
  te();
331
331
  }, G = () => {
332
- k && cancelAnimationFrame(k), k = requestAnimationFrame(() => {
333
- if (!C.value || C.value.tagName !== "INPUT") return;
334
- const f = C.value, $ = f.value, D = document.createElement("span");
335
- D.style.position = "absolute", D.style.visibility = "hidden", D.style.whiteSpace = "pre", D.style.font = window.getComputedStyle(f).font, D.style.letterSpacing = window.getComputedStyle(f).letterSpacing, D.textContent = $ || " ", document.body.appendChild(D), x.value = D.getBoundingClientRect().width, document.body.removeChild(D);
332
+ O && cancelAnimationFrame(O), O = requestAnimationFrame(() => {
333
+ if (!$.value || $.value.tagName !== "INPUT") return;
334
+ const f = $.value, S = f.value, M = document.createElement("span");
335
+ M.style.position = "absolute", M.style.visibility = "hidden", M.style.whiteSpace = "pre", M.style.font = window.getComputedStyle(f).font, M.style.letterSpacing = window.getComputedStyle(f).letterSpacing, M.textContent = S || " ", document.body.appendChild(M), V.value = M.getBoundingClientRect().width, document.body.removeChild(M);
336
336
  });
337
- }, A = p(() => {
337
+ }, W = p(() => {
338
338
  const f = {};
339
- return x.value > 0 && (f.position = "absolute", f.left = `${x.value + 16}px`), f;
340
- }), M = async () => {
339
+ return V.value > 0 && (f.position = "absolute", f.left = `${V.value + 16}px`), f;
340
+ }), I = async () => {
341
341
  try {
342
- y.value = await navigator.clipboard.readText(), a("update:modelValue", y.value), await ge(), te();
342
+ y.value = await navigator.clipboard.readText(), i("update:modelValue", y.value), await ge(), te();
343
343
  } catch (f) {
344
344
  console.error("paste error:", f);
345
345
  }
346
346
  };
347
347
  le(
348
- () => [i.rows, i.disabled],
348
+ () => [a.rows, a.disabled],
349
349
  () => ge(() => te())
350
350
  ), Ne(() => {
351
- i.type === "textarea" && ge(() => {
352
- te(), !(!C.value || typeof ResizeObserver > "u") && (T = new ResizeObserver(() => te()), T.observe(C.value));
351
+ a.type === "textarea" && ge(() => {
352
+ te(), !(!$.value || typeof ResizeObserver > "u") && (x = new ResizeObserver(() => te()), x.observe($.value));
353
353
  });
354
354
  }), It(() => {
355
- P && cancelAnimationFrame(P), T?.disconnect();
355
+ k && cancelAnimationFrame(k), x?.disconnect();
356
356
  });
357
- const L = p(() => i.type === "number" && i.nonNegative ? 0 : void 0), F = (f) => f === "." || f === "," || f === "," || f === "。" || f === "." || f === "Decimal", J = (f) => {
358
- if (i.type !== "number" || f.isComposing) return;
359
- const $ = s.value;
360
- if ((i.nonNegative || $ !== null) && (f.key === "e" || f.key === "E")) {
357
+ const R = p(() => a.type === "number" && a.nonNegative ? 0 : void 0), F = (f) => f === "." || f === "," || f === "," || f === "。" || f === "." || f === "Decimal", J = (f) => {
358
+ if (a.type !== "number" || f.isComposing) return;
359
+ const S = o.value;
360
+ if ((a.nonNegative || S !== null) && (f.key === "e" || f.key === "E")) {
361
361
  f.preventDefault();
362
362
  return;
363
363
  }
364
- if (i.nonNegative && (f.key === "-" || f.key === "+")) {
364
+ if (a.nonNegative && (f.key === "-" || f.key === "+")) {
365
365
  f.preventDefault();
366
366
  return;
367
367
  }
368
- if ($ === 0 && F(f.key)) {
368
+ if (S === 0 && F(f.key)) {
369
369
  f.preventDefault();
370
370
  return;
371
371
  }
372
- if ($ !== null && $ > 0 && F(f.key)) {
373
- const D = f.target;
374
- c(D.value).includes(".") && f.preventDefault();
372
+ if (S !== null && S > 0 && F(f.key)) {
373
+ const M = f.target;
374
+ c(M.value).includes(".") && f.preventDefault();
375
375
  return;
376
376
  }
377
- if ($ !== null && $ > 0 && f.key !== "." && /^\d$/.test(f.key)) {
378
- const D = f.target, ee = c(D.value), ce = D.selectionStart, b = D.selectionEnd;
377
+ if (S !== null && S > 0 && f.key !== "." && /^\d$/.test(f.key)) {
378
+ const M = f.target, ee = c(M.value), ce = M.selectionStart, b = M.selectionEnd;
379
379
  if (ce === null || b === null) return;
380
380
  const ie = ee.slice(0, ce) + f.key + ee.slice(b), re = ie.indexOf(".");
381
- re !== -1 && ie.slice(re + 1).replace(/\D/g, "").length > $ && f.preventDefault();
381
+ re !== -1 && ie.slice(re + 1).replace(/\D/g, "").length > S && f.preventDefault();
382
382
  }
383
383
  };
384
384
  return t({
385
- focus: B,
385
+ focus: E,
386
386
  updateTextWidth: G
387
- }), (f, $) => e.type !== "textarea" ? (u(), h("div", {
387
+ }), (f, S) => e.type !== "textarea" ? (u(), m("div", {
388
388
  key: 0,
389
389
  class: q(["cregis-input", {
390
390
  [`cregis-input--${e.size}`]: e.size,
@@ -394,84 +394,84 @@ const Tn = () => (zt || (zt = Kn({
394
394
  }]),
395
395
  style: Z([{ width: e.width }, e.inputStyle])
396
396
  }, [
397
- S("div", {
398
- class: q(["cregis-input__wrapper", { "is-focus": z.value }])
397
+ C("div", {
398
+ class: q(["cregis-input__wrapper", { "is-focus": N.value }])
399
399
  }, [
400
- f.$slots.prefix ? (u(), h("span", pa, [
400
+ f.$slots.prefix ? (u(), m("span", pa, [
401
401
  ae(f.$slots, "prefix")
402
- ])) : N("", !0),
403
- _e(S("input", Be({
402
+ ])) : j("", !0),
403
+ _e(C("input", Be({
404
404
  class: "cregis-input__inner",
405
- "onUpdate:modelValue": $[0] || ($[0] = (D) => y.value = D),
405
+ "onUpdate:modelValue": S[0] || (S[0] = (M) => y.value = M),
406
406
  ref_key: "inputRef",
407
- ref: C,
408
- type: o.value,
407
+ ref: $,
408
+ type: s.value,
409
409
  inputmode: v.value,
410
410
  placeholder: e.placeholder || U(he)("input.placeholder")
411
411
  }, f.$attrs, {
412
- min: L.value,
412
+ min: R.value,
413
413
  spellcheck: "false",
414
414
  disabled: e.disabled,
415
- onInput: I,
415
+ onInput: L,
416
416
  onChange: Y,
417
417
  onFocus: X,
418
- onBlur: _,
418
+ onBlur: D,
419
419
  onKeydown: J
420
420
  }), null, 16, ma), [
421
421
  [Gn, y.value]
422
422
  ]),
423
- e.unit && y.value ? (u(), h("span", {
423
+ e.unit && y.value ? (u(), m("span", {
424
424
  key: 1,
425
- style: Z(A.value),
425
+ style: Z(W.value),
426
426
  class: "cregis-input__unit"
427
- }, H(e.unit), 5)) : N("", !0),
428
- f.$slots.suffix || se.value ? (u(), h("span", ha, [
427
+ }, _(e.unit), 5)) : j("", !0),
428
+ f.$slots.suffix || se.value ? (u(), m("span", ha, [
429
429
  ae(f.$slots, "suffix"),
430
430
  se.value ? (u(), de(He, {
431
431
  key: 0,
432
432
  icon: U(ea),
433
433
  "icon-type": "square",
434
434
  onClick: Q,
435
- onMousedown: $[1] || ($[1] = Fe(() => {
435
+ onMousedown: S[1] || (S[1] = Fe(() => {
436
436
  }, ["prevent"]))
437
- }, null, 8, ["icon"])) : N("", !0)
438
- ])) : N("", !0)
437
+ }, null, 8, ["icon"])) : j("", !0)
438
+ ])) : j("", !0)
439
439
  ], 2)
440
- ], 6)) : (u(), h("div", {
440
+ ], 6)) : (u(), m("div", {
441
441
  key: 1,
442
442
  class: q(["cregis-textarea", { "is-disabled": e.disabled }]),
443
443
  style: Z([{ width: e.width }, e.inputStyle])
444
444
  }, [
445
- _e(S("textarea", Be({ class: "cregis-textarea__wrapper" }, f.$attrs, {
445
+ _e(C("textarea", Be({ class: "cregis-textarea__wrapper" }, f.$attrs, {
446
446
  spellcheck: "false",
447
447
  ref_key: "inputRef",
448
- ref: C,
448
+ ref: $,
449
449
  disabled: e.disabled,
450
450
  placeholder: e.placeholder || U(he)("input.placeholder"),
451
451
  rows: e.rows,
452
- "onUpdate:modelValue": $[2] || ($[2] = (D) => y.value = D),
453
- onInput: I,
452
+ "onUpdate:modelValue": S[2] || (S[2] = (M) => y.value = M),
453
+ onInput: L,
454
454
  onChange: Y,
455
455
  onFocus: X,
456
- onBlur: _,
456
+ onBlur: D,
457
457
  onScroll: pe
458
458
  }), null, 16, ga), [
459
459
  [Zn, y.value]
460
460
  ]),
461
- e.disabled ? N("", !0) : (u(), h("div", {
461
+ e.disabled ? j("", !0) : (u(), m("div", {
462
462
  key: 0,
463
463
  ref_key: "textareaButtonsRef",
464
- ref: E,
465
- class: q(["cregis-textarea__buttons", { "has-bg": R.value }])
464
+ ref: z,
465
+ class: q(["cregis-textarea__buttons", { "has-bg": A.value }])
466
466
  }, [
467
467
  ne(He, {
468
468
  class: "cregis-textarea__button",
469
469
  link: "",
470
470
  size: "small",
471
- onClick: M
471
+ onClick: I
472
472
  }, {
473
473
  default: ve(() => [
474
- ye(H(e.pasteText), 1)
474
+ ye(_(e.pasteText), 1)
475
475
  ]),
476
476
  _: 1
477
477
  }),
@@ -483,7 +483,7 @@ const Tn = () => (zt || (zt = Kn({
483
483
  onClick: Q
484
484
  }, {
485
485
  default: ve(() => [
486
- ye(H(e.clearText), 1)
486
+ ye(_(e.clearText), 1)
487
487
  ]),
488
488
  _: 1
489
489
  }, 8, ["disabled"])
@@ -501,7 +501,7 @@ const Tn = () => (zt || (zt = Kn({
501
501
  size: { default: "16px" }
502
502
  },
503
503
  setup(e) {
504
- return (t, n) => (u(), h("svg", {
504
+ return (t, n) => (u(), m("svg", {
505
505
  width: e.size,
506
506
  height: e.size,
507
507
  viewBox: "0 0 16 16",
@@ -509,16 +509,16 @@ const Tn = () => (zt || (zt = Kn({
509
509
  xmlns: "http://www.w3.org/2000/svg",
510
510
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
511
511
  }, [
512
- S("g", ya, [
513
- S("g", wa, [
514
- S("g", xa, [
515
- S("rect", {
512
+ C("g", ya, [
513
+ C("g", wa, [
514
+ C("g", xa, [
515
+ C("rect", {
516
516
  x: "0",
517
517
  y: "0",
518
518
  width: e.size,
519
519
  height: e.size
520
520
  }, null, 8, ka),
521
- n[0] || (n[0] = S("path", {
521
+ n[0] || (n[0] = C("path", {
522
522
  d: "M6.67713976,13.5709642 C7.12567714,13.5709642 7.468039,13.3943662 7.70422535,13.0411701 L13.7562297,3.77789816 C13.8407367,3.65005417 13.9024919,3.52546046 13.9414951,3.40411701 C13.9804984,3.28277356 14,3.16468039 14,3.04983749 C14,2.74647887 13.8976165,2.49566631 13.6928494,2.29739978 C13.4880823,2.09913326 13.2307692,2 12.9209101,2 C12.7063922,2 12.5265439,2.04225352 12.3813651,2.12676056 C12.2361863,2.21126761 12.0975081,2.35536295 11.9653304,2.55904659 L6.65113759,10.9512459 L3.95016251,7.60346696 C3.71830986,7.32177681 3.43011918,7.18093174 3.08559047,7.18093174 C2.77139762,7.18093174 2.51191766,7.28169014 2.3071506,7.48320693 C2.10238353,7.68472373 2,7.93824485 2,8.24377031 C2,8.38028169 2.02329361,8.51083424 2.06988082,8.63542795 C2.11646804,8.76002167 2.19826652,8.88949079 2.31527627,9.02383532 L5.67280607,13.0899242 C5.94149512,13.4106176 6.27627302,13.5709642 6.67713976,13.5709642 Z",
523
523
  fill: "currentColor",
524
524
  "fill-rule": "nonzero"
@@ -543,39 +543,39 @@ const Tn = () => (zt || (zt = Kn({
543
543
  },
544
544
  emits: ["update:modelValue", "change"],
545
545
  setup(e, { emit: t }) {
546
- const n = e, i = t, a = p(() => n.modelValue), r = () => {
547
- n.disabled || i("update:modelValue", !a.value);
546
+ const n = e, a = t, i = p(() => n.modelValue), r = () => {
547
+ n.disabled || a("update:modelValue", !i.value);
548
548
  };
549
549
  return le(
550
- () => a.value,
550
+ () => i.value,
551
551
  () => {
552
- i("change", a.value);
552
+ a("change", i.value);
553
553
  }
554
- ), (s, l) => (u(), h("div", {
554
+ ), (o, l) => (u(), m("div", {
555
555
  class: "cregis-checkbox__wrapper",
556
556
  onClick: r
557
557
  }, [
558
- S("div", {
558
+ C("div", {
559
559
  class: q(["cregis-checkbox", {
560
560
  "is-disabled": e.disabled,
561
- "is-checked": a.value,
561
+ "is-checked": i.value,
562
562
  "is-circle": e.circle,
563
563
  "is-indeterminate": e.indeterminate
564
564
  }])
565
565
  }, [
566
- e.indeterminate ? (u(), h("div", $a)) : (u(), de(En, {
566
+ e.indeterminate ? (u(), m("div", $a)) : (u(), de(En, {
567
567
  key: 1,
568
568
  size: "10px"
569
569
  }))
570
570
  ], 2),
571
- s.$slots.default || e.label ? (u(), h("span", {
571
+ o.$slots.default || e.label ? (u(), m("span", {
572
572
  key: 0,
573
573
  class: q(["cregis-checkbox__label", { "is-disabled": e.disabled }])
574
574
  }, [
575
- ae(s.$slots, "default", {}, () => [
576
- ye(H(e.label), 1)
575
+ ae(o.$slots, "default", {}, () => [
576
+ ye(_(e.label), 1)
577
577
  ])
578
- ], 2)) : N("", !0)
578
+ ], 2)) : j("", !0)
579
579
  ]));
580
580
  }
581
581
  }), Ml = /* @__PURE__ */ oe({
@@ -589,29 +589,29 @@ const Tn = () => (zt || (zt = Kn({
589
589
  },
590
590
  emits: ["update:modelValue", "change"],
591
591
  setup(e, { emit: t }) {
592
- const n = e, i = t, a = p(() => n.modelValue === n.value), r = () => {
593
- n.disabled || (i("update:modelValue", n.value), i("change", n.value));
592
+ const n = e, a = t, i = p(() => n.modelValue === n.value), r = () => {
593
+ n.disabled || (a("update:modelValue", n.value), a("change", n.value));
594
594
  };
595
- return (s, l) => (u(), h("div", {
595
+ return (o, l) => (u(), m("div", {
596
596
  class: "cregis-radio__wrapper",
597
597
  onClick: r
598
598
  }, [
599
- S("div", {
599
+ C("div", {
600
600
  class: q(["cregis-radio", {
601
601
  "is-disabled": e.disabled,
602
- "is-checked": a.value
602
+ "is-checked": i.value
603
603
  }])
604
604
  }, [...l[0] || (l[0] = [
605
- S("div", { class: "cregis-radio__inner" }, null, -1)
605
+ C("div", { class: "cregis-radio__inner" }, null, -1)
606
606
  ])], 2),
607
- s.$slots.default || e.label ? (u(), h("span", {
607
+ o.$slots.default || e.label ? (u(), m("span", {
608
608
  key: 0,
609
609
  class: q(["cregis-radio__label", { "is-disabled": e.disabled }])
610
610
  }, [
611
- ae(s.$slots, "default", {}, () => [
612
- ye(H(e.label), 1)
611
+ ae(o.$slots, "default", {}, () => [
612
+ ye(_(e.label), 1)
613
613
  ])
614
- ], 2)) : N("", !0)
614
+ ], 2)) : j("", !0)
615
615
  ]));
616
616
  }
617
617
  }), Il = /* @__PURE__ */ oe({
@@ -628,11 +628,11 @@ const Tn = () => (zt || (zt = Kn({
628
628
  setup(e) {
629
629
  const t = e, n = p(() => {
630
630
  if (Array.isArray(t.margin)) {
631
- const [a, r] = t.margin;
632
- return t.direction === "horizontal" ? `${a} 0 ${r} 0` : `0 ${r} 0 ${a}`;
631
+ const [i, r] = t.margin;
632
+ return t.direction === "horizontal" ? `${i} 0 ${r} 0` : `0 ${r} 0 ${i}`;
633
633
  } else
634
634
  return t.direction === "horizontal" ? `${t.margin} 0` : `0 ${t.margin}`;
635
- }), i = p(() => t.direction === "horizontal" ? {
635
+ }), a = p(() => t.direction === "horizontal" ? {
636
636
  width: t.length || "100%",
637
637
  borderTopWidth: t.lineThickness,
638
638
  borderTopStyle: t.borderStyle,
@@ -645,11 +645,11 @@ const Tn = () => (zt || (zt = Kn({
645
645
  borderLeftColor: t.color,
646
646
  margin: n.value
647
647
  });
648
- return (a, r) => (u(), h("div", {
648
+ return (i, r) => (u(), m("div", {
649
649
  class: q(["cregis-divider", {
650
650
  [`cregis-divider--${e.direction}`]: e.direction
651
651
  }]),
652
- style: Z(i.value)
652
+ style: Z(a.value)
653
653
  }, null, 6));
654
654
  }
655
655
  }), Rn = Symbol("TABS_KEY"), Sa = ["onClick"], Ca = { style: { display: "none" } }, Nl = /* @__PURE__ */ oe({
@@ -662,10 +662,10 @@ const Tn = () => (zt || (zt = Kn({
662
662
  },
663
663
  emits: ["update:modelValue"],
664
664
  setup(e) {
665
- const t = e, n = je([]), i = (s) => {
666
- n.some((l) => l.name === s.name) || n.push(s);
667
- }, a = (s) => {
668
- const l = n.findIndex((o) => o.name === s);
665
+ const t = e, n = je([]), a = (o) => {
666
+ n.some((l) => l.name === o.name) || n.push(o);
667
+ }, i = (o) => {
668
+ const l = n.findIndex((s) => s.name === o);
669
669
  l !== -1 && n.splice(l, 1);
670
670
  }, r = p(() => t.type === "card" ? t.size === "large" ? {
671
671
  borderRadius: "13px"
@@ -678,24 +678,24 @@ const Tn = () => (zt || (zt = Kn({
678
678
  });
679
679
  return Nt(Rn, {
680
680
  activeName: ht(t, "modelValue"),
681
- registerTab: i,
682
- unregisterTab: a
683
- }), (s, l) => (u(), h("div", {
681
+ registerTab: a,
682
+ unregisterTab: i
683
+ }), (o, l) => (u(), m("div", {
684
684
  class: q(["cregis-tabs", {
685
685
  [`cregis-tabs--${e.type}`]: e.type,
686
686
  [`cregis-tabs--${e.size}`]: e.size
687
687
  }])
688
688
  }, [
689
- (u(!0), h(ze, null, We(n, (o) => (u(), h("div", {
690
- key: o.name,
691
- class: q(["cregis-tabs__item", { "is-active": e.modelValue === o.name }]),
689
+ (u(!0), m(ze, null, We(n, (s) => (u(), m("div", {
690
+ key: s.name,
691
+ class: q(["cregis-tabs__item", { "is-active": e.modelValue === s.name }]),
692
692
  style: Z(r.value),
693
- onClick: (v) => s.$emit("update:modelValue", o.name)
693
+ onClick: (v) => o.$emit("update:modelValue", s.name)
694
694
  }, [
695
- S("span", null, H(o.label), 1)
695
+ C("span", null, _(s.label), 1)
696
696
  ], 14, Sa))), 128)),
697
- S("div", Ca, [
698
- ae(s.$slots, "default")
697
+ C("div", Ca, [
698
+ ae(o.$slots, "default")
699
699
  ])
700
700
  ], 2));
701
701
  }
@@ -713,12 +713,12 @@ const Tn = () => (zt || (zt = Kn({
713
713
  n.registerTab({ label: t.label, name: t.name });
714
714
  }), le(
715
715
  () => t.label,
716
- (i) => {
717
- n.unregisterTab(t.name), n.registerTab({ label: i, name: t.name });
716
+ (a) => {
717
+ n.unregisterTab(t.name), n.registerTab({ label: a, name: t.name });
718
718
  }
719
719
  ), Le(() => {
720
720
  n.unregisterTab(t.name);
721
- }), (i, a) => null;
721
+ }), (a, i) => null;
722
722
  }
723
723
  });
724
724
  let gt = 1e5;
@@ -739,45 +739,45 @@ const Yt = () => (gt = gt + 1, gt), Hl = (e) => {
739
739
  onVanish: {}
740
740
  },
741
741
  setup(e) {
742
- const t = e, n = V(!1);
743
- let i;
744
- const a = p(() => ({
742
+ const t = e, n = B(!1);
743
+ let a;
744
+ const i = p(() => ({
745
745
  zIndex: Yt()
746
746
  })), r = () => {
747
- i = window.setTimeout(() => {
747
+ a = window.setTimeout(() => {
748
748
  n.value = !1;
749
749
  }, t.duration);
750
- }, s = () => {
750
+ }, o = () => {
751
751
  t.onVanish?.();
752
752
  };
753
753
  return It(() => {
754
- i !== void 0 && clearTimeout(i);
754
+ a !== void 0 && clearTimeout(a);
755
755
  }), ge(() => {
756
756
  n.value = !0;
757
- }), (l, o) => (u(), h("div", {
757
+ }), (l, s) => (u(), m("div", {
758
758
  class: q(["cregis-message__wrapper", { "cregis-message__wrapper--success": e.type === "success" }]),
759
- style: Z(a.value)
759
+ style: Z(i.value)
760
760
  }, [
761
761
  ne(st, {
762
762
  name: "cregis-message",
763
763
  onAfterEnter: r,
764
- onAfterLeave: s
764
+ onAfterLeave: o
765
765
  }, {
766
766
  default: ve(() => [
767
- n.value && e.type !== "success" ? (u(), h("div", {
767
+ n.value && e.type !== "success" ? (u(), m("div", {
768
768
  key: 0,
769
769
  class: q(["cregis-message", { "cregis-message--danger": e.type === "danger" }]),
770
770
  role: "status",
771
771
  "aria-live": "polite"
772
- }, H(e.message), 3)) : n.value && e.type === "success" ? (u(), h("div", Oa, [
773
- S("div", Ta, [
772
+ }, _(e.message), 3)) : n.value && e.type === "success" ? (u(), m("div", Oa, [
773
+ C("div", Ta, [
774
774
  ne(U(Cn), {
775
775
  size: "16px",
776
776
  color: "var(--material-same-white-primary)"
777
777
  })
778
778
  ]),
779
- S("p", null, H(e.message), 1)
780
- ])) : N("", !0)
779
+ C("p", null, _(e.message), 1)
780
+ ])) : j("", !0)
781
781
  ]),
782
782
  _: 1
783
783
  })
@@ -794,19 +794,19 @@ function Ea(e) {
794
794
  }
795
795
  function cn(e) {
796
796
  if (Et) return;
797
- const { message: t, duration: n, type: i } = Ea(e);
797
+ const { message: t, duration: n, type: a } = Ea(e);
798
798
  Et = !0;
799
- const a = document.createElement("div");
800
- document.body.appendChild(a), Ue(
799
+ const i = document.createElement("div");
800
+ document.body.appendChild(i), Ue(
801
801
  Ht(za, {
802
802
  message: t,
803
803
  duration: n,
804
- type: i,
804
+ type: a,
805
805
  onVanish: () => {
806
- Et = !1, Ue(null, a), a.remove();
806
+ Et = !1, Ue(null, i), i.remove();
807
807
  }
808
808
  }),
809
- a
809
+ i
810
810
  );
811
811
  }
812
812
  const Ra = { class: "cregis-notification__wrapper" }, La = {
@@ -814,7 +814,7 @@ const Ra = { class: "cregis-notification__wrapper" }, La = {
814
814
  class: "cregis-notification",
815
815
  role: "status",
816
816
  "aria-live": "polite"
817
- }, Ba = { class: "cregis-notification__content" }, Pa = { class: "cregis-notification__title" }, Va = { class: "cregis-notification__message" }, Wa = /* @__PURE__ */ oe({
817
+ }, Ba = { class: "cregis-notification__content" }, Va = { class: "cregis-notification__title" }, Pa = { class: "cregis-notification__message" }, Wa = /* @__PURE__ */ oe({
818
818
  name: "Notification",
819
819
  __name: "Notification",
820
820
  props: {
@@ -825,39 +825,39 @@ const Ra = { class: "cregis-notification__wrapper" }, La = {
825
825
  onVanish: {}
826
826
  },
827
827
  setup(e) {
828
- const t = e, n = V(!1), i = () => {
828
+ const t = e, n = B(!1), a = () => {
829
829
  n.value = !1;
830
- }, a = () => {
830
+ }, i = () => {
831
831
  t.onVanish?.();
832
832
  };
833
833
  return It(() => {
834
834
  }), ge(() => {
835
835
  n.value = !0;
836
- }), (r, s) => (u(), h("div", Ra, [
836
+ }), (r, o) => (u(), m("div", Ra, [
837
837
  ne(st, {
838
838
  name: "cregis-notification",
839
- onAfterLeave: a
839
+ onAfterLeave: i
840
840
  }, {
841
841
  default: ve(() => [
842
- n.value ? (u(), h("div", La, [
842
+ n.value ? (u(), m("div", La, [
843
843
  (u(), de(it(U(ta)), {
844
844
  size: "18px",
845
845
  color: "var(--material-danger-primary)"
846
846
  })),
847
- S("div", Ba, [
848
- S("div", Pa, H(e.title), 1),
849
- S("div", Va, H(e.message), 1)
847
+ C("div", Ba, [
848
+ C("div", Va, _(e.title), 1),
849
+ C("div", Pa, _(e.message), 1)
850
850
  ]),
851
851
  ne(He, {
852
852
  type: "sameWhite",
853
- onClick: i
853
+ onClick: a
854
854
  }, {
855
855
  default: ve(() => [
856
- ye(H(e.btnText), 1)
856
+ ye(_(e.btnText), 1)
857
857
  ]),
858
858
  _: 1
859
859
  })
860
- ])) : N("", !0)
860
+ ])) : j("", !0)
861
861
  ]),
862
862
  _: 1
863
863
  })
@@ -867,15 +867,15 @@ const Ra = { class: "cregis-notification__wrapper" }, La = {
867
867
  let Rt = !1;
868
868
  function _l(e) {
869
869
  if (Rt) return;
870
- const { title: t, message: n, type: i, btnText: a } = e;
870
+ const { title: t, message: n, type: a, btnText: i } = e;
871
871
  Rt = !0;
872
872
  const r = document.createElement("div");
873
873
  document.body.appendChild(r), Ue(
874
874
  Ht(Wa, {
875
875
  title: t,
876
876
  message: n,
877
- type: i,
878
- btnText: a,
877
+ type: a,
878
+ btnText: i,
879
879
  onVanish: () => {
880
880
  Rt = !1, Ue(null, r), r.remove();
881
881
  }
@@ -896,26 +896,26 @@ const Aa = { class: "cregis-progress__wrapper" }, Da = { class: "cregis-progress
896
896
  loading: { type: Boolean, default: !1 }
897
897
  },
898
898
  setup(e) {
899
- const t = e, n = p(() => Math.min(100, Math.max(0, t.percentage - 1))), i = p(() => ({
899
+ const t = e, n = p(() => Math.min(100, Math.max(0, t.percentage - 1))), a = p(() => ({
900
900
  width: `${t.percentage}%`,
901
901
  height: `${t.strokeWidth}px`
902
- })), a = p(() => ({
902
+ })), i = p(() => ({
903
903
  "--cregis-progress-tip-left": `${n.value}%`
904
904
  })), r = p(() => `${Math.round(t.percentage)}%`);
905
- return (s, l) => (u(), h("div", Aa, [
906
- S("div", Da, [
907
- e.showPercentage && !t.loading ? (u(), h("div", {
905
+ return (o, l) => (u(), m("div", Aa, [
906
+ C("div", Da, [
907
+ e.showPercentage && !t.loading ? (u(), m("div", {
908
908
  key: 0,
909
909
  class: "cregis-progress__tip",
910
- style: Z(a.value),
910
+ style: Z(i.value),
911
911
  "aria-live": "polite"
912
- }, H(r.value), 5)) : N("", !0),
913
- S("div", Ma, [
914
- S("div", {
912
+ }, _(r.value), 5)) : j("", !0),
913
+ C("div", Ma, [
914
+ C("div", {
915
915
  class: "cregis-progress__bar",
916
- style: Z(i.value)
916
+ style: Z(a.value)
917
917
  }, null, 4),
918
- t.loading ? (u(), h("div", Ia)) : N("", !0)
918
+ t.loading ? (u(), m("div", Ia)) : j("", !0)
919
919
  ])
920
920
  ])
921
921
  ]));
@@ -955,10 +955,10 @@ function Kt(e) {
955
955
  function Qa(e) {
956
956
  var t = e.state;
957
957
  Object.keys(t.elements).forEach(function(n) {
958
- var i = t.styles[n] || {}, a = t.attributes[n] || {}, r = t.elements[n];
959
- !Ce(r) || !Re(r) || (Object.assign(r.style, i), Object.keys(a).forEach(function(s) {
960
- var l = a[s];
961
- l === !1 ? r.removeAttribute(s) : r.setAttribute(s, l === !0 ? "" : l);
958
+ var a = t.styles[n] || {}, i = t.attributes[n] || {}, r = t.elements[n];
959
+ !Ce(r) || !Re(r) || (Object.assign(r.style, a), Object.keys(i).forEach(function(o) {
960
+ var l = i[o];
961
+ l === !1 ? r.removeAttribute(o) : r.setAttribute(o, l === !0 ? "" : l);
962
962
  }));
963
963
  });
964
964
  }
@@ -976,12 +976,12 @@ function Ja(e) {
976
976
  reference: {}
977
977
  };
978
978
  return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
979
- Object.keys(t.elements).forEach(function(i) {
980
- var a = t.elements[i], r = t.attributes[i] || {}, s = Object.keys(t.styles.hasOwnProperty(i) ? t.styles[i] : n[i]), l = s.reduce(function(o, v) {
981
- return o[v] = "", o;
979
+ Object.keys(t.elements).forEach(function(a) {
980
+ var i = t.elements[a], r = t.attributes[a] || {}, o = Object.keys(t.styles.hasOwnProperty(a) ? t.styles[a] : n[a]), l = o.reduce(function(s, v) {
981
+ return s[v] = "", s;
982
982
  }, {});
983
- !Ce(a) || !Re(a) || (Object.assign(a.style, l), Object.keys(r).forEach(function(o) {
984
- a.removeAttribute(o);
983
+ !Ce(i) || !Re(i) || (Object.assign(i.style, l), Object.keys(r).forEach(function(s) {
984
+ i.removeAttribute(s);
985
985
  }));
986
986
  });
987
987
  };
@@ -998,20 +998,20 @@ function Ee(e) {
998
998
  return e.split("-")[0];
999
999
  }
1000
1000
  var Me = Math.max, yt = Math.min, Ye = Math.round;
1001
- function Vt() {
1001
+ function Pt() {
1002
1002
  var e = navigator.userAgentData;
1003
1003
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
1004
1004
  return t.brand + "/" + t.version;
1005
1005
  }).join(" ") : navigator.userAgent;
1006
1006
  }
1007
- function Pn() {
1008
- return !/^((?!chrome|android).)*safari/i.test(Vt());
1007
+ function Vn() {
1008
+ return !/^((?!chrome|android).)*safari/i.test(Pt());
1009
1009
  }
1010
1010
  function Xe(e, t, n) {
1011
1011
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1012
- var i = e.getBoundingClientRect(), a = 1, r = 1;
1013
- t && Ce(e) && (a = e.offsetWidth > 0 && Ye(i.width) / e.offsetWidth || 1, r = e.offsetHeight > 0 && Ye(i.height) / e.offsetHeight || 1);
1014
- var s = Ie(e) ? $e(e) : window, l = s.visualViewport, o = !Pn() && n, v = (i.left + (o && l ? l.offsetLeft : 0)) / a, c = (i.top + (o && l ? l.offsetTop : 0)) / r, d = i.width / a, g = i.height / r;
1012
+ var a = e.getBoundingClientRect(), i = 1, r = 1;
1013
+ t && Ce(e) && (i = e.offsetWidth > 0 && Ye(a.width) / e.offsetWidth || 1, r = e.offsetHeight > 0 && Ye(a.height) / e.offsetHeight || 1);
1014
+ var o = Ie(e) ? $e(e) : window, l = o.visualViewport, s = !Vn() && n, v = (a.left + (s && l ? l.offsetLeft : 0)) / i, c = (a.top + (s && l ? l.offsetTop : 0)) / r, d = a.width / i, g = a.height / r;
1015
1015
  return {
1016
1016
  width: d,
1017
1017
  height: g,
@@ -1024,29 +1024,29 @@ function Xe(e, t, n) {
1024
1024
  };
1025
1025
  }
1026
1026
  function Gt(e) {
1027
- var t = Xe(e), n = e.offsetWidth, i = e.offsetHeight;
1028
- return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - i) <= 1 && (i = t.height), {
1027
+ var t = Xe(e), n = e.offsetWidth, a = e.offsetHeight;
1028
+ return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - a) <= 1 && (a = t.height), {
1029
1029
  x: e.offsetLeft,
1030
1030
  y: e.offsetTop,
1031
1031
  width: n,
1032
- height: i
1032
+ height: a
1033
1033
  };
1034
1034
  }
1035
- function Vn(e, t) {
1035
+ function Pn(e, t) {
1036
1036
  var n = t.getRootNode && t.getRootNode();
1037
1037
  if (e.contains(t))
1038
1038
  return !0;
1039
1039
  if (n && Kt(n)) {
1040
- var i = t;
1040
+ var a = t;
1041
1041
  do {
1042
- if (i && e.isSameNode(i))
1042
+ if (a && e.isSameNode(a))
1043
1043
  return !0;
1044
- i = i.parentNode || i.host;
1045
- } while (i);
1044
+ a = a.parentNode || a.host;
1045
+ } while (a);
1046
1046
  }
1047
1047
  return !1;
1048
1048
  }
1049
- function Pe(e) {
1049
+ function Ve(e) {
1050
1050
  return $e(e).getComputedStyle(e);
1051
1051
  }
1052
1052
  function ti(e) {
@@ -1072,28 +1072,28 @@ function Ct(e) {
1072
1072
  }
1073
1073
  function dn(e) {
1074
1074
  return !Ce(e) || // https://github.com/popperjs/popper-core/issues/837
1075
- Pe(e).position === "fixed" ? null : e.offsetParent;
1075
+ Ve(e).position === "fixed" ? null : e.offsetParent;
1076
1076
  }
1077
1077
  function ni(e) {
1078
- var t = /firefox/i.test(Vt()), n = /Trident/i.test(Vt());
1078
+ var t = /firefox/i.test(Pt()), n = /Trident/i.test(Pt());
1079
1079
  if (n && Ce(e)) {
1080
- var i = Pe(e);
1081
- if (i.position === "fixed")
1080
+ var a = Ve(e);
1081
+ if (a.position === "fixed")
1082
1082
  return null;
1083
1083
  }
1084
- var a = Ct(e);
1085
- for (Kt(a) && (a = a.host); Ce(a) && ["html", "body"].indexOf(Re(a)) < 0; ) {
1086
- var r = Pe(a);
1084
+ var i = Ct(e);
1085
+ for (Kt(i) && (i = i.host); Ce(i) && ["html", "body"].indexOf(Re(i)) < 0; ) {
1086
+ var r = Ve(i);
1087
1087
  if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none")
1088
- return a;
1089
- a = a.parentNode;
1088
+ return i;
1089
+ i = i.parentNode;
1090
1090
  }
1091
1091
  return null;
1092
1092
  }
1093
1093
  function ut(e) {
1094
- for (var t = $e(e), n = dn(e); n && ti(n) && Pe(n).position === "static"; )
1094
+ for (var t = $e(e), n = dn(e); n && ti(n) && Ve(n).position === "static"; )
1095
1095
  n = dn(n);
1096
- return n && (Re(n) === "html" || Re(n) === "body" && Pe(n).position === "static") ? t : n || ni(e) || t;
1096
+ return n && (Re(n) === "html" || Re(n) === "body" && Ve(n).position === "static") ? t : n || ni(e) || t;
1097
1097
  }
1098
1098
  function Zt(e) {
1099
1099
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
@@ -1102,8 +1102,8 @@ function et(e, t, n) {
1102
1102
  return Me(e, yt(t, n));
1103
1103
  }
1104
1104
  function ai(e, t, n) {
1105
- var i = et(e, t, n);
1106
- return i > n ? n : i;
1105
+ var a = et(e, t, n);
1106
+ return a > n ? n : a;
1107
1107
  }
1108
1108
  function Wn() {
1109
1109
  return {
@@ -1117,8 +1117,8 @@ function An(e) {
1117
1117
  return Object.assign({}, Wn(), e);
1118
1118
  }
1119
1119
  function Dn(e, t) {
1120
- return t.reduce(function(n, i) {
1121
- return n[i] = e, n;
1120
+ return t.reduce(function(n, a) {
1121
+ return n[a] = e, n;
1122
1122
  }, {});
1123
1123
  }
1124
1124
  var ii = function(t, n) {
@@ -1127,15 +1127,15 @@ var ii = function(t, n) {
1127
1127
  })) : t, An(typeof t != "number" ? t : Dn(t, ct));
1128
1128
  };
1129
1129
  function ri(e) {
1130
- var t, n = e.state, i = e.name, a = e.options, r = n.elements.arrow, s = n.modifiersData.popperOffsets, l = Ee(n.placement), o = Zt(l), v = [xe, Te].indexOf(l) >= 0, c = v ? "height" : "width";
1131
- if (!(!r || !s)) {
1132
- var d = ii(a.padding, n), g = Gt(r), m = o === "y" ? we : xe, y = o === "y" ? Oe : Te, C = n.rects.reference[c] + n.rects.reference[o] - s[o] - n.rects.popper[c], E = s[o] - n.rects.reference[o], x = ut(r), z = x ? o === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, R = C / 2 - E / 2, k = d[m], P = z - g[c] - d[y], T = z / 2 - g[c] / 2 + R, B = et(k, T, P), I = o;
1133
- n.modifiersData[i] = (t = {}, t[I] = B, t.centerOffset = B - T, t);
1130
+ var t, n = e.state, a = e.name, i = e.options, r = n.elements.arrow, o = n.modifiersData.popperOffsets, l = Ee(n.placement), s = Zt(l), v = [xe, Te].indexOf(l) >= 0, c = v ? "height" : "width";
1131
+ if (!(!r || !o)) {
1132
+ var d = ii(i.padding, n), g = Gt(r), h = s === "y" ? we : xe, y = s === "y" ? Oe : Te, $ = n.rects.reference[c] + n.rects.reference[s] - o[s] - n.rects.popper[c], z = o[s] - n.rects.reference[s], V = ut(r), N = V ? s === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0, A = $ / 2 - z / 2, O = d[h], k = N - g[c] - d[y], x = N / 2 - g[c] / 2 + A, E = et(O, x, k), L = s;
1133
+ n.modifiersData[a] = (t = {}, t[L] = E, t.centerOffset = E - x, t);
1134
1134
  }
1135
1135
  }
1136
1136
  function li(e) {
1137
- var t = e.state, n = e.options, i = n.element, a = i === void 0 ? "[data-popper-arrow]" : i;
1138
- a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || Vn(t.elements.popper, a) && (t.elements.arrow = a));
1137
+ var t = e.state, n = e.options, a = n.element, i = a === void 0 ? "[data-popper-arrow]" : a;
1138
+ i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || Pn(t.elements.popper, i) && (t.elements.arrow = i));
1139
1139
  }
1140
1140
  const oi = {
1141
1141
  name: "arrow",
@@ -1156,75 +1156,75 @@ var si = {
1156
1156
  left: "auto"
1157
1157
  };
1158
1158
  function ci(e, t) {
1159
- var n = e.x, i = e.y, a = t.devicePixelRatio || 1;
1159
+ var n = e.x, a = e.y, i = t.devicePixelRatio || 1;
1160
1160
  return {
1161
- x: Ye(n * a) / a || 0,
1162
- y: Ye(i * a) / a || 0
1161
+ x: Ye(n * i) / i || 0,
1162
+ y: Ye(a * i) / i || 0
1163
1163
  };
1164
1164
  }
1165
1165
  function fn(e) {
1166
- var t, n = e.popper, i = e.popperRect, a = e.placement, r = e.variation, s = e.offsets, l = e.position, o = e.gpuAcceleration, v = e.adaptive, c = e.roundOffsets, d = e.isFixed, g = s.x, m = g === void 0 ? 0 : g, y = s.y, C = y === void 0 ? 0 : y, E = typeof c == "function" ? c({
1167
- x: m,
1168
- y: C
1166
+ var t, n = e.popper, a = e.popperRect, i = e.placement, r = e.variation, o = e.offsets, l = e.position, s = e.gpuAcceleration, v = e.adaptive, c = e.roundOffsets, d = e.isFixed, g = o.x, h = g === void 0 ? 0 : g, y = o.y, $ = y === void 0 ? 0 : y, z = typeof c == "function" ? c({
1167
+ x: h,
1168
+ y: $
1169
1169
  }) : {
1170
- x: m,
1171
- y: C
1170
+ x: h,
1171
+ y: $
1172
1172
  };
1173
- m = E.x, C = E.y;
1174
- var x = s.hasOwnProperty("x"), z = s.hasOwnProperty("y"), R = xe, k = we, P = window;
1173
+ h = z.x, $ = z.y;
1174
+ var V = o.hasOwnProperty("x"), N = o.hasOwnProperty("y"), A = xe, O = we, k = window;
1175
1175
  if (v) {
1176
- var T = ut(n), B = "clientHeight", I = "clientWidth";
1177
- if (T === $e(n) && (T = Ae(n), Pe(T).position !== "static" && l === "absolute" && (B = "scrollHeight", I = "scrollWidth")), T = T, a === we || (a === xe || a === Te) && r === rt) {
1178
- k = Oe;
1179
- var Y = d && T === P && P.visualViewport ? P.visualViewport.height : (
1176
+ var x = ut(n), E = "clientHeight", L = "clientWidth";
1177
+ if (x === $e(n) && (x = Ae(n), Ve(x).position !== "static" && l === "absolute" && (E = "scrollHeight", L = "scrollWidth")), x = x, i === we || (i === xe || i === Te) && r === rt) {
1178
+ O = Oe;
1179
+ var Y = d && x === k && k.visualViewport ? k.visualViewport.height : (
1180
1180
  // $FlowFixMe[prop-missing]
1181
- T[B]
1181
+ x[E]
1182
1182
  );
1183
- C -= Y - i.height, C *= o ? 1 : -1;
1183
+ $ -= Y - a.height, $ *= s ? 1 : -1;
1184
1184
  }
1185
- if (a === xe || (a === we || a === Oe) && r === rt) {
1186
- R = Te;
1187
- var X = d && T === P && P.visualViewport ? P.visualViewport.width : (
1185
+ if (i === xe || (i === we || i === Oe) && r === rt) {
1186
+ A = Te;
1187
+ var X = d && x === k && k.visualViewport ? k.visualViewport.width : (
1188
1188
  // $FlowFixMe[prop-missing]
1189
- T[I]
1189
+ x[L]
1190
1190
  );
1191
- m -= X - i.width, m *= o ? 1 : -1;
1191
+ h -= X - a.width, h *= s ? 1 : -1;
1192
1192
  }
1193
1193
  }
1194
- var _ = Object.assign({
1194
+ var D = Object.assign({
1195
1195
  position: l
1196
1196
  }, v && si), se = c === !0 ? ci({
1197
- x: m,
1198
- y: C
1197
+ x: h,
1198
+ y: $
1199
1199
  }, $e(n)) : {
1200
- x: m,
1201
- y: C
1200
+ x: h,
1201
+ y: $
1202
1202
  };
1203
- if (m = se.x, C = se.y, o) {
1203
+ if (h = se.x, $ = se.y, s) {
1204
1204
  var Q;
1205
- return Object.assign({}, _, (Q = {}, Q[k] = z ? "0" : "", Q[R] = x ? "0" : "", Q.transform = (P.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + C + "px)" : "translate3d(" + m + "px, " + C + "px, 0)", Q));
1205
+ return Object.assign({}, D, (Q = {}, Q[O] = N ? "0" : "", Q[A] = V ? "0" : "", Q.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + $ + "px)" : "translate3d(" + h + "px, " + $ + "px, 0)", Q));
1206
1206
  }
1207
- return Object.assign({}, _, (t = {}, t[k] = z ? C + "px" : "", t[R] = x ? m + "px" : "", t.transform = "", t));
1207
+ return Object.assign({}, D, (t = {}, t[O] = N ? $ + "px" : "", t[A] = V ? h + "px" : "", t.transform = "", t));
1208
1208
  }
1209
1209
  function ui(e) {
1210
- var t = e.state, n = e.options, i = n.gpuAcceleration, a = i === void 0 ? !0 : i, r = n.adaptive, s = r === void 0 ? !0 : r, l = n.roundOffsets, o = l === void 0 ? !0 : l, v = {
1210
+ var t = e.state, n = e.options, a = n.gpuAcceleration, i = a === void 0 ? !0 : a, r = n.adaptive, o = r === void 0 ? !0 : r, l = n.roundOffsets, s = l === void 0 ? !0 : l, v = {
1211
1211
  placement: Ee(t.placement),
1212
1212
  variation: Ke(t.placement),
1213
1213
  popper: t.elements.popper,
1214
1214
  popperRect: t.rects.popper,
1215
- gpuAcceleration: a,
1215
+ gpuAcceleration: i,
1216
1216
  isFixed: t.options.strategy === "fixed"
1217
1217
  };
1218
1218
  t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, fn(Object.assign({}, v, {
1219
1219
  offsets: t.modifiersData.popperOffsets,
1220
1220
  position: t.options.strategy,
1221
- adaptive: s,
1222
- roundOffsets: o
1221
+ adaptive: o,
1222
+ roundOffsets: s
1223
1223
  })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, fn(Object.assign({}, v, {
1224
1224
  offsets: t.modifiersData.arrow,
1225
1225
  position: "absolute",
1226
1226
  adaptive: !1,
1227
- roundOffsets: o
1227
+ roundOffsets: s
1228
1228
  })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
1229
1229
  "data-popper-placement": t.placement
1230
1230
  });
@@ -1240,13 +1240,13 @@ var pt = {
1240
1240
  passive: !0
1241
1241
  };
1242
1242
  function fi(e) {
1243
- var t = e.state, n = e.instance, i = e.options, a = i.scroll, r = a === void 0 ? !0 : a, s = i.resize, l = s === void 0 ? !0 : s, o = $e(t.elements.popper), v = [].concat(t.scrollParents.reference, t.scrollParents.popper);
1243
+ var t = e.state, n = e.instance, a = e.options, i = a.scroll, r = i === void 0 ? !0 : i, o = a.resize, l = o === void 0 ? !0 : o, s = $e(t.elements.popper), v = [].concat(t.scrollParents.reference, t.scrollParents.popper);
1244
1244
  return r && v.forEach(function(c) {
1245
1245
  c.addEventListener("scroll", n.update, pt);
1246
- }), l && o.addEventListener("resize", n.update, pt), function() {
1246
+ }), l && s.addEventListener("resize", n.update, pt), function() {
1247
1247
  r && v.forEach(function(c) {
1248
1248
  c.removeEventListener("scroll", n.update, pt);
1249
- }), l && o.removeEventListener("resize", n.update, pt);
1249
+ }), l && s.removeEventListener("resize", n.update, pt);
1250
1250
  };
1251
1251
  }
1252
1252
  const vi = {
@@ -1279,41 +1279,41 @@ function vn(e) {
1279
1279
  });
1280
1280
  }
1281
1281
  function Qt(e) {
1282
- var t = $e(e), n = t.pageXOffset, i = t.pageYOffset;
1282
+ var t = $e(e), n = t.pageXOffset, a = t.pageYOffset;
1283
1283
  return {
1284
1284
  scrollLeft: n,
1285
- scrollTop: i
1285
+ scrollTop: a
1286
1286
  };
1287
1287
  }
1288
1288
  function Jt(e) {
1289
1289
  return Xe(Ae(e)).left + Qt(e).scrollLeft;
1290
1290
  }
1291
1291
  function hi(e, t) {
1292
- var n = $e(e), i = Ae(e), a = n.visualViewport, r = i.clientWidth, s = i.clientHeight, l = 0, o = 0;
1293
- if (a) {
1294
- r = a.width, s = a.height;
1295
- var v = Pn();
1296
- (v || !v && t === "fixed") && (l = a.offsetLeft, o = a.offsetTop);
1292
+ var n = $e(e), a = Ae(e), i = n.visualViewport, r = a.clientWidth, o = a.clientHeight, l = 0, s = 0;
1293
+ if (i) {
1294
+ r = i.width, o = i.height;
1295
+ var v = Vn();
1296
+ (v || !v && t === "fixed") && (l = i.offsetLeft, s = i.offsetTop);
1297
1297
  }
1298
1298
  return {
1299
1299
  width: r,
1300
- height: s,
1300
+ height: o,
1301
1301
  x: l + Jt(e),
1302
- y: o
1302
+ y: s
1303
1303
  };
1304
1304
  }
1305
1305
  function gi(e) {
1306
- var t, n = Ae(e), i = Qt(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, r = Me(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = Me(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), l = -i.scrollLeft + Jt(e), o = -i.scrollTop;
1307
- return Pe(a || n).direction === "rtl" && (l += Me(n.clientWidth, a ? a.clientWidth : 0) - r), {
1306
+ var t, n = Ae(e), a = Qt(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, r = Me(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Me(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), l = -a.scrollLeft + Jt(e), s = -a.scrollTop;
1307
+ return Ve(i || n).direction === "rtl" && (l += Me(n.clientWidth, i ? i.clientWidth : 0) - r), {
1308
1308
  width: r,
1309
- height: s,
1309
+ height: o,
1310
1310
  x: l,
1311
- y: o
1311
+ y: s
1312
1312
  };
1313
1313
  }
1314
1314
  function en(e) {
1315
- var t = Pe(e), n = t.overflow, i = t.overflowX, a = t.overflowY;
1316
- return /auto|scroll|overlay|hidden/.test(n + a + i);
1315
+ var t = Ve(e), n = t.overflow, a = t.overflowX, i = t.overflowY;
1316
+ return /auto|scroll|overlay|hidden/.test(n + i + a);
1317
1317
  }
1318
1318
  function Mn(e) {
1319
1319
  return ["html", "body", "#document"].indexOf(Re(e)) >= 0 ? e.ownerDocument.body : Ce(e) && en(e) ? e : Mn(Ct(e));
@@ -1321,10 +1321,10 @@ function Mn(e) {
1321
1321
  function tt(e, t) {
1322
1322
  var n;
1323
1323
  t === void 0 && (t = []);
1324
- var i = Mn(e), a = i === ((n = e.ownerDocument) == null ? void 0 : n.body), r = $e(i), s = a ? [r].concat(r.visualViewport || [], en(i) ? i : []) : i, l = t.concat(s);
1325
- return a ? l : (
1324
+ var a = Mn(e), i = a === ((n = e.ownerDocument) == null ? void 0 : n.body), r = $e(a), o = i ? [r].concat(r.visualViewport || [], en(a) ? a : []) : a, l = t.concat(o);
1325
+ return i ? l : (
1326
1326
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
1327
- l.concat(tt(Ct(s)))
1327
+ l.concat(tt(Ct(o)))
1328
1328
  );
1329
1329
  }
1330
1330
  function Wt(e) {
@@ -1343,79 +1343,79 @@ function pn(e, t, n) {
1343
1343
  return t === Ln ? Wt(hi(e, n)) : Ie(t) ? bi(t, n) : Wt(gi(Ae(e)));
1344
1344
  }
1345
1345
  function yi(e) {
1346
- var t = tt(Ct(e)), n = ["absolute", "fixed"].indexOf(Pe(e).position) >= 0, i = n && Ce(e) ? ut(e) : e;
1347
- return Ie(i) ? t.filter(function(a) {
1348
- return Ie(a) && Vn(a, i) && Re(a) !== "body";
1346
+ var t = tt(Ct(e)), n = ["absolute", "fixed"].indexOf(Ve(e).position) >= 0, a = n && Ce(e) ? ut(e) : e;
1347
+ return Ie(a) ? t.filter(function(i) {
1348
+ return Ie(i) && Pn(i, a) && Re(i) !== "body";
1349
1349
  }) : [];
1350
1350
  }
1351
- function wi(e, t, n, i) {
1352
- var a = t === "clippingParents" ? yi(e) : [].concat(t), r = [].concat(a, [n]), s = r[0], l = r.reduce(function(o, v) {
1353
- var c = pn(e, v, i);
1354
- return o.top = Me(c.top, o.top), o.right = yt(c.right, o.right), o.bottom = yt(c.bottom, o.bottom), o.left = Me(c.left, o.left), o;
1355
- }, pn(e, s, i));
1351
+ function wi(e, t, n, a) {
1352
+ var i = t === "clippingParents" ? yi(e) : [].concat(t), r = [].concat(i, [n]), o = r[0], l = r.reduce(function(s, v) {
1353
+ var c = pn(e, v, a);
1354
+ return s.top = Me(c.top, s.top), s.right = yt(c.right, s.right), s.bottom = yt(c.bottom, s.bottom), s.left = Me(c.left, s.left), s;
1355
+ }, pn(e, o, a));
1356
1356
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
1357
1357
  }
1358
1358
  function In(e) {
1359
- var t = e.reference, n = e.element, i = e.placement, a = i ? Ee(i) : null, r = i ? Ke(i) : null, s = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, o;
1360
- switch (a) {
1359
+ var t = e.reference, n = e.element, a = e.placement, i = a ? Ee(a) : null, r = a ? Ke(a) : null, o = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, s;
1360
+ switch (i) {
1361
1361
  case we:
1362
- o = {
1363
- x: s,
1362
+ s = {
1363
+ x: o,
1364
1364
  y: t.y - n.height
1365
1365
  };
1366
1366
  break;
1367
1367
  case Oe:
1368
- o = {
1369
- x: s,
1368
+ s = {
1369
+ x: o,
1370
1370
  y: t.y + t.height
1371
1371
  };
1372
1372
  break;
1373
1373
  case Te:
1374
- o = {
1374
+ s = {
1375
1375
  x: t.x + t.width,
1376
1376
  y: l
1377
1377
  };
1378
1378
  break;
1379
1379
  case xe:
1380
- o = {
1380
+ s = {
1381
1381
  x: t.x - n.width,
1382
1382
  y: l
1383
1383
  };
1384
1384
  break;
1385
1385
  default:
1386
- o = {
1386
+ s = {
1387
1387
  x: t.x,
1388
1388
  y: t.y
1389
1389
  };
1390
1390
  }
1391
- var v = a ? Zt(a) : null;
1391
+ var v = i ? Zt(i) : null;
1392
1392
  if (v != null) {
1393
1393
  var c = v === "y" ? "height" : "width";
1394
1394
  switch (r) {
1395
1395
  case qe:
1396
- o[v] = o[v] - (t[c] / 2 - n[c] / 2);
1396
+ s[v] = s[v] - (t[c] / 2 - n[c] / 2);
1397
1397
  break;
1398
1398
  case rt:
1399
- o[v] = o[v] + (t[c] / 2 - n[c] / 2);
1399
+ s[v] = s[v] + (t[c] / 2 - n[c] / 2);
1400
1400
  break;
1401
1401
  }
1402
1402
  }
1403
- return o;
1403
+ return s;
1404
1404
  }
1405
1405
  function lt(e, t) {
1406
1406
  t === void 0 && (t = {});
1407
- var n = t, i = n.placement, a = i === void 0 ? e.placement : i, r = n.strategy, s = r === void 0 ? e.strategy : r, l = n.boundary, o = l === void 0 ? Na : l, v = n.rootBoundary, c = v === void 0 ? Ln : v, d = n.elementContext, g = d === void 0 ? Ge : d, m = n.altBoundary, y = m === void 0 ? !1 : m, C = n.padding, E = C === void 0 ? 0 : C, x = An(typeof E != "number" ? E : Dn(E, ct)), z = g === Ge ? ja : Ge, R = e.rects.popper, k = e.elements[y ? z : g], P = wi(Ie(k) ? k : k.contextElement || Ae(e.elements.popper), o, c, s), T = Xe(e.elements.reference), B = In({
1408
- reference: T,
1409
- element: R,
1410
- placement: a
1411
- }), I = Wt(Object.assign({}, R, B)), Y = g === Ge ? I : T, X = {
1412
- top: P.top - Y.top + x.top,
1413
- bottom: Y.bottom - P.bottom + x.bottom,
1414
- left: P.left - Y.left + x.left,
1415
- right: Y.right - P.right + x.right
1416
- }, _ = e.modifiersData.offset;
1417
- if (g === Ge && _) {
1418
- var se = _[a];
1407
+ var n = t, a = n.placement, i = a === void 0 ? e.placement : a, r = n.strategy, o = r === void 0 ? e.strategy : r, l = n.boundary, s = l === void 0 ? Na : l, v = n.rootBoundary, c = v === void 0 ? Ln : v, d = n.elementContext, g = d === void 0 ? Ge : d, h = n.altBoundary, y = h === void 0 ? !1 : h, $ = n.padding, z = $ === void 0 ? 0 : $, V = An(typeof z != "number" ? z : Dn(z, ct)), N = g === Ge ? ja : Ge, A = e.rects.popper, O = e.elements[y ? N : g], k = wi(Ie(O) ? O : O.contextElement || Ae(e.elements.popper), s, c, o), x = Xe(e.elements.reference), E = In({
1408
+ reference: x,
1409
+ element: A,
1410
+ placement: i
1411
+ }), L = Wt(Object.assign({}, A, E)), Y = g === Ge ? L : x, X = {
1412
+ top: k.top - Y.top + V.top,
1413
+ bottom: Y.bottom - k.bottom + V.bottom,
1414
+ left: k.left - Y.left + V.left,
1415
+ right: Y.right - k.right + V.right
1416
+ }, D = e.modifiersData.offset;
1417
+ if (g === Ge && D) {
1418
+ var se = D[i];
1419
1419
  Object.keys(X).forEach(function(Q) {
1420
1420
  var te = [Te, Oe].indexOf(Q) >= 0 ? 1 : -1, pe = [we, Oe].indexOf(Q) >= 0 ? "y" : "x";
1421
1421
  X[Q] += se[pe] * te;
@@ -1425,22 +1425,22 @@ function lt(e, t) {
1425
1425
  }
1426
1426
  function xi(e, t) {
1427
1427
  t === void 0 && (t = {});
1428
- var n = t, i = n.placement, a = n.boundary, r = n.rootBoundary, s = n.padding, l = n.flipVariations, o = n.allowedAutoPlacements, v = o === void 0 ? Bn : o, c = Ke(i), d = c ? l ? un : un.filter(function(y) {
1428
+ var n = t, a = n.placement, i = n.boundary, r = n.rootBoundary, o = n.padding, l = n.flipVariations, s = n.allowedAutoPlacements, v = s === void 0 ? Bn : s, c = Ke(a), d = c ? l ? un : un.filter(function(y) {
1429
1429
  return Ke(y) === c;
1430
1430
  }) : ct, g = d.filter(function(y) {
1431
1431
  return v.indexOf(y) >= 0;
1432
1432
  });
1433
1433
  g.length === 0 && (g = d);
1434
- var m = g.reduce(function(y, C) {
1435
- return y[C] = lt(e, {
1436
- placement: C,
1437
- boundary: a,
1434
+ var h = g.reduce(function(y, $) {
1435
+ return y[$] = lt(e, {
1436
+ placement: $,
1437
+ boundary: i,
1438
1438
  rootBoundary: r,
1439
- padding: s
1440
- })[Ee(C)], y;
1439
+ padding: o
1440
+ })[Ee($)], y;
1441
1441
  }, {});
1442
- return Object.keys(m).sort(function(y, C) {
1443
- return m[y] - m[C];
1442
+ return Object.keys(h).sort(function(y, $) {
1443
+ return h[y] - h[$];
1444
1444
  });
1445
1445
  }
1446
1446
  function ki(e) {
@@ -1450,39 +1450,39 @@ function ki(e) {
1450
1450
  return [vn(e), t, vn(t)];
1451
1451
  }
1452
1452
  function $i(e) {
1453
- var t = e.state, n = e.options, i = e.name;
1454
- if (!t.modifiersData[i]._skip) {
1455
- for (var a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, l = s === void 0 ? !0 : s, o = n.fallbackPlacements, v = n.padding, c = n.boundary, d = n.rootBoundary, g = n.altBoundary, m = n.flipVariations, y = m === void 0 ? !0 : m, C = n.allowedAutoPlacements, E = t.options.placement, x = Ee(E), z = x === E, R = o || (z || !y ? [bt(E)] : ki(E)), k = [E].concat(R).reduce(function(D, ee) {
1456
- return D.concat(Ee(ee) === Xt ? xi(t, {
1453
+ var t = e.state, n = e.options, a = e.name;
1454
+ if (!t.modifiersData[a]._skip) {
1455
+ for (var i = n.mainAxis, r = i === void 0 ? !0 : i, o = n.altAxis, l = o === void 0 ? !0 : o, s = n.fallbackPlacements, v = n.padding, c = n.boundary, d = n.rootBoundary, g = n.altBoundary, h = n.flipVariations, y = h === void 0 ? !0 : h, $ = n.allowedAutoPlacements, z = t.options.placement, V = Ee(z), N = V === z, A = s || (N || !y ? [bt(z)] : ki(z)), O = [z].concat(A).reduce(function(M, ee) {
1456
+ return M.concat(Ee(ee) === Xt ? xi(t, {
1457
1457
  placement: ee,
1458
1458
  boundary: c,
1459
1459
  rootBoundary: d,
1460
1460
  padding: v,
1461
1461
  flipVariations: y,
1462
- allowedAutoPlacements: C
1462
+ allowedAutoPlacements: $
1463
1463
  }) : ee);
1464
- }, []), P = t.rects.reference, T = t.rects.popper, B = /* @__PURE__ */ new Map(), I = !0, Y = k[0], X = 0; X < k.length; X++) {
1465
- var _ = k[X], se = Ee(_), Q = Ke(_) === qe, te = [we, Oe].indexOf(se) >= 0, pe = te ? "width" : "height", G = lt(t, {
1466
- placement: _,
1464
+ }, []), k = t.rects.reference, x = t.rects.popper, E = /* @__PURE__ */ new Map(), L = !0, Y = O[0], X = 0; X < O.length; X++) {
1465
+ var D = O[X], se = Ee(D), Q = Ke(D) === qe, te = [we, Oe].indexOf(se) >= 0, pe = te ? "width" : "height", G = lt(t, {
1466
+ placement: D,
1467
1467
  boundary: c,
1468
1468
  rootBoundary: d,
1469
1469
  altBoundary: g,
1470
1470
  padding: v
1471
- }), A = te ? Q ? Te : xe : Q ? Oe : we;
1472
- P[pe] > T[pe] && (A = bt(A));
1473
- var M = bt(A), L = [];
1474
- if (r && L.push(G[se] <= 0), l && L.push(G[A] <= 0, G[M] <= 0), L.every(function(D) {
1475
- return D;
1471
+ }), W = te ? Q ? Te : xe : Q ? Oe : we;
1472
+ k[pe] > x[pe] && (W = bt(W));
1473
+ var I = bt(W), R = [];
1474
+ if (r && R.push(G[se] <= 0), l && R.push(G[W] <= 0, G[I] <= 0), R.every(function(M) {
1475
+ return M;
1476
1476
  })) {
1477
- Y = _, I = !1;
1477
+ Y = D, L = !1;
1478
1478
  break;
1479
1479
  }
1480
- B.set(_, L);
1480
+ E.set(D, R);
1481
1481
  }
1482
- if (I)
1482
+ if (L)
1483
1483
  for (var F = y ? 3 : 1, J = function(ee) {
1484
- var ce = k.find(function(b) {
1485
- var ie = B.get(b);
1484
+ var ce = O.find(function(b) {
1485
+ var ie = E.get(b);
1486
1486
  if (ie)
1487
1487
  return ie.slice(0, ee).every(function(re) {
1488
1488
  return re;
@@ -1491,10 +1491,10 @@ function $i(e) {
1491
1491
  if (ce)
1492
1492
  return Y = ce, "break";
1493
1493
  }, f = F; f > 0; f--) {
1494
- var $ = J(f);
1495
- if ($ === "break") break;
1494
+ var S = J(f);
1495
+ if (S === "break") break;
1496
1496
  }
1497
- t.placement !== Y && (t.modifiersData[i]._skip = !0, t.placement = Y, t.reset = !0);
1497
+ t.placement !== Y && (t.modifiersData[a]._skip = !0, t.placement = Y, t.reset = !0);
1498
1498
  }
1499
1499
  }
1500
1500
  const Si = {
@@ -1524,13 +1524,13 @@ function hn(e) {
1524
1524
  });
1525
1525
  }
1526
1526
  function Ci(e) {
1527
- var t = e.state, n = e.name, i = t.rects.reference, a = t.rects.popper, r = t.modifiersData.preventOverflow, s = lt(t, {
1527
+ var t = e.state, n = e.name, a = t.rects.reference, i = t.rects.popper, r = t.modifiersData.preventOverflow, o = lt(t, {
1528
1528
  elementContext: "reference"
1529
1529
  }), l = lt(t, {
1530
1530
  altBoundary: !0
1531
- }), o = mn(s, i), v = mn(l, a, r), c = hn(o), d = hn(v);
1531
+ }), s = mn(o, a), v = mn(l, i, r), c = hn(s), d = hn(v);
1532
1532
  t.modifiersData[n] = {
1533
- referenceClippingOffsets: o,
1533
+ referenceClippingOffsets: s,
1534
1534
  popperEscapeOffsets: v,
1535
1535
  isReferenceHidden: c,
1536
1536
  hasPopperEscaped: d
@@ -1547,22 +1547,22 @@ const Oi = {
1547
1547
  fn: Ci
1548
1548
  };
1549
1549
  function Ti(e, t, n) {
1550
- var i = Ee(e), a = [xe, we].indexOf(i) >= 0 ? -1 : 1, r = typeof n == "function" ? n(Object.assign({}, t, {
1550
+ var a = Ee(e), i = [xe, we].indexOf(a) >= 0 ? -1 : 1, r = typeof n == "function" ? n(Object.assign({}, t, {
1551
1551
  placement: e
1552
- })) : n, s = r[0], l = r[1];
1553
- return s = s || 0, l = (l || 0) * a, [xe, Te].indexOf(i) >= 0 ? {
1552
+ })) : n, o = r[0], l = r[1];
1553
+ return o = o || 0, l = (l || 0) * i, [xe, Te].indexOf(a) >= 0 ? {
1554
1554
  x: l,
1555
- y: s
1555
+ y: o
1556
1556
  } : {
1557
- x: s,
1557
+ x: o,
1558
1558
  y: l
1559
1559
  };
1560
1560
  }
1561
1561
  function zi(e) {
1562
- var t = e.state, n = e.options, i = e.name, a = n.offset, r = a === void 0 ? [0, 0] : a, s = Bn.reduce(function(c, d) {
1562
+ var t = e.state, n = e.options, a = e.name, i = n.offset, r = i === void 0 ? [0, 0] : i, o = Bn.reduce(function(c, d) {
1563
1563
  return c[d] = Ti(d, t.rects, r), c;
1564
- }, {}), l = s[t.placement], o = l.x, v = l.y;
1565
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += o, t.modifiersData.popperOffsets.y += v), t.modifiersData[i] = s;
1564
+ }, {}), l = o[t.placement], s = l.x, v = l.y;
1565
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += v), t.modifiersData[a] = o;
1566
1566
  }
1567
1567
  const Ei = {
1568
1568
  name: "offset",
@@ -1589,44 +1589,44 @@ const Li = {
1589
1589
  function Bi(e) {
1590
1590
  return e === "x" ? "y" : "x";
1591
1591
  }
1592
- function Pi(e) {
1593
- var t = e.state, n = e.options, i = e.name, a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, l = s === void 0 ? !1 : s, o = n.boundary, v = n.rootBoundary, c = n.altBoundary, d = n.padding, g = n.tether, m = g === void 0 ? !0 : g, y = n.tetherOffset, C = y === void 0 ? 0 : y, E = lt(t, {
1594
- boundary: o,
1592
+ function Vi(e) {
1593
+ var t = e.state, n = e.options, a = e.name, i = n.mainAxis, r = i === void 0 ? !0 : i, o = n.altAxis, l = o === void 0 ? !1 : o, s = n.boundary, v = n.rootBoundary, c = n.altBoundary, d = n.padding, g = n.tether, h = g === void 0 ? !0 : g, y = n.tetherOffset, $ = y === void 0 ? 0 : y, z = lt(t, {
1594
+ boundary: s,
1595
1595
  rootBoundary: v,
1596
1596
  padding: d,
1597
1597
  altBoundary: c
1598
- }), x = Ee(t.placement), z = Ke(t.placement), R = !z, k = Zt(x), P = Bi(k), T = t.modifiersData.popperOffsets, B = t.rects.reference, I = t.rects.popper, Y = typeof C == "function" ? C(Object.assign({}, t.rects, {
1598
+ }), V = Ee(t.placement), N = Ke(t.placement), A = !N, O = Zt(V), k = Bi(O), x = t.modifiersData.popperOffsets, E = t.rects.reference, L = t.rects.popper, Y = typeof $ == "function" ? $(Object.assign({}, t.rects, {
1599
1599
  placement: t.placement
1600
- })) : C, X = typeof Y == "number" ? {
1600
+ })) : $, X = typeof Y == "number" ? {
1601
1601
  mainAxis: Y,
1602
1602
  altAxis: Y
1603
1603
  } : Object.assign({
1604
1604
  mainAxis: 0,
1605
1605
  altAxis: 0
1606
- }, Y), _ = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, se = {
1606
+ }, Y), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, se = {
1607
1607
  x: 0,
1608
1608
  y: 0
1609
1609
  };
1610
- if (T) {
1610
+ if (x) {
1611
1611
  if (r) {
1612
- var Q, te = k === "y" ? we : xe, pe = k === "y" ? Oe : Te, G = k === "y" ? "height" : "width", A = T[k], M = A + E[te], L = A - E[pe], F = m ? -I[G] / 2 : 0, J = z === qe ? B[G] : I[G], f = z === qe ? -I[G] : -B[G], $ = t.elements.arrow, D = m && $ ? Gt($) : {
1612
+ var Q, te = O === "y" ? we : xe, pe = O === "y" ? Oe : Te, G = O === "y" ? "height" : "width", W = x[O], I = W + z[te], R = W - z[pe], F = h ? -L[G] / 2 : 0, J = N === qe ? E[G] : L[G], f = N === qe ? -L[G] : -E[G], S = t.elements.arrow, M = h && S ? Gt(S) : {
1613
1613
  width: 0,
1614
1614
  height: 0
1615
- }, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Wn(), ce = ee[te], b = ee[pe], ie = et(0, B[G], D[G]), re = R ? B[G] / 2 - F - ie - ce - X.mainAxis : J - ie - ce - X.mainAxis, ke = R ? -B[G] / 2 + F + ie + b + X.mainAxis : f + ie + b + X.mainAxis, De = t.elements.arrow && ut(t.elements.arrow), O = De ? k === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, W = (Q = _?.[k]) != null ? Q : 0, fe = A + re - W - O, ue = A + ke - W, Ve = et(m ? yt(M, fe) : M, A, m ? Me(L, ue) : L);
1616
- T[k] = Ve, se[k] = Ve - A;
1615
+ }, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Wn(), ce = ee[te], b = ee[pe], ie = et(0, E[G], M[G]), re = A ? E[G] / 2 - F - ie - ce - X.mainAxis : J - ie - ce - X.mainAxis, ke = A ? -E[G] / 2 + F + ie + b + X.mainAxis : f + ie + b + X.mainAxis, De = t.elements.arrow && ut(t.elements.arrow), T = De ? O === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, P = (Q = D?.[O]) != null ? Q : 0, fe = W + re - P - T, ue = W + ke - P, Pe = et(h ? yt(I, fe) : I, W, h ? Me(R, ue) : R);
1616
+ x[O] = Pe, se[O] = Pe - W;
1617
1617
  }
1618
1618
  if (l) {
1619
- var dt, w = k === "x" ? we : xe, K = k === "x" ? Oe : Te, j = T[P], be = P === "y" ? "height" : "width", me = j + E[w], ft = j - E[K], vt = [we, xe].indexOf(x) !== -1, nn = (dt = _?.[P]) != null ? dt : 0, an = vt ? me : j - B[be] - I[be] - nn + X.altAxis, rn = vt ? j + B[be] + I[be] - nn - X.altAxis : ft, ln = m && vt ? ai(an, j, rn) : et(m ? an : me, j, m ? rn : ft);
1620
- T[P] = ln, se[P] = ln - j;
1619
+ var dt, w = O === "x" ? we : xe, K = O === "x" ? Oe : Te, H = x[k], be = k === "y" ? "height" : "width", me = H + z[w], ft = H - z[K], vt = [we, xe].indexOf(V) !== -1, nn = (dt = D?.[k]) != null ? dt : 0, an = vt ? me : H - E[be] - L[be] - nn + X.altAxis, rn = vt ? H + E[be] + L[be] - nn - X.altAxis : ft, ln = h && vt ? ai(an, H, rn) : et(h ? an : me, H, h ? rn : ft);
1620
+ x[k] = ln, se[k] = ln - H;
1621
1621
  }
1622
- t.modifiersData[i] = se;
1622
+ t.modifiersData[a] = se;
1623
1623
  }
1624
1624
  }
1625
- const Vi = {
1625
+ const Pi = {
1626
1626
  name: "preventOverflow",
1627
1627
  enabled: !0,
1628
1628
  phase: "main",
1629
- fn: Pi,
1629
+ fn: Vi,
1630
1630
  requiresIfExists: ["offset"]
1631
1631
  };
1632
1632
  function Wi(e) {
@@ -1639,50 +1639,50 @@ function Ai(e) {
1639
1639
  return e === $e(e) || !Ce(e) ? Qt(e) : Wi(e);
1640
1640
  }
1641
1641
  function Di(e) {
1642
- var t = e.getBoundingClientRect(), n = Ye(t.width) / e.offsetWidth || 1, i = Ye(t.height) / e.offsetHeight || 1;
1643
- return n !== 1 || i !== 1;
1642
+ var t = e.getBoundingClientRect(), n = Ye(t.width) / e.offsetWidth || 1, a = Ye(t.height) / e.offsetHeight || 1;
1643
+ return n !== 1 || a !== 1;
1644
1644
  }
1645
1645
  function Mi(e, t, n) {
1646
1646
  n === void 0 && (n = !1);
1647
- var i = Ce(t), a = Ce(t) && Di(t), r = Ae(t), s = Xe(e, a, n), l = {
1647
+ var a = Ce(t), i = Ce(t) && Di(t), r = Ae(t), o = Xe(e, i, n), l = {
1648
1648
  scrollLeft: 0,
1649
1649
  scrollTop: 0
1650
- }, o = {
1650
+ }, s = {
1651
1651
  x: 0,
1652
1652
  y: 0
1653
1653
  };
1654
- return (i || !i && !n) && ((Re(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1655
- en(r)) && (l = Ai(t)), Ce(t) ? (o = Xe(t, !0), o.x += t.clientLeft, o.y += t.clientTop) : r && (o.x = Jt(r))), {
1656
- x: s.left + l.scrollLeft - o.x,
1657
- y: s.top + l.scrollTop - o.y,
1658
- width: s.width,
1659
- height: s.height
1654
+ return (a || !a && !n) && ((Re(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1655
+ en(r)) && (l = Ai(t)), Ce(t) ? (s = Xe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : r && (s.x = Jt(r))), {
1656
+ x: o.left + l.scrollLeft - s.x,
1657
+ y: o.top + l.scrollTop - s.y,
1658
+ width: o.width,
1659
+ height: o.height
1660
1660
  };
1661
1661
  }
1662
1662
  function Ii(e) {
1663
- var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), i = [];
1663
+ var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = [];
1664
1664
  e.forEach(function(r) {
1665
1665
  t.set(r.name, r);
1666
1666
  });
1667
- function a(r) {
1667
+ function i(r) {
1668
1668
  n.add(r.name);
1669
- var s = [].concat(r.requires || [], r.requiresIfExists || []);
1670
- s.forEach(function(l) {
1669
+ var o = [].concat(r.requires || [], r.requiresIfExists || []);
1670
+ o.forEach(function(l) {
1671
1671
  if (!n.has(l)) {
1672
- var o = t.get(l);
1673
- o && a(o);
1672
+ var s = t.get(l);
1673
+ s && i(s);
1674
1674
  }
1675
- }), i.push(r);
1675
+ }), a.push(r);
1676
1676
  }
1677
1677
  return e.forEach(function(r) {
1678
- n.has(r.name) || a(r);
1679
- }), i;
1678
+ n.has(r.name) || i(r);
1679
+ }), a;
1680
1680
  }
1681
1681
  function Ni(e) {
1682
1682
  var t = Ii(e);
1683
- return Za.reduce(function(n, i) {
1684
- return n.concat(t.filter(function(a) {
1685
- return a.phase === i;
1683
+ return Za.reduce(function(n, a) {
1684
+ return n.concat(t.filter(function(i) {
1685
+ return i.phase === a;
1686
1686
  }));
1687
1687
  }, []);
1688
1688
  }
@@ -1697,12 +1697,12 @@ function ji(e) {
1697
1697
  };
1698
1698
  }
1699
1699
  function Hi(e) {
1700
- var t = e.reduce(function(n, i) {
1701
- var a = n[i.name];
1702
- return n[i.name] = a ? Object.assign({}, a, i, {
1703
- options: Object.assign({}, a.options, i.options),
1704
- data: Object.assign({}, a.data, i.data)
1705
- }) : i, n;
1700
+ var t = e.reduce(function(n, a) {
1701
+ var i = n[a.name];
1702
+ return n[a.name] = i ? Object.assign({}, i, a, {
1703
+ options: Object.assign({}, i.options, a.options),
1704
+ data: Object.assign({}, i.data, a.data)
1705
+ }) : a, n;
1706
1706
  }, {});
1707
1707
  return Object.keys(t).map(function(n) {
1708
1708
  return t[n];
@@ -1716,14 +1716,14 @@ var gn = {
1716
1716
  function bn() {
1717
1717
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1718
1718
  t[n] = arguments[n];
1719
- return !t.some(function(i) {
1720
- return !(i && typeof i.getBoundingClientRect == "function");
1719
+ return !t.some(function(a) {
1720
+ return !(a && typeof a.getBoundingClientRect == "function");
1721
1721
  });
1722
1722
  }
1723
1723
  function _i(e) {
1724
1724
  e === void 0 && (e = {});
1725
- var t = e, n = t.defaultModifiers, i = n === void 0 ? [] : n, a = t.defaultOptions, r = a === void 0 ? gn : a;
1726
- return function(l, o, v) {
1725
+ var t = e, n = t.defaultModifiers, a = n === void 0 ? [] : n, i = t.defaultOptions, r = i === void 0 ? gn : i;
1726
+ return function(l, s, v) {
1727
1727
  v === void 0 && (v = r);
1728
1728
  var c = {
1729
1729
  placement: "bottom",
@@ -1732,22 +1732,22 @@ function _i(e) {
1732
1732
  modifiersData: {},
1733
1733
  elements: {
1734
1734
  reference: l,
1735
- popper: o
1735
+ popper: s
1736
1736
  },
1737
1737
  attributes: {},
1738
1738
  styles: {}
1739
- }, d = [], g = !1, m = {
1739
+ }, d = [], g = !1, h = {
1740
1740
  state: c,
1741
- setOptions: function(x) {
1742
- var z = typeof x == "function" ? x(c.options) : x;
1743
- C(), c.options = Object.assign({}, r, c.options, z), c.scrollParents = {
1741
+ setOptions: function(V) {
1742
+ var N = typeof V == "function" ? V(c.options) : V;
1743
+ $(), c.options = Object.assign({}, r, c.options, N), c.scrollParents = {
1744
1744
  reference: Ie(l) ? tt(l) : l.contextElement ? tt(l.contextElement) : [],
1745
- popper: tt(o)
1745
+ popper: tt(s)
1746
1746
  };
1747
- var R = Ni(Hi([].concat(i, c.options.modifiers)));
1748
- return c.orderedModifiers = R.filter(function(k) {
1749
- return k.enabled;
1750
- }), y(), m.update();
1747
+ var A = Ni(Hi([].concat(a, c.options.modifiers)));
1748
+ return c.orderedModifiers = A.filter(function(O) {
1749
+ return O.enabled;
1750
+ }), y(), h.update();
1751
1751
  },
1752
1752
  // Sync update – it will always be executed, even if not necessary. This
1753
1753
  // is useful for low frequency updates where sync behavior simplifies the
@@ -1756,25 +1756,25 @@ function _i(e) {
1756
1756
  // prefer the async Popper#update method
1757
1757
  forceUpdate: function() {
1758
1758
  if (!g) {
1759
- var x = c.elements, z = x.reference, R = x.popper;
1760
- if (bn(z, R)) {
1759
+ var V = c.elements, N = V.reference, A = V.popper;
1760
+ if (bn(N, A)) {
1761
1761
  c.rects = {
1762
- reference: Mi(z, ut(R), c.options.strategy === "fixed"),
1763
- popper: Gt(R)
1762
+ reference: Mi(N, ut(A), c.options.strategy === "fixed"),
1763
+ popper: Gt(A)
1764
1764
  }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(X) {
1765
1765
  return c.modifiersData[X.name] = Object.assign({}, X.data);
1766
1766
  });
1767
- for (var k = 0; k < c.orderedModifiers.length; k++) {
1767
+ for (var O = 0; O < c.orderedModifiers.length; O++) {
1768
1768
  if (c.reset === !0) {
1769
- c.reset = !1, k = -1;
1769
+ c.reset = !1, O = -1;
1770
1770
  continue;
1771
1771
  }
1772
- var P = c.orderedModifiers[k], T = P.fn, B = P.options, I = B === void 0 ? {} : B, Y = P.name;
1773
- typeof T == "function" && (c = T({
1772
+ var k = c.orderedModifiers[O], x = k.fn, E = k.options, L = E === void 0 ? {} : E, Y = k.name;
1773
+ typeof x == "function" && (c = x({
1774
1774
  state: c,
1775
- options: I,
1775
+ options: L,
1776
1776
  name: Y,
1777
- instance: m
1777
+ instance: h
1778
1778
  }) || c);
1779
1779
  }
1780
1780
  }
@@ -1783,54 +1783,54 @@ function _i(e) {
1783
1783
  // Async and optimistically optimized update – it will not be executed if
1784
1784
  // not necessary (debounced to run at most once-per-tick)
1785
1785
  update: ji(function() {
1786
- return new Promise(function(E) {
1787
- m.forceUpdate(), E(c);
1786
+ return new Promise(function(z) {
1787
+ h.forceUpdate(), z(c);
1788
1788
  });
1789
1789
  }),
1790
1790
  destroy: function() {
1791
- C(), g = !0;
1791
+ $(), g = !0;
1792
1792
  }
1793
1793
  };
1794
- if (!bn(l, o))
1795
- return m;
1796
- m.setOptions(v).then(function(E) {
1797
- !g && v.onFirstUpdate && v.onFirstUpdate(E);
1794
+ if (!bn(l, s))
1795
+ return h;
1796
+ h.setOptions(v).then(function(z) {
1797
+ !g && v.onFirstUpdate && v.onFirstUpdate(z);
1798
1798
  });
1799
1799
  function y() {
1800
- c.orderedModifiers.forEach(function(E) {
1801
- var x = E.name, z = E.options, R = z === void 0 ? {} : z, k = E.effect;
1802
- if (typeof k == "function") {
1803
- var P = k({
1800
+ c.orderedModifiers.forEach(function(z) {
1801
+ var V = z.name, N = z.options, A = N === void 0 ? {} : N, O = z.effect;
1802
+ if (typeof O == "function") {
1803
+ var k = O({
1804
1804
  state: c,
1805
- name: x,
1806
- instance: m,
1807
- options: R
1808
- }), T = function() {
1805
+ name: V,
1806
+ instance: h,
1807
+ options: A
1808
+ }), x = function() {
1809
1809
  };
1810
- d.push(P || T);
1810
+ d.push(k || x);
1811
1811
  }
1812
1812
  });
1813
1813
  }
1814
- function C() {
1815
- d.forEach(function(E) {
1816
- return E();
1814
+ function $() {
1815
+ d.forEach(function(z) {
1816
+ return z();
1817
1817
  }), d = [];
1818
1818
  }
1819
- return m;
1819
+ return h;
1820
1820
  };
1821
1821
  }
1822
- var Fi = [vi, Li, di, ei, Ei, Si, Vi, oi, Oi], Nn = /* @__PURE__ */ _i({
1822
+ var Fi = [vi, Li, di, ei, Ei, Si, Pi, oi, Oi], Nn = /* @__PURE__ */ _i({
1823
1823
  defaultModifiers: Fi
1824
1824
  }), Ui = typeof global == "object" && global && global.Object === Object && global, qi = typeof self == "object" && self && self.Object === Object && self, jn = Ui || qi || Function("return this")(), wt = jn.Symbol, Hn = Object.prototype, Yi = Hn.hasOwnProperty, Xi = Hn.toString, Ze = wt ? wt.toStringTag : void 0;
1825
1825
  function Ki(e) {
1826
1826
  var t = Yi.call(e, Ze), n = e[Ze];
1827
1827
  try {
1828
1828
  e[Ze] = void 0;
1829
- var i = !0;
1829
+ var a = !0;
1830
1830
  } catch {
1831
1831
  }
1832
- var a = Xi.call(e);
1833
- return i && (t ? e[Ze] = n : delete e[Ze]), a;
1832
+ var i = Xi.call(e);
1833
+ return a && (t ? e[Ze] = n : delete e[Ze]), i;
1834
1834
  }
1835
1835
  var Gi = Object.prototype, Zi = Gi.toString;
1836
1836
  function Qi(e) {
@@ -1881,78 +1881,78 @@ var Lt = function() {
1881
1881
  return jn.Date.now();
1882
1882
  }, vr = "Expected a function", pr = Math.max, mr = Math.min;
1883
1883
  function At(e, t, n) {
1884
- var i, a, r, s, l, o, v = 0, c = !1, d = !1, g = !0;
1884
+ var a, i, r, o, l, s, v = 0, c = !1, d = !1, g = !0;
1885
1885
  if (typeof e != "function")
1886
1886
  throw new TypeError(vr);
1887
1887
  t = xn(t) || 0, xt(n) && (c = !!n.leading, d = "maxWait" in n, r = d ? pr(xn(n.maxWait) || 0, t) : r, g = "trailing" in n ? !!n.trailing : g);
1888
- function m(T) {
1889
- var B = i, I = a;
1890
- return i = a = void 0, v = T, s = e.apply(I, B), s;
1888
+ function h(x) {
1889
+ var E = a, L = i;
1890
+ return a = i = void 0, v = x, o = e.apply(L, E), o;
1891
1891
  }
1892
- function y(T) {
1893
- return v = T, l = setTimeout(x, t), c ? m(T) : s;
1892
+ function y(x) {
1893
+ return v = x, l = setTimeout(V, t), c ? h(x) : o;
1894
1894
  }
1895
- function C(T) {
1896
- var B = T - o, I = T - v, Y = t - B;
1897
- return d ? mr(Y, r - I) : Y;
1895
+ function $(x) {
1896
+ var E = x - s, L = x - v, Y = t - E;
1897
+ return d ? mr(Y, r - L) : Y;
1898
1898
  }
1899
- function E(T) {
1900
- var B = T - o, I = T - v;
1901
- return o === void 0 || B >= t || B < 0 || d && I >= r;
1899
+ function z(x) {
1900
+ var E = x - s, L = x - v;
1901
+ return s === void 0 || E >= t || E < 0 || d && L >= r;
1902
1902
  }
1903
- function x() {
1904
- var T = Lt();
1905
- if (E(T))
1906
- return z(T);
1907
- l = setTimeout(x, C(T));
1903
+ function V() {
1904
+ var x = Lt();
1905
+ if (z(x))
1906
+ return N(x);
1907
+ l = setTimeout(V, $(x));
1908
1908
  }
1909
- function z(T) {
1910
- return l = void 0, g && i ? m(T) : (i = a = void 0, s);
1909
+ function N(x) {
1910
+ return l = void 0, g && a ? h(x) : (a = i = void 0, o);
1911
1911
  }
1912
- function R() {
1913
- l !== void 0 && clearTimeout(l), v = 0, i = o = a = l = void 0;
1912
+ function A() {
1913
+ l !== void 0 && clearTimeout(l), v = 0, a = s = i = l = void 0;
1914
1914
  }
1915
- function k() {
1916
- return l === void 0 ? s : z(Lt());
1915
+ function O() {
1916
+ return l === void 0 ? o : N(Lt());
1917
1917
  }
1918
- function P() {
1919
- var T = Lt(), B = E(T);
1920
- if (i = arguments, a = this, o = T, B) {
1918
+ function k() {
1919
+ var x = Lt(), E = z(x);
1920
+ if (a = arguments, i = this, s = x, E) {
1921
1921
  if (l === void 0)
1922
- return y(o);
1922
+ return y(s);
1923
1923
  if (d)
1924
- return clearTimeout(l), l = setTimeout(x, t), m(o);
1924
+ return clearTimeout(l), l = setTimeout(V, t), h(s);
1925
1925
  }
1926
- return l === void 0 && (l = setTimeout(x, t)), s;
1926
+ return l === void 0 && (l = setTimeout(V, t)), o;
1927
1927
  }
1928
- return P.cancel = R, P.flush = k, P;
1928
+ return k.cancel = A, k.flush = O, k;
1929
1929
  }
1930
1930
  var hr = "Expected a function";
1931
1931
  function gr(e, t, n) {
1932
- var i = !0, a = !0;
1932
+ var a = !0, i = !0;
1933
1933
  if (typeof e != "function")
1934
1934
  throw new TypeError(hr);
1935
- return xt(n) && (i = "leading" in n ? !!n.leading : i, a = "trailing" in n ? !!n.trailing : a), At(e, t, {
1936
- leading: i,
1935
+ return xt(n) && (a = "leading" in n ? !!n.leading : a, i = "trailing" in n ? !!n.trailing : i), At(e, t, {
1936
+ leading: a,
1937
1937
  maxWait: t,
1938
- trailing: a
1938
+ trailing: i
1939
1939
  });
1940
1940
  }
1941
1941
  function _n(e, t, n = {}) {
1942
- const { ignore: i = [], capture: a = !0 } = n;
1942
+ const { ignore: a = [], capture: i = !0 } = n;
1943
1943
  let r = !1;
1944
- function s(d, g) {
1944
+ function o(d, g) {
1945
1945
  return d ? d === g || d.contains(g) : !1;
1946
1946
  }
1947
1947
  function l(d, g) {
1948
- return d.some((m) => s(U(m), g));
1948
+ return d.some((h) => o(U(h), g));
1949
1949
  }
1950
- function o() {
1950
+ function s() {
1951
1951
  return Array.isArray(e) ? e : [e];
1952
1952
  }
1953
1953
  function v(d) {
1954
1954
  const g = d.target;
1955
- g instanceof Node && (r = l(o(), g) || l(i, g));
1955
+ g instanceof Node && (r = l(s(), g) || l(a, g));
1956
1956
  }
1957
1957
  function c(d) {
1958
1958
  if (r) {
@@ -1960,12 +1960,12 @@ function _n(e, t, n = {}) {
1960
1960
  return;
1961
1961
  }
1962
1962
  const g = d.target;
1963
- g instanceof Node && !l(o(), g) && !l(i, g) && t(d);
1963
+ g instanceof Node && !l(s(), g) && !l(a, g) && t(d);
1964
1964
  }
1965
1965
  Ne(() => {
1966
- document.addEventListener("pointerdown", v, a), document.addEventListener("click", c, a);
1966
+ document.addEventListener("pointerdown", v, i), document.addEventListener("click", c, i);
1967
1967
  }), Le(() => {
1968
- document.removeEventListener("pointerdown", v, a), document.removeEventListener("click", c, a);
1968
+ document.removeEventListener("pointerdown", v, i), document.removeEventListener("click", c, i);
1969
1969
  });
1970
1970
  }
1971
1971
  const Fn = 1, ot = typeof window < "u" && typeof document < "u", Se = (e) => {
@@ -1980,10 +1980,10 @@ const br = () => !ot || typeof ResizeObserver > "u" ? null : (Bt || (Bt = new Re
1980
1980
  const n = br();
1981
1981
  if (!n) return () => {
1982
1982
  };
1983
- let i = Je.get(e);
1984
- return i || (i = /* @__PURE__ */ new Set(), Je.set(e, i), n.observe(e)), i.add(t), () => {
1985
- const a = Je.get(e);
1986
- a && (a.delete(t), !(a.size > 0) && (Je.delete(e), n.unobserve(e)));
1983
+ let a = Je.get(e);
1984
+ return a || (a = /* @__PURE__ */ new Set(), Je.set(e, a), n.observe(e)), a.add(t), () => {
1985
+ const i = Je.get(e);
1986
+ i && (i.delete(t), !(i.size > 0) && (Je.delete(e), n.unobserve(e)));
1987
1987
  };
1988
1988
  }, kt = /* @__PURE__ */ new Set();
1989
1989
  let nt = !1;
@@ -1998,33 +1998,33 @@ const Dt = () => {
1998
1998
  }, kr = (e) => (kt.add(e), wr(), () => {
1999
1999
  kt.delete(e), xr();
2000
2000
  }), $r = (e) => e.isConnected ? !(e.offsetWidth === 0 && e.offsetHeight === 0 && e.clientWidth === 0 && e.clientHeight === 0) : !1, Sr = (e, t = "horizontal", n = Fn) => {
2001
- const i = e.scrollWidth - e.clientWidth > n, a = e.scrollHeight - e.clientHeight > n;
2002
- return { overflowX: i, overflowY: a, overflow: t === "vertical" ? a : t === "both" ? i || a : i };
2001
+ const a = e.scrollWidth - e.clientWidth > n, i = e.scrollHeight - e.clientHeight > n;
2002
+ return { overflowX: a, overflowY: i, overflow: t === "vertical" ? i : t === "both" ? a || i : a };
2003
2003
  };
2004
2004
  function Ul(e, t = {}) {
2005
- const n = V(!1), i = V(!1), a = V(!1);
2006
- let r = 0, s = !1, l, o;
2007
- const v = (I) => {
2008
- n.value = I.overflowX, i.value = I.overflowY, a.value = I.overflow;
2005
+ const n = B(!1), a = B(!1), i = B(!1);
2006
+ let r = 0, o = !1, l, s;
2007
+ const v = (L) => {
2008
+ n.value = L.overflowX, a.value = L.overflowY, i.value = L.overflow;
2009
2009
  }, c = () => {
2010
2010
  v({ overflowX: !1, overflowY: !1, overflow: !1 });
2011
2011
  }, d = () => {
2012
- if (s || Se(t.enabled) === !1)
2012
+ if (o || Se(t.enabled) === !1)
2013
2013
  return c(), !1;
2014
- const I = Se(e);
2015
- if (!I)
2014
+ const L = Se(e);
2015
+ if (!L)
2016
2016
  return c(), !1;
2017
- if (!$r(I)) return a.value;
2017
+ if (!$r(L)) return i.value;
2018
2018
  const Y = Sr(
2019
- I,
2019
+ L,
2020
2020
  Se(t.axis) ?? "horizontal",
2021
2021
  Se(t.threshold) ?? Fn
2022
2022
  );
2023
2023
  return v(Y), Y.overflow;
2024
2024
  }, g = () => {
2025
2025
  r && (ot && cancelAnimationFrame(r), r = 0);
2026
- }, m = () => (g(), d()), y = () => {
2027
- if (!s) {
2026
+ }, h = () => (g(), d()), y = () => {
2027
+ if (!o) {
2028
2028
  if (!ot || Se(t.raf) === !1) {
2029
2029
  d();
2030
2030
  return;
@@ -2033,47 +2033,47 @@ function Ul(e, t = {}) {
2033
2033
  r = 0, d();
2034
2034
  }));
2035
2035
  }
2036
- }, C = () => {
2036
+ }, $ = () => {
2037
2037
  l?.(), l = void 0;
2038
- }, E = (I) => {
2039
- C(), l = yr(I, y);
2040
- }, x = () => {
2041
- o?.(), o = void 0;
2042
- }, z = () => {
2043
- x(), o = kr(y);
2044
- }, R = le(
2038
+ }, z = (L) => {
2039
+ $(), l = yr(L, y);
2040
+ }, V = () => {
2041
+ s?.(), s = void 0;
2042
+ }, N = () => {
2043
+ V(), s = kr(y);
2044
+ }, A = le(
2045
2045
  () => [
2046
2046
  Se(e),
2047
2047
  Se(t.enabled) !== !1,
2048
2048
  Se(t.observeResize) !== !1
2049
2049
  ],
2050
- ([I, Y, X]) => {
2051
- if (C(), !Y || !I) {
2050
+ ([L, Y, X]) => {
2051
+ if ($(), !Y || !L) {
2052
2052
  c();
2053
2053
  return;
2054
2054
  }
2055
- X && E(I), y();
2055
+ X && z(L), y();
2056
2056
  },
2057
2057
  { flush: "post", immediate: !0 }
2058
- ), k = le(
2058
+ ), O = le(
2059
2059
  () => [Se(t.axis), Se(t.threshold)],
2060
2060
  () => y(),
2061
2061
  { flush: "post" }
2062
- ), P = t.deps ? le(t.deps, () => y(), { flush: "post" }) : void 0, T = le(
2062
+ ), k = t.deps ? le(t.deps, () => y(), { flush: "post" }) : void 0, x = le(
2063
2063
  () => Se(t.observeFonts) !== !1 && Se(t.enabled) !== !1,
2064
- (I) => {
2065
- I ? z() : x();
2064
+ (L) => {
2065
+ L ? N() : V();
2066
2066
  },
2067
2067
  { flush: "post", immediate: !0 }
2068
- ), B = () => {
2069
- s || (s = !0, g(), C(), x(), R(), k(), P?.(), T());
2068
+ ), E = () => {
2069
+ o || (o = !0, g(), $(), V(), A(), O(), k?.(), x());
2070
2070
  };
2071
- return Qn() && Jn(B), {
2072
- isOverflow: Ot(a),
2071
+ return Qn() && Jn(E), {
2072
+ isOverflow: Ot(i),
2073
2073
  isOverflowX: Ot(n),
2074
- isOverflowY: Ot(i),
2075
- checkOverflow: m,
2076
- stop: B
2074
+ isOverflowY: Ot(a),
2075
+ checkOverflow: h,
2076
+ stop: E
2077
2077
  };
2078
2078
  }
2079
2079
  const Cr = 80, Mt = /* @__PURE__ */ oe({
@@ -2096,52 +2096,52 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2096
2096
  },
2097
2097
  emits: ["visible-change", "click-outside", "scroll"],
2098
2098
  setup(e, { expose: t, emit: n }) {
2099
- const i = V(!1), a = e, r = p(() => a.preserveContentMount || i.value), s = p(() => !a.preserveContentMount || i.value), l = n, o = V(null), v = V(), c = V();
2100
- let d = null, g = je({}), m = je({}), y = je({});
2101
- const C = (O) => typeof O == "number" ? `${O}px` : O, E = p(() => {
2102
- const O = a.maxPopperHeight;
2103
- return O != null && O !== "";
2104
- }), x = p(() => {
2105
- const O = {}, W = a.popperWidth;
2106
- if (W != null && W !== "" && (O.width = C(W)), E.value) {
2107
- const fe = a.maxPopperHeight;
2108
- O.maxHeight = C(fe), O.overflowY = "auto", O.scrollbarWidth = "none", O.msOverflowStyle = "none";
2099
+ const a = B(!1), i = e, r = p(() => i.preserveContentMount || a.value), o = p(() => !i.preserveContentMount || a.value), l = n, s = B(null), v = B(), c = B();
2100
+ let d = null, g = je({}), h = je({}), y = je({});
2101
+ const $ = (T) => typeof T == "number" ? `${T}px` : T, z = p(() => {
2102
+ const T = i.maxPopperHeight;
2103
+ return T != null && T !== "";
2104
+ }), V = p(() => {
2105
+ const T = {}, P = i.popperWidth;
2106
+ if (P != null && P !== "" && (T.width = $(P)), z.value) {
2107
+ const fe = i.maxPopperHeight;
2108
+ T.maxHeight = $(fe), T.overflowY = "auto", T.scrollbarWidth = "none", T.msOverflowStyle = "none";
2109
2109
  }
2110
- return O.padding = C(a.padding), O;
2111
- }), z = () => {
2112
- const O = v.value;
2113
- if (!O) return null;
2114
- const W = O.firstElementChild;
2115
- return W instanceof HTMLElement ? W : O;
2116
- }, R = (O, W) => {
2117
- if (!W?.length) return O;
2110
+ return T.padding = $(i.padding), T;
2111
+ }), N = () => {
2112
+ const T = v.value;
2113
+ if (!T) return null;
2114
+ const P = T.firstElementChild;
2115
+ return P instanceof HTMLElement ? P : T;
2116
+ }, A = (T, P) => {
2117
+ if (!P?.length) return T;
2118
2118
  const fe = /* @__PURE__ */ new Map();
2119
- for (const ue of O)
2119
+ for (const ue of T)
2120
2120
  ue && "name" in ue && ue.name && fe.set(ue.name, { ...ue });
2121
- for (const ue of W) {
2121
+ for (const ue of P) {
2122
2122
  if (!ue || !("name" in ue) || !ue.name) continue;
2123
- const Ve = fe.get(ue.name);
2123
+ const Pe = fe.get(ue.name);
2124
2124
  fe.set(
2125
2125
  ue.name,
2126
- Ve ? {
2127
- ...Ve,
2126
+ Pe ? {
2127
+ ...Pe,
2128
2128
  ...ue,
2129
2129
  options: {
2130
- ...Ve.options,
2130
+ ...Pe.options,
2131
2131
  ...ue.options
2132
2132
  }
2133
2133
  } : ue
2134
2134
  );
2135
2135
  }
2136
2136
  return Array.from(fe.values());
2137
- }, k = p(() => {
2138
- const O = {
2139
- placement: a.placement,
2137
+ }, O = p(() => {
2138
+ const T = {
2139
+ placement: i.placement,
2140
2140
  strategy: "fixed",
2141
2141
  modifiers: [
2142
2142
  {
2143
2143
  name: "offset",
2144
- options: { offset: a.offset }
2144
+ options: { offset: i.offset }
2145
2145
  },
2146
2146
  {
2147
2147
  name: "flip",
@@ -2152,13 +2152,13 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2152
2152
  options: { boundary: "viewport", padding: 8 }
2153
2153
  }
2154
2154
  ]
2155
- }, W = a.popoverOptions;
2156
- return W ? {
2157
- ...O,
2158
- ...W,
2159
- modifiers: R(O.modifiers ?? [], W.modifiers)
2160
- } : O;
2161
- }), P = [
2155
+ }, P = i.popoverOptions;
2156
+ return P ? {
2157
+ ...T,
2158
+ ...P,
2159
+ modifiers: A(T.modifiers ?? [], P.modifiers)
2160
+ } : T;
2161
+ }), k = [
2162
2162
  "position",
2163
2163
  "top",
2164
2164
  "left",
@@ -2168,160 +2168,160 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2168
2168
  "transform",
2169
2169
  "will-change",
2170
2170
  "margin"
2171
- ], T = (O) => {
2172
- const W = {};
2173
- for (const fe of P) {
2174
- const ue = O.style.getPropertyValue(fe);
2175
- ue && (W[fe] = ue);
2171
+ ], x = (T) => {
2172
+ const P = {};
2173
+ for (const fe of k) {
2174
+ const ue = T.style.getPropertyValue(fe);
2175
+ ue && (P[fe] = ue);
2176
2176
  }
2177
- return W;
2178
- }, B = (O, W) => {
2179
- for (const [fe, ue] of Object.entries(W))
2180
- O.style.setProperty(fe, ue);
2181
- }, I = (O) => {
2182
- if (O) {
2183
- for (const W of P)
2184
- O.style.removeProperty(W);
2185
- for (const W of [...O.attributes])
2186
- W.name.startsWith("data-popper-") && O.removeAttribute(W.name);
2177
+ return P;
2178
+ }, E = (T, P) => {
2179
+ for (const [fe, ue] of Object.entries(P))
2180
+ T.style.setProperty(fe, ue);
2181
+ }, L = (T) => {
2182
+ if (T) {
2183
+ for (const P of k)
2184
+ T.style.removeProperty(P);
2185
+ for (const P of [...T.attributes])
2186
+ P.name.startsWith("data-popper-") && T.removeAttribute(P.name);
2187
2187
  }
2188
2188
  }, Y = () => {
2189
- a.disabled || (i.value = !0, l("visible-change", !0));
2189
+ i.disabled || (a.value = !0, l("visible-change", !0));
2190
2190
  }, X = () => {
2191
- i.value = !1, l("visible-change", !1);
2192
- }, _ = At(Y, a.openDelay), se = At(X, a.closeDelay), Q = () => {
2193
- a.disabled || (se.cancel(), _());
2191
+ a.value = !1, l("visible-change", !1);
2192
+ }, D = At(Y, i.openDelay), se = At(X, i.closeDelay), Q = () => {
2193
+ i.disabled || (se.cancel(), D());
2194
2194
  }, te = () => {
2195
- _.cancel(), se();
2195
+ D.cancel(), se();
2196
2196
  };
2197
- _n(o, (O) => {
2198
- const W = O.target;
2199
- W instanceof Node && c.value?.contains(W) || (a.trigger === "click" && i.value && !a.manual && te(), i.value && l("click-outside", !0));
2197
+ _n(s, (T) => {
2198
+ const P = T.target;
2199
+ P instanceof Node && c.value?.contains(P) || (i.trigger === "click" && a.value && !i.manual && te(), a.value && l("click-outside", !0));
2200
2200
  });
2201
2201
  const pe = () => {
2202
- a.disabled || (i.value ? te() : Q());
2202
+ i.disabled || (a.value ? te() : Q());
2203
2203
  }, G = () => {
2204
- y = {}, a.trigger === "hover" ? (m.mouseenter = Q, g.mouseleave = te, y.mouseenter = Q, y.mouseleave = te) : a.trigger === "click" && (m.click = pe);
2204
+ y = {}, i.trigger === "hover" ? (h.mouseenter = Q, g.mouseleave = te, y.mouseenter = Q, y.mouseleave = te) : i.trigger === "click" && (h.click = pe);
2205
2205
  };
2206
- let A = 0;
2207
- const M = [];
2208
- let L = null, F = null;
2206
+ let W = 0;
2207
+ const I = [];
2208
+ let R = null, F = null;
2209
2209
  const J = () => {
2210
- for (A++; M.length; ) {
2211
- const O = M.pop();
2212
- O !== void 0 && cancelAnimationFrame(O);
2210
+ for (W++; I.length; ) {
2211
+ const T = I.pop();
2212
+ T !== void 0 && cancelAnimationFrame(T);
2213
2213
  }
2214
2214
  }, f = () => {
2215
- L?.disconnect(), F?.disconnect(), L = null, F = null;
2216
- }, $ = () => {
2217
- !i.value || !d || d.update();
2218
- }, D = () => {
2215
+ R?.disconnect(), F?.disconnect(), R = null, F = null;
2216
+ }, S = () => {
2217
+ !a.value || !d || d.update();
2218
+ }, M = () => {
2219
2219
  J();
2220
- const O = A;
2221
- i.value && ($(), ge(() => {
2222
- if (O !== A || !i.value) return;
2223
- $();
2224
- const W = requestAnimationFrame(() => {
2225
- if (O !== A || !i.value) return;
2220
+ const T = W;
2221
+ a.value && (S(), ge(() => {
2222
+ if (T !== W || !a.value) return;
2223
+ S();
2224
+ const P = requestAnimationFrame(() => {
2225
+ if (T !== W || !a.value) return;
2226
2226
  const fe = requestAnimationFrame(() => {
2227
- O !== A || !i.value || $();
2227
+ T !== W || !a.value || S();
2228
2228
  });
2229
- M.push(fe);
2229
+ I.push(fe);
2230
2230
  });
2231
- M.push(W);
2231
+ I.push(P);
2232
2232
  }));
2233
2233
  }, ee = () => {
2234
2234
  if (f(), typeof ResizeObserver > "u") return;
2235
- const O = () => {
2236
- i.value && $();
2235
+ const T = () => {
2236
+ a.value && S();
2237
2237
  };
2238
- c.value && (L = new ResizeObserver(O), L.observe(c.value));
2239
- const W = z();
2240
- W && (F = new ResizeObserver(O), F.observe(W));
2238
+ c.value && (R = new ResizeObserver(T), R.observe(c.value));
2239
+ const P = N();
2240
+ P && (F = new ResizeObserver(T), F.observe(P));
2241
2241
  }, ce = () => {
2242
- const O = z(), W = c.value;
2243
- return !O || !W ? !1 : d ? (d.setOptions(k.value), !0) : (I(W), d = Nn(O, W, k.value), !0);
2244
- }, b = (O = !1) => {
2242
+ const T = N(), P = c.value;
2243
+ return !T || !P ? !1 : d ? (d.setOptions(O.value), !0) : (L(P), d = Nn(T, P, O.value), !0);
2244
+ }, b = (T = !1) => {
2245
2245
  J(), f();
2246
- const W = c.value, fe = O && W ? T(W) : null;
2247
- d?.destroy(), d = null, W && fe && Object.keys(fe).length && B(W, fe);
2246
+ const P = c.value, fe = T && P ? x(P) : null;
2247
+ d?.destroy(), d = null, P && fe && Object.keys(fe).length && E(P, fe);
2248
2248
  }, ie = () => {
2249
- i.value && (d || ce(), D());
2249
+ a.value && (d || ce(), M());
2250
2250
  };
2251
2251
  le(
2252
- () => i.value,
2253
- async (O) => {
2254
- if (O) {
2252
+ () => a.value,
2253
+ async (T) => {
2254
+ if (T) {
2255
2255
  if (!ce()) {
2256
- if (await ge(), !i.value) return;
2256
+ if (await ge(), !a.value) return;
2257
2257
  ce();
2258
2258
  }
2259
- D(), ee();
2259
+ M(), ee();
2260
2260
  return;
2261
2261
  }
2262
2262
  b(!0);
2263
2263
  },
2264
2264
  { flush: "post" }
2265
2265
  ), le(
2266
- () => [a.popperWidth, a.maxPopperHeight],
2266
+ () => [i.popperWidth, i.maxPopperHeight],
2267
2267
  () => {
2268
- i.value && D();
2268
+ a.value && M();
2269
2269
  },
2270
2270
  { flush: "post" }
2271
2271
  ), le(
2272
- k,
2272
+ O,
2273
2273
  () => {
2274
- !i.value || !d || (d.setOptions(k.value), D());
2274
+ !a.value || !d || (d.setOptions(O.value), M());
2275
2275
  }
2276
2276
  ), le(
2277
- () => a.manual,
2278
- (O) => {
2279
- O ? (m = {}, g = {}, y = {}) : G();
2277
+ () => i.manual,
2278
+ (T) => {
2279
+ T ? (h = {}, g = {}, y = {}) : G();
2280
2280
  }
2281
2281
  ), le(
2282
- () => a.trigger,
2283
- (O, W) => {
2284
- O !== W && (m = {}, g = {}, y = {}, G());
2282
+ () => i.trigger,
2283
+ (T, P) => {
2284
+ T !== P && (h = {}, g = {}, y = {}, G());
2285
2285
  }
2286
2286
  ), le(
2287
- () => a.teleported,
2287
+ () => i.teleported,
2288
2288
  () => {
2289
- a.manual || G();
2289
+ i.manual || G();
2290
2290
  }
2291
2291
  ), le(
2292
- () => a.disabled,
2293
- (O) => {
2294
- O && te();
2292
+ () => i.disabled,
2293
+ (T) => {
2294
+ T && te();
2295
2295
  }
2296
2296
  ), Ne(() => {
2297
- a.manual || G();
2297
+ i.manual || G();
2298
2298
  });
2299
- const re = gr((O) => {
2300
- const W = O.target;
2301
- l("scroll", { scrollTop: W.scrollTop, scrollLeft: W.scrollLeft });
2299
+ const re = gr((T) => {
2300
+ const P = T.target;
2301
+ l("scroll", { scrollTop: P.scrollTop, scrollLeft: P.scrollLeft });
2302
2302
  }, Cr), ke = () => {
2303
- $();
2303
+ S();
2304
2304
  }, De = () => {
2305
- i.value || (b(!1), I(c.value));
2305
+ a.value || (b(!1), L(c.value));
2306
2306
  };
2307
2307
  return Le(() => {
2308
2308
  re.cancel(), b(!1);
2309
2309
  }), t({
2310
- isOpen: i,
2310
+ isOpen: a,
2311
2311
  open: Q,
2312
2312
  close: te,
2313
2313
  update: ie
2314
- }), (O, W) => (u(), h("div", Be({
2314
+ }), (T, P) => (u(), m("div", Be({
2315
2315
  class: "cregis-popover",
2316
2316
  ref_key: "popoverRef",
2317
- ref: o
2317
+ ref: s
2318
2318
  }, Tt(U(g), !0)), [
2319
- S("div", Be({
2319
+ C("div", Be({
2320
2320
  class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
2321
2321
  ref_key: "popoverTriggerRef",
2322
2322
  ref: v
2323
- }, Tt(U(m), !0)), [
2324
- ae(O.$slots, "reference")
2323
+ }, Tt(U(h), !0)), [
2324
+ ae(T.$slots, "reference")
2325
2325
  ], 16),
2326
2326
  (u(), de(_t, {
2327
2327
  to: "body",
@@ -2333,20 +2333,20 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2333
2333
  onAfterLeave: De
2334
2334
  }, {
2335
2335
  default: ve(() => [
2336
- r.value ? _e((u(), h("div", Be({
2336
+ r.value ? _e((u(), m("div", Be({
2337
2337
  key: 0,
2338
- class: ["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": E.value }],
2338
+ class: ["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": z.value }],
2339
2339
  ref_key: "popoverContentRef",
2340
2340
  ref: c,
2341
- style: x.value
2341
+ style: V.value
2342
2342
  }, Tt(U(y), !0), {
2343
- onScroll: W[0] || (W[0] = //@ts-ignore
2343
+ onScroll: P[0] || (P[0] = //@ts-ignore
2344
2344
  (...fe) => U(re) && U(re)(...fe))
2345
2345
  }), [
2346
- ae(O.$slots, "default")
2346
+ ae(T.$slots, "default")
2347
2347
  ], 16)), [
2348
- [St, s.value]
2349
- ]) : N("", !0)
2348
+ [St, o.value]
2349
+ ]) : j("", !0)
2350
2350
  ]),
2351
2351
  _: 3
2352
2352
  })
@@ -2387,62 +2387,62 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2387
2387
  },
2388
2388
  emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
2389
2389
  setup(e, { emit: t }) {
2390
- const n = e, i = t, a = V(null), r = V(null), s = V(!1), l = V();
2391
- let o = null, v = null;
2390
+ const n = e, a = t, i = B(null), r = B(null), o = B(!1), l = B();
2391
+ let s = null, v = null;
2392
2392
  const c = () => {
2393
2393
  v !== null && (clearTimeout(v), v = null);
2394
2394
  }, d = (b) => typeof b == "string" && b.trim().endsWith("%"), g = () => {
2395
2395
  if (!d(n.triggerWidth) || n.popperWidth) return;
2396
2396
  const b = r.value;
2397
2397
  b && (l.value = b.offsetWidth + 8);
2398
- }, m = async (b) => {
2399
- s.value = b, i("visible-change", b), b && d(n.triggerWidth) && (await ge(), g(), a.value?.update()), !b && n.filterable && (X.value = "", _.value = "", c());
2400
- }, y = (b) => typeof b == "number" ? `n:${b}` : `s:${b}`, C = je({}), E = je({}), x = V(0), z = V(null), R = (b, ie, re) => {
2398
+ }, h = async (b) => {
2399
+ o.value = b, a("visible-change", b), b && d(n.triggerWidth) && (await ge(), g(), i.value?.update()), !b && n.filterable && (X.value = "", D.value = "", c());
2400
+ }, y = (b) => typeof b == "number" ? `n:${b}` : `s:${b}`, $ = je({}), z = je({}), V = B(0), N = B(null), A = (b, ie, re) => {
2401
2401
  const ke = y(b);
2402
- return x.value++, C[ke] = ie, E[ke] = re ?? ie, () => {
2403
- x.value--, delete C[ke], delete E[ke];
2402
+ return V.value++, $[ke] = ie, z[ke] = re ?? ie, () => {
2403
+ V.value--, delete $[ke], delete z[ke];
2404
2404
  };
2405
- }, k = p(() => x.value === 0);
2405
+ }, O = p(() => V.value === 0);
2406
2406
  le(
2407
2407
  () => n.modelValue,
2408
2408
  (b) => {
2409
2409
  if (!n.multiple) {
2410
2410
  if (b == null || b === "") {
2411
- z.value = null;
2411
+ N.value = null;
2412
2412
  return;
2413
2413
  }
2414
- z.value && z.value.value !== b && (z.value = null);
2414
+ N.value && N.value.value !== b && (N.value = null);
2415
2415
  }
2416
2416
  }
2417
2417
  );
2418
- const P = p(() => {
2418
+ const k = p(() => {
2419
2419
  if (n.multiple)
2420
2420
  return Array.isArray(n.modelValue) && n.modelValue.length > 0;
2421
2421
  const b = n.modelValue;
2422
2422
  return b != null && b !== "";
2423
- }), T = p(() => !n.multiple || !Array.isArray(n.modelValue) ? 0 : n.modelValue.length), B = p(() => {
2424
- if (!P.value) return "";
2423
+ }), x = p(() => !n.multiple || !Array.isArray(n.modelValue) ? 0 : n.modelValue.length), E = p(() => {
2424
+ if (!k.value) return "";
2425
2425
  if (n.multiple)
2426
- return n.modelValue.map((re) => C[y(re)] ?? String(re)).join("、");
2426
+ return n.modelValue.map((re) => $[y(re)] ?? String(re)).join("、");
2427
2427
  const b = n.modelValue;
2428
- return z.value?.value === b ? z.value.label : C[y(b)] ?? String(b);
2429
- }), I = (b) => n.multiple ? Array.isArray(n.modelValue) && n.modelValue.includes(b) : n.modelValue === b, Y = (b, ie) => {
2428
+ return N.value?.value === b ? N.value.label : $[y(b)] ?? String(b);
2429
+ }), L = (b) => n.multiple ? Array.isArray(n.modelValue) && n.modelValue.includes(b) : n.modelValue === b, Y = (b, ie) => {
2430
2430
  if (!n.disabled) {
2431
2431
  if (n.multiple) {
2432
2432
  const re = Array.isArray(n.modelValue) ? [...n.modelValue] : [], ke = re.indexOf(b);
2433
- ke >= 0 ? re.splice(ke, 1) : re.push(b), i("update:modelValue", re), i("change", re);
2433
+ ke >= 0 ? re.splice(ke, 1) : re.push(b), a("update:modelValue", re), a("change", re);
2434
2434
  return;
2435
2435
  }
2436
- z.value = { value: b, label: ie }, i("update:modelValue", b), i("change", b), a.value?.close();
2436
+ N.value = { value: b, label: ie }, a("update:modelValue", b), a("change", b), i.value?.close();
2437
2437
  }
2438
- }, X = V(""), _ = V(""), se = p(() => _.value.trim().toLowerCase()), Q = p(() => {
2438
+ }, X = B(""), D = B(""), se = p(() => D.value.trim().toLowerCase()), Q = p(() => {
2439
2439
  const b = se.value;
2440
- return !n.filterable || !b ? !0 : Object.keys(C).some((ie) => (E[ie] ?? C[ie] ?? "").toLowerCase().includes(b));
2440
+ return !n.filterable || !b ? !0 : Object.keys($).some((ie) => (z[ie] ?? $[ie] ?? "").toLowerCase().includes(b));
2441
2441
  }), te = p(
2442
- () => n.filterable && !!se.value && !Q.value && !k.value
2442
+ () => n.filterable && !!se.value && !Q.value && !O.value
2443
2443
  ), pe = () => {
2444
2444
  n.filterable && (c(), v = setTimeout(() => {
2445
- _.value = X.value.trim(), v = null;
2445
+ D.value = X.value.trim(), v = null;
2446
2446
  }, n.filterDebounceMs));
2447
2447
  };
2448
2448
  le(X, () => {
@@ -2450,108 +2450,108 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2450
2450
  }), le(
2451
2451
  () => n.filterable,
2452
2452
  (b) => {
2453
- b || (X.value = "", _.value = "", c());
2453
+ b || (X.value = "", D.value = "", c());
2454
2454
  }
2455
2455
  );
2456
2456
  const G = () => {
2457
- o?.disconnect(), o = null, !(!d(n.triggerWidth) || !r.value) && (o = new ResizeObserver(() => {
2457
+ s?.disconnect(), s = null, !(!d(n.triggerWidth) || !r.value) && (s = new ResizeObserver(() => {
2458
2458
  g();
2459
- }), o.observe(r.value));
2459
+ }), s.observe(r.value));
2460
2460
  };
2461
2461
  le(
2462
2462
  () => n.triggerWidth,
2463
2463
  () => {
2464
2464
  d(n.triggerWidth) ? ge(() => {
2465
2465
  g(), G();
2466
- }) : (l.value = void 0, o?.disconnect(), o = null);
2466
+ }) : (l.value = void 0, s?.disconnect(), s = null);
2467
2467
  }
2468
2468
  ), Ne(() => {
2469
2469
  d(n.triggerWidth) && ge(() => {
2470
2470
  g(), G();
2471
2471
  });
2472
2472
  }), Le(() => {
2473
- c(), o?.disconnect();
2473
+ c(), s?.disconnect();
2474
2474
  });
2475
- const A = (b) => {
2476
- i("filter-input", String(b ?? ""));
2477
- }, M = () => {
2478
- _.value = "", c(), i("filter-clear");
2475
+ const W = (b) => {
2476
+ a("filter-input", String(b ?? ""));
2477
+ }, I = () => {
2478
+ D.value = "", c(), a("filter-clear");
2479
2479
  };
2480
2480
  Nt(Un, {
2481
2481
  modelValue: p(() => n.modelValue),
2482
2482
  multiple: p(() => !!n.multiple),
2483
2483
  disabled: p(() => !!n.disabled),
2484
2484
  selectOption: Y,
2485
- isOptionSelected: I,
2486
- registerOption: R,
2485
+ isOptionSelected: L,
2486
+ registerOption: A,
2487
2487
  filterQuery: se
2488
2488
  });
2489
- const L = (b) => typeof b == "number" ? `${b}px` : b, F = p(() => {
2490
- if (n.popperWidth) return L(n.popperWidth);
2489
+ const R = (b) => typeof b == "number" ? `${b}px` : b, F = p(() => {
2490
+ if (n.popperWidth) return R(n.popperWidth);
2491
2491
  const b = n.triggerWidth;
2492
2492
  return d(b) ? l.value : typeof b == "number" ? b + 8 : `calc(${b} + 8px)`;
2493
2493
  }), J = p(() => {
2494
2494
  const b = F.value;
2495
2495
  if (!(b == null || b === ""))
2496
2496
  return typeof b == "number" ? `${b - 12}px` : `calc(${b} - 12px)`;
2497
- }), f = p(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), $ = p(() => ({
2498
- width: L(n.triggerWidth)
2499
- })), D = p(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ee = V(0), ce = (b) => {
2497
+ }), f = p(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), S = p(() => ({
2498
+ width: R(n.triggerWidth)
2499
+ })), M = p(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ee = B(0), ce = (b) => {
2500
2500
  ee.value = b.scrollTop;
2501
2501
  };
2502
- return (b, ie) => (u(), h("div", {
2502
+ return (b, ie) => (u(), m("div", {
2503
2503
  class: q(["cregis-select", { "is-disabled": e.disabled, "is-percent-width": d(e.triggerWidth) }])
2504
2504
  }, [
2505
2505
  ne(Mt, {
2506
2506
  ref_key: "popoverRef",
2507
- ref: a,
2507
+ ref: i,
2508
2508
  "preserve-content-mount": "",
2509
2509
  "popper-width": F.value,
2510
2510
  placement: f.value,
2511
2511
  disabled: !!e.disabled,
2512
2512
  padding: 0,
2513
2513
  "max-popper-height": e.maxPopperHeight,
2514
- onVisibleChange: m,
2514
+ onVisibleChange: h,
2515
2515
  onScroll: ce
2516
2516
  }, {
2517
2517
  reference: ve(() => [
2518
- S("div", {
2518
+ C("div", {
2519
2519
  ref_key: "triggerRef",
2520
2520
  ref: r,
2521
2521
  class: q(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
2522
- style: Z($.value)
2522
+ style: Z(S.value)
2523
2523
  }, [
2524
- S("div", {
2524
+ C("div", {
2525
2525
  class: q(["cregis-select__trigger-label", { "is-multiple": e.multiple }])
2526
2526
  }, [
2527
- P.value ? ae(b.$slots, "label", {
2527
+ k.value ? ae(b.$slots, "label", {
2528
2528
  key: 0,
2529
2529
  modelValue: e.modelValue,
2530
- displayText: B.value,
2531
- selectedCount: T.value,
2530
+ displayText: E.value,
2531
+ selectedCount: x.value,
2532
2532
  placeholder: e.placeholder,
2533
- hasSelection: P.value
2533
+ hasSelection: k.value
2534
2534
  }, () => [
2535
- S("p", Or, H(B.value), 1),
2536
- e.multiple ? (u(), h("span", Tr, H(T.value), 1)) : N("", !0)
2537
- ]) : (u(), h("p", zr, H(e.placeholder), 1))
2535
+ C("p", Or, _(E.value), 1),
2536
+ e.multiple ? (u(), m("span", Tr, _(x.value), 1)) : j("", !0)
2537
+ ]) : (u(), m("p", zr, _(e.placeholder), 1))
2538
2538
  ], 2),
2539
- S("span", {
2540
- class: q(["cregis-select__icon", { "is-open": s.value }])
2539
+ C("span", {
2540
+ class: q(["cregis-select__icon", { "is-open": o.value }])
2541
2541
  }, [
2542
2542
  ne(U(Ft), {
2543
- size: D.value,
2543
+ size: M.value,
2544
2544
  color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
2545
2545
  }, null, 8, ["size", "color"])
2546
2546
  ], 2)
2547
2547
  ], 6)
2548
2548
  ]),
2549
2549
  default: ve(() => [
2550
- S("div", {
2551
- class: q(["cregis-select__dropdown", { "is-empty": k.value }])
2550
+ C("div", {
2551
+ class: q(["cregis-select__dropdown", { "is-empty": O.value }])
2552
2552
  }, [
2553
- k.value ? (u(), h("p", Er, H(e.noDataText || U(he)("common.noData")), 1)) : N("", !0),
2554
- e.filterable && !k.value ? (u(), h("div", {
2553
+ O.value ? (u(), m("p", Er, _(e.noDataText || U(he)("common.noData")), 1)) : j("", !0),
2554
+ e.filterable && !O.value ? (u(), m("div", {
2555
2555
  key: 1,
2556
2556
  class: q(["cregis-select__dropdown-filter", { "backdrop-fixed-header": ee.value > 10 }])
2557
2557
  }, [
@@ -2562,17 +2562,17 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2562
2562
  width: J.value,
2563
2563
  size: "small",
2564
2564
  clearable: "",
2565
- onInput: A,
2566
- onClear: M
2565
+ onInput: W,
2566
+ onClear: I
2567
2567
  }, {
2568
2568
  prefix: ve(() => [
2569
2569
  ne(U(On), { size: "14px" })
2570
2570
  ]),
2571
2571
  _: 1
2572
2572
  }, 8, ["modelValue", "placeholder", "width"])
2573
- ], 2)) : N("", !0),
2574
- te.value ? (u(), h("p", Rr, H(e.noMatchText || U(he)("select.noMatch")), 1)) : N("", !0),
2575
- S("div", Lr, [
2573
+ ], 2)) : j("", !0),
2574
+ te.value ? (u(), m("p", Rr, _(e.noMatchText || U(he)("select.noMatch")), 1)) : j("", !0),
2575
+ C("div", Lr, [
2576
2576
  ae(b.$slots, "default")
2577
2577
  ])
2578
2578
  ], 2)
@@ -2581,7 +2581,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2581
2581
  }, 8, ["popper-width", "placement", "disabled", "max-popper-height"])
2582
2582
  ], 2));
2583
2583
  }
2584
- }), Br = ["aria-selected"], Pr = {
2584
+ }), Br = ["aria-selected"], Vr = {
2585
2585
  key: 1,
2586
2586
  class: "cregis-select__option-content"
2587
2587
  }, Yl = /* @__PURE__ */ oe({
@@ -2595,45 +2595,45 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2595
2595
  },
2596
2596
  setup(e) {
2597
2597
  const t = e, n = jt(Un, null);
2598
- let i;
2599
- const a = () => t.filterText ?? t.label, r = () => {
2600
- i?.(), n && (i = n.registerOption(t.value, t.label, a()));
2598
+ let a;
2599
+ const i = () => t.filterText ?? t.label, r = () => {
2600
+ a?.(), n && (a = n.registerOption(t.value, t.label, i()));
2601
2601
  };
2602
- Ne(r), Le(() => i?.()), le(() => [t.value, t.label, t.filterText], r);
2603
- const s = p(() => n?.multiple.value ?? !1), l = p(() => n?.isOptionSelected(t.value) ?? !1), o = () => {
2602
+ Ne(r), Le(() => a?.()), le(() => [t.value, t.label, t.filterText], r);
2603
+ const o = p(() => n?.multiple.value ?? !1), l = p(() => n?.isOptionSelected(t.value) ?? !1), s = () => {
2604
2604
  t.disabled || n?.disabled.value || n?.selectOption(t.value, t.label);
2605
2605
  }, v = () => {
2606
- o();
2606
+ s();
2607
2607
  }, c = p(() => n?.filterQuery?.value ?? ""), d = p(() => {
2608
2608
  const g = c.value;
2609
- return g ? a().toLowerCase().includes(g) : !0;
2609
+ return g ? i().toLowerCase().includes(g) : !0;
2610
2610
  });
2611
- return (g, m) => _e((u(), h("div", {
2611
+ return (g, h) => _e((u(), m("div", {
2612
2612
  class: q(["cregis-select__option", {
2613
- "is-selected": l.value && !s.value,
2613
+ "is-selected": l.value && !o.value,
2614
2614
  "is-disabled": e.disabled,
2615
- "cregis-select__option--multiple": s.value
2615
+ "cregis-select__option--multiple": o.value
2616
2616
  }]),
2617
2617
  role: "option",
2618
2618
  "aria-selected": l.value,
2619
- onClick: o
2619
+ onClick: s
2620
2620
  }, [
2621
- s.value ? (u(), de(qt, {
2621
+ o.value ? (u(), de(qt, {
2622
2622
  key: 0,
2623
2623
  "model-value": l.value,
2624
2624
  disabled: e.disabled || !!U(n)?.disabled.value,
2625
- onClick: m[0] || (m[0] = Fe(() => {
2625
+ onClick: h[0] || (h[0] = Fe(() => {
2626
2626
  }, ["stop"])),
2627
2627
  "onUpdate:modelValue": v
2628
- }, null, 8, ["model-value", "disabled"])) : N("", !0),
2629
- s.value ? (u(), h("div", Pr, [
2628
+ }, null, 8, ["model-value", "disabled"])) : j("", !0),
2629
+ o.value ? (u(), m("div", Vr, [
2630
2630
  ae(g.$slots, "default", {
2631
2631
  label: e.label,
2632
2632
  value: e.value,
2633
2633
  disabled: !!e.disabled,
2634
2634
  selected: l.value
2635
2635
  }, () => [
2636
- ye(H(e.label), 1)
2636
+ ye(_(e.label), 1)
2637
2637
  ])
2638
2638
  ])) : ae(g.$slots, "default", {
2639
2639
  key: 2,
@@ -2642,13 +2642,13 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2642
2642
  disabled: !!e.disabled,
2643
2643
  selected: l.value
2644
2644
  }, () => [
2645
- ye(H(e.label), 1)
2645
+ ye(_(e.label), 1)
2646
2646
  ])
2647
2647
  ], 10, Br)), [
2648
2648
  [St, d.value]
2649
2649
  ]);
2650
2650
  }
2651
- }), Vr = { class: "cregis-cascader__trigger-label" }, Wr = { class: "cregis-cascader__selected" }, Ar = {
2651
+ }), Pr = { class: "cregis-cascader__trigger-label" }, Wr = { class: "cregis-cascader__selected" }, Ar = {
2652
2652
  key: 1,
2653
2653
  class: "cregis-cascader__placeholder"
2654
2654
  }, Dr = {
@@ -2688,49 +2688,49 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2688
2688
  },
2689
2689
  emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
2690
2690
  setup(e, { emit: t }) {
2691
- const n = e, i = t, a = V(null), r = V(!1), s = V(null), l = /* @__PURE__ */ new Map(), o = (w, K) => {
2691
+ const n = e, a = t, i = B(null), r = B(!1), o = B(null), l = /* @__PURE__ */ new Map(), s = (w, K) => {
2692
2692
  K && typeof K == "object" && "close" in K && typeof K.close == "function" ? l.set(w, K) : l.delete(w);
2693
2693
  }, v = () => {
2694
- l.forEach((w) => w.close()), s.value = null;
2694
+ l.forEach((w) => w.close()), o.value = null;
2695
2695
  }, c = (w, K) => {
2696
2696
  if (K) {
2697
- s.value = w;
2697
+ o.value = w;
2698
2698
  return;
2699
2699
  }
2700
- s.value === w && (s.value = null);
2700
+ o.value === w && (o.value = null);
2701
2701
  };
2702
2702
  let d = null;
2703
2703
  const g = () => {
2704
2704
  d !== null && (clearTimeout(d), d = null);
2705
- }, m = V(""), y = V(""), C = p(() => y.value.trim().toLowerCase()), E = () => {
2705
+ }, h = B(""), y = B(""), $ = p(() => y.value.trim().toLowerCase()), z = () => {
2706
2706
  n.filterable && (g(), d = setTimeout(() => {
2707
- y.value = m.value.trim(), d = null;
2707
+ y.value = h.value.trim(), d = null;
2708
2708
  }, n.filterDebounceMs));
2709
2709
  };
2710
- le(m, () => {
2711
- n.filterable && E();
2710
+ le(h, () => {
2711
+ n.filterable && z();
2712
2712
  }), le(
2713
2713
  () => n.filterable,
2714
2714
  (w) => {
2715
- w || (m.value = "", y.value = "", g());
2715
+ w || (h.value = "", y.value = "", g());
2716
2716
  }
2717
2717
  ), Le(() => g());
2718
- const x = (w) => {
2719
- i("filter-input", String(w ?? ""));
2720
- }, z = () => {
2721
- y.value = "", g(), i("filter-clear");
2722
- }, R = (w) => (w.filterText ?? w.label).toLowerCase(), k = (w) => {
2723
- const K = C.value;
2724
- return !K || R(w).includes(K) ? !0 : (w.children ?? []).some((be) => R(be).includes(K));
2725
- }, P = (w, K) => {
2726
- const j = C.value;
2727
- return !j || R(w).includes(j) ? !0 : R(K).includes(j);
2728
- }, T = p(() => n.options.filter((w) => k(w))), B = p(() => n.options.length === 0), I = p(() => (C.value, n.options.some((w) => k(w)))), Y = p(
2729
- () => n.filterable && !!y.value.trim() && !I.value && !B.value
2718
+ const V = (w) => {
2719
+ a("filter-input", String(w ?? ""));
2720
+ }, N = () => {
2721
+ y.value = "", g(), a("filter-clear");
2722
+ }, A = (w) => (w.filterText ?? w.label).toLowerCase(), O = (w) => {
2723
+ const K = $.value;
2724
+ return !K || A(w).includes(K) ? !0 : (w.children ?? []).some((be) => A(be).includes(K));
2725
+ }, k = (w, K) => {
2726
+ const H = $.value;
2727
+ return !H || A(w).includes(H) ? !0 : A(K).includes(H);
2728
+ }, x = p(() => n.options.filter((w) => O(w))), E = p(() => n.options.length === 0), L = p(() => ($.value, n.options.some((w) => O(w)))), Y = p(
2729
+ () => n.filterable && !!y.value.trim() && !L.value && !E.value
2730
2730
  ), X = (w) => {
2731
- r.value = w, i("visible-change", w), w || v(), !w && n.filterable && (m.value = "", y.value = "", g());
2732
- }, _ = V(null), se = (w) => {
2733
- const K = n.options.find((j) => j.value === w);
2731
+ r.value = w, a("visible-change", w), w || v(), !w && n.filterable && (h.value = "", y.value = "", g());
2732
+ }, D = B(null), se = (w) => {
2733
+ const K = n.options.find((H) => H.value === w);
2734
2734
  if (K)
2735
2735
  return {
2736
2736
  level: 1,
@@ -2738,13 +2738,13 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2738
2738
  primary: K,
2739
2739
  sub: void 0
2740
2740
  };
2741
- for (const j of n.options) {
2742
- const be = j.children?.find((me) => me.value === w);
2741
+ for (const H of n.options) {
2742
+ const be = H.children?.find((me) => me.value === w);
2743
2743
  if (be)
2744
2744
  return {
2745
2745
  level: 2,
2746
2746
  label: be.label,
2747
- primary: j,
2747
+ primary: H,
2748
2748
  sub: be
2749
2749
  };
2750
2750
  }
@@ -2761,30 +2761,30 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2761
2761
  label: "",
2762
2762
  primary: void 0,
2763
2763
  sub: void 0
2764
- } : _.value !== null && _.value.value === w ? {
2765
- level: _.value.level,
2766
- label: _.value.label,
2767
- primary: _.value.primary,
2768
- sub: _.value.sub
2764
+ } : D.value !== null && D.value.value === w ? {
2765
+ level: D.value.level,
2766
+ label: D.value.label,
2767
+ primary: D.value.primary,
2768
+ sub: D.value.sub
2769
2769
  } : se(w);
2770
2770
  });
2771
2771
  le(
2772
2772
  () => n.modelValue,
2773
2773
  (w) => {
2774
2774
  if (w == null || w === "") {
2775
- _.value = null;
2775
+ D.value = null;
2776
2776
  return;
2777
2777
  }
2778
- _.value !== null && _.value.value !== w && (_.value = null);
2778
+ D.value !== null && D.value.value !== w && (D.value = null);
2779
2779
  }
2780
2780
  );
2781
- const te = p(() => Q.value.level > 0), pe = p(() => Q.value.label), G = p(() => n.modelValue), A = p(() => pe.value), M = p(() => Q.value.level), L = p(() => Q.value.primary), F = p(() => Q.value.sub), J = (w) => (w.children?.length ?? 0) > 0, f = (w) => n.modelValue === w, $ = (w) => {
2781
+ const te = p(() => Q.value.level > 0), pe = p(() => Q.value.label), G = p(() => n.modelValue), W = p(() => pe.value), I = p(() => Q.value.level), R = p(() => Q.value.primary), F = p(() => Q.value.sub), J = (w) => (w.children?.length ?? 0) > 0, f = (w) => n.modelValue === w, S = (w) => {
2782
2782
  const K = n.modelValue;
2783
- return K == null || K === "" ? !1 : (w.children ?? []).some((j) => j.value === K);
2784
- }, D = (w, K) => {
2785
- n.disabled || w.disabled || K.disabled || (_.value = { value: K.value, label: K.label, level: 2, primary: w, sub: K }, i("update:modelValue", K.value), i("change", K.value), v(), a.value?.close());
2783
+ return K == null || K === "" ? !1 : (w.children ?? []).some((H) => H.value === K);
2784
+ }, M = (w, K) => {
2785
+ n.disabled || w.disabled || K.disabled || (D.value = { value: K.value, label: K.label, level: 2, primary: w, sub: K }, a("update:modelValue", K.value), a("change", K.value), v(), i.value?.close());
2786
2786
  }, ee = (w) => {
2787
- n.disabled || w.disabled || J(w) || (_.value = { value: w.value, label: w.label, level: 1, primary: w }, i("update:modelValue", w.value), i("change", w.value), v(), a.value?.close());
2787
+ n.disabled || w.disabled || J(w) || (D.value = { value: w.value, label: w.label, level: 1, primary: w }, a("update:modelValue", w.value), a("change", w.value), v(), i.value?.close());
2788
2788
  }, ce = (w) => typeof w == "number" ? `${w}px` : w, b = p(() => {
2789
2789
  if (n.popperWidth !== void 0 && n.popperWidth !== null && n.popperWidth !== "")
2790
2790
  return ce(n.popperWidth);
@@ -2793,21 +2793,21 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2793
2793
  }), ie = p(() => ce(n.subPopperWidth)), re = p(() => typeof b.value == "number" ? `${b.value - 12}px` : `calc(${b.value} - 12px)`), ke = p(() => ({
2794
2794
  maxHeight: ce(n.maxPopperHeight),
2795
2795
  overflowY: "auto"
2796
- })), De = { strategy: "fixed" }, O = p(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), W = p(() => ({
2796
+ })), De = { strategy: "fixed" }, T = p(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), P = p(() => ({
2797
2797
  width: ce(n.triggerWidth)
2798
- })), fe = p(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ue = V(0), Ve = (w) => {
2798
+ })), fe = p(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ue = B(0), Pe = (w) => {
2799
2799
  const K = w.target;
2800
2800
  ue.value = K.scrollTop;
2801
2801
  }, dt = [-16, -8];
2802
- return (w, K) => (u(), h("div", {
2802
+ return (w, K) => (u(), m("div", {
2803
2803
  class: q(["cregis-cascader", { "is-disabled": e.disabled }])
2804
2804
  }, [
2805
2805
  ne(Mt, {
2806
2806
  ref_key: "popoverRef",
2807
- ref: a,
2807
+ ref: i,
2808
2808
  "preserve-content-mount": "",
2809
2809
  "popper-width": b.value,
2810
- placement: O.value,
2810
+ placement: T.value,
2811
2811
  offset: e.offset,
2812
2812
  disabled: !!e.disabled,
2813
2813
  padding: 0,
@@ -2817,34 +2817,34 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2817
2817
  w.$slots.trigger ? ae(w.$slots, "trigger", {
2818
2818
  key: 0,
2819
2819
  modelValue: G.value,
2820
- selectedLabel: A.value,
2821
- level: M.value,
2822
- primaryOption: L.value,
2820
+ selectedLabel: W.value,
2821
+ level: I.value,
2822
+ primaryOption: R.value,
2823
2823
  subOption: F.value,
2824
2824
  placeholder: e.placeholder,
2825
2825
  hasSelection: te.value,
2826
2826
  open: r.value,
2827
2827
  disabled: !!e.disabled
2828
- }) : (u(), h("div", {
2828
+ }) : (u(), m("div", {
2829
2829
  key: 1,
2830
2830
  class: q(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
2831
- style: Z(W.value)
2831
+ style: Z(P.value)
2832
2832
  }, [
2833
- S("div", Vr, [
2833
+ C("div", Pr, [
2834
2834
  te.value ? ae(w.$slots, "label", {
2835
2835
  key: 0,
2836
2836
  modelValue: G.value,
2837
- selectedLabel: A.value,
2838
- level: M.value,
2839
- primaryOption: L.value,
2837
+ selectedLabel: W.value,
2838
+ level: I.value,
2839
+ primaryOption: R.value,
2840
2840
  subOption: F.value,
2841
2841
  placeholder: e.placeholder,
2842
2842
  hasSelection: te.value
2843
2843
  }, () => [
2844
- S("p", Wr, H(pe.value), 1)
2845
- ]) : (u(), h("p", Ar, H(e.placeholder), 1))
2844
+ C("p", Wr, _(pe.value), 1)
2845
+ ]) : (u(), m("p", Ar, _(e.placeholder), 1))
2846
2846
  ]),
2847
- S("span", {
2847
+ C("span", {
2848
2848
  class: q(["cregis-cascader__icon", { "is-open": r.value }])
2849
2849
  }, [
2850
2850
  ne(U(Ft), {
@@ -2855,74 +2855,74 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2855
2855
  ], 6))
2856
2856
  ]),
2857
2857
  default: ve(() => [
2858
- S("div", {
2859
- class: q(["cregis-cascader__dropdown", { "is-empty": B.value }]),
2858
+ C("div", {
2859
+ class: q(["cregis-cascader__dropdown", { "is-empty": E.value }]),
2860
2860
  style: Z(ke.value),
2861
- onScroll: Ve
2861
+ onScroll: Pe
2862
2862
  }, [
2863
- B.value ? (u(), h("p", Dr, H(e.noDataText || U(he)("common.noData")), 1)) : N("", !0),
2864
- e.filterable && !B.value ? (u(), h("div", {
2863
+ E.value ? (u(), m("p", Dr, _(e.noDataText || U(he)("common.noData")), 1)) : j("", !0),
2864
+ e.filterable && !E.value ? (u(), m("div", {
2865
2865
  key: 1,
2866
2866
  class: q(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": ue.value > 10 }])
2867
2867
  }, [
2868
2868
  ne(zn, {
2869
- modelValue: m.value,
2870
- "onUpdate:modelValue": K[0] || (K[0] = (j) => m.value = j),
2869
+ modelValue: h.value,
2870
+ "onUpdate:modelValue": K[0] || (K[0] = (H) => h.value = H),
2871
2871
  placeholder: e.searchText || U(he)("select.search"),
2872
2872
  width: re.value,
2873
2873
  size: "small",
2874
2874
  clearable: "",
2875
- onInput: x,
2876
- onClear: z
2875
+ onInput: V,
2876
+ onClear: N
2877
2877
  }, {
2878
2878
  prefix: ve(() => [
2879
2879
  ne(U(On), { size: "14px" })
2880
2880
  ]),
2881
2881
  _: 1
2882
2882
  }, 8, ["modelValue", "placeholder", "width"])
2883
- ], 2)) : N("", !0),
2884
- Y.value ? (u(), h("p", Mr, H(e.noMatchText || U(he)("cascader.noMatch")), 1)) : N("", !0),
2885
- S("ul", Ir, [
2886
- (u(!0), h(ze, null, We(T.value, (j, be) => (u(), h("li", {
2887
- key: j.value,
2888
- class: q(["cregis-cascader__dropdown-item", { "is-disabled": j.disabled, "is-sub-open": s.value === j.value }])
2883
+ ], 2)) : j("", !0),
2884
+ Y.value ? (u(), m("p", Mr, _(e.noMatchText || U(he)("cascader.noMatch")), 1)) : j("", !0),
2885
+ C("ul", Ir, [
2886
+ (u(!0), m(ze, null, We(x.value, (H, be) => (u(), m("li", {
2887
+ key: H.value,
2888
+ class: q(["cregis-cascader__dropdown-item", { "is-disabled": H.disabled, "is-sub-open": o.value === H.value }])
2889
2889
  }, [
2890
- J(j) ? (u(), h("div", Nr, [
2890
+ J(H) ? (u(), m("div", Nr, [
2891
2891
  ne(Mt, {
2892
2892
  ref_for: !0,
2893
- ref: (me) => o(j.value, me),
2893
+ ref: (me) => s(H.value, me),
2894
2894
  trigger: "hover",
2895
2895
  placement: "right-start",
2896
2896
  offset: dt,
2897
2897
  "popover-options": De,
2898
2898
  "popper-width": ie.value,
2899
2899
  padding: 4,
2900
- disabled: !!j.disabled || !!e.disabled,
2901
- onVisibleChange: (me) => c(j.value, me)
2900
+ disabled: !!H.disabled || !!e.disabled,
2901
+ onVisibleChange: (me) => c(H.value, me)
2902
2902
  }, {
2903
2903
  reference: ve(() => [
2904
- S("div", {
2904
+ C("div", {
2905
2905
  class: q(["cregis-cascader__suboption-trigger", {
2906
- "is-disabled": j.disabled,
2907
- "is-parent-active": $(j)
2906
+ "is-disabled": H.disabled,
2907
+ "is-parent-active": S(H)
2908
2908
  }])
2909
2909
  }, [
2910
2910
  ae(w.$slots, "option", {
2911
2911
  modelValue: G.value,
2912
- selectedLabel: A.value,
2913
- level: M.value,
2914
- primaryOption: L.value,
2912
+ selectedLabel: W.value,
2913
+ level: I.value,
2914
+ primaryOption: R.value,
2915
2915
  subOption: F.value,
2916
- option: j,
2916
+ option: H,
2917
2917
  index: be,
2918
- disabled: !!j.disabled,
2919
- selected: f(j.value),
2920
- isParentOfSelected: $(j)
2918
+ disabled: !!H.disabled,
2919
+ selected: f(H.value),
2920
+ isParentOfSelected: S(H)
2921
2921
  }, () => [
2922
- S("p", null, H(j.label), 1)
2922
+ C("p", null, _(H.label), 1)
2923
2923
  ]),
2924
- S("div", jr, [
2925
- e.showSubOptionAmount ? (u(), h("div", Hr, H(j.children?.length ?? 0), 1)) : N("", !0),
2924
+ C("div", jr, [
2925
+ e.showSubOptionAmount ? (u(), m("div", Hr, _(H.children?.length ?? 0), 1)) : j("", !0),
2926
2926
  ne(U(na), {
2927
2927
  size: "14px",
2928
2928
  color: "currentColor"
@@ -2931,56 +2931,56 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
2931
2931
  ], 2)
2932
2932
  ]),
2933
2933
  default: ve(() => [
2934
- S("div", _r, [
2935
- (u(!0), h(ze, null, We(j.children, (me, ft) => _e((u(), h("div", {
2934
+ C("div", _r, [
2935
+ (u(!0), m(ze, null, We(H.children, (me, ft) => _e((u(), m("div", {
2936
2936
  key: me.value,
2937
2937
  class: q(["cregis-cascader__suboption-row", {
2938
2938
  "is-active": f(me.value),
2939
2939
  "is-disabled": me.disabled
2940
2940
  }]),
2941
2941
  role: "menuitem",
2942
- onClick: (vt) => D(j, me)
2942
+ onClick: (vt) => M(H, me)
2943
2943
  }, [
2944
2944
  ae(w.$slots, "subOption", {
2945
2945
  modelValue: G.value,
2946
- selectedLabel: A.value,
2947
- level: M.value,
2948
- primaryOption: L.value,
2946
+ selectedLabel: W.value,
2947
+ level: I.value,
2948
+ primaryOption: R.value,
2949
2949
  subOption: F.value,
2950
2950
  option: me,
2951
2951
  index: ft,
2952
- parent: j,
2952
+ parent: H,
2953
2953
  parentIndex: be,
2954
2954
  selected: f(me.value),
2955
2955
  disabled: !!me.disabled
2956
2956
  }, () => [
2957
- ye(H(me.label), 1)
2957
+ ye(_(me.label), 1)
2958
2958
  ])
2959
2959
  ], 10, Fr)), [
2960
- [St, P(j, me)]
2960
+ [St, k(H, me)]
2961
2961
  ])), 128))
2962
2962
  ])
2963
2963
  ]),
2964
2964
  _: 2
2965
2965
  }, 1032, ["popper-width", "disabled", "onVisibleChange"])
2966
- ])) : (u(), h("div", {
2966
+ ])) : (u(), m("div", {
2967
2967
  key: 1,
2968
2968
  class: "cregis-cascader__leaf-only",
2969
- onClick: (me) => ee(j)
2969
+ onClick: (me) => ee(H)
2970
2970
  }, [
2971
2971
  ae(w.$slots, "option", {
2972
2972
  modelValue: G.value,
2973
- selectedLabel: A.value,
2974
- level: M.value,
2975
- primaryOption: L.value,
2973
+ selectedLabel: W.value,
2974
+ level: I.value,
2975
+ primaryOption: R.value,
2976
2976
  subOption: F.value,
2977
- option: j,
2977
+ option: H,
2978
2978
  index: be,
2979
- disabled: !!j.disabled,
2980
- selected: f(j.value),
2979
+ disabled: !!H.disabled,
2980
+ selected: f(H.value),
2981
2981
  isParentOfSelected: !1
2982
2982
  }, () => [
2983
- S("p", null, H(j.label), 1)
2983
+ C("p", null, _(H.label), 1)
2984
2984
  ])
2985
2985
  ], 8, Ur))
2986
2986
  ], 2))), 128))
@@ -3014,29 +3014,29 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
3014
3014
  maxWidth: typeof t.maxWidth == "number" ? `${t.maxWidth}px` : t.maxWidth
3015
3015
  };
3016
3016
  });
3017
- return (i, a) => e.palette ? (u(), h("div", {
3017
+ return (a, i) => e.palette ? (u(), m("div", {
3018
3018
  key: 0,
3019
3019
  class: q(["cregis-tag cregis-tag--palette", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`, { "cregis-tag--ellipsis": e.maxWidth != null }]]),
3020
3020
  style: Z(n.value)
3021
3021
  }, [
3022
- e.maxWidth != null ? (u(), h("span", qr, [
3023
- ae(i.$slots, "default", {}, () => [
3024
- ye(H(e.text), 1)
3022
+ e.maxWidth != null ? (u(), m("span", qr, [
3023
+ ae(a.$slots, "default", {}, () => [
3024
+ ye(_(e.text), 1)
3025
3025
  ])
3026
- ])) : ae(i.$slots, "default", { key: 1 }, () => [
3027
- ye(H(e.text), 1)
3026
+ ])) : ae(a.$slots, "default", { key: 1 }, () => [
3027
+ ye(_(e.text), 1)
3028
3028
  ])
3029
- ], 6)) : (u(), h("div", {
3029
+ ], 6)) : (u(), m("div", {
3030
3030
  key: 1,
3031
3031
  class: q(["cregis-tag", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`, { "cregis-tag--ellipsis": e.maxWidth != null }]]),
3032
3032
  style: Z(n.value)
3033
3033
  }, [
3034
- e.maxWidth != null ? (u(), h("span", Yr, [
3035
- ae(i.$slots, "default", {}, () => [
3036
- ye(H(e.text), 1)
3034
+ e.maxWidth != null ? (u(), m("span", Yr, [
3035
+ ae(a.$slots, "default", {}, () => [
3036
+ ye(_(e.text), 1)
3037
3037
  ])
3038
- ])) : ae(i.$slots, "default", { key: 1 }, () => [
3039
- ye(H(e.text), 1)
3038
+ ])) : ae(a.$slots, "default", { key: 1 }, () => [
3039
+ ye(_(e.text), 1)
3040
3040
  ])
3041
3041
  ], 6));
3042
3042
  }
@@ -3053,34 +3053,34 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
3053
3053
  },
3054
3054
  emits: ["update:modelValue", "change"],
3055
3055
  setup(e, { emit: t }) {
3056
- const n = e, i = t, a = V(!1), r = p(() => n.modelValue === n.activeValue), s = async () => {
3057
- if (n.disabled || a.value) return;
3056
+ const n = e, a = t, i = B(!1), r = p(() => n.modelValue === n.activeValue), o = async () => {
3057
+ if (n.disabled || i.value) return;
3058
3058
  const l = r.value ? n.inactiveValue : n.activeValue;
3059
3059
  if (n.beforeChange) {
3060
- a.value = !0;
3060
+ i.value = !0;
3061
3061
  try {
3062
3062
  if (!await n.beforeChange()) return;
3063
3063
  } catch {
3064
3064
  return;
3065
3065
  } finally {
3066
- a.value = !1;
3066
+ i.value = !1;
3067
3067
  }
3068
3068
  }
3069
- i("update:modelValue", l);
3069
+ a("update:modelValue", l);
3070
3070
  };
3071
3071
  return le(
3072
3072
  () => n.modelValue,
3073
3073
  (l) => {
3074
- i("change", l);
3074
+ a("change", l);
3075
3075
  }
3076
- ), (l, o) => (u(), h("div", {
3076
+ ), (l, s) => (u(), m("div", {
3077
3077
  class: q(["cregis-switch", [
3078
3078
  `cregis-switch--${e.size}`,
3079
- { "is-checked": r.value, "is-disabled": e.disabled || a.value }
3079
+ { "is-checked": r.value, "is-disabled": e.disabled || i.value }
3080
3080
  ]]),
3081
- onClick: s
3082
- }, [...o[0] || (o[0] = [
3083
- S("div", { class: "cregis-switch__circle" }, null, -1)
3081
+ onClick: o
3082
+ }, [...s[0] || (s[0] = [
3083
+ C("div", { class: "cregis-switch__circle" }, null, -1)
3084
3084
  ])], 2));
3085
3085
  }
3086
3086
  }), Xr = { class: "cregis-badge__wrapper" }, Zl = /* @__PURE__ */ oe({
@@ -3098,16 +3098,16 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
3098
3098
  const t = {
3099
3099
  normal: [-8, -10],
3100
3100
  dot: [-2, -2]
3101
- }, n = e, i = p(() => n.offset ?? (n.isDot ? t.dot : t.normal)), a = p(() => ({
3102
- top: `${i.value[0]}px`,
3103
- right: `${i.value[1]}px`
3101
+ }, n = e, a = p(() => n.offset ?? (n.isDot ? t.dot : t.normal)), i = p(() => ({
3102
+ top: `${a.value[0]}px`,
3103
+ right: `${a.value[1]}px`
3104
3104
  }));
3105
- return (r, s) => (u(), h("div", Xr, [
3106
- e.hidden ? N("", !0) : (u(), h("div", {
3105
+ return (r, o) => (u(), m("div", Xr, [
3106
+ e.hidden ? j("", !0) : (u(), m("div", {
3107
3107
  key: 0,
3108
3108
  class: q(["cregis-badge", [`cregis-badge--${e.type}`, { "cregis-badge--dot": e.isDot }]]),
3109
- style: Z(a.value)
3110
- }, H(e.isDot ? "" : Number(e.value) > e.max ? `${e.max}+` : e.value), 7)),
3109
+ style: Z(i.value)
3110
+ }, _(e.isDot ? "" : Number(e.value) > e.max ? `${e.max}+` : e.value), 7)),
3111
3111
  ae(r.$slots, "default")
3112
3112
  ]));
3113
3113
  }
@@ -3128,98 +3128,106 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
3128
3128
  onChange: {}
3129
3129
  },
3130
3130
  emits: ["update:modelValue"],
3131
- setup(e, { emit: t }) {
3132
- const n = e, i = t, a = V(0), r = V(""), s = ["http:", "https:", "blob:"], l = (x) => {
3133
- if (!x) return !1;
3134
- if (x.toLowerCase().startsWith("data:image/")) return !0;
3131
+ setup(e, { expose: t, emit: n }) {
3132
+ const a = e, i = n, r = B(0), o = B(""), l = B(null), s = ["http:", "https:", "blob:"], v = (k) => {
3133
+ if (!k) return !1;
3134
+ if (k.toLowerCase().startsWith("data:image/")) return !0;
3135
3135
  try {
3136
- const { protocol: z } = new URL(x, window.location.origin);
3137
- return s.includes(z);
3136
+ const { protocol: x } = new URL(k, window.location.origin);
3137
+ return s.includes(x);
3138
3138
  } catch {
3139
- return x.startsWith("/") && !x.startsWith("//");
3139
+ return k.startsWith("/") && !k.startsWith("//");
3140
3140
  }
3141
- }, o = p(() => l(r.value) ? r.value : ""), v = p(() => ({
3142
- width: typeof n.width == "number" ? `${n.width}px` : n.width,
3143
- height: typeof n.width == "number" ? `${n.width}px` : n.width
3144
- })), c = (x) => {
3145
- const z = x.lastIndexOf(".");
3146
- return z === -1 ? "" : x.slice(z + 1).toLowerCase();
3147
- }, d = (x, z) => {
3148
- const R = z.split(",").map((T) => T.trim()).filter(Boolean);
3149
- if (!R.length) return !0;
3150
- const k = c(x.name), P = x.type.toLowerCase();
3151
- return R.some((T) => {
3152
- const B = T.toLowerCase();
3153
- return B.startsWith(".") ? k === B.slice(1) : B.includes("/") ? B.endsWith("/*") ? P.startsWith(B.slice(0, -1)) : P === B : k === B;
3141
+ }, c = p(() => v(o.value) ? o.value : ""), d = p(() => ({
3142
+ width: typeof a.width == "number" ? `${a.width}px` : a.width,
3143
+ height: typeof a.width == "number" ? `${a.width}px` : a.width
3144
+ })), g = (k) => {
3145
+ const x = k.lastIndexOf(".");
3146
+ return x === -1 ? "" : k.slice(x + 1).toLowerCase();
3147
+ }, h = (k, x) => {
3148
+ const E = x.split(",").map((X) => X.trim()).filter(Boolean);
3149
+ if (!E.length) return !0;
3150
+ const L = g(k.name), Y = k.type.toLowerCase();
3151
+ return E.some((X) => {
3152
+ const D = X.toLowerCase();
3153
+ return D.startsWith(".") ? L === D.slice(1) : D.includes("/") ? D.endsWith("/*") ? Y.startsWith(D.slice(0, -1)) : Y === D : L === D;
3154
3154
  });
3155
- }, g = (x) => {
3156
- x.value = "";
3157
3155
  };
3158
- let m;
3159
- const y = (x) => {
3160
- const z = x.target, R = z.files?.[0];
3161
- if (!R) return;
3162
- if (n.accept && !d(R, n.accept)) {
3163
- cn(n.exceedAcceptTip ?? he("upload.formatError")), g(z);
3156
+ let y;
3157
+ const $ = (k) => {
3158
+ k.value = "";
3159
+ }, z = () => {
3160
+ y && (clearInterval(y), y = void 0);
3161
+ }, V = () => {
3162
+ z(), r.value = 0, o.value = "", l.value && $(l.value), a.modelValue && i("update:modelValue", "");
3163
+ }, N = (k) => {
3164
+ const x = k.target, E = x.files?.[0];
3165
+ if (!E) return;
3166
+ if (a.accept && !h(E, a.accept)) {
3167
+ cn(a.exceedAcceptTip ?? he("upload.formatError")), $(x);
3164
3168
  return;
3165
3169
  }
3166
- if (n.size !== void 0 && R.size > n.size * 1024 * 1024) {
3167
- cn(n.exceedSizeTip ?? he("upload.sizeError", { size: n.size })), g(z);
3170
+ if (a.size !== void 0 && E.size > a.size * 1024 * 1024) {
3171
+ cn(a.exceedSizeTip ?? he("upload.sizeError", { size: a.size })), $(x);
3168
3172
  return;
3169
3173
  }
3170
3174
  i("update:modelValue", "");
3171
- const k = new FormData();
3172
- k.append("file", R, R.name), n.onChange?.(k), m = setInterval(() => {
3173
- a.value += 30, a.value >= 90 && clearInterval(m);
3175
+ const L = new FormData();
3176
+ L.append("file", E, E.name), a.onChange?.(L), $(x), z(), r.value = 0, y = setInterval(() => {
3177
+ r.value += 30, r.value >= 90 && z();
3174
3178
  }, 200);
3175
3179
  };
3176
3180
  le(
3177
- () => n.modelValue,
3178
- (x) => {
3179
- x ? (a.value = 100, r.value = x) : (a.value = 0, r.value = "");
3181
+ () => a.modelValue,
3182
+ (k) => {
3183
+ k ? (r.value = 100, o.value = k) : (r.value = 0, o.value = "");
3180
3184
  },
3181
3185
  {
3182
3186
  immediate: !0
3183
3187
  }
3184
3188
  );
3185
- const C = p(() => ({
3186
- width: `${a.value}%`,
3187
- borderRadius: a.value === 100 ? "0 0 6px 6px" : "0 0 0 6px"
3188
- })), E = p(() => n.disabled || a.value > 0 && a.value < 100);
3189
+ const A = p(() => ({
3190
+ width: `${r.value}%`,
3191
+ borderRadius: r.value === 100 ? "0 0 6px 6px" : "0 0 0 6px"
3192
+ })), O = p(() => a.disabled || r.value > 0 && r.value < 100);
3189
3193
  return Le(() => {
3190
- m && clearInterval(m);
3191
- }), (x, z) => (u(), h("div", {
3192
- class: q(["cregis-upload", { "cregis-upload--disabled": E.value }]),
3193
- style: Z(v.value)
3194
+ z();
3195
+ }), t({
3196
+ reset: V
3197
+ }), (k, x) => (u(), m("div", {
3198
+ class: q(["cregis-upload", { "cregis-upload--disabled": O.value }]),
3199
+ style: Z(d.value)
3194
3200
  }, [
3195
- o.value ? N("", !0) : (u(), de(U(sn), {
3201
+ c.value ? j("", !0) : (u(), de(U(sn), {
3196
3202
  key: 0,
3197
3203
  size: "16px",
3198
3204
  color: "var(--stroke-base-secondary)"
3199
3205
  })),
3200
- S("input", {
3206
+ C("input", {
3207
+ ref_key: "inputRef",
3208
+ ref: l,
3201
3209
  type: "file",
3202
3210
  title: "",
3203
3211
  accept: e.accept,
3204
- disabled: E.value,
3205
- onChange: y
3212
+ disabled: O.value,
3213
+ onChange: N
3206
3214
  }, null, 40, Kr),
3207
- a.value > 0 && a.value < 100 ? (u(), h("div", {
3215
+ r.value > 0 && r.value < 100 ? (u(), m("div", {
3208
3216
  key: 1,
3209
3217
  class: "cregis-upload__progress",
3210
- style: Z(C.value)
3211
- }, null, 4)) : N("", !0),
3212
- o.value ? (u(), h("img", {
3218
+ style: Z(A.value)
3219
+ }, null, 4)) : j("", !0),
3220
+ c.value ? (u(), m("img", {
3213
3221
  key: 2,
3214
- src: o.value,
3222
+ src: c.value,
3215
3223
  alt: ""
3216
- }, null, 8, Gr)) : N("", !0),
3217
- o.value ? (u(), h("div", Zr, [
3224
+ }, null, 8, Gr)) : j("", !0),
3225
+ c.value ? (u(), m("div", Zr, [
3218
3226
  ne(U(sn), {
3219
3227
  size: "16px",
3220
3228
  color: "var(--text-same-white-primary)"
3221
3229
  })
3222
- ])) : N("", !0)
3230
+ ])) : j("", !0)
3223
3231
  ], 6));
3224
3232
  }
3225
3233
  });
@@ -3243,25 +3251,25 @@ const Qr = () => {
3243
3251
  },
3244
3252
  emits: ["update:modelValue", "after-leave"],
3245
3253
  setup(e, { emit: t }) {
3246
- const n = e, i = t;
3247
- let a = !1;
3254
+ const n = e, a = t;
3255
+ let i = !1;
3248
3256
  le(() => [n.modelValue, n.lockScroll], () => {
3249
3257
  const d = n.modelValue && n.lockScroll;
3250
- d && !a ? (Qr(), a = !0) : !d && a && (kn(), a = !1);
3258
+ d && !i ? (Qr(), i = !0) : !d && i && (kn(), i = !1);
3251
3259
  }, { immediate: !0 }), Le(() => {
3252
- a && (kn(), a = !1);
3260
+ i && (kn(), i = !1);
3253
3261
  });
3254
- const s = p(() => ({
3262
+ const o = p(() => ({
3255
3263
  width: typeof n.width == "number" ? `${n.width}px` : n.width
3256
3264
  })), l = p(() => ({
3257
3265
  zIndex: Yt(),
3258
3266
  ...n.alignCenter ? {} : { paddingTop: n.top }
3259
- })), o = () => {
3260
- i("update:modelValue", !1);
3267
+ })), s = () => {
3268
+ a("update:modelValue", !1);
3261
3269
  }, v = () => {
3262
- n.closeOnClickModal && o();
3270
+ n.closeOnClickModal && s();
3263
3271
  }, c = () => {
3264
- i("after-leave");
3272
+ a("after-leave");
3265
3273
  };
3266
3274
  return (d, g) => (u(), de(_t, { to: "body" }, [
3267
3275
  ne(st, {
@@ -3269,37 +3277,37 @@ const Qr = () => {
3269
3277
  onAfterLeave: c
3270
3278
  }, {
3271
3279
  default: ve(() => [
3272
- e.modelValue ? (u(), h("div", Be({ key: 0 }, d.$attrs, {
3280
+ e.modelValue ? (u(), m("div", Be({ key: 0 }, d.$attrs, {
3273
3281
  class: ["cregis-dialog__wrapper", {
3274
3282
  "cregis-dialog__wrapper--center": e.alignCenter,
3275
3283
  "cregis-dialog__wrapper--no-modal": !e.modal
3276
3284
  }],
3277
3285
  style: l.value
3278
3286
  }), [
3279
- e.modal ? (u(), h("div", {
3287
+ e.modal ? (u(), m("div", {
3280
3288
  key: 0,
3281
3289
  class: "cregis-dialog__mask",
3282
3290
  onClick: v
3283
- })) : N("", !0),
3284
- S("div", {
3291
+ })) : j("", !0),
3292
+ C("div", {
3285
3293
  class: "cregis-dialog",
3286
- style: Z(s.value),
3294
+ style: Z(o.value),
3287
3295
  onClick: g[0] || (g[0] = Fe(() => {
3288
3296
  }, ["stop"]))
3289
3297
  }, [
3290
- e.showClose ? (u(), h("div", {
3298
+ e.showClose ? (u(), m("div", {
3291
3299
  key: 0,
3292
3300
  class: "cregis-dialog__close",
3293
- onClick: o
3301
+ onClick: s
3294
3302
  }, [
3295
3303
  ne(U(Ut), {
3296
3304
  size: "10px",
3297
3305
  color: "var(--material-same-white-primary)"
3298
3306
  })
3299
- ])) : N("", !0),
3307
+ ])) : j("", !0),
3300
3308
  ae(d.$slots, "default")
3301
3309
  ], 4)
3302
- ], 16)) : N("", !0)
3310
+ ], 16)) : j("", !0)
3303
3311
  ]),
3304
3312
  _: 3
3305
3313
  })
@@ -3330,29 +3338,29 @@ const Qr = () => {
3330
3338
  },
3331
3339
  emits: ["after-leave"],
3332
3340
  setup(e, { emit: t }) {
3333
- const n = e, i = t, a = V(!1), r = V(null), s = V(null), l = p(() => n.type === "success" ? {
3341
+ const n = e, a = t, i = B(!1), r = B(null), o = B(null), l = p(() => n.type === "success" ? {
3334
3342
  component: Cn,
3335
3343
  color: "var(--text-same-white-primary)"
3336
3344
  } : {
3337
3345
  component: aa,
3338
3346
  color: "var(--text-base-primary)"
3339
- }), o = async (g) => {
3347
+ }), s = async (g) => {
3340
3348
  if (!r.value) {
3341
3349
  r.value = g;
3342
3350
  try {
3343
- await (g === "confirm" ? n.onConfirm : n.onCancel)?.(), s.value = g, a.value = !1;
3351
+ await (g === "confirm" ? n.onConfirm : n.onCancel)?.(), o.value = g, i.value = !1;
3344
3352
  } catch {
3345
3353
  r.value = null;
3346
3354
  }
3347
3355
  }
3348
- }, v = () => o("confirm"), c = () => o("cancel"), d = () => {
3349
- s.value || n.onCancel?.(), r.value = null, s.value = null, i("after-leave");
3356
+ }, v = () => s("confirm"), c = () => s("cancel"), d = () => {
3357
+ o.value || n.onCancel?.(), r.value = null, o.value = null, a("after-leave");
3350
3358
  };
3351
3359
  return ge(() => {
3352
- a.value = !0;
3353
- }), (g, m) => (u(), de($t, {
3354
- modelValue: a.value,
3355
- "onUpdate:modelValue": m[0] || (m[0] = (y) => a.value = y),
3360
+ i.value = !0;
3361
+ }), (g, h) => (u(), de($t, {
3362
+ modelValue: i.value,
3363
+ "onUpdate:modelValue": h[0] || (h[0] = (y) => i.value = y),
3356
3364
  width: e.width,
3357
3365
  "show-close": !1,
3358
3366
  "close-on-click-modal": e.closeOnClickModal,
@@ -3360,9 +3368,9 @@ const Qr = () => {
3360
3368
  onAfterLeave: d
3361
3369
  }, {
3362
3370
  default: ve(() => [
3363
- S("div", Jr, [
3364
- S("div", el, [
3365
- S("div", {
3371
+ C("div", Jr, [
3372
+ C("div", el, [
3373
+ C("div", {
3366
3374
  class: q(`cregis-dialog-confirm__icon cregis-dialog-confirm__icon--${e.type}`)
3367
3375
  }, [
3368
3376
  (u(), de(it(l.value.component), {
@@ -3372,9 +3380,9 @@ const Qr = () => {
3372
3380
  }, null, 8, ["color"]))
3373
3381
  ], 2)
3374
3382
  ]),
3375
- e.title ? (u(), h("div", tl, H(e.title), 1)) : N("", !0),
3376
- e.message ? (u(), h("div", nl, H(e.message), 1)) : N("", !0),
3377
- S("div", al, [
3383
+ e.title ? (u(), m("div", tl, _(e.title), 1)) : j("", !0),
3384
+ e.message ? (u(), m("div", nl, _(e.message), 1)) : j("", !0),
3385
+ C("div", al, [
3378
3386
  e.showConfirmButton ? (u(), de(He, {
3379
3387
  key: 0,
3380
3388
  type: "foreground",
@@ -3383,10 +3391,10 @@ const Qr = () => {
3383
3391
  onClick: v
3384
3392
  }, {
3385
3393
  default: ve(() => [
3386
- ye(H(e.confirmButtonText || U(he)("dialog.confirm")), 1)
3394
+ ye(_(e.confirmButtonText || U(he)("dialog.confirm")), 1)
3387
3395
  ]),
3388
3396
  _: 1
3389
- }, 8, ["loading"])) : N("", !0),
3397
+ }, 8, ["loading"])) : j("", !0),
3390
3398
  e.showCancelButton ? (u(), de(He, {
3391
3399
  key: 1,
3392
3400
  type: "secondary",
@@ -3396,10 +3404,10 @@ const Qr = () => {
3396
3404
  onClick: c
3397
3405
  }, {
3398
3406
  default: ve(() => [
3399
- ye(H(e.cancelButtonText || U(he)("dialog.cancel")), 1)
3407
+ ye(_(e.cancelButtonText || U(he)("dialog.cancel")), 1)
3400
3408
  ]),
3401
3409
  _: 1
3402
- }, 8, ["loading"])) : N("", !0)
3410
+ }, 8, ["loading"])) : j("", !0)
3403
3411
  ])
3404
3412
  ])
3405
3413
  ]),
@@ -3412,31 +3420,31 @@ function rl(e) {
3412
3420
  }
3413
3421
  function ll(e) {
3414
3422
  return new Promise((t, n) => {
3415
- const i = rl(e), a = document.createElement("div");
3416
- document.body.appendChild(a);
3423
+ const a = rl(e), i = document.createElement("div");
3424
+ document.body.appendChild(i);
3417
3425
  const r = () => {
3418
- Ue(null, a), a.remove();
3426
+ Ue(null, i), i.remove();
3419
3427
  };
3420
- let s = !1;
3428
+ let o = !1;
3421
3429
  const l = () => {
3422
- s || (s = !0, t());
3423
- }, o = (v) => {
3424
- s || (s = !0, n(v));
3430
+ o || (o = !0, t());
3431
+ }, s = (v) => {
3432
+ o || (o = !0, n(v));
3425
3433
  };
3426
3434
  Ue(
3427
3435
  Ht(il, {
3428
- ...i,
3436
+ ...a,
3429
3437
  onConfirm: async () => {
3430
- await i.onConfirm?.(), l();
3438
+ await a.onConfirm?.(), l();
3431
3439
  },
3432
3440
  onCancel: async () => {
3433
- await i.onCancel?.(), o("cancel");
3441
+ await a.onCancel?.(), s("cancel");
3434
3442
  },
3435
3443
  onAfterLeave: () => {
3436
- r(), s || o("cancel");
3444
+ r(), o || s("cancel");
3437
3445
  }
3438
3446
  }),
3439
- a
3447
+ i
3440
3448
  );
3441
3449
  });
3442
3450
  }
@@ -3459,7 +3467,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3459
3467
  dotSize: ht(t, "dotSize"),
3460
3468
  lineWidth: ht(t, "lineWidth"),
3461
3469
  iconSize: ht(t, "iconSize")
3462
- }), (n, i) => (u(), h("div", fl, [
3470
+ }), (n, a) => (u(), m("div", fl, [
3463
3471
  ae(n.$slots, "default")
3464
3472
  ]));
3465
3473
  }
@@ -3479,71 +3487,71 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3479
3487
  setup(e) {
3480
3488
  const t = e, n = jt(Xn);
3481
3489
  if (!n) throw new Error("TimelineItem must be used within Timeline");
3482
- const i = (d) => typeof d == "number" ? `${d}px` : /^\d+(\.\d+)?$/.test(d.trim()) ? `${d.trim()}px` : d, a = p(() => i(t.dotSize ?? n.dotSize.value)), r = p(() => i(t.lineWidth ?? n.lineWidth.value)), s = p(() => i(t.iconSize ?? n.iconSize.value)), l = p(() => {
3490
+ const a = (d) => typeof d == "number" ? `${d}px` : /^\d+(\.\d+)?$/.test(d.trim()) ? `${d.trim()}px` : d, i = p(() => a(t.dotSize ?? n.dotSize.value)), r = p(() => a(t.lineWidth ?? n.lineWidth.value)), o = p(() => a(t.iconSize ?? n.iconSize.value)), l = p(() => {
3483
3491
  const d = {
3484
- width: a.value,
3485
- height: a.value
3492
+ width: i.value,
3493
+ height: i.value
3486
3494
  };
3487
3495
  return t.status === "finished" ? { ...d, backgroundColor: sl } : t.status === "pending" ? { ...d, backgroundColor: cl } : t.status === "rejected" || t.status === "withdrawn" ? { ...d, backgroundColor: dl } : {
3488
3496
  ...d,
3489
3497
  backgroundColor: "transparent",
3490
3498
  border: `1px solid ${ul}`
3491
3499
  };
3492
- }), o = p(() => ({
3493
- "--cregis-timeline-dot-size": a.value
3500
+ }), s = p(() => ({
3501
+ "--cregis-timeline-dot-size": i.value
3494
3502
  })), v = p(() => ({
3495
- width: a.value
3503
+ width: i.value
3496
3504
  })), c = p(() => ({
3497
3505
  backgroundColor: ol,
3498
3506
  width: r.value,
3499
- left: `calc(${a.value} / 2 - ${r.value} / 2)`,
3507
+ left: `calc(${i.value} / 2 - ${r.value} / 2)`,
3500
3508
  top: "calc((var(--cregis-timeline-title-line-height) + var(--cregis-timeline-dot-size, 16px)) / 2 + var(--cregis-timeline-line-gap))",
3501
3509
  bottom: "calc(-1 * (var(--cregis-timeline-dot-top-offset) - var(--cregis-timeline-line-gap)))"
3502
3510
  }));
3503
- return (d, g) => (u(), h("div", {
3511
+ return (d, g) => (u(), m("div", {
3504
3512
  class: "cregis-timeline-item",
3505
- style: Z(o.value)
3513
+ style: Z(s.value)
3506
3514
  }, [
3507
- S("div", {
3515
+ C("div", {
3508
3516
  class: "cregis-timeline-item__node",
3509
3517
  style: Z(v.value)
3510
3518
  }, [
3511
- S("span", {
3519
+ C("span", {
3512
3520
  class: "cregis-timeline-item__dot",
3513
3521
  style: Z(l.value)
3514
3522
  }, [
3515
3523
  e.status === "finished" ? (u(), de(En, {
3516
3524
  key: 0,
3517
- size: s.value,
3525
+ size: o.value,
3518
3526
  class: "cregis-timeline-item__dot-icon"
3519
3527
  }, null, 8, ["size"])) : e.status === "pending" ? (u(), de(U(ia), {
3520
3528
  key: 1,
3521
- size: s.value,
3529
+ size: o.value,
3522
3530
  color: "var(--text-same-white-primary)"
3523
3531
  }, null, 8, ["size"])) : e.status === "rejected" ? (u(), de(U(Ut), {
3524
3532
  key: 2,
3525
- size: s.value,
3533
+ size: o.value,
3526
3534
  color: "var(--text-same-white-primary)"
3527
3535
  }, null, 8, ["size"])) : e.status === "withdrawn" ? (u(), de(U(ra), {
3528
3536
  key: 3,
3529
- size: s.value,
3537
+ size: o.value,
3530
3538
  color: "var(--text-same-white-primary)"
3531
- }, null, 8, ["size"])) : N("", !0)
3539
+ }, null, 8, ["size"])) : j("", !0)
3532
3540
  ], 4)
3533
3541
  ], 4),
3534
- d.$slots.title ? (u(), h("div", vl, [
3542
+ d.$slots.title ? (u(), m("div", vl, [
3535
3543
  ae(d.$slots, "title")
3536
- ])) : N("", !0),
3537
- S("span", {
3544
+ ])) : j("", !0),
3545
+ C("span", {
3538
3546
  class: "cregis-timeline-item__tail",
3539
3547
  style: Z(c.value)
3540
3548
  }, null, 4),
3541
- d.$slots.default ? (u(), h("div", {
3549
+ d.$slots.default ? (u(), m("div", {
3542
3550
  key: 1,
3543
3551
  class: q(["cregis-timeline-item__content", { "is-hoverable": e.contentHoverable }])
3544
3552
  }, [
3545
3553
  ae(d.$slots, "default")
3546
- ], 2)) : N("", !0)
3554
+ ], 2)) : j("", !0)
3547
3555
  ], 4));
3548
3556
  }
3549
3557
  }), pl = {
@@ -3565,26 +3573,26 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3565
3573
  },
3566
3574
  emits: ["select-all-mode", "sort-change"],
3567
3575
  setup(e, { expose: t, emit: n }) {
3568
- const i = n, a = e, r = V(!1), s = V(!1), l = V(""), o = V(), v = V();
3576
+ const a = n, i = e, r = B(!1), o = B(!1), l = B(""), s = B(), v = B();
3569
3577
  let c = null;
3570
3578
  const d = p(() => ({
3571
3579
  maxHeight: "180px",
3572
3580
  zIndex: Yt()
3573
- })), g = p(() => a.selectMode ? "disabled" : ""), m = p(() => s.value ? "focus" : ""), y = p(() => ({
3574
- height: a.height,
3575
- ...a.width ? { width: "1%" } : {}
3576
- })), C = p(() => ({
3577
- justifyContent: a.align === "left" ? "flex-start" : a.align === "center" ? "center" : "flex-end",
3578
- ...a.width ? { width: a.width } : {}
3581
+ })), g = p(() => i.selectMode ? "disabled" : ""), h = p(() => o.value ? "focus" : ""), y = p(() => ({
3582
+ height: i.height,
3583
+ ...i.width ? { width: "1%" } : {}
3584
+ })), $ = p(() => ({
3585
+ justifyContent: i.align === "left" ? "flex-start" : i.align === "center" ? "center" : "flex-end",
3586
+ ...i.width ? { width: i.width } : {}
3579
3587
  }));
3580
- _n(o, () => {
3588
+ _n(s, () => {
3581
3589
  r.value && setTimeout(() => {
3582
- r.value = !1, s.value = !1;
3590
+ r.value = !1, o.value = !1;
3583
3591
  }, 0);
3584
3592
  });
3585
- const E = () => {
3586
- a.selectMode || r.value || (r.value = !0, s.value = !0, ge(() => {
3587
- o.value && v.value && (c?.destroy(), c = Nn(v.value, o.value, {
3593
+ const z = () => {
3594
+ i.selectMode || r.value || (r.value = !0, o.value = !0, ge(() => {
3595
+ s.value && v.value && (c?.destroy(), c = Nn(v.value, s.value, {
3588
3596
  placement: "bottom-start",
3589
3597
  modifiers: [
3590
3598
  {
@@ -3596,8 +3604,8 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3596
3604
  ]
3597
3605
  }));
3598
3606
  }));
3599
- }, x = (R) => {
3600
- R !== l.value && i("sort-change", R), l.value = R, r.value = !1, s.value = !1;
3607
+ }, V = (A) => {
3608
+ A !== l.value && a("sort-change", A), l.value = A, r.value = !1, o.value = !1;
3601
3609
  };
3602
3610
  return t({
3603
3611
  resetSort: () => {
@@ -3605,36 +3613,36 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3605
3613
  }
3606
3614
  }), Le(() => {
3607
3615
  c?.destroy();
3608
- }), (R, k) => (u(), h("th", {
3616
+ }), (A, O) => (u(), m("th", {
3609
3617
  class: q(["header-cell-wrapper", {
3610
3618
  "select-cell": e.type === "select",
3611
3619
  "select-cell--visible": e.type === "select" && e.selectVisible
3612
3620
  }]),
3613
3621
  style: Z(y.value)
3614
3622
  }, [
3615
- e.type === "select" ? (u(), h("div", pl, [
3623
+ e.type === "select" ? (u(), m("div", pl, [
3616
3624
  ne(qt, {
3617
3625
  "model-value": e.selectAllMode === "all",
3618
3626
  indeterminate: e.selectAllMode === "some",
3619
- onClick: k[0] || (k[0] = Fe((P) => R.$emit("select-all-mode", e.selectAllMode), ["stop"]))
3627
+ onClick: O[0] || (O[0] = Fe((k) => A.$emit("select-all-mode", e.selectAllMode), ["stop"]))
3620
3628
  }, null, 8, ["model-value", "indeterminate"])
3621
- ])) : N("", !0),
3622
- e.type === "default" ? (u(), h("div", {
3629
+ ])) : j("", !0),
3630
+ e.type === "default" ? (u(), m("div", {
3623
3631
  key: 1,
3624
3632
  class: "cell-content",
3625
- style: Z(C.value)
3633
+ style: Z($.value)
3626
3634
  }, [
3627
- ae(R.$slots, "default", {}, () => [
3628
- S("div", null, H(e.label), 1)
3635
+ ae(A.$slots, "default", {}, () => [
3636
+ C("div", null, _(e.label), 1)
3629
3637
  ], !0),
3630
- e.sortable ? (u(), h("div", {
3638
+ e.sortable ? (u(), m("div", {
3631
3639
  key: 0,
3632
3640
  ref_key: "containerRef",
3633
3641
  ref: v,
3634
- class: q(["sort-container", [m.value, g.value]]),
3635
- onClick: Fe(E, ["stop"])
3642
+ class: q(["sort-container", [h.value, g.value]]),
3643
+ onClick: Fe(z, ["stop"])
3636
3644
  }, [
3637
- S("span", {
3645
+ C("span", {
3638
3646
  class: q(["sort-icon", { "is-open": r.value }])
3639
3647
  }, [
3640
3648
  ne(U(Ft), {
@@ -3642,23 +3650,23 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3642
3650
  color: "currentColor"
3643
3651
  })
3644
3652
  ], 2)
3645
- ], 2)) : N("", !0)
3646
- ], 4)) : N("", !0),
3653
+ ], 2)) : j("", !0)
3654
+ ], 4)) : j("", !0),
3647
3655
  (u(), de(_t, { to: "body" }, [
3648
- _e(S("div", {
3656
+ _e(C("div", {
3649
3657
  ref_key: "popRef",
3650
- ref: o,
3658
+ ref: s,
3651
3659
  class: "sort-popover no-scroll-bar popover-shadow",
3652
3660
  style: Z(d.value)
3653
3661
  }, [
3654
- S("div", {
3662
+ C("div", {
3655
3663
  class: q(["sort-item font-15", { active: l.value === 1 }]),
3656
- onClick: k[1] || (k[1] = (P) => x(1))
3657
- }, H(U(he)("tableList.asc")), 3),
3658
- S("div", {
3664
+ onClick: O[1] || (O[1] = (k) => V(1))
3665
+ }, _(U(he)("tableList.asc")), 3),
3666
+ C("div", {
3659
3667
  class: q(["sort-item font-15", { active: l.value === 2 }]),
3660
- onClick: k[2] || (k[2] = (P) => x(2))
3661
- }, H(U(he)("tableList.desc")), 3)
3668
+ onClick: O[2] || (O[2] = (k) => V(2))
3669
+ }, _(U(he)("tableList.desc")), 3)
3662
3670
  ], 4), [
3663
3671
  [St, r.value]
3664
3672
  ])
@@ -3667,8 +3675,8 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3667
3675
  }
3668
3676
  }), tn = (e, t) => {
3669
3677
  const n = e.__vccOpts || e;
3670
- for (const [i, a] of t)
3671
- n[i] = a;
3678
+ for (const [a, i] of t)
3679
+ n[a] = i;
3672
3680
  return n;
3673
3681
  }, $n = /* @__PURE__ */ tn(ml, [["__scopeId", "data-v-fadfd4e7"]]), hl = {
3674
3682
  key: 1,
@@ -3695,49 +3703,49 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3695
3703
  },
3696
3704
  emits: ["selectChange"],
3697
3705
  setup(e) {
3698
- const t = e, n = p(() => Object.assign(t.data || {}, {})), i = p(() => ({
3706
+ const t = e, n = p(() => Object.assign(t.data || {}, {})), a = p(() => ({
3699
3707
  ...t.widthPercent ? { width: `${t.widthPercent}%` } : {},
3700
3708
  ...t.minWidth ? { minWidth: t.minWidth } : {},
3701
3709
  ...t.width ? { width: "1%" } : {}
3702
- })), a = p(() => ({
3710
+ })), i = p(() => ({
3703
3711
  height: t.columnHeight + "px"
3704
- })), r = p(() => t.index % 2 === 1), s = p(() => ({
3705
- ...a.value,
3712
+ })), r = p(() => t.index % 2 === 1), o = p(() => ({
3713
+ ...i.value,
3706
3714
  justifyContent: t.align === "left" ? "flex-start" : t.align === "center" ? "center" : "flex-end",
3707
3715
  ...t.width ? { width: t.width } : {}
3708
3716
  }));
3709
- return (l, o) => (u(), h("td", {
3717
+ return (l, s) => (u(), m("td", {
3710
3718
  class: q(["column-wrapper", {
3711
3719
  "is-striped": r.value,
3712
3720
  "select-cell": e.type === "select",
3713
3721
  "select-cell--visible": e.type === "select" && e.selectVisible
3714
3722
  }]),
3715
- style: Z(i.value)
3723
+ style: Z(a.value)
3716
3724
  }, [
3717
- e.blank ? (u(), h("div", {
3725
+ e.blank ? (u(), m("div", {
3718
3726
  key: 0,
3719
- style: Z(s.value)
3720
- }, null, 4)) : (u(), h(ze, { key: 1 }, [
3721
- e.type === "select" ? (u(), h("div", {
3727
+ style: Z(o.value)
3728
+ }, null, 4)) : (u(), m(ze, { key: 1 }, [
3729
+ e.type === "select" ? (u(), m("div", {
3722
3730
  key: 0,
3723
3731
  class: "select-content",
3724
- style: Z(a.value)
3732
+ style: Z(i.value)
3725
3733
  }, [
3726
3734
  ne(qt, {
3727
3735
  "model-value": e.selected,
3728
- onClick: o[0] || (o[0] = Fe((v) => l.$emit("selectChange", e.index), ["stop"]))
3736
+ onClick: s[0] || (s[0] = Fe((v) => l.$emit("selectChange", e.index), ["stop"]))
3729
3737
  }, null, 8, ["model-value"])
3730
- ], 4)) : N("", !0),
3731
- e.type === "default" ? (u(), h("div", {
3738
+ ], 4)) : j("", !0),
3739
+ e.type === "default" ? (u(), m("div", {
3732
3740
  key: 1,
3733
3741
  class: "cell-content",
3734
- style: Z(s.value)
3742
+ style: Z(o.value)
3735
3743
  }, [
3736
3744
  l.$slots.default ? ae(l.$slots, "default", {
3737
3745
  key: 0,
3738
3746
  data: n.value
3739
- }, void 0, !0) : (u(), h("div", hl, H(t.data?.[t.prop || ""]), 1))
3740
- ], 4)) : N("", !0)
3747
+ }, void 0, !0) : (u(), m("div", hl, _(t.data?.[t.prop || ""]), 1))
3748
+ ], 4)) : j("", !0)
3741
3749
  ], 64))
3742
3750
  ], 6));
3743
3751
  }
@@ -3745,8 +3753,8 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3745
3753
  if (!e) return n;
3746
3754
  if (Object.prototype.hasOwnProperty.call(e, t))
3747
3755
  return e[t];
3748
- const i = t.replace(/([A-Z])/g, "-$1").toLowerCase();
3749
- return Object.prototype.hasOwnProperty.call(e, i) ? e[i] : n;
3756
+ const a = t.replace(/([A-Z])/g, "-$1").toLowerCase();
3757
+ return Object.prototype.hasOwnProperty.call(e, a) ? e[a] : n;
3750
3758
  }, bl = { class: "initing-content" }, yl = { class: "initing-text" }, wl = { class: "selected-count-wrapper" }, xl = { class: "font-medium text-[var(--text-base-primary)]" }, kl = { class: "ml-[2px] text-[var(--text-base-secondary)]" }, $l = {
3751
3759
  key: 0,
3752
3760
  class: "operation-divider"
@@ -3756,7 +3764,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3756
3764
  }, Rl = { class: "flex flex-col gap-[8px] items-center -translate-x-[30px]" }, Ll = { class: "no-data-text font-13" }, Bl = {
3757
3765
  key: 1,
3758
3766
  class: "flex-1"
3759
- }, Pl = /* @__PURE__ */ oe({
3767
+ }, Vl = /* @__PURE__ */ oe({
3760
3768
  __name: "index",
3761
3769
  props: {
3762
3770
  maxHeight: {},
@@ -3769,93 +3777,93 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3769
3777
  },
3770
3778
  emits: ["row-click", "update:selected-list", "selected-change", "select-close"],
3771
3779
  setup(e, { expose: t, emit: n }) {
3772
- const i = n, a = e, r = Sn(), s = V(null), l = V(null), o = V([]), v = V({ width: 0, height: 0 }), c = V(0), d = p(() => `${a.headerHeight}px`), g = V(!1), m = V([]);
3780
+ const a = n, i = e, r = Sn(), o = B(null), l = B(null), s = B([]), v = B({ width: 0, height: 0 }), c = B(0), d = p(() => `${i.headerHeight}px`), g = B(!1), h = B([]);
3773
3781
  le(
3774
- () => a.dataList,
3782
+ () => i.dataList,
3775
3783
  () => {
3776
- m.value = [];
3784
+ h.value = [];
3777
3785
  },
3778
3786
  {
3779
3787
  immediate: !0
3780
3788
  }
3781
3789
  );
3782
- const y = V(!1), C = V();
3790
+ const y = B(!1), $ = B();
3783
3791
  le(
3784
- () => a.initing,
3785
- (A) => {
3786
- A ? C.value = window.setTimeout(() => {
3792
+ () => i.initing,
3793
+ (W) => {
3794
+ W ? $.value = window.setTimeout(() => {
3787
3795
  y.value = !0;
3788
- }, 500) : (clearTimeout(C.value), y.value = !1);
3796
+ }, 500) : (clearTimeout($.value), y.value = !1);
3789
3797
  },
3790
3798
  {
3791
3799
  immediate: !0
3792
3800
  }
3793
3801
  );
3794
- const E = V(!1), x = V(!1), z = V();
3802
+ const z = B(!1), V = B(!1), N = B();
3795
3803
  le(
3796
- () => a.loading,
3797
- (A) => {
3798
- A ? (clearTimeout(z.value), l.value?.scrollTo({ top: 0, behavior: "instant" }), x.value = !1, E.value = !0) : (l.value?.scrollTo({ top: 0, behavior: "instant" }), x.value = !0, z.value = window.setTimeout(() => {
3799
- E.value = !1;
3804
+ () => i.loading,
3805
+ (W) => {
3806
+ W ? (clearTimeout(N.value), l.value?.scrollTo({ top: 0, behavior: "instant" }), V.value = !1, z.value = !0) : (l.value?.scrollTo({ top: 0, behavior: "instant" }), V.value = !0, N.value = window.setTimeout(() => {
3807
+ z.value = !1;
3800
3808
  }, 500));
3801
3809
  },
3802
3810
  {
3803
3811
  immediate: !0
3804
3812
  }
3805
3813
  );
3806
- const R = p(() => {
3807
- const A = v.value.height - a.headerHeight - 8, M = Math.floor(A / a.columnHeight), L = M - a.dataList.length > 0 ? M - a.dataList.length : 0;
3808
- return Array.from({ length: L }).fill({});
3809
- }), k = p(() => ({
3814
+ const A = p(() => {
3815
+ const W = v.value.height - i.headerHeight - 8, I = Math.floor(W / i.columnHeight), R = I - i.dataList.length > 0 ? I - i.dataList.length : 0;
3816
+ return Array.from({ length: R }).fill({});
3817
+ }), O = p(() => ({
3810
3818
  width: `${v.value.width}px`,
3811
- height: E.value ? "28px" : "0px",
3812
- opacity: E.value ? 1 : 0
3813
- })), P = () => (r.default?.()?.filter((L) => L.type?.name === "TableListColumn") || []).filter((L) => L.props?.hidden !== !0), T = () => P().filter((M) => {
3814
- const L = Qe(M.props, "minTableWidth");
3815
- return !L || v.value.width >= L;
3816
- }), B = p(() => T().map((M) => {
3817
- const { align: L = "left", label: F, width: J, sortable: f } = M.props || {}, $ = Qe(M.props, "minTableWidth");
3819
+ height: z.value ? "28px" : "0px",
3820
+ opacity: z.value ? 1 : 0
3821
+ })), k = () => (r.default?.()?.filter((R) => R.type?.name === "TableListColumn") || []).filter((R) => R.props?.hidden !== !0), x = () => k().filter((I) => {
3822
+ const R = Qe(I.props, "minTableWidth");
3823
+ return !R || v.value.width >= R;
3824
+ }), E = p(() => x().map((I) => {
3825
+ const { align: R = "left", label: F, width: J, sortable: f } = I.props || {}, S = Qe(I.props, "minTableWidth");
3818
3826
  return {
3819
3827
  label: F || "",
3820
- align: L,
3828
+ align: R,
3821
3829
  sortable: f,
3822
3830
  width: J,
3823
- minTableWidth: $,
3824
- headerSlot: M.children?.header,
3825
- originalSortChangeHandler: M.props?.onSortChange
3831
+ minTableWidth: S,
3832
+ headerSlot: I.children?.header,
3833
+ originalSortChangeHandler: I.props?.onSortChange
3826
3834
  };
3827
- })), I = p(() => B.value.length + 1), Y = p(() => T().map((M) => {
3828
- const { align: L = "left", width: F } = M.props || {}, J = Qe(M.props, "widthPercent"), f = Qe(M.props, "minWidth"), $ = Qe(M.props, "minTableWidth");
3835
+ })), L = p(() => E.value.length + 1), Y = p(() => x().map((I) => {
3836
+ const { align: R = "left", width: F } = I.props || {}, J = Qe(I.props, "widthPercent"), f = Qe(I.props, "minWidth"), S = Qe(I.props, "minTableWidth");
3829
3837
  return {
3830
- prop: M.props?.prop || "",
3831
- align: L,
3838
+ prop: I.props?.prop || "",
3839
+ align: R,
3832
3840
  width: F,
3833
3841
  widthPercent: J,
3834
3842
  minWidth: f,
3835
- minTableWidth: $,
3836
- children: M.children || {},
3837
- slotDefault: M.children?.default
3843
+ minTableWidth: S,
3844
+ children: I.children || {},
3845
+ slotDefault: I.children?.default
3838
3846
  };
3839
- })), X = (A, M) => {
3840
- o.value?.forEach((F, J) => {
3841
- J !== A && F.resetSort();
3847
+ })), X = (W, I) => {
3848
+ s.value?.forEach((F, J) => {
3849
+ J !== W && F.resetSort();
3842
3850
  });
3843
- const L = B.value[A];
3844
- L.originalSortChangeHandler && L.originalSortChangeHandler(M);
3845
- }, _ = (A) => {
3846
- m.value.find((L) => L._index === A) ? (m.value = m.value.filter((L) => L._index !== A), i("update:selected-list", m.value), i("selected-change", m.value)) : (m.value.push({ ...a.dataList[A], _index: A }), i("update:selected-list", m.value), i("selected-change", m.value));
3847
- }, se = (A) => {
3848
- A === "all" ? (m.value = [], i("update:selected-list", []), i("selected-change", [])) : (m.value = a.dataList.map((M, L) => ({ ...M, _index: L })), i("update:selected-list", m.value), i("selected-change", m.value));
3849
- }, Q = (A, M) => {
3851
+ const R = E.value[W];
3852
+ R.originalSortChangeHandler && R.originalSortChangeHandler(I);
3853
+ }, D = (W) => {
3854
+ h.value.find((R) => R._index === W) ? (h.value = h.value.filter((R) => R._index !== W), a("update:selected-list", h.value), a("selected-change", h.value)) : (h.value.push({ ...i.dataList[W], _index: W }), a("update:selected-list", h.value), a("selected-change", h.value));
3855
+ }, se = (W) => {
3856
+ W === "all" ? (h.value = [], a("update:selected-list", []), a("selected-change", [])) : (h.value = i.dataList.map((I, R) => ({ ...I, _index: R })), a("update:selected-list", h.value), a("selected-change", h.value));
3857
+ }, Q = (W, I) => {
3850
3858
  if (g.value) {
3851
- _(M);
3859
+ D(I);
3852
3860
  return;
3853
3861
  }
3854
- i("row-click", A);
3862
+ a("row-click", W);
3855
3863
  }, te = () => {
3856
3864
  g.value = !0;
3857
3865
  }, pe = () => {
3858
- g.value = !1, m.value = [], i("select-close"), i("update:selected-list", []), i("selected-change", []);
3866
+ g.value = !1, h.value = [], a("select-close"), a("update:selected-list", []), a("selected-change", []);
3859
3867
  };
3860
3868
  t({
3861
3869
  selectMode: g,
@@ -3864,117 +3872,117 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3864
3872
  });
3865
3873
  let G = null;
3866
3874
  return Ne(() => {
3867
- s.value && (G = new ResizeObserver((A) => {
3868
- const M = A[0], L = M.contentRect.width, F = M.contentRect.height;
3869
- v.value = { width: L, height: F };
3870
- }), G.observe(s.value));
3875
+ o.value && (G = new ResizeObserver((W) => {
3876
+ const I = W[0], R = I.contentRect.width, F = I.contentRect.height;
3877
+ v.value = { width: R, height: F };
3878
+ }), G.observe(o.value));
3871
3879
  }), Le(() => {
3872
3880
  G && G.disconnect();
3873
- }), (A, M) => (u(), h("div", {
3881
+ }), (W, I) => (u(), m("div", {
3874
3882
  ref_key: "tableWrapperRef",
3875
- ref: s,
3883
+ ref: o,
3876
3884
  class: "table-wrapper"
3877
3885
  }, [
3878
- S("div", {
3886
+ C("div", {
3879
3887
  class: "header-bg",
3880
3888
  style: Z({ height: d.value })
3881
3889
  }, null, 4),
3882
- y.value ? (u(), h("div", {
3890
+ y.value ? (u(), m("div", {
3883
3891
  key: 0,
3884
3892
  class: "initing-wrapper",
3885
3893
  style: Z({ top: d.value, height: `calc(100% - ${d.value})` })
3886
3894
  }, [
3887
- S("div", bl, [
3888
- ne(U(Pt), {
3895
+ C("div", bl, [
3896
+ ne(U(Vt), {
3889
3897
  class: "loading-icon",
3890
3898
  size: "20px",
3891
3899
  color: "var(--stroke-base-secondary)"
3892
3900
  }),
3893
- S("div", yl, H(U(he)("tableList.loading")), 1)
3901
+ C("div", yl, _(U(he)("tableList.loading")), 1)
3894
3902
  ])
3895
- ], 4)) : N("", !0),
3903
+ ], 4)) : j("", !0),
3896
3904
  ne(st, { name: "table-list-operation" }, {
3897
3905
  default: ve(() => [
3898
- g.value ? (u(), h("div", {
3906
+ g.value ? (u(), m("div", {
3899
3907
  key: 0,
3900
3908
  class: "opration-wrapper",
3901
3909
  style: Z({ bottom: `calc(var(--spacing-8) + ${e.bottomPadding}px)` })
3902
3910
  }, [
3903
- S("div", {
3911
+ C("div", {
3904
3912
  class: "operation-item",
3905
3913
  hover: "bg-[--event-focus-secondary]",
3906
3914
  onClick: pe
3907
3915
  }, [
3908
3916
  ne(U(Ut), { size: "16px" })
3909
3917
  ]),
3910
- M[0] || (M[0] = S("div", { class: "operation-divider" }, null, -1)),
3911
- S("div", wl, [
3912
- S("div", xl, H(m.value.length), 1),
3913
- S("div", kl, H(U(he)("tableList.selected")), 1)
3918
+ I[0] || (I[0] = C("div", { class: "operation-divider" }, null, -1)),
3919
+ C("div", wl, [
3920
+ C("div", xl, _(h.value.length), 1),
3921
+ C("div", kl, _(U(he)("tableList.selected")), 1)
3914
3922
  ]),
3915
- r.operation ? (u(), h("div", $l)) : N("", !0),
3916
- ae(A.$slots, "operation", {}, void 0, !0)
3917
- ], 4)) : N("", !0)
3923
+ r.operation ? (u(), m("div", $l)) : j("", !0),
3924
+ ae(W.$slots, "operation", {}, void 0, !0)
3925
+ ], 4)) : j("", !0)
3918
3926
  ]),
3919
3927
  _: 3
3920
3928
  }),
3921
- S("div", {
3929
+ C("div", {
3922
3930
  ref_key: "tableContentRef",
3923
3931
  ref: l,
3924
3932
  class: "table-content-wrapper no-scroll-bar"
3925
3933
  }, [
3926
- (u(), h("table", {
3934
+ (u(), m("table", {
3927
3935
  key: c.value,
3928
3936
  class: "cg-table w-full border-separate"
3929
3937
  }, [
3930
- S("thead", {
3938
+ C("thead", {
3931
3939
  style: Z({ height: d.value })
3932
3940
  }, [
3933
- S("tr", null, [
3941
+ C("tr", null, [
3934
3942
  ne($n, {
3935
3943
  type: "select",
3936
3944
  height: d.value,
3937
3945
  "select-visible": g.value,
3938
- "select-all-mode": m.value.length === 0 ? "none" : m.value.length === e.dataList.length ? "all" : "some",
3946
+ "select-all-mode": h.value.length === 0 ? "none" : h.value.length === e.dataList.length ? "all" : "some",
3939
3947
  onSelectAllMode: se
3940
3948
  }, null, 8, ["height", "select-visible", "select-all-mode"]),
3941
- (u(!0), h(ze, null, We(B.value, (L, F) => (u(), de($n, {
3949
+ (u(!0), m(ze, null, We(E.value, (R, F) => (u(), de($n, {
3942
3950
  ref_for: !0,
3943
3951
  ref_key: "headerCellRefs",
3944
- ref: o,
3952
+ ref: s,
3945
3953
  key: F,
3946
- label: L.label,
3947
- align: L.align,
3954
+ label: R.label,
3955
+ align: R.align,
3948
3956
  height: d.value,
3949
- width: L.width,
3950
- sortable: L.sortable,
3957
+ width: R.width,
3958
+ sortable: R.sortable,
3951
3959
  "select-mode": g.value,
3952
3960
  onSortChange: (J) => X(Number(F), J)
3953
3961
  }, on({ _: 2 }, [
3954
- L.headerSlot ? {
3962
+ R.headerSlot ? {
3955
3963
  name: "default",
3956
3964
  fn: ve(() => [
3957
- (u(), de(it(() => L.headerSlot({}))))
3965
+ (u(), de(it(() => R.headerSlot({}))))
3958
3966
  ]),
3959
3967
  key: "0"
3960
3968
  } : void 0
3961
3969
  ]), 1032, ["label", "align", "height", "width", "sortable", "select-mode", "onSortChange"]))), 128))
3962
3970
  ])
3963
3971
  ], 4),
3964
- e.dataList.length > 0 ? (u(), h("tbody", Sl, [
3965
- S("tr", {
3972
+ e.dataList.length > 0 ? (u(), m("tbody", Sl, [
3973
+ C("tr", {
3966
3974
  class: "loading-wrapper",
3967
- style: Z(k.value)
3975
+ style: Z(O.value)
3968
3976
  }, [
3969
- S("td", { colspan: I.value }, [
3970
- S("div", Ol, [
3971
- x.value ? (u(), h(ze, { key: 0 }, [
3977
+ C("td", { colspan: L.value }, [
3978
+ C("div", Ol, [
3979
+ V.value ? (u(), m(ze, { key: 0 }, [
3972
3980
  ne(U(la), {
3973
3981
  size: "16px",
3974
3982
  color: "var(--stroke-color-success)"
3975
3983
  }),
3976
- S("span", Tl, H(U(he)("tableList.refreshed")), 1)
3977
- ], 64)) : (u(), de(U(Pt), {
3984
+ C("span", Tl, _(U(he)("tableList.refreshed")), 1)
3985
+ ], 64)) : (u(), de(U(Vt), {
3978
3986
  key: 1,
3979
3987
  class: "loading-icon",
3980
3988
  size: "16px",
@@ -3983,21 +3991,21 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
3983
3991
  ])
3984
3992
  ], 8, Cl)
3985
3993
  ], 4),
3986
- (u(!0), h(ze, null, We(e.dataList, (L, F) => (u(), h("tr", {
3994
+ (u(!0), m(ze, null, We(e.dataList, (R, F) => (u(), m("tr", {
3987
3995
  key: F,
3988
3996
  class: "table-row",
3989
- onClick: (J) => Q(L, F)
3997
+ onClick: (J) => Q(R, F)
3990
3998
  }, [
3991
3999
  ne(mt, {
3992
4000
  type: "select",
3993
4001
  "select-visible": g.value,
3994
4002
  index: F,
3995
4003
  "column-height": e.columnHeight,
3996
- data: L,
3997
- selected: m.value.findIndex((J) => J._index === F) !== -1,
3998
- onSelectChange: _
4004
+ data: R,
4005
+ selected: h.value.findIndex((J) => J._index === F) !== -1,
4006
+ onSelectChange: D
3999
4007
  }, null, 8, ["select-visible", "index", "column-height", "data", "selected"]),
4000
- (u(!0), h(ze, null, We(Y.value, (J, f) => (u(), de(mt, {
4008
+ (u(!0), m(ze, null, We(Y.value, (J, f) => (u(), de(mt, {
4001
4009
  key: `${F}-${f}`,
4002
4010
  index: F,
4003
4011
  "column-height": e.columnHeight,
@@ -4006,18 +4014,18 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
4006
4014
  width: J.width,
4007
4015
  "width-percent": J.widthPercent,
4008
4016
  "min-width": J.minWidth,
4009
- data: L
4017
+ data: R
4010
4018
  }, on({ _: 2 }, [
4011
4019
  J.slotDefault ? {
4012
4020
  name: "default",
4013
- fn: ve(($) => [
4014
- (u(), de(it(() => J.slotDefault($))))
4021
+ fn: ve((S) => [
4022
+ (u(), de(it(() => J.slotDefault(S))))
4015
4023
  ]),
4016
4024
  key: "0"
4017
4025
  } : void 0
4018
4026
  ]), 1032, ["index", "column-height", "prop", "align", "width", "width-percent", "min-width", "data"]))), 128))
4019
4027
  ], 8, zl))), 128)),
4020
- (u(!0), h(ze, null, We(R.value, (L, F) => (u(), h("tr", {
4028
+ (u(!0), m(ze, null, We(A.value, (R, F) => (u(), m("tr", {
4021
4029
  key: F + e.dataList.length
4022
4030
  }, [
4023
4031
  ne(mt, {
@@ -4027,33 +4035,33 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
4027
4035
  "column-height": e.columnHeight,
4028
4036
  blank: ""
4029
4037
  }, null, 8, ["select-visible", "index", "column-height"]),
4030
- (u(!0), h(ze, null, We(Y.value, (J, f) => (u(), de(mt, {
4038
+ (u(!0), m(ze, null, We(Y.value, (J, f) => (u(), de(mt, {
4031
4039
  key: `${F + e.dataList.length}-${f}`,
4032
4040
  index: F + e.dataList.length,
4033
4041
  "column-height": e.columnHeight,
4034
4042
  blank: ""
4035
4043
  }, null, 8, ["index", "column-height"]))), 128))
4036
4044
  ]))), 128)),
4037
- R.value.length ? N("", !0) : (u(), h("div", {
4045
+ A.value.length ? j("", !0) : (u(), m("div", {
4038
4046
  key: 0,
4039
4047
  class: "shrink-0",
4040
4048
  style: Z({ height: `${e.bottomPadding}px` })
4041
4049
  }, null, 4))
4042
- ])) : N("", !0)
4050
+ ])) : j("", !0)
4043
4051
  ])),
4044
- !e.loading && e.dataList.length === 0 ? (u(), h("div", El, [
4045
- S("div", Rl, [
4052
+ !e.loading && e.dataList.length === 0 ? (u(), m("div", El, [
4053
+ C("div", Rl, [
4046
4054
  ne(U(oa), {
4047
4055
  size: "40px",
4048
4056
  color: "var(--text-base-quaternary)"
4049
4057
  }),
4050
- S("div", Ll, H(U(he)("common.noData")), 1)
4058
+ C("div", Ll, _(U(he)("common.noData")), 1)
4051
4059
  ])
4052
- ])) : (u(), h("div", Bl))
4060
+ ])) : (u(), m("div", Bl))
4053
4061
  ], 512)
4054
4062
  ], 512));
4055
4063
  }
4056
- }), to = /* @__PURE__ */ tn(Pl, [["__scopeId", "data-v-605185e2"]]);
4064
+ }), to = /* @__PURE__ */ tn(Vl, [["__scopeId", "data-v-605185e2"]]);
4057
4065
  export {
4058
4066
  Zl as Badge,
4059
4067
  He as Button,